@songsid/agend 2.3.4-beta.7 → 2.3.5-alpha.3
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 +2 -0
- package/README.zh-TW.md +2 -0
- package/THIRD_PARTY_NOTICES.md +53 -0
- package/dist/agent-endpoint.d.ts +5 -1
- package/dist/agent-endpoint.js +12 -2
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/auth-api.d.ts +21 -0
- package/dist/auth-api.js +89 -2
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/web-authority.d.ts +12 -2
- package/dist/authority/web-authority.js +25 -4
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/claude-code.d.ts +15 -12
- package/dist/backend/claude-code.js +152 -133
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex-package.d.ts +5 -2
- package/dist/backend/codex-package.js +1 -5
- package/dist/backend/codex-package.js.map +1 -1
- package/dist/backend/codex.d.ts +136 -113
- package/dist/backend/codex.js +1281 -1219
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/grok-model-cache.d.ts +7 -0
- package/dist/backend/grok-model-cache.js +65 -0
- package/dist/backend/grok-model-cache.js.map +1 -0
- package/dist/backend/grok.d.ts +2 -0
- package/dist/backend/grok.js +22 -0
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/native-pane.d.ts +9 -0
- package/dist/backend/native-pane.js +59 -0
- package/dist/backend/native-pane.js.map +1 -0
- package/dist/backend/types.d.ts +7 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/channel/ipc-bridge.d.ts +2 -0
- package/dist/channel/mcp-tools.js +1 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +71 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +16 -0
- package/dist/config.js.map +1 -1
- package/dist/daemon.d.ts +67 -5
- package/dist/daemon.js +823 -266
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +15 -3
- package/dist/delivery-consumed-watch.js +23 -1
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +5 -0
- package/dist/delivery-outbox.js +32 -4
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +2 -35
- package/dist/delivery-reconciliation.js +2 -156
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/fleet-context.d.ts +2 -2
- package/dist/fleet-level-config.d.ts +1 -1
- package/dist/fleet-level-config.js +2 -0
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +238 -3
- package/dist/fleet-manager.js +1826 -104
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +92 -0
- package/dist/fleet-windows-runtime.js +380 -0
- package/dist/fleet-windows-runtime.js.map +1 -0
- package/dist/general-binding.d.ts +85 -0
- package/dist/general-binding.js +298 -0
- package/dist/general-binding.js.map +1 -0
- package/dist/general-host-owner.d.ts +8 -0
- package/dist/general-host-owner.js +26 -0
- package/dist/general-host-owner.js.map +1 -0
- package/dist/general-instance.d.ts +7 -0
- package/dist/general-instance.js +20 -3
- package/dist/general-instance.js.map +1 -1
- package/dist/general-role.d.ts +5 -0
- package/dist/general-role.js +26 -0
- package/dist/general-role.js.map +1 -0
- package/dist/instance-config-impact.js +4 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +21 -3
- package/dist/instance-lifecycle.js +378 -162
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +2 -0
- package/dist/instructions.js +6 -0
- package/dist/instructions.js.map +1 -1
- package/dist/local-pane-endpoint.d.ts +46 -0
- package/dist/local-pane-endpoint.js +189 -0
- package/dist/local-pane-endpoint.js.map +1 -0
- package/dist/local-pane-launcher.d.ts +2 -0
- package/dist/local-pane-launcher.js +38 -0
- package/dist/local-pane-launcher.js.map +1 -0
- package/dist/local-pane-stage.ps1 +101 -0
- package/dist/locale.js +85 -0
- package/dist/locale.js.map +1 -1
- package/dist/model-catalog-defaults.d.ts +14 -0
- package/dist/model-catalog-defaults.js +20 -0
- package/dist/model-catalog-defaults.js.map +1 -0
- package/dist/native-agent-admission.d.ts +7 -0
- package/dist/native-agent-admission.js +26 -0
- package/dist/native-agent-admission.js.map +1 -0
- package/dist/native-daemon-client.d.ts +13 -0
- package/dist/native-daemon-client.js +28 -0
- package/dist/native-daemon-client.js.map +1 -0
- package/dist/native-instance-api.d.ts +14 -0
- package/dist/native-instance-api.js +205 -0
- package/dist/native-instance-api.js.map +1 -0
- package/dist/native-instance-input.d.ts +84 -0
- package/dist/native-instance-input.js +54 -0
- package/dist/native-instance-input.js.map +1 -0
- package/dist/native-instance-registry.d.ts +32 -0
- package/dist/native-instance-registry.js +105 -0
- package/dist/native-instance-registry.js.map +1 -0
- package/dist/native-mcp.d.ts +40 -0
- package/dist/native-mcp.js +278 -0
- package/dist/native-mcp.js.map +1 -0
- package/dist/native-model-catalog.d.ts +5 -0
- package/dist/native-model-catalog.js +76 -0
- package/dist/native-model-catalog.js.map +1 -0
- package/dist/native-pane-crash-budget.d.ts +20 -0
- package/dist/native-pane-crash-budget.js +60 -0
- package/dist/native-pane-crash-budget.js.map +1 -0
- package/dist/native-pane-create.d.ts +26 -0
- package/dist/native-pane-create.js +53 -0
- package/dist/native-pane-create.js.map +1 -0
- package/dist/native-pane-lifecycle.d.ts +65 -0
- package/dist/native-pane-lifecycle.js +230 -0
- package/dist/native-pane-lifecycle.js.map +1 -0
- package/dist/native-pane-manager.d.ts +59 -0
- package/dist/native-pane-manager.js +584 -0
- package/dist/native-pane-manager.js.map +1 -0
- package/dist/native-pane-output-log.d.ts +15 -0
- package/dist/native-pane-output-log.js +108 -0
- package/dist/native-pane-output-log.js.map +1 -0
- package/dist/native-pane-reconciliation.d.ts +4 -0
- package/dist/native-pane-reconciliation.js +40 -0
- package/dist/native-pane-reconciliation.js.map +1 -0
- package/dist/native-pane-recovery.d.ts +12 -0
- package/dist/native-pane-recovery.js +10 -0
- package/dist/native-pane-recovery.js.map +1 -0
- package/dist/native-pane-tools.d.ts +2 -0
- package/dist/native-pane-tools.js +14 -0
- package/dist/native-pane-tools.js.map +1 -0
- package/dist/needs-you-hub.d.ts +2 -0
- package/dist/needs-you-hub.js +2 -1
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +19 -1
- package/dist/needs-you.js +12 -2
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +16 -2
- package/dist/outbound-handlers.js +67 -3
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +38 -0
- package/dist/outbound-schemas.js +12 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +118 -0
- package/dist/pane-port.js +2 -0
- package/dist/pane-port.js.map +1 -0
- package/dist/public-web-gateway.js +9 -0
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +5 -0
- package/dist/public-web-link.js +4 -0
- package/dist/public-web-link.js.map +1 -1
- package/dist/quickstart-api.js +9 -5
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +1 -0
- package/dist/quickstart.js +4 -1
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-api.d.ts +8 -0
- package/dist/runtime-api.js +96 -0
- package/dist/runtime-api.js.map +1 -0
- package/dist/runtime-assets/@xterm/addon-serialize/LICENSE +21 -0
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.js +2 -0
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.mjs +19 -0
- package/dist/runtime-assets/@xterm/addon-serialize/package.json +29 -0
- package/dist/runtime-assets/@xterm/headless/LICENSE +21 -0
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.js +2 -0
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.mjs +46 -0
- package/dist/runtime-assets/@xterm/headless/package.json +29 -0
- package/dist/runtime-assets/node-pty/CONPTY-LICENSE +21 -0
- package/dist/runtime-assets/node-pty/CONPTY-NOTICE.md +503 -0
- package/dist/runtime-assets/node-pty/LICENSE +69 -0
- package/dist/runtime-assets/node-pty/lib/conpty_console_list_agent.js +16 -0
- package/dist/runtime-assets/node-pty/lib/eventEmitter2.js +47 -0
- package/dist/runtime-assets/node-pty/lib/index.js +52 -0
- package/dist/runtime-assets/node-pty/lib/interfaces.js +7 -0
- package/dist/runtime-assets/node-pty/lib/shared/conout.js +11 -0
- package/dist/runtime-assets/node-pty/lib/terminal.js +190 -0
- package/dist/runtime-assets/node-pty/lib/types.js +7 -0
- package/dist/runtime-assets/node-pty/lib/unixTerminal.js +346 -0
- package/dist/runtime-assets/node-pty/lib/utils.js +39 -0
- package/dist/runtime-assets/node-pty/lib/windowsConoutConnection.js +125 -0
- package/dist/runtime-assets/node-pty/lib/windowsPtyAgent.js +320 -0
- package/dist/runtime-assets/node-pty/lib/windowsTerminal.js +199 -0
- package/dist/runtime-assets/node-pty/lib/worker/conoutSocketWorker.js +22 -0
- package/dist/runtime-assets/node-pty/package.json +64 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/dist/runtime-bundle.d.ts +17 -0
- package/dist/runtime-bundle.js +150 -0
- package/dist/runtime-bundle.js.map +1 -0
- package/dist/runtime-cli.d.ts +2 -0
- package/dist/runtime-cli.js +117 -0
- package/dist/runtime-cli.js.map +1 -0
- package/dist/runtime-client-store.d.ts +49 -0
- package/dist/runtime-client-store.js +292 -0
- package/dist/runtime-client-store.js.map +1 -0
- package/dist/runtime-client.d.ts +100 -0
- package/dist/runtime-client.js +700 -0
- package/dist/runtime-client.js.map +1 -0
- package/dist/runtime-coordinator.d.ts +82 -0
- package/dist/runtime-coordinator.js +864 -0
- package/dist/runtime-coordinator.js.map +1 -0
- package/dist/runtime-general-protocol.d.ts +22 -0
- package/dist/runtime-general-protocol.js +57 -0
- package/dist/runtime-general-protocol.js.map +1 -0
- package/dist/runtime-general-workspace.d.ts +17 -0
- package/dist/runtime-general-workspace.js +213 -0
- package/dist/runtime-general-workspace.js.map +1 -0
- package/dist/runtime-pane-assets.d.ts +17 -0
- package/dist/runtime-pane-assets.js +23 -0
- package/dist/runtime-pane-assets.js.map +1 -0
- package/dist/runtime-pane-boot.d.ts +2 -0
- package/dist/runtime-pane-boot.js +24 -0
- package/dist/runtime-pane-boot.js.map +1 -0
- package/dist/runtime-pane-codex-index.d.ts +1 -0
- package/dist/runtime-pane-codex-index.js +47 -0
- package/dist/runtime-pane-codex-index.js.map +1 -0
- package/dist/runtime-pane-config.d.ts +16 -0
- package/dist/runtime-pane-config.js +54 -0
- package/dist/runtime-pane-config.js.map +1 -0
- package/dist/runtime-pane-host.d.ts +44 -0
- package/dist/runtime-pane-host.js +424 -0
- package/dist/runtime-pane-host.js.map +1 -0
- package/dist/runtime-pane-job-owner.d.ts +1 -0
- package/dist/runtime-pane-job-owner.js +29 -0
- package/dist/runtime-pane-job-owner.js.map +1 -0
- package/dist/runtime-pane-job.ps1 +116 -0
- package/dist/runtime-pane-link.d.ts +40 -0
- package/dist/runtime-pane-link.js +246 -0
- package/dist/runtime-pane-link.js.map +1 -0
- package/dist/runtime-pane-mcp-protocol.d.ts +32 -0
- package/dist/runtime-pane-mcp-protocol.js +39 -0
- package/dist/runtime-pane-mcp-protocol.js.map +1 -0
- package/dist/runtime-pane-mcp-relay.d.ts +17 -0
- package/dist/runtime-pane-mcp-relay.js +70 -0
- package/dist/runtime-pane-mcp-relay.js.map +1 -0
- package/dist/runtime-pane-mcp.d.ts +51 -0
- package/dist/runtime-pane-mcp.js +150 -0
- package/dist/runtime-pane-mcp.js.map +1 -0
- package/dist/runtime-pane-native.d.ts +45 -0
- package/dist/runtime-pane-native.js +65 -0
- package/dist/runtime-pane-native.js.map +1 -0
- package/dist/runtime-pane-output.d.ts +19 -0
- package/dist/runtime-pane-output.js +53 -0
- package/dist/runtime-pane-output.js.map +1 -0
- package/dist/runtime-pane-port.d.ts +139 -0
- package/dist/runtime-pane-port.js +558 -0
- package/dist/runtime-pane-port.js.map +1 -0
- package/dist/runtime-pane-private.d.ts +14 -0
- package/dist/runtime-pane-private.js +51 -0
- package/dist/runtime-pane-private.js.map +1 -0
- package/dist/runtime-pane-private.ps1 +14 -0
- package/dist/runtime-pane-process.d.ts +4 -0
- package/dist/runtime-pane-process.js +108 -0
- package/dist/runtime-pane-process.js.map +1 -0
- package/dist/runtime-pane-protocol.d.ts +172 -0
- package/dist/runtime-pane-protocol.js +195 -0
- package/dist/runtime-pane-protocol.js.map +1 -0
- package/dist/runtime-pane-screen.d.ts +19 -0
- package/dist/runtime-pane-screen.js +76 -0
- package/dist/runtime-pane-screen.js.map +1 -0
- package/dist/runtime-pane-service.d.ts +11 -0
- package/dist/runtime-pane-service.js +221 -0
- package/dist/runtime-pane-service.js.map +1 -0
- package/dist/runtime-pane-stdio-protocol.d.ts +54 -0
- package/dist/runtime-pane-stdio-protocol.js +94 -0
- package/dist/runtime-pane-stdio-protocol.js.map +1 -0
- package/dist/runtime-pane-stdio.d.ts +3 -0
- package/dist/runtime-pane-stdio.js +123 -0
- package/dist/runtime-pane-stdio.js.map +1 -0
- package/dist/runtime-pane-store.d.ts +33 -0
- package/dist/runtime-pane-store.js +164 -0
- package/dist/runtime-pane-store.js.map +1 -0
- package/dist/runtime-pane-transcript-protocol.d.ts +43 -0
- package/dist/runtime-pane-transcript-protocol.js +58 -0
- package/dist/runtime-pane-transcript-protocol.js.map +1 -0
- package/dist/runtime-pane-transcript.d.ts +45 -0
- package/dist/runtime-pane-transcript.js +605 -0
- package/dist/runtime-pane-transcript.js.map +1 -0
- package/dist/runtime-pane-worker.d.ts +1 -0
- package/dist/runtime-pane-worker.js +154 -0
- package/dist/runtime-pane-worker.js.map +1 -0
- package/dist/runtime-protocol.d.ts +149 -0
- package/dist/runtime-protocol.js +19 -0
- package/dist/runtime-protocol.js.map +1 -0
- package/dist/runtime-switches.d.ts +79 -0
- package/dist/runtime-switches.js +90 -0
- package/dist/runtime-switches.js.map +1 -0
- package/dist/runtime-transcript-delta-reader.d.ts +23 -0
- package/dist/runtime-transcript-delta-reader.js +74 -0
- package/dist/runtime-transcript-delta-reader.js.map +1 -0
- package/dist/runtime-transcript-source.d.ts +36 -0
- package/dist/runtime-transcript-source.js +189 -0
- package/dist/runtime-transcript-source.js.map +1 -0
- package/dist/runtime-windows-bridge.d.ts +41 -0
- package/dist/runtime-windows-bridge.js +157 -0
- package/dist/runtime-windows-bridge.js.map +1 -0
- package/dist/settings-api.d.ts +5 -0
- package/dist/settings-api.js +95 -1
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +1 -0
- package/dist/settings-baseline.js +1 -1
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +28 -0
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +16 -1
- package/dist/settings-confirmation.js +47 -9
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +4 -0
- package/dist/settings-effect.js +58 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +1 -0
- package/dist/settings-http-confirmation.js +15 -2
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-request-capability.d.ts +2 -0
- package/dist/settings-request-capability.js +4 -0
- package/dist/settings-request-capability.js.map +1 -1
- package/dist/settings-route-lifetime.d.ts +14 -0
- package/dist/settings-route-lifetime.js +48 -0
- package/dist/settings-route-lifetime.js.map +1 -0
- package/dist/settings-transaction.d.ts +4 -0
- package/dist/settings-transaction.js +9 -0
- package/dist/settings-transaction.js.map +1 -1
- package/dist/setup-form.js +6 -3
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-i18n.js +3 -0
- package/dist/setup-i18n.js.map +1 -1
- package/dist/tmux-control.d.ts +2 -1
- package/dist/tmux-control.js.map +1 -1
- package/dist/tmux-manager.d.ts +2 -1
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tmux-pane-host.d.ts +26 -0
- package/dist/tmux-pane-host.js +25 -0
- package/dist/tmux-pane-host.js.map +1 -0
- package/dist/tool-permissions.js +2 -1
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +3 -0
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +1 -1
- package/dist/transcript-delta-reader.js +1 -1
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/transcript-monitor.d.ts +3 -0
- package/dist/transcript-monitor.js +22 -46
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-needles.d.ts +35 -0
- package/dist/transcript-needles.js +158 -0
- package/dist/transcript-needles.js.map +1 -0
- package/dist/transcript-records.d.ts +21 -0
- package/dist/transcript-records.js +140 -0
- package/dist/transcript-records.js.map +1 -0
- package/dist/transcript-sources.d.ts +5 -0
- package/dist/transcript-sources.js +8 -79
- package/dist/transcript-sources.js.map +1 -1
- package/dist/types.d.ts +23 -0
- package/dist/ui/agent-proposals.js +90 -0
- package/dist/ui/agent-runtime.js +106 -0
- package/dist/ui/chat-store.js +13 -2
- package/dist/ui/chat-strings.js +48 -0
- package/dist/ui/cli-picker.js +42 -0
- package/dist/ui/general-location.js +71 -0
- package/dist/ui/native-instance-settings.js +47 -0
- package/dist/ui/native-pane-recovery.js +45 -0
- package/dist/ui/panel-chat.js +63 -32
- package/dist/ui/panel-details.js +2 -1
- package/dist/ui/panel-fleet.js +99 -18
- package/dist/ui/panel-needs.js +154 -3
- package/dist/ui/panel-runtimes.js +231 -0
- package/dist/ui/panel-settings.js +19 -9
- package/dist/ui/panel-windows-agent.js +86 -0
- package/dist/ui/panel-windows-cli.js +143 -0
- package/dist/ui/provider-marks.js +83 -0
- package/dist/ui/runtime-catalog.js +55 -0
- package/dist/ui/settings-catalog.js +37 -10
- package/dist/ui/settings-confirm.js +3 -1
- package/dist/ui/settings-dialogs.js +22 -7
- package/dist/ui/settings-model.js +2 -1
- package/dist/ui/settings-outside.js +176 -0
- package/dist/ui/settings-registry.js +6 -0
- package/dist/ui/settings-strings.js +16 -0
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-route.js +6 -2
- package/dist/ui/shared/app-shell.js +3 -2
- package/dist/ui/shared/app-store.js +1 -0
- package/dist/ui/shared/app-stream.js +3 -1
- package/dist/ui/shared/app.css +301 -0
- package/dist/ui/shared/app.js +4 -0
- package/dist/ui/shared/header-tools.js +6 -4
- package/dist/ui/shared/instance-nav.js +33 -7
- package/dist/ui/shared/instance-switch.js +4 -3
- package/dist/ui/shared/qrcode.module.js +2237 -0
- package/dist/ui/shared/signin.js +39 -5
- package/dist/ui/shared/ui-menu.js +28 -8
- package/dist/ui/shared/vendor/qrcode-generator.LICENSE +27 -0
- package/dist/ui/shared/vendor/vendor.json +19 -2
- package/dist/ui/shared/view-strings.js +8 -0
- package/dist/ui/windows-agents-nav.js +2 -0
- package/dist/ui/windows-cli-catalog.js +79 -0
- package/dist/web-api.d.ts +37 -0
- package/dist/web-api.js +248 -6
- package/dist/web-api.js.map +1 -1
- package/dist/web-chat-history.d.ts +19 -2
- package/dist/web-chat-history.js +72 -3
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-only-fleet.d.ts +20 -0
- package/dist/web-only-fleet.js +21 -0
- package/dist/web-only-fleet.js.map +1 -1
- package/dist/web-remote-access.d.ts +152 -0
- package/dist/web-remote-access.js +368 -0
- package/dist/web-remote-access.js.map +1 -0
- package/dist/web-session.d.ts +7 -0
- package/dist/web-session.js +2 -0
- package/dist/web-session.js.map +1 -1
- package/dist/web-shell-routes.d.ts +4 -1
- package/dist/web-shell-routes.js +7 -2
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/windows-agents.d.ts +124 -0
- package/dist/windows-agents.js +487 -0
- package/dist/windows-agents.js.map +1 -0
- package/dist/windows-cli-api.d.ts +23 -0
- package/dist/windows-cli-api.js +158 -0
- package/dist/windows-cli-api.js.map +1 -0
- package/dist/windows-cli-providers.d.ts +115 -0
- package/dist/windows-cli-providers.js +429 -0
- package/dist/windows-cli-providers.js.map +1 -0
- package/dist/windows-cli-worker.d.ts +58 -0
- package/dist/windows-cli-worker.js +479 -0
- package/dist/windows-cli-worker.js.map +1 -0
- package/dist/windows-cli.d.ts +115 -0
- package/dist/windows-cli.js +402 -0
- package/dist/windows-cli.js.map +1 -0
- package/dist/windows-native-mcp.d.ts +19 -0
- package/dist/windows-native-mcp.js +143 -0
- package/dist/windows-native-mcp.js.map +1 -0
- package/dist/windows-pane-mcp.d.ts +26 -0
- package/dist/windows-pane-mcp.js +187 -0
- package/dist/windows-pane-mcp.js.map +1 -0
- package/package.json +9 -3
- package/templates/runtime-assets/conpty-LICENSE +21 -0
- package/templates/runtime-assets/conpty-NOTICE.md +503 -0
- package/templates/runtime-assets/local-pane-stage.ps1 +101 -0
- package/templates/runtime-assets/runtime-pane-job.ps1 +116 -0
- package/templates/runtime-assets/runtime-pane-private.ps1 +14 -0
- package/templates/runtime-assets/xterm-LICENSE +21 -0
package/dist/fleet-manager.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { type HumanOrigin } from "./human-delivery-receipts.js";
|
|
2
|
+
import { type SettingsPendingView } from "./settings-confirmation.js";
|
|
3
|
+
import { type GeneralSwitchInput } from "./general-binding.js";
|
|
2
4
|
import { SettingsExecution } from "./settings-transaction.js";
|
|
3
5
|
import { AppIconStore } from "./web-app-icon.js";
|
|
4
6
|
import { type NamedTestResult } from "./tunnel/named-link-test.js";
|
|
@@ -8,6 +10,7 @@ import type { PageShare } from "./page-share.js";
|
|
|
8
10
|
import type { LoginCodeOwner } from "./web-login.js";
|
|
9
11
|
import { type ProfileTicket } from "./runtime-cpu-profile.js";
|
|
10
12
|
import type { CpuProfile } from "./cpu-profile.js";
|
|
13
|
+
import { type IncomingMessage } from "node:http";
|
|
11
14
|
import { type FleetMemory } from "./process-memory.js";
|
|
12
15
|
import { MemoryPressure, type MemoryPressureSnapshot } from "./memory-pressure.js";
|
|
13
16
|
import { ReplyDeduper } from "./reply-dedup.js";
|
|
@@ -18,7 +21,7 @@ import { EventLog } from "./event-log.js";
|
|
|
18
21
|
import { BackendAvailabilityStore, type AvailabilityProbes, type BackendAvailability } from "./backend-availability.js";
|
|
19
22
|
import { AdapterWorld } from "./adapter-world.js";
|
|
20
23
|
import { CostGuard } from "./cost-guard.js";
|
|
21
|
-
import {
|
|
24
|
+
import { type InstanceClient } from "./channel/ipc-bridge.js";
|
|
22
25
|
import type { AdapterHealthSnapshot, ChannelAdapter, InboundMessage, InboundReaction } from "./channel/types.js";
|
|
23
26
|
import { type BackendCliVersionSnapshot } from "./backend/types.js";
|
|
24
27
|
import { type Logger } from "./logger.js";
|
|
@@ -60,6 +63,9 @@ export declare function applyTaskListCap<T extends {
|
|
|
60
63
|
hint: string;
|
|
61
64
|
} | T[];
|
|
62
65
|
import { type PublicPreviewForUi } from "./web-api.js";
|
|
66
|
+
import { RuntimeCoordinator } from "./runtime-coordinator.js";
|
|
67
|
+
import { FleetWindowsRuntime, type NativeRuntimePatch } from "./fleet-windows-runtime.js";
|
|
68
|
+
import { NativeMcpSessions } from "./native-mcp.js";
|
|
63
69
|
import { type LogAnswer, type LogQuery } from "./log-service.js";
|
|
64
70
|
import { WebChatHistory, type WebChatPost } from "./web-chat-history.js";
|
|
65
71
|
import { type WebEchoCopy } from "./web-reactions.js";
|
|
@@ -102,6 +108,7 @@ import { type CacheReport } from "./cache-service.js";
|
|
|
102
108
|
import { type WebCommandResult } from "./web-commands.js";
|
|
103
109
|
import { type SessionRecord } from "./web-session.js";
|
|
104
110
|
import { WebNotices } from "./web-notices.js";
|
|
111
|
+
import { WebRemoteAccess } from "./web-remote-access.js";
|
|
105
112
|
import { VERIFIED_SESSION_HOURS, type HumanAuthority, type WebAuthorityRefusal, type WebAuthorityResult, type WebPeer } from "./authority/web-authority.js";
|
|
106
113
|
import { type AuthorityState } from "./authority/authority-state.js";
|
|
107
114
|
import { type SessionAuthorization } from "./authority/session-authorizations.js";
|
|
@@ -199,6 +206,11 @@ export interface ModelCatalog {
|
|
|
199
206
|
note?: string;
|
|
200
207
|
}
|
|
201
208
|
export interface DeliveryOptions {
|
|
209
|
+
/**
|
|
210
|
+
* A Windows instance only: the sender's authority after the handoff (see NativeRuntimeDeliveryOptions.authorityCurrent).
|
|
211
|
+
* stillCurrent fences the handoff itself; this one is rechecked before the Windows process starts.
|
|
212
|
+
*/
|
|
213
|
+
authorityCurrent?: () => boolean;
|
|
202
214
|
/** Explicitly identify agent-to-agent delivery when metadata is unavailable. */
|
|
203
215
|
isCrossInstance?: boolean;
|
|
204
216
|
/** Force or bypass the idle gate. Schedules set this explicitly. */
|
|
@@ -322,6 +334,89 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
322
334
|
/** Live view of lifecycle.daemons — used throughout; not deprecated. */
|
|
323
335
|
get daemons(): Map<string, Daemon>;
|
|
324
336
|
fleetConfig: FleetConfig | null;
|
|
337
|
+
private fleetWindowsRuntime;
|
|
338
|
+
private nativeMcpStore;
|
|
339
|
+
private paneManager;
|
|
340
|
+
private localPaneRelay;
|
|
341
|
+
private openingLocalPane;
|
|
342
|
+
private runtimeHub;
|
|
343
|
+
private runtimeExecutor;
|
|
344
|
+
private runtimeStatusScheduled;
|
|
345
|
+
private readonly reconciledRemoteResults;
|
|
346
|
+
/** Machine credentials are separate from dashboard sessions and per-turn agent capabilities. */
|
|
347
|
+
runtimeCoordinator(): RuntimeCoordinator;
|
|
348
|
+
private runtimeWindowsExecutor;
|
|
349
|
+
/** Per-turn capabilities for native MCP, separate from browser and Linux-agent credentials. */
|
|
350
|
+
nativeMcpSessions(): NativeMcpSessions;
|
|
351
|
+
/** The same instance registry and delivery entry point, with a native Windows execution adapter. */
|
|
352
|
+
nativeInstanceRuntime(): FleetWindowsRuntime;
|
|
353
|
+
/** Explicit dashboard opt-in, with the same General confirmation and ordinary topic/Daemon routing. */
|
|
354
|
+
createNativePaneInstance(profile: Record<string, unknown>, channelId: string | undefined, authorized: () => boolean, execution: SettingsExecution): Promise<{
|
|
355
|
+
name: string;
|
|
356
|
+
runtime: "windows";
|
|
357
|
+
agent: import("./windows-agents.js").WindowsAgent;
|
|
358
|
+
}>;
|
|
359
|
+
/** Admin-only settings path: validate first, then close the exact old launch before changing cold fields. */
|
|
360
|
+
updateNativePaneConfig(name: string, patch: Partial<NativeRuntimePatch>, authorized: () => boolean, transaction?: Pick<SettingsExecution, "mutate" | "complete">): Promise<ReturnType<FleetWindowsRuntime["update"]>>;
|
|
361
|
+
private localNativePaneEndpoint;
|
|
362
|
+
/** Persistent ownership is independent of the exec worker's per-turn capabilities. */
|
|
363
|
+
private nativePanes;
|
|
364
|
+
/** Prepare only bundled role files; this neither switches General nor starts a provider process. */
|
|
365
|
+
prepareWindowsGeneralWorkspace(name: string, machineId: string, cli: "codex" | "claude-code", bindingId: string, authorized: () => boolean): Promise<import("./runtime-general-protocol.js").GeneralWorkspaceReceipt>;
|
|
366
|
+
private readonly generalLocationFlights;
|
|
367
|
+
private readonly generalAttentionEpisodes;
|
|
368
|
+
private generalBindings;
|
|
369
|
+
generalLocations(): unknown;
|
|
370
|
+
/** Pure preflight for the confirmation diff and stale-tab refusal; never prepares files or starts a CLI. */
|
|
371
|
+
previewGeneralLocation(raw: unknown): {
|
|
372
|
+
input: GeneralSwitchInput;
|
|
373
|
+
summary: string[];
|
|
374
|
+
connections: string[];
|
|
375
|
+
};
|
|
376
|
+
/** All entry points, including automatic native recovery, must respect an interrupted binding switch. */
|
|
377
|
+
assertGeneralBindingStart(name: string, config: InstanceConfig): void;
|
|
378
|
+
/** Only the Settings replay's confirmed admin can enter; the whole switch owns one lifecycle transition. */
|
|
379
|
+
switchGeneralLocation(raw: unknown, authorized: () => boolean, execution: SettingsExecution): Promise<{
|
|
380
|
+
started: boolean;
|
|
381
|
+
message: string;
|
|
382
|
+
}>;
|
|
383
|
+
/** An offline PC or a confirmed binding boundary holds old waiting input; it never becomes another conversation's queue. */
|
|
384
|
+
private holdGeneralOldDeliveries;
|
|
385
|
+
generalLocationDeliveryHold(name: string): string | null;
|
|
386
|
+
private generalLocationAttention;
|
|
387
|
+
nativePaneFor(name: string, config: InstanceConfig, assertCurrent: () => void): Promise<import("./native-pane-lifecycle.js").NativePaneLifecycle>;
|
|
388
|
+
recoverNativePane(name: string, launchId: string, authorized: () => boolean): Promise<void>;
|
|
389
|
+
holdNativePaneRecovery(name: string, error: unknown): boolean;
|
|
390
|
+
startFreshNativePane(name: string, launchId: string, sessionId: string | null, authorized: () => boolean): Promise<void>;
|
|
391
|
+
nativePanePinnedSession(name: string): string | null;
|
|
392
|
+
onNativePaneRecoverySettled(name: string): void;
|
|
393
|
+
setNativePanePaused(name: string, paused: boolean): void;
|
|
394
|
+
closeRetainedNativePane(name: string): Promise<void>;
|
|
395
|
+
reconcileNativePaneBeforeStart(name: string, daemon: Daemon): Promise<boolean>;
|
|
396
|
+
/** M-2255: the Windows runtimes' switches the fleet's own state reflects (null until the start-up has applied them). */
|
|
397
|
+
private runtimeEffects;
|
|
398
|
+
private runtimeEffectsScheduled;
|
|
399
|
+
private localPaneDrain;
|
|
400
|
+
private remotePaneDrain;
|
|
401
|
+
/** Revoke admissions synchronously; keep the captured transport only long enough for exact owned closes. */
|
|
402
|
+
private drainNativeRuntime;
|
|
403
|
+
/**
|
|
404
|
+
* M-2255: Settings → Runtime's switches (fleet.yaml `runtimes`, or their environment override) in force — set each time
|
|
405
|
+
* the configuration in force changes (a load, a save, a reload's rollback), next to the web authority's. Every gate reads
|
|
406
|
+
* them at once; what the fleet itself holds (paired computers' connections, this PC's Windows process, agents' tool
|
|
407
|
+
* sessions) follows just after, outside the save that changed them (applyRuntimeSwitches): no restart is needed.
|
|
408
|
+
*/
|
|
409
|
+
private observeRuntimeSwitches;
|
|
410
|
+
/**
|
|
411
|
+
* Turned off: what it allowed ends now — the paired computers' connections (their agents show as offline) or this PC's
|
|
412
|
+
* Windows process (a turn in progress is cancelled, as when the fleet stops), and those agents' tool sessions.
|
|
413
|
+
* Turned on: the Windows agents are registered and their chat history read, as at start-up.
|
|
414
|
+
*/
|
|
415
|
+
private applyRuntimeSwitches;
|
|
416
|
+
/** An unavailable opt-in runtime must not prevent the Linux fleet from starting or restoring its own history. */
|
|
417
|
+
private initializeNativeInstances;
|
|
418
|
+
/** Native CLIs are headless: the manager owns the durable delivery generation instead of a tmux daemon. */
|
|
419
|
+
private deliveryBootId;
|
|
325
420
|
private rawFleetConfig;
|
|
326
421
|
private rawFleetDocument;
|
|
327
422
|
/** #2208: the paths a saveFleetConfig() wrote, for its check that nothing else changed. */
|
|
@@ -338,7 +433,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
338
433
|
get primaryWorld(): AdapterWorld | undefined;
|
|
339
434
|
readonly routing: RoutingEngine;
|
|
340
435
|
get routingTable(): Map<string, RouteTarget>;
|
|
341
|
-
instanceIpcClients: Map<string,
|
|
436
|
+
instanceIpcClients: Map<string, InstanceClient>;
|
|
342
437
|
scheduler: Scheduler | null;
|
|
343
438
|
private configPath;
|
|
344
439
|
/** SIGHUPs received before startAll finishes are replayed once startup is safe. */
|
|
@@ -777,6 +872,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
777
872
|
* authorizing revoked links and cookies until the fleet restarted.
|
|
778
873
|
*/
|
|
779
874
|
private settingsGeneration;
|
|
875
|
+
/** #2942: the settings baseline the agent-requested Windows changes are checked against (set with the gate). */
|
|
876
|
+
private settingsBaselineReader;
|
|
780
877
|
private settingsRuntimeRevision;
|
|
781
878
|
private settingsConfirmation;
|
|
782
879
|
private settingsControl;
|
|
@@ -801,7 +898,38 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
801
898
|
* still hears it: a notice, not a step.
|
|
802
899
|
*/
|
|
803
900
|
private settingsSelfConfirmation;
|
|
804
|
-
/**
|
|
901
|
+
/**
|
|
902
|
+
* alpha.2 (M-2300; #2973's agent requests, junsion's §6): on a fleet with no chat connection there is no General to
|
|
903
|
+
* post an agent's Windows request in — it waited for `agend settings confirm` on the host. Its owner (decision
|
|
904
|
+
* 28c2d3a3: the `agend web --code` session on this computer, web-verified) now sees and decides it from the web's
|
|
905
|
+
* Needs you. The authority is asked from the request each time, and again at execution by the store (`current`):
|
|
906
|
+
* still that owner now (this computer, not revoked, signed out or run out), still a fleet with no chat connection,
|
|
907
|
+
* never over the public link. Anyone else — a guest, a LAN or public-link session, a chat-connected fleet's admin —
|
|
908
|
+
* gets nothing (a chat fleet keeps General's card as its way).
|
|
909
|
+
*/
|
|
910
|
+
/**
|
|
911
|
+
* #2997 review (Prism P2): how many times an agent's request came or was decided — in a web-only fleet's status frame,
|
|
912
|
+
* so a page that never hears the stream's ping (one polling /ui/poll, one reconnecting, a tab from before the upgrade)
|
|
913
|
+
* reads the list again when it moves. A count, nothing more.
|
|
914
|
+
*/
|
|
915
|
+
private agentProposalsRev;
|
|
916
|
+
private agentProposalOwner;
|
|
917
|
+
/** alpha.2: the agents' requests waiting for this web-only fleet's owner, or null when the reader is not that owner. */
|
|
918
|
+
webAgentProposals(req: IncomingMessage): SettingsPendingView[] | null;
|
|
919
|
+
/**
|
|
920
|
+
* alpha.2: the owner's Approve or Reject of an agent's request. The store claims it before its first await (a second
|
|
921
|
+
* click, from here or the host, finds it no longer pending) and asks the owner, the request (its fleet generation and
|
|
922
|
+
* Windows switch) and the target machine again before and while it runs the same creation code the web uses. The
|
|
923
|
+
* answer is always the request as it now stands: applied (with the new agent's name), rejected, expired, stale or
|
|
924
|
+
* failed (with its reason), or already decided.
|
|
925
|
+
*/
|
|
926
|
+
webDecideAgentProposal(req: IncomingMessage, id: string, decision: "confirm" | "reject"): Promise<{
|
|
927
|
+
status: number;
|
|
928
|
+
body: Record<string, unknown>;
|
|
929
|
+
}>;
|
|
930
|
+
/** A confirmation belongs to the server route/lifetime, not the availability of General's model. */
|
|
931
|
+
private settingsGeneralRoute;
|
|
932
|
+
/** Connected, same-platform, unaffected server routes can post cards even while the model is offline. */
|
|
805
933
|
private settingsNoticeGenerals;
|
|
806
934
|
/**
|
|
807
935
|
* #2170: General's notice of a change confirmed from the web — the first General a chat card could have been posted
|
|
@@ -810,6 +938,17 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
810
938
|
private settingsWebConfirmedNotice;
|
|
811
939
|
/** Exact configured effect owners; this does not depend on prompt location. */
|
|
812
940
|
private settingsChatAuthority;
|
|
941
|
+
/**
|
|
942
|
+
* #2942: a Windows create or settings change an AGENT asked for. Nothing is created or written here: it becomes a
|
|
943
|
+
* pending settings change whose General card a fleet admin must confirm (promptSettingsChange — the same admin rule
|
|
944
|
+
* as every card). Its apply runs the same creation/patch code the web uses, inside the store's SettingsExecution, with
|
|
945
|
+
* the confirming admin, the Windows switch and the target machine asked again at that moment.
|
|
946
|
+
*/
|
|
947
|
+
private proposeAgentWindowsChange;
|
|
948
|
+
/** #2942: create_instance with runtime "windows" from an agent: validated like the web, then held for General. */
|
|
949
|
+
requestWindowsCreate(requester: string, rawArgs: Record<string, unknown>): Promise<SettingsPendingView>;
|
|
950
|
+
/** #2942: update_instance_config on a Windows agent: only the fields the web editor allows, held for General. */
|
|
951
|
+
requestWindowsConfig(requester: string, name: string, patch: Record<string, unknown>): Promise<SettingsPendingView>;
|
|
813
952
|
private promptSettingsChange;
|
|
814
953
|
private kiroMigrateDeps;
|
|
815
954
|
/**
|
|
@@ -982,6 +1121,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
982
1121
|
private reconcileQueueWorkers;
|
|
983
1122
|
private createQueueWorker;
|
|
984
1123
|
private dispatchDurableDelivery;
|
|
1124
|
+
/** The ordinary durable lane, with provider completion proof instead of terminal/IPC submission proof. */
|
|
1125
|
+
private dispatchNativeDurableDelivery;
|
|
1126
|
+
/** A runtime's persisted completion can outlive this manager. Resolve its original delivery fence, never send
|
|
1127
|
+
* the prompt again, and reconstruct a missing peer report using the same durable operation ID. */
|
|
1128
|
+
private reconcileRemoteDelivery;
|
|
985
1129
|
private waitForDurableLaneRelease;
|
|
986
1130
|
private spawnConcurrency;
|
|
987
1131
|
/** #1685: "elevated" or "critical" while host memory pressure slows or holds new agents; otherwise null (an
|
|
@@ -1706,6 +1850,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1706
1850
|
/** #1742: `/start web` from a fleet admin: the /web menu right here in the DM, for the General this bot serves. */
|
|
1707
1851
|
private startWebInDm;
|
|
1708
1852
|
private getPublicWebLink;
|
|
1853
|
+
/** The public link's wiring to this fleet (a test builds one with the tunnel itself stubbed: `ensure`, `provider`). */
|
|
1854
|
+
private publicWebLinkDeps;
|
|
1709
1855
|
private publicLinkAutoOpen;
|
|
1710
1856
|
/**
|
|
1711
1857
|
* #named-link-ttl: the admin who last opened a named-tunnel link from /web, with the live binding — only while they
|
|
@@ -2525,6 +2671,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2525
2671
|
private writingFleetDocument;
|
|
2526
2672
|
getSettingsConfigPath(): string;
|
|
2527
2673
|
removeInstance(name: string, authorization: ExplicitInstanceRemoval, execution?: SettingsExecution): Promise<void>;
|
|
2674
|
+
/** Shared instance metadata goes with a native identity; its Windows workspace and provider sessions stay intact. */
|
|
2675
|
+
private nativeInstanceRemoved;
|
|
2528
2676
|
private removeInstanceOwned;
|
|
2529
2677
|
startStatuslineWatcher(name: string): void;
|
|
2530
2678
|
stopStatuslineWatcher(name: string): void;
|
|
@@ -3188,6 +3336,89 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3188
3336
|
* again. A fleet with a chat connection, another session, or another peer: nothing (§3 as before).
|
|
3189
3337
|
*/
|
|
3190
3338
|
authorizeHostSession(session: SessionRecord, peer: WebPeer): void;
|
|
3339
|
+
private webRemoteAccessState;
|
|
3340
|
+
/** The authenticator, the outside switch and the wrong-code limiter (web-remote-access.json), read on first use. */
|
|
3341
|
+
webRemoteAccess(): WebRemoteAccess | null;
|
|
3342
|
+
/** "Allow connections from outside" is on (an app set up) and this is a web-only fleet. */
|
|
3343
|
+
private outsideOn;
|
|
3344
|
+
/** The link connections from outside opened, while it is open and still theirs: its exposure. Else null. */
|
|
3345
|
+
private outsideLink;
|
|
3346
|
+
/**
|
|
3347
|
+
* The request's live session, asked again each time `current()` is called (its own cookie authenticated anew, the same
|
|
3348
|
+
* handle): this web-only fleet's owner — this computer's admin, on this computer (`hostOnly`), or also signed in from
|
|
3349
|
+
* outside — and web-verified now. Null when it is not (a guest, a LAN session, a chat fleet's admin, nobody).
|
|
3350
|
+
*/
|
|
3351
|
+
private liveOwner;
|
|
3352
|
+
/** Every session signed in from outside ends (and the authorizations kept for them). */
|
|
3353
|
+
private endOutsideSessions;
|
|
3354
|
+
/**
|
|
3355
|
+
* #1939 §10 / #3008: a stored receipt's authority as it reads now — the web authority state, and for this computer's
|
|
3356
|
+
* admin from outside the switch and the last revocation of remote authority (Prism P2 2).
|
|
3357
|
+
*/
|
|
3358
|
+
receiptAuthorityNow(stored: HumanAuthority, state?: AuthorityState): HumanAuthority;
|
|
3359
|
+
/** #3008 (the sign-in page): this exposure is the outside link, open now. */
|
|
3360
|
+
isOutsideLink(exposureId: string): boolean;
|
|
3361
|
+
/** What Settings shows: set up or not, the switch, a wait in force, the link — its address only to this computer. */
|
|
3362
|
+
webOutsideStatus(req: IncomingMessage): {
|
|
3363
|
+
webOnly: boolean;
|
|
3364
|
+
here: boolean;
|
|
3365
|
+
enrolled: boolean;
|
|
3366
|
+
enrolledAt: number | null;
|
|
3367
|
+
outside: boolean;
|
|
3368
|
+
pausedForMs: number;
|
|
3369
|
+
link: {
|
|
3370
|
+
state: string;
|
|
3371
|
+
url?: string;
|
|
3372
|
+
expiresAt?: number;
|
|
3373
|
+
noExpiry?: true;
|
|
3374
|
+
quick: boolean;
|
|
3375
|
+
} | null;
|
|
3376
|
+
};
|
|
3377
|
+
/** Set up (or set up again): a new secret, shown once to this computer's admin. Null: not them. */
|
|
3378
|
+
webOutsideBeginEnrollment(req: IncomingMessage): {
|
|
3379
|
+
secret: string;
|
|
3380
|
+
uri: string;
|
|
3381
|
+
expiresInMs: number;
|
|
3382
|
+
} | null;
|
|
3383
|
+
/** The new app's first code: on "ok" it replaces the old one, whose sessions from outside end. */
|
|
3384
|
+
webOutsideConfirmEnrollment(req: IncomingMessage, code: string): "ok" | "wrong" | "expired" | "unsaved" | "not_here";
|
|
3385
|
+
/** Forget the app: the switch goes off, the link closes, every session from outside ends. */
|
|
3386
|
+
webOutsideRemove(req: IncomingMessage): "ok" | "unsaved" | "not_here";
|
|
3387
|
+
/** The switch. On: needs an app set up; the link opens. Off: it closes and every session from outside ends. */
|
|
3388
|
+
webOutsideSwitch(req: IncomingMessage, on: boolean): "ok" | "not_enrolled" | "not_here" | "not_allowed" | "unsaved";
|
|
3389
|
+
private outsideAttempt;
|
|
3390
|
+
private outsideOpening;
|
|
3391
|
+
/**
|
|
3392
|
+
* Open the outside link: an attempt after each delay in turn until one opens (#3008 B: twice more at most — the quick
|
|
3393
|
+
* link's address service limits how often it may be asked). Every attempt asks again: the switch still on, the fleet
|
|
3394
|
+
* running. A final failure: one Notice; the switch stays on, so the next start tries again.
|
|
3395
|
+
*/
|
|
3396
|
+
private openOutsideLink;
|
|
3397
|
+
private closeOutsideLink;
|
|
3398
|
+
/** PublicWebLink.onClose for the outside link: what closed it decides what happens next (#3008 B). */
|
|
3399
|
+
private outsideLinkClosed;
|
|
3400
|
+
/**
|
|
3401
|
+
* #3008 (auth-api POST /auth/totp): a sign-in through the outside link with the authenticator's code. "ok": the caller
|
|
3402
|
+
* makes the session (SessionRecord.remote) and then calls authorizeOutsideSession. Each wrong code counts; a wait that
|
|
3403
|
+
* starts is a Notice; a code that matches a step just outside the window logs how far this clock seems to be off.
|
|
3404
|
+
*/
|
|
3405
|
+
outsideSignIn(exposureId: string | undefined, code: string): {
|
|
3406
|
+
kind: "ok";
|
|
3407
|
+
} | {
|
|
3408
|
+
kind: "wrong";
|
|
3409
|
+
} | {
|
|
3410
|
+
kind: "paused";
|
|
3411
|
+
retryAfterMs: number;
|
|
3412
|
+
} | {
|
|
3413
|
+
kind: "closed";
|
|
3414
|
+
} | {
|
|
3415
|
+
kind: "unavailable";
|
|
3416
|
+
};
|
|
3417
|
+
/**
|
|
3418
|
+
* #3008: a session just made by outsideSignIn's "ok" is this computer's admin for its authorization's life. False: it
|
|
3419
|
+
* could not be admitted (its handle not saved, #3015 review r3) — the caller ends it.
|
|
3420
|
+
*/
|
|
3421
|
+
authorizeOutsideSession(session: SessionRecord, peer: WebPeer, label: string): boolean;
|
|
3191
3422
|
private authorityStateStore;
|
|
3192
3423
|
/**
|
|
3193
3424
|
* #1939 §10: the switch, "Only this computer can authorize" and the revocation epoch in force for the configuration as
|
|
@@ -4082,6 +4313,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4082
4313
|
* profile's, when it is named and has one), claude's account catalog included. Read only: never a probe.
|
|
4083
4314
|
*/
|
|
4084
4315
|
modelCatalogFor(backend: string, instance: string | null): import("./backend/types.js").ModelOption[];
|
|
4316
|
+
/** Host-default fallback only: Grok has no modeled profile home. Never construct a backend or start a probe. */
|
|
4317
|
+
cliModelCatalogFor(backend: string, instance: string | null): Promise<import("./backend/types.js").ModelOption[]>;
|
|
4085
4318
|
/**
|
|
4086
4319
|
* #2072 (#2078 review): the snapshot as THIS instance would see it. Its sign-in on a backend is its own credential
|
|
4087
4320
|
* profile's when it has one there — the host's default login says nothing about it. A profile's login is a file check
|
|
@@ -4552,3 +4785,5 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4552
4785
|
getUiStatus(): unknown;
|
|
4553
4786
|
private getUiStatusSync;
|
|
4554
4787
|
}
|
|
4788
|
+
/** alpha.2 (M-2300): the agent an applied Windows request created (its name, for the page's "Open chat"), or null. */
|
|
4789
|
+
export declare function agentNameOf(view: SettingsPendingView): string | null;
|