@opengeni/worker-bundle 0.16.29 → 0.17.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/activities/agent-turn.d.ts +85 -19
- package/dist/activities/api-integrations.d.ts +21 -0
- package/dist/activities/codemode-dispatcher.d.ts +35 -0
- package/dist/activities/codemode-token-renewal.d.ts +23 -0
- package/dist/activities/codex-capacity.d.ts +5 -5
- package/dist/activities/codex-image-generation.d.ts +21 -0
- package/dist/activities/context-compaction.d.ts +1 -0
- package/dist/activities/documents.d.ts +3 -2
- package/dist/activities/environment.d.ts +11 -8
- package/dist/activities/expiring-material-renewal.d.ts +1 -1
- package/dist/activities/file-upload-reaper.d.ts +7 -2
- package/dist/activities/gateway-image-generation.d.ts +39 -0
- package/dist/activities/gateway-video-generation.d.ts +53 -0
- package/dist/activities/generated-images.d.ts +112 -0
- package/dist/activities/git-credential-renewal.d.ts +1 -1
- package/dist/activities/goals.d.ts +2 -2
- package/dist/activities/google-drive-changes.d.ts +99 -0
- package/dist/activities/image-generation-operation.d.ts +74 -0
- package/dist/activities/image-generation-references.d.ts +25 -0
- package/dist/activities/knowledge-source-sync-driver.d.ts +23 -0
- package/dist/activities/knowledge-source-sync.d.ts +75 -0
- package/dist/activities/packs.d.ts +13 -26
- package/dist/activities/parent-wake.d.ts +1 -1
- package/dist/activities/retained-screenshot-reaper.d.ts +2 -2
- package/dist/activities/retained-screenshots.d.ts +36 -0
- package/dist/activities/rig-verification.d.ts +82 -5
- package/dist/activities/run-credential-renewal.d.ts +1 -1
- package/dist/activities/run-input.d.ts +3 -1
- package/dist/activities/sandbox-images.d.ts +14 -0
- package/dist/activities/sandbox-lease.d.ts +47 -9
- package/dist/activities/scheduled-tasks.d.ts +2 -2
- package/dist/activities/session-state.d.ts +4 -4
- package/dist/activities/streaming.d.ts +1 -1
- package/dist/activities/types.d.ts +71 -5
- package/dist/activities/video-generation-admission.d.ts +38 -0
- package/dist/activities/video-generation-credential.d.ts +7 -0
- package/dist/activities/video-generation-reconciliation.d.ts +13 -0
- package/dist/activities/video-media-validation.d.ts +34 -0
- package/dist/activities/video-output-retention.d.ts +36 -0
- package/dist/activities/video-reference-staging.d.ts +49 -0
- package/dist/activities/workflow-wake.d.ts +2 -2
- package/dist/activities/workspace-capture.d.ts +10 -1
- package/dist/activities-control-44KBWLSM.js +6885 -0
- package/dist/activities-control-44KBWLSM.js.map +1 -0
- package/dist/activities-control.d.ts +289 -0
- package/dist/activities-turn-K4CEDEGJ.js +14675 -0
- package/dist/activities-turn-K4CEDEGJ.js.map +1 -0
- package/dist/activities-turn.d.ts +17 -0
- package/dist/activities.d.ts +130 -150
- package/dist/activity-services.d.ts +10 -0
- package/dist/artifact-materializer-entry.d.ts +6 -0
- package/dist/artifact-materializer-entry.js +2662 -0
- package/dist/artifact-materializer-entry.js.map +1 -0
- package/dist/artifact-outbox-entry.d.ts +2 -0
- package/dist/artifact-outbox-entry.js +681 -0
- package/dist/artifact-outbox-entry.js.map +1 -0
- package/dist/chunk-E3RI3I33.js +828 -0
- package/dist/chunk-E3RI3I33.js.map +1 -0
- package/dist/chunk-GRFQTTSQ.js +448 -0
- package/dist/chunk-GRFQTTSQ.js.map +1 -0
- package/dist/chunk-KKCRGAGZ.js +3091 -0
- package/dist/chunk-KKCRGAGZ.js.map +1 -0
- package/dist/concurrency.d.ts +108 -5
- package/dist/editable-artifact-hint-broker.d.ts +49 -0
- package/dist/editable-artifact-materializer-launcher.d.ts +49 -0
- package/dist/editable-artifact-materializer-service.d.ts +108 -0
- package/dist/editable-artifact-materializer-storage.d.ts +12 -0
- package/dist/editable-artifact-materializer-subprocess.d.ts +50 -0
- package/dist/editable-artifact-materializer.d.ts +262 -0
- package/dist/editable-artifact-outbox-dispatcher.d.ts +44 -0
- package/dist/editable-artifact-outbox-service.d.ts +70 -0
- package/dist/host-export.d.ts +1 -1
- package/dist/index.d.ts +176 -10
- package/dist/index.js +662 -17374
- package/dist/index.js.map +1 -1
- package/dist/memory-pressure-guard.d.ts +57 -0
- package/dist/model-checkpoint-memory-collector.d.ts +22 -0
- package/dist/observability-metrics.d.ts +33 -0
- package/dist/sandbox-reaper-contract.d.ts +40 -0
- package/dist/sandbox-reaper-timeout.d.ts +14 -0
- package/dist/sandbox-resume.d.ts +34 -7
- package/dist/sandbox-routing.d.ts +2 -0
- package/dist/worker-service-lifecycle.d.ts +6 -2
- package/dist/workflow-bundle.js +1043 -363
- package/dist/workflows/activities.d.ts +7 -1
- package/dist/workflows/document-index.d.ts +1 -1
- package/dist/workflows/knowledge-source-sync.d.ts +13 -0
- package/dist/workflows/rig-verification.d.ts +1 -1
- package/dist/workflows/sandbox-reaper.d.ts +8 -0
- package/dist/workflows/scheduled-tasks.d.ts +1 -1
- package/dist/workflows/session.d.ts +2 -2
- package/dist/workflows/video-generation.d.ts +10 -0
- package/dist/workflows/workflow-wake.d.ts +1 -1
- package/dist/workflows.d.ts +9 -7
- package/package.json +34 -15
- package/src/activities/agent-turn.ts +1470 -246
- package/src/activities/api-integrations.ts +138 -0
- package/src/activities/codemode-dispatcher.ts +335 -0
- package/src/activities/codemode-token-renewal.ts +64 -0
- package/src/activities/codex-capacity.ts +6 -6
- package/src/activities/codex-image-generation.ts +56 -0
- package/src/activities/context-compaction.ts +38 -3
- package/src/activities/documents.ts +14 -4
- package/src/activities/environment.ts +45 -42
- package/src/activities/expiring-material-renewal.ts +1 -1
- package/src/activities/file-upload-reaper.ts +34 -3
- package/src/activities/gateway-image-generation.ts +146 -0
- package/src/activities/gateway-video-generation.ts +298 -0
- package/src/activities/generated-images.ts +860 -0
- package/src/activities/goals.ts +6 -2
- package/src/activities/google-drive-changes.ts +454 -0
- package/src/activities/image-generation-operation.ts +333 -0
- package/src/activities/image-generation-references.ts +118 -0
- package/src/activities/knowledge-source-sync-driver.ts +27 -0
- package/src/activities/knowledge-source-sync.ts +2840 -0
- package/src/activities/mcp-credentials.ts +1 -0
- package/src/activities/packs.ts +55 -55
- package/src/activities/retained-screenshot-reaper.ts +2 -2
- package/src/activities/retained-screenshots.ts +453 -28
- package/src/activities/rig-verification.ts +554 -43
- package/src/activities/run-input.ts +22 -6
- package/src/activities/sandbox-images.ts +167 -0
- package/src/activities/sandbox-lease.ts +1065 -483
- package/src/activities/scheduled-tasks.ts +77 -4
- package/src/activities/session-state.ts +4 -4
- package/src/activities/streaming.ts +42 -3
- package/src/activities/types.ts +87 -5
- package/src/activities/video-generation-admission.ts +270 -0
- package/src/activities/video-generation-credential.ts +34 -0
- package/src/activities/video-generation-reconciliation.ts +578 -0
- package/src/activities/video-media-validation.ts +326 -0
- package/src/activities/video-output-retention.ts +314 -0
- package/src/activities/video-reference-staging.ts +263 -0
- package/src/activities/workflow-wake.ts +2 -2
- package/src/activities/workspace-capture.ts +44 -10
- package/src/activities-control.ts +54 -0
- package/src/activities-turn.ts +40 -0
- package/src/activities.ts +48 -124
- package/src/activity-services.ts +62 -0
- package/src/artifact-materializer-entry.ts +35 -0
- package/src/artifact-outbox-entry.ts +29 -0
- package/src/concurrency.ts +484 -6
- package/src/editable-artifact-hint-broker.ts +235 -0
- package/src/editable-artifact-materializer-launcher.ts +515 -0
- package/src/editable-artifact-materializer-service.ts +787 -0
- package/src/editable-artifact-materializer-storage.ts +413 -0
- package/src/editable-artifact-materializer-subprocess.ts +956 -0
- package/src/editable-artifact-materializer.ts +1289 -0
- package/src/editable-artifact-outbox-dispatcher.ts +244 -0
- package/src/editable-artifact-outbox-service.ts +438 -0
- package/src/index.ts +277 -72
- package/src/memory-pressure-guard.ts +489 -0
- package/src/model-checkpoint-memory-collector.ts +116 -0
- package/src/observability-metrics.ts +199 -4
- package/src/sandbox-reaper-contract.ts +73 -0
- package/src/sandbox-reaper-timeout.ts +79 -0
- package/src/sandbox-resume.ts +294 -153
- package/src/sandbox-routing.ts +19 -24
- package/src/worker-service-lifecycle.ts +80 -14
- package/src/workflows/activities.ts +30 -0
- package/src/workflows/file-upload-reaper.ts +3 -1
- package/src/workflows/knowledge-source-sync.ts +83 -0
- package/src/workflows/sandbox-reaper.ts +183 -21
- package/src/workflows/scheduled-tasks.ts +42 -6
- package/src/workflows/video-generation.ts +36 -0
- package/src/workflows.ts +17 -1
- package/dist/activities/toolspace-token-renewal.d.ts +0 -23
- package/src/activities/toolspace-token-renewal.ts +0 -64
package/src/workflows.ts
CHANGED
|
@@ -13,8 +13,24 @@ export {
|
|
|
13
13
|
scheduledTaskFireWorkflow,
|
|
14
14
|
type ScheduledTaskFireWorkflowInput,
|
|
15
15
|
} from "./workflows/scheduled-tasks";
|
|
16
|
-
export {
|
|
16
|
+
export {
|
|
17
|
+
knowledgeSourceSyncWake,
|
|
18
|
+
knowledgeSourceSyncWorkflow,
|
|
19
|
+
knowledgeSourceSyncWorkflowId,
|
|
20
|
+
type KnowledgeSourceSyncWorkflowInput,
|
|
21
|
+
} from "./workflows/knowledge-source-sync";
|
|
22
|
+
export {
|
|
23
|
+
sandboxDrainWorkflow,
|
|
24
|
+
sandboxReaperMaintenanceWorkflow,
|
|
25
|
+
sandboxReaperWorkflow,
|
|
26
|
+
sandboxReaperWorkflowV2,
|
|
27
|
+
} from "./workflows/sandbox-reaper";
|
|
17
28
|
export { fileUploadReaperWorkflow } from "./workflows/file-upload-reaper";
|
|
29
|
+
export {
|
|
30
|
+
videoGenerationWorkflow,
|
|
31
|
+
videoGenerationWorkflowId,
|
|
32
|
+
type VideoGenerationWorkflowInput,
|
|
33
|
+
} from "./workflows/video-generation";
|
|
18
34
|
export { sessionWorkflowWakeDispatcherWorkflow } from "./workflows/workflow-wake";
|
|
19
35
|
export {
|
|
20
36
|
rigVerificationWorkflow,
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type ExpiringMaterialRenewalController } from "./expiring-material-renewal";
|
|
2
|
-
import type { MintedSandboxToolspaceToken } from "./environment";
|
|
3
|
-
export declare const TOOLSPACE_TOKEN_DEFAULT_REFRESH_MS: number;
|
|
4
|
-
export declare const TOOLSPACE_TOKEN_EXPIRY_LEAD_MS: number;
|
|
5
|
-
export declare const TOOLSPACE_TOKEN_MIN_REFRESH_MS = 5000;
|
|
6
|
-
export declare const TOOLSPACE_TOKEN_MAX_RETRY_MS: number;
|
|
7
|
-
export type ToolspaceTokenRenewalController = ExpiringMaterialRenewalController;
|
|
8
|
-
export type ToolspaceTokenRenewalOptions = {
|
|
9
|
-
initialExpiresAt: Date;
|
|
10
|
-
mint: () => Promise<MintedSandboxToolspaceToken | undefined>;
|
|
11
|
-
write: (material: MintedSandboxToolspaceToken) => Promise<void>;
|
|
12
|
-
now?: () => number;
|
|
13
|
-
schedule?: (callback: () => void, delayMs: number) => unknown;
|
|
14
|
-
clearSchedule?: (timer: unknown) => void;
|
|
15
|
-
onSuccess?: (result: {
|
|
16
|
-
nextDelayMs: number;
|
|
17
|
-
}) => void;
|
|
18
|
-
onFailure?: (failure: {
|
|
19
|
-
retryDelayMs: number;
|
|
20
|
-
errorClass: "ToolspaceTokenRenewalOperationError";
|
|
21
|
-
}) => void;
|
|
22
|
-
};
|
|
23
|
-
export declare function startToolspaceTokenRenewalLoop(options: ToolspaceTokenRenewalOptions): ToolspaceTokenRenewalController;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
startExpiringMaterialRenewalLoop,
|
|
3
|
-
type ExpiringMaterialRenewalController,
|
|
4
|
-
} from "./expiring-material-renewal";
|
|
5
|
-
import type { MintedSandboxToolspaceToken } from "./environment";
|
|
6
|
-
|
|
7
|
-
export const TOOLSPACE_TOKEN_DEFAULT_REFRESH_MS = 30 * 60_000;
|
|
8
|
-
export const TOOLSPACE_TOKEN_EXPIRY_LEAD_MS = 5 * 60_000;
|
|
9
|
-
export const TOOLSPACE_TOKEN_MIN_REFRESH_MS = 5_000;
|
|
10
|
-
export const TOOLSPACE_TOKEN_MAX_RETRY_MS = 5 * 60_000;
|
|
11
|
-
|
|
12
|
-
export type ToolspaceTokenRenewalController = ExpiringMaterialRenewalController;
|
|
13
|
-
|
|
14
|
-
export type ToolspaceTokenRenewalOptions = {
|
|
15
|
-
initialExpiresAt: Date;
|
|
16
|
-
mint: () => Promise<MintedSandboxToolspaceToken | undefined>;
|
|
17
|
-
write: (material: MintedSandboxToolspaceToken) => Promise<void>;
|
|
18
|
-
now?: () => number;
|
|
19
|
-
schedule?: (callback: () => void, delayMs: number) => unknown;
|
|
20
|
-
clearSchedule?: (timer: unknown) => void;
|
|
21
|
-
onSuccess?: (result: { nextDelayMs: number }) => void;
|
|
22
|
-
onFailure?: (failure: {
|
|
23
|
-
retryDelayMs: number;
|
|
24
|
-
errorClass: "ToolspaceTokenRenewalOperationError";
|
|
25
|
-
}) => void;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
class ToolspaceTokenRenewalError extends Error {
|
|
29
|
-
override readonly name = "ToolspaceTokenRenewalError";
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function startToolspaceTokenRenewalLoop(
|
|
33
|
-
options: ToolspaceTokenRenewalOptions,
|
|
34
|
-
): ToolspaceTokenRenewalController {
|
|
35
|
-
return startExpiringMaterialRenewalLoop<
|
|
36
|
-
MintedSandboxToolspaceToken,
|
|
37
|
-
"ToolspaceTokenRenewalOperationError"
|
|
38
|
-
>({
|
|
39
|
-
initialExpiresAt: options.initialExpiresAt,
|
|
40
|
-
resolve: async () => {
|
|
41
|
-
const minted = await options.mint();
|
|
42
|
-
if (!minted) {
|
|
43
|
-
throw new ToolspaceTokenRenewalError("Toolspace token mint is no longer available");
|
|
44
|
-
}
|
|
45
|
-
return minted;
|
|
46
|
-
},
|
|
47
|
-
write: options.write,
|
|
48
|
-
expiresAt: (material) => material.expiresAt,
|
|
49
|
-
publicErrorClass: "ToolspaceTokenRenewalOperationError",
|
|
50
|
-
policy: {
|
|
51
|
-
defaultRefreshMs: TOOLSPACE_TOKEN_DEFAULT_REFRESH_MS,
|
|
52
|
-
expiryLeadMs: TOOLSPACE_TOKEN_EXPIRY_LEAD_MS,
|
|
53
|
-
minRefreshMs: TOOLSPACE_TOKEN_MIN_REFRESH_MS,
|
|
54
|
-
maxRetryMs: TOOLSPACE_TOKEN_MAX_RETRY_MS,
|
|
55
|
-
},
|
|
56
|
-
...(options.now ? { now: options.now } : {}),
|
|
57
|
-
...(options.schedule ? { schedule: options.schedule } : {}),
|
|
58
|
-
...(options.clearSchedule ? { clearSchedule: options.clearSchedule } : {}),
|
|
59
|
-
...(options.onSuccess
|
|
60
|
-
? { onSuccess: ({ nextDelayMs }) => options.onSuccess?.({ nextDelayMs }) }
|
|
61
|
-
: {}),
|
|
62
|
-
...(options.onFailure ? { onFailure: options.onFailure } : {}),
|
|
63
|
-
});
|
|
64
|
-
}
|