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,115 @@
|
|
|
1
|
+
import { BotContractError, botChoice, botId, botInteger, botObject, botText, } from './validation.js';
|
|
2
|
+
export const BOT_ADOPTED_HISTORY_PAGE_LIMIT = 12;
|
|
3
|
+
export const BOT_ADOPTED_HISTORY_STATES = [
|
|
4
|
+
'SAME_TURN',
|
|
5
|
+
'EVENT_PENDING',
|
|
6
|
+
'GAPPED',
|
|
7
|
+
'UNKNOWN',
|
|
8
|
+
'PENDING',
|
|
9
|
+
];
|
|
10
|
+
function hash(value) {
|
|
11
|
+
const text = botText(value, 64);
|
|
12
|
+
if (!/^[a-f0-9]{64}$/.test(text))
|
|
13
|
+
throw new BotContractError('delivery history digest required');
|
|
14
|
+
return text;
|
|
15
|
+
}
|
|
16
|
+
export function botAdoptedHistoryFrame(raw) {
|
|
17
|
+
const v = botObject(raw, ['nativeTurnRef', 'presentationRef']);
|
|
18
|
+
return {
|
|
19
|
+
nativeTurnRef: botText(v.nativeTurnRef, 128),
|
|
20
|
+
presentationRef: botId(v.presentationRef),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function botAdoptedDeliveryRef(raw) {
|
|
24
|
+
const v = botObject(raw);
|
|
25
|
+
return {
|
|
26
|
+
deliveryId: botId(v.deliveryId),
|
|
27
|
+
kind: botChoice(v.kind, ['mission', 'input', 'continuation', 'observation']),
|
|
28
|
+
hash: hash(v.hash),
|
|
29
|
+
...(v.state === undefined || v.state === null
|
|
30
|
+
? {}
|
|
31
|
+
: {
|
|
32
|
+
state: botChoice(v.state, BOT_ADOPTED_HISTORY_STATES),
|
|
33
|
+
}),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/** 只能重读同一正式呈现、授权代和精确目录;分页使用条目偏移量。 */
|
|
37
|
+
export function botAdoptedHistoryRead(raw) {
|
|
38
|
+
const v = botObject(raw, [
|
|
39
|
+
'operation',
|
|
40
|
+
'view',
|
|
41
|
+
'missionRevision',
|
|
42
|
+
'ownerEpoch',
|
|
43
|
+
'nativeSessionRef',
|
|
44
|
+
'frame',
|
|
45
|
+
'presentedDeliveryIds',
|
|
46
|
+
'reference',
|
|
47
|
+
'offset',
|
|
48
|
+
'limit',
|
|
49
|
+
]);
|
|
50
|
+
if (v.operation !== 'adopted-history' ||
|
|
51
|
+
!Array.isArray(v.presentedDeliveryIds) ||
|
|
52
|
+
v.presentedDeliveryIds.length > 100)
|
|
53
|
+
throw new BotContractError('adopted history request required');
|
|
54
|
+
const ids = v.presentedDeliveryIds.map(botId).sort(), limit = botInteger(v.limit, 1);
|
|
55
|
+
if (new Set(ids).size !== ids.length || limit > BOT_ADOPTED_HISTORY_PAGE_LIMIT)
|
|
56
|
+
throw new BotContractError('adopted history page limit');
|
|
57
|
+
const offset = botInteger(v.offset);
|
|
58
|
+
// 从当前呈现取得首屏,后续页保持返回的确切摘要。
|
|
59
|
+
const reference = v.reference === 'current' && offset === 0 ? v.reference : hash(v.reference);
|
|
60
|
+
return {
|
|
61
|
+
operation: 'adopted-history',
|
|
62
|
+
view: v.view === undefined ? 'folded' : botChoice(v.view, ['folded', 'active']),
|
|
63
|
+
missionRevision: botInteger(v.missionRevision, 1),
|
|
64
|
+
ownerEpoch: botInteger(v.ownerEpoch, 1),
|
|
65
|
+
nativeSessionRef: botText(v.nativeSessionRef, 128),
|
|
66
|
+
frame: botAdoptedHistoryFrame(v.frame),
|
|
67
|
+
presentedDeliveryIds: ids,
|
|
68
|
+
reference,
|
|
69
|
+
offset,
|
|
70
|
+
limit,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/** 响应页既核对结构,也核对确定的原集合偏移关系。 */
|
|
74
|
+
export function botAdoptedHistoryPage(raw) {
|
|
75
|
+
const v = botObject(raw, [
|
|
76
|
+
'schemaVersion',
|
|
77
|
+
'view',
|
|
78
|
+
'executionId',
|
|
79
|
+
'missionId',
|
|
80
|
+
'missionRevision',
|
|
81
|
+
'ownerEpoch',
|
|
82
|
+
'nativeSessionRef',
|
|
83
|
+
'frame',
|
|
84
|
+
'reference',
|
|
85
|
+
'count',
|
|
86
|
+
'offset',
|
|
87
|
+
'nextOffset',
|
|
88
|
+
'entries',
|
|
89
|
+
]);
|
|
90
|
+
const offset = botInteger(v.offset), count = botInteger(v.count), view = botChoice(v.view, ['folded', 'active']);
|
|
91
|
+
if (v.schemaVersion !== 1 ||
|
|
92
|
+
!Array.isArray(v.entries) ||
|
|
93
|
+
v.entries.length > BOT_ADOPTED_HISTORY_PAGE_LIMIT)
|
|
94
|
+
throw new BotContractError('adopted history entries required');
|
|
95
|
+
const entries = v.entries.map(botAdoptedDeliveryRef), end = offset + entries.length;
|
|
96
|
+
if (end > count ||
|
|
97
|
+
(end < count && !entries.length) ||
|
|
98
|
+
v.nextOffset !== (end < count ? end : null))
|
|
99
|
+
throw new BotContractError('adopted history page range mismatch');
|
|
100
|
+
return {
|
|
101
|
+
schemaVersion: 1,
|
|
102
|
+
view,
|
|
103
|
+
executionId: botId(v.executionId),
|
|
104
|
+
missionId: botId(v.missionId),
|
|
105
|
+
missionRevision: botInteger(v.missionRevision, 1),
|
|
106
|
+
ownerEpoch: botInteger(v.ownerEpoch, 1),
|
|
107
|
+
nativeSessionRef: botText(v.nativeSessionRef, 128),
|
|
108
|
+
frame: botAdoptedHistoryFrame(v.frame),
|
|
109
|
+
reference: hash(v.reference),
|
|
110
|
+
offset,
|
|
111
|
+
count,
|
|
112
|
+
nextOffset: v.nextOffset,
|
|
113
|
+
entries,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { BotContractError, botChoice, botId, botInteger, botObject, botText, } from './validation.js';
|
|
2
|
+
export const BOT_DELIVERY_READ_LIMIT = 8192;
|
|
3
|
+
/** 原文分页无法从给定 UTF-8 边界安全推进;保持通用合同错误的兼容性。 */
|
|
4
|
+
export class BotDeliveryRangeError extends BotContractError {
|
|
5
|
+
}
|
|
6
|
+
/** SHA256一律使用canonical完整原对象的小写十六进制摘要。 */
|
|
7
|
+
function deliveryDigest(value) {
|
|
8
|
+
if (typeof value !== 'string' || !/^[a-f0-9]{64}$/.test(value))
|
|
9
|
+
throw new BotContractError('delivery digest required');
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
/** 页长按UTF8字节限制;实际offset还必须落于当前原文的字符边界。 */
|
|
13
|
+
function readRange(offset, limit) {
|
|
14
|
+
const range = { offset: botInteger(offset), limit: botInteger(limit, 1) };
|
|
15
|
+
if (range.limit > BOT_DELIVERY_READ_LIMIT)
|
|
16
|
+
throw new BotContractError('delivery page limit');
|
|
17
|
+
return range;
|
|
18
|
+
}
|
|
19
|
+
/** 仅解析固定的精确读取信封,身份是否当前仍由正式授权Owner判断。 */
|
|
20
|
+
export function botDeliveryReadRequest(raw) {
|
|
21
|
+
const v = botObject(raw, [
|
|
22
|
+
'missionRevision',
|
|
23
|
+
'ownerEpoch',
|
|
24
|
+
'nativeSessionRef',
|
|
25
|
+
'deliveryId',
|
|
26
|
+
'expectedDigest',
|
|
27
|
+
'offset',
|
|
28
|
+
'limit',
|
|
29
|
+
'inputHandling',
|
|
30
|
+
]);
|
|
31
|
+
if (v.inputHandling !== undefined && v.inputHandling !== true)
|
|
32
|
+
throw new BotContractError('invalid input handling selector');
|
|
33
|
+
return {
|
|
34
|
+
missionRevision: botInteger(v.missionRevision, 1),
|
|
35
|
+
ownerEpoch: botInteger(v.ownerEpoch, 1),
|
|
36
|
+
nativeSessionRef: botText(v.nativeSessionRef, 128),
|
|
37
|
+
deliveryId: botId(v.deliveryId),
|
|
38
|
+
expectedDigest: deliveryDigest(v.expectedDigest),
|
|
39
|
+
...readRange(v.offset, v.limit),
|
|
40
|
+
...(v.inputHandling ? { inputHandling: true } : {}),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** 纯机械UTF8分页;页长不足容纳下个字符时拒绝,避免拆坏字符或返回零进度页。 */
|
|
44
|
+
export function botDeliveryTextPage(text, offset, limit) {
|
|
45
|
+
readRange(offset, limit);
|
|
46
|
+
const bytes = new TextEncoder().encode(text);
|
|
47
|
+
const continuation = (at) => (bytes[at] & 0xc0) === 0x80;
|
|
48
|
+
if (offset > bytes.length || (offset < bytes.length && continuation(offset)))
|
|
49
|
+
throw new BotDeliveryRangeError('delivery offset boundary');
|
|
50
|
+
let end = Math.min(offset + limit, bytes.length);
|
|
51
|
+
while (end > offset && end < bytes.length && continuation(end))
|
|
52
|
+
end--;
|
|
53
|
+
if (end === offset && offset < bytes.length)
|
|
54
|
+
throw new BotDeliveryRangeError('delivery page too short');
|
|
55
|
+
return {
|
|
56
|
+
offset,
|
|
57
|
+
totalBytes: bytes.length,
|
|
58
|
+
nextOffset: end === bytes.length ? null : end,
|
|
59
|
+
complete: end === bytes.length,
|
|
60
|
+
text: new TextDecoder('utf-8', { fatal: true }).decode(bytes.subarray(offset, end)),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/** 消费方核对真实字节长度及页接续关系;无完整原文时不能自行重算完整对象摘要。 */
|
|
64
|
+
export function botDeliveryReadPage(raw) {
|
|
65
|
+
const v = botObject(raw, [
|
|
66
|
+
'schemaVersion',
|
|
67
|
+
'executionId',
|
|
68
|
+
'missionId',
|
|
69
|
+
'missionRevision',
|
|
70
|
+
'ownerEpoch',
|
|
71
|
+
'nativeSessionRef',
|
|
72
|
+
'deliveryId',
|
|
73
|
+
'digest',
|
|
74
|
+
'offset',
|
|
75
|
+
'totalBytes',
|
|
76
|
+
'nextOffset',
|
|
77
|
+
'complete',
|
|
78
|
+
'text',
|
|
79
|
+
'handledInput',
|
|
80
|
+
]);
|
|
81
|
+
if (v.schemaVersion !== 1 || typeof v.complete !== 'boolean' || typeof v.text !== 'string')
|
|
82
|
+
throw new BotContractError('delivery page required');
|
|
83
|
+
const offset = botInteger(v.offset), totalBytes = botInteger(v.totalBytes);
|
|
84
|
+
const nextOffset = v.nextOffset === null ? null : botInteger(v.nextOffset);
|
|
85
|
+
const length = new TextEncoder().encode(v.text).byteLength;
|
|
86
|
+
const end = offset + length;
|
|
87
|
+
if (length > BOT_DELIVERY_READ_LIMIT ||
|
|
88
|
+
end > totalBytes ||
|
|
89
|
+
(v.complete
|
|
90
|
+
? nextOffset !== null || end !== totalBytes
|
|
91
|
+
: nextOffset !== end || length === 0 || end >= totalBytes))
|
|
92
|
+
throw new BotContractError('delivery page range mismatch');
|
|
93
|
+
const anchor = v.handledInput === undefined
|
|
94
|
+
? undefined
|
|
95
|
+
: botObject(v.handledInput, ['inputId', 'continuationId', 'executionId', 'state']);
|
|
96
|
+
return {
|
|
97
|
+
schemaVersion: 1,
|
|
98
|
+
executionId: botId(v.executionId),
|
|
99
|
+
missionId: botId(v.missionId),
|
|
100
|
+
missionRevision: botInteger(v.missionRevision, 1),
|
|
101
|
+
ownerEpoch: botInteger(v.ownerEpoch, 1),
|
|
102
|
+
nativeSessionRef: botText(v.nativeSessionRef, 128),
|
|
103
|
+
deliveryId: botId(v.deliveryId),
|
|
104
|
+
digest: deliveryDigest(v.digest),
|
|
105
|
+
offset,
|
|
106
|
+
totalBytes,
|
|
107
|
+
nextOffset,
|
|
108
|
+
complete: v.complete,
|
|
109
|
+
text: v.text,
|
|
110
|
+
...(anchor
|
|
111
|
+
? {
|
|
112
|
+
handledInput: {
|
|
113
|
+
inputId: botId(anchor.inputId),
|
|
114
|
+
continuationId: botId(anchor.continuationId),
|
|
115
|
+
executionId: botId(anchor.executionId),
|
|
116
|
+
state: botChoice(anchor.state, ['NATIVE_DECLARED_HANDLED']),
|
|
117
|
+
},
|
|
118
|
+
}
|
|
119
|
+
: {}),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { botObject } from './validation.js';
|
|
2
|
+
/** MCP 标准表单的原字段和可选项完整投影,原 schema 随 Provider 扩展回读。 */
|
|
3
|
+
export function botElicitationQuestions(raw) {
|
|
4
|
+
const schema = botObject(raw), properties = botObject(schema.properties ?? {});
|
|
5
|
+
const required = Array.isArray(schema.required) ? schema.required : [];
|
|
6
|
+
if (Object.values(properties).some((value) => {
|
|
7
|
+
const field = botObject(value);
|
|
8
|
+
if (!['string', 'number', 'integer', 'boolean', 'array'].includes(String(field.type)))
|
|
9
|
+
return true;
|
|
10
|
+
if (field.type !== 'array')
|
|
11
|
+
return false;
|
|
12
|
+
const items = botObject(field.items ?? {});
|
|
13
|
+
// 自由数组需完整 JSON 输入,单个自由文本框不能无损表示多个数组元素。
|
|
14
|
+
return (!['string', 'number', 'integer', 'boolean'].includes(String(items.type)) ||
|
|
15
|
+
(!Array.isArray(items.enum) && !Array.isArray(items.oneOf)));
|
|
16
|
+
}))
|
|
17
|
+
return [];
|
|
18
|
+
const questions = Object.entries(properties).map(([id, value]) => {
|
|
19
|
+
const field = botObject(value), items = field.type === 'array' ? botObject(field.items ?? {}) : field;
|
|
20
|
+
const choices = Array.isArray(items.enum)
|
|
21
|
+
? [...items.enum]
|
|
22
|
+
: Array.isArray(items.oneOf)
|
|
23
|
+
? items.oneOf.map((item) => botObject(item).const)
|
|
24
|
+
: [];
|
|
25
|
+
if (field.type === 'boolean' && !choices.length)
|
|
26
|
+
choices.push(true, false);
|
|
27
|
+
return {
|
|
28
|
+
id,
|
|
29
|
+
question: typeof field.title === 'string' && field.title.trim() ? field.title : id,
|
|
30
|
+
...(typeof field.description === 'string' && field.description.trim()
|
|
31
|
+
? { detail: field.description }
|
|
32
|
+
: {}),
|
|
33
|
+
options: choices.map((value) => ({ label: String(value) })),
|
|
34
|
+
multiSelect: field.type === 'array',
|
|
35
|
+
allowCustom: choices.length === 0,
|
|
36
|
+
required: required.includes(id),
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
// 空字段名或无法无损显示的选项保留原 JSON 表单,不能改写源值。
|
|
40
|
+
return questions.some((q) => !q.id.trim() ||
|
|
41
|
+
q.id.length > 256 ||
|
|
42
|
+
q.options.some((option) => !option.label.trim() || option.label.length > 4096) ||
|
|
43
|
+
new Set(q.options.map((option) => option.label)).size !== q.options.length)
|
|
44
|
+
? []
|
|
45
|
+
: questions;
|
|
46
|
+
}
|
|
47
|
+
/** 用户只返回表单数据,原生 RPC 的 method、元数据和批准范围不由前端构造。 */
|
|
48
|
+
export function botElicitationAnswer(raw, decision) {
|
|
49
|
+
if (decision.kind !== 'ANSWER')
|
|
50
|
+
return null;
|
|
51
|
+
if (decision.content !== undefined) {
|
|
52
|
+
if (botElicitationQuestions(raw).length)
|
|
53
|
+
throw new Error('BOT_ELICITATION_VALUE_INVALID');
|
|
54
|
+
return decision.content;
|
|
55
|
+
}
|
|
56
|
+
const schema = botObject(raw), properties = botObject(schema.properties ?? {});
|
|
57
|
+
const content = {};
|
|
58
|
+
for (const answer of decision.answers) {
|
|
59
|
+
const field = botObject(properties[answer.id]);
|
|
60
|
+
const values = [...answer.selected, ...(answer.custom === undefined ? [] : [answer.custom])];
|
|
61
|
+
if (!values.length)
|
|
62
|
+
continue;
|
|
63
|
+
const type = field.type === 'array' ? botObject(field.items ?? {}).type : field.type;
|
|
64
|
+
const converted = values.map((value) => {
|
|
65
|
+
if (type === 'boolean') {
|
|
66
|
+
if (!['true', 'false'].includes(value))
|
|
67
|
+
throw new Error('BOT_ELICITATION_VALUE_INVALID');
|
|
68
|
+
return value === 'true';
|
|
69
|
+
}
|
|
70
|
+
if (type === 'number' || type === 'integer') {
|
|
71
|
+
const number = Number(value);
|
|
72
|
+
if (!value.trim() ||
|
|
73
|
+
!Number.isFinite(number) ||
|
|
74
|
+
(type === 'integer' && !Number.isSafeInteger(number)))
|
|
75
|
+
throw new Error('BOT_ELICITATION_VALUE_INVALID');
|
|
76
|
+
return number;
|
|
77
|
+
}
|
|
78
|
+
return value;
|
|
79
|
+
});
|
|
80
|
+
content[answer.id] = field.type === 'array' ? converted : converted[0];
|
|
81
|
+
}
|
|
82
|
+
return content;
|
|
83
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** Human entry scopes are separate from Host/runtime capabilities. */
|
|
2
|
+
export const BOT_ENTRY_MCP_SCOPES = ['bot_entries.read', 'bot_entries.write'];
|
|
3
|
+
export const BOT_ENTRY_ACTIONS = [
|
|
4
|
+
'preferences',
|
|
5
|
+
'preference_command',
|
|
6
|
+
'preference_receipt',
|
|
7
|
+
'work_summary',
|
|
8
|
+
'work_command',
|
|
9
|
+
'work_receipt',
|
|
10
|
+
'agentim_command',
|
|
11
|
+
'agentim',
|
|
12
|
+
'capability_command',
|
|
13
|
+
'capability_status',
|
|
14
|
+
'discover',
|
|
15
|
+
'missions',
|
|
16
|
+
'select',
|
|
17
|
+
'association',
|
|
18
|
+
'unlink',
|
|
19
|
+
'brief',
|
|
20
|
+
'delegate',
|
|
21
|
+
'input',
|
|
22
|
+
'input_progress',
|
|
23
|
+
'results',
|
|
24
|
+
'result',
|
|
25
|
+
'inbox',
|
|
26
|
+
'read_result',
|
|
27
|
+
'result_receipt',
|
|
28
|
+
'delegation_policy',
|
|
29
|
+
'delegation_reauthorize',
|
|
30
|
+
'delegation_catalog',
|
|
31
|
+
'delegation_result',
|
|
32
|
+
'team',
|
|
33
|
+
'room',
|
|
34
|
+
'room_command',
|
|
35
|
+
'relay_check',
|
|
36
|
+
'relay_command',
|
|
37
|
+
];
|
|
38
|
+
export const BOT_ENTRY_READ_ACTIONS = [
|
|
39
|
+
'preferences',
|
|
40
|
+
'preference_receipt',
|
|
41
|
+
'work_summary',
|
|
42
|
+
'work_receipt',
|
|
43
|
+
'agentim',
|
|
44
|
+
'team',
|
|
45
|
+
'room',
|
|
46
|
+
'relay_check',
|
|
47
|
+
'delegation_catalog',
|
|
48
|
+
'delegation_result',
|
|
49
|
+
'capability_status',
|
|
50
|
+
'discover',
|
|
51
|
+
'missions',
|
|
52
|
+
'association',
|
|
53
|
+
'brief',
|
|
54
|
+
'input_progress',
|
|
55
|
+
'results',
|
|
56
|
+
'result',
|
|
57
|
+
'inbox',
|
|
58
|
+
'result_receipt',
|
|
59
|
+
];
|
|
60
|
+
/** Read consent includes personal navigation bookmarks, never business commands. */
|
|
61
|
+
export const BOT_ENTRY_READ_SCOPE_ACTIONS = [
|
|
62
|
+
...BOT_ENTRY_READ_ACTIONS,
|
|
63
|
+
'select',
|
|
64
|
+
'unlink',
|
|
65
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { botInteger, botObject } from './validation.js';
|
|
2
|
+
/** 长期任务沿自己的Native窗口接续;职责/接力账本不再充当另一份额度许可。 */
|
|
3
|
+
export function ongoingBotMission(s) {
|
|
4
|
+
return (s.mission.mode === 'ONGOING' &&
|
|
5
|
+
s.mission.state === 'OPEN' &&
|
|
6
|
+
s.mission.ownerEpoch === s.binding.ownerEpoch);
|
|
7
|
+
}
|
|
8
|
+
/** 轮次扩窗只对已资格化的DSH原生单位生效,不推断Codex token扩额能力。 */
|
|
9
|
+
export function ongoingBotGoalWindow(s) {
|
|
10
|
+
return ongoingBotMission(s) && s.binding.provider === 'dsh';
|
|
11
|
+
}
|
|
12
|
+
/** 仅验证摘要结构及窗口算术;真实编辑顺序仍由可信 Native 原始日志核验。 */
|
|
13
|
+
export function botGoalWindowEvidence(raw) {
|
|
14
|
+
const v = botObject(raw, [
|
|
15
|
+
'kind',
|
|
16
|
+
'rounds',
|
|
17
|
+
'initialLimit',
|
|
18
|
+
'extensions',
|
|
19
|
+
'nativeLimit',
|
|
20
|
+
'nativeUsed',
|
|
21
|
+
'roundLimitBlocked',
|
|
22
|
+
'pausedAtLimit',
|
|
23
|
+
]);
|
|
24
|
+
const rounds = botInteger(v.rounds, 1), initialLimit = botInteger(v.initialLimit, 1), extensions = botInteger(v.extensions), nativeLimit = botInteger(v.nativeLimit, 1), nativeUsed = botInteger(v.nativeUsed);
|
|
25
|
+
if (v.kind !== 'DSH_ROUND_WINDOW_V1' ||
|
|
26
|
+
typeof v.roundLimitBlocked !== 'boolean' ||
|
|
27
|
+
(v.pausedAtLimit !== undefined &&
|
|
28
|
+
(v.pausedAtLimit !== true || v.roundLimitBlocked || nativeUsed !== nativeLimit)) ||
|
|
29
|
+
initialLimit !== rounds ||
|
|
30
|
+
!Number.isSafeInteger(initialLimit + extensions * rounds) ||
|
|
31
|
+
nativeLimit !== initialLimit + extensions * rounds ||
|
|
32
|
+
nativeUsed > nativeLimit ||
|
|
33
|
+
(extensions > 0 && nativeLimit - nativeUsed > rounds))
|
|
34
|
+
throw new Error('BOT_GOAL_WINDOW_INVALID');
|
|
35
|
+
return {
|
|
36
|
+
kind: 'DSH_ROUND_WINDOW_V1',
|
|
37
|
+
rounds,
|
|
38
|
+
initialLimit,
|
|
39
|
+
extensions,
|
|
40
|
+
nativeLimit,
|
|
41
|
+
nativeUsed,
|
|
42
|
+
roundLimitBlocked: v.roundLimitBlocked,
|
|
43
|
+
...(v.pausedAtLimit === true ? { pausedAtLimit: true } : {}),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/** 恢复只可静止装载已核验的轮窗停止,发布新 Owner 之前不得编辑或 resume。 */
|
|
47
|
+
export function stoppedBotGoalWindow(s, c) {
|
|
48
|
+
if (!c?.goalWindow || !ongoingBotGoalWindow(s))
|
|
49
|
+
return false;
|
|
50
|
+
const w = botGoalWindowEvidence(c.goalWindow);
|
|
51
|
+
return (c.provider === 'dsh' &&
|
|
52
|
+
(w.roundLimitBlocked || w.pausedAtLimit === true) &&
|
|
53
|
+
c.goalLimit - w.nativeLimit === c.goalUsed - w.nativeUsed &&
|
|
54
|
+
[0, w.rounds].includes(w.nativeLimit - w.nativeUsed));
|
|
55
|
+
}
|
|
56
|
+
/** 静止装载接受原生精确耗尽停止,以及暂停发生在最后一轮的边界。 */
|
|
57
|
+
export function nativeBotGoalWindowStopped(g, allowed) {
|
|
58
|
+
if (!allowed || !g?.goalWindow)
|
|
59
|
+
return false;
|
|
60
|
+
const w = botGoalWindowEvidence(g.goalWindow);
|
|
61
|
+
return (((g.status === 'blocked' && w.roundLimitBlocked) ||
|
|
62
|
+
(g.status === 'paused' && w.pausedAtLimit === true)) &&
|
|
63
|
+
w.nativeLimit === g.limit &&
|
|
64
|
+
w.nativeUsed === g.used &&
|
|
65
|
+
[0, w.rounds].includes(g.limit - g.used));
|
|
66
|
+
}
|
|
67
|
+
/** 旧回证不改写;只允许同一 Goal、同累计偏移上的已核验整窗口增长。 */
|
|
68
|
+
export function botGoalWindowGrowth(before, after, allowed) {
|
|
69
|
+
if (!allowed ||
|
|
70
|
+
!after.goalWindow ||
|
|
71
|
+
before.provider !== 'dsh' ||
|
|
72
|
+
after.provider !== 'dsh' ||
|
|
73
|
+
before.goalRef !== after.goalRef ||
|
|
74
|
+
before.nativeSessionRef !== after.nativeSessionRef)
|
|
75
|
+
return false;
|
|
76
|
+
const w = botGoalWindowEvidence(after.goalWindow), offset = after.goalUsed - w.nativeUsed, oldNativeLimit = before.goalLimit - offset;
|
|
77
|
+
return (after.goalLimit > before.goalLimit &&
|
|
78
|
+
after.goalLimit - w.nativeLimit === offset &&
|
|
79
|
+
oldNativeLimit >= w.initialLimit &&
|
|
80
|
+
(oldNativeLimit - w.initialLimit) % w.rounds === 0 &&
|
|
81
|
+
(after.goalLimit - before.goalLimit) % w.rounds === 0 &&
|
|
82
|
+
after.goalUsed >= before.goalUsed &&
|
|
83
|
+
after.commandsUsed >= before.commandsUsed);
|
|
84
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { BotContractError, botChoice, botId, botInteger, botObject, botText, } from './validation.js';
|
|
2
|
+
export const BOT_HOST_ARTIFACT_MAX_BYTES = 1_048_576;
|
|
3
|
+
/** 文件名用于用户展示,目标工作区路径仍只在原动作正文中。 */
|
|
4
|
+
export function botHostArtifactName(raw) {
|
|
5
|
+
const name = botText(raw, 128);
|
|
6
|
+
if (name === '.' || name === '..' || /[\/\\\x00-\x1f\x7f]/.test(name))
|
|
7
|
+
throw new BotContractError('BOT_TARGET_ARTIFACT_NAME_INVALID');
|
|
8
|
+
return name;
|
|
9
|
+
}
|
|
10
|
+
/** Native 预留与目标执行共享相对路径语法,保留原字节用于参数摘要。 */
|
|
11
|
+
export function botHostArtifactPath(raw) {
|
|
12
|
+
const path = botText(raw, 4096);
|
|
13
|
+
const parts = path.split('/');
|
|
14
|
+
const encoder = new TextEncoder();
|
|
15
|
+
const roundTrip = new TextDecoder('utf-8', { fatal: true, ignoreBOM: true }).decode(encoder.encode(path));
|
|
16
|
+
if (/[\\\x00]/.test(path) ||
|
|
17
|
+
roundTrip !== path ||
|
|
18
|
+
parts.length > 64 ||
|
|
19
|
+
parts.at(-1) === '.' ||
|
|
20
|
+
parts.some((part) => !part || part === '..' || encoder.encode(part).byteLength > 255))
|
|
21
|
+
throw new BotContractError('BOT_TARGET_PATH_INVALID');
|
|
22
|
+
return path;
|
|
23
|
+
}
|
|
24
|
+
/** 正式引用校验实际交付字节、摘要和留存策略。 */
|
|
25
|
+
export function botHostArtifactRef(raw) {
|
|
26
|
+
const v = botObject(raw, [
|
|
27
|
+
'artifactId',
|
|
28
|
+
'workspaceRef',
|
|
29
|
+
'name',
|
|
30
|
+
'sizeBytes',
|
|
31
|
+
'sha256',
|
|
32
|
+
'retention',
|
|
33
|
+
]);
|
|
34
|
+
const sizeBytes = botInteger(v.sizeBytes);
|
|
35
|
+
const sha256 = botId(v.sha256);
|
|
36
|
+
if (sizeBytes > BOT_HOST_ARTIFACT_MAX_BYTES || !/^[0-9a-f]{64}$/.test(sha256))
|
|
37
|
+
throw new BotContractError('BOT_TARGET_ARTIFACT_DIGEST_INVALID');
|
|
38
|
+
return {
|
|
39
|
+
artifactId: botId(v.artifactId),
|
|
40
|
+
workspaceRef: botId(v.workspaceRef),
|
|
41
|
+
name: botHostArtifactName(v.name),
|
|
42
|
+
sizeBytes,
|
|
43
|
+
sha256,
|
|
44
|
+
retention: botChoice(v.retention, ['KEEP']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export const BOT_HOST_SCRATCH_STATES = [
|
|
48
|
+
'ACTIVE',
|
|
49
|
+
'ELIGIBLE',
|
|
50
|
+
'STAGED',
|
|
51
|
+
'CLEANED',
|
|
52
|
+
'REVIEW',
|
|
53
|
+
];
|
|
54
|
+
/** 验证目标回报的收尾阶段及其对应时间,拒绝不自洽的清理事实。 */
|
|
55
|
+
export function botHostScratchStatus(raw) {
|
|
56
|
+
const v = botObject(raw, [
|
|
57
|
+
'actionId',
|
|
58
|
+
'state',
|
|
59
|
+
'eligibleAtMs',
|
|
60
|
+
'reason',
|
|
61
|
+
'retryAfterMs',
|
|
62
|
+
'lastError',
|
|
63
|
+
]);
|
|
64
|
+
const state = botChoice(v.state, BOT_HOST_SCRATCH_STATES);
|
|
65
|
+
const eligibleAtMs = v.eligibleAtMs === null ? null : botInteger(v.eligibleAtMs, 1);
|
|
66
|
+
const reason = v.reason === null ? null : botId(v.reason);
|
|
67
|
+
const retryAfterMs = v.retryAfterMs === null ? null : botInteger(v.retryAfterMs, 1);
|
|
68
|
+
const lastError = v.lastError === null ? null : botId(v.lastError);
|
|
69
|
+
// 资格、人工复核与暂态退避各自只在相应阶段出现。
|
|
70
|
+
if ((state === 'ACTIVE') !== (eligibleAtMs === null) ||
|
|
71
|
+
(state === 'REVIEW') !== (reason !== null) ||
|
|
72
|
+
(retryAfterMs === null) !== (lastError === null) ||
|
|
73
|
+
(retryAfterMs !== null &&
|
|
74
|
+
(!['ELIGIBLE', 'STAGED'].includes(state) ||
|
|
75
|
+
eligibleAtMs === null ||
|
|
76
|
+
retryAfterMs < eligibleAtMs)))
|
|
77
|
+
throw new BotContractError('BOT_TARGET_SCRATCH_RECEIPT_INVALID');
|
|
78
|
+
return { actionId: botId(v.actionId), state, eligibleAtMs, reason, retryAfterMs, lastError };
|
|
79
|
+
}
|
|
80
|
+
/** 参数正文留在获权执行请求,正式动作身份只接受固定 SHA-256 摘要。 */
|
|
81
|
+
export function botHostActionIdentity(raw) {
|
|
82
|
+
const v = botObject(raw, [
|
|
83
|
+
'actionId',
|
|
84
|
+
'targetId',
|
|
85
|
+
'grantId',
|
|
86
|
+
'executionId',
|
|
87
|
+
'ownerEpoch',
|
|
88
|
+
'missionRevision',
|
|
89
|
+
'nativeSessionRef',
|
|
90
|
+
'nativeCallRef',
|
|
91
|
+
'parametersDigest',
|
|
92
|
+
]);
|
|
93
|
+
const parametersDigest = botId(v.parametersDigest);
|
|
94
|
+
if (!/^[0-9a-f]{64}$/.test(parametersDigest))
|
|
95
|
+
throw new BotContractError('BOT_TARGET_ACTION_DIGEST_INVALID');
|
|
96
|
+
return {
|
|
97
|
+
actionId: botId(v.actionId),
|
|
98
|
+
targetId: botId(v.targetId),
|
|
99
|
+
grantId: botId(v.grantId),
|
|
100
|
+
executionId: botId(v.executionId),
|
|
101
|
+
ownerEpoch: botInteger(v.ownerEpoch, 1),
|
|
102
|
+
missionRevision: botInteger(v.missionRevision, 1),
|
|
103
|
+
nativeSessionRef: botId(v.nativeSessionRef),
|
|
104
|
+
nativeCallRef: botId(v.nativeCallRef),
|
|
105
|
+
parametersDigest,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/** PID 必须和目标端记录的启动身份一并核对。 */
|
|
109
|
+
export function botHostActionProcess(raw) {
|
|
110
|
+
const v = botObject(raw, ['pid', 'startRef']);
|
|
111
|
+
return { pid: botInteger(v.pid, 1), startRef: botId(v.startRef) };
|
|
112
|
+
}
|
|
113
|
+
/** 结果引用与原生退出事实独立,保留没有退出码的信号或进程启动失败。 */
|
|
114
|
+
export function botHostActionOutcome(raw) {
|
|
115
|
+
const v = botObject(raw, ['state', 'reason', 'exitCode', 'resultRef', 'artifact']);
|
|
116
|
+
const state = botChoice(v.state, ['SUCCEEDED', 'FAILED', 'CANCELLED']);
|
|
117
|
+
const exitCode = v.exitCode === undefined ? undefined : botInteger(v.exitCode);
|
|
118
|
+
if ((state === 'SUCCEEDED' && exitCode !== 0) || (state === 'FAILED' && exitCode === 0))
|
|
119
|
+
throw new BotContractError('BOT_TARGET_ACTION_EXIT_INVALID');
|
|
120
|
+
const resultRef = v.resultRef === undefined ? undefined : botId(v.resultRef);
|
|
121
|
+
const artifact = v.artifact === undefined ? undefined : botHostArtifactRef(v.artifact);
|
|
122
|
+
if (artifact && (state !== 'SUCCEEDED' || artifact.artifactId !== resultRef))
|
|
123
|
+
throw new BotContractError('BOT_TARGET_ARTIFACT_RESULT_MISMATCH');
|
|
124
|
+
return {
|
|
125
|
+
state,
|
|
126
|
+
reason: botId(v.reason),
|
|
127
|
+
...(exitCode === undefined ? {} : { exitCode }),
|
|
128
|
+
...(resultRef === undefined ? {} : { resultRef }),
|
|
129
|
+
...(artifact === undefined ? {} : { artifact }),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
/** 任务只选择目标已登记的能力,普通业务 MCP 沿原上游 scopes。 */
|
|
133
|
+
export const BOT_TARGET_ACTION_CAPABILITIES = [
|
|
134
|
+
'SHELL',
|
|
135
|
+
'READ_FILE',
|
|
136
|
+
'WRITE_FILE',
|
|
137
|
+
'PUBLISH_ARTIFACT',
|
|
138
|
+
];
|
|
139
|
+
export const BOT_TARGET_CAPABILITIES = [...BOT_TARGET_ACTION_CAPABILITIES, 'CODEX_FULL'];
|
|
140
|
+
/** 同一租约摘要绑定目标上的实际 PID、启动标识、工作区及自然轮。 */
|
|
141
|
+
export function botCodexFullBinding(process, workspace, thread, call) {
|
|
142
|
+
return [process.startRef, process.pid, workspace, thread, call];
|
|
143
|
+
}
|
|
144
|
+
/** 目标回证必须保持状态、退出结果和进程身份自洽,拒绝任意原生命令正文。 */
|
|
145
|
+
export function botHostActionRecord(raw) {
|
|
146
|
+
const v = botObject(raw, [
|
|
147
|
+
'identity',
|
|
148
|
+
'state',
|
|
149
|
+
'runnerId',
|
|
150
|
+
'process',
|
|
151
|
+
'outcome',
|
|
152
|
+
'cancelRequested',
|
|
153
|
+
'createdAtMs',
|
|
154
|
+
'updatedAtMs',
|
|
155
|
+
]);
|
|
156
|
+
const state = botChoice(v.state, [
|
|
157
|
+
'RESERVED',
|
|
158
|
+
'STARTING',
|
|
159
|
+
'RUNNING',
|
|
160
|
+
'UNKNOWN',
|
|
161
|
+
'SUCCEEDED',
|
|
162
|
+
'FAILED',
|
|
163
|
+
'CANCELLED',
|
|
164
|
+
]);
|
|
165
|
+
const process = v.process === null ? null : botHostActionProcess(v.process);
|
|
166
|
+
const outcome = v.outcome === null ? null : botHostActionOutcome(v.outcome);
|
|
167
|
+
const identity = botHostActionIdentity(v.identity);
|
|
168
|
+
const runnerId = v.runnerId === null ? null : botId(v.runnerId);
|
|
169
|
+
const terminal = state === 'SUCCEEDED' || state === 'FAILED' || state === 'CANCELLED';
|
|
170
|
+
if (typeof v.cancelRequested !== 'boolean' ||
|
|
171
|
+
(terminal ? outcome?.state !== state : outcome !== null) ||
|
|
172
|
+
(outcome?.artifact && outcome.artifact.artifactId !== identity.actionId) ||
|
|
173
|
+
(process && !runnerId) ||
|
|
174
|
+
((state === 'RUNNING' || state === 'SUCCEEDED') && !process) ||
|
|
175
|
+
((state === 'STARTING' || state === 'UNKNOWN' || state === 'FAILED') && !runnerId) ||
|
|
176
|
+
(state === 'STARTING' && process !== null) ||
|
|
177
|
+
(state === 'RESERVED' && (runnerId !== null || v.cancelRequested)) ||
|
|
178
|
+
(state === 'CANCELLED' && !v.cancelRequested))
|
|
179
|
+
throw new BotContractError('BOT_TARGET_ACTION_RECORD_INVALID');
|
|
180
|
+
const createdAtMs = botInteger(v.createdAtMs);
|
|
181
|
+
return {
|
|
182
|
+
identity,
|
|
183
|
+
state,
|
|
184
|
+
runnerId,
|
|
185
|
+
process,
|
|
186
|
+
outcome,
|
|
187
|
+
cancelRequested: v.cancelRequested,
|
|
188
|
+
createdAtMs,
|
|
189
|
+
updatedAtMs: botInteger(v.updatedAtMs, createdAtMs),
|
|
190
|
+
};
|
|
191
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const BOT_IDENTITY_ACTIONS = ['get', 'register', 'credential'];
|