agentxgo 0.1.1 → 0.1.2-rc.4
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 +11 -1
- package/dist/adapters/runtime-http/client.js +5 -5
- package/dist/bootstrap.js +28 -18
- package/dist/cli.js +46 -24
- package/dist/communication/assembly.js +12 -10
- package/dist/communication/calls.js +19 -5
- package/dist/communication/config.js +1 -1
- package/dist/communication/pump.js +6 -5
- package/dist/computer/automatic.js +2 -2
- package/dist/computer/backend.js +1 -1
- package/dist/computer/clipboard.js +1 -1
- package/dist/computer/config.js +1 -1
- package/dist/computer/controller.js +1 -1
- package/dist/computer/desktop.js +1 -1
- package/dist/computer/job-main.js +1 -1
- package/dist/computer/native.js +1 -1
- package/dist/computer/scratch.js +2 -2
- package/dist/computer/service.js +1 -1
- package/dist/computer/worker.js +2 -2
- package/dist/config.js +1 -1
- package/dist/connection/guide.js +57 -0
- package/dist/connection/public-guide.js +27 -0
- package/dist/continuation/checkpoints.js +1 -1
- package/dist/continuation/commands.js +1 -1
- package/dist/continuation/coordinator.js +21 -3
- package/dist/continuation/events.js +11 -2
- package/dist/continuation/failure.js +1 -1
- package/dist/continuation/local-wait.js +1 -1
- package/dist/continuation/mcp-updates.js +42 -0
- package/dist/continuation/observations.js +1 -1
- package/dist/continuation/reading.js +2 -2
- package/dist/conversations/pump.js +1 -1
- package/dist/conversations/runtime-http.js +2 -2
- package/dist/deployment/cold-qualification.js +1 -1
- package/dist/deployment/cold-release.js +1 -1
- package/dist/deployment/components/archive.js +90 -0
- package/dist/deployment/components/cli.js +24 -5
- package/dist/deployment/components/manager.js +47 -22
- package/dist/deployment/components/release.js +19 -23
- package/dist/deployment/components/runner.js +18 -5
- package/dist/deployment/components/runtime-profile.js +25 -0
- package/dist/deployment/components/supervisor.js +22 -22
- package/dist/deployment/components/verify.js +5 -2
- package/dist/deployment/components/windows.js +1 -1
- package/dist/deployment/config.js +5 -3
- package/dist/deployment/failure.js +2 -0
- package/dist/deployment/kernel.js +45 -27
- package/dist/deployment/linux/legacy-project.js +122 -0
- package/dist/deployment/macos/activate.js +3 -3
- package/dist/deployment/macos/attachment.js +1 -1
- package/dist/deployment/macos/handoff.js +1 -1
- package/dist/deployment/macos/plan.js +8 -5
- package/dist/deployment/recovery-route.js +1 -1
- package/dist/deployment/runtime.js +5 -3
- package/dist/doctor/config.js +28 -6
- package/dist/doctor/probe.js +22 -5
- package/dist/doctor/run.js +12 -5
- package/dist/enrollment/browser-login.js +78 -0
- package/dist/enrollment/cli.js +1 -1
- package/dist/enrollment/defaults.js +6 -0
- package/dist/enrollment/device.js +2 -40
- package/dist/enrollment/initial-command.js +40 -0
- package/dist/enrollment/initial.js +129 -0
- package/dist/enrollment/login.js +49 -30
- package/dist/enrollment/private-file.js +42 -0
- package/dist/enrollment/runtime-codex.js +93 -0
- package/dist/enrollment/runtime-command.js +74 -0
- package/dist/enrollment/runtime-dsh.js +65 -0
- package/dist/enrollment/runtime-files.js +47 -0
- package/dist/enrollment/setup.js +54 -9
- package/dist/execution/artifact.js +1 -1
- package/dist/execution/codex/authority.js +2 -2
- package/dist/execution/codex/catalog.js +1 -1
- package/dist/execution/codex/config.js +6 -1
- package/dist/execution/codex/read.js +1 -1
- package/dist/execution/codex/record.js +1 -1
- package/dist/execution/codex/window-receipts.js +1 -1
- package/dist/execution/codex/wire.js +1 -1
- package/dist/execution/codex/worker.js +8 -7
- package/dist/execution/config.js +1 -1
- package/dist/execution/environment.js +1 -1
- package/dist/execution/gateway.js +1 -1
- package/dist/execution/local.js +1 -1
- package/dist/execution/native/config.js +1 -1
- package/dist/execution/native/records.js +1 -1
- package/dist/execution/native/worker.js +1 -1
- package/dist/execution/results.js +1 -1
- package/dist/execution/role.js +1 -1
- package/dist/execution/runner.js +1 -1
- package/dist/execution/scope.js +2 -2
- package/dist/execution/scratch-files.js +1 -1
- package/dist/execution/scratch.js +1 -1
- package/dist/execution/stdio.js +1 -1
- package/dist/execution/work.js +1 -1
- package/dist/execution/worker.js +2 -2
- package/dist/generated/install-guides.js +29 -0
- package/dist/help.js +86 -9
- package/dist/lifecycle/http.js +93 -19
- package/dist/lifecycle/runtime.js +1 -1
- package/dist/lifecycle/status-command.js +2 -2
- package/dist/lifecycle/wake-hints.js +43 -6
- package/dist/main.js +1 -1
- package/dist/preparation/backend.js +7 -4
- package/dist/preparation/binding.js +2 -2
- package/dist/preparation/bootstrap.js +32 -17
- package/dist/preparation/config.js +28 -8
- package/dist/preparation/coordinator.js +48 -31
- package/dist/preparation/main.js +3 -3
- package/dist/preparation/runtime.js +20 -3
- package/dist/receptions/runtime-http.js +2 -2
- package/dist/recovery/activation.js +1 -1
- package/dist/recovery/admission.js +1 -1
- package/dist/recovery/automatic-preparation.js +1 -1
- package/dist/recovery/automatic-recovery.js +1 -1
- package/dist/recovery/confirmed-binding.js +1 -1
- package/dist/recovery/coordinator.js +9 -5
- package/dist/recovery/execution-policy.js +1 -1
- package/dist/recovery/inspection-errors.js +19 -0
- package/dist/recovery/preparation-policy.js +1 -1
- package/dist/recovery/prestart.js +1 -1
- package/dist/recovery/quarantine.js +2 -2
- package/dist/recovery/service-restart.js +2 -2
- package/dist/reports/pump.js +39 -6
- package/dist/runtime/codex/NOTICE +816 -0
- package/dist/runtime/codex/codex.js +562 -0
- package/{node_modules → dist/vendor}/@agent-stack/adapter-agentim/dist/account.js +2 -2
- package/{node_modules → dist/vendor}/@agent-stack/adapter-agentim/dist/direct.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/adapter-agentim/dist/local.js +3 -3
- package/{node_modules → dist/vendor}/@agent-stack/adapter-agentim/package.json +3 -3
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/automatic-activation.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/automatic-preparation.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/checkpoint-seal.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/communication.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/computer-scratch.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/computer.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/database.js +12 -4
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/input.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/journal.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/models.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/native-calls.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/native-window.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/observations.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/recovery-history.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/recovery-record.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/recovery.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/reports.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/runtime-events.js +1 -1
- package/dist/vendor/@agent-stack/bot-host-journal/dist/runtime-receipts/index.js +1 -0
- package/dist/vendor/@agent-stack/bot-host-journal/dist/runtime-receipts/journal.js +58 -0
- package/dist/vendor/@agent-stack/bot-host-journal/dist/runtime-receipts/transaction.js +171 -0
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/runtime-settings.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/target-actions.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/target-local.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/target-scratch.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/terminal-store.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/trace-inputs.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/waits.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/bot-transport.js +7 -2
- package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/bots/client.js +2 -2
- package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/bots/inventory.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/bots/owner-route.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/bots/runtime.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/core.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/run-work-acknowledgement.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/tenant/management.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/api-credentials.js +3 -2
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/index.js +2 -2
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/installation.js +1 -0
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/mcp-capabilities.js +9 -1
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/native-events-validation.js +6 -2
- package/dist/vendor/@agent-stack/contracts/dist/bots/read-recovery.js +67 -0
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/recovery-validation.js +3 -1
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/same-native.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/contracts/integrations.js +8 -0
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/index.js +2 -0
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/interactive-work-sources.js +6 -8
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/platform-events.js +8 -9
- package/dist/vendor/@agent-stack/contracts/dist/public-applications.js +21 -0
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/integration-oauth.js +4 -0
- package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/bot/bootstrap.js +1 -1
- package/dist/vendor/@agent-stack/runtime-contracts/dist/bot/codex-public-startup.js +68 -0
- package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/bot/codex-record.js +1 -1
- package/dist/vendor/@agent-stack/runtime-contracts/dist/bot/codex-startup.js +98 -0
- package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/bot/codex-target.js +1 -1
- package/dist/vendor/@agent-stack/runtime-contracts/dist/bot/dsh-startup.js +46 -0
- package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/bot/index.js +3 -0
- package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/bot/process-identity.js +1 -1
- package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/bot/recovery-inspection.js +2 -2
- package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/index.js +2 -0
- package/dist/vendor/@agent-stack/runtime-contracts/dist/legacy.js +8 -0
- package/dist/vendor/@agent-stack/runtime-contracts/dist/oauth-connection.js +7 -0
- package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/tenant-management.js +1 -1
- package/dist/vendor/@agentims/adapter/LICENSE +202 -0
- package/{node_modules → dist/vendor}/@agentims/adapter/dist/delivery/coordinator.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/adapter/dist/delivery/decision.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/adapter/dist/errors.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/adapter/dist/source/event-source.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/adapter/package.json +3 -2
- package/dist/vendor/@agentims/runtime/LICENSE +202 -0
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/accounts/backup.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/accounts/password.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/accounts/selection.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/errors.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/help.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/input.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/main.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/run.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/update-commands.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/account-credential.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/environment.js +3 -0
- package/dist/vendor/@agentims/runtime/dist/configuration/execution-artifact.js +51 -0
- package/dist/vendor/@agentims/runtime/dist/configuration/native-command.js +4 -0
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/native-settings.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/index.js +4 -4
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/lifecycle/embedded.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/lifecycle/foreground-connection.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/lifecycle/foreground.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/lifecycle/identity.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/lifecycle/process.js +3 -2
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/lifecycle/shutdown-lease.js +2 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/lifecycle/start.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/managed/connection.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/managed/control.js +3 -3
- package/dist/vendor/@agentims/runtime/dist/managed/execution.js +95 -0
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/managed/lease.js +2 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/managed/shutdown.js +3 -3
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/managed/state.js +12 -20
- package/dist/vendor/@agentims/runtime/dist/native/daemon-driver.js +54 -0
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/storage/archive.js +2 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/supervision/launchd.js +3 -2
- package/dist/vendor/@agentims/runtime/dist/supervision/service.js +4 -0
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/supervision/systemd.js +3 -2
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/continuity.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/discovery.js +2 -2
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/embedded.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/installation.js +4 -3
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/ledger.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/managed.js +8 -22
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/manifest.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/offline.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/shutdown-owner.js +1 -1
- package/{node_modules → dist/vendor}/@agentims/runtime/package.json +4 -3
- package/dist/vendor/@agentims/sdk/LICENSE +202 -0
- package/{node_modules → dist/vendor}/@agentims/sdk/package.json +2 -1
- package/package.json +8 -19
- package/release.json +738 -687
- package/node_modules/@agent-stack/contracts/dist/bots/read-recovery.js +0 -10
- package/node_modules/@agentims/runtime/dist/supervision/service.js +0 -4
- /package/{node_modules → dist/vendor}/@agent-stack/adapter-agentim/dist/connection-file.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/adapter-agentim/dist/operations-arguments.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/adapter-agentim/dist/operations-communication.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/adapter-agentim/dist/operations-operator.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/preparation.js +0 -0
- /package/{node_modules/@agentims/adapter/dist/delivery → dist/vendor/@agent-stack/bot-host-journal/dist/runtime-receipts}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/terminal-checkpoints.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/dist/upgrade.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bot-host-journal/package.json +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/agents.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/bots/assistant.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/bots/auth.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/bots/native-events.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/bots/reports.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/bridge-client.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/deployments.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/integrations.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/knowledge.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/management.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/platform-events.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/platform.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/public-runtime.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/run-work-errors.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/runtime.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/tenant/authorization.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/client/workspace.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/dist/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/bridge-client/package.json +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/assistant-path.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/assistant.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/capabilities.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/capability-migration.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/capability-version.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/codex-policy.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/command-evidence.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/command-inventory.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/command-receipt.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/communication-native.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/communication-stream.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/communication.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/component-status.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/components.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/computer-validation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/computer.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/conversations.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/corrections.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/delegation-renewal.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/delegation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/delivery-history.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/delivery-read.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/elicitation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/entries.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/event-exchanges.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/goal-window.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/host-actions.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/identities.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/interaction-validation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/interactions.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/lifecycle.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/local-execution.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/mission.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/model-routing.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/native-events.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/native-fact.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/native-host.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/observation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/owner-progress.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/owner-transition.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/parking.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/preferences.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/preparations.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/project-oauth.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/quarantine-installation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/quarantine.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/receptions.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/recovery-admission.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/recovery-errors.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/recovery-history.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/recovery-source.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/recovery.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/relay.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/report-status.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/reports.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/restart-source.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/runtime-command.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/runtime-input.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/runtime-provider.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/runtime-settings.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/runtime-validation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/runtime.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/service-restart.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/status.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/sync.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/targets.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/validation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/versions.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/wake-hints.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/work-brief.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/work-control.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/bots/work-events.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/browser-chat-attachment.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/business-outcomes.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/chat-attachment.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/chat-stream.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/contracts/agent-ui.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/contracts/base.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/contracts/deployments.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/contracts/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/contracts/knowledge.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/contracts/live.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/contracts/runtime.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/contracts/workspace.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/delivery-targets.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/desktop-mcp.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/employee-association.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/event-links.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/execution-oauth-callback.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/host-page-context.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/installation-lifecycle.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/installation-mcp.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/installations.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/integration-context.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/integration-oauth.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/integration-runtime.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/interactive-run-wake.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/interactive-work-acknowledgement.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/interactive-work-events.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/knowledge-attachment.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/knowledge-catalog.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/knowledge-organization.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/live-audio.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/live-business.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/live-human.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/live-transport.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/mcp-directory.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/mcp-refresh.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/mcp-scopes.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/native-studio-installation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/oauth-authorization.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/reply-presentation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/reply.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/request-body.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/schedules.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/task-work-events.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tasks.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/templates.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/access-schemas.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/access-views.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/access.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/actions.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/attachments.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/authorization.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/capabilities.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/connections.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/conversation-work-events.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/conversation-work-schemas.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/conversations.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/deliveries.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/delivery-views.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/deployment-catalog.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/descriptor.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/events.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/feedback.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/guidance.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/host-enrollment.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/identity.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/installation-schemas.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/installation-views.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/installations.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/integration-configuration.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/integrations.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/json.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/knowledge-management-input.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/knowledge-management-results.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/knowledge-management-schemas.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/knowledge-management.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/knowledge-organization.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/knowledge-program-input.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/knowledge-program-results.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/knowledge-programs.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/live.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/marketplace-schemas.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/marketplaces.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/mcp-directory.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/native-operations.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/operations.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/outcome-schemas.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/outcomes.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/queries.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/resource-views.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/resources.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/schedule-schemas.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/schedule-views.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/schedules.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/schemas.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/settings.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/sse.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/task-schemas.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/task-views.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/tasks.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/tests.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/transport.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/usage.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/views.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/widgets.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/work-changes.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/work-materials.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/tenant/workspace-resources.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/widget-authorization.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/widget-avatar.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/widget-context.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/widget-conversation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/widget-host-auth.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/widget-origin.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/widget-turn.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/contracts/package.json +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/authority.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/bot/conversation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/bot/quarantine-material.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/bot/service.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/execution/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/execution/json.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/execution/observation.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/execution/runtime.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/execution/trace.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/execution/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/execution/wire.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/execution/wire.schema.json +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/interactive-run-wake.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/mcp.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/native-studio-connection.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/native-studio-execution.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/native-studio-registration.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/oauth-context.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/personal-mcp.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/signing.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/source-reply.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/storage.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/target-environment.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/dist/tool-trace.js +0 -0
- /package/{node_modules → dist/vendor}/@agent-stack/runtime-contracts/package.json +0 -0
- /package/{node_modules → dist/vendor}/@agentims/adapter/dist/authority/binding.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/adapter/dist/delivery/record.js +0 -0
- /package/{node_modules/@agentims/adapter/dist/source → dist/vendor/@agentims/adapter/dist/delivery}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/adapter/dist/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/adapter/dist/lifecycle/budget.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/adapter/dist/receipts/send.js +0 -0
- /package/{node_modules/@agentims/runtime/dist/accounts → dist/vendor/@agentims/adapter/dist/source}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/adapter/dist/status/adapter-status.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/accounts/communication.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/accounts/context.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/accounts/credential-lifecycle.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/accounts/errors.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/accounts/login.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/accounts/register.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/account → dist/vendor/@agentims/runtime/dist/accounts}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/authentication/intent.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/authentication/journals.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/authentication/methods.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/authentication/selection.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/authentication/status.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/account-commands.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/arguments.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/authentication.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/command-names.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/account-authorization.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/cache-inspection.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/cache.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/catalog.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/contacts.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/conversations.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/definition.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/deliveries-native.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/deliveries.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/devices-native.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/discovery.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/drafts.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/encryption-dehydration.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/encryption-native.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/encryption-recovery.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/encryption-reset.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/encryption-secrets.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/encryption.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/identity.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/location.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/matrix-capabilities.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/matrix-identity.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/matrix-rooms.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/media.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/messages-native.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/messages.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/native-inspection.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/native-preferences.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/native-requests.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/oauth.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/outbox.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/pairing.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/profiles.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/qr-authorization.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/reliability.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/room-management.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/rtc.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/search.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/sync-qr.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/timeline-native.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/commands/verification-native.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/history-commands.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/output.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/cli/password-input.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/connection-descriptor.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/device-binding.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/executable.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/http.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/node-version.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/private-state.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/service-origin.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/windows-command.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/configuration/windows-security.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/history/backup.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/history/online.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/history/recovery-file.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/history/restore.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/lifecycle/communication.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/lifecycle/process-priority.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/managed/directory.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/managed/errors.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/supervision/command.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/supervision/select.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/supervision/windows.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/activation.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/admission.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/archive.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/binding-preflight.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/device-archive.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/download.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/host-continuation.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/inspection-config.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/installation-integrity.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/locking.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/owner.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/pending.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/policy.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/records.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/restart.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/shutdown-proof.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/version.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/runtime/dist/updates/watch.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/api/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/api/embedded-options.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/api/embedded.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/api/errors.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/api/facade.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/api/json-value.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/api/options.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/api/request-data.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/api/sdk-info.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/account/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/account/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/cache → dist/vendor/@agentims/sdk/dist/features/account}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/cache/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/cache/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/conversations → dist/vendor/@agentims/sdk/dist/features/cache}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/configuration/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/configuration/schema.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/configuration/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/contacts/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/contacts/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/contacts/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/conversations/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/conversations/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/conversations/matrix.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/deliveries → dist/vendor/@agentims/sdk/dist/features/conversations}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/deliveries/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/deliveries/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/devices → dist/vendor/@agentims/sdk/dist/features/deliveries}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/devices/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/devices/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/encryption → dist/vendor/@agentims/sdk/dist/features/devices}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/directory/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/directory/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/directory/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/discovery/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/discovery/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/discovery/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/drafts/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/drafts/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/drafts/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/encryption/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/encryption/dehydration.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/encryption/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/events → dist/vendor/@agentims/sdk/dist/features/encryption}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/events/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/events/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/identity → dist/vendor/@agentims/sdk/dist/features/events}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/identity/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/identity/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/media → dist/vendor/@agentims/sdk/dist/features/identity}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/location/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/location/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/location/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/media/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/media/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/notifications → dist/vendor/@agentims/sdk/dist/features/media}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/messages/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/messages/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/messages/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/notifications/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/notifications/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/oauth → dist/vendor/@agentims/sdk/dist/features/notifications}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/oauth/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/oauth/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/operations → dist/vendor/@agentims/sdk/dist/features/oauth}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/operations/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/operations/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/rooms → dist/vendor/@agentims/sdk/dist/features/operations}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/outbox/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/outbox/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/outbox/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/pairing/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/pairing/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/pairing/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/presence/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/presence/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/presence/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/profiles/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/profiles/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/profiles/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/reliability/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/reliability/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/reliability/observe.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/reliability/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/rooms/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/rooms/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/rtc → dist/vendor/@agentims/sdk/dist/features/rooms}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/rtc/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/rtc/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/features/sync → dist/vendor/@agentims/sdk/dist/features/rtc}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/search/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/search/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/search/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/sync/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/sync/index.js +0 -0
- /package/{node_modules/@agentims/sdk/dist/internal/transport → dist/vendor/@agentims/sdk/dist/features/sync}/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/timeline/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/timeline/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/timeline/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/verification/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/verification/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/features/verification/types.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/index.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/native/binding.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/native/platform-resource.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/native/secrets-export.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/native/transport.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/protocol/codec.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/protocol/input.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/protocol/native-settings.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/protocol/operations.json +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/protocol/registry.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/protocol/schema.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/transport/client.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/transport/error-diagnostics.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/transport/request.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/transport/response.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/transport/retry-after.js +0 -0
- /package/{node_modules → dist/vendor}/@agentims/sdk/dist/internal/transport/stream-diagnostics.js +0 -0
- /package/{node_modules/@agent-stack/runtime-contracts/dist/legacy.js → dist/vendor/@agentims/sdk/dist/internal/transport/types.js} +0 -0
|
@@ -4,12 +4,25 @@ import { fileURLToPath } from 'node:url';
|
|
|
4
4
|
import { verifyHostRelease } from './verify.js';
|
|
5
5
|
// 独立入口只从自有组件的原子记录启动选中的 Host;原配置和业务目录由 Host 自己加载。
|
|
6
6
|
const state = JSON.parse(readFileSync(new URL('./component.json', import.meta.url), 'utf8'));
|
|
7
|
-
if (!/^[a-f0-9]{64}$/.test(state.selected) ||
|
|
7
|
+
if (!/^[a-f0-9]{64}$/.test(state.selected) ||
|
|
8
|
+
!isAbsolute(state.config) ||
|
|
9
|
+
(state.runtimeConfig !== undefined && !isAbsolute(state.runtimeConfig)))
|
|
8
10
|
throw new Error('BOT_COMPONENT_STATE_INVALID');
|
|
9
|
-
|
|
10
|
-
delete process.env.BOT_HOST_DEPLOYMENT;
|
|
11
|
-
const entry = verifyHostRelease(fileURLToPath(new URL('./releases/' + state.selected, import.meta.url)), state.selected);
|
|
11
|
+
const entry = verifyHostRelease(fileURLToPath(new URL('./releases/' + state.selected, import.meta.url)), state.selected, state.runtimeConfig !== undefined);
|
|
12
12
|
// POSIX exec 保留原 supervisor PID 和退出语义,无额外常驻包装进程。
|
|
13
13
|
if (!process.execve)
|
|
14
14
|
throw new Error('BOT_COMPONENT_USER_SUPERVISOR_UNAVAILABLE');
|
|
15
|
-
|
|
15
|
+
if (state.runtimeConfig !== undefined) {
|
|
16
|
+
process.execve(process.execPath, [
|
|
17
|
+
process.execPath,
|
|
18
|
+
'--max-old-space-size=384',
|
|
19
|
+
entry,
|
|
20
|
+
'--config',
|
|
21
|
+
state.runtimeConfig,
|
|
22
|
+
]);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
process.env.BOT_HOST_CONFIG = state.config;
|
|
26
|
+
delete process.env.BOT_HOST_DEPLOYMENT;
|
|
27
|
+
process.execve(process.execPath, [process.execPath, '--max-old-space-size=192', entry]);
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isAbsolute, join, resolve } from 'node:path';
|
|
2
|
+
import { canonicalBotJson } from "../../vendor/@agent-stack/contracts/dist/index.js";
|
|
3
|
+
import { codexPublicStartup } from "../../vendor/@agent-stack/runtime-contracts/dist/index.js";
|
|
4
|
+
import { privateDeploymentFile } from '../system.js';
|
|
5
|
+
/** Match the installed Runtime profile to the original device without loading Native or Bridge. */
|
|
6
|
+
export function managedCodexPort(path, host) {
|
|
7
|
+
if (!isAbsolute(path) || resolve(path) !== path || host.provider !== 'codex')
|
|
8
|
+
throw new Error('BOT_COMPONENT_CODEX_CONFIGURATION_INVALID');
|
|
9
|
+
const raw = privateDeploymentFile(path);
|
|
10
|
+
let runtime;
|
|
11
|
+
try {
|
|
12
|
+
runtime = codexPublicStartup(raw);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
throw new Error('BOT_COMPONENT_CODEX_CONFIGURATION_INVALID');
|
|
16
|
+
}
|
|
17
|
+
if (runtime.hostId !== host.hostId ||
|
|
18
|
+
canonicalBotJson(runtime.project) !== canonicalBotJson(host.project) ||
|
|
19
|
+
runtime.bridgeUrl !== host.bridgeUrl ||
|
|
20
|
+
runtime.bootstrapFile !== join(host.root, 'runtime-bootstrap.json') ||
|
|
21
|
+
new URL(host.backend.runtimeUrl).origin !== `http://127.0.0.1:${runtime.port}` ||
|
|
22
|
+
runtime.port === host.port)
|
|
23
|
+
throw new Error('BOT_COMPONENT_CODEX_BINDING_MISMATCH');
|
|
24
|
+
return runtime.port;
|
|
25
|
+
}
|
|
@@ -4,7 +4,7 @@ import { lstatSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync }
|
|
|
4
4
|
import { dirname, isAbsolute, join } from 'node:path';
|
|
5
5
|
import { setTimeout as delay } from 'node:timers/promises';
|
|
6
6
|
import { deploymentSystem, trustedAncestors } from '../system.js';
|
|
7
|
-
import { MAC_HOST_DEFAULT_LIMITS } from '../macos/plan.js';
|
|
7
|
+
import { MAC_HOST_DEFAULT_LIMITS, MAC_RUNTIME_DEFAULT_LIMITS } from '../macos/plan.js';
|
|
8
8
|
import { verifyManagedFile } from '../macos/install.js';
|
|
9
9
|
const systemdStates = {
|
|
10
10
|
active: 'RUNNING',
|
|
@@ -26,9 +26,9 @@ const runNative = (file, args) => {
|
|
|
26
26
|
return { status: result.status, stdout: result.stdout ?? '', stderr: result.stderr ?? '' };
|
|
27
27
|
};
|
|
28
28
|
/** 用户域 supervisor 只接收由原设备产生的固定精确服务名。 */
|
|
29
|
-
export function ownedHostSupervisor(platform, home, hostId, node, runner, run = runNative) {
|
|
29
|
+
export function ownedHostSupervisor(platform, home, hostId, node, runner, run = runNative, runtime = false) {
|
|
30
30
|
const linux = platform === 'linux';
|
|
31
|
-
const label = 'agentxgo-owned-' + hostId;
|
|
31
|
+
const label = 'agentxgo-owned-' + hostId + (runtime ? '-codex' : '');
|
|
32
32
|
const name = linux ? label + '.service' : 'com.agentxgo.' + label;
|
|
33
33
|
const configHome = process.env.XDG_CONFIG_HOME;
|
|
34
34
|
const unitDirectory = isAbsolute(configHome ?? '')
|
|
@@ -41,20 +41,17 @@ export function ownedHostSupervisor(platform, home, hostId, node, runner, run =
|
|
|
41
41
|
const target = domain + '/' + name;
|
|
42
42
|
const call = (args) => linux ? run('/usr/bin/systemctl', ['--user', ...args]) : run('/bin/launchctl', args);
|
|
43
43
|
const guard = '/Applications/AgentXGo Host.app/Contents/Resources/bin/agentxgo-guard';
|
|
44
|
+
const args = [node, runtime ? '--max-old-space-size=384' : '--max-old-space-size=192', runner];
|
|
45
|
+
// macOS guard covers the service group. Codex's independent Native writer keeps its
|
|
46
|
+
// existing EOF and process-group stop proof, including when the service process dies.
|
|
47
|
+
const limits = runtime ? MAC_RUNTIME_DEFAULT_LIMITS : MAC_HOST_DEFAULT_LIMITS;
|
|
44
48
|
const argv = linux
|
|
45
|
-
?
|
|
49
|
+
? args
|
|
46
50
|
: [
|
|
47
51
|
guard,
|
|
48
52
|
'run-user',
|
|
49
|
-
...[
|
|
50
|
-
|
|
51
|
-
MAC_HOST_DEFAULT_LIMITS.processes,
|
|
52
|
-
MAC_HOST_DEFAULT_LIMITS.cpuSeconds,
|
|
53
|
-
MAC_HOST_DEFAULT_LIMITS.wallSeconds,
|
|
54
|
-
].map(String),
|
|
55
|
-
node,
|
|
56
|
-
'--max-old-space-size=192',
|
|
57
|
-
runner,
|
|
53
|
+
...[limits.rssMiB, limits.processes, limits.cpuSeconds, limits.wallSeconds].map(String),
|
|
54
|
+
...args,
|
|
58
55
|
];
|
|
59
56
|
const checkGuard = () => {
|
|
60
57
|
if (linux || run !== runNative)
|
|
@@ -69,9 +66,9 @@ export function ownedHostSupervisor(platform, home, hostId, node, runner, run =
|
|
|
69
66
|
throw new Error('BOT_COMPONENT_MACOS_GUARD_REQUIRED');
|
|
70
67
|
}
|
|
71
68
|
};
|
|
72
|
-
const expected = linux ? systemdUnit(argv) : launchAgent(name, argv);
|
|
69
|
+
const expected = linux ? systemdUnit(argv, runtime) : launchAgent(name, argv);
|
|
73
70
|
// 已登记的旧用户作业仍可读回和停止,卸载后原位替换为进程组守护合同。
|
|
74
|
-
const legacy = linux ? undefined : [guard, 'run', ...argv.slice(2)];
|
|
71
|
+
const legacy = linux || runtime ? undefined : [guard, 'run', ...argv.slice(2)];
|
|
75
72
|
const legacyFile = legacy && launchAgent(name, legacy);
|
|
76
73
|
const ownFile = () => {
|
|
77
74
|
let info;
|
|
@@ -106,7 +103,10 @@ export function ownedHostSupervisor(platform, home, hostId, node, runner, run =
|
|
|
106
103
|
const data = Object.fromEntries(result.stdout
|
|
107
104
|
.trim()
|
|
108
105
|
.split('\n')
|
|
109
|
-
.
|
|
106
|
+
.flatMap((line) => {
|
|
107
|
+
const split = line.indexOf('=');
|
|
108
|
+
return split < 1 ? [] : [[line.slice(0, split), line.slice(split + 1)]];
|
|
109
|
+
}));
|
|
110
110
|
if (data.LoadState === 'not-found' && data.ActiveState === 'inactive' && !data.FragmentPath)
|
|
111
111
|
return { state: 'STOPPED', loaded: false };
|
|
112
112
|
if (result.status !== 0)
|
|
@@ -247,10 +247,10 @@ function launchdState(output) {
|
|
|
247
247
|
return 'STARTING';
|
|
248
248
|
}
|
|
249
249
|
/** 官方用户 unit 复用现有 Host 内存、CPU、进程上限及最多三次启动退避。 */
|
|
250
|
-
function systemdUnit(argv) {
|
|
250
|
+
function systemdUnit(argv, runtime) {
|
|
251
251
|
const quote = (value) => '"' + value.replace(/["\\]/g, '\\$&').replaceAll('%', '%%').replaceAll('$', '$$') + '"';
|
|
252
252
|
return `[Unit]
|
|
253
|
-
Description=AgentXGo device-owned Host
|
|
253
|
+
Description=AgentXGo device-owned ${runtime ? 'Codex Runtime' : 'Host'}
|
|
254
254
|
StartLimitIntervalSec=120
|
|
255
255
|
StartLimitBurst=3
|
|
256
256
|
[Service]
|
|
@@ -262,11 +262,11 @@ RestartSec=10
|
|
|
262
262
|
KillMode=control-group
|
|
263
263
|
TimeoutStopSec=45
|
|
264
264
|
RuntimeMaxSec=1d
|
|
265
|
-
MemoryMax
|
|
266
|
-
MemoryHigh
|
|
265
|
+
MemoryMax=${runtime ? '1G' : '384M'}
|
|
266
|
+
MemoryHigh=${runtime ? '768M' : '256M'}
|
|
267
267
|
MemorySwapMax=0
|
|
268
|
-
CPUQuota
|
|
269
|
-
TasksMax
|
|
268
|
+
CPUQuota=${runtime ? '100%' : '50%'}
|
|
269
|
+
TasksMax=${runtime ? 64 : 32}
|
|
270
270
|
UMask=0077
|
|
271
271
|
NoNewPrivileges=true
|
|
272
272
|
[Install]
|
|
@@ -14,7 +14,7 @@ export function approvedArchive(path, sha) {
|
|
|
14
14
|
return bytes;
|
|
15
15
|
}
|
|
16
16
|
/** 从已固定摘要的归档取全量文件清单,核对每个实际启动文件和捆绑依赖。 */
|
|
17
|
-
export function verifyHostRelease(root, sha) {
|
|
17
|
+
export function verifyHostRelease(root, sha, runtime = false) {
|
|
18
18
|
if (!isComponentRelease(sha) || realpathSync(root) !== root)
|
|
19
19
|
throw new Error('BOT_COMPONENT_RELEASE_INVALID');
|
|
20
20
|
const archive = join(root, 'host.tgz');
|
|
@@ -62,5 +62,8 @@ export function verifyHostRelease(root, sha) {
|
|
|
62
62
|
visit('', 0);
|
|
63
63
|
if (remaining.size !== 0)
|
|
64
64
|
throw new Error('BOT_COMPONENT_RELEASE_INVALID');
|
|
65
|
-
|
|
65
|
+
const entry = runtime ? 'dist/runtime/codex/codex.js' : 'dist/main.js';
|
|
66
|
+
if (!isComponentRelease(manifest.hashes[entry]))
|
|
67
|
+
throw new Error('BOT_COMPONENT_CODEX_RELEASE_REQUIRED');
|
|
68
|
+
return join(pkg, entry);
|
|
66
69
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertBotCapabilityVersion, BOT_HOST_COMPONENT_CAPABILITY, BOT_HOST_COMPONENT_VERSION, botChoice, botObject, } from
|
|
1
|
+
import { assertBotCapabilityVersion, BOT_HOST_COMPONENT_CAPABILITY, BOT_HOST_COMPONENT_VERSION, botChoice, botObject, } from "../../vendor/@agent-stack/contracts/dist/index.js";
|
|
2
2
|
import { windowsHostComponent } from '../windows-state.js';
|
|
3
3
|
/** Windows 复用 MSI 的 SCM 实况,版本和公共回执与其他平台共用。 */
|
|
4
4
|
export function manageWindowsHostComponent(input, native = windowsHostComponent) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// 部署清单核对实际外接 Runtime 和同机进程。
|
|
2
2
|
import { isAbsolute, relative, resolve } from 'node:path';
|
|
3
|
-
import { botChoice, botId, botInteger, botObject, botText, botRuntimeProvider, } from
|
|
3
|
+
import { botChoice, botId, botInteger, botObject, botText, botRuntimeProvider, } from "../vendor/@agent-stack/contracts/dist/index.js";
|
|
4
4
|
export const beneath = (parent, child) => {
|
|
5
5
|
const p = relative(parent, child);
|
|
6
6
|
return p === '' || (!isAbsolute(p) && p !== '..' && !p.startsWith('../'));
|
|
@@ -52,8 +52,10 @@ export function deploymentConfig(raw, config) {
|
|
|
52
52
|
host: true,
|
|
53
53
|
background: deploymentEndpoint(projectMode(config) ? config.backend.runtimeUrl : config.runtimeUrl),
|
|
54
54
|
};
|
|
55
|
-
if (projectMode(config))
|
|
56
|
-
|
|
55
|
+
if (projectMode(config)) {
|
|
56
|
+
if (config.reception)
|
|
57
|
+
expected.reception = deploymentEndpoint(config.reception.runtimeUrl);
|
|
58
|
+
}
|
|
57
59
|
else if (config.interaction)
|
|
58
60
|
expected.interaction = deploymentEndpoint(config.interaction.runtimeUrl);
|
|
59
61
|
if (new Set(profiles.map((p) => p.role)).size !== profiles.length ||
|
|
@@ -12,6 +12,8 @@ const startupCodes = new Set([
|
|
|
12
12
|
'BOT_DEPLOYMENT_RUNTIME_PROCESS_CHANGED',
|
|
13
13
|
'BOT_DEPLOYMENT_RUNTIME_RESPONSE_LIMIT',
|
|
14
14
|
'BOT_DEPLOYMENT_RUNTIME_RESPONSE_INVALID',
|
|
15
|
+
'BOT_DEPLOYMENT_ACCOUNT_SHARED_WITH_OTHER_PROCESS',
|
|
16
|
+
'BOT_DEPLOYMENT_FINITE_LIMIT_REQUIRED',
|
|
15
17
|
'BOT_DEPLOYMENT_PRIVATE_MANIFEST_REQUIRED',
|
|
16
18
|
'BOT_DEPLOYMENT_ABSOLUTE_MANIFEST_REQUIRED',
|
|
17
19
|
'BOT_PROJECT_ROOT_PRIVATE_REQUIRED',
|
|
@@ -26,6 +26,37 @@ function immutableLimit(path, system) {
|
|
|
26
26
|
if (meta.uid !== 0 || (meta.mode & 0o022) !== 0 || meta.symlink || !meta.file)
|
|
27
27
|
return denied('IMMUTABLE_KERNEL_LIMITS_REQUIRED');
|
|
28
28
|
}
|
|
29
|
+
function boundedGroup(profile, cgroup, system) {
|
|
30
|
+
const companion = cgroup !== profile.cgroup;
|
|
31
|
+
const path = '/sys/fs/cgroup' + cgroup;
|
|
32
|
+
if (system.realpath(path) !== path || !system.metadata(path).directory)
|
|
33
|
+
return denied('CGROUP_PATH_INVALID');
|
|
34
|
+
for (const file of ['memory.max', 'memory.swap.max', 'pids.max', 'cpu.max'])
|
|
35
|
+
immutableLimit(path + '/' + file, system);
|
|
36
|
+
// A user manager can delegate within its own cgroup. Its parent must remain
|
|
37
|
+
// root-controlled so its processes cannot leave the approved envelope.
|
|
38
|
+
for (let ancestor = companion ? dirname(path) : path; beneath('/sys/fs/cgroup', ancestor); ancestor = dirname(ancestor))
|
|
39
|
+
immutableLimit(ancestor + '/cgroup.procs', system);
|
|
40
|
+
const swap = system.read(path + '/memory.swap.max').trim();
|
|
41
|
+
if (swap !== '0' && (!companion || number(swap) > 256 * 1024 * 1024))
|
|
42
|
+
return denied('SWAP_LIMIT_REQUIRED');
|
|
43
|
+
const memoryBytes = number(system.read(path + '/memory.max'));
|
|
44
|
+
const pids = number(system.read(path + '/pids.max'));
|
|
45
|
+
const cpu = system
|
|
46
|
+
.read(path + '/cpu.max')
|
|
47
|
+
.trim()
|
|
48
|
+
.split(/\s+/);
|
|
49
|
+
if (cpu.length !== 2)
|
|
50
|
+
return denied('CPU_LIMIT_INVALID');
|
|
51
|
+
const cpuCores = number(cpu[0]) / number(cpu[1]);
|
|
52
|
+
const maxMemoryMiB = companion ? 4096 : profile.role === 'host' ? 512 : 2048;
|
|
53
|
+
if (memoryBytes < 64 * 1024 * 1024 ||
|
|
54
|
+
memoryBytes > maxMemoryMiB * 1024 * 1024 ||
|
|
55
|
+
pids > (companion ? 256 : 128) ||
|
|
56
|
+
cpuCores > 2)
|
|
57
|
+
return denied('RESOURCE_ENVELOPE_EXCEEDED');
|
|
58
|
+
return { role: profile.role, memoryBytes, pids, cpuCores };
|
|
59
|
+
}
|
|
29
60
|
export function kernelProfiles(profiles, system) {
|
|
30
61
|
if (system.platform !== 'linux' || system.uid <= 0 || !system.cgroupV2())
|
|
31
62
|
return denied('DEDICATED_LINUX_ACCOUNT_REQUIRED');
|
|
@@ -33,34 +64,13 @@ export function kernelProfiles(profiles, system) {
|
|
|
33
64
|
if (self !== host.cgroup || host.uid !== system.uid)
|
|
34
65
|
return denied('HOST_CGROUP_MISMATCH');
|
|
35
66
|
const limits = profiles.map((p) => {
|
|
36
|
-
const
|
|
37
|
-
if (system.realpath(path) !== path || !system.metadata(path).directory)
|
|
38
|
-
return denied('CGROUP_PATH_INVALID');
|
|
39
|
-
for (const file of ['memory.max', 'memory.swap.max', 'pids.max', 'cpu.max']) {
|
|
40
|
-
immutableLimit(path + '/' + file, system);
|
|
41
|
-
}
|
|
42
|
-
// Moving a writer out of the envelope must not be delegated through an ancestor.
|
|
43
|
-
for (let ancestor = path; beneath('/sys/fs/cgroup', ancestor); ancestor = dirname(ancestor))
|
|
44
|
-
immutableLimit(ancestor + '/cgroup.procs', system);
|
|
45
|
-
if (system.read(path + '/memory.swap.max').trim() !== '0')
|
|
46
|
-
return denied('SWAP_LIMIT_REQUIRED');
|
|
47
|
-
const memoryBytes = number(system.read(path + '/memory.max')), pids = number(system.read(path + '/pids.max'));
|
|
48
|
-
const cpu = system
|
|
49
|
-
.read(path + '/cpu.max')
|
|
50
|
-
.trim()
|
|
51
|
-
.split(/\s+/);
|
|
52
|
-
if (cpu.length !== 2)
|
|
53
|
-
return denied('CPU_LIMIT_INVALID');
|
|
54
|
-
const cpuCores = number(cpu[0]) / number(cpu[1]);
|
|
55
|
-
if (memoryBytes < 64 * 1024 * 1024 ||
|
|
56
|
-
memoryBytes > (p.role === 'host' ? 512 : 2048) * 1024 * 1024 ||
|
|
57
|
-
pids > 128 ||
|
|
58
|
-
cpuCores > 2)
|
|
59
|
-
return denied('RESOURCE_ENVELOPE_EXCEEDED');
|
|
67
|
+
const envelope = boundedGroup(p, p.cgroup, system);
|
|
60
68
|
checkProfileMembers(p, system);
|
|
61
|
-
return
|
|
69
|
+
return envelope;
|
|
62
70
|
});
|
|
63
|
-
// A
|
|
71
|
+
// A dedicated background account can use its native user services when root
|
|
72
|
+
// has applied finite limits to that exact systemd user manager.
|
|
73
|
+
const verified = new Set();
|
|
64
74
|
const processes = system.entries('/proc').filter((x) => /^\d+$/.test(x));
|
|
65
75
|
if (processes.length > 8192)
|
|
66
76
|
return denied('PROCESS_SCAN_LIMIT');
|
|
@@ -71,8 +81,16 @@ export function kernelProfiles(profiles, system) {
|
|
|
71
81
|
if (!profile)
|
|
72
82
|
continue;
|
|
73
83
|
processUid(system.read('/proc/' + pid + '/status'), profile.uid);
|
|
74
|
-
|
|
84
|
+
const group = processGroup(system.read('/proc/' + pid + '/cgroup'));
|
|
85
|
+
if (beneath(profile.cgroup, group))
|
|
86
|
+
continue;
|
|
87
|
+
const userServices = '/user.slice/user-' + profile.uid + '.slice/user@' + profile.uid + '.service';
|
|
88
|
+
if (profile.role !== 'background' || !beneath(userServices, group))
|
|
75
89
|
return denied('ACCOUNT_SHARED_WITH_OTHER_PROCESS');
|
|
90
|
+
if (!verified.has(userServices)) {
|
|
91
|
+
boundedGroup(profile, userServices, system);
|
|
92
|
+
verified.add(userServices);
|
|
93
|
+
}
|
|
76
94
|
}
|
|
77
95
|
catch (e) {
|
|
78
96
|
if (!vanished(e))
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { linkSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { BotBridgeClient, BotServiceTransport, isBotControlUnavailable, } from "../../vendor/@agent-stack/bridge-client/dist/index.js";
|
|
6
|
+
import { botId, botInteger, botObject } from "../../vendor/@agent-stack/contracts/dist/index.js";
|
|
7
|
+
import { parseProjectHostConfig } from '../../preparation/config.js';
|
|
8
|
+
import { privateDeploymentFile, privateDirectory, deploymentSystem } from '../system.js';
|
|
9
|
+
function projectCall(config, action, args) {
|
|
10
|
+
return new BotBridgeClient(new BotServiceTransport(config.bridgeUrl, 5000), 5000).projectHost(config.project, config.projectCredential, 'preparations', { action, args });
|
|
11
|
+
}
|
|
12
|
+
function renewalReceipt(input, hostId, now) {
|
|
13
|
+
try {
|
|
14
|
+
const receipt = botObject(input, [
|
|
15
|
+
'schemaVersion',
|
|
16
|
+
'hostId',
|
|
17
|
+
'grantId',
|
|
18
|
+
'renewalRequestId',
|
|
19
|
+
'expiresAtMs',
|
|
20
|
+
]);
|
|
21
|
+
if (receipt.schemaVersion === 1 &&
|
|
22
|
+
receipt.hostId === hostId &&
|
|
23
|
+
botInteger(receipt.expiresAtMs, 1) > now)
|
|
24
|
+
return { grantId: botId(receipt.grantId), renewalRequestId: botId(receipt.renewalRequestId) };
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
// Malformed receipts share one operator-facing error code.
|
|
28
|
+
}
|
|
29
|
+
throw new Error('BOT_LEGACY_PROJECT_RECEIPT_INVALID');
|
|
30
|
+
}
|
|
31
|
+
function projectFailureCode(error) {
|
|
32
|
+
const code = error instanceof Error ? error.message : '';
|
|
33
|
+
switch (code) {
|
|
34
|
+
case 'BOT_LEGACY_PROJECT_RECEIPT_INVALID':
|
|
35
|
+
case 'BOT_LEGACY_PROJECT_AUTHORITY_MISMATCH':
|
|
36
|
+
case 'BOT_LEGACY_PROJECT_RENEWAL_INVALID':
|
|
37
|
+
return code;
|
|
38
|
+
case 'BOT_SERVICE_HTTP_401':
|
|
39
|
+
case 'BOT_SERVICE_HTTP_403':
|
|
40
|
+
return 'BOT_LEGACY_PROJECT_AUTHORIZATION_REQUIRED';
|
|
41
|
+
case 'BOT_SERVICE_HTTP_409':
|
|
42
|
+
return 'BOT_LEGACY_PROJECT_AUTHORITY_CONFLICT';
|
|
43
|
+
default:
|
|
44
|
+
return isBotControlUnavailable(error)
|
|
45
|
+
? 'BOT_LEGACY_PROJECT_AUTHORITY_UNAVAILABLE'
|
|
46
|
+
: 'BOT_LEGACY_PROJECT_CONFIGURATION_INVALID';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/** 原授权可用于原位升级。管理员回执只为启用自动续期派生同一 Host 的私有配置。 */
|
|
50
|
+
export async function stageLegacyProject(path, input, now = Date.now(), call = projectCall) {
|
|
51
|
+
const raw = botObject(privateDeploymentFile(path));
|
|
52
|
+
const config = parseProjectHostConfig(raw);
|
|
53
|
+
if (!config || config.deviceLease)
|
|
54
|
+
throw new Error('BOT_LEGACY_PROJECT_INVALID');
|
|
55
|
+
privateDirectory(config.root, deploymentSystem);
|
|
56
|
+
if (input === undefined) {
|
|
57
|
+
// Omitting parallelBots makes this a read of the Host's existing preparations.
|
|
58
|
+
const { preparations } = botObject(await call(config, 'pending', { includeMissions: true }));
|
|
59
|
+
if (!Array.isArray(preparations) ||
|
|
60
|
+
preparations.some((value) => {
|
|
61
|
+
const record = botObject(value);
|
|
62
|
+
return record.hostId !== config.hostId || record.provider !== config.provider;
|
|
63
|
+
}))
|
|
64
|
+
throw new Error('BOT_LEGACY_PROJECT_AUTHORITY_MISMATCH');
|
|
65
|
+
return path;
|
|
66
|
+
}
|
|
67
|
+
const { grantId, renewalRequestId } = renewalReceipt(input, config.hostId, now);
|
|
68
|
+
const renewed = botObject(await call(config, 'renew', { renewalRequestId }));
|
|
69
|
+
if (renewed.schemaVersion !== 1 ||
|
|
70
|
+
renewed.hostId !== config.hostId ||
|
|
71
|
+
renewed.grantId !== grantId ||
|
|
72
|
+
botInteger(renewed.expiresAtMs, 1) <= now)
|
|
73
|
+
throw new Error('BOT_LEGACY_PROJECT_RENEWAL_INVALID');
|
|
74
|
+
if (config.projectLease?.grantId === grantId &&
|
|
75
|
+
config.projectLease?.renewalRequestId === renewalRequestId)
|
|
76
|
+
return path;
|
|
77
|
+
const payload = JSON.stringify({ ...raw, projectLease: { grantId, renewalRequestId } }) + '\n';
|
|
78
|
+
const digest = createHash('sha256').update(payload).digest('hex');
|
|
79
|
+
const target = join(config.root, 'upgrade-' + digest + '.json');
|
|
80
|
+
const staging = mkdtempSync(join(config.root, '.upgrade-'));
|
|
81
|
+
try {
|
|
82
|
+
const staged = join(staging, 'project.json');
|
|
83
|
+
writeFileSync(staged, payload, { flag: 'wx', mode: 0o600 });
|
|
84
|
+
try {
|
|
85
|
+
linkSync(staged, target);
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
if (error.code !== 'EEXIST')
|
|
89
|
+
throw error;
|
|
90
|
+
privateDeploymentFile(target);
|
|
91
|
+
if (deploymentSystem.read(target) !== payload)
|
|
92
|
+
throw new Error('BOT_LEGACY_PROJECT_STAGE_CONFLICT');
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
finally {
|
|
96
|
+
rmSync(staging, { recursive: true });
|
|
97
|
+
}
|
|
98
|
+
return target;
|
|
99
|
+
}
|
|
100
|
+
if (process.platform === 'linux' && process.argv[1] === fileURLToPath(import.meta.url)) {
|
|
101
|
+
try {
|
|
102
|
+
const [config] = process.argv.slice(2);
|
|
103
|
+
if (!config || !process.getuid?.() || !process.geteuid?.())
|
|
104
|
+
throw new Error('BOT_LEGACY_PROJECT_ROLE_REQUIRED');
|
|
105
|
+
// 管理包装器限制管道长度。凭据和原配置只由本服务账号读取。
|
|
106
|
+
const input = readFileSync(0, 'utf8').trim();
|
|
107
|
+
let receipt;
|
|
108
|
+
if (input) {
|
|
109
|
+
try {
|
|
110
|
+
receipt = JSON.parse(input);
|
|
111
|
+
}
|
|
112
|
+
catch {
|
|
113
|
+
throw new Error('BOT_LEGACY_PROJECT_RECEIPT_INVALID');
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
process.stdout.write((await stageLegacyProject(config, receipt)) + '\n');
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
process.stderr.write(projectFailureCode(error) + '\n');
|
|
120
|
+
process.exitCode = 1;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { execFileSync } from 'node:child_process';
|
|
2
2
|
import { lstatSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { BotBridgeClient, BotServiceTransport } from
|
|
5
|
-
import { botObject } from
|
|
6
|
-
import { botRuntimeBootstrap } from
|
|
4
|
+
import { BotBridgeClient, BotServiceTransport } from "../../vendor/@agent-stack/bridge-client/dist/index.js";
|
|
5
|
+
import { botObject } from "../../vendor/@agent-stack/contracts/dist/index.js";
|
|
6
|
+
import { botRuntimeBootstrap } from "../../vendor/@agent-stack/runtime-contracts/dist/index.js";
|
|
7
7
|
import { hostEnrollmentOrigin, parseHostDeviceEnrollment } from '../../enrollment/device.js';
|
|
8
8
|
import { deploymentSystem, trustedAncestors } from '../system.js';
|
|
9
9
|
import { macRolePath, sameMacEnrollment, validateMacAttachment } from './attachment.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isAbsolute, resolve } from 'node:path';
|
|
2
|
-
import { botId, botObject, botText, canonicalBotJson } from
|
|
2
|
+
import { botId, botObject, botText, canonicalBotJson } from "../../vendor/@agent-stack/contracts/dist/index.js";
|
|
3
3
|
import { beneath, deploymentEndpoint } from '../config.js';
|
|
4
4
|
/** 原角色只读取自己私有根中的配置和原生身份文件。 */
|
|
5
5
|
export function macRolePath(profile, value) {
|
|
@@ -2,7 +2,7 @@ import { chmodSync, closeSync, fsyncSync, lstatSync, mkdtempSync, openSync, read
|
|
|
2
2
|
import { userInfo } from 'node:os';
|
|
3
3
|
import { basename, dirname, isAbsolute, join } from 'node:path';
|
|
4
4
|
import { parseEnv } from 'node:util';
|
|
5
|
-
import { botObject, canonicalBotJson } from
|
|
5
|
+
import { botObject, canonicalBotJson } from "../../vendor/@agent-stack/contracts/dist/index.js";
|
|
6
6
|
import { parseHostDeviceEnrollment } from '../../enrollment/device.js';
|
|
7
7
|
import { loadProjectHostConfig } from '../../preparation/config.js';
|
|
8
8
|
import { deploymentSystem, privateDeploymentFile, privateDirectory } from '../system.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isAbsolute, resolve, join } from 'node:path';
|
|
2
|
-
import { botInteger, botObject, botText } from
|
|
2
|
+
import { botInteger, botObject, botText } from "../../vendor/@agent-stack/contracts/dist/index.js";
|
|
3
3
|
import { beneath, deploymentEndpoint } from '../config.js';
|
|
4
4
|
export const macosInstallRoot = '/Library/Application Support/AgentXGo/Bot Host';
|
|
5
5
|
export const macosConfigRoot = '/private/var/db/agentxgo-bot-host';
|
|
@@ -93,13 +93,16 @@ export const MAC_HOST_DEFAULT_LIMITS = Object.freeze({
|
|
|
93
93
|
cpuSeconds: 43200,
|
|
94
94
|
wallSeconds: 86400,
|
|
95
95
|
});
|
|
96
|
+
export const MAC_RUNTIME_DEFAULT_LIMITS = Object.freeze({
|
|
97
|
+
rssMiB: 1024,
|
|
98
|
+
processes: 64,
|
|
99
|
+
cpuSeconds: 86400,
|
|
100
|
+
wallSeconds: 86400,
|
|
101
|
+
});
|
|
96
102
|
/** 系统 LaunchDaemon 使用固定进程入口和数值限额,保留角色原数据根。 */
|
|
97
103
|
export function macJob(release, instance, role, profile) {
|
|
98
104
|
const isHost = role === 'host';
|
|
99
|
-
const limits = profile.limits ??
|
|
100
|
-
(isHost
|
|
101
|
-
? MAC_HOST_DEFAULT_LIMITS
|
|
102
|
-
: { rssMiB: 1024, processes: 64, cpuSeconds: 86400, wallSeconds: 86400 });
|
|
105
|
+
const limits = profile.limits ?? (isHost ? MAC_HOST_DEFAULT_LIMITS : MAC_RUNTIME_DEFAULT_LIMITS);
|
|
103
106
|
const label = macLabel(instance, role);
|
|
104
107
|
const guard = join(release, 'bin/agentxgo-guard');
|
|
105
108
|
// 显式提高角色 RSS 后,V8 保留四分之一给原生库、缓冲区和年轻代。
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { botOwnerProgress } from
|
|
1
|
+
import { botOwnerProgress } from "../vendor/@agent-stack/contracts/dist/index.js";
|
|
2
2
|
/** Probe the formally published service after a crash; never change the pinned execution route. */
|
|
3
3
|
export async function recoveryDeploymentConfig(config, bridge) {
|
|
4
4
|
const preparation = config.automaticPreparation, policy = config.automaticRecovery;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { botObject, botInteger, isBotNativeVersion } from
|
|
2
|
-
import { botProcessStartTicks } from
|
|
1
|
+
import { botObject, botInteger, isBotNativeVersion } from "../vendor/@agent-stack/contracts/dist/index.js";
|
|
2
|
+
import { botProcessStartTicks } from "../vendor/@agent-stack/runtime-contracts/dist/index.js";
|
|
3
3
|
import { beneath, projectMode } from './config.js';
|
|
4
4
|
import { processGroup, processUid } from './kernel.js';
|
|
5
5
|
async function boundedJson(response) {
|
|
@@ -37,6 +37,8 @@ export async function checkRuntimeEndpoints(manifest, config, system, request =
|
|
|
37
37
|
? { runtimeToken: config.runtimeToken }
|
|
38
38
|
: config.interaction;
|
|
39
39
|
const provider = !projectMode(config) && !background ? config.interaction.provider : manifest.provider;
|
|
40
|
+
if (!connection)
|
|
41
|
+
throw new Error('BOT_DEPLOYMENT_PROFILE_MISMATCH');
|
|
40
42
|
const prefix = background
|
|
41
43
|
? '/bot-runtime/v1'
|
|
42
44
|
: profile.role === 'reception'
|
|
@@ -89,7 +91,7 @@ export async function checkRuntimeEndpoints(manifest, config, system, request =
|
|
|
89
91
|
}
|
|
90
92
|
else {
|
|
91
93
|
const expected = projectMode(config)
|
|
92
|
-
? config.reception
|
|
94
|
+
? config.reception?.runtimeOrigin
|
|
93
95
|
: config.interaction.runtimeOrigin;
|
|
94
96
|
if (identity.runtimeOrigin !== expected || identity.executionId !== undefined)
|
|
95
97
|
throw new Error('BOT_DEPLOYMENT_RUNTIME_ORIGIN_MISMATCH');
|
package/dist/doctor/config.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { lstatSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { isAbsolute } from 'node:path';
|
|
3
|
-
import { botRuntimeProvider } from
|
|
4
|
-
import { botRuntimeBootstrap, botRuntimeBootstrapIdentity } from
|
|
3
|
+
import { botRuntimeProvider } from "../vendor/@agent-stack/contracts/dist/index.js";
|
|
4
|
+
import { botRuntimeBootstrap, botRuntimeBootstrapIdentity } from "../vendor/@agent-stack/runtime-contracts/dist/index.js";
|
|
5
5
|
import { runtimeEndpoint } from '../adapters/runtime-http/endpoint.js';
|
|
6
6
|
import { windowsHostState } from '../deployment/windows-state.js';
|
|
7
|
+
import { parseProjectHostConfig } from '../preparation/config.js';
|
|
7
8
|
const object = (v) => {
|
|
8
9
|
if (!v || typeof v !== 'object' || Array.isArray(v))
|
|
9
10
|
throw new Error('BOT_DOCTOR_CONFIG');
|
|
@@ -48,7 +49,7 @@ function privateConfig(path, owner) {
|
|
|
48
49
|
function bootstrappedRuntime(config) {
|
|
49
50
|
try {
|
|
50
51
|
const bootstrap = botRuntimeBootstrap(JSON.parse(privateConfig(text(config.bootstrapFile), process.getuid?.())));
|
|
51
|
-
const provider = botRuntimeProvider(config.runtimeProvider ?? 'dsh');
|
|
52
|
+
const provider = botRuntimeProvider(config.runtimeProvider ?? config.provider ?? 'dsh');
|
|
52
53
|
const identity = botRuntimeBootstrapIdentity(config, bootstrap, provider);
|
|
53
54
|
if (!identity)
|
|
54
55
|
throw new Error('BOT_DOCTOR_BOOTSTRAP_BINDING_MISMATCH');
|
|
@@ -81,13 +82,34 @@ function readinessTarget(config) {
|
|
|
81
82
|
? { readiness: { url, headers: {}, readinessMode: project ? 'project' : 'execution' } }
|
|
82
83
|
: {};
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
-
export function doctorTargets(path, readiness = 'skip', depth = 0) {
|
|
85
|
+
function loadDoctorConfig(path, depth = 0) {
|
|
86
86
|
if (depth > 1)
|
|
87
87
|
throw new Error('BOT_DOCTOR_PRIVATE_CONFIG_REQUIRED');
|
|
88
88
|
const config = object(JSON.parse(privateConfig(path)));
|
|
89
89
|
if (config.role === 'background' && typeof config.configFile === 'string')
|
|
90
|
-
return
|
|
90
|
+
return loadDoctorConfig(config.configFile, depth + 1);
|
|
91
|
+
return config;
|
|
92
|
+
}
|
|
93
|
+
/** Only report the saved renewal mode. Bridge remains authoritative about an actual lease. */
|
|
94
|
+
export function doctorRenewal(path) {
|
|
95
|
+
try {
|
|
96
|
+
const config = parseProjectHostConfig(loadDoctorConfig(path));
|
|
97
|
+
if (!config)
|
|
98
|
+
return { state: 'NOT_APPLICABLE' };
|
|
99
|
+
const mode = config.deviceLease
|
|
100
|
+
? 'DEVICE_LEASE'
|
|
101
|
+
: config.projectLease
|
|
102
|
+
? 'PROJECT_LEASE'
|
|
103
|
+
: 'MANUAL_PROJECT_GRANT';
|
|
104
|
+
return { state: 'OBSERVED', mode };
|
|
105
|
+
}
|
|
106
|
+
catch {
|
|
107
|
+
return { state: 'UNAVAILABLE', code: 'RENEWAL_CONFIGURATION_UNREADABLE' };
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/** 仅复用本 Bot 的配置。主管就绪与任务诊断分开,公开探针无需凭据。 */
|
|
111
|
+
export function doctorTargets(path, readiness = 'skip') {
|
|
112
|
+
const config = loadDoctorConfig(path);
|
|
91
113
|
const publicReadiness = readiness === 'skip' ? {} : readinessTarget(config);
|
|
92
114
|
if (readiness === 'only' && publicReadiness.readiness)
|
|
93
115
|
return publicReadiness;
|