@opengeni/worker-bundle 0.7.1 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/index.d.ts +184 -68
  2. package/dist/index.js +7099 -1643
  3. package/dist/index.js.map +1 -1
  4. package/package.json +18 -18
  5. package/src/activities/agent-turn.ts +4332 -1068
  6. package/src/activities/capabilities.ts +43 -8
  7. package/src/activities/codex-capacity.ts +223 -0
  8. package/src/activities/codex-rotation.ts +550 -54
  9. package/src/activities/common.ts +14 -2
  10. package/src/activities/context-compaction.ts +152 -118
  11. package/src/activities/documents.ts +32 -27
  12. package/src/activities/environment.ts +318 -75
  13. package/src/activities/file-upload-reaper.ts +79 -0
  14. package/src/activities/git-credential-renewal.ts +183 -0
  15. package/src/activities/goals.ts +142 -123
  16. package/src/activities/packs.ts +55 -5
  17. package/src/activities/parent-wake.ts +216 -42
  18. package/src/activities/recording.ts +154 -122
  19. package/src/activities/redaction.ts +3 -1
  20. package/src/activities/rig-verification.ts +441 -0
  21. package/src/activities/run-input.ts +110 -122
  22. package/src/activities/sandbox-lease.ts +186 -51
  23. package/src/activities/scheduled-tasks.ts +287 -171
  24. package/src/activities/session-state.ts +165 -157
  25. package/src/activities/streaming.ts +143 -19
  26. package/src/activities/turn-attempt-fenced.ts +14 -0
  27. package/src/activities/types.ts +106 -36
  28. package/src/activities/workflow-wake.ts +44 -0
  29. package/src/activities/workspace-capture.ts +964 -0
  30. package/src/activities.ts +75 -35
  31. package/src/concurrency.ts +11 -0
  32. package/src/http.ts +16 -6
  33. package/src/index.ts +322 -49
  34. package/src/observability-metrics.ts +441 -8
  35. package/src/op-journal.ts +46 -0
  36. package/src/sandbox-resume.ts +431 -201
  37. package/src/sandbox-routing.ts +209 -22
  38. package/src/workflows/activities.ts +65 -8
  39. package/src/workflows/file-upload-reaper.ts +12 -0
  40. package/src/workflows/rig-verification.ts +28 -0
  41. package/src/workflows/scheduled-tasks.ts +12 -26
  42. package/src/workflows/session.ts +330 -192
  43. package/src/workflows/workflow-wake.ts +13 -0
  44. package/src/workflows.ts +9 -7
@@ -0,0 +1,13 @@
1
+ import { proxyActivities } from "@temporalio/workflow";
2
+ import type * as activities from "../activities";
3
+
4
+ const wakeActivity = proxyActivities<Pick<typeof activities, "dispatchSessionWorkflowWakes">>({
5
+ startToCloseTimeout: "5 minutes",
6
+ retry: { maximumAttempts: 1 },
7
+ });
8
+
9
+ /** One bounded delivery sweep; recursive controls trigger it immediately and
10
+ * the global Schedule repeats it every ten seconds for repair. */
11
+ export async function sessionWorkflowWakeDispatcherWorkflow() {
12
+ return await wakeActivity.dispatchSessionWorkflowWakes();
13
+ }
package/src/workflows.ts CHANGED
@@ -1,10 +1,8 @@
1
- export {
2
- documentIndexWorkflow,
3
- type DocumentIndexWorkflowInput,
4
- } from "./workflows/document-index";
1
+ export { documentIndexWorkflow, type DocumentIndexWorkflowInput } from "./workflows/document-index";
5
2
  export {
6
3
  approvalDecision,
7
- interrupt,
4
+ codexCapacityChanged,
5
+ sessionControl,
8
6
  queueChanged,
9
7
  sessionWorkflow,
10
8
  userMessage,
@@ -14,6 +12,10 @@ export {
14
12
  scheduledTaskFireWorkflow,
15
13
  type ScheduledTaskFireWorkflowInput,
16
14
  } from "./workflows/scheduled-tasks";
15
+ export { sandboxReaperWorkflow } from "./workflows/sandbox-reaper";
16
+ export { fileUploadReaperWorkflow } from "./workflows/file-upload-reaper";
17
+ export { sessionWorkflowWakeDispatcherWorkflow } from "./workflows/workflow-wake";
17
18
  export {
18
- sandboxReaperWorkflow,
19
- } from "./workflows/sandbox-reaper";
19
+ rigVerificationWorkflow,
20
+ type RigVerificationWorkflowInput,
21
+ } from "./workflows/rig-verification";