botmux 2.111.0 → 2.112.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/README.en.md +19 -7
- package/README.md +19 -7
- package/dist/adapters/adopt-route.d.ts.map +1 -1
- package/dist/adapters/adopt-route.js +2 -1
- package/dist/adapters/adopt-route.js.map +1 -1
- package/dist/adapters/backend/herdr-backend.d.ts +29 -0
- package/dist/adapters/backend/herdr-backend.d.ts.map +1 -1
- package/dist/adapters/backend/herdr-backend.js +167 -0
- package/dist/adapters/backend/herdr-backend.js.map +1 -1
- package/dist/adapters/backend/riff-backend.js +2 -2
- package/dist/adapters/backend/sandbox.d.ts +61 -6
- package/dist/adapters/backend/sandbox.d.ts.map +1 -1
- package/dist/adapters/backend/sandbox.js +235 -43
- package/dist/adapters/backend/sandbox.js.map +1 -1
- package/dist/adapters/backend/tmux-backend.d.ts +1 -0
- package/dist/adapters/backend/tmux-backend.d.ts.map +1 -1
- package/dist/adapters/backend/tmux-backend.js +1 -0
- package/dist/adapters/backend/tmux-backend.js.map +1 -1
- package/dist/adapters/cli/claude-code.d.ts +2 -0
- package/dist/adapters/cli/claude-code.d.ts.map +1 -1
- package/dist/adapters/cli/claude-code.js +7 -0
- package/dist/adapters/cli/claude-code.js.map +1 -1
- package/dist/adapters/cli/codex-app-turn.d.ts +16 -0
- package/dist/adapters/cli/codex-app-turn.d.ts.map +1 -1
- package/dist/adapters/cli/codex-app-turn.js +26 -0
- package/dist/adapters/cli/codex-app-turn.js.map +1 -1
- package/dist/adapters/cli/codex.d.ts.map +1 -1
- package/dist/adapters/cli/codex.js +1 -0
- package/dist/adapters/cli/codex.js.map +1 -1
- package/dist/adapters/cli/grok.d.ts +8 -6
- package/dist/adapters/cli/grok.d.ts.map +1 -1
- package/dist/adapters/cli/grok.js +14 -6
- package/dist/adapters/cli/grok.js.map +1 -1
- package/dist/adapters/cli/read-isolation.d.ts +40 -14
- package/dist/adapters/cli/read-isolation.d.ts.map +1 -1
- package/dist/adapters/cli/read-isolation.js +116 -19
- package/dist/adapters/cli/read-isolation.js.map +1 -1
- package/dist/adapters/cli/runner-control-channel.d.ts +32 -0
- package/dist/adapters/cli/runner-control-channel.d.ts.map +1 -0
- package/dist/adapters/cli/runner-control-channel.js +104 -0
- package/dist/adapters/cli/runner-control-channel.js.map +1 -0
- package/dist/adapters/cli/shared-hints.d.ts +1 -1
- package/dist/adapters/cli/shared-hints.d.ts.map +1 -1
- package/dist/adapters/cli/shared-hints.js +9 -0
- package/dist/adapters/cli/shared-hints.js.map +1 -1
- package/dist/adapters/cli/traex.d.ts.map +1 -1
- package/dist/adapters/cli/traex.js +100 -64
- package/dist/adapters/cli/traex.js.map +1 -1
- package/dist/adapters/cli/types.d.ts +13 -0
- package/dist/adapters/cli/types.d.ts.map +1 -1
- package/dist/bot-registry.d.ts +36 -27
- package/dist/bot-registry.d.ts.map +1 -1
- package/dist/bot-registry.js +354 -8
- package/dist/bot-registry.js.map +1 -1
- package/dist/cli/saved-workflow.d.ts +25 -0
- package/dist/cli/saved-workflow.d.ts.map +1 -0
- package/dist/cli/saved-workflow.js +338 -0
- package/dist/cli/saved-workflow.js.map +1 -0
- package/dist/cli/send-dispatch.d.ts +18 -3
- package/dist/cli/send-dispatch.d.ts.map +1 -1
- package/dist/cli/send-dispatch.js +22 -3
- package/dist/cli/send-dispatch.js.map +1 -1
- package/dist/cli/v3-run-cancel.d.ts +47 -0
- package/dist/cli/v3-run-cancel.d.ts.map +1 -0
- package/dist/cli/v3-run-cancel.js +96 -0
- package/dist/cli/v3-run-cancel.js.map +1 -0
- package/dist/cli/vc-agent.d.ts.map +1 -1
- package/dist/cli/vc-agent.js +54 -1
- package/dist/cli/vc-agent.js.map +1 -1
- package/dist/cli/workflow-migration.d.ts +39 -0
- package/dist/cli/workflow-migration.d.ts.map +1 -0
- package/dist/cli/workflow-migration.js +302 -0
- package/dist/cli/workflow-migration.js.map +1 -0
- package/dist/cli/workflow-run-archive.d.ts +29 -0
- package/dist/cli/workflow-run-archive.d.ts.map +1 -0
- package/dist/cli/workflow-run-archive.js +183 -0
- package/dist/cli/workflow-run-archive.js.map +1 -0
- package/dist/cli/workflow.d.ts +5 -10
- package/dist/cli/workflow.d.ts.map +1 -1
- package/dist/cli/workflow.js +85 -764
- package/dist/cli/workflow.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1018 -191
- package/dist/cli.js.map +1 -1
- package/dist/codex-app-runner.js +30 -21
- package/dist/codex-app-runner.js.map +1 -1
- package/dist/core/command-handler.d.ts.map +1 -1
- package/dist/core/command-handler.js +21 -9
- package/dist/core/command-handler.js.map +1 -1
- package/dist/core/current-turn-provenance.d.ts +39 -0
- package/dist/core/current-turn-provenance.d.ts.map +1 -0
- package/dist/core/current-turn-provenance.js +122 -0
- package/dist/core/current-turn-provenance.js.map +1 -0
- package/dist/core/daemon-ipc-auth.d.ts +20 -0
- package/dist/core/daemon-ipc-auth.d.ts.map +1 -0
- package/dist/core/daemon-ipc-auth.js +44 -0
- package/dist/core/daemon-ipc-auth.js.map +1 -0
- package/dist/core/daemon-ipc-session-auth.d.ts +37 -0
- package/dist/core/daemon-ipc-session-auth.d.ts.map +1 -0
- package/dist/core/daemon-ipc-session-auth.js +35 -0
- package/dist/core/daemon-ipc-session-auth.js.map +1 -0
- package/dist/core/dashboard-command/index.d.ts +0 -2
- package/dist/core/dashboard-command/index.d.ts.map +1 -1
- package/dist/core/dashboard-command/index.js +2 -2
- package/dist/core/dashboard-command/index.js.map +1 -1
- package/dist/core/dashboard-command/stub.d.ts +1 -1
- package/dist/core/dashboard-command/stub.d.ts.map +1 -1
- package/dist/core/dashboard-command/stub.js +0 -1
- package/dist/core/dashboard-command/stub.js.map +1 -1
- package/dist/core/dashboard-ipc-server.d.ts +11 -2
- package/dist/core/dashboard-ipc-server.d.ts.map +1 -1
- package/dist/core/dashboard-ipc-server.js +266 -41
- package/dist/core/dashboard-ipc-server.js.map +1 -1
- package/dist/core/dashboard-secret.d.ts +3 -0
- package/dist/core/dashboard-secret.d.ts.map +1 -0
- package/dist/core/dashboard-secret.js +7 -0
- package/dist/core/dashboard-secret.js.map +1 -0
- package/dist/core/data-dir.d.ts +24 -0
- package/dist/core/data-dir.d.ts.map +1 -0
- package/dist/core/data-dir.js +48 -0
- package/dist/core/data-dir.js.map +1 -0
- package/dist/core/inflight-input-tracker.d.ts +4 -2
- package/dist/core/inflight-input-tracker.d.ts.map +1 -1
- package/dist/core/inflight-input-tracker.js +6 -5
- package/dist/core/inflight-input-tracker.js.map +1 -1
- package/dist/core/inject-queue-policy.d.ts +70 -0
- package/dist/core/inject-queue-policy.d.ts.map +1 -0
- package/dist/core/inject-queue-policy.js +30 -0
- package/dist/core/inject-queue-policy.js.map +1 -0
- package/dist/core/maintenance.d.ts +1 -1
- package/dist/core/maintenance.d.ts.map +1 -1
- package/dist/core/maintenance.js +3 -2
- package/dist/core/maintenance.js.map +1 -1
- package/dist/core/managed-origin-capability.d.ts +30 -0
- package/dist/core/managed-origin-capability.d.ts.map +1 -0
- package/dist/core/managed-origin-capability.js +88 -0
- package/dist/core/managed-origin-capability.js.map +1 -0
- package/dist/core/role-library.d.ts +15 -0
- package/dist/core/role-library.d.ts.map +1 -0
- package/dist/core/role-library.js +75 -0
- package/dist/core/role-library.js.map +1 -0
- package/dist/core/session-cwd.d.ts +14 -0
- package/dist/core/session-cwd.d.ts.map +1 -0
- package/dist/core/session-cwd.js +17 -0
- package/dist/core/session-cwd.js.map +1 -0
- package/dist/core/session-manager.d.ts +4 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +27 -8
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-marker.d.ts +22 -0
- package/dist/core/session-marker.d.ts.map +1 -1
- package/dist/core/session-marker.js +185 -20
- package/dist/core/session-marker.js.map +1 -1
- package/dist/core/slash-inject.d.ts +15 -0
- package/dist/core/slash-inject.d.ts.map +1 -0
- package/dist/core/slash-inject.js +25 -0
- package/dist/core/slash-inject.js.map +1 -0
- package/dist/core/terminal-url.d.ts +1 -0
- package/dist/core/terminal-url.d.ts.map +1 -1
- package/dist/core/terminal-url.js +14 -8
- package/dist/core/terminal-url.js.map +1 -1
- package/dist/core/terminal-write-auth.d.ts +26 -0
- package/dist/core/terminal-write-auth.d.ts.map +1 -1
- package/dist/core/terminal-write-auth.js +48 -3
- package/dist/core/terminal-write-auth.js.map +1 -1
- package/dist/core/trigger-session.d.ts +24 -1
- package/dist/core/trigger-session.d.ts.map +1 -1
- package/dist/core/trigger-session.js +106 -15
- package/dist/core/trigger-session.js.map +1 -1
- package/dist/core/types.d.ts +26 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +10 -0
- package/dist/core/types.js.map +1 -1
- package/dist/core/worker-pool.d.ts +65 -2
- package/dist/core/worker-pool.d.ts.map +1 -1
- package/dist/core/worker-pool.js +459 -39
- package/dist/core/worker-pool.js.map +1 -1
- package/dist/daemon.d.ts +249 -8
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +7383 -1195
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard/aggregator.d.ts +1 -1
- package/dist/dashboard/aggregator.d.ts.map +1 -1
- package/dist/dashboard/aggregator.js +2 -2
- package/dist/dashboard/aggregator.js.map +1 -1
- package/dist/dashboard/auth.d.ts +3 -8
- package/dist/dashboard/auth.d.ts.map +1 -1
- package/dist/dashboard/auth.js +63 -22
- package/dist/dashboard/auth.js.map +1 -1
- package/dist/dashboard/bot-onboarding.d.ts +5 -0
- package/dist/dashboard/bot-onboarding.d.ts.map +1 -1
- package/dist/dashboard/bot-onboarding.js +37 -0
- package/dist/dashboard/bot-onboarding.js.map +1 -1
- package/dist/dashboard/connector-api.d.ts.map +1 -1
- package/dist/dashboard/connector-api.js +42 -2
- package/dist/dashboard/connector-api.js.map +1 -1
- package/dist/dashboard/daemon-internal-api.d.ts +0 -2
- package/dist/dashboard/daemon-internal-api.d.ts.map +1 -1
- package/dist/dashboard/daemon-internal-api.js +26 -93
- package/dist/dashboard/daemon-internal-api.js.map +1 -1
- package/dist/dashboard/daemon-internal-client.d.ts.map +1 -1
- package/dist/dashboard/daemon-internal-client.js +2 -3
- package/dist/dashboard/daemon-internal-client.js.map +1 -1
- package/dist/dashboard/federation-api.js +1 -1
- package/dist/dashboard/federation-api.js.map +1 -1
- package/dist/dashboard/federation-spoke-api.js +1 -1
- package/dist/dashboard/federation-spoke-api.js.map +1 -1
- package/dist/dashboard/history-senders.d.ts +3 -0
- package/dist/dashboard/history-senders.d.ts.map +1 -1
- package/dist/dashboard/history-senders.js.map +1 -1
- package/dist/dashboard/http.d.ts +4 -0
- package/dist/dashboard/http.d.ts.map +1 -0
- package/dist/dashboard/http.js +6 -0
- package/dist/dashboard/http.js.map +1 -0
- package/dist/dashboard/registry.d.ts +4 -0
- package/dist/dashboard/registry.d.ts.map +1 -1
- package/dist/dashboard/registry.js.map +1 -1
- package/dist/dashboard/trigger-api.js +1 -1
- package/dist/dashboard/trigger-api.js.map +1 -1
- package/dist/dashboard/v3-runs-api.d.ts +13 -10
- package/dist/dashboard/v3-runs-api.d.ts.map +1 -1
- package/dist/dashboard/v3-runs-api.js +121 -4
- package/dist/dashboard/v3-runs-api.js.map +1 -1
- package/dist/dashboard/vc-consumer-profiles-api.d.ts +105 -0
- package/dist/dashboard/vc-consumer-profiles-api.d.ts.map +1 -0
- package/dist/dashboard/vc-consumer-profiles-api.js +312 -0
- package/dist/dashboard/vc-consumer-profiles-api.js.map +1 -0
- package/dist/dashboard/web/app.d.ts.map +1 -1
- package/dist/dashboard/web/app.js +7 -6
- package/dist/dashboard/web/app.js.map +1 -1
- package/dist/dashboard/web/bot-defaults-page.d.ts.map +1 -1
- package/dist/dashboard/web/bot-defaults-page.js +9 -14
- package/dist/dashboard/web/bot-defaults-page.js.map +1 -1
- package/dist/dashboard/web/bot-onboarding.d.ts.map +1 -1
- package/dist/dashboard/web/bot-onboarding.js +7 -3
- package/dist/dashboard/web/bot-onboarding.js.map +1 -1
- package/dist/dashboard/web/connectors-page.d.ts +5 -0
- package/dist/dashboard/web/connectors-page.d.ts.map +1 -1
- package/dist/dashboard/web/connectors-page.js +16 -12
- package/dist/dashboard/web/connectors-page.js.map +1 -1
- package/dist/dashboard/web/create-session-entry.d.ts +4 -0
- package/dist/dashboard/web/create-session-entry.d.ts.map +1 -0
- package/dist/dashboard/web/create-session-entry.js +17 -0
- package/dist/dashboard/web/create-session-entry.js.map +1 -0
- package/dist/dashboard/web/dashboard-components.d.ts +5 -0
- package/dist/dashboard/web/dashboard-components.d.ts.map +1 -1
- package/dist/dashboard/web/dashboard-components.js +29 -4
- package/dist/dashboard/web/dashboard-components.js.map +1 -1
- package/dist/dashboard/web/dashboard-routes.d.ts.map +1 -1
- package/dist/dashboard/web/dashboard-routes.js +0 -1
- package/dist/dashboard/web/dashboard-routes.js.map +1 -1
- package/dist/dashboard/web/i18n.d.ts.map +1 -1
- package/dist/dashboard/web/i18n.js +192 -382
- package/dist/dashboard/web/i18n.js.map +1 -1
- package/dist/dashboard/web/preferences.d.ts +3 -0
- package/dist/dashboard/web/preferences.d.ts.map +1 -1
- package/dist/dashboard/web/preferences.js +18 -0
- package/dist/dashboard/web/preferences.js.map +1 -1
- package/dist/dashboard/web/schedules-page.d.ts.map +1 -1
- package/dist/dashboard/web/schedules-page.js +4 -1
- package/dist/dashboard/web/schedules-page.js.map +1 -1
- package/dist/dashboard/web/sessions-page.d.ts.map +1 -1
- package/dist/dashboard/web/sessions-page.js +64 -18
- package/dist/dashboard/web/sessions-page.js.map +1 -1
- package/dist/dashboard/web/settings-page.d.ts.map +1 -1
- package/dist/dashboard/web/settings-page.js +2 -1
- package/dist/dashboard/web/settings-page.js.map +1 -1
- package/dist/dashboard/web/v3-api.d.ts +12 -2
- package/dist/dashboard/web/v3-api.d.ts.map +1 -1
- package/dist/dashboard/web/v3-api.js +34 -6
- package/dist/dashboard/web/v3-api.js.map +1 -1
- package/dist/dashboard/web/v3-components.d.ts +6 -0
- package/dist/dashboard/web/v3-components.d.ts.map +1 -1
- package/dist/dashboard/web/v3-components.js +66 -23
- package/dist/dashboard/web/v3-components.js.map +1 -1
- package/dist/dashboard/web/v3-model.js +1 -1
- package/dist/dashboard/web/v3-model.js.map +1 -1
- package/dist/dashboard/web/v3-terminal.js +2 -2
- package/dist/dashboard/web/v3-terminal.js.map +1 -1
- package/dist/dashboard/web/vc-consumer-profiles-section.d.ts +19 -0
- package/dist/dashboard/web/vc-consumer-profiles-section.d.ts.map +1 -0
- package/dist/dashboard/web/vc-consumer-profiles-section.js +382 -0
- package/dist/dashboard/web/vc-consumer-profiles-section.js.map +1 -0
- package/dist/dashboard/webhook-routes.d.ts.map +1 -1
- package/dist/dashboard/webhook-routes.js +29 -6
- package/dist/dashboard/webhook-routes.js.map +1 -1
- package/dist/dashboard-web/app.js +1 -1
- package/dist/dashboard-web/chunks/bot-defaults-page-RYBL4ZYE.js +4 -0
- package/dist/dashboard-web/chunks/{chunk-OEJIT66L.js → chunk-CMDPZOPK.js} +1 -1
- package/dist/dashboard-web/chunks/chunk-I35DXGM4.js +1 -0
- package/dist/dashboard-web/chunks/chunk-NYZHARIU.js +47 -0
- package/dist/dashboard-web/chunks/chunk-SZOB6VK2.js +1 -0
- package/dist/dashboard-web/chunks/{chunk-YQFXGRSD.js → chunk-YBOHL7T7.js} +1 -1
- package/dist/dashboard-web/chunks/chunk-YWCPDL4S.js +1 -0
- package/dist/dashboard-web/chunks/connectors-page-DAMP7TTV.js +1 -0
- package/dist/dashboard-web/chunks/{groups-page-5AJPPJH2.js → groups-page-BPFA356N.js} +1 -1
- package/dist/dashboard-web/chunks/{insights-page-R3DFECX4.js → insights-page-SHOPHTWY.js} +1 -1
- package/dist/dashboard-web/chunks/{monitor-room-NLMKJLDY.js → monitor-room-PXPJGZCN.js} +1 -1
- package/dist/dashboard-web/chunks/{monitoring-page-EHSOX4GV.js → monitoring-page-4DF54M5Y.js} +1 -1
- package/dist/dashboard-web/chunks/{office-page-OXJKFJ4R.js → office-page-6OHU6KMZ.js} +1 -1
- package/dist/dashboard-web/chunks/{overview-page-GJHIVXJF.js → overview-page-IHIZ6F5M.js} +1 -1
- package/dist/dashboard-web/chunks/{roles-page-6ZODQISW.js → roles-page-JYTBYKEF.js} +1 -1
- package/dist/dashboard-web/chunks/{schedules-page-DAGMHVCH.js → schedules-page-WJ72T7KV.js} +1 -1
- package/dist/dashboard-web/chunks/sessions-page-QC56OIAI.js +3 -0
- package/dist/dashboard-web/chunks/settings-page-TCKWEXTN.js +2 -0
- package/dist/dashboard-web/chunks/{skills-page-J7EVUHXP.js → skills-page-RJJNIECW.js} +1 -1
- package/dist/dashboard-web/chunks/{team-federation-page-YM5JBIII.js → team-federation-page-ZMDX3E7K.js} +1 -1
- package/dist/dashboard-web/chunks/v3-page-VLLAUQ33.js +94 -0
- package/dist/dashboard-web/chunks/{whiteboards-page-75N2U6W4.js → whiteboards-page-NAO53CKM.js} +1 -1
- package/dist/dashboard-web/style.css +363 -274
- package/dist/dashboard.js +194 -78
- package/dist/dashboard.js.map +1 -1
- package/dist/global-config.d.ts +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +12 -87
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/zh.d.ts.map +1 -1
- package/dist/i18n/zh.js +12 -87
- package/dist/i18n/zh.js.map +1 -1
- package/dist/im/lark/brand-template.d.ts +15 -0
- package/dist/im/lark/brand-template.d.ts.map +1 -0
- package/dist/im/lark/brand-template.js +114 -0
- package/dist/im/lark/brand-template.js.map +1 -0
- package/dist/im/lark/card-handler.d.ts +6 -3
- package/dist/im/lark/card-handler.d.ts.map +1 -1
- package/dist/im/lark/card-handler.js +23 -39
- package/dist/im/lark/card-handler.js.map +1 -1
- package/dist/im/lark/client.d.ts +8 -2
- package/dist/im/lark/client.d.ts.map +1 -1
- package/dist/im/lark/client.js +33 -31
- package/dist/im/lark/client.js.map +1 -1
- package/dist/im/lark/doc-comment.d.ts +18 -0
- package/dist/im/lark/doc-comment.d.ts.map +1 -1
- package/dist/im/lark/doc-comment.js +119 -5
- package/dist/im/lark/doc-comment.js.map +1 -1
- package/dist/im/lark/event-dispatcher.d.ts +18 -2
- package/dist/im/lark/event-dispatcher.d.ts.map +1 -1
- package/dist/im/lark/event-dispatcher.js +41 -19
- package/dist/im/lark/event-dispatcher.js.map +1 -1
- package/dist/im/lark/merge-forward.d.ts.map +1 -1
- package/dist/im/lark/merge-forward.js +7 -2
- package/dist/im/lark/merge-forward.js.map +1 -1
- package/dist/im/lark/message-parser.d.ts.map +1 -1
- package/dist/im/lark/message-parser.js +7 -0
- package/dist/im/lark/message-parser.js.map +1 -1
- package/dist/im/lark/overview-card.d.ts +1 -2
- package/dist/im/lark/overview-card.d.ts.map +1 -1
- package/dist/im/lark/overview-card.js +1 -48
- package/dist/im/lark/overview-card.js.map +1 -1
- package/dist/im/lark/v3-blocked-card-handler.d.ts.map +1 -1
- package/dist/im/lark/v3-blocked-card-handler.js +5 -5
- package/dist/im/lark/v3-blocked-card-handler.js.map +1 -1
- package/dist/im/lark/v3-blocked-card.d.ts +1 -0
- package/dist/im/lark/v3-blocked-card.d.ts.map +1 -1
- package/dist/im/lark/v3-blocked-card.js +19 -2
- package/dist/im/lark/v3-blocked-card.js.map +1 -1
- package/dist/im/lark/v3-distillation-card-handler.d.ts +12 -0
- package/dist/im/lark/v3-distillation-card-handler.d.ts.map +1 -0
- package/dist/im/lark/v3-distillation-card-handler.js +107 -0
- package/dist/im/lark/v3-distillation-card-handler.js.map +1 -0
- package/dist/im/lark/v3-distillation-card.d.ts +42 -0
- package/dist/im/lark/v3-distillation-card.d.ts.map +1 -0
- package/dist/im/lark/v3-distillation-card.js +206 -0
- package/dist/im/lark/v3-distillation-card.js.map +1 -0
- package/dist/im/lark/v3-gate-card-handler.d.ts +1 -1
- package/dist/im/lark/v3-gate-card-handler.d.ts.map +1 -1
- package/dist/im/lark/v3-gate-card-handler.js +6 -5
- package/dist/im/lark/v3-gate-card-handler.js.map +1 -1
- package/dist/im/lark/v3-gate-card.d.ts +8 -1
- package/dist/im/lark/v3-gate-card.d.ts.map +1 -1
- package/dist/im/lark/v3-gate-card.js +38 -7
- package/dist/im/lark/v3-gate-card.js.map +1 -1
- package/dist/im/lark/v3-loop-grant-card-handler.d.ts.map +1 -1
- package/dist/im/lark/v3-loop-grant-card-handler.js +3 -4
- package/dist/im/lark/v3-loop-grant-card-handler.js.map +1 -1
- package/dist/im/lark/v3-loop-grant-card.js +1 -1
- package/dist/im/lark/v3-loop-grant-card.js.map +1 -1
- package/dist/im/lark/v3-progress-card-manager.d.ts +79 -0
- package/dist/im/lark/v3-progress-card-manager.d.ts.map +1 -0
- package/dist/im/lark/v3-progress-card-manager.js +444 -0
- package/dist/im/lark/v3-progress-card-manager.js.map +1 -0
- package/dist/im/lark/v3-progress-card.d.ts +26 -0
- package/dist/im/lark/v3-progress-card.d.ts.map +1 -0
- package/dist/im/lark/v3-progress-card.js +211 -0
- package/dist/im/lark/v3-progress-card.js.map +1 -0
- package/dist/im/lark/v3-revisit-grant-card-handler.d.ts.map +1 -1
- package/dist/im/lark/v3-revisit-grant-card-handler.js +3 -4
- package/dist/im/lark/v3-revisit-grant-card-handler.js.map +1 -1
- package/dist/im/lark/v3-revisit-grant-card.js +1 -1
- package/dist/im/lark/v3-revisit-grant-card.js.map +1 -1
- package/dist/im/lark/v3-run-save-card-handler.d.ts +12 -0
- package/dist/im/lark/v3-run-save-card-handler.d.ts.map +1 -0
- package/dist/im/lark/v3-run-save-card-handler.js +160 -0
- package/dist/im/lark/v3-run-save-card-handler.js.map +1 -0
- package/dist/im/lark/v3-run-save-card.d.ts +38 -0
- package/dist/im/lark/v3-run-save-card.d.ts.map +1 -0
- package/dist/im/lark/v3-run-save-card.js +125 -0
- package/dist/im/lark/v3-run-save-card.js.map +1 -0
- package/dist/im/lark/v3-saved-workflow-command.d.ts +36 -0
- package/dist/im/lark/v3-saved-workflow-command.d.ts.map +1 -0
- package/dist/im/lark/v3-saved-workflow-command.js +186 -0
- package/dist/im/lark/v3-saved-workflow-command.js.map +1 -0
- package/dist/im/lark/v3-saved-workflow-handler.d.ts +89 -0
- package/dist/im/lark/v3-saved-workflow-handler.d.ts.map +1 -0
- package/dist/im/lark/v3-saved-workflow-handler.js +212 -0
- package/dist/im/lark/v3-saved-workflow-handler.js.map +1 -0
- package/dist/im/lark/workflow-slash-command.d.ts +7 -110
- package/dist/im/lark/workflow-slash-command.d.ts.map +1 -1
- package/dist/im/lark/workflow-slash-command.js +16 -230
- package/dist/im/lark/workflow-slash-command.js.map +1 -1
- package/dist/index-daemon.js +1 -1
- package/dist/index-daemon.js.map +1 -1
- package/dist/mir-runner.js +11 -15
- package/dist/mir-runner.js.map +1 -1
- package/dist/mira-runner.js +8 -12
- package/dist/mira-runner.js.map +1 -1
- package/dist/services/bridge-turn-queue.d.ts +29 -12
- package/dist/services/bridge-turn-queue.d.ts.map +1 -1
- package/dist/services/bridge-turn-queue.js +59 -23
- package/dist/services/bridge-turn-queue.js.map +1 -1
- package/dist/services/claude-transcript.d.ts +15 -0
- package/dist/services/claude-transcript.d.ts.map +1 -1
- package/dist/services/claude-transcript.js +24 -0
- package/dist/services/claude-transcript.js.map +1 -1
- package/dist/services/codex-bridge-queue.d.ts +13 -2
- package/dist/services/codex-bridge-queue.d.ts.map +1 -1
- package/dist/services/codex-bridge-queue.js +20 -3
- package/dist/services/codex-bridge-queue.js.map +1 -1
- package/dist/services/codex-transcript.d.ts +6 -0
- package/dist/services/codex-transcript.d.ts.map +1 -1
- package/dist/services/codex-transcript.js.map +1 -1
- package/dist/services/grok-transcript.d.ts +3 -2
- package/dist/services/grok-transcript.d.ts.map +1 -1
- package/dist/services/grok-transcript.js +73 -22
- package/dist/services/grok-transcript.js.map +1 -1
- package/dist/services/hook-runner.d.ts.map +1 -1
- package/dist/services/hook-runner.js +26 -3
- package/dist/services/hook-runner.js.map +1 -1
- package/dist/services/schedule-store.d.ts +37 -0
- package/dist/services/schedule-store.d.ts.map +1 -1
- package/dist/services/schedule-store.js +259 -141
- package/dist/services/schedule-store.js.map +1 -1
- package/dist/services/send-policy.d.ts +50 -0
- package/dist/services/send-policy.d.ts.map +1 -1
- package/dist/services/send-policy.js +65 -0
- package/dist/services/send-policy.js.map +1 -1
- package/dist/services/session-lifecycle-hooks.d.ts.map +1 -1
- package/dist/services/session-lifecycle-hooks.js +12 -0
- package/dist/services/session-lifecycle-hooks.js.map +1 -1
- package/dist/services/traex-transcript.d.ts +11 -2
- package/dist/services/traex-transcript.d.ts.map +1 -1
- package/dist/services/traex-transcript.js +142 -8
- package/dist/services/traex-transcript.js.map +1 -1
- package/dist/services/trigger-types.d.ts +6 -1
- package/dist/services/trigger-types.d.ts.map +1 -1
- package/dist/services/trigger-types.js.map +1 -1
- package/dist/services/turn-terminal-deduper.d.ts +14 -0
- package/dist/services/turn-terminal-deduper.d.ts.map +1 -0
- package/dist/services/turn-terminal-deduper.js +34 -0
- package/dist/services/turn-terminal-deduper.js.map +1 -0
- package/dist/services/vc-meeting-action-gate.d.ts +246 -0
- package/dist/services/vc-meeting-action-gate.d.ts.map +1 -0
- package/dist/services/vc-meeting-action-gate.js +756 -0
- package/dist/services/vc-meeting-action-gate.js.map +1 -0
- package/dist/services/vc-meeting-action-store.d.ts +222 -0
- package/dist/services/vc-meeting-action-store.d.ts.map +1 -0
- package/dist/services/vc-meeting-action-store.js +806 -0
- package/dist/services/vc-meeting-action-store.js.map +1 -0
- package/dist/services/vc-meeting-consumer-isolation.d.ts +27 -0
- package/dist/services/vc-meeting-consumer-isolation.d.ts.map +1 -0
- package/dist/services/vc-meeting-consumer-isolation.js +37 -0
- package/dist/services/vc-meeting-consumer-isolation.js.map +1 -0
- package/dist/services/vc-meeting-consumer-profile-bootstrap.d.ts +72 -0
- package/dist/services/vc-meeting-consumer-profile-bootstrap.d.ts.map +1 -0
- package/dist/services/vc-meeting-consumer-profile-bootstrap.js +343 -0
- package/dist/services/vc-meeting-consumer-profile-bootstrap.js.map +1 -0
- package/dist/services/vc-meeting-consumer-profile-store.d.ts +39 -0
- package/dist/services/vc-meeting-consumer-profile-store.d.ts.map +1 -0
- package/dist/services/vc-meeting-consumer-profile-store.js +190 -0
- package/dist/services/vc-meeting-consumer-profile-store.js.map +1 -0
- package/dist/services/vc-meeting-daemon-auth.d.ts +29 -0
- package/dist/services/vc-meeting-daemon-auth.d.ts.map +1 -0
- package/dist/services/vc-meeting-daemon-auth.js +117 -0
- package/dist/services/vc-meeting-daemon-auth.js.map +1 -0
- package/dist/services/vc-meeting-delivery-feed.d.ts +52 -0
- package/dist/services/vc-meeting-delivery-feed.d.ts.map +1 -0
- package/dist/services/vc-meeting-delivery-feed.js +231 -0
- package/dist/services/vc-meeting-delivery-feed.js.map +1 -0
- package/dist/services/vc-meeting-delivery-hub-store.d.ts +213 -0
- package/dist/services/vc-meeting-delivery-hub-store.d.ts.map +1 -0
- package/dist/services/vc-meeting-delivery-hub-store.js +1230 -0
- package/dist/services/vc-meeting-delivery-hub-store.js.map +1 -0
- package/dist/services/vc-meeting-delivery-protocol.d.ts +159 -0
- package/dist/services/vc-meeting-delivery-protocol.d.ts.map +1 -0
- package/dist/services/vc-meeting-delivery-protocol.js +443 -0
- package/dist/services/vc-meeting-delivery-protocol.js.map +1 -0
- package/dist/services/vc-meeting-delivery-receiver.d.ts +80 -0
- package/dist/services/vc-meeting-delivery-receiver.d.ts.map +1 -0
- package/dist/services/vc-meeting-delivery-receiver.js +543 -0
- package/dist/services/vc-meeting-delivery-receiver.js.map +1 -0
- package/dist/services/vc-meeting-delivery-store.d.ts +339 -0
- package/dist/services/vc-meeting-delivery-store.d.ts.map +1 -0
- package/dist/services/vc-meeting-delivery-store.js +1024 -0
- package/dist/services/vc-meeting-delivery-store.js.map +1 -0
- package/dist/services/vc-meeting-feed-metadata-store.d.ts +58 -0
- package/dist/services/vc-meeting-feed-metadata-store.d.ts.map +1 -0
- package/dist/services/vc-meeting-feed-metadata-store.js +356 -0
- package/dist/services/vc-meeting-feed-metadata-store.js.map +1 -0
- package/dist/services/vc-meeting-im-reply.d.ts +55 -0
- package/dist/services/vc-meeting-im-reply.d.ts.map +1 -0
- package/dist/services/vc-meeting-im-reply.js +279 -0
- package/dist/services/vc-meeting-im-reply.js.map +1 -0
- package/dist/services/vc-meeting-im-routing.d.ts +131 -0
- package/dist/services/vc-meeting-im-routing.d.ts.map +1 -0
- package/dist/services/vc-meeting-im-routing.js +449 -0
- package/dist/services/vc-meeting-im-routing.js.map +1 -0
- package/dist/services/vc-meeting-listener-message-store.d.ts +23 -0
- package/dist/services/vc-meeting-listener-message-store.d.ts.map +1 -0
- package/dist/services/vc-meeting-listener-message-store.js +142 -0
- package/dist/services/vc-meeting-listener-message-store.js.map +1 -0
- package/dist/services/vc-meeting-member-policy.d.ts +37 -0
- package/dist/services/vc-meeting-member-policy.d.ts.map +1 -0
- package/dist/services/vc-meeting-member-policy.js +102 -0
- package/dist/services/vc-meeting-member-policy.js.map +1 -0
- package/dist/services/vc-meeting-profile-instructions.d.ts +22 -0
- package/dist/services/vc-meeting-profile-instructions.d.ts.map +1 -0
- package/dist/services/vc-meeting-profile-instructions.js +64 -0
- package/dist/services/vc-meeting-profile-instructions.js.map +1 -0
- package/dist/services/vc-meeting-runtime-store.d.ts +63 -0
- package/dist/services/vc-meeting-runtime-store.d.ts.map +1 -1
- package/dist/services/vc-meeting-runtime-store.js +605 -116
- package/dist/services/vc-meeting-runtime-store.js.map +1 -1
- package/dist/services/vc-meeting-send-policy.d.ts +89 -0
- package/dist/services/vc-meeting-send-policy.d.ts.map +1 -0
- package/dist/services/vc-meeting-send-policy.js +150 -0
- package/dist/services/vc-meeting-send-policy.js.map +1 -0
- package/dist/services/vc-meeting-terminal-reconciler.d.ts +93 -0
- package/dist/services/vc-meeting-terminal-reconciler.d.ts.map +1 -0
- package/dist/services/vc-meeting-terminal-reconciler.js +198 -0
- package/dist/services/vc-meeting-terminal-reconciler.js.map +1 -0
- package/dist/setup/open-platform-automation.d.ts +2 -0
- package/dist/setup/open-platform-automation.d.ts.map +1 -1
- package/dist/setup/open-platform-automation.js +1 -0
- package/dist/setup/open-platform-automation.js.map +1 -1
- package/dist/setup/open-platform-outcome.d.ts +50 -0
- package/dist/setup/open-platform-outcome.d.ts.map +1 -0
- package/dist/setup/open-platform-outcome.js +56 -0
- package/dist/setup/open-platform-outcome.js.map +1 -0
- package/dist/setup/setup-args.d.ts +7 -2
- package/dist/setup/setup-args.d.ts.map +1 -1
- package/dist/setup/setup-args.js +21 -5
- package/dist/setup/setup-args.js.map +1 -1
- package/dist/skills/definitions.d.ts.map +1 -1
- package/dist/skills/definitions.js +66 -54
- package/dist/skills/definitions.js.map +1 -1
- package/dist/skills/injection-mode.d.ts +5 -4
- package/dist/skills/injection-mode.d.ts.map +1 -1
- package/dist/skills/injection-mode.js +19 -10
- package/dist/skills/injection-mode.js.map +1 -1
- package/dist/types.d.ts +187 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/canonical-input-hash.d.ts +5 -0
- package/dist/utils/canonical-input-hash.d.ts.map +1 -0
- package/dist/utils/canonical-input-hash.js +43 -0
- package/dist/utils/canonical-input-hash.js.map +1 -0
- package/dist/utils/canonical-json.d.ts +10 -0
- package/dist/utils/canonical-json.d.ts.map +1 -0
- package/dist/utils/canonical-json.js +23 -0
- package/dist/utils/canonical-json.js.map +1 -0
- package/dist/utils/child-env.d.ts +1 -1
- package/dist/utils/child-env.d.ts.map +1 -1
- package/dist/utils/child-env.js +8 -0
- package/dist/utils/child-env.js.map +1 -1
- package/dist/utils/daemon-discovery.d.ts +4 -0
- package/dist/utils/daemon-discovery.d.ts.map +1 -1
- package/dist/utils/daemon-discovery.js +12 -6
- package/dist/utils/daemon-discovery.js.map +1 -1
- package/dist/utils/file-lock.d.ts.map +1 -1
- package/dist/utils/file-lock.js +696 -102
- package/dist/utils/file-lock.js.map +1 -1
- package/dist/utils/fs-durability.d.ts +20 -0
- package/dist/utils/fs-durability.d.ts.map +1 -0
- package/dist/utils/fs-durability.js +84 -0
- package/dist/utils/fs-durability.js.map +1 -0
- package/dist/utils/global-install.d.ts +5 -2
- package/dist/utils/global-install.d.ts.map +1 -1
- package/dist/utils/global-install.js +22 -4
- package/dist/utils/global-install.js.map +1 -1
- package/dist/utils/herdr-web-history.d.ts +12 -0
- package/dist/utils/herdr-web-history.d.ts.map +1 -0
- package/dist/utils/herdr-web-history.js +74 -0
- package/dist/utils/herdr-web-history.js.map +1 -0
- package/dist/utils/herdr-web-terminal-binding.d.ts +39 -0
- package/dist/utils/herdr-web-terminal-binding.d.ts.map +1 -0
- package/dist/utils/herdr-web-terminal-binding.js +56 -0
- package/dist/utils/herdr-web-terminal-binding.js.map +1 -0
- package/dist/utils/pending-input-queue.d.ts +30 -1
- package/dist/utils/pending-input-queue.d.ts.map +1 -1
- package/dist/utils/pending-input-queue.js +45 -5
- package/dist/utils/pending-input-queue.js.map +1 -1
- package/dist/vc-agent/cards.d.ts +49 -4
- package/dist/vc-agent/cards.d.ts.map +1 -1
- package/dist/vc-agent/cards.js +460 -70
- package/dist/vc-agent/cards.js.map +1 -1
- package/dist/vc-agent/polling-source.d.ts +6 -1
- package/dist/vc-agent/polling-source.d.ts.map +1 -1
- package/dist/vc-agent/polling-source.js +17 -4
- package/dist/vc-agent/polling-source.js.map +1 -1
- package/dist/worker.js +1333 -283
- package/dist/worker.js.map +1 -1
- package/dist/workflows/definition.d.ts +28 -35
- package/dist/workflows/definition.d.ts.map +1 -1
- package/dist/workflows/definition.js +7 -24
- package/dist/workflows/definition.js.map +1 -1
- package/dist/workflows/events/payloads.d.ts +28 -28
- package/dist/workflows/events/replay.d.ts +5 -0
- package/dist/workflows/events/replay.d.ts.map +1 -1
- package/dist/workflows/events/replay.js +6 -1
- package/dist/workflows/events/replay.js.map +1 -1
- package/dist/workflows/events/schema.d.ts +663 -663
- package/dist/workflows/events/schema.d.ts.map +1 -1
- package/dist/workflows/events/schema.js +1 -4
- package/dist/workflows/events/schema.js.map +1 -1
- package/dist/workflows/hostExecutors/botmux-schedule.d.ts +5 -4
- package/dist/workflows/hostExecutors/botmux-schedule.d.ts.map +1 -1
- package/dist/workflows/hostExecutors/botmux-schedule.js +80 -35
- package/dist/workflows/hostExecutors/botmux-schedule.js.map +1 -1
- package/dist/workflows/hostExecutors/feishu-im.d.ts +3 -3
- package/dist/workflows/hostExecutors/feishu-im.d.ts.map +1 -1
- package/dist/workflows/hostExecutors/feishu-im.js +3 -3
- package/dist/workflows/hostExecutors/feishu-im.js.map +1 -1
- package/dist/workflows/hostExecutors/feishu-reply.d.ts +1 -1
- package/dist/workflows/hostExecutors/feishu-reply.d.ts.map +1 -1
- package/dist/workflows/hostExecutors/feishu-reply.js +1 -1
- package/dist/workflows/hostExecutors/feishu-reply.js.map +1 -1
- package/dist/workflows/hostExecutors/feishu-send.d.ts +1 -1
- package/dist/workflows/hostExecutors/feishu-send.d.ts.map +1 -1
- package/dist/workflows/hostExecutors/feishu-send.js +1 -1
- package/dist/workflows/hostExecutors/feishu-send.js.map +1 -1
- package/dist/workflows/hostExecutors/index.d.ts +0 -1
- package/dist/workflows/hostExecutors/index.d.ts.map +1 -1
- package/dist/workflows/hostExecutors/index.js +0 -1
- package/dist/workflows/hostExecutors/index.js.map +1 -1
- package/dist/workflows/hostExecutors/registry.d.ts +1 -1
- package/dist/workflows/hostExecutors/registry.d.ts.map +1 -1
- package/dist/workflows/hostExecutors/types.d.ts +21 -29
- package/dist/workflows/hostExecutors/types.d.ts.map +1 -1
- package/dist/workflows/migration/v2-definition-paths.d.ts +3 -0
- package/dist/workflows/migration/v2-definition-paths.d.ts.map +1 -0
- package/dist/workflows/migration/v2-definition-paths.js +10 -0
- package/dist/workflows/migration/v2-definition-paths.js.map +1 -0
- package/dist/workflows/migration/v2-ledger.d.ts +138 -0
- package/dist/workflows/migration/v2-ledger.d.ts.map +1 -0
- package/dist/workflows/migration/v2-ledger.js +599 -0
- package/dist/workflows/migration/v2-ledger.js.map +1 -0
- package/dist/workflows/migration/v2-migration-service.d.ts +40 -0
- package/dist/workflows/migration/v2-migration-service.d.ts.map +1 -0
- package/dist/workflows/migration/v2-migration-service.js +454 -0
- package/dist/workflows/migration/v2-migration-service.js.map +1 -0
- package/dist/workflows/migration/v2-read-only-ids.d.ts +7 -0
- package/dist/workflows/migration/v2-read-only-ids.d.ts.map +1 -0
- package/dist/workflows/migration/v2-read-only-ids.js +9 -0
- package/dist/workflows/migration/v2-read-only-ids.js.map +1 -0
- package/dist/workflows/migration/v2-run-archive-schema.d.ts +976 -0
- package/dist/workflows/migration/v2-run-archive-schema.d.ts.map +1 -0
- package/dist/workflows/migration/v2-run-archive-schema.js +113 -0
- package/dist/workflows/migration/v2-run-archive-schema.js.map +1 -0
- package/dist/workflows/migration/v2-run-archive.d.ts +92 -0
- package/dist/workflows/migration/v2-run-archive.d.ts.map +1 -0
- package/dist/workflows/migration/v2-run-archive.js +1220 -0
- package/dist/workflows/migration/v2-run-archive.js.map +1 -0
- package/dist/workflows/migration/v2-scanner.d.ts +22 -0
- package/dist/workflows/migration/v2-scanner.d.ts.map +1 -0
- package/dist/workflows/migration/v2-scanner.js +114 -0
- package/dist/workflows/migration/v2-scanner.js.map +1 -0
- package/dist/workflows/migration/v2-to-v3.d.ts +32 -0
- package/dist/workflows/migration/v2-to-v3.d.ts.map +1 -0
- package/dist/workflows/migration/v2-to-v3.js +494 -0
- package/dist/workflows/migration/v2-to-v3.js.map +1 -0
- package/dist/workflows/ops-projection.d.ts.map +1 -1
- package/dist/workflows/ops-projection.js +4 -3
- package/dist/workflows/ops-projection.js.map +1 -1
- package/dist/workflows/shared/idempotency-key.d.ts +19 -0
- package/dist/workflows/shared/idempotency-key.d.ts.map +1 -0
- package/dist/workflows/shared/idempotency-key.js +23 -0
- package/dist/workflows/shared/idempotency-key.js.map +1 -0
- package/dist/workflows/{params.d.ts → shared/params.d.ts} +42 -6
- package/dist/workflows/shared/params.d.ts.map +1 -0
- package/dist/workflows/{params.js → shared/params.js} +91 -4
- package/dist/workflows/shared/params.js.map +1 -0
- package/dist/workflows/shared/provider-reconciler.d.ts +47 -0
- package/dist/workflows/shared/provider-reconciler.d.ts.map +1 -0
- package/dist/workflows/shared/provider-reconciler.js +17 -0
- package/dist/workflows/shared/provider-reconciler.js.map +1 -0
- package/dist/workflows/{spawn-policy.d.ts → shared/sandbox-policy.d.ts} +2 -2
- package/dist/workflows/shared/sandbox-policy.d.ts.map +1 -0
- package/dist/workflows/{spawn-policy.js → shared/sandbox-policy.js} +1 -1
- package/dist/workflows/shared/sandbox-policy.js.map +1 -0
- package/dist/workflows/shared/worker-process.d.ts +29 -0
- package/dist/workflows/shared/worker-process.d.ts.map +1 -0
- package/dist/workflows/shared/worker-process.js +56 -0
- package/dist/workflows/shared/worker-process.js.map +1 -0
- package/dist/workflows/v3/architect.d.ts.map +1 -1
- package/dist/workflows/v3/architect.js +16 -4
- package/dist/workflows/v3/architect.js.map +1 -1
- package/dist/workflows/v3/attempt-ledger.d.ts +23 -0
- package/dist/workflows/v3/attempt-ledger.d.ts.map +1 -0
- package/dist/workflows/v3/attempt-ledger.js +74 -0
- package/dist/workflows/v3/attempt-ledger.js.map +1 -0
- package/dist/workflows/v3/bot-resolve.d.ts +19 -1
- package/dist/workflows/v3/bot-resolve.d.ts.map +1 -1
- package/dist/workflows/v3/bot-resolve.js +129 -3
- package/dist/workflows/v3/bot-resolve.js.map +1 -1
- package/dist/workflows/v3/cli-daemon-command-authority.d.ts +59 -0
- package/dist/workflows/v3/cli-daemon-command-authority.d.ts.map +1 -0
- package/dist/workflows/v3/cli-daemon-command-authority.js +175 -0
- package/dist/workflows/v3/cli-daemon-command-authority.js.map +1 -0
- package/dist/workflows/v3/cli-run.d.ts +27 -0
- package/dist/workflows/v3/cli-run.d.ts.map +1 -1
- package/dist/workflows/v3/cli-run.js +113 -29
- package/dist/workflows/v3/cli-run.js.map +1 -1
- package/dist/workflows/v3/contract.d.ts +16 -16
- package/dist/workflows/v3/contract.d.ts.map +1 -1
- package/dist/workflows/v3/contract.js +15 -11
- package/dist/workflows/v3/contract.js.map +1 -1
- package/dist/workflows/v3/daemon-ipc-auth.d.ts +113 -0
- package/dist/workflows/v3/daemon-ipc-auth.d.ts.map +1 -0
- package/dist/workflows/v3/daemon-ipc-auth.js +294 -0
- package/dist/workflows/v3/daemon-ipc-auth.js.map +1 -0
- package/dist/workflows/v3/daemon-ipc-body.d.ts +30 -0
- package/dist/workflows/v3/daemon-ipc-body.d.ts.map +1 -0
- package/dist/workflows/v3/daemon-ipc-body.js +65 -0
- package/dist/workflows/v3/daemon-ipc-body.js.map +1 -0
- package/dist/workflows/v3/daemon-ipc-client.d.ts +32 -0
- package/dist/workflows/v3/daemon-ipc-client.d.ts.map +1 -0
- package/dist/workflows/v3/daemon-ipc-client.js +74 -0
- package/dist/workflows/v3/daemon-ipc-client.js.map +1 -0
- package/dist/workflows/v3/daemon-run.d.ts +87 -2
- package/dist/workflows/v3/daemon-run.d.ts.map +1 -1
- package/dist/workflows/v3/daemon-run.js +863 -68
- package/dist/workflows/v3/daemon-run.js.map +1 -1
- package/dist/workflows/v3/dag.d.ts +22 -8
- package/dist/workflows/v3/dag.d.ts.map +1 -1
- package/dist/workflows/v3/dag.js +214 -22
- package/dist/workflows/v3/dag.js.map +1 -1
- package/dist/workflows/v3/distillation-compiler.d.ts +36 -0
- package/dist/workflows/v3/distillation-compiler.d.ts.map +1 -0
- package/dist/workflows/v3/distillation-compiler.js +704 -0
- package/dist/workflows/v3/distillation-compiler.js.map +1 -0
- package/dist/workflows/v3/distillation-private-root.d.ts +10 -0
- package/dist/workflows/v3/distillation-private-root.d.ts.map +1 -0
- package/dist/workflows/v3/distillation-private-root.js +34 -0
- package/dist/workflows/v3/distillation-private-root.js.map +1 -0
- package/dist/workflows/v3/distillation-runner.d.ts +64 -0
- package/dist/workflows/v3/distillation-runner.d.ts.map +1 -0
- package/dist/workflows/v3/distillation-runner.js +1028 -0
- package/dist/workflows/v3/distillation-runner.js.map +1 -0
- package/dist/workflows/v3/distillation-schema.d.ts +63 -0
- package/dist/workflows/v3/distillation-schema.d.ts.map +1 -0
- package/dist/workflows/v3/distillation-schema.js +184 -0
- package/dist/workflows/v3/distillation-schema.js.map +1 -0
- package/dist/workflows/v3/distillation-service.d.ts +78 -0
- package/dist/workflows/v3/distillation-service.d.ts.map +1 -0
- package/dist/workflows/v3/distillation-service.js +416 -0
- package/dist/workflows/v3/distillation-service.js.map +1 -0
- package/dist/workflows/v3/distillation-source.d.ts +35 -0
- package/dist/workflows/v3/distillation-source.d.ts.map +1 -0
- package/dist/workflows/v3/distillation-source.js +118 -0
- package/dist/workflows/v3/distillation-source.js.map +1 -0
- package/dist/workflows/v3/distillation-store.d.ts +185 -0
- package/dist/workflows/v3/distillation-store.d.ts.map +1 -0
- package/dist/workflows/v3/distillation-store.js +1127 -0
- package/dist/workflows/v3/distillation-store.js.map +1 -0
- package/dist/workflows/v3/drive-lease.d.ts +7 -0
- package/dist/workflows/v3/drive-lease.d.ts.map +1 -0
- package/dist/workflows/v3/drive-lease.js +10 -0
- package/dist/workflows/v3/drive-lease.js.map +1 -0
- package/dist/workflows/v3/ephemeral-pool.d.ts +1 -1
- package/dist/workflows/v3/ephemeral-pool.d.ts.map +1 -1
- package/dist/workflows/v3/ephemeral-pool.js +222 -37
- package/dist/workflows/v3/ephemeral-pool.js.map +1 -1
- package/dist/workflows/v3/grill-state.d.ts +18 -3
- package/dist/workflows/v3/grill-state.d.ts.map +1 -1
- package/dist/workflows/v3/grill-state.js +22 -5
- package/dist/workflows/v3/grill-state.js.map +1 -1
- package/dist/workflows/v3/host-bindings.d.ts +40 -0
- package/dist/workflows/v3/host-bindings.d.ts.map +1 -0
- package/dist/workflows/v3/host-bindings.js +272 -0
- package/dist/workflows/v3/host-bindings.js.map +1 -0
- package/dist/workflows/v3/host-effect-ledger.d.ts +22 -0
- package/dist/workflows/v3/host-effect-ledger.d.ts.map +1 -0
- package/dist/workflows/v3/host-effect-ledger.js +110 -0
- package/dist/workflows/v3/host-effect-ledger.js.map +1 -0
- package/dist/workflows/v3/host-execution.d.ts +142 -0
- package/dist/workflows/v3/host-execution.d.ts.map +1 -0
- package/dist/workflows/v3/host-execution.js +424 -0
- package/dist/workflows/v3/host-execution.js.map +1 -0
- package/dist/workflows/v3/host.d.ts +46 -10
- package/dist/workflows/v3/host.d.ts.map +1 -1
- package/dist/workflows/v3/host.js +419 -140
- package/dist/workflows/v3/host.js.map +1 -1
- package/dist/workflows/v3/human-gate.d.ts +19 -1
- package/dist/workflows/v3/human-gate.d.ts.map +1 -1
- package/dist/workflows/v3/human-gate.js +145 -19
- package/dist/workflows/v3/human-gate.js.map +1 -1
- package/dist/workflows/v3/journal.d.ts +125 -7
- package/dist/workflows/v3/journal.d.ts.map +1 -1
- package/dist/workflows/v3/journal.js +154 -38
- package/dist/workflows/v3/journal.js.map +1 -1
- package/dist/workflows/v3/library-materialize.d.ts +88 -0
- package/dist/workflows/v3/library-materialize.d.ts.map +1 -0
- package/dist/workflows/v3/library-materialize.js +294 -0
- package/dist/workflows/v3/library-materialize.js.map +1 -0
- package/dist/workflows/v3/library-schema.d.ts +138 -0
- package/dist/workflows/v3/library-schema.d.ts.map +1 -0
- package/dist/workflows/v3/library-schema.js +573 -0
- package/dist/workflows/v3/library-schema.js.map +1 -0
- package/dist/workflows/v3/library-service.d.ts +126 -0
- package/dist/workflows/v3/library-service.d.ts.map +1 -0
- package/dist/workflows/v3/library-service.js +542 -0
- package/dist/workflows/v3/library-service.js.map +1 -0
- package/dist/workflows/v3/library-store.d.ts +124 -0
- package/dist/workflows/v3/library-store.d.ts.map +1 -0
- package/dist/workflows/v3/library-store.js +665 -0
- package/dist/workflows/v3/library-store.js.map +1 -0
- package/dist/workflows/v3/orchestrator.d.ts +9 -1
- package/dist/workflows/v3/orchestrator.d.ts.map +1 -1
- package/dist/workflows/v3/orchestrator.js +2 -1
- package/dist/workflows/v3/orchestrator.js.map +1 -1
- package/dist/workflows/v3/progress-projection.d.ts +99 -0
- package/dist/workflows/v3/progress-projection.d.ts.map +1 -0
- package/dist/workflows/v3/progress-projection.js +197 -0
- package/dist/workflows/v3/progress-projection.js.map +1 -0
- package/dist/workflows/v3/run-envelope.d.ts +1279 -0
- package/dist/workflows/v3/run-envelope.d.ts.map +1 -0
- package/dist/workflows/v3/run-envelope.js +681 -0
- package/dist/workflows/v3/run-envelope.js.map +1 -0
- package/dist/workflows/v3/runtime.d.ts +39 -7
- package/dist/workflows/v3/runtime.d.ts.map +1 -1
- package/dist/workflows/v3/runtime.js +1992 -100
- package/dist/workflows/v3/runtime.js.map +1 -1
- package/dist/workflows/v3/session-relay-client.d.ts +61 -0
- package/dist/workflows/v3/session-relay-client.d.ts.map +1 -0
- package/dist/workflows/v3/session-relay-client.js +92 -0
- package/dist/workflows/v3/session-relay-client.js.map +1 -0
- package/dist/workflows/v3/session-relay.d.ts +66 -0
- package/dist/workflows/v3/session-relay.d.ts.map +1 -0
- package/dist/workflows/v3/session-relay.js +157 -0
- package/dist/workflows/v3/session-relay.js.map +1 -0
- package/dist/workflows/v3/start-intent.d.ts +8 -0
- package/dist/workflows/v3/start-intent.d.ts.map +1 -0
- package/dist/workflows/v3/start-intent.js +34 -0
- package/dist/workflows/v3/start-intent.js.map +1 -0
- package/dist/workflows/v3/state.d.ts +11 -2
- package/dist/workflows/v3/state.d.ts.map +1 -1
- package/dist/workflows/v3/state.js +182 -10
- package/dist/workflows/v3/state.js.map +1 -1
- package/dist/workflows/v3/template-bindings.d.ts +22 -0
- package/dist/workflows/v3/template-bindings.d.ts.map +1 -0
- package/dist/workflows/v3/template-bindings.js +204 -0
- package/dist/workflows/v3/template-bindings.js.map +1 -0
- package/dist/workflows/v3/worker-fence.d.ts +158 -0
- package/dist/workflows/v3/worker-fence.d.ts.map +1 -0
- package/dist/workflows/v3/worker-fence.js +685 -0
- package/dist/workflows/v3/worker-fence.js.map +1 -0
- package/package.json +3 -2
- package/dist/core/dashboard-command/workflows.d.ts +0 -20
- package/dist/core/dashboard-command/workflows.d.ts.map +0 -1
- package/dist/core/dashboard-command/workflows.js +0 -45
- package/dist/core/dashboard-command/workflows.js.map +0 -1
- package/dist/dashboard/web/legacy-workflow-link.d.ts +0 -2
- package/dist/dashboard/web/legacy-workflow-link.d.ts.map +0 -1
- package/dist/dashboard/web/legacy-workflow-link.js +0 -12
- package/dist/dashboard/web/legacy-workflow-link.js.map +0 -1
- package/dist/dashboard/web/legacy-workflow-page.d.ts +0 -3
- package/dist/dashboard/web/legacy-workflow-page.d.ts.map +0 -1
- package/dist/dashboard/web/legacy-workflow-page.js +0 -717
- package/dist/dashboard/web/legacy-workflow-page.js.map +0 -1
- package/dist/dashboard/web/workflow-version-switch.d.ts +0 -8
- package/dist/dashboard/web/workflow-version-switch.d.ts.map +0 -1
- package/dist/dashboard/web/workflow-version-switch.js +0 -9
- package/dist/dashboard/web/workflow-version-switch.js.map +0 -1
- package/dist/dashboard/web/workflows.d.ts +0 -273
- package/dist/dashboard/web/workflows.d.ts.map +0 -1
- package/dist/dashboard/web/workflows.js +0 -436
- package/dist/dashboard/web/workflows.js.map +0 -1
- package/dist/dashboard/workflow-api.d.ts +0 -30
- package/dist/dashboard/workflow-api.d.ts.map +0 -1
- package/dist/dashboard/workflow-api.js +0 -397
- package/dist/dashboard/workflow-api.js.map +0 -1
- package/dist/dashboard/workflow-card-model.d.ts +0 -127
- package/dist/dashboard/workflow-card-model.d.ts.map +0 -1
- package/dist/dashboard/workflow-card-model.js +0 -186
- package/dist/dashboard/workflow-card-model.js.map +0 -1
- package/dist/dashboard/workflows-action-helpers.d.ts +0 -105
- package/dist/dashboard/workflows-action-helpers.d.ts.map +0 -1
- package/dist/dashboard/workflows-action-helpers.js +0 -196
- package/dist/dashboard/workflows-action-helpers.js.map +0 -1
- package/dist/dashboard-web/chunks/bot-defaults-page-7T7DPOV6.js +0 -4
- package/dist/dashboard-web/chunks/chunk-IGXYYRYJ.js +0 -1
- package/dist/dashboard-web/chunks/chunk-ISOD7VDX.js +0 -1
- package/dist/dashboard-web/chunks/chunk-PNK3HQBI.js +0 -37
- package/dist/dashboard-web/chunks/chunk-SRIE4MLQ.js +0 -1
- package/dist/dashboard-web/chunks/connectors-page-UQ4QBE45.js +0 -1
- package/dist/dashboard-web/chunks/legacy-workflow-page-QMC7OZXH.js +0 -2
- package/dist/dashboard-web/chunks/sessions-page-NNZIDHZM.js +0 -3
- package/dist/dashboard-web/chunks/settings-page-LJIXX5LQ.js +0 -2
- package/dist/dashboard-web/chunks/v3-page-YLYVHGKD.js +0 -94
- package/dist/dashboard-web/terminal-replay.html +0 -227
- package/dist/im/lark/workflow-card-handler.d.ts +0 -51
- package/dist/im/lark/workflow-card-handler.d.ts.map +0 -1
- package/dist/im/lark/workflow-card-handler.js +0 -163
- package/dist/im/lark/workflow-card-handler.js.map +0 -1
- package/dist/im/lark/workflow-cards.d.ts +0 -47
- package/dist/im/lark/workflow-cards.d.ts.map +0 -1
- package/dist/im/lark/workflow-cards.js +0 -231
- package/dist/im/lark/workflow-cards.js.map +0 -1
- package/dist/im/lark/workflow-progress-card.d.ts +0 -81
- package/dist/im/lark/workflow-progress-card.d.ts.map +0 -1
- package/dist/im/lark/workflow-progress-card.js +0 -336
- package/dist/im/lark/workflow-progress-card.js.map +0 -1
- package/dist/im/lark/workflows-card.d.ts +0 -102
- package/dist/im/lark/workflows-card.d.ts.map +0 -1
- package/dist/im/lark/workflows-card.js +0 -737
- package/dist/im/lark/workflows-card.js.map +0 -1
- package/dist/workflows/attempt-resume.d.ts +0 -119
- package/dist/workflows/attempt-resume.d.ts.map +0 -1
- package/dist/workflows/attempt-resume.js +0 -392
- package/dist/workflows/attempt-resume.js.map +0 -1
- package/dist/workflows/blob.d.ts +0 -27
- package/dist/workflows/blob.d.ts.map +0 -1
- package/dist/workflows/blob.js +0 -40
- package/dist/workflows/blob.js.map +0 -1
- package/dist/workflows/cancel-run.d.ts +0 -45
- package/dist/workflows/cancel-run.d.ts.map +0 -1
- package/dist/workflows/cancel-run.js +0 -99
- package/dist/workflows/cancel-run.js.map +0 -1
- package/dist/workflows/cancel.d.ts +0 -111
- package/dist/workflows/cancel.d.ts.map +0 -1
- package/dist/workflows/cancel.js +0 -120
- package/dist/workflows/cancel.js.map +0 -1
- package/dist/workflows/catalog.d.ts +0 -60
- package/dist/workflows/catalog.d.ts.map +0 -1
- package/dist/workflows/catalog.js +0 -119
- package/dist/workflows/catalog.js.map +0 -1
- package/dist/workflows/cold-attach.d.ts +0 -30
- package/dist/workflows/cold-attach.d.ts.map +0 -1
- package/dist/workflows/cold-attach.js +0 -40
- package/dist/workflows/cold-attach.js.map +0 -1
- package/dist/workflows/cold-scan.d.ts +0 -21
- package/dist/workflows/cold-scan.d.ts.map +0 -1
- package/dist/workflows/cold-scan.js +0 -70
- package/dist/workflows/cold-scan.js.map +0 -1
- package/dist/workflows/daemon-spawn.d.ts +0 -119
- package/dist/workflows/daemon-spawn.d.ts.map +0 -1
- package/dist/workflows/daemon-spawn.js +0 -564
- package/dist/workflows/daemon-spawn.js.map +0 -1
- package/dist/workflows/effect-input.d.ts +0 -4
- package/dist/workflows/effect-input.d.ts.map +0 -1
- package/dist/workflows/effect-input.js +0 -19
- package/dist/workflows/effect-input.js.map +0 -1
- package/dist/workflows/events/append.d.ts +0 -77
- package/dist/workflows/events/append.d.ts.map +0 -1
- package/dist/workflows/events/append.js +0 -214
- package/dist/workflows/events/append.js.map +0 -1
- package/dist/workflows/events/idempotency.d.ts +0 -77
- package/dist/workflows/events/idempotency.d.ts.map +0 -1
- package/dist/workflows/events/idempotency.js +0 -116
- package/dist/workflows/events/idempotency.js.map +0 -1
- package/dist/workflows/events/index.d.ts +0 -7
- package/dist/workflows/events/index.d.ts.map +0 -1
- package/dist/workflows/events/index.js +0 -7
- package/dist/workflows/events/index.js.map +0 -1
- package/dist/workflows/fanout.d.ts +0 -36
- package/dist/workflows/fanout.d.ts.map +0 -1
- package/dist/workflows/fanout.js +0 -115
- package/dist/workflows/fanout.js.map +0 -1
- package/dist/workflows/hostExecutors/protocol.d.ts +0 -42
- package/dist/workflows/hostExecutors/protocol.d.ts.map +0 -1
- package/dist/workflows/hostExecutors/protocol.js +0 -181
- package/dist/workflows/hostExecutors/protocol.js.map +0 -1
- package/dist/workflows/loader.d.ts +0 -30
- package/dist/workflows/loader.d.ts.map +0 -1
- package/dist/workflows/loader.js +0 -84
- package/dist/workflows/loader.js.map +0 -1
- package/dist/workflows/loop.d.ts +0 -50
- package/dist/workflows/loop.d.ts.map +0 -1
- package/dist/workflows/loop.js +0 -408
- package/dist/workflows/loop.js.map +0 -1
- package/dist/workflows/orchestrator.d.ts +0 -171
- package/dist/workflows/orchestrator.d.ts.map +0 -1
- package/dist/workflows/orchestrator.js +0 -609
- package/dist/workflows/orchestrator.js.map +0 -1
- package/dist/workflows/output-binding.d.ts +0 -77
- package/dist/workflows/output-binding.d.ts.map +0 -1
- package/dist/workflows/output-binding.js +0 -329
- package/dist/workflows/output-binding.js.map +0 -1
- package/dist/workflows/params.d.ts.map +0 -1
- package/dist/workflows/params.js.map +0 -1
- package/dist/workflows/resume.d.ts +0 -263
- package/dist/workflows/resume.d.ts.map +0 -1
- package/dist/workflows/resume.js +0 -808
- package/dist/workflows/resume.js.map +0 -1
- package/dist/workflows/run-id.d.ts +0 -2
- package/dist/workflows/run-id.d.ts.map +0 -1
- package/dist/workflows/run-id.js +0 -7
- package/dist/workflows/run-id.js.map +0 -1
- package/dist/workflows/run-init.d.ts +0 -48
- package/dist/workflows/run-init.d.ts.map +0 -1
- package/dist/workflows/run-init.js +0 -100
- package/dist/workflows/run-init.js.map +0 -1
- package/dist/workflows/runs-dir.d.ts +0 -4
- package/dist/workflows/runs-dir.d.ts.map +0 -1
- package/dist/workflows/runs-dir.js +0 -15
- package/dist/workflows/runs-dir.js.map +0 -1
- package/dist/workflows/runtime.d.ts +0 -215
- package/dist/workflows/runtime.d.ts.map +0 -1
- package/dist/workflows/runtime.js +0 -630
- package/dist/workflows/runtime.js.map +0 -1
- package/dist/workflows/spawn-bot.d.ts +0 -165
- package/dist/workflows/spawn-bot.d.ts.map +0 -1
- package/dist/workflows/spawn-bot.js +0 -215
- package/dist/workflows/spawn-bot.js.map +0 -1
- package/dist/workflows/spawn-policy.d.ts.map +0 -1
- package/dist/workflows/spawn-policy.js.map +0 -1
- package/dist/workflows/system.d.ts +0 -49
- package/dist/workflows/system.d.ts.map +0 -1
- package/dist/workflows/system.js +0 -48
- package/dist/workflows/system.js.map +0 -1
- package/dist/workflows/trigger-from-envelope.d.ts +0 -13
- package/dist/workflows/trigger-from-envelope.d.ts.map +0 -1
- package/dist/workflows/trigger-from-envelope.js +0 -68
- package/dist/workflows/trigger-from-envelope.js.map +0 -1
- package/dist/workflows/trigger-run.d.ts +0 -70
- package/dist/workflows/trigger-run.d.ts.map +0 -1
- package/dist/workflows/trigger-run.js +0 -88
- package/dist/workflows/trigger-run.js.map +0 -1
- package/dist/workflows/wait.d.ts +0 -141
- package/dist/workflows/wait.d.ts.map +0 -1
- package/dist/workflows/wait.js +0 -203
- package/dist/workflows/wait.js.map +0 -1
|
@@ -0,0 +1,1279 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Immutable v3 run execution envelope.
|
|
3
|
+
*
|
|
4
|
+
* `run.json` is the durable authorization/identity boundary between the
|
|
5
|
+
* pre-runtime product flows (grill Gate-2, saved-definition instantiation, or
|
|
6
|
+
* the local developer CLI) and the v3 scheduler. It deliberately contains no
|
|
7
|
+
* mutable phase/status: once execution starts, `journal.ndjson` is the only
|
|
8
|
+
* state truth and `STATE` remains a derived projection.
|
|
9
|
+
*
|
|
10
|
+
* Publication is create-once. Every referenced artifact is pinned by the
|
|
11
|
+
* SHA-256 of its exact bytes; readers verify and parse those same bytes so a
|
|
12
|
+
* caller cannot approve one DAG and execute a different one after a re-read.
|
|
13
|
+
*/
|
|
14
|
+
import { z } from 'zod';
|
|
15
|
+
import { type V3Dag } from './dag.js';
|
|
16
|
+
import type { Spec } from './contract.js';
|
|
17
|
+
import type { RunChatBinding } from './grill-state.js';
|
|
18
|
+
export declare const V3_RUN_ENVELOPE_FILE = "run.json";
|
|
19
|
+
export declare const V3_RUN_ENVELOPE_SCHEMA_VERSION: 1;
|
|
20
|
+
export declare const V3_RUN_ENGINE: "workflow-v3";
|
|
21
|
+
export type Sha256Digest = `sha256:${string}`;
|
|
22
|
+
export type V3RunArtifactPath = 'dag.json' | 'spec.json' | 'bots.snapshot.json' | 'params.resolved.json' | 'definition.snapshot.json';
|
|
23
|
+
export interface V3ArtifactRef<Path extends V3RunArtifactPath = V3RunArtifactPath> {
|
|
24
|
+
path: Path;
|
|
25
|
+
sha256: Sha256Digest;
|
|
26
|
+
}
|
|
27
|
+
/** Strict v1 schema. Unknown keys are rejected at every envelope-owned level. */
|
|
28
|
+
export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
29
|
+
source: z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"ad_hoc">;
|
|
31
|
+
grillStatePath: z.ZodLiteral<"grill.state.json">;
|
|
32
|
+
}, "strict", z.ZodTypeAny, {
|
|
33
|
+
kind: "ad_hoc";
|
|
34
|
+
grillStatePath: "grill.state.json";
|
|
35
|
+
}, {
|
|
36
|
+
kind: "ad_hoc";
|
|
37
|
+
grillStatePath: "grill.state.json";
|
|
38
|
+
}>;
|
|
39
|
+
artifacts: z.ZodObject<{
|
|
40
|
+
dag: z.ZodObject<{
|
|
41
|
+
path: z.ZodLiteral<"dag.json">;
|
|
42
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
43
|
+
}, "strict", z.ZodTypeAny, {
|
|
44
|
+
sha256: `sha256:${string}`;
|
|
45
|
+
path: "dag.json";
|
|
46
|
+
}, {
|
|
47
|
+
sha256: string;
|
|
48
|
+
path: "dag.json";
|
|
49
|
+
}>;
|
|
50
|
+
spec: z.ZodObject<{
|
|
51
|
+
path: z.ZodLiteral<"spec.json">;
|
|
52
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
|
+
sha256: `sha256:${string}`;
|
|
55
|
+
path: "spec.json";
|
|
56
|
+
}, {
|
|
57
|
+
sha256: string;
|
|
58
|
+
path: "spec.json";
|
|
59
|
+
}>;
|
|
60
|
+
botSnapshots: z.ZodObject<{
|
|
61
|
+
path: z.ZodLiteral<"bots.snapshot.json">;
|
|
62
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
63
|
+
}, "strict", z.ZodTypeAny, {
|
|
64
|
+
sha256: `sha256:${string}`;
|
|
65
|
+
path: "bots.snapshot.json";
|
|
66
|
+
}, {
|
|
67
|
+
sha256: string;
|
|
68
|
+
path: "bots.snapshot.json";
|
|
69
|
+
}>;
|
|
70
|
+
}, "strict", z.ZodTypeAny, {
|
|
71
|
+
spec: {
|
|
72
|
+
sha256: `sha256:${string}`;
|
|
73
|
+
path: "spec.json";
|
|
74
|
+
};
|
|
75
|
+
dag: {
|
|
76
|
+
sha256: `sha256:${string}`;
|
|
77
|
+
path: "dag.json";
|
|
78
|
+
};
|
|
79
|
+
botSnapshots: {
|
|
80
|
+
sha256: `sha256:${string}`;
|
|
81
|
+
path: "bots.snapshot.json";
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
spec: {
|
|
85
|
+
sha256: string;
|
|
86
|
+
path: "spec.json";
|
|
87
|
+
};
|
|
88
|
+
dag: {
|
|
89
|
+
sha256: string;
|
|
90
|
+
path: "dag.json";
|
|
91
|
+
};
|
|
92
|
+
botSnapshots: {
|
|
93
|
+
sha256: string;
|
|
94
|
+
path: "bots.snapshot.json";
|
|
95
|
+
};
|
|
96
|
+
}>;
|
|
97
|
+
authorization: z.ZodObject<{
|
|
98
|
+
kind: z.ZodLiteral<"gate2">;
|
|
99
|
+
authorizedAt: z.ZodString;
|
|
100
|
+
authorizedByOpenId: z.ZodOptional<z.ZodString>;
|
|
101
|
+
dagSha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
102
|
+
specSha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
103
|
+
}, "strict", z.ZodTypeAny, {
|
|
104
|
+
kind: "gate2";
|
|
105
|
+
authorizedAt: string;
|
|
106
|
+
dagSha256: `sha256:${string}`;
|
|
107
|
+
specSha256: `sha256:${string}`;
|
|
108
|
+
authorizedByOpenId?: string | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
kind: "gate2";
|
|
111
|
+
authorizedAt: string;
|
|
112
|
+
dagSha256: string;
|
|
113
|
+
specSha256: string;
|
|
114
|
+
authorizedByOpenId?: string | undefined;
|
|
115
|
+
}>;
|
|
116
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
117
|
+
engine: z.ZodLiteral<"workflow-v3">;
|
|
118
|
+
runId: z.ZodString;
|
|
119
|
+
createdAt: z.ZodString;
|
|
120
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
larkAppId: z.ZodString;
|
|
122
|
+
chatId: z.ZodString;
|
|
123
|
+
chatType: z.ZodOptional<z.ZodEnum<["group", "p2p"]>>;
|
|
124
|
+
rootMessageId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
126
|
+
ownerOpenId: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, "strict", z.ZodTypeAny, {
|
|
128
|
+
larkAppId: string;
|
|
129
|
+
chatId: string;
|
|
130
|
+
sessionId?: string | undefined;
|
|
131
|
+
chatType?: "group" | "p2p" | undefined;
|
|
132
|
+
ownerOpenId?: string | undefined;
|
|
133
|
+
rootMessageId?: string | undefined;
|
|
134
|
+
}, {
|
|
135
|
+
larkAppId: string;
|
|
136
|
+
chatId: string;
|
|
137
|
+
sessionId?: string | undefined;
|
|
138
|
+
chatType?: "group" | "p2p" | undefined;
|
|
139
|
+
ownerOpenId?: string | undefined;
|
|
140
|
+
rootMessageId?: string | undefined;
|
|
141
|
+
}>>;
|
|
142
|
+
}, "strict", z.ZodTypeAny, {
|
|
143
|
+
engine: "workflow-v3";
|
|
144
|
+
source: {
|
|
145
|
+
kind: "ad_hoc";
|
|
146
|
+
grillStatePath: "grill.state.json";
|
|
147
|
+
};
|
|
148
|
+
runId: string;
|
|
149
|
+
schemaVersion: 1;
|
|
150
|
+
createdAt: string;
|
|
151
|
+
artifacts: {
|
|
152
|
+
spec: {
|
|
153
|
+
sha256: `sha256:${string}`;
|
|
154
|
+
path: "spec.json";
|
|
155
|
+
};
|
|
156
|
+
dag: {
|
|
157
|
+
sha256: `sha256:${string}`;
|
|
158
|
+
path: "dag.json";
|
|
159
|
+
};
|
|
160
|
+
botSnapshots: {
|
|
161
|
+
sha256: `sha256:${string}`;
|
|
162
|
+
path: "bots.snapshot.json";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
authorization: {
|
|
166
|
+
kind: "gate2";
|
|
167
|
+
authorizedAt: string;
|
|
168
|
+
dagSha256: `sha256:${string}`;
|
|
169
|
+
specSha256: `sha256:${string}`;
|
|
170
|
+
authorizedByOpenId?: string | undefined;
|
|
171
|
+
};
|
|
172
|
+
chatBinding?: {
|
|
173
|
+
larkAppId: string;
|
|
174
|
+
chatId: string;
|
|
175
|
+
sessionId?: string | undefined;
|
|
176
|
+
chatType?: "group" | "p2p" | undefined;
|
|
177
|
+
ownerOpenId?: string | undefined;
|
|
178
|
+
rootMessageId?: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
engine: "workflow-v3";
|
|
182
|
+
source: {
|
|
183
|
+
kind: "ad_hoc";
|
|
184
|
+
grillStatePath: "grill.state.json";
|
|
185
|
+
};
|
|
186
|
+
runId: string;
|
|
187
|
+
schemaVersion: 1;
|
|
188
|
+
createdAt: string;
|
|
189
|
+
artifacts: {
|
|
190
|
+
spec: {
|
|
191
|
+
sha256: string;
|
|
192
|
+
path: "spec.json";
|
|
193
|
+
};
|
|
194
|
+
dag: {
|
|
195
|
+
sha256: string;
|
|
196
|
+
path: "dag.json";
|
|
197
|
+
};
|
|
198
|
+
botSnapshots: {
|
|
199
|
+
sha256: string;
|
|
200
|
+
path: "bots.snapshot.json";
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
authorization: {
|
|
204
|
+
kind: "gate2";
|
|
205
|
+
authorizedAt: string;
|
|
206
|
+
dagSha256: string;
|
|
207
|
+
specSha256: string;
|
|
208
|
+
authorizedByOpenId?: string | undefined;
|
|
209
|
+
};
|
|
210
|
+
chatBinding?: {
|
|
211
|
+
larkAppId: string;
|
|
212
|
+
chatId: string;
|
|
213
|
+
sessionId?: string | undefined;
|
|
214
|
+
chatType?: "group" | "p2p" | undefined;
|
|
215
|
+
ownerOpenId?: string | undefined;
|
|
216
|
+
rootMessageId?: string | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
}>, z.ZodObject<{
|
|
219
|
+
source: z.ZodObject<{
|
|
220
|
+
kind: z.ZodLiteral<"saved_definition">;
|
|
221
|
+
workflowId: z.ZodString;
|
|
222
|
+
revisionId: z.ZodString;
|
|
223
|
+
humanVersion: z.ZodNumber;
|
|
224
|
+
}, "strict", z.ZodTypeAny, {
|
|
225
|
+
kind: "saved_definition";
|
|
226
|
+
workflowId: string;
|
|
227
|
+
revisionId: string;
|
|
228
|
+
humanVersion: number;
|
|
229
|
+
}, {
|
|
230
|
+
kind: "saved_definition";
|
|
231
|
+
workflowId: string;
|
|
232
|
+
revisionId: string;
|
|
233
|
+
humanVersion: number;
|
|
234
|
+
}>;
|
|
235
|
+
artifacts: z.ZodObject<{
|
|
236
|
+
dag: z.ZodObject<{
|
|
237
|
+
path: z.ZodLiteral<"dag.json">;
|
|
238
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
239
|
+
}, "strict", z.ZodTypeAny, {
|
|
240
|
+
sha256: `sha256:${string}`;
|
|
241
|
+
path: "dag.json";
|
|
242
|
+
}, {
|
|
243
|
+
sha256: string;
|
|
244
|
+
path: "dag.json";
|
|
245
|
+
}>;
|
|
246
|
+
spec: z.ZodObject<{
|
|
247
|
+
path: z.ZodLiteral<"spec.json">;
|
|
248
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
249
|
+
}, "strict", z.ZodTypeAny, {
|
|
250
|
+
sha256: `sha256:${string}`;
|
|
251
|
+
path: "spec.json";
|
|
252
|
+
}, {
|
|
253
|
+
sha256: string;
|
|
254
|
+
path: "spec.json";
|
|
255
|
+
}>;
|
|
256
|
+
botSnapshots: z.ZodObject<{
|
|
257
|
+
path: z.ZodLiteral<"bots.snapshot.json">;
|
|
258
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
259
|
+
}, "strict", z.ZodTypeAny, {
|
|
260
|
+
sha256: `sha256:${string}`;
|
|
261
|
+
path: "bots.snapshot.json";
|
|
262
|
+
}, {
|
|
263
|
+
sha256: string;
|
|
264
|
+
path: "bots.snapshot.json";
|
|
265
|
+
}>;
|
|
266
|
+
resolvedParams: z.ZodObject<{
|
|
267
|
+
path: z.ZodLiteral<"params.resolved.json">;
|
|
268
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
269
|
+
}, "strict", z.ZodTypeAny, {
|
|
270
|
+
sha256: `sha256:${string}`;
|
|
271
|
+
path: "params.resolved.json";
|
|
272
|
+
}, {
|
|
273
|
+
sha256: string;
|
|
274
|
+
path: "params.resolved.json";
|
|
275
|
+
}>;
|
|
276
|
+
definitionSnapshot: z.ZodObject<{
|
|
277
|
+
path: z.ZodLiteral<"definition.snapshot.json">;
|
|
278
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
279
|
+
}, "strict", z.ZodTypeAny, {
|
|
280
|
+
sha256: `sha256:${string}`;
|
|
281
|
+
path: "definition.snapshot.json";
|
|
282
|
+
}, {
|
|
283
|
+
sha256: string;
|
|
284
|
+
path: "definition.snapshot.json";
|
|
285
|
+
}>;
|
|
286
|
+
}, "strict", z.ZodTypeAny, {
|
|
287
|
+
spec: {
|
|
288
|
+
sha256: `sha256:${string}`;
|
|
289
|
+
path: "spec.json";
|
|
290
|
+
};
|
|
291
|
+
dag: {
|
|
292
|
+
sha256: `sha256:${string}`;
|
|
293
|
+
path: "dag.json";
|
|
294
|
+
};
|
|
295
|
+
botSnapshots: {
|
|
296
|
+
sha256: `sha256:${string}`;
|
|
297
|
+
path: "bots.snapshot.json";
|
|
298
|
+
};
|
|
299
|
+
resolvedParams: {
|
|
300
|
+
sha256: `sha256:${string}`;
|
|
301
|
+
path: "params.resolved.json";
|
|
302
|
+
};
|
|
303
|
+
definitionSnapshot: {
|
|
304
|
+
sha256: `sha256:${string}`;
|
|
305
|
+
path: "definition.snapshot.json";
|
|
306
|
+
};
|
|
307
|
+
}, {
|
|
308
|
+
spec: {
|
|
309
|
+
sha256: string;
|
|
310
|
+
path: "spec.json";
|
|
311
|
+
};
|
|
312
|
+
dag: {
|
|
313
|
+
sha256: string;
|
|
314
|
+
path: "dag.json";
|
|
315
|
+
};
|
|
316
|
+
botSnapshots: {
|
|
317
|
+
sha256: string;
|
|
318
|
+
path: "bots.snapshot.json";
|
|
319
|
+
};
|
|
320
|
+
resolvedParams: {
|
|
321
|
+
sha256: string;
|
|
322
|
+
path: "params.resolved.json";
|
|
323
|
+
};
|
|
324
|
+
definitionSnapshot: {
|
|
325
|
+
sha256: string;
|
|
326
|
+
path: "definition.snapshot.json";
|
|
327
|
+
};
|
|
328
|
+
}>;
|
|
329
|
+
authorization: z.ZodObject<{
|
|
330
|
+
kind: z.ZodLiteral<"published_revision">;
|
|
331
|
+
authorizedAt: z.ZodString;
|
|
332
|
+
workflowId: z.ZodString;
|
|
333
|
+
revisionId: z.ZodString;
|
|
334
|
+
definitionSnapshotSha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
335
|
+
dagSha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
336
|
+
specSha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
337
|
+
}, "strict", z.ZodTypeAny, {
|
|
338
|
+
kind: "published_revision";
|
|
339
|
+
authorizedAt: string;
|
|
340
|
+
dagSha256: `sha256:${string}`;
|
|
341
|
+
specSha256: `sha256:${string}`;
|
|
342
|
+
workflowId: string;
|
|
343
|
+
revisionId: string;
|
|
344
|
+
definitionSnapshotSha256: `sha256:${string}`;
|
|
345
|
+
}, {
|
|
346
|
+
kind: "published_revision";
|
|
347
|
+
authorizedAt: string;
|
|
348
|
+
dagSha256: string;
|
|
349
|
+
specSha256: string;
|
|
350
|
+
workflowId: string;
|
|
351
|
+
revisionId: string;
|
|
352
|
+
definitionSnapshotSha256: string;
|
|
353
|
+
}>;
|
|
354
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
355
|
+
engine: z.ZodLiteral<"workflow-v3">;
|
|
356
|
+
runId: z.ZodString;
|
|
357
|
+
createdAt: z.ZodString;
|
|
358
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
larkAppId: z.ZodString;
|
|
360
|
+
chatId: z.ZodString;
|
|
361
|
+
chatType: z.ZodOptional<z.ZodEnum<["group", "p2p"]>>;
|
|
362
|
+
rootMessageId: z.ZodOptional<z.ZodString>;
|
|
363
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
364
|
+
ownerOpenId: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, "strict", z.ZodTypeAny, {
|
|
366
|
+
larkAppId: string;
|
|
367
|
+
chatId: string;
|
|
368
|
+
sessionId?: string | undefined;
|
|
369
|
+
chatType?: "group" | "p2p" | undefined;
|
|
370
|
+
ownerOpenId?: string | undefined;
|
|
371
|
+
rootMessageId?: string | undefined;
|
|
372
|
+
}, {
|
|
373
|
+
larkAppId: string;
|
|
374
|
+
chatId: string;
|
|
375
|
+
sessionId?: string | undefined;
|
|
376
|
+
chatType?: "group" | "p2p" | undefined;
|
|
377
|
+
ownerOpenId?: string | undefined;
|
|
378
|
+
rootMessageId?: string | undefined;
|
|
379
|
+
}>>;
|
|
380
|
+
}, "strict", z.ZodTypeAny, {
|
|
381
|
+
engine: "workflow-v3";
|
|
382
|
+
source: {
|
|
383
|
+
kind: "saved_definition";
|
|
384
|
+
workflowId: string;
|
|
385
|
+
revisionId: string;
|
|
386
|
+
humanVersion: number;
|
|
387
|
+
};
|
|
388
|
+
runId: string;
|
|
389
|
+
schemaVersion: 1;
|
|
390
|
+
createdAt: string;
|
|
391
|
+
artifacts: {
|
|
392
|
+
spec: {
|
|
393
|
+
sha256: `sha256:${string}`;
|
|
394
|
+
path: "spec.json";
|
|
395
|
+
};
|
|
396
|
+
dag: {
|
|
397
|
+
sha256: `sha256:${string}`;
|
|
398
|
+
path: "dag.json";
|
|
399
|
+
};
|
|
400
|
+
botSnapshots: {
|
|
401
|
+
sha256: `sha256:${string}`;
|
|
402
|
+
path: "bots.snapshot.json";
|
|
403
|
+
};
|
|
404
|
+
resolvedParams: {
|
|
405
|
+
sha256: `sha256:${string}`;
|
|
406
|
+
path: "params.resolved.json";
|
|
407
|
+
};
|
|
408
|
+
definitionSnapshot: {
|
|
409
|
+
sha256: `sha256:${string}`;
|
|
410
|
+
path: "definition.snapshot.json";
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
authorization: {
|
|
414
|
+
kind: "published_revision";
|
|
415
|
+
authorizedAt: string;
|
|
416
|
+
dagSha256: `sha256:${string}`;
|
|
417
|
+
specSha256: `sha256:${string}`;
|
|
418
|
+
workflowId: string;
|
|
419
|
+
revisionId: string;
|
|
420
|
+
definitionSnapshotSha256: `sha256:${string}`;
|
|
421
|
+
};
|
|
422
|
+
chatBinding?: {
|
|
423
|
+
larkAppId: string;
|
|
424
|
+
chatId: string;
|
|
425
|
+
sessionId?: string | undefined;
|
|
426
|
+
chatType?: "group" | "p2p" | undefined;
|
|
427
|
+
ownerOpenId?: string | undefined;
|
|
428
|
+
rootMessageId?: string | undefined;
|
|
429
|
+
} | undefined;
|
|
430
|
+
}, {
|
|
431
|
+
engine: "workflow-v3";
|
|
432
|
+
source: {
|
|
433
|
+
kind: "saved_definition";
|
|
434
|
+
workflowId: string;
|
|
435
|
+
revisionId: string;
|
|
436
|
+
humanVersion: number;
|
|
437
|
+
};
|
|
438
|
+
runId: string;
|
|
439
|
+
schemaVersion: 1;
|
|
440
|
+
createdAt: string;
|
|
441
|
+
artifacts: {
|
|
442
|
+
spec: {
|
|
443
|
+
sha256: string;
|
|
444
|
+
path: "spec.json";
|
|
445
|
+
};
|
|
446
|
+
dag: {
|
|
447
|
+
sha256: string;
|
|
448
|
+
path: "dag.json";
|
|
449
|
+
};
|
|
450
|
+
botSnapshots: {
|
|
451
|
+
sha256: string;
|
|
452
|
+
path: "bots.snapshot.json";
|
|
453
|
+
};
|
|
454
|
+
resolvedParams: {
|
|
455
|
+
sha256: string;
|
|
456
|
+
path: "params.resolved.json";
|
|
457
|
+
};
|
|
458
|
+
definitionSnapshot: {
|
|
459
|
+
sha256: string;
|
|
460
|
+
path: "definition.snapshot.json";
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
authorization: {
|
|
464
|
+
kind: "published_revision";
|
|
465
|
+
authorizedAt: string;
|
|
466
|
+
dagSha256: string;
|
|
467
|
+
specSha256: string;
|
|
468
|
+
workflowId: string;
|
|
469
|
+
revisionId: string;
|
|
470
|
+
definitionSnapshotSha256: string;
|
|
471
|
+
};
|
|
472
|
+
chatBinding?: {
|
|
473
|
+
larkAppId: string;
|
|
474
|
+
chatId: string;
|
|
475
|
+
sessionId?: string | undefined;
|
|
476
|
+
chatType?: "group" | "p2p" | undefined;
|
|
477
|
+
ownerOpenId?: string | undefined;
|
|
478
|
+
rootMessageId?: string | undefined;
|
|
479
|
+
} | undefined;
|
|
480
|
+
}>, z.ZodObject<{
|
|
481
|
+
source: z.ZodObject<{
|
|
482
|
+
kind: z.ZodLiteral<"manual_cli">;
|
|
483
|
+
}, "strict", z.ZodTypeAny, {
|
|
484
|
+
kind: "manual_cli";
|
|
485
|
+
}, {
|
|
486
|
+
kind: "manual_cli";
|
|
487
|
+
}>;
|
|
488
|
+
artifacts: z.ZodObject<{
|
|
489
|
+
dag: z.ZodObject<{
|
|
490
|
+
path: z.ZodLiteral<"dag.json">;
|
|
491
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
492
|
+
}, "strict", z.ZodTypeAny, {
|
|
493
|
+
sha256: `sha256:${string}`;
|
|
494
|
+
path: "dag.json";
|
|
495
|
+
}, {
|
|
496
|
+
sha256: string;
|
|
497
|
+
path: "dag.json";
|
|
498
|
+
}>;
|
|
499
|
+
botSnapshots: z.ZodObject<{
|
|
500
|
+
path: z.ZodLiteral<"bots.snapshot.json">;
|
|
501
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
502
|
+
}, "strict", z.ZodTypeAny, {
|
|
503
|
+
sha256: `sha256:${string}`;
|
|
504
|
+
path: "bots.snapshot.json";
|
|
505
|
+
}, {
|
|
506
|
+
sha256: string;
|
|
507
|
+
path: "bots.snapshot.json";
|
|
508
|
+
}>;
|
|
509
|
+
}, "strict", z.ZodTypeAny, {
|
|
510
|
+
dag: {
|
|
511
|
+
sha256: `sha256:${string}`;
|
|
512
|
+
path: "dag.json";
|
|
513
|
+
};
|
|
514
|
+
botSnapshots: {
|
|
515
|
+
sha256: `sha256:${string}`;
|
|
516
|
+
path: "bots.snapshot.json";
|
|
517
|
+
};
|
|
518
|
+
}, {
|
|
519
|
+
dag: {
|
|
520
|
+
sha256: string;
|
|
521
|
+
path: "dag.json";
|
|
522
|
+
};
|
|
523
|
+
botSnapshots: {
|
|
524
|
+
sha256: string;
|
|
525
|
+
path: "bots.snapshot.json";
|
|
526
|
+
};
|
|
527
|
+
}>;
|
|
528
|
+
authorization: z.ZodObject<{
|
|
529
|
+
kind: z.ZodLiteral<"local_cli">;
|
|
530
|
+
authorizedAt: z.ZodString;
|
|
531
|
+
dagSha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
532
|
+
}, "strict", z.ZodTypeAny, {
|
|
533
|
+
kind: "local_cli";
|
|
534
|
+
authorizedAt: string;
|
|
535
|
+
dagSha256: `sha256:${string}`;
|
|
536
|
+
}, {
|
|
537
|
+
kind: "local_cli";
|
|
538
|
+
authorizedAt: string;
|
|
539
|
+
dagSha256: string;
|
|
540
|
+
}>;
|
|
541
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
542
|
+
engine: z.ZodLiteral<"workflow-v3">;
|
|
543
|
+
runId: z.ZodString;
|
|
544
|
+
createdAt: z.ZodString;
|
|
545
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
546
|
+
larkAppId: z.ZodString;
|
|
547
|
+
chatId: z.ZodString;
|
|
548
|
+
chatType: z.ZodOptional<z.ZodEnum<["group", "p2p"]>>;
|
|
549
|
+
rootMessageId: z.ZodOptional<z.ZodString>;
|
|
550
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
551
|
+
ownerOpenId: z.ZodOptional<z.ZodString>;
|
|
552
|
+
}, "strict", z.ZodTypeAny, {
|
|
553
|
+
larkAppId: string;
|
|
554
|
+
chatId: string;
|
|
555
|
+
sessionId?: string | undefined;
|
|
556
|
+
chatType?: "group" | "p2p" | undefined;
|
|
557
|
+
ownerOpenId?: string | undefined;
|
|
558
|
+
rootMessageId?: string | undefined;
|
|
559
|
+
}, {
|
|
560
|
+
larkAppId: string;
|
|
561
|
+
chatId: string;
|
|
562
|
+
sessionId?: string | undefined;
|
|
563
|
+
chatType?: "group" | "p2p" | undefined;
|
|
564
|
+
ownerOpenId?: string | undefined;
|
|
565
|
+
rootMessageId?: string | undefined;
|
|
566
|
+
}>>;
|
|
567
|
+
}, "strict", z.ZodTypeAny, {
|
|
568
|
+
engine: "workflow-v3";
|
|
569
|
+
source: {
|
|
570
|
+
kind: "manual_cli";
|
|
571
|
+
};
|
|
572
|
+
runId: string;
|
|
573
|
+
schemaVersion: 1;
|
|
574
|
+
createdAt: string;
|
|
575
|
+
artifacts: {
|
|
576
|
+
dag: {
|
|
577
|
+
sha256: `sha256:${string}`;
|
|
578
|
+
path: "dag.json";
|
|
579
|
+
};
|
|
580
|
+
botSnapshots: {
|
|
581
|
+
sha256: `sha256:${string}`;
|
|
582
|
+
path: "bots.snapshot.json";
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
authorization: {
|
|
586
|
+
kind: "local_cli";
|
|
587
|
+
authorizedAt: string;
|
|
588
|
+
dagSha256: `sha256:${string}`;
|
|
589
|
+
};
|
|
590
|
+
chatBinding?: {
|
|
591
|
+
larkAppId: string;
|
|
592
|
+
chatId: string;
|
|
593
|
+
sessionId?: string | undefined;
|
|
594
|
+
chatType?: "group" | "p2p" | undefined;
|
|
595
|
+
ownerOpenId?: string | undefined;
|
|
596
|
+
rootMessageId?: string | undefined;
|
|
597
|
+
} | undefined;
|
|
598
|
+
}, {
|
|
599
|
+
engine: "workflow-v3";
|
|
600
|
+
source: {
|
|
601
|
+
kind: "manual_cli";
|
|
602
|
+
};
|
|
603
|
+
runId: string;
|
|
604
|
+
schemaVersion: 1;
|
|
605
|
+
createdAt: string;
|
|
606
|
+
artifacts: {
|
|
607
|
+
dag: {
|
|
608
|
+
sha256: string;
|
|
609
|
+
path: "dag.json";
|
|
610
|
+
};
|
|
611
|
+
botSnapshots: {
|
|
612
|
+
sha256: string;
|
|
613
|
+
path: "bots.snapshot.json";
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
authorization: {
|
|
617
|
+
kind: "local_cli";
|
|
618
|
+
authorizedAt: string;
|
|
619
|
+
dagSha256: string;
|
|
620
|
+
};
|
|
621
|
+
chatBinding?: {
|
|
622
|
+
larkAppId: string;
|
|
623
|
+
chatId: string;
|
|
624
|
+
sessionId?: string | undefined;
|
|
625
|
+
chatType?: "group" | "p2p" | undefined;
|
|
626
|
+
ownerOpenId?: string | undefined;
|
|
627
|
+
rootMessageId?: string | undefined;
|
|
628
|
+
} | undefined;
|
|
629
|
+
}>, z.ZodObject<{
|
|
630
|
+
source: z.ZodObject<{
|
|
631
|
+
kind: z.ZodLiteral<"legacy_v3">;
|
|
632
|
+
original: z.ZodEnum<["grill", "manual_cli"]>;
|
|
633
|
+
}, "strict", z.ZodTypeAny, {
|
|
634
|
+
kind: "legacy_v3";
|
|
635
|
+
original: "manual_cli" | "grill";
|
|
636
|
+
}, {
|
|
637
|
+
kind: "legacy_v3";
|
|
638
|
+
original: "manual_cli" | "grill";
|
|
639
|
+
}>;
|
|
640
|
+
artifacts: z.ZodObject<{
|
|
641
|
+
dag: z.ZodObject<{
|
|
642
|
+
path: z.ZodLiteral<"dag.json">;
|
|
643
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
644
|
+
}, "strict", z.ZodTypeAny, {
|
|
645
|
+
sha256: `sha256:${string}`;
|
|
646
|
+
path: "dag.json";
|
|
647
|
+
}, {
|
|
648
|
+
sha256: string;
|
|
649
|
+
path: "dag.json";
|
|
650
|
+
}>;
|
|
651
|
+
spec: z.ZodOptional<z.ZodObject<{
|
|
652
|
+
path: z.ZodLiteral<"spec.json">;
|
|
653
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
654
|
+
}, "strict", z.ZodTypeAny, {
|
|
655
|
+
sha256: `sha256:${string}`;
|
|
656
|
+
path: "spec.json";
|
|
657
|
+
}, {
|
|
658
|
+
sha256: string;
|
|
659
|
+
path: "spec.json";
|
|
660
|
+
}>>;
|
|
661
|
+
botSnapshots: z.ZodOptional<z.ZodObject<{
|
|
662
|
+
path: z.ZodLiteral<"bots.snapshot.json">;
|
|
663
|
+
sha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
664
|
+
}, "strict", z.ZodTypeAny, {
|
|
665
|
+
sha256: `sha256:${string}`;
|
|
666
|
+
path: "bots.snapshot.json";
|
|
667
|
+
}, {
|
|
668
|
+
sha256: string;
|
|
669
|
+
path: "bots.snapshot.json";
|
|
670
|
+
}>>;
|
|
671
|
+
}, "strict", z.ZodTypeAny, {
|
|
672
|
+
dag: {
|
|
673
|
+
sha256: `sha256:${string}`;
|
|
674
|
+
path: "dag.json";
|
|
675
|
+
};
|
|
676
|
+
spec?: {
|
|
677
|
+
sha256: `sha256:${string}`;
|
|
678
|
+
path: "spec.json";
|
|
679
|
+
} | undefined;
|
|
680
|
+
botSnapshots?: {
|
|
681
|
+
sha256: `sha256:${string}`;
|
|
682
|
+
path: "bots.snapshot.json";
|
|
683
|
+
} | undefined;
|
|
684
|
+
}, {
|
|
685
|
+
dag: {
|
|
686
|
+
sha256: string;
|
|
687
|
+
path: "dag.json";
|
|
688
|
+
};
|
|
689
|
+
spec?: {
|
|
690
|
+
sha256: string;
|
|
691
|
+
path: "spec.json";
|
|
692
|
+
} | undefined;
|
|
693
|
+
botSnapshots?: {
|
|
694
|
+
sha256: string;
|
|
695
|
+
path: "bots.snapshot.json";
|
|
696
|
+
} | undefined;
|
|
697
|
+
}>;
|
|
698
|
+
authorization: z.ZodObject<{
|
|
699
|
+
kind: z.ZodLiteral<"legacy_backfill">;
|
|
700
|
+
backfilledAt: z.ZodString;
|
|
701
|
+
basis: z.ZodEnum<["grill_dag_approved", "runtime_started"]>;
|
|
702
|
+
integrity: z.ZodLiteral<"unverifiable_before_backfill">;
|
|
703
|
+
dagSha256: z.ZodEffects<z.ZodString, `sha256:${string}`, string>;
|
|
704
|
+
specSha256: z.ZodOptional<z.ZodEffects<z.ZodString, `sha256:${string}`, string>>;
|
|
705
|
+
}, "strict", z.ZodTypeAny, {
|
|
706
|
+
kind: "legacy_backfill";
|
|
707
|
+
dagSha256: `sha256:${string}`;
|
|
708
|
+
backfilledAt: string;
|
|
709
|
+
basis: "grill_dag_approved" | "runtime_started";
|
|
710
|
+
integrity: "unverifiable_before_backfill";
|
|
711
|
+
specSha256?: `sha256:${string}` | undefined;
|
|
712
|
+
}, {
|
|
713
|
+
kind: "legacy_backfill";
|
|
714
|
+
dagSha256: string;
|
|
715
|
+
backfilledAt: string;
|
|
716
|
+
basis: "grill_dag_approved" | "runtime_started";
|
|
717
|
+
integrity: "unverifiable_before_backfill";
|
|
718
|
+
specSha256?: string | undefined;
|
|
719
|
+
}>;
|
|
720
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
721
|
+
engine: z.ZodLiteral<"workflow-v3">;
|
|
722
|
+
runId: z.ZodString;
|
|
723
|
+
createdAt: z.ZodString;
|
|
724
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
725
|
+
larkAppId: z.ZodString;
|
|
726
|
+
chatId: z.ZodString;
|
|
727
|
+
chatType: z.ZodOptional<z.ZodEnum<["group", "p2p"]>>;
|
|
728
|
+
rootMessageId: z.ZodOptional<z.ZodString>;
|
|
729
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
730
|
+
ownerOpenId: z.ZodOptional<z.ZodString>;
|
|
731
|
+
}, "strict", z.ZodTypeAny, {
|
|
732
|
+
larkAppId: string;
|
|
733
|
+
chatId: string;
|
|
734
|
+
sessionId?: string | undefined;
|
|
735
|
+
chatType?: "group" | "p2p" | undefined;
|
|
736
|
+
ownerOpenId?: string | undefined;
|
|
737
|
+
rootMessageId?: string | undefined;
|
|
738
|
+
}, {
|
|
739
|
+
larkAppId: string;
|
|
740
|
+
chatId: string;
|
|
741
|
+
sessionId?: string | undefined;
|
|
742
|
+
chatType?: "group" | "p2p" | undefined;
|
|
743
|
+
ownerOpenId?: string | undefined;
|
|
744
|
+
rootMessageId?: string | undefined;
|
|
745
|
+
}>>;
|
|
746
|
+
}, "strict", z.ZodTypeAny, {
|
|
747
|
+
engine: "workflow-v3";
|
|
748
|
+
source: {
|
|
749
|
+
kind: "legacy_v3";
|
|
750
|
+
original: "manual_cli" | "grill";
|
|
751
|
+
};
|
|
752
|
+
runId: string;
|
|
753
|
+
schemaVersion: 1;
|
|
754
|
+
createdAt: string;
|
|
755
|
+
artifacts: {
|
|
756
|
+
dag: {
|
|
757
|
+
sha256: `sha256:${string}`;
|
|
758
|
+
path: "dag.json";
|
|
759
|
+
};
|
|
760
|
+
spec?: {
|
|
761
|
+
sha256: `sha256:${string}`;
|
|
762
|
+
path: "spec.json";
|
|
763
|
+
} | undefined;
|
|
764
|
+
botSnapshots?: {
|
|
765
|
+
sha256: `sha256:${string}`;
|
|
766
|
+
path: "bots.snapshot.json";
|
|
767
|
+
} | undefined;
|
|
768
|
+
};
|
|
769
|
+
authorization: {
|
|
770
|
+
kind: "legacy_backfill";
|
|
771
|
+
dagSha256: `sha256:${string}`;
|
|
772
|
+
backfilledAt: string;
|
|
773
|
+
basis: "grill_dag_approved" | "runtime_started";
|
|
774
|
+
integrity: "unverifiable_before_backfill";
|
|
775
|
+
specSha256?: `sha256:${string}` | undefined;
|
|
776
|
+
};
|
|
777
|
+
chatBinding?: {
|
|
778
|
+
larkAppId: string;
|
|
779
|
+
chatId: string;
|
|
780
|
+
sessionId?: string | undefined;
|
|
781
|
+
chatType?: "group" | "p2p" | undefined;
|
|
782
|
+
ownerOpenId?: string | undefined;
|
|
783
|
+
rootMessageId?: string | undefined;
|
|
784
|
+
} | undefined;
|
|
785
|
+
}, {
|
|
786
|
+
engine: "workflow-v3";
|
|
787
|
+
source: {
|
|
788
|
+
kind: "legacy_v3";
|
|
789
|
+
original: "manual_cli" | "grill";
|
|
790
|
+
};
|
|
791
|
+
runId: string;
|
|
792
|
+
schemaVersion: 1;
|
|
793
|
+
createdAt: string;
|
|
794
|
+
artifacts: {
|
|
795
|
+
dag: {
|
|
796
|
+
sha256: string;
|
|
797
|
+
path: "dag.json";
|
|
798
|
+
};
|
|
799
|
+
spec?: {
|
|
800
|
+
sha256: string;
|
|
801
|
+
path: "spec.json";
|
|
802
|
+
} | undefined;
|
|
803
|
+
botSnapshots?: {
|
|
804
|
+
sha256: string;
|
|
805
|
+
path: "bots.snapshot.json";
|
|
806
|
+
} | undefined;
|
|
807
|
+
};
|
|
808
|
+
authorization: {
|
|
809
|
+
kind: "legacy_backfill";
|
|
810
|
+
dagSha256: string;
|
|
811
|
+
backfilledAt: string;
|
|
812
|
+
basis: "grill_dag_approved" | "runtime_started";
|
|
813
|
+
integrity: "unverifiable_before_backfill";
|
|
814
|
+
specSha256?: string | undefined;
|
|
815
|
+
};
|
|
816
|
+
chatBinding?: {
|
|
817
|
+
larkAppId: string;
|
|
818
|
+
chatId: string;
|
|
819
|
+
sessionId?: string | undefined;
|
|
820
|
+
chatType?: "group" | "p2p" | undefined;
|
|
821
|
+
ownerOpenId?: string | undefined;
|
|
822
|
+
rootMessageId?: string | undefined;
|
|
823
|
+
} | undefined;
|
|
824
|
+
}>]>, {
|
|
825
|
+
engine: "workflow-v3";
|
|
826
|
+
source: {
|
|
827
|
+
kind: "ad_hoc";
|
|
828
|
+
grillStatePath: "grill.state.json";
|
|
829
|
+
};
|
|
830
|
+
runId: string;
|
|
831
|
+
schemaVersion: 1;
|
|
832
|
+
createdAt: string;
|
|
833
|
+
artifacts: {
|
|
834
|
+
spec: {
|
|
835
|
+
sha256: `sha256:${string}`;
|
|
836
|
+
path: "spec.json";
|
|
837
|
+
};
|
|
838
|
+
dag: {
|
|
839
|
+
sha256: `sha256:${string}`;
|
|
840
|
+
path: "dag.json";
|
|
841
|
+
};
|
|
842
|
+
botSnapshots: {
|
|
843
|
+
sha256: `sha256:${string}`;
|
|
844
|
+
path: "bots.snapshot.json";
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
authorization: {
|
|
848
|
+
kind: "gate2";
|
|
849
|
+
authorizedAt: string;
|
|
850
|
+
dagSha256: `sha256:${string}`;
|
|
851
|
+
specSha256: `sha256:${string}`;
|
|
852
|
+
authorizedByOpenId?: string | undefined;
|
|
853
|
+
};
|
|
854
|
+
chatBinding?: {
|
|
855
|
+
larkAppId: string;
|
|
856
|
+
chatId: string;
|
|
857
|
+
sessionId?: string | undefined;
|
|
858
|
+
chatType?: "group" | "p2p" | undefined;
|
|
859
|
+
ownerOpenId?: string | undefined;
|
|
860
|
+
rootMessageId?: string | undefined;
|
|
861
|
+
} | undefined;
|
|
862
|
+
} | {
|
|
863
|
+
engine: "workflow-v3";
|
|
864
|
+
source: {
|
|
865
|
+
kind: "saved_definition";
|
|
866
|
+
workflowId: string;
|
|
867
|
+
revisionId: string;
|
|
868
|
+
humanVersion: number;
|
|
869
|
+
};
|
|
870
|
+
runId: string;
|
|
871
|
+
schemaVersion: 1;
|
|
872
|
+
createdAt: string;
|
|
873
|
+
artifacts: {
|
|
874
|
+
spec: {
|
|
875
|
+
sha256: `sha256:${string}`;
|
|
876
|
+
path: "spec.json";
|
|
877
|
+
};
|
|
878
|
+
dag: {
|
|
879
|
+
sha256: `sha256:${string}`;
|
|
880
|
+
path: "dag.json";
|
|
881
|
+
};
|
|
882
|
+
botSnapshots: {
|
|
883
|
+
sha256: `sha256:${string}`;
|
|
884
|
+
path: "bots.snapshot.json";
|
|
885
|
+
};
|
|
886
|
+
resolvedParams: {
|
|
887
|
+
sha256: `sha256:${string}`;
|
|
888
|
+
path: "params.resolved.json";
|
|
889
|
+
};
|
|
890
|
+
definitionSnapshot: {
|
|
891
|
+
sha256: `sha256:${string}`;
|
|
892
|
+
path: "definition.snapshot.json";
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
authorization: {
|
|
896
|
+
kind: "published_revision";
|
|
897
|
+
authorizedAt: string;
|
|
898
|
+
dagSha256: `sha256:${string}`;
|
|
899
|
+
specSha256: `sha256:${string}`;
|
|
900
|
+
workflowId: string;
|
|
901
|
+
revisionId: string;
|
|
902
|
+
definitionSnapshotSha256: `sha256:${string}`;
|
|
903
|
+
};
|
|
904
|
+
chatBinding?: {
|
|
905
|
+
larkAppId: string;
|
|
906
|
+
chatId: string;
|
|
907
|
+
sessionId?: string | undefined;
|
|
908
|
+
chatType?: "group" | "p2p" | undefined;
|
|
909
|
+
ownerOpenId?: string | undefined;
|
|
910
|
+
rootMessageId?: string | undefined;
|
|
911
|
+
} | undefined;
|
|
912
|
+
} | {
|
|
913
|
+
engine: "workflow-v3";
|
|
914
|
+
source: {
|
|
915
|
+
kind: "manual_cli";
|
|
916
|
+
};
|
|
917
|
+
runId: string;
|
|
918
|
+
schemaVersion: 1;
|
|
919
|
+
createdAt: string;
|
|
920
|
+
artifacts: {
|
|
921
|
+
dag: {
|
|
922
|
+
sha256: `sha256:${string}`;
|
|
923
|
+
path: "dag.json";
|
|
924
|
+
};
|
|
925
|
+
botSnapshots: {
|
|
926
|
+
sha256: `sha256:${string}`;
|
|
927
|
+
path: "bots.snapshot.json";
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
authorization: {
|
|
931
|
+
kind: "local_cli";
|
|
932
|
+
authorizedAt: string;
|
|
933
|
+
dagSha256: `sha256:${string}`;
|
|
934
|
+
};
|
|
935
|
+
chatBinding?: {
|
|
936
|
+
larkAppId: string;
|
|
937
|
+
chatId: string;
|
|
938
|
+
sessionId?: string | undefined;
|
|
939
|
+
chatType?: "group" | "p2p" | undefined;
|
|
940
|
+
ownerOpenId?: string | undefined;
|
|
941
|
+
rootMessageId?: string | undefined;
|
|
942
|
+
} | undefined;
|
|
943
|
+
} | {
|
|
944
|
+
engine: "workflow-v3";
|
|
945
|
+
source: {
|
|
946
|
+
kind: "legacy_v3";
|
|
947
|
+
original: "manual_cli" | "grill";
|
|
948
|
+
};
|
|
949
|
+
runId: string;
|
|
950
|
+
schemaVersion: 1;
|
|
951
|
+
createdAt: string;
|
|
952
|
+
artifacts: {
|
|
953
|
+
dag: {
|
|
954
|
+
sha256: `sha256:${string}`;
|
|
955
|
+
path: "dag.json";
|
|
956
|
+
};
|
|
957
|
+
spec?: {
|
|
958
|
+
sha256: `sha256:${string}`;
|
|
959
|
+
path: "spec.json";
|
|
960
|
+
} | undefined;
|
|
961
|
+
botSnapshots?: {
|
|
962
|
+
sha256: `sha256:${string}`;
|
|
963
|
+
path: "bots.snapshot.json";
|
|
964
|
+
} | undefined;
|
|
965
|
+
};
|
|
966
|
+
authorization: {
|
|
967
|
+
kind: "legacy_backfill";
|
|
968
|
+
dagSha256: `sha256:${string}`;
|
|
969
|
+
backfilledAt: string;
|
|
970
|
+
basis: "grill_dag_approved" | "runtime_started";
|
|
971
|
+
integrity: "unverifiable_before_backfill";
|
|
972
|
+
specSha256?: `sha256:${string}` | undefined;
|
|
973
|
+
};
|
|
974
|
+
chatBinding?: {
|
|
975
|
+
larkAppId: string;
|
|
976
|
+
chatId: string;
|
|
977
|
+
sessionId?: string | undefined;
|
|
978
|
+
chatType?: "group" | "p2p" | undefined;
|
|
979
|
+
ownerOpenId?: string | undefined;
|
|
980
|
+
rootMessageId?: string | undefined;
|
|
981
|
+
} | undefined;
|
|
982
|
+
}, {
|
|
983
|
+
engine: "workflow-v3";
|
|
984
|
+
source: {
|
|
985
|
+
kind: "ad_hoc";
|
|
986
|
+
grillStatePath: "grill.state.json";
|
|
987
|
+
};
|
|
988
|
+
runId: string;
|
|
989
|
+
schemaVersion: 1;
|
|
990
|
+
createdAt: string;
|
|
991
|
+
artifacts: {
|
|
992
|
+
spec: {
|
|
993
|
+
sha256: string;
|
|
994
|
+
path: "spec.json";
|
|
995
|
+
};
|
|
996
|
+
dag: {
|
|
997
|
+
sha256: string;
|
|
998
|
+
path: "dag.json";
|
|
999
|
+
};
|
|
1000
|
+
botSnapshots: {
|
|
1001
|
+
sha256: string;
|
|
1002
|
+
path: "bots.snapshot.json";
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
authorization: {
|
|
1006
|
+
kind: "gate2";
|
|
1007
|
+
authorizedAt: string;
|
|
1008
|
+
dagSha256: string;
|
|
1009
|
+
specSha256: string;
|
|
1010
|
+
authorizedByOpenId?: string | undefined;
|
|
1011
|
+
};
|
|
1012
|
+
chatBinding?: {
|
|
1013
|
+
larkAppId: string;
|
|
1014
|
+
chatId: string;
|
|
1015
|
+
sessionId?: string | undefined;
|
|
1016
|
+
chatType?: "group" | "p2p" | undefined;
|
|
1017
|
+
ownerOpenId?: string | undefined;
|
|
1018
|
+
rootMessageId?: string | undefined;
|
|
1019
|
+
} | undefined;
|
|
1020
|
+
} | {
|
|
1021
|
+
engine: "workflow-v3";
|
|
1022
|
+
source: {
|
|
1023
|
+
kind: "saved_definition";
|
|
1024
|
+
workflowId: string;
|
|
1025
|
+
revisionId: string;
|
|
1026
|
+
humanVersion: number;
|
|
1027
|
+
};
|
|
1028
|
+
runId: string;
|
|
1029
|
+
schemaVersion: 1;
|
|
1030
|
+
createdAt: string;
|
|
1031
|
+
artifacts: {
|
|
1032
|
+
spec: {
|
|
1033
|
+
sha256: string;
|
|
1034
|
+
path: "spec.json";
|
|
1035
|
+
};
|
|
1036
|
+
dag: {
|
|
1037
|
+
sha256: string;
|
|
1038
|
+
path: "dag.json";
|
|
1039
|
+
};
|
|
1040
|
+
botSnapshots: {
|
|
1041
|
+
sha256: string;
|
|
1042
|
+
path: "bots.snapshot.json";
|
|
1043
|
+
};
|
|
1044
|
+
resolvedParams: {
|
|
1045
|
+
sha256: string;
|
|
1046
|
+
path: "params.resolved.json";
|
|
1047
|
+
};
|
|
1048
|
+
definitionSnapshot: {
|
|
1049
|
+
sha256: string;
|
|
1050
|
+
path: "definition.snapshot.json";
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
authorization: {
|
|
1054
|
+
kind: "published_revision";
|
|
1055
|
+
authorizedAt: string;
|
|
1056
|
+
dagSha256: string;
|
|
1057
|
+
specSha256: string;
|
|
1058
|
+
workflowId: string;
|
|
1059
|
+
revisionId: string;
|
|
1060
|
+
definitionSnapshotSha256: string;
|
|
1061
|
+
};
|
|
1062
|
+
chatBinding?: {
|
|
1063
|
+
larkAppId: string;
|
|
1064
|
+
chatId: string;
|
|
1065
|
+
sessionId?: string | undefined;
|
|
1066
|
+
chatType?: "group" | "p2p" | undefined;
|
|
1067
|
+
ownerOpenId?: string | undefined;
|
|
1068
|
+
rootMessageId?: string | undefined;
|
|
1069
|
+
} | undefined;
|
|
1070
|
+
} | {
|
|
1071
|
+
engine: "workflow-v3";
|
|
1072
|
+
source: {
|
|
1073
|
+
kind: "manual_cli";
|
|
1074
|
+
};
|
|
1075
|
+
runId: string;
|
|
1076
|
+
schemaVersion: 1;
|
|
1077
|
+
createdAt: string;
|
|
1078
|
+
artifacts: {
|
|
1079
|
+
dag: {
|
|
1080
|
+
sha256: string;
|
|
1081
|
+
path: "dag.json";
|
|
1082
|
+
};
|
|
1083
|
+
botSnapshots: {
|
|
1084
|
+
sha256: string;
|
|
1085
|
+
path: "bots.snapshot.json";
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
authorization: {
|
|
1089
|
+
kind: "local_cli";
|
|
1090
|
+
authorizedAt: string;
|
|
1091
|
+
dagSha256: string;
|
|
1092
|
+
};
|
|
1093
|
+
chatBinding?: {
|
|
1094
|
+
larkAppId: string;
|
|
1095
|
+
chatId: string;
|
|
1096
|
+
sessionId?: string | undefined;
|
|
1097
|
+
chatType?: "group" | "p2p" | undefined;
|
|
1098
|
+
ownerOpenId?: string | undefined;
|
|
1099
|
+
rootMessageId?: string | undefined;
|
|
1100
|
+
} | undefined;
|
|
1101
|
+
} | {
|
|
1102
|
+
engine: "workflow-v3";
|
|
1103
|
+
source: {
|
|
1104
|
+
kind: "legacy_v3";
|
|
1105
|
+
original: "manual_cli" | "grill";
|
|
1106
|
+
};
|
|
1107
|
+
runId: string;
|
|
1108
|
+
schemaVersion: 1;
|
|
1109
|
+
createdAt: string;
|
|
1110
|
+
artifacts: {
|
|
1111
|
+
dag: {
|
|
1112
|
+
sha256: string;
|
|
1113
|
+
path: "dag.json";
|
|
1114
|
+
};
|
|
1115
|
+
spec?: {
|
|
1116
|
+
sha256: string;
|
|
1117
|
+
path: "spec.json";
|
|
1118
|
+
} | undefined;
|
|
1119
|
+
botSnapshots?: {
|
|
1120
|
+
sha256: string;
|
|
1121
|
+
path: "bots.snapshot.json";
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
};
|
|
1124
|
+
authorization: {
|
|
1125
|
+
kind: "legacy_backfill";
|
|
1126
|
+
dagSha256: string;
|
|
1127
|
+
backfilledAt: string;
|
|
1128
|
+
basis: "grill_dag_approved" | "runtime_started";
|
|
1129
|
+
integrity: "unverifiable_before_backfill";
|
|
1130
|
+
specSha256?: string | undefined;
|
|
1131
|
+
};
|
|
1132
|
+
chatBinding?: {
|
|
1133
|
+
larkAppId: string;
|
|
1134
|
+
chatId: string;
|
|
1135
|
+
sessionId?: string | undefined;
|
|
1136
|
+
chatType?: "group" | "p2p" | undefined;
|
|
1137
|
+
ownerOpenId?: string | undefined;
|
|
1138
|
+
rootMessageId?: string | undefined;
|
|
1139
|
+
} | undefined;
|
|
1140
|
+
}>;
|
|
1141
|
+
export type V3RunEnvelope = z.infer<typeof V3RunEnvelopeSchema>;
|
|
1142
|
+
export type V3AdHocRunEnvelope = Extract<V3RunEnvelope, {
|
|
1143
|
+
source: {
|
|
1144
|
+
kind: 'ad_hoc';
|
|
1145
|
+
};
|
|
1146
|
+
}>;
|
|
1147
|
+
export type V3SavedDefinitionRunEnvelope = Extract<V3RunEnvelope, {
|
|
1148
|
+
source: {
|
|
1149
|
+
kind: 'saved_definition';
|
|
1150
|
+
};
|
|
1151
|
+
}>;
|
|
1152
|
+
export type V3ManualCliRunEnvelope = Extract<V3RunEnvelope, {
|
|
1153
|
+
source: {
|
|
1154
|
+
kind: 'manual_cli';
|
|
1155
|
+
};
|
|
1156
|
+
}>;
|
|
1157
|
+
export type V3LegacyRunEnvelope = Extract<V3RunEnvelope, {
|
|
1158
|
+
source: {
|
|
1159
|
+
kind: 'legacy_v3';
|
|
1160
|
+
};
|
|
1161
|
+
}>;
|
|
1162
|
+
export type V3RunSourceKind = V3RunEnvelope['source']['kind'];
|
|
1163
|
+
export declare class RunEnvelopeValidationError extends Error {
|
|
1164
|
+
readonly problems: string[];
|
|
1165
|
+
constructor(problems: string[]);
|
|
1166
|
+
}
|
|
1167
|
+
export declare class RunEnvelopeConflictError extends Error {
|
|
1168
|
+
constructor(message: string);
|
|
1169
|
+
}
|
|
1170
|
+
export declare class RunEnvelopeIntegrityError extends Error {
|
|
1171
|
+
readonly code: 'envelope_missing' | 'envelope_invalid' | 'source_not_allowed' | 'artifact_missing' | 'artifact_not_regular_file' | 'artifact_digest_mismatch' | 'artifact_invalid_json' | 'artifact_invalid_content' | 'run_id_mismatch';
|
|
1172
|
+
readonly artifact?: V3RunArtifactPath | undefined;
|
|
1173
|
+
constructor(code: 'envelope_missing' | 'envelope_invalid' | 'source_not_allowed' | 'artifact_missing' | 'artifact_not_regular_file' | 'artifact_digest_mismatch' | 'artifact_invalid_json' | 'artifact_invalid_content' | 'run_id_mismatch', message: string, artifact?: V3RunArtifactPath | undefined);
|
|
1174
|
+
}
|
|
1175
|
+
export declare function validateRunEnvelope(raw: unknown, expectedRunId?: string): V3RunEnvelope;
|
|
1176
|
+
export type ReadRunEnvelopeResult = {
|
|
1177
|
+
kind: 'missing';
|
|
1178
|
+
path: string;
|
|
1179
|
+
} | {
|
|
1180
|
+
kind: 'invalid';
|
|
1181
|
+
path: string;
|
|
1182
|
+
problems: string[];
|
|
1183
|
+
} | {
|
|
1184
|
+
kind: 'ok';
|
|
1185
|
+
path: string;
|
|
1186
|
+
envelope: V3RunEnvelope;
|
|
1187
|
+
bytes: Buffer;
|
|
1188
|
+
};
|
|
1189
|
+
/**
|
|
1190
|
+
* Defensive reader that preserves the crucial missing-vs-corrupt distinction.
|
|
1191
|
+
* Compatibility callers may fall back to grill state only for `missing`; an
|
|
1192
|
+
* existing invalid envelope must fail closed.
|
|
1193
|
+
*
|
|
1194
|
+
* Only an ENOENT from the initial lstat is `missing`. An existing path that
|
|
1195
|
+
* is a symlink, FIFO, directory, device, or otherwise non-regular file is
|
|
1196
|
+
* always `invalid` — even when a dangling symlink would make existsSync/stat
|
|
1197
|
+
* follow-and-miss. The type check runs on lstat BEFORE any open: a plain
|
|
1198
|
+
* open(2) on a writerless FIFO blocks forever, and this reader sits on
|
|
1199
|
+
* daemon-side integrity paths. The open then uses O_NOFOLLOW + O_NONBLOCK and
|
|
1200
|
+
* re-confirms via fstat dev+ino so a lstat→open TOCTOU swap can neither block
|
|
1201
|
+
* nor substitute another file. Once lstat has observed the path, every later
|
|
1202
|
+
* error — including ENOENT from a removal race — is `invalid`: the path
|
|
1203
|
+
* changed mid-read, and missing-only legacy fallbacks must not engage.
|
|
1204
|
+
*/
|
|
1205
|
+
export declare function readRunEnvelope(runDir: string, expectedRunId?: string): ReadRunEnvelopeResult;
|
|
1206
|
+
/** SHA-256 of exact bytes (no JSON parse/re-serialization). */
|
|
1207
|
+
export declare function sha256Bytes(bytes: string | Buffer): Sha256Digest;
|
|
1208
|
+
/** Build an exact-byte artifact ref for an already-materialized run file. */
|
|
1209
|
+
export declare function artifactRef<Path extends V3RunArtifactPath>(runDir: string, path: Path): V3ArtifactRef<Path>;
|
|
1210
|
+
export interface LoadedAuthorizedV3Run {
|
|
1211
|
+
envelope: V3RunEnvelope;
|
|
1212
|
+
/** Validated from the exact bytes whose digest was checked. */
|
|
1213
|
+
dag: V3Dag;
|
|
1214
|
+
spec?: Spec;
|
|
1215
|
+
/** Shape validation belongs to the bot-snapshot materializer; kept as exact JSON here. */
|
|
1216
|
+
botSnapshots?: unknown;
|
|
1217
|
+
resolvedParams?: unknown;
|
|
1218
|
+
definitionSnapshot?: unknown;
|
|
1219
|
+
/** Exact verified bytes, for a caller that must avoid a second filesystem read. */
|
|
1220
|
+
bytes: {
|
|
1221
|
+
runEnvelope: Buffer;
|
|
1222
|
+
dag: Buffer;
|
|
1223
|
+
spec?: Buffer;
|
|
1224
|
+
botSnapshots?: Buffer;
|
|
1225
|
+
resolvedParams?: Buffer;
|
|
1226
|
+
definitionSnapshot?: Buffer;
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
export interface LoadAuthorizedV3RunOptions {
|
|
1230
|
+
expectedRunId?: string;
|
|
1231
|
+
allowedSources?: readonly V3RunSourceKind[];
|
|
1232
|
+
}
|
|
1233
|
+
/** Strictly read, authorize, hash-check, and parse a materialized v3 run. */
|
|
1234
|
+
export declare function loadAuthorizedV3Run(runDir: string, options?: LoadAuthorizedV3RunOptions): LoadedAuthorizedV3Run;
|
|
1235
|
+
export declare function serializeRunEnvelope(envelope: V3RunEnvelope): string;
|
|
1236
|
+
export interface PublishRunEnvelopeResult {
|
|
1237
|
+
created: boolean;
|
|
1238
|
+
path: string;
|
|
1239
|
+
envelope: V3RunEnvelope;
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Atomically publish run.json without ever replacing an existing envelope.
|
|
1243
|
+
* A hard-link publishes a fully-written same-filesystem temp inode with
|
|
1244
|
+
* create-only semantics; an exact semantic repeat is accepted idempotently.
|
|
1245
|
+
*
|
|
1246
|
+
* run.json is also the commit marker for every digest-pinned artifact. Before
|
|
1247
|
+
* exposing it we fsync each referenced regular file and the run directory, so
|
|
1248
|
+
* a crash cannot retain the authorization while losing its DAG/spec/snapshot.
|
|
1249
|
+
*/
|
|
1250
|
+
export declare function publishRunEnvelopeOnce(runDir: string, raw: V3RunEnvelope): PublishRunEnvelopeResult;
|
|
1251
|
+
interface CommonBuilderInput {
|
|
1252
|
+
runId: string;
|
|
1253
|
+
createdAt: string;
|
|
1254
|
+
chatBinding?: RunChatBinding;
|
|
1255
|
+
}
|
|
1256
|
+
export declare function makeAdHocRunEnvelope(input: CommonBuilderInput & {
|
|
1257
|
+
authorizedAt: string;
|
|
1258
|
+
authorizedByOpenId?: string;
|
|
1259
|
+
artifacts: V3AdHocRunEnvelope['artifacts'];
|
|
1260
|
+
}): V3AdHocRunEnvelope;
|
|
1261
|
+
export declare function makeSavedDefinitionRunEnvelope(input: CommonBuilderInput & {
|
|
1262
|
+
workflowId: string;
|
|
1263
|
+
revisionId: string;
|
|
1264
|
+
humanVersion: number;
|
|
1265
|
+
authorizedAt: string;
|
|
1266
|
+
artifacts: V3SavedDefinitionRunEnvelope['artifacts'];
|
|
1267
|
+
}): V3SavedDefinitionRunEnvelope;
|
|
1268
|
+
export declare function makeManualCliRunEnvelope(input: CommonBuilderInput & {
|
|
1269
|
+
authorizedAt: string;
|
|
1270
|
+
artifacts: V3ManualCliRunEnvelope['artifacts'];
|
|
1271
|
+
}): V3ManualCliRunEnvelope;
|
|
1272
|
+
export declare function makeLegacyV3RunEnvelope(input: CommonBuilderInput & {
|
|
1273
|
+
original: 'grill' | 'manual_cli';
|
|
1274
|
+
basis: 'grill_dag_approved' | 'runtime_started';
|
|
1275
|
+
backfilledAt: string;
|
|
1276
|
+
artifacts: V3LegacyRunEnvelope['artifacts'];
|
|
1277
|
+
}): V3LegacyRunEnvelope;
|
|
1278
|
+
export {};
|
|
1279
|
+
//# sourceMappingURL=run-envelope.d.ts.map
|