agentxgo 0.1.1 → 0.1.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/adapters/runtime-http/client.js +3 -3
- package/dist/bootstrap.js +28 -18
- package/dist/cli.js +46 -24
- package/dist/communication/assembly.js +3 -3
- package/dist/communication/calls.js +2 -2
- 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 +20 -2
- 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 +23 -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/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 +3 -3
- package/dist/doctor/probe.js +1 -0
- package/dist/doctor/run.js +1 -1
- 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 +1 -1
- 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 +30 -3
- 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 +81 -9
- package/dist/lifecycle/http.js +53 -2
- 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 +3 -3
- package/dist/recovery/execution-policy.js +1 -1
- 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 +2 -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/interactive-work-sources.js +6 -8
- package/{node_modules → dist/vendor}/@agent-stack/contracts/dist/platform-events.js +8 -9
- 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 +732 -685
- 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/index.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,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 ||
|
|
@@ -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,7 +1,7 @@
|
|
|
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
7
|
const object = (v) => {
|
|
@@ -48,7 +48,7 @@ function privateConfig(path, owner) {
|
|
|
48
48
|
function bootstrappedRuntime(config) {
|
|
49
49
|
try {
|
|
50
50
|
const bootstrap = botRuntimeBootstrap(JSON.parse(privateConfig(text(config.bootstrapFile), process.getuid?.())));
|
|
51
|
-
const provider = botRuntimeProvider(config.runtimeProvider ?? 'dsh');
|
|
51
|
+
const provider = botRuntimeProvider(config.runtimeProvider ?? config.provider ?? 'dsh');
|
|
52
52
|
const identity = botRuntimeBootstrapIdentity(config, bootstrap, provider);
|
|
53
53
|
if (!identity)
|
|
54
54
|
throw new Error('BOT_DOCTOR_BOOTSTRAP_BINDING_MISMATCH');
|
package/dist/doctor/probe.js
CHANGED
package/dist/doctor/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { doctorTargets } from './config.js';
|
|
2
2
|
import { doctorProbe } from './probe.js';
|
|
3
|
-
import { botId, botInteger } from
|
|
3
|
+
import { botId, botInteger } from "../vendor/@agent-stack/contracts/dist/index.js";
|
|
4
4
|
// 部分诊断沿原入口直读;未选部分不访问网络,也不冒充已观察。
|
|
5
5
|
const defaultSections = ['health', 'recovery', 'native', 'connections'];
|
|
6
6
|
// 进程数值只在明确请求时采集;普通 doctor 不增加请求或默认输出。
|
package/dist/enrollment/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// 显式设备登记接受内置或外接 Runtime 标识。
|
|
2
2
|
import process from 'node:process';
|
|
3
3
|
import { parseArgs } from 'node:util';
|
|
4
|
-
import { botText, botRuntimeProvider } from
|
|
4
|
+
import { botText, botRuntimeProvider } from "../vendor/@agent-stack/contracts/dist/index.js";
|
|
5
5
|
import { enrollHostDevice, enrollHostDeviceWithTicket, prepareHostDevice } from './device.js';
|
|
6
6
|
import { enrollWithHostLogin } from './login.js';
|
|
7
7
|
/** 安装界面从私有管道交付短期会话,命令输出只提供可回读设备引用。 */
|
|
@@ -9,6 +9,12 @@ export const hostSetupRuntimes = [
|
|
|
9
9
|
];
|
|
10
10
|
/** 沿平台安装器的原登记位置读回设备。Windows 使用原生安装器持有的 ACL 和位置。 */
|
|
11
11
|
export function defaultHostDeviceFile() {
|
|
12
|
+
const desktop = process.env.DSH_AGENTXGO_HOST_DEVICE_FILE;
|
|
13
|
+
if (desktop !== undefined) {
|
|
14
|
+
if (!isAbsolute(desktop) || desktop.includes('\0'))
|
|
15
|
+
throw new Error('BOT_DEVICE_FILE_INVALID');
|
|
16
|
+
return desktop;
|
|
17
|
+
}
|
|
12
18
|
if (process.platform === 'darwin')
|
|
13
19
|
return join(homedir(), 'Library', 'Application Support', 'AgentXGo Host', 'device.json');
|
|
14
20
|
if (process.platform === 'linux') {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// 持久设备与原请求继续绑定精确 Runtime。
|
|
2
2
|
import { createHash, randomBytes, randomUUID } from 'node:crypto';
|
|
3
|
-
import { open, link, unlink } from 'node:fs/promises';
|
|
4
3
|
import { dirname, isAbsolute } from 'node:path';
|
|
5
|
-
import { botInteger, botObject, botId, botText, isBusinessKey, parseTenantHostEnrollmentRedemption, botRuntimeProvider, } from
|
|
4
|
+
import { botInteger, botObject, botId, botText, isBusinessKey, parseTenantHostEnrollmentRedemption, botRuntimeProvider, } from "../vendor/@agent-stack/contracts/dist/index.js";
|
|
6
5
|
import { deploymentSystem, privateDeploymentFile, privateDirectory } from '../deployment/system.js';
|
|
7
6
|
import { windowsHostState } from '../deployment/windows-state.js';
|
|
7
|
+
import { createPrivateHostFile as persistOnce } from './private-file.js';
|
|
8
8
|
function scope(value) {
|
|
9
9
|
const v = botObject(value, ['tenantKey', 'workspaceKey', 'projectKey']);
|
|
10
10
|
const tenantKey = botText(v.tenantKey, 64), workspaceKey = botText(v.workspaceKey, 64), projectKey = botText(v.projectKey, 64);
|
|
@@ -78,44 +78,6 @@ export function existingDeviceProject(file, api, provider) {
|
|
|
78
78
|
return undefined;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
/** 丢回执时保留原设备和原请求,并发首次写入只采用原子创建的第一份记录。 */
|
|
82
|
-
async function persistOnce(file, value) {
|
|
83
|
-
if (process.platform === 'win32') {
|
|
84
|
-
windowsHostState('create', file, value);
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
const tmp = file + '.' + randomUUID();
|
|
88
|
-
try {
|
|
89
|
-
const f = await open(tmp, 'wx', 0o600);
|
|
90
|
-
try {
|
|
91
|
-
await f.writeFile(JSON.stringify(value) + '\n');
|
|
92
|
-
await f.sync();
|
|
93
|
-
}
|
|
94
|
-
finally {
|
|
95
|
-
await f.close();
|
|
96
|
-
}
|
|
97
|
-
try {
|
|
98
|
-
await link(tmp, file);
|
|
99
|
-
const directory = await open(dirname(file), 'r');
|
|
100
|
-
try {
|
|
101
|
-
await directory.sync();
|
|
102
|
-
}
|
|
103
|
-
finally {
|
|
104
|
-
await directory.close();
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
catch (error) {
|
|
108
|
-
if (!(error instanceof Error && 'code' in error && error.code === 'EEXIST'))
|
|
109
|
-
throw error;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
finally {
|
|
113
|
-
await unlink(tmp).catch((error) => {
|
|
114
|
-
if (error.code !== 'ENOENT')
|
|
115
|
-
throw error;
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
81
|
async function deviceRecord(file, api, project, provider) {
|
|
120
82
|
if (!isAbsolute(file))
|
|
121
83
|
throw new Error('BOT_DEVICE_PRIVATE_FILE_REQUIRED');
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { dirname, join } from 'node:path';
|
|
2
|
+
import { parseArgs } from 'node:util';
|
|
3
|
+
import { defaultHostDeviceFile } from './defaults.js';
|
|
4
|
+
import { initializeHost, hostInitialFailure } from './initial.js';
|
|
5
|
+
export async function initializeHostCommand(args) {
|
|
6
|
+
try {
|
|
7
|
+
const { values } = parseArgs({
|
|
8
|
+
args,
|
|
9
|
+
options: {
|
|
10
|
+
'device-file': { type: 'string' },
|
|
11
|
+
config: { type: 'string' },
|
|
12
|
+
root: { type: 'string' },
|
|
13
|
+
port: { type: 'string' },
|
|
14
|
+
'child-port': { type: 'string' },
|
|
15
|
+
'parallel-bots': { type: 'string' },
|
|
16
|
+
'runtime-url': { type: 'string' },
|
|
17
|
+
json: { type: 'boolean' },
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
const deviceFile = values['device-file'] ?? defaultHostDeviceFile();
|
|
21
|
+
if (!deviceFile)
|
|
22
|
+
throw new Error('BOT_HOST_INITIAL_PLATFORM_UNSUPPORTED');
|
|
23
|
+
const result = await initializeHost({
|
|
24
|
+
deviceFile,
|
|
25
|
+
configFile: values.config ?? join(dirname(deviceFile), 'host.json'),
|
|
26
|
+
...(values.root === undefined ? {} : { root: values.root }),
|
|
27
|
+
...(values.port === undefined ? {} : { port: Number(values.port) }),
|
|
28
|
+
...(values['child-port'] === undefined ? {} : { childPort: Number(values['child-port']) }),
|
|
29
|
+
...(values['parallel-bots'] === undefined
|
|
30
|
+
? {}
|
|
31
|
+
: { parallelBots: Number(values['parallel-bots']) }),
|
|
32
|
+
...(values['runtime-url'] === undefined ? {} : { runtimeUrl: values['runtime-url'] }),
|
|
33
|
+
});
|
|
34
|
+
process.stdout.write(JSON.stringify(result) + '\n');
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
process.stdout.write(JSON.stringify({ error: { code: hostInitialFailure(error) } }) + '\n');
|
|
38
|
+
process.exitCode = 1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { randomBytes } from 'node:crypto';
|
|
2
|
+
import { mkdirSync } from 'node:fs';
|
|
3
|
+
import { dirname, isAbsolute, join } from 'node:path';
|
|
4
|
+
import { botInteger, botObject, canonicalBotJson } from "../vendor/@agent-stack/contracts/dist/index.js";
|
|
5
|
+
import { loadProjectHostConfig, parseProjectHostConfig, } from '../preparation/config.js';
|
|
6
|
+
import { deploymentSystem, privateDeploymentFile, privateDirectory } from '../deployment/system.js';
|
|
7
|
+
import { loadHostDeviceEnrollment } from './device.js';
|
|
8
|
+
import { createPrivateHostFile } from './private-file.js';
|
|
9
|
+
const absolute = (value) => {
|
|
10
|
+
if (!isAbsolute(value) || value.includes('\0'))
|
|
11
|
+
throw new Error('BOT_HOST_INITIAL_ABSOLUTE_PATH_REQUIRED');
|
|
12
|
+
return value;
|
|
13
|
+
};
|
|
14
|
+
function runtimeUrl(value) {
|
|
15
|
+
const url = new URL(value);
|
|
16
|
+
if (!['http:', 'https:'].includes(url.protocol) ||
|
|
17
|
+
!['127.0.0.1', '[::1]'].includes(url.hostname) ||
|
|
18
|
+
url.pathname !== '/' ||
|
|
19
|
+
url.username ||
|
|
20
|
+
url.password ||
|
|
21
|
+
url.search ||
|
|
22
|
+
url.hash)
|
|
23
|
+
throw new Error('BOT_HOST_INITIAL_LOOPBACK_REQUIRED');
|
|
24
|
+
return url.origin;
|
|
25
|
+
}
|
|
26
|
+
/** 仅配置当前设备;不登录、不探测模型、不登记职责、不安装或启动任何服务。 */
|
|
27
|
+
export async function initializeHost(input) {
|
|
28
|
+
if (!['darwin', 'linux'].includes(process.platform))
|
|
29
|
+
throw new Error('BOT_HOST_INITIAL_PLATFORM_UNSUPPORTED');
|
|
30
|
+
absolute(input.deviceFile);
|
|
31
|
+
absolute(input.configFile);
|
|
32
|
+
const enrollment = loadHostDeviceEnrollment(input.deviceFile);
|
|
33
|
+
const read = () => {
|
|
34
|
+
const raw = botObject(privateDeploymentFile(input.configFile));
|
|
35
|
+
const config = loadProjectHostConfig(input.configFile);
|
|
36
|
+
if (!config ||
|
|
37
|
+
raw.deviceEnrollment !== input.deviceFile ||
|
|
38
|
+
Object.entries(enrollment).some(([key, value]) => canonicalBotJson(config[key]) !== canonicalBotJson(value)) ||
|
|
39
|
+
(input.root !== undefined && input.root !== config.root) ||
|
|
40
|
+
(input.port !== undefined && input.port !== config.port) ||
|
|
41
|
+
(input.childPort !== undefined && input.childPort !== config.childPort) ||
|
|
42
|
+
(input.parallelBots !== undefined && input.parallelBots !== (config.parallelBots ?? 1)) ||
|
|
43
|
+
(input.runtimeUrl !== undefined &&
|
|
44
|
+
runtimeUrl(input.runtimeUrl) !== runtimeUrl(config.backend.runtimeUrl)))
|
|
45
|
+
throw new Error('BOT_HOST_INITIAL_EXISTING_CONFIGURATION_MISMATCH');
|
|
46
|
+
privateDirectory(config.root, deploymentSystem);
|
|
47
|
+
return config;
|
|
48
|
+
};
|
|
49
|
+
let config;
|
|
50
|
+
try {
|
|
51
|
+
config = read();
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
if (!(error instanceof Error && 'code' in error && error.code === 'ENOENT'))
|
|
55
|
+
throw error;
|
|
56
|
+
// 文件已存在但其根或依赖缺失时不重新生成,避免借重试覆盖旧配置。
|
|
57
|
+
try {
|
|
58
|
+
privateDeploymentFile(input.configFile);
|
|
59
|
+
throw new Error('BOT_HOST_INITIAL_EXISTING_CONFIGURATION_MISMATCH');
|
|
60
|
+
}
|
|
61
|
+
catch (missing) {
|
|
62
|
+
if (!(missing instanceof Error && 'code' in missing && missing.code === 'ENOENT'))
|
|
63
|
+
throw missing;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (!config) {
|
|
67
|
+
const port = botInteger(input.port ?? 18850, 1024);
|
|
68
|
+
const childPort = botInteger(input.childPort ?? port + 1, 1024);
|
|
69
|
+
const parallelBots = botInteger(input.parallelBots ?? 1, 1);
|
|
70
|
+
const backend = runtimeUrl(input.runtimeUrl ?? `http://127.0.0.1:${childPort + parallelBots}`);
|
|
71
|
+
if (Number(new URL(backend).port || (new URL(backend).protocol === 'https:' ? 443 : 80)) === port)
|
|
72
|
+
throw new Error('BOT_HOST_INITIAL_PORT_COLLISION');
|
|
73
|
+
const value = {
|
|
74
|
+
mode: 'project',
|
|
75
|
+
deviceEnrollment: input.deviceFile,
|
|
76
|
+
root: absolute(input.root ?? join(dirname(input.configFile), 'state')),
|
|
77
|
+
port,
|
|
78
|
+
childPort,
|
|
79
|
+
parallelBots,
|
|
80
|
+
pollIntervalMs: 1000,
|
|
81
|
+
reception: null,
|
|
82
|
+
backend: { runtimeUrl: backend, runtimeToken: randomBytes(32).toString('base64url') },
|
|
83
|
+
controlToken: randomBytes(32).toString('base64url'),
|
|
84
|
+
};
|
|
85
|
+
// 先校验完整原合同,再首建文件;不持久化非法配置或复制设备秘密。
|
|
86
|
+
parseProjectHostConfig(value);
|
|
87
|
+
for (const path of [dirname(input.configFile), value.root]) {
|
|
88
|
+
mkdirSync(path, { recursive: true, mode: 0o700 });
|
|
89
|
+
privateDirectory(path, deploymentSystem);
|
|
90
|
+
}
|
|
91
|
+
await createPrivateHostFile(input.configFile, value);
|
|
92
|
+
config = read();
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
schemaVersion: 1,
|
|
96
|
+
state: 'configured',
|
|
97
|
+
hostId: config.hostId,
|
|
98
|
+
provider: config.provider,
|
|
99
|
+
configFile: input.configFile,
|
|
100
|
+
reception: config.reception ? 'legacy-service' : 'current-native-session',
|
|
101
|
+
runtime: {
|
|
102
|
+
url: config.backend.runtimeUrl,
|
|
103
|
+
bootstrapFile: join(config.root, 'runtime-bootstrap.json'),
|
|
104
|
+
state: 'not-observed',
|
|
105
|
+
},
|
|
106
|
+
nextSteps: [
|
|
107
|
+
{
|
|
108
|
+
action: 'configure-runtime',
|
|
109
|
+
command: config.provider === 'dsh'
|
|
110
|
+
? 'agentxgo-bot-host help runtime --json'
|
|
111
|
+
: 'agentxgo-bot-host guide managed-runtime.md',
|
|
112
|
+
},
|
|
113
|
+
{ action: 'run-host', program: 'agentxgo-bot-host', args: ['--config', input.configFile] },
|
|
114
|
+
{ action: 'manage-background-host', command: 'agentxgo-bot-host help component --json' },
|
|
115
|
+
{
|
|
116
|
+
action: 'observe-host',
|
|
117
|
+
program: 'agentxgo-bot-host',
|
|
118
|
+
args: ['status', '--config', input.configFile, '--json'],
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
/** CLI 诊断不带解析原文、私有配置或令牌。 */
|
|
124
|
+
export function hostInitialFailure(error) {
|
|
125
|
+
return error instanceof Error &&
|
|
126
|
+
/^BOT_(?:HOST_INITIAL|DEVICE|DEPLOYMENT|PROJECT)_[A-Z0-9_]+$/.test(error.message)
|
|
127
|
+
? error.message
|
|
128
|
+
: 'BOT_HOST_INITIAL_FAILED';
|
|
129
|
+
}
|
package/dist/enrollment/login.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { botObject, botText, isBusinessKey } from
|
|
1
|
+
import { botObject, botText, isBusinessKey } from "../vendor/@agent-stack/contracts/dist/index.js";
|
|
2
2
|
import { enrollHostDevice, existingDeviceProject, hostEnrollmentOrigin } from './device.js';
|
|
3
3
|
/** 首次配置沿现有产品登录端点,设备登记成功后退出本次临时人类会话。 */
|
|
4
4
|
export async function enrollWithHostLogin(input, raw, request = fetch) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { open, link, unlink } from 'node:fs/promises';
|
|
3
|
+
import { dirname } from 'node:path';
|
|
4
|
+
import { windowsHostState } from '../deployment/windows-state.js';
|
|
5
|
+
/** 在已校验的私有目录中首建完整文件;并发或丢回包沿原内容恢复,不覆盖旧凭据。 */
|
|
6
|
+
export async function createPrivateHostFile(file, value) {
|
|
7
|
+
if (process.platform === 'win32') {
|
|
8
|
+
windowsHostState('create', file, value);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const temporary = file + '.' + randomUUID();
|
|
12
|
+
try {
|
|
13
|
+
const handle = await open(temporary, 'wx', 0o600);
|
|
14
|
+
try {
|
|
15
|
+
await handle.writeFile(JSON.stringify(value) + '\n');
|
|
16
|
+
await handle.sync();
|
|
17
|
+
}
|
|
18
|
+
finally {
|
|
19
|
+
await handle.close();
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
await link(temporary, file);
|
|
23
|
+
const directory = await open(dirname(file), 'r');
|
|
24
|
+
try {
|
|
25
|
+
await directory.sync();
|
|
26
|
+
}
|
|
27
|
+
finally {
|
|
28
|
+
await directory.close();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
if (!(error instanceof Error && 'code' in error && error.code === 'EEXIST'))
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
finally {
|
|
37
|
+
await unlink(temporary).catch((error) => {
|
|
38
|
+
if (error.code !== 'ENOENT')
|
|
39
|
+
throw error;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|