@opengeni/worker-bundle 0.7.0 → 0.7.2
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.
- package/dist/index.d.ts +182 -67
- package/dist/index.js +7127 -1654
- package/dist/index.js.map +1 -1
- package/package.json +19 -19
- package/src/activities/agent-turn.ts +4405 -1089
- package/src/activities/capabilities.ts +43 -8
- package/src/activities/codex-capacity.ts +223 -0
- package/src/activities/codex-rotation.ts +550 -54
- package/src/activities/common.ts +7 -1
- package/src/activities/context-compaction.ts +152 -118
- package/src/activities/documents.ts +32 -27
- package/src/activities/environment.ts +318 -75
- package/src/activities/file-upload-reaper.ts +79 -0
- package/src/activities/git-credential-renewal.ts +183 -0
- package/src/activities/goals.ts +142 -123
- package/src/activities/packs.ts +55 -5
- package/src/activities/parent-wake.ts +228 -41
- package/src/activities/recording.ts +154 -122
- package/src/activities/redaction.ts +3 -1
- package/src/activities/rig-verification.ts +441 -0
- package/src/activities/run-input.ts +110 -122
- package/src/activities/sandbox-lease.ts +186 -51
- package/src/activities/scheduled-tasks.ts +287 -171
- package/src/activities/session-state.ts +168 -157
- package/src/activities/streaming.ts +143 -19
- package/src/activities/turn-attempt-fenced.ts +14 -0
- package/src/activities/types.ts +102 -32
- package/src/activities/workflow-wake.ts +44 -0
- package/src/activities/workspace-capture.ts +964 -0
- package/src/activities.ts +75 -35
- package/src/concurrency.ts +11 -0
- package/src/http.ts +16 -6
- package/src/index.ts +322 -49
- package/src/observability-metrics.ts +441 -8
- package/src/op-journal.ts +46 -0
- package/src/sandbox-resume.ts +431 -201
- package/src/sandbox-routing.ts +209 -22
- package/src/workflow-wake-contract.ts +5 -0
- package/src/workflows/activities.ts +58 -7
- package/src/workflows/file-upload-reaper.ts +12 -0
- package/src/workflows/rig-verification.ts +28 -0
- package/src/workflows/scheduled-tasks.ts +12 -26
- package/src/workflows/session.ts +330 -173
- package/src/workflows/workflow-wake.ts +12 -0
- package/src/workflows.ts +9 -7
|
@@ -0,0 +1,12 @@
|
|
|
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; direct producer signals remain the fast path. */
|
|
10
|
+
export async function sessionWorkflowWakeDispatcherWorkflow() {
|
|
11
|
+
return await wakeActivity.dispatchSessionWorkflowWakes();
|
|
12
|
+
}
|
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
|
-
|
|
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
|
-
|
|
19
|
-
|
|
19
|
+
rigVerificationWorkflow,
|
|
20
|
+
type RigVerificationWorkflowInput,
|
|
21
|
+
} from "./workflows/rig-verification";
|