agentxgo 0.0.0-stage → 0.1.1
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.md +9 -2
- package/dist/adapters/codex/client.js +6 -0
- package/dist/adapters/dsh/client.js +6 -0
- package/dist/adapters/runtime-http/client.js +101 -0
- package/dist/adapters/runtime-http/endpoint.js +15 -0
- package/dist/bootstrap.js +161 -0
- package/dist/cli.js +134 -0
- package/dist/communication/assembly.js +172 -0
- package/dist/communication/calls.js +107 -0
- package/dist/communication/config.js +33 -0
- package/dist/communication/pump.js +136 -0
- package/dist/computer/authority.js +67 -0
- package/dist/computer/automatic.js +163 -0
- package/dist/computer/automation-main.js +59 -0
- package/dist/computer/automation.js +229 -0
- package/dist/computer/backend.js +160 -0
- package/dist/computer/clipboard.js +72 -0
- package/dist/computer/config.js +66 -0
- package/dist/computer/controller.js +378 -0
- package/dist/computer/desktop.js +225 -0
- package/dist/computer/job-main.js +114 -0
- package/dist/computer/main.js +9 -0
- package/dist/computer/native.js +28 -0
- package/dist/computer/processes.js +165 -0
- package/dist/computer/release.js +40 -0
- package/dist/computer/scratch.js +171 -0
- package/dist/computer/service.js +46 -0
- package/dist/computer/worker.js +70 -0
- package/dist/config.js +156 -0
- package/dist/continuation/checkpoints.js +98 -0
- package/dist/continuation/commands.js +81 -0
- package/dist/continuation/coordinator.js +490 -0
- package/dist/continuation/corrections.js +154 -0
- package/dist/continuation/events.js +171 -0
- package/dist/continuation/failure.js +93 -0
- package/dist/continuation/listening.js +24 -0
- package/dist/continuation/local-wait.js +67 -0
- package/dist/continuation/observations.js +100 -0
- package/dist/continuation/parking.js +190 -0
- package/dist/continuation/reading.js +77 -0
- package/dist/conversations/pump.js +158 -0
- package/dist/conversations/runtime-http.js +88 -0
- package/dist/deployment/cold-qualification.js +119 -0
- package/dist/deployment/cold-release.js +56 -0
- package/dist/deployment/components/cli.js +45 -0
- package/dist/deployment/components/lock.js +38 -0
- package/dist/deployment/components/manager.js +281 -0
- package/dist/deployment/components/release.js +50 -0
- package/dist/deployment/components/runner.js +15 -0
- package/dist/deployment/components/supervisor.js +289 -0
- package/dist/deployment/components/verify.js +66 -0
- package/dist/deployment/components/windows.js +70 -0
- package/dist/deployment/config.js +89 -0
- package/dist/deployment/failure.js +24 -0
- package/dist/deployment/kernel.js +85 -0
- package/dist/deployment/macos/activate.js +140 -0
- package/dist/deployment/macos/attachment.js +42 -0
- package/dist/deployment/macos/handoff.js +140 -0
- package/dist/deployment/macos/install.js +223 -0
- package/dist/deployment/macos/plan.js +155 -0
- package/dist/deployment/macos/proof.js +24 -0
- package/dist/deployment/main.js +16 -0
- package/dist/deployment/members.js +58 -0
- package/dist/deployment/preflight.js +41 -0
- package/dist/deployment/recovery-route.js +18 -0
- package/dist/deployment/runtime.js +114 -0
- package/dist/deployment/system.js +112 -0
- package/dist/deployment/windows-state.js +32 -0
- package/dist/doctor/config.js +155 -0
- package/dist/doctor/probe.js +212 -0
- package/dist/doctor/process.js +31 -0
- package/dist/doctor/run.js +105 -0
- package/dist/enrollment/cli.js +57 -0
- package/dist/enrollment/defaults.js +54 -0
- package/dist/enrollment/device.js +314 -0
- package/dist/enrollment/login.js +107 -0
- package/dist/enrollment/setup.js +164 -0
- package/dist/enrollment/terminal.js +55 -0
- package/dist/execution/artifact.js +157 -0
- package/dist/execution/codex/authority.js +356 -0
- package/dist/execution/codex/catalog.js +24 -0
- package/dist/execution/codex/config.js +77 -0
- package/dist/execution/codex/directories.js +67 -0
- package/dist/execution/codex/main.js +17 -0
- package/dist/execution/codex/read.js +35 -0
- package/dist/execution/codex/record.js +121 -0
- package/dist/execution/codex/role.js +2 -0
- package/dist/execution/codex/stream.js +2 -0
- package/dist/execution/codex/window-receipts.js +73 -0
- package/dist/execution/codex/wire.js +56 -0
- package/dist/execution/codex/worker.js +143 -0
- package/dist/execution/config.js +215 -0
- package/dist/execution/environment.js +61 -0
- package/dist/execution/gateway.js +212 -0
- package/dist/execution/lease-watchdog.js +172 -0
- package/dist/execution/local.js +159 -0
- package/dist/execution/main.js +71 -0
- package/dist/execution/native/config.js +45 -0
- package/dist/execution/native/input.js +7 -0
- package/dist/execution/native/main.js +9 -0
- package/dist/execution/native/records.js +168 -0
- package/dist/execution/native/worker.js +128 -0
- package/dist/execution/native-job-gate.js +63 -0
- package/dist/execution/process-types.js +1 -0
- package/dist/execution/process.js +246 -0
- package/dist/execution/results.js +111 -0
- package/dist/execution/role.js +210 -0
- package/dist/execution/runner.js +338 -0
- package/dist/execution/scope.js +415 -0
- package/dist/execution/scratch-files.js +352 -0
- package/dist/execution/scratch-paths.js +56 -0
- package/dist/execution/scratch.js +126 -0
- package/dist/execution/stdio.js +83 -0
- package/dist/execution/stream.js +159 -0
- package/dist/execution/watchdog.js +181 -0
- package/dist/execution/work.js +76 -0
- package/dist/execution/worker.js +106 -0
- package/dist/help.js +21 -0
- package/dist/lifecycle/http.js +178 -0
- package/dist/lifecycle/runtime.js +263 -0
- package/dist/lifecycle/status-command.js +78 -0
- package/dist/lifecycle/status.js +37 -0
- package/dist/lifecycle/wake-hints.js +68 -0
- package/dist/main.js +59 -0
- package/dist/ports/reports.js +1 -0
- package/dist/ports/runtime.js +1 -0
- package/dist/preparation/backend.js +44 -0
- package/dist/preparation/binding.js +47 -0
- package/dist/preparation/bootstrap.js +165 -0
- package/dist/preparation/config.js +143 -0
- package/dist/preparation/coordinator.js +251 -0
- package/dist/preparation/main.js +58 -0
- package/dist/preparation/runtime.js +122 -0
- package/dist/receptions/pump.js +109 -0
- package/dist/receptions/runtime-http.js +115 -0
- package/dist/recovery/activation.js +178 -0
- package/dist/recovery/admission.js +95 -0
- package/dist/recovery/automatic-preparation.js +194 -0
- package/dist/recovery/automatic-recovery.js +210 -0
- package/dist/recovery/confirmed-binding.js +45 -0
- package/dist/recovery/coordinator.js +351 -0
- package/dist/recovery/execution-policy.js +26 -0
- package/dist/recovery/preparation-policy.js +30 -0
- package/dist/recovery/prestart.js +62 -0
- package/dist/recovery/quarantine.js +153 -0
- package/dist/recovery/service-restart-view.js +32 -0
- package/dist/recovery/service-restart.js +368 -0
- package/dist/reports/pump.js +98 -0
- package/dist/resources/admission.js +25 -0
- package/dist/resources/guard.js +14 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/account.js +42 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/connection-file.js +32 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/direct.js +114 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/local.js +238 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/operations-arguments.js +20 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/operations-communication.js +56 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/operations-operator.js +40 -0
- package/node_modules/@agent-stack/adapter-agentim/package.json +15 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/automatic-activation.js +94 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/automatic-preparation.js +90 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/checkpoint-seal.js +89 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/communication.js +238 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/computer-scratch.js +56 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/computer.js +183 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/database.js +174 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/index.js +4 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/input.js +55 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/journal.js +396 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/models.js +35 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/native-calls.js +123 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/native-window.js +12 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/observations.js +237 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/preparation.js +117 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/recovery-history.js +30 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/recovery-record.js +32 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/recovery.js +256 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/reports.js +105 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/runtime-events.js +246 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/runtime-settings.js +95 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/target-actions.js +355 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/target-local.js +210 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/target-scratch.js +207 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/terminal-checkpoints.js +286 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/terminal-store.js +136 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/trace-inputs.js +104 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/upgrade.js +25 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/waits.js +213 -0
- package/node_modules/@agent-stack/bot-host-journal/package.json +10 -0
- package/node_modules/@agent-stack/bridge-client/dist/bot-transport.js +339 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/agents.js +22 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/assistant.js +26 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/auth.js +9 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/client.js +160 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/inventory.js +55 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/native-events.js +52 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/owner-route.js +21 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/reports.js +41 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/runtime.js +190 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bridge-client.js +37 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/core.js +123 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/deployments.js +57 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/integrations.js +45 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/knowledge.js +33 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/management.js +112 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/platform-events.js +59 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/platform.js +82 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/public-runtime.js +94 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/run-work-acknowledgement.js +54 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/run-work-errors.js +34 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/runtime.js +46 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/tenant/authorization.js +7 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/tenant/management.js +59 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/workspace.js +109 -0
- package/node_modules/@agent-stack/bridge-client/dist/index.js +9 -0
- package/node_modules/@agent-stack/bridge-client/package.json +11 -0
- package/node_modules/@agent-stack/contracts/dist/api-credentials.js +103 -0
- package/node_modules/@agent-stack/contracts/dist/bots/assistant-path.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/bots/assistant.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/bots/capabilities.js +66 -0
- package/node_modules/@agent-stack/contracts/dist/bots/capability-migration.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/capability-version.js +48 -0
- package/node_modules/@agent-stack/contracts/dist/bots/codex-policy.js +22 -0
- package/node_modules/@agent-stack/contracts/dist/bots/command-evidence.js +101 -0
- package/node_modules/@agent-stack/contracts/dist/bots/command-inventory.js +74 -0
- package/node_modules/@agent-stack/contracts/dist/bots/command-receipt.js +78 -0
- package/node_modules/@agent-stack/contracts/dist/bots/communication-native.js +33 -0
- package/node_modules/@agent-stack/contracts/dist/bots/communication-stream.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/bots/communication.js +154 -0
- package/node_modules/@agent-stack/contracts/dist/bots/component-status.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/bots/components.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/computer-validation.js +320 -0
- package/node_modules/@agent-stack/contracts/dist/bots/computer.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/conversations.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/bots/corrections.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delegation-renewal.js +17 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delegation.js +35 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delivery-history.js +115 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delivery-read.js +121 -0
- package/node_modules/@agent-stack/contracts/dist/bots/elicitation.js +83 -0
- package/node_modules/@agent-stack/contracts/dist/bots/entries.js +65 -0
- package/node_modules/@agent-stack/contracts/dist/bots/event-exchanges.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/goal-window.js +84 -0
- package/node_modules/@agent-stack/contracts/dist/bots/host-actions.js +191 -0
- package/node_modules/@agent-stack/contracts/dist/bots/identities.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/index.js +72 -0
- package/node_modules/@agent-stack/contracts/dist/bots/installation.js +9 -0
- package/node_modules/@agent-stack/contracts/dist/bots/interaction-validation.js +227 -0
- package/node_modules/@agent-stack/contracts/dist/bots/interactions.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/lifecycle.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/bots/local-execution.js +72 -0
- package/node_modules/@agent-stack/contracts/dist/bots/mcp-capabilities.js +53 -0
- package/node_modules/@agent-stack/contracts/dist/bots/mission.js +3 -0
- package/node_modules/@agent-stack/contracts/dist/bots/model-routing.js +43 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-events-validation.js +229 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-events.js +4 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-fact.js +32 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-host.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/observation.js +42 -0
- package/node_modules/@agent-stack/contracts/dist/bots/owner-progress.js +85 -0
- package/node_modules/@agent-stack/contracts/dist/bots/owner-transition.js +169 -0
- package/node_modules/@agent-stack/contracts/dist/bots/parking.js +75 -0
- package/node_modules/@agent-stack/contracts/dist/bots/preferences.js +39 -0
- package/node_modules/@agent-stack/contracts/dist/bots/preparations.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/bots/project-oauth.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/quarantine-installation.js +117 -0
- package/node_modules/@agent-stack/contracts/dist/bots/quarantine.js +186 -0
- package/node_modules/@agent-stack/contracts/dist/bots/read-recovery.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/receptions.js +7 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-admission.js +163 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-errors.js +51 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-history.js +90 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-source.js +164 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-validation.js +160 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/bots/relay.js +21 -0
- package/node_modules/@agent-stack/contracts/dist/bots/report-status.js +99 -0
- package/node_modules/@agent-stack/contracts/dist/bots/reports.js +8 -0
- package/node_modules/@agent-stack/contracts/dist/bots/restart-source.js +151 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-command.js +59 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-input.js +80 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-provider.js +12 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-settings.js +63 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-validation.js +35 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/same-native.js +44 -0
- package/node_modules/@agent-stack/contracts/dist/bots/service-restart.js +80 -0
- package/node_modules/@agent-stack/contracts/dist/bots/status.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/sync.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/targets.js +95 -0
- package/node_modules/@agent-stack/contracts/dist/bots/validation.js +82 -0
- package/node_modules/@agent-stack/contracts/dist/bots/versions.js +6 -0
- package/node_modules/@agent-stack/contracts/dist/bots/wake-hints.js +20 -0
- package/node_modules/@agent-stack/contracts/dist/bots/work-brief.js +120 -0
- package/node_modules/@agent-stack/contracts/dist/bots/work-control.js +47 -0
- package/node_modules/@agent-stack/contracts/dist/bots/work-events.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/browser-chat-attachment.js +66 -0
- package/node_modules/@agent-stack/contracts/dist/business-outcomes.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/chat-attachment.js +70 -0
- package/node_modules/@agent-stack/contracts/dist/chat-stream.js +105 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/agent-ui.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/base.js +6 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/deployments.js +6 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/index.js +8 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/integrations.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/knowledge.js +69 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/live.js +56 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/runtime.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/workspace.js +9 -0
- package/node_modules/@agent-stack/contracts/dist/delivery-targets.js +139 -0
- package/node_modules/@agent-stack/contracts/dist/desktop-mcp.js +105 -0
- package/node_modules/@agent-stack/contracts/dist/employee-association.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/event-links.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/execution-oauth-callback.js +61 -0
- package/node_modules/@agent-stack/contracts/dist/host-page-context.js +156 -0
- package/node_modules/@agent-stack/contracts/dist/index.js +115 -0
- package/node_modules/@agent-stack/contracts/dist/installation-lifecycle.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/installation-mcp.js +5 -0
- package/node_modules/@agent-stack/contracts/dist/installations.js +7 -0
- package/node_modules/@agent-stack/contracts/dist/integration-context.js +22 -0
- package/node_modules/@agent-stack/contracts/dist/integration-oauth.js +23 -0
- package/node_modules/@agent-stack/contracts/dist/integration-runtime.js +107 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-run-wake.js +78 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-work-acknowledgement.js +74 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-work-events.js +131 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-work-sources.js +142 -0
- package/node_modules/@agent-stack/contracts/dist/knowledge-attachment.js +50 -0
- package/node_modules/@agent-stack/contracts/dist/knowledge-catalog.js +94 -0
- package/node_modules/@agent-stack/contracts/dist/knowledge-organization.js +87 -0
- package/node_modules/@agent-stack/contracts/dist/live-audio.js +46 -0
- package/node_modules/@agent-stack/contracts/dist/live-business.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/live-human.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/live-transport.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/mcp-directory.js +7 -0
- package/node_modules/@agent-stack/contracts/dist/mcp-refresh.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/mcp-scopes.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/native-studio-installation.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/oauth-authorization.js +19 -0
- package/node_modules/@agent-stack/contracts/dist/platform-events.js +182 -0
- package/node_modules/@agent-stack/contracts/dist/reply-presentation.js +59 -0
- package/node_modules/@agent-stack/contracts/dist/reply.js +129 -0
- package/node_modules/@agent-stack/contracts/dist/request-body.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/schedules.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/task-work-events.js +107 -0
- package/node_modules/@agent-stack/contracts/dist/tasks.js +200 -0
- package/node_modules/@agent-stack/contracts/dist/templates.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/access-schemas.js +149 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/access-views.js +17 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/access.js +132 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/actions.js +173 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/attachments.js +68 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/authorization.js +160 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/capabilities.js +98 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/connections.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/conversation-work-events.js +72 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/conversation-work-schemas.js +136 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/conversations.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/deliveries.js +120 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/delivery-views.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/deployment-catalog.js +50 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/descriptor.js +50 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/events.js +39 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/feedback.js +161 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/guidance.js +284 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/host-enrollment.js +51 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/identity.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/installation-schemas.js +350 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/installation-views.js +69 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/installations.js +217 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/integration-configuration.js +96 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/integration-oauth.js +85 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/integrations.js +75 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/json.js +96 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management-input.js +211 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management-results.js +145 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management-schemas.js +139 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management.js +32 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-organization.js +96 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-program-input.js +111 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-program-results.js +234 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-programs.js +15 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/live.js +63 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/marketplace-schemas.js +110 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/marketplaces.js +51 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/mcp-directory.js +98 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/native-operations.js +113 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/operations.js +36 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/outcome-schemas.js +121 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/outcomes.js +87 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/queries.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/resource-views.js +463 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/resources.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schedule-schemas.js +122 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schedule-views.js +22 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schedules.js +109 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schemas.js +117 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/settings.js +34 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/sse.js +58 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/task-schemas.js +89 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/task-views.js +34 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/tasks.js +41 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/tests.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/transport.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/usage.js +61 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/views.js +52 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/widgets.js +215 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/work-changes.js +71 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/work-materials.js +102 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/workspace-resources.js +87 -0
- package/node_modules/@agent-stack/contracts/dist/widget-authorization.js +55 -0
- package/node_modules/@agent-stack/contracts/dist/widget-avatar.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/widget-context.js +57 -0
- package/node_modules/@agent-stack/contracts/dist/widget-conversation.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/widget-host-auth.js +142 -0
- package/node_modules/@agent-stack/contracts/dist/widget-origin.js +16 -0
- package/node_modules/@agent-stack/contracts/dist/widget-turn.js +84 -0
- package/node_modules/@agent-stack/contracts/package.json +8 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/authority.js +64 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/bootstrap.js +81 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/codex-record.js +37 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/codex-target.js +56 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/conversation.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/index.js +7 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/process-identity.js +18 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/quarantine-material.js +9 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/recovery-inspection.js +103 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/service.js +3 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/index.js +7 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/json.js +169 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/observation.js +40 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/runtime.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/trace.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/types.js +32 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/wire.js +167 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/wire.schema.json +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/index.js +31 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/interactive-run-wake.js +190 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/legacy.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/mcp.js +53 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/native-studio-connection.js +46 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/native-studio-execution.js +100 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/native-studio-registration.js +193 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/oauth-context.js +38 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/personal-mcp.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/signing.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/source-reply.js +153 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/storage.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/target-environment.js +45 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/tenant-management.js +57 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/tool-trace.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/package.json +13 -0
- package/node_modules/@agentims/adapter/dist/authority/binding.js +40 -0
- package/node_modules/@agentims/adapter/dist/delivery/coordinator.js +202 -0
- package/node_modules/@agentims/adapter/dist/delivery/decision.js +51 -0
- package/node_modules/@agentims/adapter/dist/delivery/record.js +24 -0
- package/node_modules/@agentims/adapter/dist/delivery/types.js +1 -0
- package/node_modules/@agentims/adapter/dist/errors.js +40 -0
- package/node_modules/@agentims/adapter/dist/index.js +5 -0
- package/node_modules/@agentims/adapter/dist/lifecycle/budget.js +30 -0
- package/node_modules/@agentims/adapter/dist/receipts/send.js +24 -0
- package/node_modules/@agentims/adapter/dist/source/event-source.js +153 -0
- package/node_modules/@agentims/adapter/dist/source/types.js +1 -0
- package/node_modules/@agentims/adapter/dist/status/adapter-status.js +46 -0
- package/node_modules/@agentims/adapter/package.json +10 -0
- package/node_modules/@agentims/runtime/dist/accounts/backup.js +39 -0
- package/node_modules/@agentims/runtime/dist/accounts/communication.js +14 -0
- package/node_modules/@agentims/runtime/dist/accounts/context.js +36 -0
- package/node_modules/@agentims/runtime/dist/accounts/credential-lifecycle.js +57 -0
- package/node_modules/@agentims/runtime/dist/accounts/errors.js +13 -0
- package/node_modules/@agentims/runtime/dist/accounts/login.js +32 -0
- package/node_modules/@agentims/runtime/dist/accounts/password.js +18 -0
- package/node_modules/@agentims/runtime/dist/accounts/register.js +30 -0
- package/node_modules/@agentims/runtime/dist/accounts/selection.js +93 -0
- package/node_modules/@agentims/runtime/dist/accounts/types.js +1 -0
- package/node_modules/@agentims/runtime/dist/authentication/intent.js +15 -0
- package/node_modules/@agentims/runtime/dist/authentication/journals.js +39 -0
- package/node_modules/@agentims/runtime/dist/authentication/methods.js +42 -0
- package/node_modules/@agentims/runtime/dist/authentication/selection.js +20 -0
- package/node_modules/@agentims/runtime/dist/authentication/status.js +42 -0
- package/node_modules/@agentims/runtime/dist/cli/account-commands.js +72 -0
- package/node_modules/@agentims/runtime/dist/cli/arguments.js +120 -0
- package/node_modules/@agentims/runtime/dist/cli/authentication.js +22 -0
- package/node_modules/@agentims/runtime/dist/cli/command-names.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/account-authorization.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/cache-inspection.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/cache.js +14 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/catalog.js +40 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/contacts.js +5 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/conversations.js +15 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/definition.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/deliveries-native.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/deliveries.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/devices-native.js +7 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/discovery.js +4 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/drafts.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-dehydration.js +13 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-native.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-recovery.js +11 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-reset.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-secrets.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/identity.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/location.js +7 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/matrix-capabilities.js +38 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/matrix-identity.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/matrix-rooms.js +23 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/media.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/messages-native.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/messages.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/native-inspection.js +24 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/native-preferences.js +11 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/native-requests.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/oauth.js +15 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/outbox.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/pairing.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/profiles.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/qr-authorization.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/reliability.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/room-management.js +17 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/rtc.js +14 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/search.js +11 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/sync-qr.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/timeline-native.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/verification-native.js +7 -0
- package/node_modules/@agentims/runtime/dist/cli/errors.js +83 -0
- package/node_modules/@agentims/runtime/dist/cli/help.js +74 -0
- package/node_modules/@agentims/runtime/dist/cli/history-commands.js +13 -0
- package/node_modules/@agentims/runtime/dist/cli/input.js +82 -0
- package/node_modules/@agentims/runtime/dist/cli/main.js +19 -0
- package/node_modules/@agentims/runtime/dist/cli/output.js +71 -0
- package/node_modules/@agentims/runtime/dist/cli/password-input.js +36 -0
- package/node_modules/@agentims/runtime/dist/cli/run.js +90 -0
- package/node_modules/@agentims/runtime/dist/cli/update-commands.js +76 -0
- package/node_modules/@agentims/runtime/dist/configuration/account-credential.js +30 -0
- package/node_modules/@agentims/runtime/dist/configuration/connection-descriptor.js +18 -0
- package/node_modules/@agentims/runtime/dist/configuration/device-binding.js +41 -0
- package/node_modules/@agentims/runtime/dist/configuration/environment.js +43 -0
- package/node_modules/@agentims/runtime/dist/configuration/executable.js +49 -0
- package/node_modules/@agentims/runtime/dist/configuration/http.js +4 -0
- package/node_modules/@agentims/runtime/dist/configuration/native-settings.js +13 -0
- package/node_modules/@agentims/runtime/dist/configuration/node-version.js +8 -0
- package/node_modules/@agentims/runtime/dist/configuration/private-state.js +115 -0
- package/node_modules/@agentims/runtime/dist/configuration/service-origin.js +48 -0
- package/node_modules/@agentims/runtime/dist/configuration/windows-command.js +14 -0
- package/node_modules/@agentims/runtime/dist/configuration/windows-security.js +13 -0
- package/node_modules/@agentims/runtime/dist/history/backup.js +45 -0
- package/node_modules/@agentims/runtime/dist/history/online.js +48 -0
- package/node_modules/@agentims/runtime/dist/history/recovery-file.js +19 -0
- package/node_modules/@agentims/runtime/dist/history/restore.js +19 -0
- package/node_modules/@agentims/runtime/dist/index.js +31 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/communication.js +66 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/embedded.js +24 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/foreground-connection.js +61 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/foreground.js +47 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/identity.js +46 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/process-priority.js +22 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/process.js +60 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/shutdown-lease.js +90 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/start.js +69 -0
- package/node_modules/@agentims/runtime/dist/managed/connection.js +29 -0
- package/node_modules/@agentims/runtime/dist/managed/control.js +134 -0
- package/node_modules/@agentims/runtime/dist/managed/directory.js +19 -0
- package/node_modules/@agentims/runtime/dist/managed/errors.js +9 -0
- package/node_modules/@agentims/runtime/dist/managed/lease.js +32 -0
- package/node_modules/@agentims/runtime/dist/managed/shutdown.js +63 -0
- package/node_modules/@agentims/runtime/dist/managed/state.js +82 -0
- package/node_modules/@agentims/runtime/dist/storage/archive.js +89 -0
- package/node_modules/@agentims/runtime/dist/supervision/command.js +13 -0
- package/node_modules/@agentims/runtime/dist/supervision/launchd.js +64 -0
- package/node_modules/@agentims/runtime/dist/supervision/select.js +13 -0
- package/node_modules/@agentims/runtime/dist/supervision/service.js +4 -0
- package/node_modules/@agentims/runtime/dist/supervision/systemd.js +34 -0
- package/node_modules/@agentims/runtime/dist/supervision/windows.js +20 -0
- package/node_modules/@agentims/runtime/dist/updates/activation.js +65 -0
- package/node_modules/@agentims/runtime/dist/updates/admission.js +15 -0
- package/node_modules/@agentims/runtime/dist/updates/archive.js +45 -0
- package/node_modules/@agentims/runtime/dist/updates/binding-preflight.js +25 -0
- package/node_modules/@agentims/runtime/dist/updates/continuity.js +45 -0
- package/node_modules/@agentims/runtime/dist/updates/device-archive.js +43 -0
- package/node_modules/@agentims/runtime/dist/updates/discovery.js +91 -0
- package/node_modules/@agentims/runtime/dist/updates/download.js +66 -0
- package/node_modules/@agentims/runtime/dist/updates/embedded.js +143 -0
- package/node_modules/@agentims/runtime/dist/updates/host-continuation.js +43 -0
- package/node_modules/@agentims/runtime/dist/updates/inspection-config.js +18 -0
- package/node_modules/@agentims/runtime/dist/updates/installation-integrity.js +35 -0
- package/node_modules/@agentims/runtime/dist/updates/installation.js +134 -0
- package/node_modules/@agentims/runtime/dist/updates/ledger.js +75 -0
- package/node_modules/@agentims/runtime/dist/updates/locking.js +17 -0
- package/node_modules/@agentims/runtime/dist/updates/managed.js +271 -0
- package/node_modules/@agentims/runtime/dist/updates/manifest.js +97 -0
- package/node_modules/@agentims/runtime/dist/updates/offline.js +56 -0
- package/node_modules/@agentims/runtime/dist/updates/owner.js +14 -0
- package/node_modules/@agentims/runtime/dist/updates/pending.js +20 -0
- package/node_modules/@agentims/runtime/dist/updates/policy.js +73 -0
- package/node_modules/@agentims/runtime/dist/updates/records.js +33 -0
- package/node_modules/@agentims/runtime/dist/updates/restart.js +80 -0
- package/node_modules/@agentims/runtime/dist/updates/shutdown-owner.js +74 -0
- package/node_modules/@agentims/runtime/dist/updates/shutdown-proof.js +35 -0
- package/node_modules/@agentims/runtime/dist/updates/types.js +16 -0
- package/node_modules/@agentims/runtime/dist/updates/version.js +40 -0
- package/node_modules/@agentims/runtime/dist/updates/watch.js +87 -0
- package/node_modules/@agentims/runtime/package.json +11 -0
- package/node_modules/@agentims/sdk/dist/api/client.js +15 -0
- package/node_modules/@agentims/sdk/dist/api/embedded-options.js +1 -0
- package/node_modules/@agentims/sdk/dist/api/embedded.js +28 -0
- package/node_modules/@agentims/sdk/dist/api/errors.js +43 -0
- package/node_modules/@agentims/sdk/dist/api/facade.js +92 -0
- package/node_modules/@agentims/sdk/dist/api/json-value.js +1 -0
- package/node_modules/@agentims/sdk/dist/api/options.js +1 -0
- package/node_modules/@agentims/sdk/dist/api/request-data.js +43 -0
- package/node_modules/@agentims/sdk/dist/api/sdk-info.js +9 -0
- package/node_modules/@agentims/sdk/dist/features/account/client.js +57 -0
- package/node_modules/@agentims/sdk/dist/features/account/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/account/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/cache/client.js +40 -0
- package/node_modules/@agentims/sdk/dist/features/cache/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/cache/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/configuration/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/configuration/schema.js +8 -0
- package/node_modules/@agentims/sdk/dist/features/configuration/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/contacts/client.js +12 -0
- package/node_modules/@agentims/sdk/dist/features/contacts/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/contacts/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/client.js +54 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/matrix.js +61 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/deliveries/client.js +41 -0
- package/node_modules/@agentims/sdk/dist/features/deliveries/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/deliveries/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/devices/client.js +36 -0
- package/node_modules/@agentims/sdk/dist/features/devices/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/devices/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/directory/client.js +36 -0
- package/node_modules/@agentims/sdk/dist/features/directory/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/directory/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/discovery/client.js +9 -0
- package/node_modules/@agentims/sdk/dist/features/discovery/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/discovery/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/drafts/client.js +16 -0
- package/node_modules/@agentims/sdk/dist/features/drafts/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/drafts/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/client.js +105 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/dehydration.js +36 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/events/client.js +45 -0
- package/node_modules/@agentims/sdk/dist/features/events/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/events/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/identity/client.js +77 -0
- package/node_modules/@agentims/sdk/dist/features/identity/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/identity/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/location/client.js +18 -0
- package/node_modules/@agentims/sdk/dist/features/location/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/location/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/media/client.js +34 -0
- package/node_modules/@agentims/sdk/dist/features/media/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/media/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/messages/client.js +43 -0
- package/node_modules/@agentims/sdk/dist/features/messages/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/messages/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/notifications/client.js +42 -0
- package/node_modules/@agentims/sdk/dist/features/notifications/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/notifications/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/oauth/client.js +52 -0
- package/node_modules/@agentims/sdk/dist/features/oauth/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/oauth/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/operations/client.js +16 -0
- package/node_modules/@agentims/sdk/dist/features/operations/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/operations/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/outbox/client.js +25 -0
- package/node_modules/@agentims/sdk/dist/features/outbox/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/outbox/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/pairing/client.js +48 -0
- package/node_modules/@agentims/sdk/dist/features/pairing/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/pairing/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/presence/client.js +15 -0
- package/node_modules/@agentims/sdk/dist/features/presence/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/presence/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/profiles/client.js +15 -0
- package/node_modules/@agentims/sdk/dist/features/profiles/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/profiles/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/client.js +32 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/observe.js +48 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/rooms/client.js +76 -0
- package/node_modules/@agentims/sdk/dist/features/rooms/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/rooms/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/rtc/client.js +39 -0
- package/node_modules/@agentims/sdk/dist/features/rtc/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/rtc/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/search/client.js +31 -0
- package/node_modules/@agentims/sdk/dist/features/search/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/search/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/sync/client.js +16 -0
- package/node_modules/@agentims/sdk/dist/features/sync/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/sync/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/timeline/client.js +27 -0
- package/node_modules/@agentims/sdk/dist/features/timeline/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/timeline/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/verification/client.js +33 -0
- package/node_modules/@agentims/sdk/dist/features/verification/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/verification/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/index.js +7 -0
- package/node_modules/@agentims/sdk/dist/internal/native/binding.js +85 -0
- package/node_modules/@agentims/sdk/dist/internal/native/platform-resource.js +15 -0
- package/node_modules/@agentims/sdk/dist/internal/native/secrets-export.js +27 -0
- package/node_modules/@agentims/sdk/dist/internal/native/transport.js +92 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/codec.js +69 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/input.js +38 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/native-settings.js +48 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/operations.json +1 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/registry.js +72 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/schema.js +133 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/client.js +102 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/error-diagnostics.js +50 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/request.js +59 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/response.js +94 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/retry-after.js +21 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/stream-diagnostics.js +19 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/types.js +1 -0
- package/node_modules/@agentims/sdk/package.json +8 -0
- package/package.json +31 -4
- package/release.json +746 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { canonicalBotJson, botId, botObject, botInteger, botText, botRecoveryReceipt, botRecoveryInquiries, ongoingBotGoalWindow, } from '@agent-stack/contracts';
|
|
3
|
+
import { recoveryEnvelope } from './recovery-record.js';
|
|
4
|
+
import { recoveryHistory, recoveryHistorySummary } from './recovery-history.js';
|
|
5
|
+
const digest = (v) => createHash('sha256').update(canonicalBotJson(v)).digest('hex');
|
|
6
|
+
export class BotRecoveryJournal {
|
|
7
|
+
storage;
|
|
8
|
+
incarnationId;
|
|
9
|
+
snapshot;
|
|
10
|
+
monotonic;
|
|
11
|
+
constructor(storage, incarnationId, snapshot, monotonic) {
|
|
12
|
+
this.storage = storage;
|
|
13
|
+
this.incarnationId = incarnationId;
|
|
14
|
+
this.snapshot = snapshot;
|
|
15
|
+
this.monotonic = monotonic;
|
|
16
|
+
}
|
|
17
|
+
history(id) {
|
|
18
|
+
return recoveryHistory(this.storage, id);
|
|
19
|
+
}
|
|
20
|
+
begin(id, intent, registered) {
|
|
21
|
+
if (intent.controllerId !== this.incarnationId)
|
|
22
|
+
throw new Error('JOURNAL_RECOVERY_CONTROLLER_MISMATCH');
|
|
23
|
+
return this.storage.transaction(() => {
|
|
24
|
+
const old = this.storage.db
|
|
25
|
+
.prepare('SELECT execution_id,digest,payload FROM recoveries WHERE recovery_id=?')
|
|
26
|
+
.get(intent.recoveryId);
|
|
27
|
+
if (old) {
|
|
28
|
+
const saved = JSON.parse(String(old.payload));
|
|
29
|
+
if (old.execution_id !== id || old.digest !== digest(saved))
|
|
30
|
+
throw new Error('JOURNAL_RECOVERY_CONFLICT');
|
|
31
|
+
const envelope = recoveryEnvelope(saved);
|
|
32
|
+
if (!envelope)
|
|
33
|
+
throw new Error('JOURNAL_RECOVERY_ENVELOPE_UNAVAILABLE');
|
|
34
|
+
if (digest(envelope.intent) !== digest(intent))
|
|
35
|
+
throw new Error('JOURNAL_RECOVERY_CONFLICT');
|
|
36
|
+
this.assertHistory(id, envelope);
|
|
37
|
+
this.assertRegistered(envelope.commands, registered ?? []);
|
|
38
|
+
return envelope.commands;
|
|
39
|
+
}
|
|
40
|
+
const envelope = {
|
|
41
|
+
schemaVersion: 1,
|
|
42
|
+
recordedAtMs: Date.now(),
|
|
43
|
+
intent,
|
|
44
|
+
localHistory: recoveryHistorySummary(this.storage, id),
|
|
45
|
+
commands: recoveryHistory(this.storage, id, true).map(({ commandId, fingerprint }) => ({
|
|
46
|
+
commandId,
|
|
47
|
+
fingerprint,
|
|
48
|
+
})),
|
|
49
|
+
};
|
|
50
|
+
if (registered !== undefined) {
|
|
51
|
+
envelope.localCommands = [...envelope.commands];
|
|
52
|
+
for (const c of botRecoveryInquiries([...registered])) {
|
|
53
|
+
const local = envelope.commands.find((v) => v.commandId === c.commandId);
|
|
54
|
+
if (local && local.fingerprint !== c.fingerprint)
|
|
55
|
+
throw new Error('JOURNAL_RECOVERY_COMMAND_MISMATCH');
|
|
56
|
+
if (!local)
|
|
57
|
+
envelope.commands.push(c);
|
|
58
|
+
}
|
|
59
|
+
envelope.commands = botRecoveryInquiries(envelope.commands);
|
|
60
|
+
}
|
|
61
|
+
this.storage.db
|
|
62
|
+
.prepare('INSERT INTO recoveries(recovery_id,execution_id,digest,payload) VALUES(?,?,?,?)')
|
|
63
|
+
.run(intent.recoveryId, id, digest(envelope), JSON.stringify(envelope));
|
|
64
|
+
return envelope.commands;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
assertHistory(id, envelope) {
|
|
68
|
+
if (envelope.localHistory) {
|
|
69
|
+
if (digest(recoveryHistorySummary(this.storage, id)) !== digest(envelope.localHistory))
|
|
70
|
+
throw new Error('JOURNAL_RECOVERY_HISTORY_CHANGED');
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
// 旧持久封套继续按原完整数组核对,不把旧请求静默改写成新工作集。
|
|
74
|
+
const actual = this.history(id).map(({ commandId, fingerprint }) => ({
|
|
75
|
+
commandId,
|
|
76
|
+
fingerprint,
|
|
77
|
+
}));
|
|
78
|
+
if (digest(actual) !== digest(envelope.localCommands ?? envelope.commands))
|
|
79
|
+
throw new Error('JOURNAL_RECOVERY_HISTORY_CHANGED');
|
|
80
|
+
}
|
|
81
|
+
assertRegistered(frozen, actual) {
|
|
82
|
+
for (const c of botRecoveryInquiries([...actual]))
|
|
83
|
+
if (!frozen.some((v) => v.commandId === c.commandId && v.fingerprint === c.fingerprint))
|
|
84
|
+
throw new Error('JOURNAL_RECOVERY_HISTORY_CHANGED');
|
|
85
|
+
}
|
|
86
|
+
validate(receipt) {
|
|
87
|
+
const row = this.storage.db
|
|
88
|
+
.prepare('SELECT digest,payload FROM recoveries WHERE recovery_id=? AND execution_id=?')
|
|
89
|
+
.get(receipt.recoveryId, receipt.executionId);
|
|
90
|
+
if (!row)
|
|
91
|
+
throw new Error('JOURNAL_RECOVERY_INTENT_REQUIRED');
|
|
92
|
+
const saved = JSON.parse(String(row.payload));
|
|
93
|
+
if (row.digest !== digest(saved))
|
|
94
|
+
throw new Error('JOURNAL_RECOVERY_CONFLICT');
|
|
95
|
+
const envelope = recoveryEnvelope(saved);
|
|
96
|
+
if (!envelope)
|
|
97
|
+
throw new Error('JOURNAL_RECOVERY_ENVELOPE_UNAVAILABLE');
|
|
98
|
+
this.assertHistory(receipt.executionId, envelope);
|
|
99
|
+
const s = this.snapshot(receipt.executionId);
|
|
100
|
+
if (!s)
|
|
101
|
+
throw new Error('JOURNAL_RECOVERY_SNAPSHOT_REQUIRED');
|
|
102
|
+
if (envelope.intent.controllerId !== this.incarnationId ||
|
|
103
|
+
envelope.intent.missionRevision !== s.mission.revision ||
|
|
104
|
+
envelope.intent.ownerEpoch !== s.binding.ownerEpoch ||
|
|
105
|
+
envelope.intent.nativeSessionRef !== s.binding.nativeSessionRef)
|
|
106
|
+
throw new Error('JOURNAL_RECOVERY_CONTEXT_MISMATCH');
|
|
107
|
+
return botRecoveryReceipt(receipt, {
|
|
108
|
+
executionId: receipt.executionId,
|
|
109
|
+
provider: s.binding.provider,
|
|
110
|
+
intent: envelope.intent,
|
|
111
|
+
commands: envelope.commands,
|
|
112
|
+
runtimeOriginId: s.runtimeOriginId,
|
|
113
|
+
previousCheckpoint: s.recovery?.checkpoint ?? s.inheritedCheckpoint,
|
|
114
|
+
goalWindowAllowed: ongoingBotGoalWindow(s),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
inspect(id) {
|
|
118
|
+
const row = this.storage.db
|
|
119
|
+
.prepare('SELECT digest,payload,receipt FROM recoveries WHERE execution_id=? ORDER BY rowid DESC LIMIT 1')
|
|
120
|
+
.get(id);
|
|
121
|
+
if (!row)
|
|
122
|
+
return null;
|
|
123
|
+
const saved = JSON.parse(String(row.payload));
|
|
124
|
+
if (row.digest !== digest(saved))
|
|
125
|
+
throw new Error('JOURNAL_RECOVERY_CONFLICT');
|
|
126
|
+
const envelope = recoveryEnvelope(saved);
|
|
127
|
+
const intent = envelope?.intent ?? saved;
|
|
128
|
+
const receipt = row.receipt ? JSON.parse(String(row.receipt)) : null;
|
|
129
|
+
return {
|
|
130
|
+
stage: envelope ? (receipt ? 'CONFIRMED' : 'PREPARED') : 'LEGACY_UNQUALIFIED',
|
|
131
|
+
recordedAtMs: envelope?.recordedAtMs ?? null,
|
|
132
|
+
intent,
|
|
133
|
+
receipt,
|
|
134
|
+
commandCount: envelope?.commands.length ?? null,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
confirm(receipt) {
|
|
138
|
+
if (receipt.controllerId !== this.incarnationId)
|
|
139
|
+
throw new Error('JOURNAL_RECOVERY_CONTROLLER_MISMATCH');
|
|
140
|
+
this.storage.retireTerminal((retire) => {
|
|
141
|
+
receipt = this.validate(receipt);
|
|
142
|
+
const row = this.storage.db
|
|
143
|
+
.prepare('SELECT payload,receipt FROM recoveries WHERE recovery_id=? AND execution_id=?')
|
|
144
|
+
.get(receipt.recoveryId, receipt.executionId);
|
|
145
|
+
if (!row)
|
|
146
|
+
throw new Error('JOURNAL_RECOVERY_INTENT_REQUIRED');
|
|
147
|
+
const intent = recoveryEnvelope(JSON.parse(String(row.payload))).intent;
|
|
148
|
+
if (intent.missionRevision !== receipt.missionRevision ||
|
|
149
|
+
intent.ownerEpoch !== receipt.ownerEpoch ||
|
|
150
|
+
intent.nativeSessionRef !== receipt.nativeSessionRef ||
|
|
151
|
+
intent.mode !== receipt.mode ||
|
|
152
|
+
(row.receipt && digest(JSON.parse(String(row.receipt))) !== digest(receipt)))
|
|
153
|
+
throw new Error('JOURNAL_RECOVERY_CONTEXT_MISMATCH');
|
|
154
|
+
for (const c of receipt.commands) {
|
|
155
|
+
const old = this.storage.db
|
|
156
|
+
.prepare(`SELECT digest,native_ref,retired FROM ${this.storage.terminal.table('dispatches')} WHERE execution_id=? AND command_id=?`)
|
|
157
|
+
.get(receipt.executionId, c.commandId);
|
|
158
|
+
// Formal-only IDs are evidence queries, not invented dispatches that can be replayed.
|
|
159
|
+
if (!old)
|
|
160
|
+
continue;
|
|
161
|
+
if (old.digest !== c.fingerprint)
|
|
162
|
+
throw new Error('JOURNAL_RECOVERY_COMMAND_MISMATCH');
|
|
163
|
+
if (c.state === 'NOT_STARTED' && receipt.state !== 'HELD' && !old.retired) {
|
|
164
|
+
if (old.native_ref)
|
|
165
|
+
throw new Error('JOURNAL_RECOVERY_NATIVE_MISMATCH');
|
|
166
|
+
// 已核明未创建的命令保留为原终态,不能反复计入待对账派发。
|
|
167
|
+
const row = this.storage.db
|
|
168
|
+
.prepare('SELECT rowid AS _journal_order,* FROM dispatches WHERE command_id=?')
|
|
169
|
+
.get(c.commandId);
|
|
170
|
+
retire('dispatches', { ...row, phase: 'NOT_STARTED' }, { recoveryId: receipt.recoveryId, command: c }, 'NOT_STARTED');
|
|
171
|
+
}
|
|
172
|
+
if (c.state === 'BOUND') {
|
|
173
|
+
if (!c.nativeSessionRef || c.nativeSessionRef !== receipt.nativeSessionRef)
|
|
174
|
+
throw new Error('JOURNAL_RECOVERY_NATIVE_MISMATCH');
|
|
175
|
+
if (old.retired && old.native_ref !== c.nativeSessionRef)
|
|
176
|
+
throw new Error('JOURNAL_RECOVERY_NATIVE_MISMATCH');
|
|
177
|
+
this.storage.db
|
|
178
|
+
.prepare("UPDATE dispatches SET phase='BOUND',native_ref=? WHERE execution_id=? AND command_id=?")
|
|
179
|
+
.run(c.nativeSessionRef, receipt.executionId, c.commandId);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
this.storage.db
|
|
183
|
+
.prepare('UPDATE recoveries SET receipt=? WHERE recovery_id=?')
|
|
184
|
+
.run(JSON.stringify(receipt), receipt.recoveryId);
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/** 原执行身份和离线授权仍须匹配,不把 adoption 记录当作第二次授权。 */
|
|
188
|
+
offline(raw, now = Date.now()) {
|
|
189
|
+
botObject(raw, [
|
|
190
|
+
'executionId',
|
|
191
|
+
'controllerId',
|
|
192
|
+
'ownerEpoch',
|
|
193
|
+
'missionRevision',
|
|
194
|
+
'nativeSessionRef',
|
|
195
|
+
'callId',
|
|
196
|
+
'action',
|
|
197
|
+
]);
|
|
198
|
+
const s = this.snapshot(botId(raw.executionId)), grant = s?.offlineGrant;
|
|
199
|
+
if (raw.controllerId !== this.incarnationId ||
|
|
200
|
+
!s ||
|
|
201
|
+
s.binding.ownerEpoch !== raw.ownerEpoch ||
|
|
202
|
+
s.mission.revision !== raw.missionRevision ||
|
|
203
|
+
s.binding.nativeSessionRef !== raw.nativeSessionRef ||
|
|
204
|
+
s.mission.state !== 'OPEN' ||
|
|
205
|
+
!grant ||
|
|
206
|
+
grant.incarnationId !== this.incarnationId)
|
|
207
|
+
throw new Error('JOURNAL_OFFLINE_RECONCILIATION_REQUIRED');
|
|
208
|
+
const p = grant.policy;
|
|
209
|
+
botInteger(now);
|
|
210
|
+
if (Math.max(now, s.observedAtMs + this.monotonic(raw.executionId)) >= p.expiresAtMs)
|
|
211
|
+
throw new Error('JOURNAL_OFFLINE_EXPIRED');
|
|
212
|
+
if ((raw.callId === undefined) !== (raw.action === undefined))
|
|
213
|
+
throw new Error('JOURNAL_OFFLINE_ACTION_REQUIRED');
|
|
214
|
+
return this.storage.transaction(() => {
|
|
215
|
+
const old = this.storage.db
|
|
216
|
+
.prepare('SELECT digest FROM offline_grants WHERE grant_id=?')
|
|
217
|
+
.get(grant.grantId);
|
|
218
|
+
if (old && old.digest !== digest(p))
|
|
219
|
+
throw new Error('JOURNAL_OFFLINE_GRANT_CONFLICT');
|
|
220
|
+
this.storage.db
|
|
221
|
+
.prepare('INSERT OR IGNORE INTO offline_grants(grant_id,digest) VALUES(?,?)')
|
|
222
|
+
.run(grant.grantId, digest(p));
|
|
223
|
+
if (raw.callId !== undefined) {
|
|
224
|
+
botId(raw.callId);
|
|
225
|
+
botText(raw.action, 128);
|
|
226
|
+
if (!p.allowedActions.includes(raw.action))
|
|
227
|
+
throw new Error('JOURNAL_OFFLINE_NOT_AUTHORIZED');
|
|
228
|
+
const previous = this.storage.db
|
|
229
|
+
.prepare('SELECT digest FROM offline_actions WHERE grant_id=? AND call_id=?')
|
|
230
|
+
.get(grant.grantId, raw.callId);
|
|
231
|
+
if (previous) {
|
|
232
|
+
if (previous.digest !== digest(raw))
|
|
233
|
+
throw new Error('JOURNAL_OFFLINE_ACTION_CONFLICT');
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
const update = this.storage.db
|
|
237
|
+
.prepare('UPDATE offline_grants SET used=used+1 WHERE grant_id=? AND used<?')
|
|
238
|
+
.run(grant.grantId, p.maxDispatches);
|
|
239
|
+
if (!update.changes)
|
|
240
|
+
throw new Error('JOURNAL_OFFLINE_BUDGET_EXHAUSTED');
|
|
241
|
+
this.storage.db
|
|
242
|
+
.prepare('INSERT INTO offline_actions(grant_id,call_id,digest) VALUES(?,?,?)')
|
|
243
|
+
.run(grant.grantId, raw.callId, digest(raw));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
const used = this.storage.db
|
|
247
|
+
.prepare('SELECT used FROM offline_grants WHERE grant_id=?')
|
|
248
|
+
.get(grant.grantId);
|
|
249
|
+
return {
|
|
250
|
+
grantId: grant.grantId,
|
|
251
|
+
expiresAtMs: p.expiresAtMs,
|
|
252
|
+
remaining: Math.max(0, p.maxDispatches - Number(used.used)),
|
|
253
|
+
};
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { botId, botInteger, canonicalBotJson, validateBotRuntimeEvent, } from '@agent-stack/contracts';
|
|
3
|
+
const hash = (v) => createHash('sha256').update(canonicalBotJson(v)).digest('hex');
|
|
4
|
+
/** Reports have their own cursor and no authority to reconcile execution/adoption. */
|
|
5
|
+
export class BotReportJournal {
|
|
6
|
+
storage;
|
|
7
|
+
capacity;
|
|
8
|
+
constructor(storage, capacity) {
|
|
9
|
+
this.storage = storage;
|
|
10
|
+
this.capacity = capacity;
|
|
11
|
+
}
|
|
12
|
+
cursor(id) {
|
|
13
|
+
const r = this.storage.db
|
|
14
|
+
.prepare('SELECT sequence FROM report_cursors WHERE execution_id=?')
|
|
15
|
+
.get(id);
|
|
16
|
+
return r ? Number(r.sequence) : 0;
|
|
17
|
+
}
|
|
18
|
+
ingest(frame, page) {
|
|
19
|
+
const b = frame.binding;
|
|
20
|
+
botId(page.streamId);
|
|
21
|
+
botInteger(page.afterSequence, 0);
|
|
22
|
+
botInteger(page.throughSequence, 0);
|
|
23
|
+
if (page.schemaVersion !== 1 ||
|
|
24
|
+
page.executionId !== b.executionId ||
|
|
25
|
+
!['OPEN', 'HELD', 'CLOSED'].includes(page.state) ||
|
|
26
|
+
!Array.isArray(page.reports) ||
|
|
27
|
+
page.reports.length > 100 ||
|
|
28
|
+
page.throughSequence < page.afterSequence ||
|
|
29
|
+
page.throughSequence - page.afterSequence > 100)
|
|
30
|
+
throw new Error('JOURNAL_REPORT_PAGE_INVALID');
|
|
31
|
+
this.storage.transaction(() => {
|
|
32
|
+
const previous = this.storage.db
|
|
33
|
+
.prepare('SELECT * FROM report_cursors WHERE execution_id=?')
|
|
34
|
+
.get(b.executionId);
|
|
35
|
+
if ((previous && previous.stream_id !== page.streamId) ||
|
|
36
|
+
page.afterSequence !== this.cursor(b.executionId))
|
|
37
|
+
throw new Error('JOURNAL_REPORT_CURSOR_MISMATCH');
|
|
38
|
+
let seq = page.afterSequence;
|
|
39
|
+
for (const raw of page.reports) {
|
|
40
|
+
const e = validateBotRuntimeEvent(raw);
|
|
41
|
+
if (e.kind !== 'report' ||
|
|
42
|
+
e.executionId !== b.executionId ||
|
|
43
|
+
e.nativeSessionRef !== b.nativeSessionRef ||
|
|
44
|
+
e.ownerEpoch !== b.ownerEpoch ||
|
|
45
|
+
e.missionRevision > frame.mission.revision ||
|
|
46
|
+
e.streamId !== page.streamId ||
|
|
47
|
+
e.sequence <= seq ||
|
|
48
|
+
e.sequence > page.throughSequence)
|
|
49
|
+
throw new Error('JOURNAL_REPORT_FRAME_MISMATCH');
|
|
50
|
+
seq = e.sequence;
|
|
51
|
+
const old = this.storage.db
|
|
52
|
+
.prepare(`SELECT fingerprint FROM ${this.storage.terminal.table('report_outbox')} WHERE report_id=?`)
|
|
53
|
+
.get(e.eventId);
|
|
54
|
+
if (old && old.fingerprint !== hash(e))
|
|
55
|
+
throw new Error('JOURNAL_REPORT_CONFLICT');
|
|
56
|
+
if (!old) {
|
|
57
|
+
if (Number(this.storage.db.prepare('SELECT count(*) AS n FROM report_outbox').get().n) >=
|
|
58
|
+
this.capacity)
|
|
59
|
+
throw new Error('JOURNAL_REPORT_BACKPRESSURE');
|
|
60
|
+
this.storage.db
|
|
61
|
+
.prepare('INSERT INTO report_outbox(report_id,execution_id,fingerprint,payload) VALUES(?,?,?,?)')
|
|
62
|
+
.run(e.eventId, b.executionId, hash(e), JSON.stringify(e));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
this.storage.db
|
|
66
|
+
.prepare('INSERT INTO report_cursors(execution_id,stream_id,sequence) VALUES(?,?,?) ON CONFLICT(execution_id) DO UPDATE SET sequence=excluded.sequence')
|
|
67
|
+
.run(b.executionId, page.streamId, page.throughSequence);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
pending(id) {
|
|
71
|
+
const rows = this.storage.db
|
|
72
|
+
.prepare('SELECT payload FROM report_outbox WHERE execution_id=? ORDER BY rowid LIMIT 8')
|
|
73
|
+
.all(id);
|
|
74
|
+
const events = [];
|
|
75
|
+
let bytes = 0;
|
|
76
|
+
for (const row of rows) {
|
|
77
|
+
bytes += Buffer.byteLength(String(row.payload));
|
|
78
|
+
if (bytes > 768 * 1024)
|
|
79
|
+
break;
|
|
80
|
+
events.push(JSON.parse(String(row.payload)));
|
|
81
|
+
}
|
|
82
|
+
return events;
|
|
83
|
+
}
|
|
84
|
+
acknowledge(id, reportIds) {
|
|
85
|
+
if (reportIds.length > 100)
|
|
86
|
+
throw new Error('JOURNAL_CHECKPOINT_BATCH_LIMIT');
|
|
87
|
+
this.storage.retireTerminal((retire) => {
|
|
88
|
+
for (const rid of new Set(reportIds)) {
|
|
89
|
+
const row = this.storage.db
|
|
90
|
+
.prepare('SELECT rowid AS _journal_order,* FROM report_outbox WHERE execution_id=? AND report_id=?')
|
|
91
|
+
.get(id, rid);
|
|
92
|
+
if (!row)
|
|
93
|
+
continue;
|
|
94
|
+
// 调用方已核实原正式persisted/ID集合;完整原文与ACK事实同事务保留。
|
|
95
|
+
retire('report_outbox', row, {
|
|
96
|
+
kind: 'formal-report-ack',
|
|
97
|
+
executionId: id,
|
|
98
|
+
reportId: rid,
|
|
99
|
+
fingerprint: row.fingerprint,
|
|
100
|
+
persisted: true,
|
|
101
|
+
}, 'ACKNOWLEDGED');
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { traceInputs, pendingInputSync, traceWaits } from './trace-inputs.js';
|
|
2
|
+
import { saveWaitDeadline } from './waits.js';
|
|
3
|
+
import { createHash } from 'node:crypto';
|
|
4
|
+
import { readBotContinuation, BOT_RUNTIME_EVENT_PAGE_SIZE, validateBotRuntimeEvent, botId, botInteger, botJson, botObject, canonicalBotJson, } from '@agent-stack/contracts';
|
|
5
|
+
const digest = (v) => createHash('sha256').update(canonicalBotJson(v)).digest('hex');
|
|
6
|
+
export class BotRuntimeInbox {
|
|
7
|
+
storage;
|
|
8
|
+
capacity;
|
|
9
|
+
snapshot;
|
|
10
|
+
observations;
|
|
11
|
+
constructor(storage, capacity, snapshot, observations) {
|
|
12
|
+
this.storage = storage;
|
|
13
|
+
this.capacity = capacity;
|
|
14
|
+
this.snapshot = snapshot;
|
|
15
|
+
this.observations = observations;
|
|
16
|
+
}
|
|
17
|
+
cursor(executionId) {
|
|
18
|
+
const row = this.storage.db
|
|
19
|
+
.prepare('SELECT * FROM runtime_cursors WHERE execution_id=?')
|
|
20
|
+
.get(executionId);
|
|
21
|
+
return row
|
|
22
|
+
? {
|
|
23
|
+
streamId: String(row.stream_id),
|
|
24
|
+
sequence: Number(row.sequence),
|
|
25
|
+
eventId: String(row.event_id),
|
|
26
|
+
fingerprint: String(row.digest),
|
|
27
|
+
}
|
|
28
|
+
: undefined;
|
|
29
|
+
}
|
|
30
|
+
/** 只读原事件的最小定位;冷热记录共用原视图,不推断未观察阶段或重放副作用。 */
|
|
31
|
+
trace(executionId, query) {
|
|
32
|
+
botId(executionId);
|
|
33
|
+
const after = query.afterSequence === undefined ? 0 : botInteger(query.afterSequence);
|
|
34
|
+
const table = this.storage.terminal.table('runtime_events');
|
|
35
|
+
const predicates = ['execution_id=?', 'sequence>?'];
|
|
36
|
+
const values = [executionId, after];
|
|
37
|
+
for (const key of ['eventId', 'callId', 'requestId']) {
|
|
38
|
+
if (query[key] === undefined)
|
|
39
|
+
continue;
|
|
40
|
+
predicates.push(key === 'eventId'
|
|
41
|
+
? 'event_id=?'
|
|
42
|
+
: key === 'callId'
|
|
43
|
+
? // 子调用的AS摘要ID与Native原call定位共同指向原事件,不创建映射/重放记录。
|
|
44
|
+
`(json_extract(payload,'$.payload.callId')=? OR json_extract(payload,'$.payload.callId') IN (
|
|
45
|
+
SELECT json_extract(original.payload,'$.payload.callId') FROM ${table} original
|
|
46
|
+
WHERE original.execution_id=? AND json_extract(original.payload,'$.payload.nativeCallRef')=?
|
|
47
|
+
))`
|
|
48
|
+
: "json_extract(payload,'$.payload.requestId')=?");
|
|
49
|
+
values.push(botId(query[key]));
|
|
50
|
+
if (key === 'callId')
|
|
51
|
+
values.push(executionId, botId(query[key]));
|
|
52
|
+
}
|
|
53
|
+
const rows = this.storage.db
|
|
54
|
+
.prepare(`SELECT payload FROM ${table} WHERE ${predicates.join(' AND ')} ORDER BY sequence LIMIT 33`)
|
|
55
|
+
.all(...values);
|
|
56
|
+
const range = this.storage.db
|
|
57
|
+
.prepare(`SELECT min(sequence) AS first,max(sequence) AS last FROM ${table} WHERE execution_id=?`)
|
|
58
|
+
.get(executionId);
|
|
59
|
+
const keys = new Set([
|
|
60
|
+
'callId',
|
|
61
|
+
'requestId',
|
|
62
|
+
'tool',
|
|
63
|
+
'nativeTool',
|
|
64
|
+
'state',
|
|
65
|
+
'method',
|
|
66
|
+
'inputId',
|
|
67
|
+
'deliveryId',
|
|
68
|
+
'actionId',
|
|
69
|
+
'resultRef',
|
|
70
|
+
'resultDigest',
|
|
71
|
+
'inputDigest',
|
|
72
|
+
'nativeChildSessionRef',
|
|
73
|
+
'nativeChildCallRef',
|
|
74
|
+
'nativeCallRef', // 原生子调用定位与真正intent同存,不依赖补充映射事件。
|
|
75
|
+
]);
|
|
76
|
+
const events = rows.slice(0, 32).map((row) => {
|
|
77
|
+
const event = JSON.parse(String(row.payload));
|
|
78
|
+
const payload = event.payload && typeof event.payload === 'object' && !Array.isArray(event.payload)
|
|
79
|
+
? event.payload
|
|
80
|
+
: {};
|
|
81
|
+
return {
|
|
82
|
+
eventId: event.eventId,
|
|
83
|
+
sequence: event.sequence,
|
|
84
|
+
kind: event.kind,
|
|
85
|
+
streamId: event.streamId,
|
|
86
|
+
nativeSessionRef: event.nativeSessionRef,
|
|
87
|
+
ownerEpoch: event.ownerEpoch,
|
|
88
|
+
missionRevision: event.missionRevision,
|
|
89
|
+
// 正文/参数/令牌不进诊断;这里的引用只是原记录,不证明可执行或效果已完成。
|
|
90
|
+
references: Object.fromEntries(Object.entries(payload).filter(([key, value]) => keys.has(key) && typeof value === 'string' && value.length <= 128)),
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
return {
|
|
94
|
+
schemaVersion: 1,
|
|
95
|
+
scope: 'RETAINED_HOST_FACTS',
|
|
96
|
+
inputTrace: traceInputs(this.storage, executionId, query),
|
|
97
|
+
pendingSync: pendingInputSync(this.storage, executionId),
|
|
98
|
+
waiting: traceWaits(this.storage, executionId, query.eventId),
|
|
99
|
+
executionId,
|
|
100
|
+
state: events.length ? 'OBSERVED' : 'NOT_OBSERVED',
|
|
101
|
+
firstSequence: range.first === null ? null : Number(range.first),
|
|
102
|
+
lastSequence: range.last === null ? null : Number(range.last),
|
|
103
|
+
afterSequence: after,
|
|
104
|
+
events,
|
|
105
|
+
nextSequence: rows.length > 32 ? events.at(-1).sequence : null,
|
|
106
|
+
complete: rows.length <= 32,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
/** Event, local adoption/report and cursor become durable in the SAME SQLite transaction. */
|
|
110
|
+
ingest(executionId, page) {
|
|
111
|
+
const authority = this.snapshot(executionId);
|
|
112
|
+
if (!authority)
|
|
113
|
+
throw new Error('JOURNAL_RECONCILIATION_REQUIRED');
|
|
114
|
+
if (page.schemaVersion !== 1 ||
|
|
115
|
+
!Array.isArray(page.events) ||
|
|
116
|
+
page.events.length > BOT_RUNTIME_EVENT_PAGE_SIZE ||
|
|
117
|
+
!['OPEN', 'HELD', 'CLOSED'].includes(page.state))
|
|
118
|
+
throw new Error('JOURNAL_RUNTIME_PAGE_INVALID');
|
|
119
|
+
botId(page.streamId);
|
|
120
|
+
return this.storage.transaction(() => {
|
|
121
|
+
let cursor = this.cursor(executionId);
|
|
122
|
+
if (cursor && cursor.streamId !== page.streamId)
|
|
123
|
+
throw new Error('JOURNAL_RUNTIME_STREAM_CHANGED');
|
|
124
|
+
for (const event of page.events) {
|
|
125
|
+
validateBotRuntimeEvent(event);
|
|
126
|
+
botInteger(event.sequence, 1);
|
|
127
|
+
botInteger(event.missionRevision, 1);
|
|
128
|
+
botId(event.eventId);
|
|
129
|
+
if (event.schemaVersion !== 1 ||
|
|
130
|
+
event.executionId !== executionId ||
|
|
131
|
+
event.streamId !== page.streamId ||
|
|
132
|
+
event.ownerEpoch !== authority.binding.ownerEpoch ||
|
|
133
|
+
event.nativeSessionRef !== authority.binding.nativeSessionRef ||
|
|
134
|
+
!['adopted', 'report', 'native', 'tool-intent', 'tool-result', 'gap', 'park'].includes(event.kind) ||
|
|
135
|
+
event.missionRevision > authority.mission.revision)
|
|
136
|
+
throw new Error('JOURNAL_RUNTIME_CONTEXT_MISMATCH');
|
|
137
|
+
const hash = digest(event);
|
|
138
|
+
const old = this.storage.db
|
|
139
|
+
.prepare(`SELECT digest FROM ${this.storage.terminal.table('runtime_events')} WHERE execution_id=? AND sequence=?`)
|
|
140
|
+
.get(executionId, event.sequence);
|
|
141
|
+
if (old) {
|
|
142
|
+
if (old.digest !== hash)
|
|
143
|
+
throw new Error('JOURNAL_RUNTIME_EVENT_CONFLICT');
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
// 事件全局ID也覆盖检查点,不能把同ID换序号当成新事件。
|
|
147
|
+
if (this.storage.db
|
|
148
|
+
.prepare(`SELECT 1 FROM ${this.storage.terminal.table('runtime_events')} WHERE event_id=?`)
|
|
149
|
+
.get(event.eventId))
|
|
150
|
+
throw new Error('JOURNAL_RUNTIME_EVENT_CONFLICT');
|
|
151
|
+
if (event.sequence !== (cursor?.sequence ?? 0) + 1)
|
|
152
|
+
throw new Error('JOURNAL_RUNTIME_EVENT_GAP');
|
|
153
|
+
if (Number(this.storage.db.prepare('SELECT count(*) AS n FROM runtime_events').get().n) >=
|
|
154
|
+
this.capacity)
|
|
155
|
+
throw new Error('JOURNAL_CAPACITY_EXCEEDED');
|
|
156
|
+
if (event.kind === 'park') {
|
|
157
|
+
const continuation = readBotContinuation(event.payload);
|
|
158
|
+
if (continuation.missionRevision !== event.missionRevision ||
|
|
159
|
+
continuation.continuationId !== event.eventId)
|
|
160
|
+
throw new Error('JOURNAL_PARK_CONTEXT_MISMATCH');
|
|
161
|
+
const old = this.storage.db
|
|
162
|
+
.prepare(`SELECT digest FROM ${this.storage.terminal.table('waits')} WHERE continuation_id=? AND execution_id=?`)
|
|
163
|
+
.get(event.eventId, executionId);
|
|
164
|
+
if (old && old.digest !== digest(continuation))
|
|
165
|
+
throw new Error('JOURNAL_WAIT_CONFLICT');
|
|
166
|
+
if (!old) {
|
|
167
|
+
// 同一原生流的新等待取代本地旧意图;正式交接状态和原历史不重写。
|
|
168
|
+
this.storage.db
|
|
169
|
+
.prepare("UPDATE waits SET state='SUPERSEDED' WHERE execution_id=? AND owner_epoch=? AND revision=? AND state='LOCAL'")
|
|
170
|
+
.run(executionId, event.ownerEpoch, event.missionRevision);
|
|
171
|
+
saveWaitDeadline(this.storage, continuation);
|
|
172
|
+
if (Number(this.storage.db.prepare('SELECT count(*) AS n FROM waits').get().n) >=
|
|
173
|
+
this.capacity)
|
|
174
|
+
throw new Error('JOURNAL_CAPACITY_EXCEEDED');
|
|
175
|
+
this.storage.db
|
|
176
|
+
.prepare('INSERT INTO waits(continuation_id,execution_id,owner_epoch,revision,digest,payload,state) VALUES(?,?,?,?,?,?,?)')
|
|
177
|
+
.run(event.eventId, executionId, event.ownerEpoch, event.missionRevision, digest(continuation), JSON.stringify(continuation), authority.correction?.missionRevision === authority.mission.revision &&
|
|
178
|
+
authority.correction.stopEvidenceRef &&
|
|
179
|
+
event.missionRevision < authority.mission.revision
|
|
180
|
+
? 'SUPERSEDED'
|
|
181
|
+
: 'LOCAL');
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
else if (event.kind === 'adopted') {
|
|
185
|
+
const receipt = event.payload;
|
|
186
|
+
if (receipt.schemaVersion !== 1 ||
|
|
187
|
+
receipt.executionId !== executionId ||
|
|
188
|
+
receipt.ownerEpoch !== event.ownerEpoch ||
|
|
189
|
+
receipt.missionRevision !== event.missionRevision ||
|
|
190
|
+
receipt.nativeSessionRef !== event.nativeSessionRef ||
|
|
191
|
+
receipt.observation?.missionRevision !== receipt.missionRevision ||
|
|
192
|
+
!Array.isArray(receipt.deliveries) ||
|
|
193
|
+
receipt.deliveries.length > 100 ||
|
|
194
|
+
new Set(receipt.deliveries.map((item) => item.deliveryId)).size !==
|
|
195
|
+
receipt.deliveries.length)
|
|
196
|
+
throw new Error('JOURNAL_ADOPTION_RECEIPT_MISMATCH');
|
|
197
|
+
this.observation(executionId, receipt.observation, true);
|
|
198
|
+
for (const adopted of receipt.deliveries) {
|
|
199
|
+
const row = this.storage.db
|
|
200
|
+
.prepare(`SELECT payload,digest FROM ${this.storage.terminal.table('inbox')} WHERE execution_id=? AND delivery_id=?`)
|
|
201
|
+
.get(executionId, adopted.deliveryId);
|
|
202
|
+
if (!row || row.digest !== adopted.fingerprint)
|
|
203
|
+
throw new Error('JOURNAL_ADOPTION_DELIVERY_MISMATCH');
|
|
204
|
+
const delivery = JSON.parse(String(row.payload));
|
|
205
|
+
if (adopted.observation.kind !== 'adopted' ||
|
|
206
|
+
adopted.observation.missionRevision !== receipt.missionRevision ||
|
|
207
|
+
delivery.revision > receipt.missionRevision ||
|
|
208
|
+
(delivery.kind === 'input' &&
|
|
209
|
+
botObject(adopted.observation.payload).inputId !==
|
|
210
|
+
botObject(delivery.payload).inputId))
|
|
211
|
+
throw new Error('JOURNAL_ADOPTION_MISMATCH');
|
|
212
|
+
this.observation(executionId, adopted.observation, true);
|
|
213
|
+
this.storage.db
|
|
214
|
+
.prepare('UPDATE inbox SET handled=1 WHERE execution_id=? AND delivery_id=?')
|
|
215
|
+
.run(executionId, adopted.deliveryId);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
this.observation(executionId, {
|
|
220
|
+
observationId: event.eventId,
|
|
221
|
+
kind: 'report',
|
|
222
|
+
missionRevision: event.missionRevision,
|
|
223
|
+
payload: botJson({ source: 'runtime', event }),
|
|
224
|
+
}, false);
|
|
225
|
+
}
|
|
226
|
+
this.storage.db
|
|
227
|
+
.prepare('INSERT INTO runtime_events(execution_id,sequence,event_id,digest,payload) VALUES(?,?,?,?,?)')
|
|
228
|
+
.run(executionId, event.sequence, event.eventId, hash, JSON.stringify(event));
|
|
229
|
+
cursor = {
|
|
230
|
+
streamId: page.streamId,
|
|
231
|
+
sequence: event.sequence,
|
|
232
|
+
eventId: event.eventId,
|
|
233
|
+
fingerprint: hash,
|
|
234
|
+
};
|
|
235
|
+
this.storage.db
|
|
236
|
+
.prepare('INSERT INTO runtime_cursors(execution_id,stream_id,sequence,event_id,digest) VALUES(?,?,?,?,?) ON CONFLICT(execution_id) DO UPDATE SET stream_id=excluded.stream_id,sequence=excluded.sequence,event_id=excluded.event_id,digest=excluded.digest')
|
|
237
|
+
.run(executionId, cursor.streamId, cursor.sequence, cursor.eventId, cursor.fingerprint);
|
|
238
|
+
}
|
|
239
|
+
return cursor;
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/** 原生正式采用确认也走统一原ID查找,不能绕过已退休记录。 */
|
|
243
|
+
observation(executionId, observation, confirmed) {
|
|
244
|
+
this.observations.record(executionId, observation, confirmed);
|
|
245
|
+
}
|
|
246
|
+
}
|