diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-01 20:28:27 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-01 20:28:27 -0500 |
| commit | 8d8dec801bf959d6e4bf1ba3fbc5af5b242f96d9 (patch) | |
| tree | 41a41dfbcc83325c3fd5ede4dc67396f525d8592 /Omni/Agent | |
| parent | 11ee0b44397ff5f58a11a105883c07a39d49bfa3 (diff) | |
Fix build errors in Jr modules
- Fix Worker.hs to use EngineError instead of tuple
- Fix Types.hs imports for LazyText.encodeUtf8 and dayOfWeek
- Remove duplicate SortOrder from Components.hs (import from Types.hs)
- Add orphan instance pragmas to Pages.hs and Partials.hs
- Clean up unused imports
Diffstat (limited to 'Omni/Agent')
| -rw-r--r-- | Omni/Agent/Worker.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Agent/Worker.hs b/Omni/Agent/Worker.hs index a8bbfc9..07293c5 100644 --- a/Omni/Agent/Worker.hs +++ b/Omni/Agent/Worker.hs @@ -236,7 +236,7 @@ runWithEngine worker repo task = do -- Read API key from environment maybeApiKey <- Env.lookupEnv "OPENROUTER_API_KEY" case maybeApiKey of - Nothing -> pure (Exit.ExitFailure 1, "OPENROUTER_API_KEY not set", 0) + Nothing -> pure (EngineError "OPENROUTER_API_KEY not set" 0) Just apiKey -> do -- Check for retry context maybeRetry <- TaskCore.getRetryContext (TaskCore.taskId task) |
