agentxgo 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/adapters/codex/client.js +6 -0
- package/dist/adapters/dsh/client.js +6 -0
- package/dist/adapters/runtime-http/client.js +101 -0
- package/dist/adapters/runtime-http/endpoint.js +15 -0
- package/dist/bootstrap.js +161 -0
- package/dist/cli.js +134 -0
- package/dist/communication/assembly.js +172 -0
- package/dist/communication/calls.js +107 -0
- package/dist/communication/config.js +33 -0
- package/dist/communication/pump.js +136 -0
- package/dist/computer/authority.js +67 -0
- package/dist/computer/automatic.js +163 -0
- package/dist/computer/automation-main.js +59 -0
- package/dist/computer/automation.js +229 -0
- package/dist/computer/backend.js +160 -0
- package/dist/computer/clipboard.js +72 -0
- package/dist/computer/config.js +66 -0
- package/dist/computer/controller.js +378 -0
- package/dist/computer/desktop.js +225 -0
- package/dist/computer/job-main.js +114 -0
- package/dist/computer/main.js +9 -0
- package/dist/computer/native.js +28 -0
- package/dist/computer/processes.js +165 -0
- package/dist/computer/release.js +40 -0
- package/dist/computer/scratch.js +171 -0
- package/dist/computer/service.js +46 -0
- package/dist/computer/worker.js +70 -0
- package/dist/config.js +156 -0
- package/dist/continuation/checkpoints.js +98 -0
- package/dist/continuation/commands.js +81 -0
- package/dist/continuation/coordinator.js +490 -0
- package/dist/continuation/corrections.js +154 -0
- package/dist/continuation/events.js +171 -0
- package/dist/continuation/failure.js +93 -0
- package/dist/continuation/listening.js +24 -0
- package/dist/continuation/local-wait.js +67 -0
- package/dist/continuation/observations.js +100 -0
- package/dist/continuation/parking.js +190 -0
- package/dist/continuation/reading.js +77 -0
- package/dist/conversations/pump.js +158 -0
- package/dist/conversations/runtime-http.js +88 -0
- package/dist/deployment/cold-qualification.js +119 -0
- package/dist/deployment/cold-release.js +56 -0
- package/dist/deployment/components/cli.js +45 -0
- package/dist/deployment/components/lock.js +38 -0
- package/dist/deployment/components/manager.js +281 -0
- package/dist/deployment/components/release.js +50 -0
- package/dist/deployment/components/runner.js +15 -0
- package/dist/deployment/components/supervisor.js +289 -0
- package/dist/deployment/components/verify.js +66 -0
- package/dist/deployment/components/windows.js +70 -0
- package/dist/deployment/config.js +89 -0
- package/dist/deployment/failure.js +24 -0
- package/dist/deployment/kernel.js +85 -0
- package/dist/deployment/macos/activate.js +140 -0
- package/dist/deployment/macos/attachment.js +42 -0
- package/dist/deployment/macos/handoff.js +140 -0
- package/dist/deployment/macos/install.js +223 -0
- package/dist/deployment/macos/plan.js +155 -0
- package/dist/deployment/macos/proof.js +24 -0
- package/dist/deployment/main.js +16 -0
- package/dist/deployment/members.js +58 -0
- package/dist/deployment/preflight.js +41 -0
- package/dist/deployment/recovery-route.js +18 -0
- package/dist/deployment/runtime.js +114 -0
- package/dist/deployment/system.js +112 -0
- package/dist/deployment/windows-state.js +32 -0
- package/dist/doctor/config.js +155 -0
- package/dist/doctor/probe.js +212 -0
- package/dist/doctor/process.js +31 -0
- package/dist/doctor/run.js +105 -0
- package/dist/enrollment/cli.js +57 -0
- package/dist/enrollment/defaults.js +54 -0
- package/dist/enrollment/device.js +314 -0
- package/dist/enrollment/login.js +107 -0
- package/dist/enrollment/setup.js +164 -0
- package/dist/enrollment/terminal.js +55 -0
- package/dist/execution/artifact.js +157 -0
- package/dist/execution/codex/authority.js +356 -0
- package/dist/execution/codex/catalog.js +24 -0
- package/dist/execution/codex/config.js +77 -0
- package/dist/execution/codex/directories.js +67 -0
- package/dist/execution/codex/main.js +17 -0
- package/dist/execution/codex/read.js +35 -0
- package/dist/execution/codex/record.js +121 -0
- package/dist/execution/codex/role.js +2 -0
- package/dist/execution/codex/stream.js +2 -0
- package/dist/execution/codex/window-receipts.js +73 -0
- package/dist/execution/codex/wire.js +56 -0
- package/dist/execution/codex/worker.js +143 -0
- package/dist/execution/config.js +215 -0
- package/dist/execution/environment.js +61 -0
- package/dist/execution/gateway.js +212 -0
- package/dist/execution/lease-watchdog.js +172 -0
- package/dist/execution/local.js +159 -0
- package/dist/execution/main.js +71 -0
- package/dist/execution/native/config.js +45 -0
- package/dist/execution/native/input.js +7 -0
- package/dist/execution/native/main.js +9 -0
- package/dist/execution/native/records.js +168 -0
- package/dist/execution/native/worker.js +128 -0
- package/dist/execution/native-job-gate.js +63 -0
- package/dist/execution/process-types.js +1 -0
- package/dist/execution/process.js +246 -0
- package/dist/execution/results.js +111 -0
- package/dist/execution/role.js +210 -0
- package/dist/execution/runner.js +338 -0
- package/dist/execution/scope.js +415 -0
- package/dist/execution/scratch-files.js +352 -0
- package/dist/execution/scratch-paths.js +56 -0
- package/dist/execution/scratch.js +126 -0
- package/dist/execution/stdio.js +83 -0
- package/dist/execution/stream.js +159 -0
- package/dist/execution/watchdog.js +181 -0
- package/dist/execution/work.js +76 -0
- package/dist/execution/worker.js +106 -0
- package/dist/help.js +21 -0
- package/dist/lifecycle/http.js +178 -0
- package/dist/lifecycle/runtime.js +263 -0
- package/dist/lifecycle/status-command.js +78 -0
- package/dist/lifecycle/status.js +37 -0
- package/dist/lifecycle/wake-hints.js +68 -0
- package/dist/main.js +59 -0
- package/dist/ports/reports.js +1 -0
- package/dist/ports/runtime.js +1 -0
- package/dist/preparation/backend.js +44 -0
- package/dist/preparation/binding.js +47 -0
- package/dist/preparation/bootstrap.js +165 -0
- package/dist/preparation/config.js +143 -0
- package/dist/preparation/coordinator.js +251 -0
- package/dist/preparation/main.js +58 -0
- package/dist/preparation/runtime.js +122 -0
- package/dist/receptions/pump.js +109 -0
- package/dist/receptions/runtime-http.js +115 -0
- package/dist/recovery/activation.js +178 -0
- package/dist/recovery/admission.js +95 -0
- package/dist/recovery/automatic-preparation.js +194 -0
- package/dist/recovery/automatic-recovery.js +210 -0
- package/dist/recovery/confirmed-binding.js +45 -0
- package/dist/recovery/coordinator.js +351 -0
- package/dist/recovery/execution-policy.js +26 -0
- package/dist/recovery/preparation-policy.js +30 -0
- package/dist/recovery/prestart.js +62 -0
- package/dist/recovery/quarantine.js +153 -0
- package/dist/recovery/service-restart-view.js +32 -0
- package/dist/recovery/service-restart.js +368 -0
- package/dist/reports/pump.js +98 -0
- package/dist/resources/admission.js +25 -0
- package/dist/resources/guard.js +14 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/account.js +42 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/connection-file.js +32 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/direct.js +114 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/local.js +238 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/operations-arguments.js +20 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/operations-communication.js +56 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/operations-operator.js +40 -0
- package/node_modules/@agent-stack/adapter-agentim/package.json +15 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/automatic-activation.js +94 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/automatic-preparation.js +90 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/checkpoint-seal.js +89 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/communication.js +238 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/computer-scratch.js +56 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/computer.js +183 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/database.js +174 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/index.js +4 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/input.js +55 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/journal.js +396 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/models.js +35 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/native-calls.js +123 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/native-window.js +12 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/observations.js +237 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/preparation.js +117 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/recovery-history.js +30 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/recovery-record.js +32 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/recovery.js +256 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/reports.js +105 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/runtime-events.js +246 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/runtime-settings.js +95 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/target-actions.js +355 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/target-local.js +210 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/target-scratch.js +207 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/terminal-checkpoints.js +286 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/terminal-store.js +136 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/trace-inputs.js +104 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/upgrade.js +25 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/waits.js +213 -0
- package/node_modules/@agent-stack/bot-host-journal/package.json +10 -0
- package/node_modules/@agent-stack/bridge-client/dist/bot-transport.js +339 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/agents.js +22 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/assistant.js +26 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/auth.js +9 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/client.js +160 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/inventory.js +55 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/native-events.js +52 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/owner-route.js +21 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/reports.js +41 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/runtime.js +190 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bridge-client.js +37 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/core.js +123 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/deployments.js +57 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/integrations.js +45 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/knowledge.js +33 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/management.js +112 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/platform-events.js +59 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/platform.js +82 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/public-runtime.js +94 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/run-work-acknowledgement.js +54 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/run-work-errors.js +34 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/runtime.js +46 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/tenant/authorization.js +7 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/tenant/management.js +59 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/workspace.js +109 -0
- package/node_modules/@agent-stack/bridge-client/dist/index.js +9 -0
- package/node_modules/@agent-stack/bridge-client/package.json +11 -0
- package/node_modules/@agent-stack/contracts/dist/api-credentials.js +103 -0
- package/node_modules/@agent-stack/contracts/dist/bots/assistant-path.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/bots/assistant.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/bots/capabilities.js +66 -0
- package/node_modules/@agent-stack/contracts/dist/bots/capability-migration.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/capability-version.js +48 -0
- package/node_modules/@agent-stack/contracts/dist/bots/codex-policy.js +22 -0
- package/node_modules/@agent-stack/contracts/dist/bots/command-evidence.js +101 -0
- package/node_modules/@agent-stack/contracts/dist/bots/command-inventory.js +74 -0
- package/node_modules/@agent-stack/contracts/dist/bots/command-receipt.js +78 -0
- package/node_modules/@agent-stack/contracts/dist/bots/communication-native.js +33 -0
- package/node_modules/@agent-stack/contracts/dist/bots/communication-stream.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/bots/communication.js +154 -0
- package/node_modules/@agent-stack/contracts/dist/bots/component-status.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/bots/components.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/computer-validation.js +320 -0
- package/node_modules/@agent-stack/contracts/dist/bots/computer.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/conversations.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/bots/corrections.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delegation-renewal.js +17 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delegation.js +35 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delivery-history.js +115 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delivery-read.js +121 -0
- package/node_modules/@agent-stack/contracts/dist/bots/elicitation.js +83 -0
- package/node_modules/@agent-stack/contracts/dist/bots/entries.js +65 -0
- package/node_modules/@agent-stack/contracts/dist/bots/event-exchanges.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/goal-window.js +84 -0
- package/node_modules/@agent-stack/contracts/dist/bots/host-actions.js +191 -0
- package/node_modules/@agent-stack/contracts/dist/bots/identities.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/index.js +72 -0
- package/node_modules/@agent-stack/contracts/dist/bots/installation.js +9 -0
- package/node_modules/@agent-stack/contracts/dist/bots/interaction-validation.js +227 -0
- package/node_modules/@agent-stack/contracts/dist/bots/interactions.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/lifecycle.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/bots/local-execution.js +72 -0
- package/node_modules/@agent-stack/contracts/dist/bots/mcp-capabilities.js +53 -0
- package/node_modules/@agent-stack/contracts/dist/bots/mission.js +3 -0
- package/node_modules/@agent-stack/contracts/dist/bots/model-routing.js +43 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-events-validation.js +229 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-events.js +4 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-fact.js +32 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-host.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/observation.js +42 -0
- package/node_modules/@agent-stack/contracts/dist/bots/owner-progress.js +85 -0
- package/node_modules/@agent-stack/contracts/dist/bots/owner-transition.js +169 -0
- package/node_modules/@agent-stack/contracts/dist/bots/parking.js +75 -0
- package/node_modules/@agent-stack/contracts/dist/bots/preferences.js +39 -0
- package/node_modules/@agent-stack/contracts/dist/bots/preparations.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/bots/project-oauth.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/quarantine-installation.js +117 -0
- package/node_modules/@agent-stack/contracts/dist/bots/quarantine.js +186 -0
- package/node_modules/@agent-stack/contracts/dist/bots/read-recovery.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/receptions.js +7 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-admission.js +163 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-errors.js +51 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-history.js +90 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-source.js +164 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-validation.js +160 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/bots/relay.js +21 -0
- package/node_modules/@agent-stack/contracts/dist/bots/report-status.js +99 -0
- package/node_modules/@agent-stack/contracts/dist/bots/reports.js +8 -0
- package/node_modules/@agent-stack/contracts/dist/bots/restart-source.js +151 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-command.js +59 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-input.js +80 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-provider.js +12 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-settings.js +63 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-validation.js +35 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/same-native.js +44 -0
- package/node_modules/@agent-stack/contracts/dist/bots/service-restart.js +80 -0
- package/node_modules/@agent-stack/contracts/dist/bots/status.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/sync.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/targets.js +95 -0
- package/node_modules/@agent-stack/contracts/dist/bots/validation.js +82 -0
- package/node_modules/@agent-stack/contracts/dist/bots/versions.js +6 -0
- package/node_modules/@agent-stack/contracts/dist/bots/wake-hints.js +20 -0
- package/node_modules/@agent-stack/contracts/dist/bots/work-brief.js +120 -0
- package/node_modules/@agent-stack/contracts/dist/bots/work-control.js +47 -0
- package/node_modules/@agent-stack/contracts/dist/bots/work-events.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/browser-chat-attachment.js +66 -0
- package/node_modules/@agent-stack/contracts/dist/business-outcomes.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/chat-attachment.js +70 -0
- package/node_modules/@agent-stack/contracts/dist/chat-stream.js +105 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/agent-ui.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/base.js +6 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/deployments.js +6 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/index.js +8 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/integrations.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/knowledge.js +69 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/live.js +56 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/runtime.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/workspace.js +9 -0
- package/node_modules/@agent-stack/contracts/dist/delivery-targets.js +139 -0
- package/node_modules/@agent-stack/contracts/dist/desktop-mcp.js +105 -0
- package/node_modules/@agent-stack/contracts/dist/employee-association.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/event-links.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/execution-oauth-callback.js +61 -0
- package/node_modules/@agent-stack/contracts/dist/host-page-context.js +156 -0
- package/node_modules/@agent-stack/contracts/dist/index.js +115 -0
- package/node_modules/@agent-stack/contracts/dist/installation-lifecycle.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/installation-mcp.js +5 -0
- package/node_modules/@agent-stack/contracts/dist/installations.js +7 -0
- package/node_modules/@agent-stack/contracts/dist/integration-context.js +22 -0
- package/node_modules/@agent-stack/contracts/dist/integration-oauth.js +23 -0
- package/node_modules/@agent-stack/contracts/dist/integration-runtime.js +107 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-run-wake.js +78 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-work-acknowledgement.js +74 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-work-events.js +131 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-work-sources.js +142 -0
- package/node_modules/@agent-stack/contracts/dist/knowledge-attachment.js +50 -0
- package/node_modules/@agent-stack/contracts/dist/knowledge-catalog.js +94 -0
- package/node_modules/@agent-stack/contracts/dist/knowledge-organization.js +87 -0
- package/node_modules/@agent-stack/contracts/dist/live-audio.js +46 -0
- package/node_modules/@agent-stack/contracts/dist/live-business.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/live-human.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/live-transport.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/mcp-directory.js +7 -0
- package/node_modules/@agent-stack/contracts/dist/mcp-refresh.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/mcp-scopes.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/native-studio-installation.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/oauth-authorization.js +19 -0
- package/node_modules/@agent-stack/contracts/dist/platform-events.js +182 -0
- package/node_modules/@agent-stack/contracts/dist/reply-presentation.js +59 -0
- package/node_modules/@agent-stack/contracts/dist/reply.js +129 -0
- package/node_modules/@agent-stack/contracts/dist/request-body.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/schedules.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/task-work-events.js +107 -0
- package/node_modules/@agent-stack/contracts/dist/tasks.js +200 -0
- package/node_modules/@agent-stack/contracts/dist/templates.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/access-schemas.js +149 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/access-views.js +17 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/access.js +132 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/actions.js +173 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/attachments.js +68 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/authorization.js +160 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/capabilities.js +98 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/connections.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/conversation-work-events.js +72 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/conversation-work-schemas.js +136 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/conversations.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/deliveries.js +120 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/delivery-views.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/deployment-catalog.js +50 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/descriptor.js +50 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/events.js +39 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/feedback.js +161 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/guidance.js +284 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/host-enrollment.js +51 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/identity.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/installation-schemas.js +350 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/installation-views.js +69 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/installations.js +217 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/integration-configuration.js +96 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/integration-oauth.js +85 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/integrations.js +75 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/json.js +96 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management-input.js +211 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management-results.js +145 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management-schemas.js +139 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management.js +32 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-organization.js +96 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-program-input.js +111 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-program-results.js +234 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-programs.js +15 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/live.js +63 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/marketplace-schemas.js +110 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/marketplaces.js +51 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/mcp-directory.js +98 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/native-operations.js +113 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/operations.js +36 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/outcome-schemas.js +121 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/outcomes.js +87 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/queries.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/resource-views.js +463 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/resources.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schedule-schemas.js +122 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schedule-views.js +22 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schedules.js +109 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schemas.js +117 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/settings.js +34 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/sse.js +58 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/task-schemas.js +89 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/task-views.js +34 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/tasks.js +41 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/tests.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/transport.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/usage.js +61 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/views.js +52 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/widgets.js +215 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/work-changes.js +71 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/work-materials.js +102 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/workspace-resources.js +87 -0
- package/node_modules/@agent-stack/contracts/dist/widget-authorization.js +55 -0
- package/node_modules/@agent-stack/contracts/dist/widget-avatar.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/widget-context.js +57 -0
- package/node_modules/@agent-stack/contracts/dist/widget-conversation.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/widget-host-auth.js +142 -0
- package/node_modules/@agent-stack/contracts/dist/widget-origin.js +16 -0
- package/node_modules/@agent-stack/contracts/dist/widget-turn.js +84 -0
- package/node_modules/@agent-stack/contracts/package.json +8 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/authority.js +64 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/bootstrap.js +81 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/codex-record.js +37 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/codex-target.js +56 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/conversation.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/index.js +7 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/process-identity.js +18 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/quarantine-material.js +9 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/recovery-inspection.js +103 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/service.js +3 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/index.js +7 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/json.js +169 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/observation.js +40 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/runtime.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/trace.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/types.js +32 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/wire.js +167 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/wire.schema.json +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/index.js +31 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/interactive-run-wake.js +190 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/legacy.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/mcp.js +53 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/native-studio-connection.js +46 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/native-studio-execution.js +100 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/native-studio-registration.js +193 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/oauth-context.js +38 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/personal-mcp.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/signing.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/source-reply.js +153 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/storage.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/target-environment.js +45 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/tenant-management.js +57 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/tool-trace.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/package.json +13 -0
- package/node_modules/@agentims/adapter/dist/authority/binding.js +40 -0
- package/node_modules/@agentims/adapter/dist/delivery/coordinator.js +202 -0
- package/node_modules/@agentims/adapter/dist/delivery/decision.js +51 -0
- package/node_modules/@agentims/adapter/dist/delivery/record.js +24 -0
- package/node_modules/@agentims/adapter/dist/delivery/types.js +1 -0
- package/node_modules/@agentims/adapter/dist/errors.js +40 -0
- package/node_modules/@agentims/adapter/dist/index.js +5 -0
- package/node_modules/@agentims/adapter/dist/lifecycle/budget.js +30 -0
- package/node_modules/@agentims/adapter/dist/receipts/send.js +24 -0
- package/node_modules/@agentims/adapter/dist/source/event-source.js +153 -0
- package/node_modules/@agentims/adapter/dist/source/types.js +1 -0
- package/node_modules/@agentims/adapter/dist/status/adapter-status.js +46 -0
- package/node_modules/@agentims/adapter/package.json +10 -0
- package/node_modules/@agentims/runtime/dist/accounts/backup.js +39 -0
- package/node_modules/@agentims/runtime/dist/accounts/communication.js +14 -0
- package/node_modules/@agentims/runtime/dist/accounts/context.js +36 -0
- package/node_modules/@agentims/runtime/dist/accounts/credential-lifecycle.js +57 -0
- package/node_modules/@agentims/runtime/dist/accounts/errors.js +13 -0
- package/node_modules/@agentims/runtime/dist/accounts/login.js +32 -0
- package/node_modules/@agentims/runtime/dist/accounts/password.js +18 -0
- package/node_modules/@agentims/runtime/dist/accounts/register.js +30 -0
- package/node_modules/@agentims/runtime/dist/accounts/selection.js +93 -0
- package/node_modules/@agentims/runtime/dist/accounts/types.js +1 -0
- package/node_modules/@agentims/runtime/dist/authentication/intent.js +15 -0
- package/node_modules/@agentims/runtime/dist/authentication/journals.js +39 -0
- package/node_modules/@agentims/runtime/dist/authentication/methods.js +42 -0
- package/node_modules/@agentims/runtime/dist/authentication/selection.js +20 -0
- package/node_modules/@agentims/runtime/dist/authentication/status.js +42 -0
- package/node_modules/@agentims/runtime/dist/cli/account-commands.js +72 -0
- package/node_modules/@agentims/runtime/dist/cli/arguments.js +120 -0
- package/node_modules/@agentims/runtime/dist/cli/authentication.js +22 -0
- package/node_modules/@agentims/runtime/dist/cli/command-names.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/account-authorization.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/cache-inspection.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/cache.js +14 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/catalog.js +40 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/contacts.js +5 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/conversations.js +15 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/definition.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/deliveries-native.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/deliveries.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/devices-native.js +7 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/discovery.js +4 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/drafts.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-dehydration.js +13 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-native.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-recovery.js +11 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-reset.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-secrets.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/identity.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/location.js +7 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/matrix-capabilities.js +38 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/matrix-identity.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/matrix-rooms.js +23 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/media.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/messages-native.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/messages.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/native-inspection.js +24 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/native-preferences.js +11 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/native-requests.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/oauth.js +15 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/outbox.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/pairing.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/profiles.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/qr-authorization.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/reliability.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/room-management.js +17 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/rtc.js +14 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/search.js +11 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/sync-qr.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/timeline-native.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/verification-native.js +7 -0
- package/node_modules/@agentims/runtime/dist/cli/errors.js +83 -0
- package/node_modules/@agentims/runtime/dist/cli/help.js +74 -0
- package/node_modules/@agentims/runtime/dist/cli/history-commands.js +13 -0
- package/node_modules/@agentims/runtime/dist/cli/input.js +82 -0
- package/node_modules/@agentims/runtime/dist/cli/main.js +19 -0
- package/node_modules/@agentims/runtime/dist/cli/output.js +71 -0
- package/node_modules/@agentims/runtime/dist/cli/password-input.js +36 -0
- package/node_modules/@agentims/runtime/dist/cli/run.js +90 -0
- package/node_modules/@agentims/runtime/dist/cli/update-commands.js +76 -0
- package/node_modules/@agentims/runtime/dist/configuration/account-credential.js +30 -0
- package/node_modules/@agentims/runtime/dist/configuration/connection-descriptor.js +18 -0
- package/node_modules/@agentims/runtime/dist/configuration/device-binding.js +41 -0
- package/node_modules/@agentims/runtime/dist/configuration/environment.js +43 -0
- package/node_modules/@agentims/runtime/dist/configuration/executable.js +49 -0
- package/node_modules/@agentims/runtime/dist/configuration/http.js +4 -0
- package/node_modules/@agentims/runtime/dist/configuration/native-settings.js +13 -0
- package/node_modules/@agentims/runtime/dist/configuration/node-version.js +8 -0
- package/node_modules/@agentims/runtime/dist/configuration/private-state.js +115 -0
- package/node_modules/@agentims/runtime/dist/configuration/service-origin.js +48 -0
- package/node_modules/@agentims/runtime/dist/configuration/windows-command.js +14 -0
- package/node_modules/@agentims/runtime/dist/configuration/windows-security.js +13 -0
- package/node_modules/@agentims/runtime/dist/history/backup.js +45 -0
- package/node_modules/@agentims/runtime/dist/history/online.js +48 -0
- package/node_modules/@agentims/runtime/dist/history/recovery-file.js +19 -0
- package/node_modules/@agentims/runtime/dist/history/restore.js +19 -0
- package/node_modules/@agentims/runtime/dist/index.js +31 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/communication.js +66 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/embedded.js +24 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/foreground-connection.js +61 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/foreground.js +47 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/identity.js +46 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/process-priority.js +22 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/process.js +60 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/shutdown-lease.js +90 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/start.js +69 -0
- package/node_modules/@agentims/runtime/dist/managed/connection.js +29 -0
- package/node_modules/@agentims/runtime/dist/managed/control.js +134 -0
- package/node_modules/@agentims/runtime/dist/managed/directory.js +19 -0
- package/node_modules/@agentims/runtime/dist/managed/errors.js +9 -0
- package/node_modules/@agentims/runtime/dist/managed/lease.js +32 -0
- package/node_modules/@agentims/runtime/dist/managed/shutdown.js +63 -0
- package/node_modules/@agentims/runtime/dist/managed/state.js +82 -0
- package/node_modules/@agentims/runtime/dist/storage/archive.js +89 -0
- package/node_modules/@agentims/runtime/dist/supervision/command.js +13 -0
- package/node_modules/@agentims/runtime/dist/supervision/launchd.js +64 -0
- package/node_modules/@agentims/runtime/dist/supervision/select.js +13 -0
- package/node_modules/@agentims/runtime/dist/supervision/service.js +4 -0
- package/node_modules/@agentims/runtime/dist/supervision/systemd.js +34 -0
- package/node_modules/@agentims/runtime/dist/supervision/windows.js +20 -0
- package/node_modules/@agentims/runtime/dist/updates/activation.js +65 -0
- package/node_modules/@agentims/runtime/dist/updates/admission.js +15 -0
- package/node_modules/@agentims/runtime/dist/updates/archive.js +45 -0
- package/node_modules/@agentims/runtime/dist/updates/binding-preflight.js +25 -0
- package/node_modules/@agentims/runtime/dist/updates/continuity.js +45 -0
- package/node_modules/@agentims/runtime/dist/updates/device-archive.js +43 -0
- package/node_modules/@agentims/runtime/dist/updates/discovery.js +91 -0
- package/node_modules/@agentims/runtime/dist/updates/download.js +66 -0
- package/node_modules/@agentims/runtime/dist/updates/embedded.js +143 -0
- package/node_modules/@agentims/runtime/dist/updates/host-continuation.js +43 -0
- package/node_modules/@agentims/runtime/dist/updates/inspection-config.js +18 -0
- package/node_modules/@agentims/runtime/dist/updates/installation-integrity.js +35 -0
- package/node_modules/@agentims/runtime/dist/updates/installation.js +134 -0
- package/node_modules/@agentims/runtime/dist/updates/ledger.js +75 -0
- package/node_modules/@agentims/runtime/dist/updates/locking.js +17 -0
- package/node_modules/@agentims/runtime/dist/updates/managed.js +271 -0
- package/node_modules/@agentims/runtime/dist/updates/manifest.js +97 -0
- package/node_modules/@agentims/runtime/dist/updates/offline.js +56 -0
- package/node_modules/@agentims/runtime/dist/updates/owner.js +14 -0
- package/node_modules/@agentims/runtime/dist/updates/pending.js +20 -0
- package/node_modules/@agentims/runtime/dist/updates/policy.js +73 -0
- package/node_modules/@agentims/runtime/dist/updates/records.js +33 -0
- package/node_modules/@agentims/runtime/dist/updates/restart.js +80 -0
- package/node_modules/@agentims/runtime/dist/updates/shutdown-owner.js +74 -0
- package/node_modules/@agentims/runtime/dist/updates/shutdown-proof.js +35 -0
- package/node_modules/@agentims/runtime/dist/updates/types.js +16 -0
- package/node_modules/@agentims/runtime/dist/updates/version.js +40 -0
- package/node_modules/@agentims/runtime/dist/updates/watch.js +87 -0
- package/node_modules/@agentims/runtime/package.json +11 -0
- package/node_modules/@agentims/sdk/dist/api/client.js +15 -0
- package/node_modules/@agentims/sdk/dist/api/embedded-options.js +1 -0
- package/node_modules/@agentims/sdk/dist/api/embedded.js +28 -0
- package/node_modules/@agentims/sdk/dist/api/errors.js +43 -0
- package/node_modules/@agentims/sdk/dist/api/facade.js +92 -0
- package/node_modules/@agentims/sdk/dist/api/json-value.js +1 -0
- package/node_modules/@agentims/sdk/dist/api/options.js +1 -0
- package/node_modules/@agentims/sdk/dist/api/request-data.js +43 -0
- package/node_modules/@agentims/sdk/dist/api/sdk-info.js +9 -0
- package/node_modules/@agentims/sdk/dist/features/account/client.js +57 -0
- package/node_modules/@agentims/sdk/dist/features/account/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/account/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/cache/client.js +40 -0
- package/node_modules/@agentims/sdk/dist/features/cache/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/cache/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/configuration/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/configuration/schema.js +8 -0
- package/node_modules/@agentims/sdk/dist/features/configuration/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/contacts/client.js +12 -0
- package/node_modules/@agentims/sdk/dist/features/contacts/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/contacts/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/client.js +54 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/matrix.js +61 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/deliveries/client.js +41 -0
- package/node_modules/@agentims/sdk/dist/features/deliveries/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/deliveries/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/devices/client.js +36 -0
- package/node_modules/@agentims/sdk/dist/features/devices/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/devices/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/directory/client.js +36 -0
- package/node_modules/@agentims/sdk/dist/features/directory/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/directory/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/discovery/client.js +9 -0
- package/node_modules/@agentims/sdk/dist/features/discovery/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/discovery/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/drafts/client.js +16 -0
- package/node_modules/@agentims/sdk/dist/features/drafts/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/drafts/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/client.js +105 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/dehydration.js +36 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/events/client.js +45 -0
- package/node_modules/@agentims/sdk/dist/features/events/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/events/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/identity/client.js +77 -0
- package/node_modules/@agentims/sdk/dist/features/identity/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/identity/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/location/client.js +18 -0
- package/node_modules/@agentims/sdk/dist/features/location/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/location/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/media/client.js +34 -0
- package/node_modules/@agentims/sdk/dist/features/media/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/media/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/messages/client.js +43 -0
- package/node_modules/@agentims/sdk/dist/features/messages/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/messages/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/notifications/client.js +42 -0
- package/node_modules/@agentims/sdk/dist/features/notifications/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/notifications/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/oauth/client.js +52 -0
- package/node_modules/@agentims/sdk/dist/features/oauth/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/oauth/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/operations/client.js +16 -0
- package/node_modules/@agentims/sdk/dist/features/operations/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/operations/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/outbox/client.js +25 -0
- package/node_modules/@agentims/sdk/dist/features/outbox/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/outbox/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/pairing/client.js +48 -0
- package/node_modules/@agentims/sdk/dist/features/pairing/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/pairing/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/presence/client.js +15 -0
- package/node_modules/@agentims/sdk/dist/features/presence/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/presence/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/profiles/client.js +15 -0
- package/node_modules/@agentims/sdk/dist/features/profiles/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/profiles/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/client.js +32 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/observe.js +48 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/rooms/client.js +76 -0
- package/node_modules/@agentims/sdk/dist/features/rooms/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/rooms/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/rtc/client.js +39 -0
- package/node_modules/@agentims/sdk/dist/features/rtc/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/rtc/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/search/client.js +31 -0
- package/node_modules/@agentims/sdk/dist/features/search/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/search/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/sync/client.js +16 -0
- package/node_modules/@agentims/sdk/dist/features/sync/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/sync/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/timeline/client.js +27 -0
- package/node_modules/@agentims/sdk/dist/features/timeline/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/timeline/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/verification/client.js +33 -0
- package/node_modules/@agentims/sdk/dist/features/verification/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/verification/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/index.js +7 -0
- package/node_modules/@agentims/sdk/dist/internal/native/binding.js +85 -0
- package/node_modules/@agentims/sdk/dist/internal/native/platform-resource.js +15 -0
- package/node_modules/@agentims/sdk/dist/internal/native/secrets-export.js +27 -0
- package/node_modules/@agentims/sdk/dist/internal/native/transport.js +92 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/codec.js +69 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/input.js +38 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/native-settings.js +48 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/operations.json +1 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/registry.js +72 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/schema.js +133 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/client.js +102 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/error-diagnostics.js +50 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/request.js +59 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/response.js +94 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/retry-after.js +21 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/stream-diagnostics.js +19 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/types.js +1 -0
- package/node_modules/@agentims/sdk/package.json +8 -0
- package/package.json +31 -4
- package/release.json +746 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { bridgePrincipalHeaders } from '../core.js';
|
|
2
|
+
const root = (s) => `t/${encodeURIComponent(s.tenantKey)}/w/${encodeURIComponent(s.workspaceKey)}/p/${encodeURIComponent(s.projectKey)}`;
|
|
3
|
+
/** Operator/connector client only; Native ingress credentials never enter model context. */
|
|
4
|
+
export class BotNativeEventClient {
|
|
5
|
+
http;
|
|
6
|
+
timeoutMs;
|
|
7
|
+
constructor(http, timeoutMs = 15000) {
|
|
8
|
+
this.http = http;
|
|
9
|
+
this.timeoutMs = timeoutMs;
|
|
10
|
+
}
|
|
11
|
+
registerWorkSource(scope, actor, controlToken, input) {
|
|
12
|
+
return this.http.post(`/internal/control/bots/${root(scope)}/work-event-sources`, input, this.timeoutMs, { 'x-agentsim-service-token': controlToken, ...bridgePrincipalHeaders(actor) });
|
|
13
|
+
}
|
|
14
|
+
workSource(scope, actor, controlToken, sourceId) {
|
|
15
|
+
return this.http.get(`/internal/control/bots/${root(scope)}/work-event-sources/${encodeURIComponent(sourceId)}`, { 'x-agentsim-service-token': controlToken, ...bridgePrincipalHeaders(actor) });
|
|
16
|
+
}
|
|
17
|
+
configureExchange(scope, actor, controlToken, input) {
|
|
18
|
+
return this.http.post(`/internal/control/bots/${root(scope)}/event-exchanges`, input, this.timeoutMs, { 'x-agentsim-service-token': controlToken, ...bridgePrincipalHeaders(actor) });
|
|
19
|
+
}
|
|
20
|
+
exchanges(scope, actor, controlToken, after = '', limit = 20) {
|
|
21
|
+
const query = new URLSearchParams({ after, limit: String(limit) });
|
|
22
|
+
return this.http.get(`/internal/control/bots/${root(scope)}/event-exchanges?${query}`, {
|
|
23
|
+
'x-agentsim-service-token': controlToken,
|
|
24
|
+
...bridgePrincipalHeaders(actor),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
exchangeReceipt(scope, actor, controlToken, requestId) {
|
|
28
|
+
return this.http.get(`/internal/control/bots/${root(scope)}/event-exchanges/receipt?${new URLSearchParams({ requestId })}`, { 'x-agentsim-service-token': controlToken, ...bridgePrincipalHeaders(actor) });
|
|
29
|
+
}
|
|
30
|
+
bindExchangeSource(scope, actor, controlToken, input) {
|
|
31
|
+
return this.http.post(`/internal/control/bots/${root(scope)}/event-exchanges/source`, input, this.timeoutMs, { 'x-agentsim-service-token': controlToken, ...bridgePrincipalHeaders(actor) });
|
|
32
|
+
}
|
|
33
|
+
inbox(scope, actor, controlToken, after = '', limit = 20) {
|
|
34
|
+
const query = new URLSearchParams({ after, limit: String(limit) });
|
|
35
|
+
return this.http.get(`/internal/control/bots/${root(scope)}/event-exchanges/inbox?${query}`, {
|
|
36
|
+
'x-agentsim-service-token': controlToken,
|
|
37
|
+
...bridgePrincipalHeaders(actor),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
register(scope, actor, controlToken, request) {
|
|
41
|
+
return this.http.post(`/internal/control/bots/${root(scope)}/event-sources`, request, this.timeoutMs, { 'x-agentsim-service-token': controlToken, ...bridgePrincipalHeaders(actor) });
|
|
42
|
+
}
|
|
43
|
+
disable(scope, actor, controlToken, sourceId) {
|
|
44
|
+
return this.http.post(`/internal/control/bots/${root(scope)}/event-sources/${encodeURIComponent(sourceId)}/disable`, {}, this.timeoutMs, { 'x-agentsim-service-token': controlToken, ...bridgePrincipalHeaders(actor) });
|
|
45
|
+
}
|
|
46
|
+
cursor(scope, sourceId, sourceToken) {
|
|
47
|
+
return this.http.get(`/internal/native/bot-events/${root(scope)}/sources/${encodeURIComponent(sourceId)}/cursor`, { 'x-agent-stack-event-token': sourceToken });
|
|
48
|
+
}
|
|
49
|
+
publish(scope, sourceId, sourceToken, page) {
|
|
50
|
+
return this.http.post(`/internal/native/bot-events/${root(scope)}/sources/${encodeURIComponent(sourceId)}/pages`, page, this.timeoutMs, { 'x-agent-stack-event-token': sourceToken });
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BOT_PRESERVED_OWNER_LIMIT, botOwnerState } from '@agent-stack/contracts';
|
|
2
|
+
/** 只沿正式Owner身份继续回读,不恢复Native、不创建工作或绕过Host归属。 */
|
|
3
|
+
export async function resolveOwnerRoute(id, hostId, read) {
|
|
4
|
+
const seen = new Set();
|
|
5
|
+
let current = id;
|
|
6
|
+
for (let i = 0; i <= BOT_PRESERVED_OWNER_LIMIT; i++) {
|
|
7
|
+
if (seen.has(current))
|
|
8
|
+
throw new Error('BOT_OWNER_ROUTE_CYCLE');
|
|
9
|
+
seen.add(current);
|
|
10
|
+
const raw = await read(current);
|
|
11
|
+
if (!raw)
|
|
12
|
+
return current;
|
|
13
|
+
const state = botOwnerState(raw);
|
|
14
|
+
if ((state.commit.sourceExecutionId !== current &&
|
|
15
|
+
!state.commit.preservedGoal.ancestors.some((a) => a.executionId === current)) ||
|
|
16
|
+
state.commit.hostId !== hostId)
|
|
17
|
+
throw new Error('BOT_OWNER_ROUTE_MISMATCH');
|
|
18
|
+
current = state.commit.executionId;
|
|
19
|
+
}
|
|
20
|
+
throw new Error('BOT_OWNER_ROUTE_CAPACITY');
|
|
21
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { bridgePrincipalHeaders } from '../core.js';
|
|
2
|
+
export class BotReportClient {
|
|
3
|
+
http;
|
|
4
|
+
controlToken;
|
|
5
|
+
constructor(http, controlToken) {
|
|
6
|
+
this.http = http;
|
|
7
|
+
this.controlToken = controlToken;
|
|
8
|
+
}
|
|
9
|
+
root(p, s = 'bot-host') {
|
|
10
|
+
return `/internal/${s}/t/${encodeURIComponent(p.tenantKey)}/w/${encodeURIComponent(p.workspaceKey)}/p/${encodeURIComponent(p.projectKey)}`;
|
|
11
|
+
}
|
|
12
|
+
human(a) {
|
|
13
|
+
if (!this.controlToken)
|
|
14
|
+
throw new Error('BOT_CONTROL_TOKEN_REQUIRED');
|
|
15
|
+
return { 'x-agentsim-service-token': this.controlToken, ...bridgePrincipalHeaders(a) };
|
|
16
|
+
}
|
|
17
|
+
authority(p, id, secret) {
|
|
18
|
+
return this.http.get(`${this.root(p)}/executions/${encodeURIComponent(id)}/readback`, { 'x-agentxgo-api-credential': secret });
|
|
19
|
+
}
|
|
20
|
+
submit(p, id, secret, events) {
|
|
21
|
+
return this.http.post(`${this.root(p)}/executions/${encodeURIComponent(id)}/reports`, { events }, 15000, { 'x-agentxgo-api-credential': secret });
|
|
22
|
+
}
|
|
23
|
+
dispatch(p, id, secret) {
|
|
24
|
+
return this.http.post(`${this.root(p)}/executions/${encodeURIComponent(id)}/report-dispatch`, {}, 15000, { 'x-agentxgo-api-credential': secret });
|
|
25
|
+
}
|
|
26
|
+
list(p, id, a, after) {
|
|
27
|
+
return this.http.get(`${this.root(p, 'control/bots')}/missions/${encodeURIComponent(id)}/reports${after ? '?after=' + encodeURIComponent(after) : ''}`, this.human(a));
|
|
28
|
+
}
|
|
29
|
+
inbox(p, id, a, after) {
|
|
30
|
+
return this.http.get(`${this.root(p, 'control/bots')}/missions/${encodeURIComponent(id)}/inbox${after ? '?after=' + encodeURIComponent(after) : ''}`, this.human(a));
|
|
31
|
+
}
|
|
32
|
+
channel(p, id, a, enabled) {
|
|
33
|
+
return this.http.post(`${this.root(p, 'control/bots')}/missions/${encodeURIComponent(id)}/report-channel`, { enabled }, 15000, this.human(a));
|
|
34
|
+
}
|
|
35
|
+
read(p, id, a, message) {
|
|
36
|
+
return this.http.post(`${this.root(p, 'control/bots')}/missions/${encodeURIComponent(id)}/inbox/${encodeURIComponent(message)}/read`, {}, 15000, this.human(a));
|
|
37
|
+
}
|
|
38
|
+
receipt(p, id, a, delivery) {
|
|
39
|
+
return this.http.get(`${this.root(p, 'control/bots')}/missions/${encodeURIComponent(id)}/deliveries/${encodeURIComponent(delivery)}`, this.human(a));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { botRecentReports, botRecentReportsRequest, botReportStatus, botReportStatusRequest, botAdoptedHistoryPage, botAdoptedHistoryRead, canonicalBotJson, botDeliveryReadPage, botDeliveryReadRequest, } from '@agent-stack/contracts';
|
|
2
|
+
import { botRuntimeHeaders } from './auth.js';
|
|
3
|
+
/** Native 身份与普通 Host 分离;内部服务和资源绑定插件共用同一回调合同。 */
|
|
4
|
+
export class BotRuntimeBridgeClient {
|
|
5
|
+
http;
|
|
6
|
+
runtimeToken;
|
|
7
|
+
/** 原id只读回证与普通确认分离;不创建意图、重算原生checkpoint或再次confirm。 */
|
|
8
|
+
readRecoveryReceipt(scope, id, secret, recoveryId) {
|
|
9
|
+
return this.call(scope, id, secret, 'recovery-receipt', { recoveryId });
|
|
10
|
+
}
|
|
11
|
+
publicationMaterial(scope, id, secret, requestId) {
|
|
12
|
+
return this.quarantine(scope, id, secret, {
|
|
13
|
+
operation: 'owner-material',
|
|
14
|
+
requestId,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
recoverySourceContext(scope, id, secret, requestId, options = {}) {
|
|
18
|
+
return this.quarantine(scope, id, secret, {
|
|
19
|
+
operation: 'source-context',
|
|
20
|
+
requestId,
|
|
21
|
+
...(options.pendingOnly === undefined ? {} : { pendingOnly: options.pendingOnly }),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
quarantineMaterial(scope, id, secret, requestId) {
|
|
25
|
+
return this.quarantine(scope, id, secret, {
|
|
26
|
+
operation: 'material',
|
|
27
|
+
requestId,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
quarantineSnapshot(scope, id, secret) {
|
|
31
|
+
return this.quarantine(scope, id, secret, {
|
|
32
|
+
operation: 'snapshot',
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
quarantine(scope, id, secret, call) {
|
|
36
|
+
return this.call(scope, id, secret, 'recovery-quarantine', call);
|
|
37
|
+
}
|
|
38
|
+
constructor(http, runtimeToken) {
|
|
39
|
+
this.http = http;
|
|
40
|
+
this.runtimeToken = runtimeToken;
|
|
41
|
+
}
|
|
42
|
+
call(scope, executionId, secret, operation, body, timeoutMs = 15000) {
|
|
43
|
+
// 只为无副作用的材料读取选择专用运输;正式命令使用原请求身份重试。
|
|
44
|
+
const post = (operation === 'material' || operation === 'delivery-read') && this.http.postRead
|
|
45
|
+
? this.http.postRead.bind(this.http)
|
|
46
|
+
: this.http.post.bind(this.http);
|
|
47
|
+
return post(`/internal/runtime/bots/t/${encodeURIComponent(scope.tenantKey)}/w/${encodeURIComponent(scope.workspaceKey)}/p/${encodeURIComponent(scope.projectKey)}/executions/${encodeURIComponent(executionId)}/${operation}`, body, timeoutMs, botRuntimeHeaders(this.runtimeToken, secret));
|
|
48
|
+
}
|
|
49
|
+
/** 仅核显式处理声明,不预占业务资格;查询丢失只沿同一原意图读取。 */
|
|
50
|
+
checkHandledInputs(scope, id, secret, continuation) {
|
|
51
|
+
return this.call(scope, id, secret, 'handled-input-check', continuation);
|
|
52
|
+
}
|
|
53
|
+
/** 原交互与原决定回读不创建新的模型轮。 */
|
|
54
|
+
interaction(scope, id, secret, request) {
|
|
55
|
+
return this.call(scope, id, secret, 'interactions', request);
|
|
56
|
+
}
|
|
57
|
+
/** 冷恢复完整读取原执行交互,逐个核对原 Native 身份。 */
|
|
58
|
+
interactionPage(scope, id, secret, cursor) {
|
|
59
|
+
return this.call(scope, id, secret, 'interactions', {
|
|
60
|
+
operation: 'list',
|
|
61
|
+
...(cursor ? { cursor } : {}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/** Runtime 与目标服务各用原凭据访问同一动作回证入口。 */
|
|
65
|
+
hostExecution(scope, id, secret, request, timeoutMs) {
|
|
66
|
+
return this.call(scope, id, secret, 'host-execution', request, timeoutMs);
|
|
67
|
+
}
|
|
68
|
+
agentim(scope, id, secret, body) {
|
|
69
|
+
return this.call(scope, id, secret, 'agentim', body);
|
|
70
|
+
}
|
|
71
|
+
capabilityContext(scope, id, secret) {
|
|
72
|
+
return this.call(scope, id, secret, 'capabilities', { operation: 'context' });
|
|
73
|
+
}
|
|
74
|
+
capabilityReceipt(scope, id, secret, proof) {
|
|
75
|
+
return this.call(scope, id, secret, 'capabilities', proof).catch(() => this.call(scope, id, secret, 'capabilities', proof));
|
|
76
|
+
}
|
|
77
|
+
sourceAccess(scope, id, secret) {
|
|
78
|
+
return this.call(scope, id, secret, 'source-access', {});
|
|
79
|
+
}
|
|
80
|
+
/** 固定只读目录用途;修订仅兼容旧调用方,不强迫Runtime同步执行版本。 */
|
|
81
|
+
catalogMaterial(scope, id, secret, request = {}) {
|
|
82
|
+
return this.call(scope, id, secret, 'material', {
|
|
83
|
+
...request,
|
|
84
|
+
purpose: 'CATALOG',
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
delegation(scope, id, secret, body) {
|
|
88
|
+
return this.call(scope, id, secret, 'delegation', body);
|
|
89
|
+
}
|
|
90
|
+
recovery(scope, id, secret, proof) {
|
|
91
|
+
return this.call(scope, id, secret, 'recovery-confirm', proof).catch(() => this.call(scope, id, secret, 'recovery-confirm', proof));
|
|
92
|
+
}
|
|
93
|
+
commandEvidence(scope, id, secret, operation, command) {
|
|
94
|
+
return this.call(scope, id, secret, 'command-evidence', { operation, command });
|
|
95
|
+
}
|
|
96
|
+
readCommandEvidence(scope, id, secret, commands) {
|
|
97
|
+
return this.call(scope, id, secret, 'command-evidence', { operation: 'read', commands });
|
|
98
|
+
}
|
|
99
|
+
commandJournal(scope, id, secret) {
|
|
100
|
+
return {
|
|
101
|
+
write: (phase, command) => this.commandEvidence(scope, id, secret, phase, command),
|
|
102
|
+
// DSH 明确终止在原生调用前时,原请求只有一份独立终态。
|
|
103
|
+
closeUnstarted: (command) => this.call(scope, id, secret, 'command-evidence', {
|
|
104
|
+
operation: 'not-started',
|
|
105
|
+
command,
|
|
106
|
+
}),
|
|
107
|
+
read: (commands) => this.readCommandEvidence(scope, id, secret, commands),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/** 原 Owner 在自然轮边界读取模型选择,并回传原生用量。 */
|
|
111
|
+
modelRouting(scope, id, secret, request) {
|
|
112
|
+
return this.call(scope, id, secret, 'model-routing', request);
|
|
113
|
+
}
|
|
114
|
+
material(scope, id, secret, request) {
|
|
115
|
+
return this.call(scope, id, secret, 'material', request);
|
|
116
|
+
}
|
|
117
|
+
/** 当前 Native 使用已有私有回调身份查询自己的正式报告回执。 */
|
|
118
|
+
async reportStatus(scope, id, secret, raw) {
|
|
119
|
+
const request = botReportStatusRequest(raw);
|
|
120
|
+
return botReportStatus(await this.call(scope, id, secret, 'report-status', request));
|
|
121
|
+
}
|
|
122
|
+
/** 最近报告使用同一个公开 Host 路由和当前执行凭据。 */
|
|
123
|
+
async recentReports(scope, id, secret, raw) {
|
|
124
|
+
const request = botRecentReportsRequest(raw);
|
|
125
|
+
const value = botRecentReports(await this.call(scope, id, secret, 'report-status', request));
|
|
126
|
+
if (value.executionId !== id ||
|
|
127
|
+
value.missionRevision !== request.missionRevision ||
|
|
128
|
+
value.ownerEpoch !== request.ownerEpoch ||
|
|
129
|
+
value.nativeSessionRef !== request.nativeSessionRef ||
|
|
130
|
+
value.reports.length > request.limit)
|
|
131
|
+
throw new Error('BOT_REPORT_STATUS_RESPONSE_MISMATCH');
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
134
|
+
/** 精确历史读取沿只读运输;回包必须对应同一执行、Owner、会话和原交付摘要。 */
|
|
135
|
+
async readDelivery(scope, id, secret, raw) {
|
|
136
|
+
const request = botDeliveryReadRequest(raw);
|
|
137
|
+
const page = botDeliveryReadPage(await this.call(scope, id, secret, 'delivery-read', request));
|
|
138
|
+
if (page.executionId !== id ||
|
|
139
|
+
page.missionRevision !== request.missionRevision ||
|
|
140
|
+
page.ownerEpoch !== request.ownerEpoch ||
|
|
141
|
+
page.nativeSessionRef !== request.nativeSessionRef ||
|
|
142
|
+
page.deliveryId !== request.deliveryId ||
|
|
143
|
+
page.digest !== request.expectedDigest ||
|
|
144
|
+
page.offset !== request.offset ||
|
|
145
|
+
new TextEncoder().encode(page.text).byteLength > request.limit)
|
|
146
|
+
throw new Error('BOT_DELIVERY_READ_RESPONSE_MISMATCH');
|
|
147
|
+
return page;
|
|
148
|
+
}
|
|
149
|
+
/** 历史目录复用只读运输,核对请求所绑定的原呈现和当前授权集合引用。 */
|
|
150
|
+
async readAdoptedHistory(scope, id, secret, raw) {
|
|
151
|
+
const request = botAdoptedHistoryRead(raw);
|
|
152
|
+
const page = botAdoptedHistoryPage(await this.call(scope, id, secret, 'delivery-read', request));
|
|
153
|
+
if (page.executionId !== id ||
|
|
154
|
+
page.missionRevision !== request.missionRevision ||
|
|
155
|
+
page.ownerEpoch !== request.ownerEpoch ||
|
|
156
|
+
page.nativeSessionRef !== request.nativeSessionRef ||
|
|
157
|
+
// 首次读取取得实际摘要;后续页仍要求与提交的摘要完全一致。
|
|
158
|
+
(request.reference !== 'current' && page.reference !== request.reference) ||
|
|
159
|
+
page.view !== request.view ||
|
|
160
|
+
page.offset !== request.offset ||
|
|
161
|
+
page.entries.length > request.limit ||
|
|
162
|
+
canonicalBotJson(page.frame) !== canonicalBotJson(request.frame))
|
|
163
|
+
throw new Error('BOT_ADOPTED_HISTORY_RESPONSE_MISMATCH');
|
|
164
|
+
return page;
|
|
165
|
+
}
|
|
166
|
+
adopt(scope, id, secret, request) {
|
|
167
|
+
return this.call(scope, id, secret, 'adopt', request);
|
|
168
|
+
}
|
|
169
|
+
observe(scope, id, secret, request) {
|
|
170
|
+
return this.call(scope, id, secret, 'observe', request);
|
|
171
|
+
}
|
|
172
|
+
events(scope, id, secret, request) {
|
|
173
|
+
return this.call(scope, id, secret, 'events', request);
|
|
174
|
+
}
|
|
175
|
+
correct(scope, id, secret, request) {
|
|
176
|
+
return this.call(scope, id, secret, 'correct', request);
|
|
177
|
+
}
|
|
178
|
+
correctionStop(scope, id, secret, request) {
|
|
179
|
+
return this.call(scope, id, secret, 'correction-stop', request).catch(() => this.call(scope, id, secret, 'correction-stop', request));
|
|
180
|
+
}
|
|
181
|
+
correctionPresented(scope, id, secret, request) {
|
|
182
|
+
return this.call(scope, id, secret, 'correction-presented', request).catch(() => this.call(scope, id, secret, 'correction-presented', request));
|
|
183
|
+
}
|
|
184
|
+
proof(scope, id, secret, request) {
|
|
185
|
+
return this.call(scope, id, secret, 'proof', request).catch(() => this.call(scope, id, secret, 'proof', request));
|
|
186
|
+
}
|
|
187
|
+
wakeAccepted(scope, id, secret, request) {
|
|
188
|
+
return this.call(scope, id, secret, 'wake-accepted', request).catch(() => this.call(scope, id, secret, 'wake-accepted', request));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BotBridgeClient } from './bots/client.js';
|
|
2
|
+
import { TenantManagementBridgeClient } from './tenant/management.js';
|
|
3
|
+
/** 管理传输只增加 Tenant 叶子,既有执行、公开与平台方法保持同一公开入口。 */
|
|
4
|
+
export class BridgeClient extends TenantManagementBridgeClient {
|
|
5
|
+
tenantBinding;
|
|
6
|
+
tenantRequestId;
|
|
7
|
+
tenantExpectedRevision;
|
|
8
|
+
bots = new BotBridgeClient(this.http, this.commandTimeoutMs, this.serviceToken);
|
|
9
|
+
constructor(http, timeoutMs, serviceToken, tenantBinding, tenantRequestId, tenantExpectedRevision) {
|
|
10
|
+
super(http, timeoutMs, serviceToken);
|
|
11
|
+
this.tenantBinding = tenantBinding;
|
|
12
|
+
this.tenantRequestId = tenantRequestId;
|
|
13
|
+
this.tenantExpectedRevision = tenantExpectedRevision;
|
|
14
|
+
}
|
|
15
|
+
/** 每个请求创建独立客户端,不能在共享实例上修改另一用户的管理绑定。 */
|
|
16
|
+
withTenantBinding(binding, requestId, expectedRevision) {
|
|
17
|
+
return new BridgeClient(this.http, this.commandTimeoutMs, this.serviceToken, binding, requestId, expectedRevision);
|
|
18
|
+
}
|
|
19
|
+
serviceHeaders(principal) {
|
|
20
|
+
return {
|
|
21
|
+
...super.serviceHeaders(principal),
|
|
22
|
+
...(this.tenantBinding
|
|
23
|
+
? {
|
|
24
|
+
// 使用 Web 标准编码,保持共享包对浏览器和 Node 的兼容。
|
|
25
|
+
'x-agentxgo-tenant-binding': btoa(Array.from(new TextEncoder().encode(JSON.stringify(this.tenantBinding)), (byte) => String.fromCharCode(byte)).join(''))
|
|
26
|
+
.replace(/\+/g, '-')
|
|
27
|
+
.replace(/\//g, '_')
|
|
28
|
+
.replace(/=+$/, ''),
|
|
29
|
+
}
|
|
30
|
+
: {}),
|
|
31
|
+
...(this.tenantRequestId ? { 'x-agentxgo-request-id': this.tenantRequestId } : {}),
|
|
32
|
+
...(this.tenantExpectedRevision === undefined
|
|
33
|
+
? {}
|
|
34
|
+
: { 'x-agentxgo-expected-revision': String(this.tenantExpectedRevision) }),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { runWorkResponseError } from './run-work-errors.js';
|
|
2
|
+
import { observeRunWorkAcknowledgement } from './run-work-acknowledgement.js';
|
|
3
|
+
import { parseInteractiveBatchAcknowledgementRequest } from '@agent-stack/contracts';
|
|
4
|
+
export const BRIDGE_SERVICE_TOKEN_HEADER = 'x-agentsim-service-token';
|
|
5
|
+
export function bridgePrincipalHeaders(principal) {
|
|
6
|
+
return {
|
|
7
|
+
'x-agentsim-principal-issuer': principal.issuer,
|
|
8
|
+
'x-agentsim-principal-subject': principal.subject,
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export class BridgeClientCore {
|
|
12
|
+
http;
|
|
13
|
+
commandTimeoutMs;
|
|
14
|
+
serviceToken;
|
|
15
|
+
constructor(http, commandTimeoutMs, serviceToken) {
|
|
16
|
+
this.http = http;
|
|
17
|
+
this.commandTimeoutMs = commandTimeoutMs;
|
|
18
|
+
this.serviceToken = serviceToken;
|
|
19
|
+
}
|
|
20
|
+
serviceHeaders(principal) {
|
|
21
|
+
return {
|
|
22
|
+
[BRIDGE_SERVICE_TOKEN_HEADER]: this.serviceToken,
|
|
23
|
+
...(principal ? bridgePrincipalHeaders(principal) : {}),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
apiCredentialRequest(input) {
|
|
27
|
+
if (!/^[a-z0-9][a-z0-9_-]{0,63}$/.test(input.tenantKey))
|
|
28
|
+
throw new Error('invalid tenant key');
|
|
29
|
+
if (!/^\/(service-principals|api-credentials)(?:\/|$)/.test(input.path))
|
|
30
|
+
throw new Error('invalid API credential management path');
|
|
31
|
+
const target = `/internal/control/api/v1/t/${encodeURIComponent(input.tenantKey)}${input.path}`;
|
|
32
|
+
const headers = this.serviceHeaders(input.principal);
|
|
33
|
+
return input.method === 'GET'
|
|
34
|
+
? this.http.get(target, headers)
|
|
35
|
+
: this.http.post(target, input.body, this.commandTimeoutMs, headers);
|
|
36
|
+
}
|
|
37
|
+
authorizeApiRequest(input) {
|
|
38
|
+
if (!/^agxk_[A-Za-z0-9_-]{43}$/.test(input.credential))
|
|
39
|
+
throw new Error('invalid API credential');
|
|
40
|
+
if (!/^[a-z0-9][a-z0-9_-]{0,63}$/.test(input.tenantKey))
|
|
41
|
+
throw new Error('invalid tenant key');
|
|
42
|
+
return this.http.post('/internal/control/api-credentials/authorize', {
|
|
43
|
+
tenantKey: input.tenantKey,
|
|
44
|
+
action: input.action,
|
|
45
|
+
resource: input.resource,
|
|
46
|
+
}, this.commandTimeoutMs, {
|
|
47
|
+
...this.serviceHeaders(),
|
|
48
|
+
'x-agentxgo-api-credential': input.credential,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
taskRequest(path, method, body, auth) {
|
|
52
|
+
if (!/^\/tasks\/t\/[a-z0-9_-]+\/w\/[a-z0-9_-]+\/p\/[a-z0-9_-]+\//.test(path))
|
|
53
|
+
throw new Error('invalid task path');
|
|
54
|
+
const headers = {
|
|
55
|
+
...this.serviceHeaders('principal' in auth ? auth.principal : undefined),
|
|
56
|
+
...('credential' in auth ? { 'x-agentxgo-api-credential': auth.credential } : {}),
|
|
57
|
+
};
|
|
58
|
+
const target = `/internal/control${path}`;
|
|
59
|
+
return method === 'GET'
|
|
60
|
+
? this.http.get(target, headers)
|
|
61
|
+
: this.http.post(target, body, this.commandTimeoutMs, headers);
|
|
62
|
+
}
|
|
63
|
+
/** Explicit Run attention; the Task Owner still checks current read authority. */
|
|
64
|
+
async taskWorkEvents(scope, runKey, input, auth) {
|
|
65
|
+
const tenant = encodeURIComponent(scope.tenantKey), workspace = encodeURIComponent(scope.workspaceKey), project = encodeURIComponent(scope.projectKey);
|
|
66
|
+
const result = await this.taskRequest(`/tasks/t/${tenant}/w/${workspace}/p/${project}/runs/${encodeURIComponent(runKey)}/work-events`, 'POST', input, auth);
|
|
67
|
+
if (result.status !== 200 || result.body?.observerRunKey !== runKey)
|
|
68
|
+
throw new Error('TASK_WORK_EVENT_REPLY_MISMATCH');
|
|
69
|
+
return result.body;
|
|
70
|
+
}
|
|
71
|
+
async interactiveRunWork(token, request, signal) {
|
|
72
|
+
if (request?.operation === 'acknowledge_batch')
|
|
73
|
+
request = Object.freeze(parseInteractiveBatchAcknowledgementRequest(request));
|
|
74
|
+
if (signal && !this.http.stream)
|
|
75
|
+
throw new Error('RUN_WORK_CANCELLATION_UNSUPPORTED');
|
|
76
|
+
const path = '/internal/enterprise-mcp/run-work', body = { token, ...(request === undefined ? {} : { request }) };
|
|
77
|
+
const send = async () => {
|
|
78
|
+
if (signal) {
|
|
79
|
+
if (!this.http.stream)
|
|
80
|
+
throw new Error('RUN_WORK_CANCELLATION_UNSUPPORTED');
|
|
81
|
+
const bounded = AbortSignal.any([
|
|
82
|
+
signal,
|
|
83
|
+
AbortSignal.timeout(request?.operation === 'wait' ? request.maxWaitMs + 3000 : this.commandTimeoutMs),
|
|
84
|
+
]);
|
|
85
|
+
const response = await this.http.stream(path, body, bounded, this.serviceHeaders());
|
|
86
|
+
if (!response.ok) {
|
|
87
|
+
throw await runWorkResponseError(response);
|
|
88
|
+
}
|
|
89
|
+
return (await response.json());
|
|
90
|
+
}
|
|
91
|
+
return this.http.post(path, body, this.commandTimeoutMs, this.serviceHeaders());
|
|
92
|
+
};
|
|
93
|
+
return request?.operation === 'acknowledge_batch'
|
|
94
|
+
? observeRunWorkAcknowledgement(request, send)
|
|
95
|
+
: send();
|
|
96
|
+
}
|
|
97
|
+
taskWorkRuntime(token, request) {
|
|
98
|
+
return this.http.post('/internal/enterprise-mcp/task-work', { token, ...(request === undefined ? {} : { request }) }, this.commandTimeoutMs, this.serviceHeaders());
|
|
99
|
+
}
|
|
100
|
+
externalDesktop(input) {
|
|
101
|
+
return this.http.post('/internal/enterprise-mcp/desktop', input, this.commandTimeoutMs, this.serviceHeaders());
|
|
102
|
+
}
|
|
103
|
+
externalBotProject(token, request) {
|
|
104
|
+
return this.http.post('/internal/enterprise-mcp/bots/project', { token, ...(request ? { request } : {}) }, this.commandTimeoutMs, this.serviceHeaders());
|
|
105
|
+
}
|
|
106
|
+
externalBotLifecycle(input) {
|
|
107
|
+
return this.http.post('/internal/enterprise-mcp/bots/lifecycle', input, this.commandTimeoutMs, this.serviceHeaders());
|
|
108
|
+
}
|
|
109
|
+
externalBotProjectOAuth(input) {
|
|
110
|
+
return this.http.post('/internal/enterprise-mcp/bots/project-oauth', input, this.commandTimeoutMs, this.serviceHeaders());
|
|
111
|
+
}
|
|
112
|
+
externalBotEntry(input) {
|
|
113
|
+
return this.http.post('/internal/enterprise-mcp/bots', input, this.commandTimeoutMs, this.serviceHeaders());
|
|
114
|
+
}
|
|
115
|
+
externalDesktopStream(input, signal) {
|
|
116
|
+
if (!this.http.stream)
|
|
117
|
+
throw new Error('stream transport unavailable');
|
|
118
|
+
return this.http.stream('/internal/enterprise-mcp/desktop-live', input, signal, this.serviceHeaders());
|
|
119
|
+
}
|
|
120
|
+
externalTask(input) {
|
|
121
|
+
return this.http.post('/internal/enterprise-mcp/tasks', input, this.commandTimeoutMs, this.serviceHeaders());
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { IntegrationsBridgeClient } from './integrations.js';
|
|
2
|
+
export class DeploymentsBridgeClient extends IntegrationsBridgeClient {
|
|
3
|
+
listProjectDeployments(tenantId, workspaceId, projectId, principal) {
|
|
4
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments`, this.serviceHeaders(principal));
|
|
5
|
+
}
|
|
6
|
+
createHostedProjectDeployment(tenantId, workspaceId, projectId, input, principal) {
|
|
7
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/hosted-deployments`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
8
|
+
}
|
|
9
|
+
listHostedDeploymentModelOptions(tenantId, principal) {
|
|
10
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/hosted-model-options`, this.serviceHeaders(principal));
|
|
11
|
+
}
|
|
12
|
+
updateHostedProjectDeploymentModel(tenantId, workspaceId, projectId, deploymentId, modelProfileKey, principal) {
|
|
13
|
+
return this.http.patch(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/hosted-deployments/${encodeURIComponent(deploymentId)}`, { modelProfileKey }, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
14
|
+
}
|
|
15
|
+
listProjectDeliveryRequests(tenantId, workspaceId, projectId, principal) {
|
|
16
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/delivery-requests`, this.serviceHeaders(principal));
|
|
17
|
+
}
|
|
18
|
+
getProjectDeliveryRequest(tenantId, workspaceId, projectId, requestKey, principal) {
|
|
19
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/delivery-requests/${encodeURIComponent(requestKey)}`, this.serviceHeaders(principal));
|
|
20
|
+
}
|
|
21
|
+
createProjectDeliveryRequest(tenantId, workspaceId, projectId, input, principal) {
|
|
22
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/delivery-requests`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
23
|
+
}
|
|
24
|
+
createProjectDeployment(tenantId, workspaceId, projectId, input, principal) {
|
|
25
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
26
|
+
}
|
|
27
|
+
replaceProjectDeploymentExecutionBindings(tenantId, workspaceId, projectId, deploymentId, input, principal) {
|
|
28
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/execution-bindings`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
29
|
+
}
|
|
30
|
+
listProjectDeploymentExecutionConnections(tenantId, workspaceId, projectId, deploymentId, principal) {
|
|
31
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/execution-connections`, this.serviceHeaders(principal));
|
|
32
|
+
}
|
|
33
|
+
replaceProjectDeploymentExecutionConnections(tenantId, workspaceId, projectId, deploymentId, input, principal) {
|
|
34
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/execution-connections`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
35
|
+
}
|
|
36
|
+
manageProjectDeploymentTenantServiceOauth(tenantId, workspaceId, projectId, deploymentId, integrationId, action, principal) {
|
|
37
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/integrations/${encodeURIComponent(integrationId)}/tenant-service-oauth/${action}`, {}, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
38
|
+
}
|
|
39
|
+
getProjectDeployment(tenantId, workspaceId, projectId, deploymentId, principal) {
|
|
40
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}`, this.serviceHeaders(principal));
|
|
41
|
+
}
|
|
42
|
+
updateProjectDeployment(tenantId, workspaceId, projectId, deploymentId, input, principal) {
|
|
43
|
+
return this.http.patch(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
44
|
+
}
|
|
45
|
+
listDeploymentWidgets(tenantId, workspaceId, projectId, deploymentId, principal) {
|
|
46
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/widgets`, this.serviceHeaders(principal));
|
|
47
|
+
}
|
|
48
|
+
createDeploymentWidget(tenantId, workspaceId, projectId, deploymentId, input, principal) {
|
|
49
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/widgets`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
50
|
+
}
|
|
51
|
+
getDeploymentWidget(tenantId, workspaceId, projectId, deploymentId, widgetPublicationId, principal) {
|
|
52
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/widgets/${encodeURIComponent(widgetPublicationId)}`, this.serviceHeaders(principal));
|
|
53
|
+
}
|
|
54
|
+
updateDeploymentWidget(tenantId, workspaceId, projectId, deploymentId, widgetPublicationId, input, principal) {
|
|
55
|
+
return this.http.patch(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/widgets/${encodeURIComponent(widgetPublicationId)}`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AgentsBridgeClient } from './agents.js';
|
|
2
|
+
export class IntegrationsBridgeClient extends AgentsBridgeClient {
|
|
3
|
+
listProjectIntegrations(tenantId, workspaceId, projectId, principal) {
|
|
4
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations`, this.serviceHeaders(principal));
|
|
5
|
+
}
|
|
6
|
+
createProjectIntegration(tenantId, workspaceId, projectId, input, principal) {
|
|
7
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
8
|
+
}
|
|
9
|
+
getProjectIntegration(tenantId, workspaceId, projectId, integrationId, principal) {
|
|
10
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}`, this.serviceHeaders(principal));
|
|
11
|
+
}
|
|
12
|
+
updateProjectIntegration(tenantId, workspaceId, projectId, integrationId, input, principal) {
|
|
13
|
+
return this.http.patch(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
14
|
+
}
|
|
15
|
+
listProjectIntegrationRevisions(tenantId, workspaceId, projectId, integrationId, principal) {
|
|
16
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/revisions`, this.serviceHeaders(principal));
|
|
17
|
+
}
|
|
18
|
+
listProjectIntegrationConnectionContexts(tenantId, workspaceId, projectId, integrationId, integrationRevisionId, principal) {
|
|
19
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/revisions/${encodeURIComponent(integrationRevisionId)}/connection-contexts`, this.serviceHeaders(principal));
|
|
20
|
+
}
|
|
21
|
+
manageProjectIntegrationConnectionContextTenantServiceOauth(tenantId, workspaceId, projectId, integrationId, integrationRevisionId, targetRef, action, principal) {
|
|
22
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/revisions/${encodeURIComponent(integrationRevisionId)}/connection-contexts/${encodeURIComponent(targetRef)}/tenant-service-oauth/${action}`, {}, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
23
|
+
}
|
|
24
|
+
projectIntegrationOauthClientRegistrationStatus(tenantId, workspaceId, projectId, integrationId, integrationRevisionId, runtimeProfileId, principal) {
|
|
25
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/revisions/${encodeURIComponent(integrationRevisionId)}/runtime-profiles/${encodeURIComponent(runtimeProfileId)}/tenant-service-oauth/client-registration/status`, {}, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
26
|
+
}
|
|
27
|
+
configureProjectIntegrationOauthClientRegistration(tenantId, workspaceId, projectId, integrationId, integrationRevisionId, runtimeProfileId, input, principal) {
|
|
28
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/revisions/${encodeURIComponent(integrationRevisionId)}/runtime-profiles/${encodeURIComponent(runtimeProfileId)}/tenant-service-oauth/client-registration/configure`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
29
|
+
}
|
|
30
|
+
rotateProjectIntegrationOauthClientSecret(tenantId, workspaceId, projectId, integrationId, integrationRevisionId, runtimeProfileId, input, principal) {
|
|
31
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/revisions/${encodeURIComponent(integrationRevisionId)}/runtime-profiles/${encodeURIComponent(runtimeProfileId)}/tenant-service-oauth/client-registration/rotate`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
32
|
+
}
|
|
33
|
+
clearProjectIntegrationOauthClientRegistration(tenantId, workspaceId, projectId, integrationId, integrationRevisionId, runtimeProfileId, expectedRevision, principal) {
|
|
34
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/revisions/${encodeURIComponent(integrationRevisionId)}/runtime-profiles/${encodeURIComponent(runtimeProfileId)}/tenant-service-oauth/client-registration/clear`, { expectedRevision }, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
35
|
+
}
|
|
36
|
+
getProjectIntegrationUninstallBlockers(tenantId, workspaceId, projectId, integrationId, principal) {
|
|
37
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/uninstall-blockers`, this.serviceHeaders(principal));
|
|
38
|
+
}
|
|
39
|
+
uninstallProjectIntegration(tenantId, workspaceId, projectId, integrationId, principal) {
|
|
40
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/uninstall`, {}, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
41
|
+
}
|
|
42
|
+
reinstallProjectIntegration(tenantId, workspaceId, projectId, integrationId, input, principal) {
|
|
43
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/projects/${encodeURIComponent(projectId)}/integrations/${encodeURIComponent(integrationId)}/install`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ManagementBridgeClient } from './management.js';
|
|
2
|
+
export class KnowledgeBridgeClient extends ManagementBridgeClient {
|
|
3
|
+
getKnowledgeOrganization(tenantId, workspaceId, options, principal) {
|
|
4
|
+
const query = new URLSearchParams();
|
|
5
|
+
if (options.projectId)
|
|
6
|
+
query.set('projectId', options.projectId);
|
|
7
|
+
const suffix = query.size ? `?${query.toString()}` : '';
|
|
8
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/knowledge/organization${suffix}`, this.serviceHeaders(principal));
|
|
9
|
+
}
|
|
10
|
+
setKnowledgeFavorite(tenantId, workspaceId, canonicalUri, favorite, principal) {
|
|
11
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/knowledge/organization/favorites`, { canonicalUri, favorite }, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
12
|
+
}
|
|
13
|
+
recordKnowledgeRecentRead(tenantId, workspaceId, canonicalUri, principal) {
|
|
14
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/knowledge/organization/recent`, { canonicalUri }, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
15
|
+
}
|
|
16
|
+
createKnowledgeSavedFilter(tenantId, workspaceId, input, principal) {
|
|
17
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/knowledge/organization/saved-filters`, input, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
18
|
+
}
|
|
19
|
+
deleteKnowledgeSavedFilter(tenantId, workspaceId, savedFilterId, principal) {
|
|
20
|
+
return this.http.post(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}/knowledge/organization/saved-filters/${encodeURIComponent(savedFilterId)}/delete`, {}, this.commandTimeoutMs, this.serviceHeaders(principal));
|
|
21
|
+
}
|
|
22
|
+
listKnowledgeUsage(tenantId, workspaceId, options, principal) {
|
|
23
|
+
const query = new URLSearchParams({ canonicalUri: options.canonicalUri });
|
|
24
|
+
if (options.knowledgeVersionId !== undefined)
|
|
25
|
+
query.set('knowledgeVersionId', options.knowledgeVersionId);
|
|
26
|
+
if (options.cursor !== undefined)
|
|
27
|
+
query.set('cursor', options.cursor);
|
|
28
|
+
if (options.limit !== undefined)
|
|
29
|
+
query.set('limit', String(options.limit));
|
|
30
|
+
const project = options.projectId ? `/projects/${encodeURIComponent(options.projectId)}` : '';
|
|
31
|
+
return this.http.get(`/management/tenants/${encodeURIComponent(tenantId)}/workspaces/${encodeURIComponent(workspaceId)}${project}/knowledge/usage?${query}`, this.serviceHeaders(principal));
|
|
32
|
+
}
|
|
33
|
+
}
|