@proofoftech/flowsafe 0.19.0 → 0.21.0
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/CHANGELOG.md +106 -0
- package/README.md +68 -6
- package/deployment-identity-protocol.d.mts +70 -1
- package/deployment-identity-protocol.mjs +423 -5
- package/dist/agent-host/index.d.ts +1 -1
- package/dist/agent-host/index.d.ts.map +1 -1
- package/dist/agent-host/index.js.map +1 -1
- package/dist/agent-host/router.d.ts.map +1 -1
- package/dist/agent-host/router.js +17 -4
- package/dist/agent-host/router.js.map +1 -1
- package/dist/agent-host/thread-host.d.ts +14 -1
- package/dist/agent-host/thread-host.d.ts.map +1 -1
- package/dist/agent-host/thread-host.js +865 -308
- package/dist/agent-host/thread-host.js.map +1 -1
- package/dist/agent-host/thread-topology.d.ts +43 -1
- package/dist/agent-host/thread-topology.d.ts.map +1 -1
- package/dist/agent-host/thread-topology.js +301 -28
- package/dist/agent-host/thread-topology.js.map +1 -1
- package/dist/agent-runner/durable-agent-runner.d.ts +107 -8
- package/dist/agent-runner/durable-agent-runner.d.ts.map +1 -1
- package/dist/agent-runner/durable-agent-runner.js +427 -55
- package/dist/agent-runner/durable-agent-runner.js.map +1 -1
- package/dist/agent-runner/index.d.ts +1 -1
- package/dist/agent-runner/index.d.ts.map +1 -1
- package/dist/agent-runner/index.js.map +1 -1
- package/dist/approval-api/actor-context.d.ts +4 -0
- package/dist/approval-api/actor-context.d.ts.map +1 -1
- package/dist/approval-api/actor-context.js +53 -5
- package/dist/approval-api/actor-context.js.map +1 -1
- package/dist/approval-api/d1-store.d.ts.map +1 -1
- package/dist/approval-api/d1-store.js +6 -3
- package/dist/approval-api/d1-store.js.map +1 -1
- package/dist/approval-api/principal-identity.d.ts +32 -0
- package/dist/approval-api/principal-identity.d.ts.map +1 -0
- package/dist/approval-api/principal-identity.js +69 -0
- package/dist/approval-api/principal-identity.js.map +1 -0
- package/dist/approval-api/principal.d.ts +10 -13
- package/dist/approval-api/principal.d.ts.map +1 -1
- package/dist/approval-api/principal.js +10 -46
- package/dist/approval-api/principal.js.map +1 -1
- package/dist/approval-api/retention.d.ts +1 -2
- package/dist/approval-api/retention.d.ts.map +1 -1
- package/dist/approval-api/retention.js.map +1 -1
- package/dist/approval-api/router.d.ts.map +1 -1
- package/dist/approval-api/router.js +9 -1
- package/dist/approval-api/router.js.map +1 -1
- package/dist/approval-api/service.d.ts +29 -14
- package/dist/approval-api/service.d.ts.map +1 -1
- package/dist/approval-api/service.js +83 -25
- package/dist/approval-api/service.js.map +1 -1
- package/dist/approval-api/types.d.ts +12 -0
- package/dist/approval-api/types.d.ts.map +1 -1
- package/dist/approval-api/types.js +12 -0
- package/dist/approval-api/types.js.map +1 -1
- package/dist/audit-export/index.d.ts +2 -2
- package/dist/audit-export/index.js +2 -2
- package/dist/background-tasks/d1-storage.d.ts +4 -3
- package/dist/background-tasks/d1-storage.d.ts.map +1 -1
- package/dist/background-tasks/d1-storage.js +7 -13
- package/dist/background-tasks/d1-storage.js.map +1 -1
- package/dist/background-tasks/host.d.ts +127 -14
- package/dist/background-tasks/host.d.ts.map +1 -1
- package/dist/background-tasks/host.js +579 -50
- package/dist/background-tasks/host.js.map +1 -1
- package/dist/background-tasks/index.d.ts +2 -2
- package/dist/background-tasks/index.d.ts.map +1 -1
- package/dist/background-tasks/index.js +11 -6
- package/dist/background-tasks/index.js.map +1 -1
- package/dist/background-tasks/routes.d.ts +19 -2
- package/dist/background-tasks/routes.d.ts.map +1 -1
- package/dist/background-tasks/routes.js +4 -4
- package/dist/background-tasks/routes.js.map +1 -1
- package/dist/deployment-identity-protocol.d.ts +2 -2
- package/dist/deployment-identity-protocol.d.ts.map +1 -1
- package/dist/deployment-identity-protocol.js +1 -1
- package/dist/deployment-identity-protocol.js.map +1 -1
- package/dist/do-runner/cause-chain.d.ts +53 -0
- package/dist/do-runner/cause-chain.d.ts.map +1 -0
- package/dist/do-runner/cause-chain.js +96 -0
- package/dist/do-runner/cause-chain.js.map +1 -0
- package/dist/do-runner/constants.d.ts +3 -0
- package/dist/do-runner/constants.d.ts.map +1 -0
- package/dist/do-runner/constants.js +3 -0
- package/dist/do-runner/constants.js.map +1 -0
- package/dist/do-runner/d1-storage.d.ts +47 -69
- package/dist/do-runner/d1-storage.d.ts.map +1 -1
- package/dist/do-runner/d1-storage.js +972 -196
- package/dist/do-runner/d1-storage.js.map +1 -1
- package/dist/do-runner/deployment-identity.d.ts +29 -5
- package/dist/do-runner/deployment-identity.d.ts.map +1 -1
- package/dist/do-runner/deployment-identity.js +23 -6
- package/dist/do-runner/deployment-identity.js.map +1 -1
- package/dist/do-runner/do-error-response.d.ts +4 -23
- package/dist/do-runner/do-error-response.d.ts.map +1 -1
- package/dist/do-runner/do-error-response.js +19 -24
- package/dist/do-runner/do-error-response.js.map +1 -1
- package/dist/do-runner/do-status-error.d.ts +37 -0
- package/dist/do-runner/do-status-error.d.ts.map +1 -0
- package/dist/do-runner/do-status-error.js +42 -0
- package/dist/do-runner/do-status-error.js.map +1 -0
- package/dist/do-runner/durable-object.d.ts +2 -1
- package/dist/do-runner/durable-object.d.ts.map +1 -1
- package/dist/do-runner/durable-object.js +617 -144
- package/dist/do-runner/durable-object.js.map +1 -1
- package/dist/do-runner/execution-admission.d.ts +114 -0
- package/dist/do-runner/execution-admission.d.ts.map +1 -0
- package/dist/do-runner/execution-admission.js +206 -0
- package/dist/do-runner/execution-admission.js.map +1 -0
- package/dist/do-runner/execution-context.d.ts.map +1 -1
- package/dist/do-runner/execution-context.js +1 -0
- package/dist/do-runner/execution-context.js.map +1 -1
- package/dist/do-runner/execution-fence.d.ts +379 -0
- package/dist/do-runner/execution-fence.d.ts.map +1 -0
- package/dist/do-runner/execution-fence.js +1098 -0
- package/dist/do-runner/execution-fence.js.map +1 -0
- package/dist/do-runner/fenced-workflow-capability.d.ts +64 -0
- package/dist/do-runner/fenced-workflow-capability.d.ts.map +1 -0
- package/dist/do-runner/fenced-workflow-capability.js +3 -0
- package/dist/do-runner/fenced-workflow-capability.js.map +1 -0
- package/dist/do-runner/fenced-workflows-d1.d.ts +15 -0
- package/dist/do-runner/fenced-workflows-d1.d.ts.map +1 -0
- package/dist/do-runner/fenced-workflows-d1.js +894 -0
- package/dist/do-runner/fenced-workflows-d1.js.map +1 -0
- package/dist/do-runner/index.d.ts +20 -8
- package/dist/do-runner/index.d.ts.map +1 -1
- package/dist/do-runner/index.js +21 -4
- package/dist/do-runner/index.js.map +1 -1
- package/dist/do-runner/init.d.ts +82 -1
- package/dist/do-runner/init.d.ts.map +1 -1
- package/dist/do-runner/init.js +58 -3
- package/dist/do-runner/init.js.map +1 -1
- package/dist/do-runner/initial-admission-refusal.d.ts +7 -0
- package/dist/do-runner/initial-admission-refusal.d.ts.map +1 -0
- package/dist/do-runner/initial-admission-refusal.js +41 -0
- package/dist/do-runner/initial-admission-refusal.js.map +1 -0
- package/dist/do-runner/inventory.d.ts +295 -0
- package/dist/do-runner/inventory.d.ts.map +1 -0
- package/dist/do-runner/inventory.js +800 -0
- package/dist/do-runner/inventory.js.map +1 -0
- package/dist/do-runner/notification-predicate.d.ts +8 -0
- package/dist/do-runner/notification-predicate.d.ts.map +1 -0
- package/dist/do-runner/notification-predicate.js +136 -0
- package/dist/do-runner/notification-predicate.js.map +1 -0
- package/dist/do-runner/run-lifecycle.d.ts +20 -1
- package/dist/do-runner/run-lifecycle.d.ts.map +1 -1
- package/dist/do-runner/run-lifecycle.js +67 -13
- package/dist/do-runner/run-lifecycle.js.map +1 -1
- package/dist/do-runner/run-provenance.d.ts +38 -0
- package/dist/do-runner/run-provenance.d.ts.map +1 -0
- package/dist/do-runner/run-provenance.js +152 -0
- package/dist/do-runner/run-provenance.js.map +1 -0
- package/dist/do-runner/run-storage-tables.d.ts +2 -0
- package/dist/do-runner/run-storage-tables.d.ts.map +1 -0
- package/dist/do-runner/run-storage-tables.js +4 -0
- package/dist/do-runner/run-storage-tables.js.map +1 -0
- package/dist/do-runner/run-terminal-state.d.ts +29 -0
- package/dist/do-runner/run-terminal-state.d.ts.map +1 -0
- package/dist/do-runner/run-terminal-state.js +105 -0
- package/dist/do-runner/run-terminal-state.js.map +1 -0
- package/dist/do-runner/runtime.d.ts +191 -46
- package/dist/do-runner/runtime.d.ts.map +1 -1
- package/dist/do-runner/runtime.js +994 -378
- package/dist/do-runner/runtime.js.map +1 -1
- package/dist/do-runner/start-idempotency.d.ts +285 -0
- package/dist/do-runner/start-idempotency.d.ts.map +1 -0
- package/dist/do-runner/start-idempotency.js +994 -0
- package/dist/do-runner/start-idempotency.js.map +1 -0
- package/dist/do-runner/start-reservation-contract.d.ts +103 -0
- package/dist/do-runner/start-reservation-contract.d.ts.map +1 -0
- package/dist/do-runner/start-reservation-contract.js +338 -0
- package/dist/do-runner/start-reservation-contract.js.map +1 -0
- package/dist/do-runner/suspension-deadline.d.ts +4 -11
- package/dist/do-runner/suspension-deadline.d.ts.map +1 -1
- package/dist/do-runner/suspension-deadline.js +8 -12
- package/dist/do-runner/suspension-deadline.js.map +1 -1
- package/dist/do-runner/table-prefix.d.ts.map +1 -1
- package/dist/do-runner/table-prefix.js +2 -1
- package/dist/do-runner/table-prefix.js.map +1 -1
- package/dist/do-runner/testing.d.ts +3 -0
- package/dist/do-runner/testing.d.ts.map +1 -0
- package/dist/do-runner/testing.js +3 -0
- package/dist/do-runner/testing.js.map +1 -0
- package/dist/do-runner/thread-do.d.ts +2 -1
- package/dist/do-runner/thread-do.d.ts.map +1 -1
- package/dist/do-runner/thread-do.js +14 -10
- package/dist/do-runner/thread-do.js.map +1 -1
- package/dist/do-runner/workflow-snapshot-row.d.ts +49 -0
- package/dist/do-runner/workflow-snapshot-row.d.ts.map +1 -0
- package/dist/do-runner/workflow-snapshot-row.js +97 -0
- package/dist/do-runner/workflow-snapshot-row.js.map +1 -0
- package/dist/goals/objective-routes.d.ts +15 -5
- package/dist/goals/objective-routes.d.ts.map +1 -1
- package/dist/goals/objective-routes.js +64 -64
- package/dist/goals/objective-routes.js.map +1 -1
- package/dist/host-kit/approval-bridge.d.ts.map +1 -1
- package/dist/host-kit/approval-bridge.js +10 -7
- package/dist/host-kit/approval-bridge.js.map +1 -1
- package/dist/host-kit/do-response.d.ts +16 -0
- package/dist/host-kit/do-response.d.ts.map +1 -1
- package/dist/host-kit/do-response.js +181 -0
- package/dist/host-kit/do-response.js.map +1 -1
- package/dist/host-kit/do-run-topology.d.ts +3 -0
- package/dist/host-kit/do-run-topology.d.ts.map +1 -1
- package/dist/host-kit/do-run-topology.js +36 -8
- package/dist/host-kit/do-run-topology.js.map +1 -1
- package/dist/host-kit/env-vars.d.ts.map +1 -1
- package/dist/host-kit/env-vars.js +5 -6
- package/dist/host-kit/env-vars.js.map +1 -1
- package/dist/host-kit/flowsafe-worker.d.ts +49 -6
- package/dist/host-kit/flowsafe-worker.d.ts.map +1 -1
- package/dist/host-kit/flowsafe-worker.js +409 -111
- package/dist/host-kit/flowsafe-worker.js.map +1 -1
- package/dist/host-kit/host-approval-service.d.ts +24 -14
- package/dist/host-kit/host-approval-service.d.ts.map +1 -1
- package/dist/host-kit/host-approval-service.js +29 -40
- package/dist/host-kit/host-approval-service.js.map +1 -1
- package/dist/host-kit/index.d.ts +9 -3
- package/dist/host-kit/index.d.ts.map +1 -1
- package/dist/host-kit/index.js +5 -1
- package/dist/host-kit/index.js.map +1 -1
- package/dist/host-kit/run-route-error.d.ts +8 -4
- package/dist/host-kit/run-route-error.d.ts.map +1 -1
- package/dist/host-kit/run-route-error.js +14 -11
- package/dist/host-kit/run-route-error.js.map +1 -1
- package/dist/host-kit/run-router.d.ts +63 -2
- package/dist/host-kit/run-router.d.ts.map +1 -1
- package/dist/host-kit/run-router.js +167 -45
- package/dist/host-kit/run-router.js.map +1 -1
- package/dist/host-kit/stream-router.d.ts.map +1 -1
- package/dist/host-kit/stream-router.js +18 -9
- package/dist/host-kit/stream-router.js.map +1 -1
- package/dist/host-kit/thread-topology.d.ts +1 -1
- package/dist/host-kit/thread-topology.d.ts.map +1 -1
- package/dist/host-kit/thread-topology.js +7 -3
- package/dist/host-kit/thread-topology.js.map +1 -1
- package/dist/internal-error-response.d.ts.map +1 -1
- package/dist/internal-error-response.js +16 -6
- package/dist/internal-error-response.js.map +1 -1
- package/dist/schedules/index.d.ts +1 -0
- package/dist/schedules/index.d.ts.map +1 -1
- package/dist/schedules/index.js +1 -7
- package/dist/schedules/index.js.map +1 -1
- package/dist/schedules/mutation-contract.d.ts +38 -0
- package/dist/schedules/mutation-contract.d.ts.map +1 -0
- package/dist/schedules/mutation-contract.js +21 -0
- package/dist/schedules/mutation-contract.js.map +1 -0
- package/dist/schedules/router.d.ts +15 -8
- package/dist/schedules/router.d.ts.map +1 -1
- package/dist/schedules/router.js +170 -59
- package/dist/schedules/router.js.map +1 -1
- package/dist/schedules/schedules-d1.d.ts +11 -5
- package/dist/schedules/schedules-d1.d.ts.map +1 -1
- package/dist/schedules/schedules-d1.js +570 -143
- package/dist/schedules/schedules-d1.js.map +1 -1
- package/dist/schedules/storage.d.ts +0 -7
- package/dist/schedules/storage.d.ts.map +1 -1
- package/dist/schedules/storage.js +0 -27
- package/dist/schedules/storage.js.map +1 -1
- package/dist/schedules/tick.d.ts +13 -0
- package/dist/schedules/tick.d.ts.map +1 -1
- package/dist/schedules/tick.js +66 -40
- package/dist/schedules/tick.js.map +1 -1
- package/dist/signal-providers/host-do.d.ts +12 -1
- package/dist/signal-providers/host-do.d.ts.map +1 -1
- package/dist/signal-providers/host-do.js +28 -3
- package/dist/signal-providers/host-do.js.map +1 -1
- package/dist/signal-providers/webhook-route.d.ts +15 -1
- package/dist/signal-providers/webhook-route.d.ts.map +1 -1
- package/dist/signal-providers/webhook-route.js +126 -113
- package/dist/signal-providers/webhook-route.js.map +1 -1
- package/dist/signals/d1-shared.d.ts +11 -8
- package/dist/signals/d1-shared.d.ts.map +1 -1
- package/dist/signals/d1-shared.js +1 -6
- package/dist/signals/d1-shared.js.map +1 -1
- package/dist/signals/index.d.ts +1 -1
- package/dist/signals/index.d.ts.map +1 -1
- package/dist/signals/index.js +1 -1
- package/dist/signals/index.js.map +1 -1
- package/dist/signals/notification-dispatch.d.ts +109 -5
- package/dist/signals/notification-dispatch.d.ts.map +1 -1
- package/dist/signals/notification-dispatch.js +430 -46
- package/dist/signals/notification-dispatch.js.map +1 -1
- package/dist/signals/notifications-d1.d.ts +14 -1
- package/dist/signals/notifications-d1.d.ts.map +1 -1
- package/dist/signals/notifications-d1.js +229 -18
- package/dist/signals/notifications-d1.js.map +1 -1
- package/dist/signals/router.d.ts +6 -4
- package/dist/signals/router.d.ts.map +1 -1
- package/dist/signals/router.js +49 -84
- package/dist/signals/router.js.map +1 -1
- package/dist/signals/thread-do-routes.d.ts +2 -0
- package/dist/signals/thread-do-routes.d.ts.map +1 -1
- package/dist/signals/thread-do-routes.js +330 -83
- package/dist/signals/thread-do-routes.js.map +1 -1
- package/package.json +6 -3
- package/patches/@mastra__core@1.53.0.patch +54 -0
- package/scripts/seed-deployment-identity.mjs +34 -9
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { UpdateWorkflowStateOptions } from '@mastra/core/storage';
|
|
2
|
+
import type { WorkflowRunStatus, WorkflowState } from '@mastra/core/workflows';
|
|
3
|
+
import type { RunTerminalStatus } from './run-lifecycle.js';
|
|
4
|
+
export type RunStatus = WorkflowRunStatus | 'waiting_callback' | 'waiting_signal' | 'retry_wait' | RunTerminalStatus;
|
|
5
|
+
export type CoreRunResult = {
|
|
6
|
+
status: 'success';
|
|
7
|
+
result: unknown;
|
|
8
|
+
} | {
|
|
9
|
+
status: 'failed';
|
|
10
|
+
error: unknown;
|
|
11
|
+
} | {
|
|
12
|
+
status: 'suspended';
|
|
13
|
+
suspended: [string[], ...string[][]];
|
|
14
|
+
suspendPayload?: unknown;
|
|
15
|
+
steps?: WorkflowState['steps'];
|
|
16
|
+
} | {
|
|
17
|
+
status: 'tripwire';
|
|
18
|
+
tripwire: {
|
|
19
|
+
reason: string;
|
|
20
|
+
};
|
|
21
|
+
} | {
|
|
22
|
+
status: Exclude<WorkflowRunStatus, 'success' | 'failed' | 'suspended' | 'tripwire'>;
|
|
23
|
+
};
|
|
24
|
+
export declare function isRunStatus(value: unknown): value is RunStatus;
|
|
25
|
+
export declare function isTerminalRunStatus(value: unknown): boolean;
|
|
26
|
+
export declare function terminalStateFields(status: RunStatus): UpdateWorkflowStateOptions;
|
|
27
|
+
export declare function terminalStateUpdate(result: CoreRunResult): UpdateWorkflowStateOptions | undefined;
|
|
28
|
+
export declare function errorText(error: unknown): string;
|
|
29
|
+
//# sourceMappingURL=run-terminal-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-terminal-state.d.ts","sourceRoot":"","sources":["../../src/do-runner/run-terminal-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,MAAM,SAAS,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,YAAY,GACZ,iBAAiB,CAAC;AAEtB,MAAM,MAAM,aAAa,GACrB;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GACtC;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACpC;IACE,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE,CAAC,CAAC;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CAChC,GACD;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GACpD;IACE,MAAM,EAAE,OAAO,CACb,iBAAiB,EACjB,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,CAChD,CAAC;CACH,CAAC;AAqBN,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAW3D;AAUD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,GAChB,0BAA0B,CAW5B;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,aAAa,GACpB,0BAA0B,GAAG,SAAS,CAuCxC;AAGD,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAYhD"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
const RUN_STATUSES = {
|
|
3
|
+
running: true,
|
|
4
|
+
success: true,
|
|
5
|
+
failed: true,
|
|
6
|
+
tripwire: true,
|
|
7
|
+
suspended: true,
|
|
8
|
+
waiting: true,
|
|
9
|
+
pending: true,
|
|
10
|
+
canceled: true,
|
|
11
|
+
bailed: true,
|
|
12
|
+
paused: true,
|
|
13
|
+
skipped: true,
|
|
14
|
+
waiting_callback: true,
|
|
15
|
+
waiting_signal: true,
|
|
16
|
+
retry_wait: true,
|
|
17
|
+
cancelled: true,
|
|
18
|
+
timed_out: true,
|
|
19
|
+
};
|
|
20
|
+
export function isRunStatus(value) {
|
|
21
|
+
return typeof value === 'string' && Object.hasOwn(RUN_STATUSES, value);
|
|
22
|
+
}
|
|
23
|
+
export function isTerminalRunStatus(value) {
|
|
24
|
+
return (value === 'success' ||
|
|
25
|
+
value === 'failed' ||
|
|
26
|
+
value === 'tripwire' ||
|
|
27
|
+
value === 'canceled' ||
|
|
28
|
+
value === 'bailed' ||
|
|
29
|
+
value === 'skipped' ||
|
|
30
|
+
value === 'cancelled' ||
|
|
31
|
+
value === 'timed_out');
|
|
32
|
+
}
|
|
33
|
+
const NONTERMINAL_RUN_STATUSES = new Set([
|
|
34
|
+
'running',
|
|
35
|
+
'suspended',
|
|
36
|
+
'waiting',
|
|
37
|
+
'pending',
|
|
38
|
+
'paused',
|
|
39
|
+
]);
|
|
40
|
+
export function terminalStateFields(status) {
|
|
41
|
+
return {
|
|
42
|
+
status: status,
|
|
43
|
+
result: undefined,
|
|
44
|
+
error: undefined,
|
|
45
|
+
suspendedPaths: {},
|
|
46
|
+
waitingPaths: {},
|
|
47
|
+
resumeLabels: {},
|
|
48
|
+
activePaths: [],
|
|
49
|
+
activeStepsPath: {},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function terminalStateUpdate(result) {
|
|
53
|
+
if (NONTERMINAL_RUN_STATUSES.has(result.status))
|
|
54
|
+
return undefined;
|
|
55
|
+
const common = terminalStateFields(result.status);
|
|
56
|
+
if (result.status === 'success') {
|
|
57
|
+
return {
|
|
58
|
+
...common,
|
|
59
|
+
result: result.result,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
if (result.status === 'failed') {
|
|
63
|
+
const error = result.error;
|
|
64
|
+
const name = error instanceof Error
|
|
65
|
+
? error.name
|
|
66
|
+
: error !== null &&
|
|
67
|
+
typeof error === 'object' &&
|
|
68
|
+
'name' in error &&
|
|
69
|
+
typeof error.name === 'string'
|
|
70
|
+
? error.name
|
|
71
|
+
: 'Error';
|
|
72
|
+
const stack = error instanceof Error
|
|
73
|
+
? error.stack
|
|
74
|
+
: error !== null &&
|
|
75
|
+
typeof error === 'object' &&
|
|
76
|
+
'stack' in error &&
|
|
77
|
+
typeof error.stack === 'string'
|
|
78
|
+
? error.stack
|
|
79
|
+
: undefined;
|
|
80
|
+
return {
|
|
81
|
+
...common,
|
|
82
|
+
error: {
|
|
83
|
+
name,
|
|
84
|
+
message: errorText(error),
|
|
85
|
+
...(stack !== undefined ? { stack } : {}),
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
return common;
|
|
90
|
+
}
|
|
91
|
+
// Persistence may serialize an Error into a plain object.
|
|
92
|
+
export function errorText(error) {
|
|
93
|
+
if (error instanceof Error)
|
|
94
|
+
return error.message;
|
|
95
|
+
if (typeof error === 'string')
|
|
96
|
+
return error;
|
|
97
|
+
if (error !== null &&
|
|
98
|
+
typeof error === 'object' &&
|
|
99
|
+
'message' in error &&
|
|
100
|
+
typeof error.message === 'string') {
|
|
101
|
+
return error.message;
|
|
102
|
+
}
|
|
103
|
+
return String(error);
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=run-terminal-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-terminal-state.js","sourceRoot":"","sources":["../../src/do-runner/run-terminal-state.ts"],"names":[],"mappings":"AAAA,sCAAsC;AA8BtC,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;CACkB,CAAC;AAEpC,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,OAAO,CACL,KAAK,KAAK,SAAS;QACnB,KAAK,KAAK,QAAQ;QAClB,KAAK,KAAK,UAAU;QAC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ClC,CAAC,CAAC,OAAO,CAAC;QAChB,MAAM,KAAK,GACT,KAAK,YAAY,KAAK;YACpB,CAAC,CAAC,KAAK,CAAC,KAAK;YACb,CAAC,CAAC,KAAK,KAAK,IAAI;gBACZ,OAAO,KAAK,KAAK,QAAQ;gBACzB,OAAO,IAAI,KAAK;gBAChB,OAAQ,KAA4B,CAAC,KAAK,KAAK,QAAQ;gBACzD,CAAC,CAAE,KAA2B,CAAC,KAAK;gBACpC,CAAC,CAAC,SAAS,CAAC;QAClB,OAAO;YACL,GAAG,MAAM;YACT,KAAK,EAAE;gBACL,IAAI;gBACJ,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC;gBACzB,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC1C;SACF,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,SAAS,CAAC,KAAc;IACtC,IAAI,KAAK,YAAY,KAAK;QAAE,OAAO,KAAK,CAAC,OAAO,CAAC;IACjD,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,IACE,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,QAAQ;QACzB,SAAS,IAAI,KAAK;QAClB,OAAQ,KAA8B,CAAC,OAAO,KAAK,QAAQ,EAC3D,CAAC;QACD,OAAQ,KAA6B,CAAC,OAAO,CAAC;IAChD,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -2,10 +2,19 @@ import type { Agent, ToolsInput } from '@mastra/core/agent';
|
|
|
2
2
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
3
3
|
import { RequestContext } from '@mastra/core/request-context';
|
|
4
4
|
import type { MastraCompositeStore } from '@mastra/core/storage';
|
|
5
|
-
import type
|
|
5
|
+
import { type AnyWorkflow, type WorkflowRunState, type WorkflowRunStatus } from '@mastra/core/workflows';
|
|
6
6
|
import { type ExecutionPrincipalKind } from '../approval-api/principal.js';
|
|
7
|
+
import { type D1RunExecutionIdentity, type RunExecutionIdentity, type StartIdentity } from './execution-admission.js';
|
|
8
|
+
import { type ExecutionFenceStore } from './execution-fence.js';
|
|
7
9
|
import type { HostPubSub } from './pubsub.js';
|
|
8
|
-
import { type RunEconomicOperation, type RunLifecyclePrincipal, type RunScheduleDispatch, type RunTerminalErrorEnvelope, type RunTerminalStatus } from './run-lifecycle.js';
|
|
10
|
+
import { type RunEconomicOperation, type RunLifecyclePrincipal, type RunScheduleDispatch, type RunTerminalCleanup, type RunTerminalErrorEnvelope, type RunTerminalStatus } from './run-lifecycle.js';
|
|
11
|
+
import { type ProgressRunProvenance } from './run-provenance.js';
|
|
12
|
+
import { type RunStatus } from './run-terminal-state.js';
|
|
13
|
+
import { type StartReservationReading } from './start-reservation-contract.js';
|
|
14
|
+
import type { RawWorkflowSnapshot } from './workflow-snapshot-row.js';
|
|
15
|
+
export { RunLifecycleBlockedError, type RunLifecycleBlockedReason, } from './run-lifecycle.js';
|
|
16
|
+
export type { RunStatus } from './run-terminal-state.js';
|
|
17
|
+
import type { StartIdempotencyStore } from './start-idempotency.js';
|
|
9
18
|
export declare class UnknownWorkflowError extends Error {
|
|
10
19
|
constructor(workflowId: string);
|
|
11
20
|
}
|
|
@@ -35,19 +44,10 @@ export declare class RunAlreadyExistsError extends Error {
|
|
|
35
44
|
export declare class RunTerminalConflictError extends Error {
|
|
36
45
|
constructor(workflowId: string, runId: string, status: RunStatus);
|
|
37
46
|
}
|
|
38
|
-
export interface RunLifecycleBlockedReason {
|
|
39
|
-
code: 'DISPUTED_SETTLEMENT';
|
|
40
|
-
message: string;
|
|
41
|
-
}
|
|
42
|
-
export declare class RunLifecycleBlockedError extends Error {
|
|
43
|
-
readonly reason: RunLifecycleBlockedReason;
|
|
44
|
-
constructor(reason: RunLifecycleBlockedReason);
|
|
45
|
-
}
|
|
46
47
|
/** A request the caller can fix: bad input/resume data or step selection. */
|
|
47
48
|
export declare class InvalidRunRequestError extends Error {
|
|
48
49
|
constructor(message: string);
|
|
49
50
|
}
|
|
50
|
-
export type RunStatus = WorkflowRunStatus | 'waiting_callback' | 'waiting_signal' | 'retry_wait' | RunTerminalStatus;
|
|
51
51
|
/** JSON-safe projection of a workflow run outcome for HTTP transport. */
|
|
52
52
|
export interface RunSummary {
|
|
53
53
|
runId: string;
|
|
@@ -99,6 +99,35 @@ export interface RunSummary {
|
|
|
99
99
|
/** ISO 8601. Present on status() projections (read from the stored snapshot). */
|
|
100
100
|
updatedAt?: string;
|
|
101
101
|
}
|
|
102
|
+
/** @internal One physical observation; this does not certify a logical root. */
|
|
103
|
+
export type AuthoritativeStartState = {
|
|
104
|
+
readonly provenance: ProgressRunProvenance;
|
|
105
|
+
readonly snapshot: WorkflowRunState;
|
|
106
|
+
} & ({
|
|
107
|
+
readonly storage: 'd1';
|
|
108
|
+
readonly execution: D1RunExecutionIdentity;
|
|
109
|
+
readonly raw: RawWorkflowSnapshot;
|
|
110
|
+
} | {
|
|
111
|
+
readonly storage: 'unfenced';
|
|
112
|
+
readonly execution: RunExecutionIdentity & {
|
|
113
|
+
readonly tablePrefix: null;
|
|
114
|
+
};
|
|
115
|
+
readonly raw?: never;
|
|
116
|
+
}) & ({
|
|
117
|
+
readonly kind: 'initial';
|
|
118
|
+
readonly summary?: never;
|
|
119
|
+
} | {
|
|
120
|
+
readonly kind: 'result';
|
|
121
|
+
readonly summary: RunSummary;
|
|
122
|
+
});
|
|
123
|
+
/** @internal Ordinary compatibility data, never execution-generation authority. */
|
|
124
|
+
export interface LegacyRunState {
|
|
125
|
+
readonly kind: 'legacy';
|
|
126
|
+
readonly provenanceVersion: 1 | undefined;
|
|
127
|
+
readonly address: Pick<RunExecutionIdentity, 'tablePrefix' | 'workflowId' | 'runId'>;
|
|
128
|
+
readonly snapshot: WorkflowRunState;
|
|
129
|
+
readonly summary: RunSummary;
|
|
130
|
+
}
|
|
102
131
|
/**
|
|
103
132
|
* Which execution leg the provider is minting for. On resume, `step` is the
|
|
104
133
|
* resumed step's normalized path — taken from the caller's step selection,
|
|
@@ -126,21 +155,18 @@ export type RunLeg = {
|
|
|
126
155
|
resumeCount?: number;
|
|
127
156
|
};
|
|
128
157
|
/**
|
|
129
|
-
* Server-side requestContext
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* (
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* results.
|
|
158
|
+
* Server-side requestContext supplied during start and resume preparation.
|
|
159
|
+
* Trusted host starts and verified schedule targets may supply non-reserved
|
|
160
|
+
* application context through storedRequestContext. Capability values,
|
|
161
|
+
* including approval grants, derive from trusted server-side state through
|
|
162
|
+
* this provider (security-threat-model.md, trust boundary 6). Use trusted
|
|
163
|
+
* sources such as the flowsafe approval store; never derive capabilities
|
|
164
|
+
* from client input, model output, or tool results.
|
|
137
165
|
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* on EVERY leg (an empty value when nothing applies) so the overwrite
|
|
143
|
-
* retires stale grants.
|
|
166
|
+
* Resume values overwrite matching persisted keys. Omitting a key retains
|
|
167
|
+
* its persisted value. A provider that scopes a capability per leg must
|
|
168
|
+
* return its key for each leg, using an empty grant list to revoke persisted
|
|
169
|
+
* connector grants.
|
|
144
170
|
*/
|
|
145
171
|
export type RequestContextProvider = (workflowId: string, runId: string, leg: RunLeg) => Record<string, unknown> | undefined | Promise<Record<string, unknown> | undefined>;
|
|
146
172
|
export interface RunnerRuntimeOptions {
|
|
@@ -163,6 +189,39 @@ export interface RunnerRuntimeOptions {
|
|
|
163
189
|
* before this seam existed.
|
|
164
190
|
*/
|
|
165
191
|
pubsub?: HostPubSub;
|
|
192
|
+
/**
|
|
193
|
+
* The deployment execution fence (execution-fence.ts), consulted on EVERY
|
|
194
|
+
* start and resume. THIS is the closure guarantee for runs: every mint in
|
|
195
|
+
* this package funnels through start() and every re-entry through resume(),
|
|
196
|
+
* so a check here cannot be routed around by a surface that forgot to gate
|
|
197
|
+
* itself — the route-level checks are the same refusal made earlier and
|
|
198
|
+
* cheaper, never the boundary.
|
|
199
|
+
*
|
|
200
|
+
* Absent ⇒ unfenced, byte-identical to before this seam existed. `init()`
|
|
201
|
+
* builds one automatically from a `{ DB }` source and REQUIRES an explicit
|
|
202
|
+
* `executionFence` (a store, or `'none'`) from a `{ storage }` one, so
|
|
203
|
+
* absence here is always something a host wrote down.
|
|
204
|
+
*/
|
|
205
|
+
executionFence?: ExecutionFenceStore;
|
|
206
|
+
/**
|
|
207
|
+
* The deployment's start reservations (start-idempotency.ts). The runtime
|
|
208
|
+
* neither creates nor claims one — the surfaces above it do — but it is the
|
|
209
|
+
* one layer that sees EVERY way a run reaches a terminal state, so it owns
|
|
210
|
+
* the terminal reconcile that marks a key spent.
|
|
211
|
+
*
|
|
212
|
+
* Homed here rather than at the routes for exactly that reason: a run can end
|
|
213
|
+
* by completing, by failing, by being cancelled and by timing out, on the
|
|
214
|
+
* workflow surface and the agent surface alike, and a reconcile attached to
|
|
215
|
+
* any one route would miss the rest. A reservation that never settles is not
|
|
216
|
+
* a correctness bug (replay still answers from the snapshot) but it never
|
|
217
|
+
* leaves the drain inventory and never becomes purgeable, so a deployment
|
|
218
|
+
* would eventually be unable to prove itself empty.
|
|
219
|
+
*
|
|
220
|
+
* Absent ⇒ no reconcile. `init()` builds one from a `{ DB }` source, and
|
|
221
|
+
* `DurableObjectRunner.build` refuses a runtime that has none while a DB is
|
|
222
|
+
* bound, so absence means a host with no database to reserve against.
|
|
223
|
+
*/
|
|
224
|
+
startIdempotency?: StartIdempotencyStore;
|
|
166
225
|
}
|
|
167
226
|
/** @inline */
|
|
168
227
|
type OptionalRunRequester = {
|
|
@@ -184,14 +243,14 @@ export type StartRunOptions = {
|
|
|
184
243
|
*/
|
|
185
244
|
runId: string;
|
|
186
245
|
inputData?: unknown;
|
|
187
|
-
/**
|
|
246
|
+
/** Schedule-target or ordinary trusted-start state. */
|
|
188
247
|
initialState?: unknown;
|
|
189
248
|
/**
|
|
190
|
-
* Non-reserved
|
|
191
|
-
* target.
|
|
249
|
+
* Non-reserved context supplied by a trusted host start or a verified
|
|
250
|
+
* schedule target.
|
|
192
251
|
*/
|
|
193
252
|
storedRequestContext?: Record<string, unknown>;
|
|
194
|
-
/** Host
|
|
253
|
+
/** Host correlation token for this execution leg. */
|
|
195
254
|
attemptToken?: string;
|
|
196
255
|
/** Relative run deadline, measured from this start. */
|
|
197
256
|
deadlineMs?: number;
|
|
@@ -199,6 +258,37 @@ export type StartRunOptions = {
|
|
|
199
258
|
economicOperations?: readonly RunEconomicOperation[];
|
|
200
259
|
/** Trusted schedule source; never accepted directly from a public request. */
|
|
201
260
|
scheduleDispatch?: RunScheduleDispatch;
|
|
261
|
+
/**
|
|
262
|
+
* The start's idempotency key. The runtime uses it for exactly one thing: the
|
|
263
|
+
* execution fence's proof-only state admits the start whose key matches its
|
|
264
|
+
* nominated proof key, and this is where that comparison happens. The
|
|
265
|
+
* exactly-once property the key also carries is enforced ABOVE the runtime,
|
|
266
|
+
* by the start reservation the surfaces take before calling in.
|
|
267
|
+
*
|
|
268
|
+
* INTERNAL: it reaches the runtime from a trusted host seam, never from a
|
|
269
|
+
* request body and never through an open request-context key — a tenant able
|
|
270
|
+
* to name the proof key could start a run on a deployment that is supposed to
|
|
271
|
+
* be executing exactly one.
|
|
272
|
+
* @internal
|
|
273
|
+
*/
|
|
274
|
+
idempotencyKey?: string;
|
|
275
|
+
/** @internal Captured infrastructure authority; never request-context data. */
|
|
276
|
+
readonly startReservation?: StartReservationReading;
|
|
277
|
+
/** @internal Captured infrastructure authority; never request-context data. */
|
|
278
|
+
readonly mutationEpoch?: number;
|
|
279
|
+
/** @internal Captured infrastructure authority; never request-context data. */
|
|
280
|
+
readonly startIdentity?: StartIdentity;
|
|
281
|
+
/** @internal Captured infrastructure authority; never request-context data. */
|
|
282
|
+
readonly agentStart?: {
|
|
283
|
+
readonly threaded: boolean;
|
|
284
|
+
};
|
|
285
|
+
/** @internal Captured infrastructure authority; never request-context data. */
|
|
286
|
+
readonly onPreparedStartIdentity?: (execution: RunExecutionIdentity) => void | Promise<void>;
|
|
287
|
+
/** @internal Captured infrastructure authority; never request-context data. */
|
|
288
|
+
readonly runOwnerGuard?: {
|
|
289
|
+
readonly owner: StartIdentity['owner'];
|
|
290
|
+
readonly reservationToken: string;
|
|
291
|
+
};
|
|
202
292
|
} & OptionalRunRequester;
|
|
203
293
|
export type ResumeRunOptions = {
|
|
204
294
|
/** Suspended step id (or nested path). Optional when only one step is suspended. */
|
|
@@ -223,16 +313,62 @@ export interface RunLifecycleTransitionResult {
|
|
|
223
313
|
summary: RunSummary;
|
|
224
314
|
transitioned: boolean;
|
|
225
315
|
casMatched: boolean;
|
|
226
|
-
cleanup:
|
|
227
|
-
revision: number;
|
|
228
|
-
status: RunTerminalStatus;
|
|
229
|
-
cleanupCompleted: boolean;
|
|
230
|
-
scheduleDispatch?: RunScheduleDispatch;
|
|
231
|
-
};
|
|
316
|
+
cleanup: RunTerminalCleanup;
|
|
232
317
|
}
|
|
318
|
+
/** @internal An owning recovery's selected durable outcome. */
|
|
319
|
+
export type RecoveredStart = {
|
|
320
|
+
kind: 'ordinary';
|
|
321
|
+
summary: RunSummary;
|
|
322
|
+
} | {
|
|
323
|
+
kind: 'lifecycle';
|
|
324
|
+
transition: RunLifecycleTransitionResult;
|
|
325
|
+
};
|
|
326
|
+
type RecoveryTargetExpectation = {
|
|
327
|
+
readonly kind: 'workflow';
|
|
328
|
+
} | {
|
|
329
|
+
readonly kind: 'agent';
|
|
330
|
+
readonly id: string;
|
|
331
|
+
readonly threadId: string;
|
|
332
|
+
readonly owner: StartIdentity['owner'];
|
|
333
|
+
readonly threaded: boolean;
|
|
334
|
+
};
|
|
233
335
|
export declare class RunnerRuntime {
|
|
234
336
|
#private;
|
|
235
337
|
constructor(options: RunnerRuntimeOptions);
|
|
338
|
+
/**
|
|
339
|
+
* The deployment execution fence this runtime enforces, or undefined when
|
|
340
|
+
* the host built an unfenced runtime. Exposed so the surfaces ABOVE the
|
|
341
|
+
* runtime — the run object's routes, the thread DO's signal routes — gate on
|
|
342
|
+
* the same store rather than constructing a second one, and so
|
|
343
|
+
* DurableObjectRunner can assert that a runtime built against a bound
|
|
344
|
+
* database is never fence-less.
|
|
345
|
+
*/
|
|
346
|
+
get executionFence(): ExecutionFenceStore | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* The deployment's start reservations, or undefined for a host with no
|
|
349
|
+
* database to reserve against. Exposed for the same reason the fence is: the
|
|
350
|
+
* surfaces ABOVE this runtime reserve and claim against it, and two stores
|
|
351
|
+
* over two bindings would be two different tables answering the same key.
|
|
352
|
+
*/
|
|
353
|
+
get startIdempotency(): StartIdempotencyStore | undefined;
|
|
354
|
+
/**
|
|
355
|
+
* Is this run EXECUTING in this isolate right now?
|
|
356
|
+
*
|
|
357
|
+
* The liveness half of the idempotent-start replay decision, answered from
|
|
358
|
+
* the same `#activeRuns` map the cancel path uses — the runtime's own record
|
|
359
|
+
* of runs it is currently driving. It is in-memory ON PURPOSE: liveness is a
|
|
360
|
+
* property of an isolate that is running code, and any durable proxy for it
|
|
361
|
+
* (a journal, a heartbeat, a timestamp) would keep saying "live" after the
|
|
362
|
+
* isolate that wrote it was evicted, which is precisely the case the probe
|
|
363
|
+
* exists to detect.
|
|
364
|
+
*
|
|
365
|
+
* A `false` here therefore means "not running HERE", which is authoritative
|
|
366
|
+
* only where the run has exactly one possible host — a run Durable Object
|
|
367
|
+
* addressed by `idFromName(workflowId:runId)`, or the thread object an agent
|
|
368
|
+
* run is bound to. Callers that probe across an object boundary must ask the
|
|
369
|
+
* object that owns the run, never their own runtime.
|
|
370
|
+
*/
|
|
371
|
+
isRunActive(workflowId: string, runId: string): boolean;
|
|
236
372
|
/**
|
|
237
373
|
* The host pubsub identity this runtime was built with, or undefined when the
|
|
238
374
|
* host configured none. Exposed so callers can verify the identity and so
|
|
@@ -250,7 +386,9 @@ export declare class RunnerRuntime {
|
|
|
250
386
|
registerAgent<TAgentId extends string, TTools extends ToolsInput, TOutput>(agent: Agent<TAgentId, TTools, TOutput>): void;
|
|
251
387
|
register(workflow: AnyWorkflow): void;
|
|
252
388
|
workflowIds(): string[];
|
|
253
|
-
|
|
389
|
+
/** @internal Retain this physical proof expectation across preparation waits. */
|
|
390
|
+
assertExistingRunAllowed(workflowId: string, runId: string): Promise<D1RunExecutionIdentity | undefined>;
|
|
391
|
+
start(workflowId: string, sourceOptions: StartRunOptions): Promise<RunSummary>;
|
|
254
392
|
/**
|
|
255
393
|
* Reattach to a suspended run — the designed fresh-process pattern:
|
|
256
394
|
* createRun({ runId }) does not clobber an existing snapshot; resume()
|
|
@@ -299,17 +437,24 @@ export declare class RunnerRuntime {
|
|
|
299
437
|
* that did not reach storage. `null` still means the read SUCCEEDED and
|
|
300
438
|
* found nothing.
|
|
301
439
|
*
|
|
302
|
-
* status
|
|
303
|
-
*
|
|
440
|
+
* Both status readers refuse a valid v2 pending row before lifecycle
|
|
441
|
+
* projection; it has no durable execution outcome yet.
|
|
304
442
|
*/
|
|
305
443
|
authoritativeStatus(workflowId: string, runId: string): Promise<RunSummary | null>;
|
|
306
|
-
/**
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
444
|
+
/** @internal Include ordinary v1 and unversioned data from the selected row. */
|
|
445
|
+
authoritativeStartState(workflowId: string, runId: string, options: {
|
|
446
|
+
readonly includeLegacy: true;
|
|
447
|
+
}): Promise<AuthoritativeStartState | LegacyRunState | null>;
|
|
448
|
+
/** @internal Read only modern generation and root-local result data. */
|
|
449
|
+
authoritativeStartState(workflowId: string, runId: string): Promise<AuthoritativeStartState | null>;
|
|
450
|
+
/** @internal Recover only after the exact owning execution has unwound. */
|
|
451
|
+
recoverStartAttempt(value: D1RunExecutionIdentity, recovery: {
|
|
452
|
+
attemptToken: string;
|
|
453
|
+
isOwnerQuiescent: () => boolean | Promise<boolean>;
|
|
454
|
+
startReservation?: StartReservationReading;
|
|
455
|
+
expectedTarget?: RecoveryTargetExpectation;
|
|
456
|
+
}): Promise<RecoveredStart | null>;
|
|
457
|
+
/** @internal Settle the exact selected terminal generation before managed cleanup. */
|
|
458
|
+
settleStartExecution(state: AuthoritativeStartState, originalClaim?: StartReservationReading): Promise<void>;
|
|
313
459
|
}
|
|
314
|
-
export {};
|
|
315
460
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/do-runner/runtime.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/do-runner/runtime.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAGvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EAEL,KAAK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