@songsid/agend 2.3.5 → 2.4.0-alpha.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 +2 -0
- package/README.zh-TW.md +2 -0
- package/THIRD_PARTY_NOTICES.md +71 -0
- package/dist/accounts-profiles.d.ts +102 -0
- package/dist/accounts-profiles.js +194 -0
- package/dist/accounts-profiles.js.map +1 -0
- package/dist/accounts-signout.d.ts +59 -0
- package/dist/accounts-signout.js +181 -0
- package/dist/accounts-signout.js.map +1 -0
- package/dist/accounts-view.d.ts +189 -0
- package/dist/accounts-view.js +204 -0
- package/dist/accounts-view.js.map +1 -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/agent-export.d.ts +74 -0
- package/dist/agent-export.js +362 -0
- package/dist/agent-export.js.map +1 -0
- package/dist/agent-file-read.js +1 -1
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-runtime-api.d.ts +4 -0
- package/dist/agent-runtime-api.js +59 -0
- package/dist/agent-runtime-api.js.map +1 -0
- package/dist/agent-runtime-change.d.ts +76 -0
- package/dist/agent-runtime-change.js +114 -0
- package/dist/agent-runtime-change.js.map +1 -0
- package/dist/agent-whats-new.js +10 -3
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/agent-workspace.d.ts +103 -0
- package/dist/agent-workspace.js +360 -0
- package/dist/agent-workspace.js.map +1 -0
- package/dist/apply-job.d.ts +5 -0
- package/dist/apply-job.js +10 -3
- package/dist/apply-job.js.map +1 -1
- package/dist/auth-api.d.ts +78 -0
- package/dist/auth-api.js +350 -16
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/company-join.d.ts +16 -0
- package/dist/authority/company-join.js +37 -0
- package/dist/authority/company-join.js.map +1 -0
- package/dist/authority/hub-initialization.d.ts +13 -0
- package/dist/authority/hub-initialization.js +30 -0
- package/dist/authority/hub-initialization.js.map +1 -0
- package/dist/authority/settings-role.d.ts +56 -0
- package/dist/authority/settings-role.js +48 -0
- package/dist/authority/settings-role.js.map +1 -0
- package/dist/authority/web-authority.d.ts +25 -2
- package/dist/authority/web-authority.js +37 -4
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/claude-code.d.ts +19 -16
- package/dist/backend/claude-code.js +179 -144
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/claude-context.d.ts +17 -0
- package/dist/backend/claude-context.js +30 -0
- package/dist/backend/claude-context.js.map +1 -0
- package/dist/backend/codex-footer-hints.d.ts +3 -0
- package/dist/backend/codex-footer-hints.js +14 -0
- package/dist/backend/codex-footer-hints.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-quota-history.js +4 -19
- package/dist/backend/codex-quota-history.js.map +1 -1
- package/dist/backend/codex.d.ts +149 -129
- package/dist/backend/codex.js +1323 -1233
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +21 -0
- package/dist/backend/credential-profile.js +48 -1
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/effort-metadata.d.ts +38 -2
- package/dist/backend/effort-metadata.js +145 -8
- package/dist/backend/effort-metadata.js.map +1 -1
- package/dist/backend/grok-mcp.d.ts +5 -0
- package/dist/backend/grok-mcp.js +221 -0
- package/dist/backend/grok-mcp.js.map +1 -0
- 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 +7 -10
- package/dist/backend/grok.js +44 -88
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.js +1 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/launch-effort.d.ts +1 -1
- package/dist/backend/launch-effort.js +7 -3
- package/dist/backend/launch-effort.js.map +1 -1
- package/dist/backend/native-pane.d.ts +11 -0
- package/dist/backend/native-pane.js +59 -0
- package/dist/backend/native-pane.js.map +1 -0
- package/dist/backend/types.d.ts +20 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +15 -0
- package/dist/backend-availability.js +37 -1
- package/dist/backend-availability.js.map +1 -1
- package/dist/backend-signin-pending.d.ts +8 -2
- package/dist/backend-signin-pending.js +6 -2
- package/dist/backend-signin-pending.js.map +1 -1
- package/dist/browser-backend-signins.d.ts +2 -1
- package/dist/browser-backend-signins.js +1 -1
- package/dist/browser-backend-signins.js.map +1 -1
- package/dist/build-provenance-cli.d.ts +3 -0
- package/dist/build-provenance-cli.js +11 -0
- package/dist/build-provenance-cli.js.map +1 -0
- package/dist/build-provenance.d.ts +20 -0
- package/dist/build-provenance.js +67 -0
- package/dist/build-provenance.js.map +1 -0
- package/dist/build-provenance.json +1 -0
- package/dist/bundled-tmux-guard.d.ts +0 -2
- package/dist/bundled-tmux-guard.js +10 -23
- package/dist/bundled-tmux-guard.js.map +1 -1
- package/dist/channel/ipc-bridge.d.ts +2 -0
- package/dist/channel/mcp-tools.js +4 -4
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/classic-bindings.d.ts +13 -0
- package/dist/classic-bindings.js +28 -2
- package/dist/classic-bindings.js.map +1 -1
- package/dist/claude-auth-status.d.ts +60 -0
- package/dist/claude-auth-status.js +165 -0
- package/dist/claude-auth-status.js.map +1 -0
- package/dist/cli-audited.d.ts +60 -0
- package/dist/cli-audited.js +84 -0
- package/dist/cli-audited.js.map +1 -0
- package/dist/cli-capability.d.ts +217 -0
- package/dist/cli-capability.js +55 -0
- package/dist/cli-capability.js.map +1 -0
- package/dist/cli-caps-module.d.ts +33 -0
- package/dist/cli-caps-module.js +45 -0
- package/dist/cli-caps-module.js.map +1 -0
- package/dist/cli-registry-check.d.ts +28 -0
- package/dist/cli-registry-check.js +237 -0
- package/dist/cli-registry-check.js.map +1 -0
- package/dist/cli-registry.d.ts +578 -0
- package/dist/cli-registry.js +83 -0
- package/dist/cli-registry.js.map +1 -0
- package/dist/cli-spec-antigravity.d.ts +71 -0
- package/dist/cli-spec-antigravity.js +47 -0
- package/dist/cli-spec-antigravity.js.map +1 -0
- package/dist/cli-spec-claude-code.d.ts +93 -0
- package/dist/cli-spec-claude-code.js +37 -0
- package/dist/cli-spec-claude-code.js.map +1 -0
- package/dist/cli-spec-codex.d.ts +87 -0
- package/dist/cli-spec-codex.js +40 -0
- package/dist/cli-spec-codex.js.map +1 -0
- package/dist/cli-spec-grok.d.ts +64 -0
- package/dist/cli-spec-grok.js +40 -0
- package/dist/cli-spec-grok.js.map +1 -0
- package/dist/cli-spec-kiro-cli.d.ts +79 -0
- package/dist/cli-spec-kiro-cli.js +40 -0
- package/dist/cli-spec-kiro-cli.js.map +1 -0
- package/dist/cli-spec-muse.d.ts +54 -0
- package/dist/cli-spec-muse.js +40 -0
- package/dist/cli-spec-muse.js.map +1 -0
- package/dist/cli-spec-opencode.d.ts +60 -0
- package/dist/cli-spec-opencode.js +42 -0
- package/dist/cli-spec-opencode.js.map +1 -0
- package/dist/cli.js +311 -54
- package/dist/cli.js.map +1 -1
- package/dist/codex-pane-ownership.d.ts +13 -0
- package/dist/codex-pane-ownership.js +192 -0
- package/dist/codex-pane-ownership.js.map +1 -0
- package/dist/config-validator.js +93 -2
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +16 -0
- package/dist/config.js.map +1 -1
- package/dist/create-host-account.d.ts +17 -0
- package/dist/create-host-account.js +47 -0
- package/dist/create-host-account.js.map +1 -0
- package/dist/daemon.d.ts +101 -7
- package/dist/daemon.js +1058 -282
- 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 +9 -0
- package/dist/delivery-outbox.js +43 -4
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +2 -42
- package/dist/delivery-reconciliation.js +2 -164
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/dispatcher-liveness.d.ts +172 -0
- package/dist/dispatcher-liveness.js +238 -0
- package/dist/dispatcher-liveness.js.map +1 -0
- package/dist/doctor.js +19 -9
- package/dist/doctor.js.map +1 -1
- package/dist/e2e-isolation.js +5 -2
- package/dist/e2e-isolation.js.map +1 -1
- package/dist/fleet-context.d.ts +7 -3
- package/dist/fleet-control-audit.d.ts +1 -1
- 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 +1079 -29
- package/dist/fleet-manager.js +5564 -420
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +98 -0
- package/dist/fleet-windows-runtime.js +467 -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-knowledge/skills/concepts/SKILL.md +75 -23
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +23 -9
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +1 -1
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +2 -2
- package/dist/general-knowledge/skills/fleet-restart/SKILL.md +1 -1
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +1 -1
- package/dist/general-knowledge/skills/session-management/SKILL.md +1 -1
- package/dist/general-knowledge/skills/tui-effort/SKILL.md +10 -10
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +48 -26
- package/dist/general-knowledge/steering/core-rules.md +2 -2
- package/dist/general-role.d.ts +5 -0
- package/dist/general-role.js +27 -0
- package/dist/general-role.js.map +1 -0
- package/dist/hub/admission.d.ts +28 -0
- package/dist/hub/admission.js +62 -0
- package/dist/hub/admission.js.map +1 -0
- package/dist/hub/attachments/limits.d.ts +20 -0
- package/dist/hub/attachments/limits.js +48 -0
- package/dist/hub/attachments/limits.js.map +1 -0
- package/dist/hub/attachments/store.d.ts +116 -0
- package/dist/hub/attachments/store.js +246 -0
- package/dist/hub/attachments/store.js.map +1 -0
- package/dist/hub/audit/index.d.ts +62 -0
- package/dist/hub/audit/index.js +344 -0
- package/dist/hub/audit/index.js.map +1 -0
- package/dist/hub/browser-certificate.d.ts +38 -0
- package/dist/hub/browser-certificate.js +247 -0
- package/dist/hub/browser-certificate.js.map +1 -0
- package/dist/hub/buttons-model.d.ts +9 -0
- package/dist/hub/buttons-model.js +42 -0
- package/dist/hub/buttons-model.js.map +1 -0
- package/dist/hub/buttons.d.ts +54 -0
- package/dist/hub/buttons.js +348 -0
- package/dist/hub/buttons.js.map +1 -0
- package/dist/hub/catalog.d.ts +74 -0
- package/dist/hub/catalog.js +380 -0
- package/dist/hub/catalog.js.map +1 -0
- package/dist/hub/client.d.ts +71 -0
- package/dist/hub/client.js +333 -0
- package/dist/hub/client.js.map +1 -0
- package/dist/hub/compose/member.d.ts +145 -0
- package/dist/hub/compose/member.js +467 -0
- package/dist/hub/compose/member.js.map +1 -0
- package/dist/hub/compose/server.d.ts +170 -0
- package/dist/hub/compose/server.js +494 -0
- package/dist/hub/compose/server.js.map +1 -0
- package/dist/hub/compose/storage.d.ts +5 -0
- package/dist/hub/compose/storage.js +28 -0
- package/dist/hub/compose/storage.js.map +1 -0
- package/dist/hub/compose/views.d.ts +12 -0
- package/dist/hub/compose/views.js +4 -0
- package/dist/hub/compose/views.js.map +1 -0
- package/dist/hub/db.d.ts +58 -0
- package/dist/hub/db.js +215 -0
- package/dist/hub/db.js.map +1 -0
- package/dist/hub/directory/config.d.ts +39 -0
- package/dist/hub/directory/config.js +108 -0
- package/dist/hub/directory/config.js.map +1 -0
- package/dist/hub/directory/directory.d.ts +25 -0
- package/dist/hub/directory/directory.js +588 -0
- package/dist/hub/directory/directory.js.map +1 -0
- package/dist/hub/directory/groups.d.ts +55 -0
- package/dist/hub/directory/groups.js +30 -0
- package/dist/hub/directory/groups.js.map +1 -0
- package/dist/hub/directory/index.d.ts +8 -0
- package/dist/hub/directory/index.js +4 -0
- package/dist/hub/directory/index.js.map +1 -0
- package/dist/hub/directory/profiles.d.ts +41 -0
- package/dist/hub/directory/profiles.js +90 -0
- package/dist/hub/directory/profiles.js.map +1 -0
- package/dist/hub/directory/types.d.ts +84 -0
- package/dist/hub/directory/types.js +14 -0
- package/dist/hub/directory/types.js.map +1 -0
- package/dist/hub/directory-response-owner.d.ts +38 -0
- package/dist/hub/directory-response-owner.js +191 -0
- package/dist/hub/directory-response-owner.js.map +1 -0
- package/dist/hub/enrollment-budget.d.ts +6 -0
- package/dist/hub/enrollment-budget.js +24 -0
- package/dist/hub/enrollment-budget.js.map +1 -0
- package/dist/hub/execution/cli-provider.d.ts +23 -0
- package/dist/hub/execution/cli-provider.js +341 -0
- package/dist/hub/execution/cli-provider.js.map +1 -0
- package/dist/hub/execution/index.d.ts +13 -0
- package/dist/hub/execution/index.js +8 -0
- package/dist/hub/execution/index.js.map +1 -0
- package/dist/hub/execution/model-broker.d.ts +24 -0
- package/dist/hub/execution/model-broker.js +208 -0
- package/dist/hub/execution/model-broker.js.map +1 -0
- package/dist/hub/execution/provider-setup.d.ts +11 -0
- package/dist/hub/execution/provider-setup.js +21 -0
- package/dist/hub/execution/provider-setup.js.map +1 -0
- package/dist/hub/execution/sandbox-runner.d.ts +1 -0
- package/dist/hub/execution/sandbox-runner.js +221 -0
- package/dist/hub/execution/sandbox-runner.js.map +1 -0
- package/dist/hub/execution/service.d.ts +136 -0
- package/dist/hub/execution/service.js +459 -0
- package/dist/hub/execution/service.js.map +1 -0
- package/dist/hub/execution/store.d.ts +61 -0
- package/dist/hub/execution/store.js +182 -0
- package/dist/hub/execution/store.js.map +1 -0
- package/dist/hub/execution/views.d.ts +20 -0
- package/dist/hub/execution/views.js +48 -0
- package/dist/hub/execution/views.js.map +1 -0
- package/dist/hub/fleet-revocation.d.ts +3 -0
- package/dist/hub/fleet-revocation.js +7 -0
- package/dist/hub/fleet-revocation.js.map +1 -0
- package/dist/hub/group-policy/admin-api.d.ts +30 -0
- package/dist/hub/group-policy/admin-api.js +92 -0
- package/dist/hub/group-policy/admin-api.js.map +1 -0
- package/dist/hub/group-policy/admin-context.d.ts +23 -0
- package/dist/hub/group-policy/admin-context.js +52 -0
- package/dist/hub/group-policy/admin-context.js.map +1 -0
- package/dist/hub/group-policy/admin-control.d.ts +35 -0
- package/dist/hub/group-policy/admin-control.js +260 -0
- package/dist/hub/group-policy/admin-control.js.map +1 -0
- package/dist/hub/group-policy/admin-dto.d.ts +259 -0
- package/dist/hub/group-policy/admin-dto.js +57 -0
- package/dist/hub/group-policy/admin-dto.js.map +1 -0
- package/dist/hub/group-policy/admin-facts.d.ts +17 -0
- package/dist/hub/group-policy/admin-facts.js +33 -0
- package/dist/hub/group-policy/admin-facts.js.map +1 -0
- package/dist/hub/group-policy/admin-impact.d.ts +51 -0
- package/dist/hub/group-policy/admin-impact.js +88 -0
- package/dist/hub/group-policy/admin-impact.js.map +1 -0
- package/dist/hub/group-policy/admin-inventory.d.ts +24 -0
- package/dist/hub/group-policy/admin-inventory.js +72 -0
- package/dist/hub/group-policy/admin-inventory.js.map +1 -0
- package/dist/hub/group-policy/admin-read.d.ts +21 -0
- package/dist/hub/group-policy/admin-read.js +95 -0
- package/dist/hub/group-policy/admin-read.js.map +1 -0
- package/dist/hub/group-policy/admin-search.d.ts +14 -0
- package/dist/hub/group-policy/admin-search.js +72 -0
- package/dist/hub/group-policy/admin-search.js.map +1 -0
- package/dist/hub/group-policy/authorization.d.ts +65 -0
- package/dist/hub/group-policy/authorization.js +315 -0
- package/dist/hub/group-policy/authorization.js.map +1 -0
- package/dist/hub/group-policy/impact-inventory.d.ts +21 -0
- package/dist/hub/group-policy/impact-inventory.js +75 -0
- package/dist/hub/group-policy/impact-inventory.js.map +1 -0
- package/dist/hub/group-policy/model.d.ts +56 -0
- package/dist/hub/group-policy/model.js +46 -0
- package/dist/hub/group-policy/model.js.map +1 -0
- package/dist/hub/group-policy/resources.d.ts +72 -0
- package/dist/hub/group-policy/resources.js +260 -0
- package/dist/hub/group-policy/resources.js.map +1 -0
- package/dist/hub/group-policy/store.d.ts +69 -0
- package/dist/hub/group-policy/store.js +210 -0
- package/dist/hub/group-policy/store.js.map +1 -0
- package/dist/hub/group-policy/welcome.d.ts +36 -0
- package/dist/hub/group-policy/welcome.js +55 -0
- package/dist/hub/group-policy/welcome.js.map +1 -0
- package/dist/hub/http/compose.d.ts +24 -0
- package/dist/hub/http/compose.js +742 -0
- package/dist/hub/http/compose.js.map +1 -0
- package/dist/hub/http/core.d.ts +71 -0
- package/dist/hub/http/core.js +266 -0
- package/dist/hub/http/core.js.map +1 -0
- package/dist/hub/http/deps.d.ts +79 -0
- package/dist/hub/http/deps.js +2 -0
- package/dist/hub/http/deps.js.map +1 -0
- package/dist/hub/http/schema.d.ts +14 -0
- package/dist/hub/http/schema.js +84 -0
- package/dist/hub/http/schema.js.map +1 -0
- package/dist/hub/identity.d.ts +32 -0
- package/dist/hub/identity.js +80 -0
- package/dist/hub/identity.js.map +1 -0
- package/dist/hub/init/browser-certificate.d.ts +14 -0
- package/dist/hub/init/browser-certificate.js +99 -0
- package/dist/hub/init/browser-certificate.js.map +1 -0
- package/dist/hub/init/browser-tls.d.ts +18 -0
- package/dist/hub/init/browser-tls.js +62 -0
- package/dist/hub/init/browser-tls.js.map +1 -0
- package/dist/hub/init/cli.d.ts +3 -0
- package/dist/hub/init/cli.js +83 -0
- package/dist/hub/init/cli.js.map +1 -0
- package/dist/hub/init/directory-certificate.d.ts +24 -0
- package/dist/hub/init/directory-certificate.js +229 -0
- package/dist/hub/init/directory-certificate.js.map +1 -0
- package/dist/hub/init/existing-fleet.d.ts +6 -0
- package/dist/hub/init/existing-fleet.js +58 -0
- package/dist/hub/init/existing-fleet.js.map +1 -0
- package/dist/hub/init/handoff.d.ts +8 -0
- package/dist/hub/init/handoff.js +36 -0
- package/dist/hub/init/handoff.js.map +1 -0
- package/dist/hub/init/identity.d.ts +5 -0
- package/dist/hub/init/identity.js +24 -0
- package/dist/hub/init/identity.js.map +1 -0
- package/dist/hub/init/initializer.d.ts +34 -0
- package/dist/hub/init/initializer.js +504 -0
- package/dist/hub/init/initializer.js.map +1 -0
- package/dist/hub/init/inventory.d.ts +17 -0
- package/dist/hub/init/inventory.js +33 -0
- package/dist/hub/init/inventory.js.map +1 -0
- package/dist/hub/init/layout.d.ts +32 -0
- package/dist/hub/init/layout.js +53 -0
- package/dist/hub/init/layout.js.map +1 -0
- package/dist/hub/init/network.d.ts +20 -0
- package/dist/hub/init/network.js +108 -0
- package/dist/hub/init/network.js.map +1 -0
- package/dist/hub/init/plan-digest.d.ts +5 -0
- package/dist/hub/init/plan-digest.js +49 -0
- package/dist/hub/init/plan-digest.js.map +1 -0
- package/dist/hub/init/prompt.d.ts +26 -0
- package/dist/hub/init/prompt.js +111 -0
- package/dist/hub/init/prompt.js.map +1 -0
- package/dist/hub/init/secret-file.d.ts +1 -0
- package/dist/hub/init/secret-file.js +59 -0
- package/dist/hub/init/secret-file.js.map +1 -0
- package/dist/hub/init/text.d.ts +129 -0
- package/dist/hub/init/text.js +251 -0
- package/dist/hub/init/text.js.map +1 -0
- package/dist/hub/init/types.d.ts +142 -0
- package/dist/hub/init/types.js +9 -0
- package/dist/hub/init/types.js.map +1 -0
- package/dist/hub/init/web-audit-import.d.ts +12 -0
- package/dist/hub/init/web-audit-import.js +39 -0
- package/dist/hub/init/web-audit-import.js.map +1 -0
- package/dist/hub/init/web-audit.d.ts +30 -0
- package/dist/hub/init/web-audit.js +42 -0
- package/dist/hub/init/web-audit.js.map +1 -0
- package/dist/hub/init/web-error.d.ts +6 -0
- package/dist/hub/init/web-error.js +8 -0
- package/dist/hub/init/web-error.js.map +1 -0
- package/dist/hub/init/web-http.d.ts +9 -0
- package/dist/hub/init/web-http.js +103 -0
- package/dist/hub/init/web-http.js.map +1 -0
- package/dist/hub/init/web.d.ts +118 -0
- package/dist/hub/init/web.js +428 -0
- package/dist/hub/init/web.js.map +1 -0
- package/dist/hub/init/wizard.d.ts +34 -0
- package/dist/hub/init/wizard.js +580 -0
- package/dist/hub/init/wizard.js.map +1 -0
- package/dist/hub/initialization.d.ts +23 -0
- package/dist/hub/initialization.js +28 -0
- package/dist/hub/initialization.js.map +1 -0
- package/dist/hub/join/client.d.ts +52 -0
- package/dist/hub/join/client.js +136 -0
- package/dist/hub/join/client.js.map +1 -0
- package/dist/hub/join/descriptor.d.ts +52 -0
- package/dist/hub/join/descriptor.js +59 -0
- package/dist/hub/join/descriptor.js.map +1 -0
- package/dist/hub/join/display.d.ts +18 -0
- package/dist/hub/join/display.js +53 -0
- package/dist/hub/join/display.js.map +1 -0
- package/dist/hub/join/fleet-authority.d.ts +2 -0
- package/dist/hub/join/fleet-authority.js +3 -0
- package/dist/hub/join/fleet-authority.js.map +1 -0
- package/dist/hub/join/http.d.ts +8 -0
- package/dist/hub/join/http.js +122 -0
- package/dist/hub/join/http.js.map +1 -0
- package/dist/hub/join/invitation.d.ts +28 -0
- package/dist/hub/join/invitation.js +28 -0
- package/dist/hub/join/invitation.js.map +1 -0
- package/dist/hub/join/local-journal.d.ts +84 -0
- package/dist/hub/join/local-journal.js +65 -0
- package/dist/hub/join/local-journal.js.map +1 -0
- package/dist/hub/join/local.d.ts +228 -0
- package/dist/hub/join/local.js +613 -0
- package/dist/hub/join/local.js.map +1 -0
- package/dist/hub/join/private.d.ts +3 -0
- package/dist/hub/join/private.js +46 -0
- package/dist/hub/join/private.js.map +1 -0
- package/dist/hub/join/protocol.d.ts +69 -0
- package/dist/hub/join/protocol.js +96 -0
- package/dist/hub/join/protocol.js.map +1 -0
- package/dist/hub/join/receipt.d.ts +42 -0
- package/dist/hub/join/receipt.js +75 -0
- package/dist/hub/join/receipt.js.map +1 -0
- package/dist/hub/join/service.d.ts +194 -0
- package/dist/hub/join/service.js +631 -0
- package/dist/hub/join/service.js.map +1 -0
- package/dist/hub/join/store.d.ts +134 -0
- package/dist/hub/join/store.js +136 -0
- package/dist/hub/join/store.js.map +1 -0
- package/dist/hub/join/trust.d.ts +19 -0
- package/dist/hub/join/trust.js +94 -0
- package/dist/hub/join/trust.js.map +1 -0
- package/dist/hub/member/agent-mode.d.ts +6 -0
- package/dist/hub/member/agent-mode.js +23 -0
- package/dist/hub/member/agent-mode.js.map +1 -0
- package/dist/hub/member/attachments.d.ts +29 -0
- package/dist/hub/member/attachments.js +107 -0
- package/dist/hub/member/attachments.js.map +1 -0
- package/dist/hub/member/exposure-api.d.ts +89 -0
- package/dist/hub/member/exposure-api.js +66 -0
- package/dist/hub/member/exposure-api.js.map +1 -0
- package/dist/hub/member/exposures.d.ts +123 -0
- package/dist/hub/member/exposures.js +282 -0
- package/dist/hub/member/exposures.js.map +1 -0
- package/dist/hub/member/pairing-api.d.ts +101 -0
- package/dist/hub/member/pairing-api.js +429 -0
- package/dist/hub/member/pairing-api.js.map +1 -0
- package/dist/hub/member/pairing-notices.d.ts +18 -0
- package/dist/hub/member/pairing-notices.js +60 -0
- package/dist/hub/member/pairing-notices.js.map +1 -0
- package/dist/hub/member/quota.d.ts +20 -0
- package/dist/hub/member/quota.js +98 -0
- package/dist/hub/member/quota.js.map +1 -0
- package/dist/hub/member-journal.d.ts +104 -0
- package/dist/hub/member-journal.js +336 -0
- package/dist/hub/member-journal.js.map +1 -0
- package/dist/hub/member-reconciliation.d.ts +14 -0
- package/dist/hub/member-reconciliation.js +97 -0
- package/dist/hub/member-reconciliation.js.map +1 -0
- package/dist/hub/mount.d.ts +50 -0
- package/dist/hub/mount.js +157 -0
- package/dist/hub/mount.js.map +1 -0
- package/dist/hub/pairing-client.d.ts +17 -0
- package/dist/hub/pairing-client.js +108 -0
- package/dist/hub/pairing-client.js.map +1 -0
- package/dist/hub/pairing-notices.d.ts +47 -0
- package/dist/hub/pairing-notices.js +246 -0
- package/dist/hub/pairing-notices.js.map +1 -0
- package/dist/hub/pairing.d.ts +111 -0
- package/dist/hub/pairing.js +526 -0
- package/dist/hub/pairing.js.map +1 -0
- package/dist/hub/policy.d.ts +65 -0
- package/dist/hub/policy.js +154 -0
- package/dist/hub/policy.js.map +1 -0
- package/dist/hub/preview.d.ts +32 -0
- package/dist/hub/preview.js +64 -0
- package/dist/hub/preview.js.map +1 -0
- package/dist/hub/private-files.d.ts +5 -0
- package/dist/hub/private-files.js +44 -0
- package/dist/hub/private-files.js.map +1 -0
- package/dist/hub/profile.d.ts +59 -0
- package/dist/hub/profile.js +73 -0
- package/dist/hub/profile.js.map +1 -0
- package/dist/hub/protocol.d.ts +848 -0
- package/dist/hub/protocol.js +103 -0
- package/dist/hub/protocol.js.map +1 -0
- package/dist/hub/quota.d.ts +24 -0
- package/dist/hub/quota.js +112 -0
- package/dist/hub/quota.js.map +1 -0
- package/dist/hub/representative.d.ts +141 -0
- package/dist/hub/representative.js +528 -0
- package/dist/hub/representative.js.map +1 -0
- package/dist/hub/retention.d.ts +17 -0
- package/dist/hub/retention.js +45 -0
- package/dist/hub/retention.js.map +1 -0
- package/dist/hub/room-read-pacer.d.ts +14 -0
- package/dist/hub/room-read-pacer.js +51 -0
- package/dist/hub/room-read-pacer.js.map +1 -0
- package/dist/hub/rooms.d.ts +127 -0
- package/dist/hub/rooms.js +597 -0
- package/dist/hub/rooms.js.map +1 -0
- package/dist/hub/runtime.d.ts +163 -0
- package/dist/hub/runtime.js +708 -0
- package/dist/hub/runtime.js.map +1 -0
- package/dist/hub/server.d.ts +61 -0
- package/dist/hub/server.js +249 -0
- package/dist/hub/server.js.map +1 -0
- package/dist/hub/service-start.d.ts +17 -0
- package/dist/hub/service-start.js +109 -0
- package/dist/hub/service-start.js.map +1 -0
- package/dist/hub/session-directory-transition.d.ts +48 -0
- package/dist/hub/session-directory-transition.js +118 -0
- package/dist/hub/session-directory-transition.js.map +1 -0
- package/dist/hub/session-epoch.d.ts +16 -0
- package/dist/hub/session-epoch.js +50 -0
- package/dist/hub/session-epoch.js.map +1 -0
- package/dist/hub/sessions.d.ts +66 -0
- package/dist/hub/sessions.js +217 -0
- package/dist/hub/sessions.js.map +1 -0
- package/dist/hub/settings-api.d.ts +50 -0
- package/dist/hub/settings-api.js +92 -0
- package/dist/hub/settings-api.js.map +1 -0
- package/dist/hub/settings-commit.d.ts +108 -0
- package/dist/hub/settings-commit.js +537 -0
- package/dist/hub/settings-commit.js.map +1 -0
- package/dist/hub/settings-directory-ca.d.ts +31 -0
- package/dist/hub/settings-directory-ca.js +115 -0
- package/dist/hub/settings-directory-ca.js.map +1 -0
- package/dist/hub/settings-directory-control.d.ts +58 -0
- package/dist/hub/settings-directory-control.js +117 -0
- package/dist/hub/settings-directory-control.js.map +1 -0
- package/dist/hub/settings-directory-decision.d.ts +465 -0
- package/dist/hub/settings-directory-decision.js +322 -0
- package/dist/hub/settings-directory-decision.js.map +1 -0
- package/dist/hub/settings-directory-host-http.d.ts +9 -0
- package/dist/hub/settings-directory-host-http.js +75 -0
- package/dist/hub/settings-directory-host-http.js.map +1 -0
- package/dist/hub/settings-directory-host-notice-http.d.ts +9 -0
- package/dist/hub/settings-directory-host-notice-http.js +78 -0
- package/dist/hub/settings-directory-host-notice-http.js.map +1 -0
- package/dist/hub/settings-directory-host-notices.d.ts +11 -0
- package/dist/hub/settings-directory-host-notices.js +39 -0
- package/dist/hub/settings-directory-host-notices.js.map +1 -0
- package/dist/hub/settings-directory-http.d.ts +33 -0
- package/dist/hub/settings-directory-http.js +109 -0
- package/dist/hub/settings-directory-http.js.map +1 -0
- package/dist/hub/settings-directory-mount.d.ts +24 -0
- package/dist/hub/settings-directory-mount.js +77 -0
- package/dist/hub/settings-directory-mount.js.map +1 -0
- package/dist/hub/settings-directory-notices.d.ts +61 -0
- package/dist/hub/settings-directory-notices.js +132 -0
- package/dist/hub/settings-directory-notices.js.map +1 -0
- package/dist/hub/settings-directory-proof.d.ts +77 -0
- package/dist/hub/settings-directory-proof.js +313 -0
- package/dist/hub/settings-directory-proof.js.map +1 -0
- package/dist/hub/settings-directory-recovery-intent.d.ts +13 -0
- package/dist/hub/settings-directory-recovery-intent.js +29 -0
- package/dist/hub/settings-directory-recovery-intent.js.map +1 -0
- package/dist/hub/settings-directory-recovery.d.ts +45 -0
- package/dist/hub/settings-directory-recovery.js +178 -0
- package/dist/hub/settings-directory-recovery.js.map +1 -0
- package/dist/hub/settings-directory-runtime.d.ts +17 -0
- package/dist/hub/settings-directory-runtime.js +2 -0
- package/dist/hub/settings-directory-runtime.js.map +1 -0
- package/dist/hub/settings-directory-save.d.ts +37 -0
- package/dist/hub/settings-directory-save.js +175 -0
- package/dist/hub/settings-directory-save.js.map +1 -0
- package/dist/hub/settings-web-address-control.d.ts +49 -0
- package/dist/hub/settings-web-address-control.js +99 -0
- package/dist/hub/settings-web-address-control.js.map +1 -0
- package/dist/hub/settings-web-address-decision.d.ts +91 -0
- package/dist/hub/settings-web-address-decision.js +163 -0
- package/dist/hub/settings-web-address-decision.js.map +1 -0
- package/dist/hub/settings-web-address-http.d.ts +9 -0
- package/dist/hub/settings-web-address-http.js +74 -0
- package/dist/hub/settings-web-address-http.js.map +1 -0
- package/dist/hub/settings-web-address-network.d.ts +2 -0
- package/dist/hub/settings-web-address-network.js +25 -0
- package/dist/hub/settings-web-address-network.js.map +1 -0
- package/dist/hub/settings-web-address-policy.d.ts +27 -0
- package/dist/hub/settings-web-address-policy.js +47 -0
- package/dist/hub/settings-web-address-policy.js.map +1 -0
- package/dist/hub/settings-web-address.d.ts +64 -0
- package/dist/hub/settings-web-address.js +226 -0
- package/dist/hub/settings-web-address.js.map +1 -0
- package/dist/hub/socket.d.ts +24 -0
- package/dist/hub/socket.js +79 -0
- package/dist/hub/socket.js.map +1 -0
- package/dist/hub/store.d.ts +87 -0
- package/dist/hub/store.js +108 -0
- package/dist/hub/store.js.map +1 -0
- package/dist/hub/tls.d.ts +31 -0
- package/dist/hub/tls.js +135 -0
- package/dist/hub/tls.js.map +1 -0
- package/dist/hub/types.d.ts +421 -0
- package/dist/hub/types.js +2 -0
- package/dist/hub/types.js.map +1 -0
- package/dist/hub/validation.d.ts +33 -0
- package/dist/hub/validation.js +136 -0
- package/dist/hub/validation.js.map +1 -0
- package/dist/hub/version-floor.d.ts +10 -0
- package/dist/hub/version-floor.js +45 -0
- package/dist/hub/version-floor.js.map +1 -0
- package/dist/hub-browser-certificate-policy.d.ts +31 -0
- package/dist/hub-browser-certificate-policy.js +25 -0
- package/dist/hub-browser-certificate-policy.js.map +1 -0
- package/dist/hub-host-settings.d.ts +48 -0
- package/dist/hub-host-settings.js +85 -0
- package/dist/hub-host-settings.js.map +1 -0
- package/dist/hub-membership-settings.d.ts +6 -0
- package/dist/hub-membership-settings.js +21 -0
- package/dist/hub-membership-settings.js.map +1 -0
- package/dist/hub-mode.d.ts +15 -0
- package/dist/hub-mode.js +17 -0
- package/dist/hub-mode.js.map +1 -0
- package/dist/hub-pairing-summary.d.ts +50 -0
- package/dist/hub-pairing-summary.js +39 -0
- package/dist/hub-pairing-summary.js.map +1 -0
- package/dist/hub-report-target.d.ts +32 -0
- package/dist/hub-report-target.js +33 -0
- package/dist/hub-report-target.js.map +1 -0
- package/dist/hub-retention-policy.d.ts +14 -0
- package/dist/hub-retention-policy.js +15 -0
- package/dist/hub-retention-policy.js.map +1 -0
- package/dist/install-user-systemd.d.ts +20 -0
- package/dist/install-user-systemd.js +55 -0
- package/dist/install-user-systemd.js.map +1 -0
- package/dist/instance-config-impact.js +9 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +42 -4
- package/dist/instance-lifecycle.js +460 -202
- 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/launchd-service-domain.d.ts +5 -0
- package/dist/launchd-service-domain.js +21 -0
- package/dist/launchd-service-domain.js.map +1 -0
- package/dist/linux-launchers.d.ts +88 -0
- package/dist/linux-launchers.js +296 -0
- package/dist/linux-launchers.js.map +1 -0
- 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 +402 -14
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +14 -1
- package/dist/login-controller.js +31 -1
- package/dist/login-controller.js.map +1 -1
- package/dist/login-flows.d.ts +12 -8
- package/dist/login-flows.js +34 -16
- package/dist/login-flows.js.map +1 -1
- package/dist/login-manager.d.ts +2 -2
- package/dist/login-manager.js +3 -2
- package/dist/login-manager.js.map +1 -1
- package/dist/login-window-lock.d.ts +2 -1
- package/dist/login-window-lock.js.map +1 -1
- package/dist/ls-rows.d.ts +1 -1
- package/dist/ls-rows.js +3 -4
- package/dist/ls-rows.js.map +1 -1
- package/dist/machine-accounts.d.ts +110 -0
- package/dist/machine-accounts.js +229 -0
- package/dist/machine-accounts.js.map +1 -0
- package/dist/machine-signins.d.ts +89 -0
- package/dist/machine-signins.js +182 -0
- package/dist/machine-signins.js.map +1 -0
- 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 +13 -0
- package/dist/native-instance-api.js +217 -0
- package/dist/native-instance-api.js.map +1 -0
- package/dist/native-instance-input.d.ts +87 -0
- package/dist/native-instance-input.js +59 -0
- package/dist/native-instance-input.js.map +1 -0
- package/dist/native-instance-registry.d.ts +38 -0
- package/dist/native-instance-registry.js +129 -0
- package/dist/native-instance-registry.js.map +1 -0
- package/dist/native-mcp.d.ts +43 -0
- package/dist/native-mcp.js +291 -0
- package/dist/native-mcp.js.map +1 -0
- package/dist/native-model-catalog.d.ts +25 -0
- package/dist/native-model-catalog.js +181 -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 +73 -0
- package/dist/native-pane-lifecycle.js +239 -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 +592 -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 +8 -0
- package/dist/needs-you-hub.js +31 -5
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +80 -3
- package/dist/needs-you.js +46 -3
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +3 -3
- package/dist/office-share-page.js.map +1 -1
- package/dist/office-share.d.ts +28 -2
- package/dist/office-share.js +32 -3
- package/dist/office-share.js.map +1 -1
- package/dist/office-talk.d.ts +26 -0
- package/dist/office-talk.js +50 -0
- package/dist/office-talk.js.map +1 -0
- package/dist/outbound-handlers.d.ts +30 -2
- package/dist/outbound-handlers.js +120 -4
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +79 -1
- package/dist/outbound-schemas.js +37 -14
- 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/pane-quota-history.d.ts +2 -0
- package/dist/pane-quota-history.js +20 -0
- package/dist/pane-quota-history.js.map +1 -1
- package/dist/pause-marker.d.ts +1 -1
- package/dist/pause-marker.js +1 -1
- package/dist/pause-marker.js.map +1 -1
- package/dist/profile-signins.d.ts +107 -0
- package/dist/profile-signins.js +249 -0
- package/dist/profile-signins.js.map +1 -0
- package/dist/public-web-gateway.js +17 -1
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +16 -0
- package/dist/public-web-link.js +21 -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 +6 -0
- package/dist/quickstart.js +31 -4
- package/dist/quickstart.js.map +1 -1
- package/dist/quiet-run.d.ts +31 -0
- package/dist/quiet-run.js +50 -0
- package/dist/quiet-run.js.map +1 -0
- package/dist/runtime-api.d.ts +23 -0
- package/dist/runtime-api.js +413 -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-autostart.d.ts +61 -0
- package/dist/runtime-autostart.js +161 -0
- package/dist/runtime-autostart.js.map +1 -0
- package/dist/runtime-background.d.ts +200 -0
- package/dist/runtime-background.js +480 -0
- package/dist/runtime-background.js.map +1 -0
- package/dist/runtime-build-info.d.ts +10 -0
- package/dist/runtime-build-info.js +64 -0
- package/dist/runtime-build-info.js.map +1 -0
- package/dist/runtime-bundle.d.ts +22 -0
- package/dist/runtime-bundle.js +158 -0
- package/dist/runtime-bundle.js.map +1 -0
- package/dist/runtime-cli-background.d.ts +92 -0
- package/dist/runtime-cli-background.js +336 -0
- package/dist/runtime-cli-background.js.map +1 -0
- package/dist/runtime-cli-install.d.ts +295 -0
- package/dist/runtime-cli-install.js +869 -0
- package/dist/runtime-cli-install.js.map +1 -0
- package/dist/runtime-cli.d.ts +21 -0
- package/dist/runtime-cli.js +578 -0
- package/dist/runtime-cli.js.map +1 -0
- package/dist/runtime-client-store.d.ts +86 -0
- package/dist/runtime-client-store.js +392 -0
- package/dist/runtime-client-store.js.map +1 -0
- package/dist/runtime-client.d.ts +258 -0
- package/dist/runtime-client.js +1353 -0
- package/dist/runtime-client.js.map +1 -0
- package/dist/runtime-connection.d.ts +22 -0
- package/dist/runtime-connection.js +93 -0
- package/dist/runtime-connection.js.map +1 -0
- package/dist/runtime-coordinator.d.ts +201 -0
- package/dist/runtime-coordinator.js +1514 -0
- package/dist/runtime-coordinator.js.map +1 -0
- package/dist/runtime-credential-profiles.d.ts +89 -0
- package/dist/runtime-credential-profiles.js +304 -0
- package/dist/runtime-credential-profiles.js.map +1 -0
- package/dist/runtime-enroll-notice.d.ts +4 -0
- package/dist/runtime-enroll-notice.js +21 -0
- package/dist/runtime-enroll-notice.js.map +1 -0
- package/dist/runtime-enrollment.d.ts +21 -0
- package/dist/runtime-enrollment.js +52 -0
- package/dist/runtime-enrollment.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-install.d.ts +50 -0
- package/dist/runtime-install.js +189 -0
- package/dist/runtime-install.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 +9 -0
- package/dist/runtime-pane-boot.js +47 -0
- package/dist/runtime-pane-boot.js.map +1 -0
- package/dist/runtime-pane-codex-index.d.ts +10 -0
- package/dist/runtime-pane-codex-index.js +151 -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 +63 -0
- package/dist/runtime-pane-host.js +467 -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 +47 -0
- package/dist/runtime-pane-link.js +338 -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 +18 -0
- package/dist/runtime-pane-mcp-relay.js +80 -0
- package/dist/runtime-pane-mcp-relay.js.map +1 -0
- package/dist/runtime-pane-mcp.d.ts +55 -0
- package/dist/runtime-pane-mcp.js +153 -0
- package/dist/runtime-pane-mcp.js.map +1 -0
- package/dist/runtime-pane-native.d.ts +75 -0
- package/dist/runtime-pane-native.js +114 -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 +144 -0
- package/dist/runtime-pane-port.js +574 -0
- package/dist/runtime-pane-port.js.map +1 -0
- package/dist/runtime-pane-private.d.ts +16 -0
- package/dist/runtime-pane-private.js +76 -0
- package/dist/runtime-pane-private.js.map +1 -0
- package/dist/runtime-pane-private.ps1 +81 -0
- package/dist/runtime-pane-process.d.ts +4 -0
- package/dist/runtime-pane-process.js +117 -0
- package/dist/runtime-pane-process.js.map +1 -0
- package/dist/runtime-pane-protocol.d.ts +182 -0
- package/dist/runtime-pane-protocol.js +217 -0
- package/dist/runtime-pane-protocol.js.map +1 -0
- package/dist/runtime-pane-quota-history.d.ts +6 -0
- package/dist/runtime-pane-quota-history.js +44 -0
- package/dist/runtime-pane-quota-history.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 +16 -0
- package/dist/runtime-pane-service.js +256 -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 +43 -0
- package/dist/runtime-pane-store.js +176 -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 +50 -0
- package/dist/runtime-pane-transcript.js +666 -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 +167 -0
- package/dist/runtime-pane-worker.js.map +1 -0
- package/dist/runtime-profile-ownership.d.ts +66 -0
- package/dist/runtime-profile-ownership.js +391 -0
- package/dist/runtime-profile-ownership.js.map +1 -0
- package/dist/runtime-protocol.d.ts +340 -0
- package/dist/runtime-protocol.js +179 -0
- package/dist/runtime-protocol.js.map +1 -0
- package/dist/runtime-remote-accounts.d.ts +209 -0
- package/dist/runtime-remote-accounts.js +714 -0
- package/dist/runtime-remote-accounts.js.map +1 -0
- package/dist/runtime-remote-setup.d.ts +108 -0
- package/dist/runtime-remote-setup.js +532 -0
- package/dist/runtime-remote-setup.js.map +1 -0
- package/dist/runtime-signin-transport.d.ts +39 -0
- package/dist/runtime-signin-transport.js +111 -0
- package/dist/runtime-signin-transport.js.map +1 -0
- package/dist/runtime-signin.d.ts +132 -0
- package/dist/runtime-signin.js +290 -0
- package/dist/runtime-signin.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-update-activity.d.ts +21 -0
- package/dist/runtime-update-activity.js +51 -0
- package/dist/runtime-update-activity.js.map +1 -0
- package/dist/runtime-update-artifact.d.ts +31 -0
- package/dist/runtime-update-artifact.js +252 -0
- package/dist/runtime-update-artifact.js.map +1 -0
- package/dist/runtime-update-attention.d.ts +4 -0
- package/dist/runtime-update-attention.js +11 -0
- package/dist/runtime-update-attention.js.map +1 -0
- package/dist/runtime-update-controller.d.ts +86 -0
- package/dist/runtime-update-controller.js +743 -0
- package/dist/runtime-update-controller.js.map +1 -0
- package/dist/runtime-update-install.d.ts +31 -0
- package/dist/runtime-update-install.js +205 -0
- package/dist/runtime-update-install.js.map +1 -0
- package/dist/runtime-update-ipc.d.ts +42 -0
- package/dist/runtime-update-ipc.js +144 -0
- package/dist/runtime-update-ipc.js.map +1 -0
- package/dist/runtime-update-journal.d.ts +49 -0
- package/dist/runtime-update-journal.js +128 -0
- package/dist/runtime-update-journal.js.map +1 -0
- package/dist/runtime-update-lock.d.ts +48 -0
- package/dist/runtime-update-lock.js +232 -0
- package/dist/runtime-update-lock.js.map +1 -0
- package/dist/runtime-update-owners.d.ts +29 -0
- package/dist/runtime-update-owners.js +240 -0
- package/dist/runtime-update-owners.js.map +1 -0
- package/dist/runtime-update-protocol.d.ts +15 -0
- package/dist/runtime-update-protocol.js +13 -0
- package/dist/runtime-update-protocol.js.map +1 -0
- package/dist/runtime-update-status.d.ts +30 -0
- package/dist/runtime-update-status.js +31 -0
- package/dist/runtime-update-status.js.map +1 -0
- package/dist/runtime-windows-bridge.d.ts +42 -0
- package/dist/runtime-windows-bridge.js +167 -0
- package/dist/runtime-windows-bridge.js.map +1 -0
- package/dist/scheduler/db.d.ts +3 -0
- package/dist/scheduler/db.js +4 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-text.js +1 -1
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +4 -0
- package/dist/scheduler/task-board.js +9 -3
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/scheduler/task-liveness.d.ts +34 -0
- package/dist/scheduler/task-liveness.js +49 -0
- package/dist/scheduler/task-liveness.js.map +1 -0
- package/dist/selection-card.d.ts +4 -3
- package/dist/selection-card.js +2 -1
- package/dist/selection-card.js.map +1 -1
- package/dist/service-drain.d.ts +19 -0
- package/dist/service-drain.js +64 -0
- package/dist/service-drain.js.map +1 -0
- package/dist/service-installer.d.ts +7 -2
- package/dist/service-installer.js +24 -12
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +37 -2
- package/dist/settings-api.js +866 -12
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +7 -0
- package/dist/settings-baseline.js +3 -1
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.d.ts +7 -3
- package/dist/settings-change.js +128 -30
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +67 -7
- package/dist/settings-confirmation.js +68 -15
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +26 -0
- package/dist/settings-effect.js +317 -5
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +37 -0
- package/dist/settings-http-confirmation.js +162 -15
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-request-capability.d.ts +14 -0
- package/dist/settings-request-capability.js +12 -1
- 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-summary.d.ts +24 -0
- package/dist/settings-summary.js +42 -0
- package/dist/settings-summary.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-host.js +1 -1
- package/dist/setup-host.js.map +1 -1
- package/dist/setup-i18n.js +3 -0
- package/dist/setup-i18n.js.map +1 -1
- package/dist/setup-wizard.js +4 -2
- package/dist/setup-wizard.js.map +1 -1
- package/dist/signin-keepalive.d.ts +206 -0
- package/dist/signin-keepalive.js +681 -0
- package/dist/signin-keepalive.js.map +1 -0
- package/dist/structured-signin-transport.d.ts +20 -2
- package/dist/structured-signin-transport.js +57 -2
- package/dist/structured-signin-transport.js.map +1 -1
- package/dist/structured-signin.d.ts +11 -2
- package/dist/structured-signin.js +5 -7
- package/dist/structured-signin.js.map +1 -1
- package/dist/task-board-tool.d.ts +2 -1
- package/dist/task-board-tool.js +76 -7
- package/dist/task-board-tool.js.map +1 -1
- package/dist/tmux-binary.d.ts +59 -0
- package/dist/tmux-binary.js +189 -0
- package/dist/tmux-binary.js.map +1 -0
- package/dist/tmux-control.d.ts +2 -1
- package/dist/tmux-control.js +4 -4
- package/dist/tmux-control.js.map +1 -1
- package/dist/tmux-exec-helper.js +32 -1
- package/dist/tmux-exec-helper.js.map +1 -1
- package/dist/tmux-legacy.d.ts +94 -0
- package/dist/tmux-legacy.js +309 -0
- package/dist/tmux-legacy.js.map +1 -0
- package/dist/tmux-manager.d.ts +11 -4
- package/dist/tmux-manager.js +61 -40
- 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/tmux-read.js +4 -3
- package/dist/tmux-read.js.map +1 -1
- package/dist/tmux-rollback.d.ts +42 -0
- package/dist/tmux-rollback.js +78 -0
- package/dist/tmux-rollback.js.map +1 -0
- package/dist/tmux-server.d.ts +102 -0
- package/dist/tmux-server.js +248 -0
- package/dist/tmux-server.js.map +1 -0
- package/dist/tool-permissions.js +2 -1
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +9 -5
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +10 -2
- package/dist/transcript-delta-reader.js +38 -9
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/transcript-monitor.d.ts +3 -0
- package/dist/transcript-monitor.js +68 -54
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-needles.d.ts +42 -0
- package/dist/transcript-needles.js +166 -0
- package/dist/transcript-needles.js.map +1 -0
- package/dist/transcript-records.d.ts +22 -0
- package/dist/transcript-records.js +144 -0
- package/dist/transcript-records.js.map +1 -0
- package/dist/transcript-sources.d.ts +5 -0
- package/dist/transcript-sources.js +11 -79
- package/dist/transcript-sources.js.map +1 -1
- package/dist/types.d.ts +39 -0
- package/dist/ui/account-identity.js +29 -0
- package/dist/ui/accounts-keepalive.js +111 -0
- package/dist/ui/accounts-manage.js +256 -0
- package/dist/ui/accounts-view.js +481 -0
- package/dist/ui/agent-details-settings.js +326 -0
- package/dist/ui/agent-export-dialog.js +170 -0
- package/dist/ui/agent-export-strings.js +81 -0
- package/dist/ui/agent-instructions-field.js +69 -0
- package/dist/ui/agent-page-strings.js +148 -0
- package/dist/ui/agent-proposals.js +90 -0
- package/dist/ui/agent-runtime-settings.js +70 -0
- package/dist/ui/agent-runtime.js +124 -0
- package/dist/ui/backend-signin.js +109 -37
- package/dist/ui/chat-ambient.js +1 -1
- package/dist/ui/chat-md-strings.js +3 -9
- package/dist/ui/chat-quote.js +20 -17
- package/dist/ui/chat-render.js +3 -682
- package/dist/ui/chat-store.js +39 -7
- package/dist/ui/chat-strings.js +3 -285
- package/dist/ui/chat-thread.js +3 -969
- package/dist/ui/chat-time.js +3 -80
- package/dist/ui/chat-tour.js +2 -2
- package/dist/ui/chat-workspace-navigation.js +125 -0
- package/dist/ui/chat-workspace.js +255 -0
- package/dist/ui/cli-caps.js +15 -0
- package/dist/ui/cli-picker.js +42 -0
- package/dist/ui/credential-profile-select.js +54 -0
- package/dist/ui/effort-field-strings.js +18 -0
- package/dist/ui/fleet-office-dialogue.d.ts +30 -0
- package/dist/ui/fleet-office-dialogue.js +382 -0
- package/dist/ui/fleet-office-levels.js +17 -1
- package/dist/ui/fleet-office-pack.d.ts +19 -1
- package/dist/ui/fleet-office-pack.js +177 -24
- package/dist/ui/fleet-office-skin.js +23 -5
- package/dist/ui/fleet-office-store.js +13 -3
- package/dist/ui/fleet-office-zones.js +124 -9
- package/dist/ui/fleet-office.js +203 -19
- package/dist/ui/fleet-task-card.js +8 -4
- package/dist/ui/fleet-task-common.js +2 -2
- package/dist/ui/fleet-task-menu.js +188 -0
- package/dist/ui/fleet-task-stats.js +124 -0
- package/dist/ui/fleet-task-view.js +340 -0
- package/dist/ui/fleet-tasks.js +125 -39
- package/dist/ui/general-location.js +85 -0
- package/dist/ui/host-install.js +290 -0
- package/dist/ui/html-attachment.js +3 -40
- package/dist/ui/hub-agent-copy.js +23 -0
- package/dist/ui/hub-attachments.js +90 -0
- package/dist/ui/hub-button-actions.js +65 -0
- package/dist/ui/hub-chat-store.js +168 -0
- package/dist/ui/hub-chat-strings.js +79 -0
- package/dist/ui/hub-client.js +410 -0
- package/dist/ui/hub-company-join-strings.js +77 -0
- package/dist/ui/hub-company-join.js +165 -0
- package/dist/ui/hub-directory-editor-strings.js +56 -0
- package/dist/ui/hub-directory-editor.js +163 -0
- package/dist/ui/hub-directory-notice-strings.js +28 -0
- package/dist/ui/hub-directory-notices.js +66 -0
- package/dist/ui/hub-grant-strings.js +13 -0
- package/dist/ui/hub-group-policy.js +183 -0
- package/dist/ui/hub-group-strings.js +110 -0
- package/dist/ui/hub-host-security-notices.js +28 -0
- package/dist/ui/hub-join-one-strings.js +131 -0
- package/dist/ui/hub-owner-strings.js +56 -0
- package/dist/ui/hub-pairing-progress-strings.js +15 -0
- package/dist/ui/hub-preview.js +101 -0
- package/dist/ui/hub-provider-guidance.js +31 -0
- package/dist/ui/hub-quick-pairing.js +209 -0
- package/dist/ui/hub-quick-strings.js +43 -0
- package/dist/ui/hub-quota.js +85 -0
- package/dist/ui/hub-read-strings.js +7 -0
- package/dist/ui/hub-strings.js +168 -0
- package/dist/ui/hub-switcher.js +27 -0
- package/dist/ui/hub-this-hub.js +113 -0
- package/dist/ui/hub-welcome.js +102 -0
- package/dist/ui/image-lightbox.js +11 -3
- package/dist/ui/machine-signin.js +56 -0
- package/dist/ui/model-picker.js +18 -14
- package/dist/ui/native-instance-settings.js +81 -0
- package/dist/ui/native-pane-recovery.js +45 -0
- package/dist/ui/office-share-page.js +4 -2
- package/dist/ui/panel-chat.js +245 -116
- package/dist/ui/panel-details.js +46 -17
- package/dist/ui/panel-fleet.js +113 -20
- package/dist/ui/panel-hub.js +974 -0
- package/dist/ui/panel-log.js +9 -6
- package/dist/ui/panel-needs.js +175 -9
- package/dist/ui/panel-runtimes.js +645 -0
- package/dist/ui/panel-settings.js +325 -213
- package/dist/ui/panel-windows-agent.js +87 -0
- package/dist/ui/panel-windows-cli.js +189 -0
- package/dist/ui/preview-pages.js +3 -41
- package/dist/ui/preview-panel-actions.js +3 -161
- package/dist/ui/preview-panel.js +11 -550
- package/dist/ui/preview-versions.js +3 -155
- package/dist/ui/preview.js +3 -476
- package/dist/ui/provider-marks.js +83 -0
- package/dist/ui/runtime-catalog.js +55 -0
- package/dist/ui/runtime-cli-install.js +214 -0
- package/dist/ui/runtime-commands.d.ts +6 -0
- package/dist/ui/runtime-commands.js +92 -0
- package/dist/ui/runtime-update-commands.d.ts +2 -0
- package/dist/ui/runtime-update-commands.js +11 -0
- package/dist/ui/runtime-update-status.js +53 -0
- package/dist/ui/search-dialog.js +3 -0
- package/dist/ui/settings-access-overview.js +188 -0
- package/dist/ui/settings-access-strings.js +42 -0
- package/dist/ui/settings-agent-filters.js +94 -0
- package/dist/ui/settings-appearance.js +122 -23
- package/dist/ui/settings-apply.js +12 -5
- package/dist/ui/settings-build-version.js +35 -0
- package/dist/ui/settings-catalog.js +68 -16
- package/dist/ui/settings-confirm.js +112 -14
- package/dist/ui/settings-devices.js +283 -0
- package/dist/ui/settings-dialogs.js +360 -140
- package/dist/ui/settings-guests.js +25 -11
- package/dist/ui/settings-hub-browser-certificate.js +76 -0
- package/dist/ui/settings-hub-company-join.js +270 -0
- package/dist/ui/settings-hub-connection.js +172 -0
- package/dist/ui/settings-hub-directory.js +29 -0
- package/dist/ui/settings-hub-membership.js +93 -0
- package/dist/ui/settings-hub-preview.js +74 -0
- package/dist/ui/settings-hub-retention.js +54 -0
- package/dist/ui/settings-hub-run.js +61 -0
- package/dist/ui/settings-hub-section.js +67 -0
- package/dist/ui/settings-hub-setup-strings.js +70 -0
- package/dist/ui/settings-hub-setup.js +195 -0
- package/dist/ui/settings-hub.js +276 -0
- package/dist/ui/settings-layout.js +246 -0
- package/dist/ui/settings-level-titles.js +73 -0
- package/dist/ui/settings-model.js +26 -2
- package/dist/ui/settings-named-test.js +2 -2
- package/dist/ui/settings-outside.js +310 -0
- package/dist/ui/settings-quota-notice.js +3 -3
- package/dist/ui/settings-registry.js +26 -5
- package/dist/ui/settings-restart-strings.js +17 -0
- package/dist/ui/settings-revoke-strings.js +28 -0
- package/dist/ui/settings-shared-strings.js +161 -0
- package/dist/ui/settings-shared.js +354 -0
- package/dist/ui/settings-shortcuts.js +65 -0
- package/dist/ui/settings-strings.js +127 -46
- package/dist/ui/settings-web-authority.js +27 -14
- package/dist/ui/shared/access-overview.css +48 -0
- package/dist/ui/shared/accounts-keepalive.css +12 -0
- package/dist/ui/shared/accounts.css +88 -0
- package/dist/ui/shared/agend-auth.js +8 -1
- package/dist/ui/shared/app-ctx.js +22 -1
- package/dist/ui/shared/app-i18n.js +17 -16
- package/dist/ui/shared/app-nav.js +34 -11
- package/dist/ui/shared/app-route.js +12 -3
- package/dist/ui/shared/app-session.js +17 -12
- package/dist/ui/shared/app-shell.js +454 -55
- package/dist/ui/shared/app-store.js +3 -0
- package/dist/ui/shared/app-stream.js +3 -1
- package/dist/ui/shared/app.css +1586 -10
- package/dist/ui/shared/app.js +28 -3
- package/dist/ui/shared/chat-composer.js +74 -0
- package/dist/ui/shared/chat-md-strings.js +9 -0
- package/dist/ui/shared/chat-render.js +694 -0
- package/dist/ui/shared/chat-strings.js +333 -0
- package/dist/ui/shared/chat-thread.js +969 -0
- package/dist/ui/shared/chat-time.js +80 -0
- package/dist/ui/shared/chat-work-bar.css +5 -0
- package/dist/ui/shared/chat-workspace-memory.js +14 -0
- package/dist/ui/shared/chat-workspace-model.js +76 -0
- package/dist/ui/shared/device-roles.js +27 -0
- package/dist/ui/shared/header-tools.js +9 -9
- package/dist/ui/shared/host-install.css +10 -0
- package/dist/ui/shared/html-attachment.js +42 -0
- package/dist/ui/shared/hub-chat.css +98 -0
- package/dist/ui/shared/hub-groups.css +28 -0
- package/dist/ui/shared/hub-owner.css +57 -0
- package/dist/ui/shared/hub-quota.css +8 -0
- package/dist/ui/shared/hub-signin.css +24 -0
- package/dist/ui/shared/hub.css +78 -0
- package/dist/ui/shared/instance-nav.js +44 -8
- package/dist/ui/shared/instance-switch.js +12 -4
- package/dist/ui/shared/machine-name.js +13 -0
- package/dist/ui/shared/model-picker.css +13 -1
- package/dist/ui/shared/page-head.js +8 -0
- package/dist/ui/shared/panel-view.js +39 -26
- package/dist/ui/shared/preview-pages.js +41 -0
- package/dist/ui/shared/preview-panel-actions.js +168 -0
- package/dist/ui/shared/preview-panel.js +576 -0
- package/dist/ui/shared/preview-versions.js +155 -0
- package/dist/ui/shared/preview.js +476 -0
- package/dist/ui/shared/qrcode.module.js +2237 -0
- package/dist/ui/shared/runtime-install.css +55 -0
- package/dist/ui/shared/settings-width.js +31 -0
- package/dist/ui/shared/side-rail.js +15 -0
- package/dist/ui/shared/signin.js +392 -34
- package/dist/ui/shared/task-board.css +95 -0
- package/dist/ui/shared/tokens.css +1 -0
- package/dist/ui/shared/ui-dialog.js +2 -2
- package/dist/ui/shared/ui-menu.js +36 -10
- package/dist/ui/shared/usage-dialog.js +3 -72
- package/dist/ui/shared/usage-meter.js +84 -0
- package/dist/ui/shared/vendor/qrcode-generator.LICENSE +27 -0
- package/dist/ui/shared/vendor/vendor.json +19 -2
- package/dist/ui/shared/view-roster-store.js +8 -0
- package/dist/ui/shared/view-strings.js +14 -4
- package/dist/ui/shared/web-authorize.js +53 -3
- package/dist/ui/shared/workspace-follow.css +19 -0
- package/dist/ui/shared/workspace.css +20 -0
- package/dist/ui/signin.html +41 -8
- package/dist/ui/structured-signin.js +67 -17
- package/dist/ui/windows-agents-nav.js +2 -0
- package/dist/ui/windows-cli-catalog.js +108 -0
- package/dist/ui/workspace-follow-strings.js +28 -0
- package/dist/ui/workspace-panel.js +378 -0
- package/dist/ui/workspace-strings.js +35 -0
- package/dist/unattended-install.js +2 -1
- package/dist/unattended-install.js.map +1 -1
- package/dist/update-dispatch.d.ts +62 -0
- package/dist/update-dispatch.js +69 -2
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-install.d.ts +7 -0
- package/dist/update-install.js +23 -0
- package/dist/update-install.js.map +1 -1
- package/dist/update-marker.d.ts +2 -0
- package/dist/update-marker.js.map +1 -1
- package/dist/usage/providers.d.ts +2 -0
- package/dist/usage/providers.js +20 -19
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.d.ts +1 -1
- package/dist/usage/usage-api.js +3 -10
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/view-api.js +5 -7
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +167 -4
- package/dist/web-api.js +1579 -266
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +41 -3
- package/dist/web-backend-login.js +25 -17
- package/dist/web-backend-login.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-commands.d.ts +10 -1
- package/dist/web-commands.js +1 -1
- package/dist/web-commands.js.map +1 -1
- package/dist/web-device-login.d.ts +153 -0
- package/dist/web-device-login.js +278 -0
- package/dist/web-device-login.js.map +1 -0
- package/dist/web-host-install.d.ts +127 -0
- package/dist/web-host-install.js +165 -0
- package/dist/web-host-install.js.map +1 -0
- package/dist/web-login.d.ts +35 -1
- package/dist/web-login.js +51 -5
- package/dist/web-login.js.map +1 -1
- package/dist/web-model-groups.d.ts +40 -0
- package/dist/web-model-groups.js +70 -0
- package/dist/web-model-groups.js.map +1 -0
- package/dist/web-notices.d.ts +9 -0
- package/dist/web-notices.js +19 -0
- package/dist/web-notices.js.map +1 -1
- package/dist/web-office-skins.d.ts +9 -0
- package/dist/web-office-skins.js +16 -1
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-office-store.d.ts +35 -2
- package/dist/web-office-store.js +64 -15
- package/dist/web-office-store.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 +341 -0
- package/dist/web-remote-access.js +801 -0
- package/dist/web-remote-access.js.map +1 -0
- package/dist/web-session.d.ts +63 -0
- package/dist/web-session.js +50 -1
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +3 -1
- package/dist/web-settings-patch.js +4 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +10 -1
- package/dist/web-shell-routes.js +14 -2
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-signin-device.d.ts +16 -0
- package/dist/web-signin-device.js +81 -0
- package/dist/web-signin-device.js.map +1 -0
- package/dist/web-signin-link.d.ts +42 -0
- package/dist/web-signin-link.js +110 -0
- package/dist/web-signin-link.js.map +1 -0
- package/dist/web-terminal.d.ts +11 -30
- package/dist/web-terminal.js +23 -8
- package/dist/web-terminal.js.map +1 -1
- package/dist/web-update.d.ts +1 -0
- package/dist/web-update.js +4 -2
- package/dist/web-update.js.map +1 -1
- package/dist/windows-agents.d.ts +127 -0
- package/dist/windows-agents.js +491 -0
- package/dist/windows-agents.js.map +1 -0
- package/dist/windows-cli-api.d.ts +48 -0
- package/dist/windows-cli-api.js +207 -0
- package/dist/windows-cli-api.js.map +1 -0
- package/dist/windows-cli-providers.d.ts +109 -0
- package/dist/windows-cli-providers.js +396 -0
- package/dist/windows-cli-providers.js.map +1 -0
- package/dist/windows-cli-worker.d.ts +99 -0
- package/dist/windows-cli-worker.js +729 -0
- package/dist/windows-cli-worker.js.map +1 -0
- package/dist/windows-cli.d.ts +130 -0
- package/dist/windows-cli.js +424 -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/dist/windows-shortcuts.d.ts +29 -5
- package/dist/windows-shortcuts.js +52 -9
- package/dist/windows-shortcuts.js.map +1 -1
- package/dist/workspace-file-policy.d.ts +2 -0
- package/dist/workspace-file-policy.js +31 -0
- package/dist/workspace-file-policy.js.map +1 -0
- package/dist/workspace-follow-parse.d.ts +36 -0
- package/dist/workspace-follow-parse.js +208 -0
- package/dist/workspace-follow-parse.js.map +1 -0
- package/dist/workspace-follow-records.d.ts +17 -0
- package/dist/workspace-follow-records.js +88 -0
- package/dist/workspace-follow-records.js.map +1 -0
- package/dist/workspace-follow.d.ts +41 -0
- package/dist/workspace-follow.js +144 -0
- package/dist/workspace-follow.js.map +1 -0
- package/dist/wsl-detect.d.ts +1 -0
- package/dist/wsl-detect.js +20 -0
- package/dist/wsl-detect.js.map +1 -0
- package/dist/yaml-shared-nodes.js +8 -3
- package/dist/yaml-shared-nodes.js.map +1 -1
- package/launcher/agend-install.cjs +15 -2
- package/launcher/launchd-session-type.cjs +14 -0
- package/launcher/postinstall.cjs +27 -2
- package/launcher/tmux-bundle.cjs +263 -0
- package/package.json +16 -5
- package/templates/icons/agend-restart.ico +0 -0
- package/templates/icons/agend.ico +0 -0
- package/templates/launchd.plist.ejs +3 -1
- 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 +81 -0
- package/templates/runtime-assets/xterm-LICENSE +21 -0
- package/templates/runtime-install/install.ps1 +618 -0
- package/templates/windows-shortcuts.ps1 +45 -12
package/dist/fleet-manager.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
import { type SettingsSummaryPresentation } from "./settings-summary.js";
|
|
2
|
+
import { AgentRuntimeChanges } from "./agent-runtime-change.js";
|
|
1
3
|
import { type HumanOrigin } from "./human-delivery-receipts.js";
|
|
4
|
+
import { SettingsConfirmationStore, type SettingsPendingView } from "./settings-confirmation.js";
|
|
5
|
+
import { type GeneralSwitchInput } from "./general-binding.js";
|
|
2
6
|
import { SettingsExecution } from "./settings-transaction.js";
|
|
3
7
|
import { AppIconStore } from "./web-app-icon.js";
|
|
4
8
|
import { type NamedTestResult } from "./tunnel/named-link-test.js";
|
|
5
9
|
import { OfficeShareService } from "./office-share-service.js";
|
|
10
|
+
import { OfficeTalk } from "./office-talk.js";
|
|
6
11
|
import { type OfficeShare } from "./office-share.js";
|
|
7
12
|
import type { PageShare } from "./page-share.js";
|
|
8
13
|
import type { LoginCodeOwner } from "./web-login.js";
|
|
9
14
|
import { type ProfileTicket } from "./runtime-cpu-profile.js";
|
|
10
15
|
import type { CpuProfile } from "./cpu-profile.js";
|
|
16
|
+
import { type IncomingMessage } from "node:http";
|
|
11
17
|
import { type FleetMemory } from "./process-memory.js";
|
|
12
18
|
import { MemoryPressure, type MemoryPressureSnapshot } from "./memory-pressure.js";
|
|
13
19
|
import { ReplyDeduper } from "./reply-dedup.js";
|
|
@@ -19,7 +25,7 @@ import { type TopicDeleteOutcome } from "./instance-topic-delete.js";
|
|
|
19
25
|
import { BackendAvailabilityStore, type AvailabilityProbes, type BackendAvailability } from "./backend-availability.js";
|
|
20
26
|
import { AdapterWorld } from "./adapter-world.js";
|
|
21
27
|
import { CostGuard } from "./cost-guard.js";
|
|
22
|
-
import {
|
|
28
|
+
import { type InstanceClient } from "./channel/ipc-bridge.js";
|
|
23
29
|
import type { AdapterHealthSnapshot, ChannelAdapter, InboundMessage, InboundReaction } from "./channel/types.js";
|
|
24
30
|
import { type BackendCliVersionSnapshot } from "./backend/types.js";
|
|
25
31
|
import { type Logger } from "./logger.js";
|
|
@@ -67,6 +73,10 @@ export declare function applyTaskListCap<T extends {
|
|
|
67
73
|
hint: string;
|
|
68
74
|
} | T[];
|
|
69
75
|
import { type PublicPreviewForUi } from "./web-api.js";
|
|
76
|
+
import { RuntimeInstallService } from "./runtime-install.js";
|
|
77
|
+
import { RuntimeCoordinator } from "./runtime-coordinator.js";
|
|
78
|
+
import { FleetWindowsRuntime, type NativeRuntimePatch } from "./fleet-windows-runtime.js";
|
|
79
|
+
import { NativeMcpSessions } from "./native-mcp.js";
|
|
70
80
|
import { type LogAnswer, type LogQuery } from "./log-service.js";
|
|
71
81
|
import { type ViewHistoryAnswer, type ViewHistoryQuery } from "./view-history.js";
|
|
72
82
|
import { WebChatHistory, type WebChatPost } from "./web-chat-history.js";
|
|
@@ -94,6 +104,7 @@ import { WebSettingsTools } from "./web-settings-tools.js";
|
|
|
94
104
|
import { type Delegation, type TrafficItem } from "./fleet-traffic.js";
|
|
95
105
|
import { type WebUpdateHost } from "./web-update.js";
|
|
96
106
|
import { WebBackendLogins, type SignInTarget } from "./web-backend-login.js";
|
|
107
|
+
import { WebHostInstalls, type HostInstallMode, type HostInstallReporter, type HostInstallStart } from "./web-host-install.js";
|
|
97
108
|
import { BrowserBackendSignIns } from "./browser-backend-signins.js";
|
|
98
109
|
import { type RawConfigPatch } from "./settings-api.js";
|
|
99
110
|
import { type AgentEndpointContext } from "./agent-endpoint.js";
|
|
@@ -107,12 +118,15 @@ import { WakeCoordinator } from "./wake-coordinator.js";
|
|
|
107
118
|
import { TargetQueueWorker } from "./target-queue-worker.js";
|
|
108
119
|
import { resolveDeliveryWorkerMode } from "./types.js";
|
|
109
120
|
import { type WebNeedsItem } from "./needs-you-hub.js";
|
|
121
|
+
import { type SetResult as KeepAliveSetResult } from "./signin-keepalive.js";
|
|
110
122
|
import { type OrgChart } from "./web-org.js";
|
|
111
123
|
import { type MemoryHog } from "./memory-hogs.js";
|
|
112
124
|
import { type CacheReport } from "./cache-service.js";
|
|
113
125
|
import { type WebCommandResult } from "./web-commands.js";
|
|
114
|
-
import { type
|
|
126
|
+
import { type TotpSignInResult } from "./auth-api.js";
|
|
127
|
+
import { type SessionRecord, type WebDeviceRow } from "./web-session.js";
|
|
115
128
|
import { WebNotices } from "./web-notices.js";
|
|
129
|
+
import { WebRemoteAccess } from "./web-remote-access.js";
|
|
116
130
|
import { VERIFIED_SESSION_HOURS, type HumanAuthority, type WebAuthorityRefusal, type WebAuthorityResult, type WebPeer } from "./authority/web-authority.js";
|
|
117
131
|
import { type AuthorityState } from "./authority/authority-state.js";
|
|
118
132
|
import { type SessionAuthorization } from "./authority/session-authorizations.js";
|
|
@@ -123,6 +137,12 @@ import { type ConnectionMetadata, type ConnectionBinding, type BindingProbe, typ
|
|
|
123
137
|
import { type ProviderSecretStatus } from "./provider-secret-registry.js";
|
|
124
138
|
import { ApplyJobStore, type ApplyJob, type ApplyTargetKind, type SelfRestartResult } from "./apply-job.js";
|
|
125
139
|
import { type CarryResult } from "./backend/claude-carry.js";
|
|
140
|
+
import { type AccountsView } from "./accounts-view.js";
|
|
141
|
+
import { type AddResult, type RemoveResult } from "./accounts-profiles.js";
|
|
142
|
+
import { type SignOutResult } from "./accounts-signout.js";
|
|
143
|
+
import { MachineAccounts, type MachineActor, type MachineAccountResult } from "./machine-accounts.js";
|
|
144
|
+
import { MachineSignIns } from "./machine-signins.js";
|
|
145
|
+
import { ProfileSignIns } from "./profile-signins.js";
|
|
126
146
|
import { StormWindow } from "./storm-window.js";
|
|
127
147
|
import { SpawnGate } from "./spawn-gate.js";
|
|
128
148
|
import { BackendOutageTracker } from "./backend-outage.js";
|
|
@@ -210,8 +230,18 @@ export interface ModelCatalog {
|
|
|
210
230
|
note?: string;
|
|
211
231
|
}
|
|
212
232
|
export interface DeliveryOptions {
|
|
233
|
+
/**
|
|
234
|
+
* A Windows instance only: the sender's authority after the handoff (see NativeRuntimeDeliveryOptions.authorityCurrent).
|
|
235
|
+
* stillCurrent fences the handoff itself; this one is rechecked before the Windows process starts.
|
|
236
|
+
*/
|
|
237
|
+
authorityCurrent?: () => boolean;
|
|
213
238
|
/** Explicitly identify agent-to-agent delivery when metadata is unavailable. */
|
|
214
239
|
isCrossInstance?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* The Hub representative's last step (docs/design/hub-representative-agent.md): run after any wake, the idle wait and
|
|
242
|
+
* the storm recheck, immediately before the IPC hand-off. False drops the delivery unsent. Not for Windows agents.
|
|
243
|
+
*/
|
|
244
|
+
beforeInput?: () => Promise<boolean>;
|
|
215
245
|
/** Force or bypass the idle gate. Schedules set this explicitly. */
|
|
216
246
|
waitForIdle?: boolean;
|
|
217
247
|
/** Test/operational override; normal deliveries use the 60 second backstop. */
|
|
@@ -334,7 +364,278 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
334
364
|
/** Live view of lifecycle.daemons — used throughout; not deprecated. */
|
|
335
365
|
get daemons(): Map<string, Daemon>;
|
|
336
366
|
fleetConfig: FleetConfig | null;
|
|
367
|
+
private fleetWindowsRuntime;
|
|
368
|
+
private nativeMcpStore;
|
|
369
|
+
private paneManager;
|
|
370
|
+
private localPaneRelay;
|
|
371
|
+
private openingLocalPane;
|
|
372
|
+
private runtimeHub;
|
|
373
|
+
/**
|
|
374
|
+
* A message the owner must get (a computer joined with an install-command token, so nobody approved it). It is written to `pending-owner-notices.json` FIRST and removed only
|
|
375
|
+
* when a delivery is acknowledged: the platform took the message (the send's promise resolved) or the dashboard's Notices recorded it. So none of these loses it: no place to
|
|
376
|
+
* send it yet (a chat-connected fleet with no General and no primary notice target, adapters not up), a send the platform refuses after it was dispatched, a retry that is
|
|
377
|
+
* refused again, a restart. Each kept notice is tried again every minute until it is acknowledged. The file is private. Capacity is explicit, never silent: past
|
|
378
|
+
* OWNER_NOTICE_CAP undelivered notices the oldest are folded into ONE notice that says how many computers joined without a delivered notice and tells the owner to review
|
|
379
|
+
* Settings → Runtime, so the fact is never dropped. Delivery is at least once: a crash between the send and its acknowledgement can send a notice twice.
|
|
380
|
+
*/
|
|
381
|
+
private ownerNoticeTimer;
|
|
382
|
+
/** One physical send per kept notice at a time: the claim is held until THAT attempt settles (never aged out) and each attempt's callbacks only act on its own claim. */
|
|
383
|
+
private readonly ownerNoticeLive;
|
|
384
|
+
private readonly ownerNoticeInFlight;
|
|
385
|
+
private pendingOwnerNoticesFile;
|
|
386
|
+
private readPendingOwnerNotices;
|
|
387
|
+
private writePendingOwnerNotices;
|
|
388
|
+
static readonly OWNER_NOTICE_CAP = 100;
|
|
389
|
+
/** Past the cap, the oldest are folded into one notice (a count, and where to look); it never silently disappears. */
|
|
390
|
+
private foldOwnerNotices;
|
|
391
|
+
/** Keeps the notice, then tries to deliver it; it stays on disk until a delivery is acknowledged. */
|
|
392
|
+
deliverOwnerNotice(text: string): void;
|
|
393
|
+
private attemptOwnerNotice;
|
|
394
|
+
/** Tries every kept notice that has no attempt in flight (oldest first); returns how many are kept. */
|
|
395
|
+
flushOwnerNotices(): number;
|
|
396
|
+
private scheduleOwnerNoticeFlush;
|
|
397
|
+
private runtimeInstall;
|
|
398
|
+
/** One service for the public installer routes and the administrator API: the hash the dashboard shows is the hash of what is sent. */
|
|
399
|
+
runtimeInstaller(): RuntimeInstallService;
|
|
400
|
+
private runtimeExecutor;
|
|
401
|
+
private runtimeStatusScheduled;
|
|
402
|
+
private readonly reconciledRemoteResults;
|
|
403
|
+
/** Machine credentials are separate from dashboard sessions and per-turn agent capabilities. */
|
|
404
|
+
runtimeCoordinator(): RuntimeCoordinator;
|
|
405
|
+
private runtimeWindowsExecutor;
|
|
406
|
+
/** Per-turn capabilities for native MCP, separate from browser and Linux-agent credentials. */
|
|
407
|
+
nativeMcpSessions(): NativeMcpSessions;
|
|
408
|
+
/** Retire only existing native capabilities; ordinary lifecycle changes do not instantiate the Windows path. */
|
|
409
|
+
invalidateNativeMcp(name: string): void;
|
|
410
|
+
/** The same instance registry and delivery entry point, with a native Windows execution adapter. */
|
|
411
|
+
nativeInstanceRuntime(): FleetWindowsRuntime;
|
|
412
|
+
private agentRuntimeChangeService?;
|
|
413
|
+
agentRuntimeChanges(): AgentRuntimeChanges;
|
|
414
|
+
/** Explicit dashboard opt-in, with the same General confirmation and ordinary topic/Daemon routing. */
|
|
415
|
+
createNativePaneInstance(profile: Record<string, unknown>, channelId: string | undefined, authorized: () => boolean, execution: SettingsExecution): Promise<{
|
|
416
|
+
name: string;
|
|
417
|
+
runtime: "windows";
|
|
418
|
+
agent: import("./windows-agents.js").WindowsAgent;
|
|
419
|
+
}>;
|
|
420
|
+
/** Admin-only settings path: validate first, then close the exact old launch before changing cold fields. */
|
|
421
|
+
updateNativePaneConfig(name: string, patch: Partial<NativeRuntimePatch>, authorized: () => boolean, transaction?: Pick<SettingsExecution, "mutate" | "complete">): Promise<ReturnType<FleetWindowsRuntime["update"]>>;
|
|
422
|
+
/** The local machine's inventory as last used to open its pane relay (status only; never a launch decision). */
|
|
423
|
+
private localPaneInventory;
|
|
424
|
+
private nativeCliStatus;
|
|
425
|
+
private localNativePaneEndpoint;
|
|
426
|
+
/** Persistent ownership is independent of the exec worker's per-turn capabilities. */
|
|
427
|
+
private nativePanes;
|
|
428
|
+
/** Prepare only bundled role files; this neither switches General nor starts a provider process. */
|
|
429
|
+
prepareWindowsGeneralWorkspace(name: string, machineId: string, cli: "codex" | "claude-code", bindingId: string, authorized: () => boolean): Promise<import("./runtime-general-protocol.js").GeneralWorkspaceReceipt>;
|
|
430
|
+
/** S3c (S-55): the member's exposure API, attached by S5's member composition (null: no Hub member here). */
|
|
431
|
+
private hubMemberExposureApi;
|
|
432
|
+
hubMemberExposures(): import("./hub/member/exposure-api.js").HubMemberExposureApi | null;
|
|
433
|
+
attachHubMemberExposures(api: import("./hub/member/exposure-api.js").HubMemberExposureApi | null): void;
|
|
434
|
+
/** M-2687: local host-session setup; controller creation stays lazy while the Hub is off. */
|
|
435
|
+
private hubSetupController;
|
|
436
|
+
private hubSetupInit;
|
|
437
|
+
private hubDirectoryControl;
|
|
438
|
+
private hubDirectoryInit;
|
|
439
|
+
private hubDirectoryCurrent;
|
|
440
|
+
/** Both private listeners share this controller and the already-created sealed writer; callers prove authority first. */
|
|
441
|
+
hubDirectorySettings(): Promise<import("./hub/settings-directory-control.js").HubDirectorySettingsControl>;
|
|
442
|
+
hubSetupSession(req: IncomingMessage): import("./hub/init/types.js").HubInitHostOwner | null;
|
|
443
|
+
private hubWebAddressControl;
|
|
444
|
+
hubWebAddress(): Promise<import("./hub/settings-web-address-control.js").HubWebAddressControl>;
|
|
445
|
+
hubSetup(): Promise<import("./hub/init/web.js").HubWebInitializer>;
|
|
446
|
+
/** Existing-state host notices also work while the Hub listener is held. No runtime/initializer is started here. */
|
|
447
|
+
hubDirectoryNotices(): Promise<import("./hub/settings-directory-host-notices.js").HubDirectoryHostNotices>;
|
|
448
|
+
/** The member's company sign-in controller; separate from host-owned Hub initialization. */
|
|
449
|
+
private companyJoinController;
|
|
450
|
+
private companyJoinInit;
|
|
451
|
+
private companyObservedMembership;
|
|
452
|
+
private companyMembershipWrite;
|
|
453
|
+
hubCompanySession(req: IncomingMessage): import("./hub/join/local-journal.js").JoinLocalSession | null;
|
|
454
|
+
hubCompanyJoin(): Promise<import("./hub/join/local.js").CompanyJoinController>;
|
|
455
|
+
invalidateHubCompanyJoin(): void;
|
|
456
|
+
private hubMemberPairingApi;
|
|
457
|
+
private hubPairingNotices;
|
|
458
|
+
hubMemberPairing(): ReturnType<typeof import("./hub/member/pairing-api.js").createHubMemberPairingApi> | null;
|
|
459
|
+
/** Explicit owner Settings read only. A paused binding is not permission to mount or connect a member. */
|
|
460
|
+
hubMemberPairingView(): Promise<import("./hub-pairing-summary.js").HubPairingView>;
|
|
461
|
+
attachHubMemberPairing(api: ReturnType<typeof import("./hub/member/pairing-api.js").createHubMemberPairingApi> | null): void;
|
|
462
|
+
private readonly generalLocationFlights;
|
|
463
|
+
private readonly generalAttentionEpisodes;
|
|
464
|
+
private generalBindings;
|
|
465
|
+
generalLocations(): unknown;
|
|
466
|
+
/** Pure preflight for the confirmation diff and stale-tab refusal; never prepares files or starts a CLI. */
|
|
467
|
+
previewGeneralLocation(raw: unknown): {
|
|
468
|
+
input: GeneralSwitchInput;
|
|
469
|
+
summary: string[];
|
|
470
|
+
summary_i18n?: SettingsSummaryPresentation;
|
|
471
|
+
connections: string[];
|
|
472
|
+
};
|
|
473
|
+
/** All entry points, including automatic native recovery, must respect an interrupted binding switch. */
|
|
474
|
+
assertGeneralBindingStart(name: string, config: InstanceConfig): void;
|
|
475
|
+
/** Only the Settings replay's confirmed admin can enter; the whole switch owns one lifecycle transition. */
|
|
476
|
+
switchGeneralLocation(raw: unknown, authorized: () => boolean, execution: SettingsExecution): Promise<{
|
|
477
|
+
started: boolean;
|
|
478
|
+
message: string;
|
|
479
|
+
}>;
|
|
480
|
+
/** An offline PC or a confirmed binding boundary holds old waiting input; it never becomes another conversation's queue. */
|
|
481
|
+
private holdGeneralOldDeliveries;
|
|
482
|
+
generalLocationDeliveryHold(name: string): string | null;
|
|
483
|
+
private generalLocationAttention;
|
|
484
|
+
nativePaneFor(name: string, config: InstanceConfig, assertCurrent: () => void): Promise<import("./native-pane-lifecycle.js").NativePaneLifecycle>;
|
|
485
|
+
recoverNativePane(name: string, launchId: string, authorized: () => boolean): Promise<void>;
|
|
486
|
+
holdNativePaneRecovery(name: string, error: unknown): boolean;
|
|
487
|
+
startFreshNativePane(name: string, launchId: string, sessionId: string | null, authorized: () => boolean): Promise<void>;
|
|
488
|
+
nativePanePinnedSession(name: string): string | null;
|
|
489
|
+
onNativePaneRecoverySettled(name: string): void;
|
|
490
|
+
setNativePanePaused(name: string, paused: boolean): void;
|
|
491
|
+
closeRetainedNativePane(name: string): Promise<void>;
|
|
492
|
+
reconcileNativePaneBeforeStart(name: string, daemon: Daemon): Promise<boolean>;
|
|
493
|
+
/** M-2255: the Windows runtimes' switches the fleet's own state reflects (null until the start-up has applied them). */
|
|
494
|
+
private runtimeEffects;
|
|
495
|
+
private runtimeEffectsScheduled;
|
|
496
|
+
private localPaneDrain;
|
|
497
|
+
private remotePaneDrain;
|
|
498
|
+
/** Revoke admissions synchronously; keep the captured transport only long enough for exact owned closes. */
|
|
499
|
+
private drainNativeRuntime;
|
|
500
|
+
/**
|
|
501
|
+
* M-2255: Settings → Runtime's switches (fleet.yaml `runtimes`, or their environment override) in force — set each time
|
|
502
|
+
* the configuration in force changes (a load, a save, a reload's rollback), next to the web authority's. Every gate reads
|
|
503
|
+
* them at once; what the fleet itself holds (paired computers' connections, this PC's Windows process, agents' tool
|
|
504
|
+
* sessions) follows just after, outside the save that changed them (applyRuntimeSwitches): no restart is needed.
|
|
505
|
+
*/
|
|
506
|
+
/** S-51: the Hub switches follow the configuration in force (load, save, reload rollback), like the runtime ones. */
|
|
507
|
+
private observeHubSwitches;
|
|
508
|
+
/** Reads the raw configuration at run time (the newest wins); off and never started: returns before any import. */
|
|
509
|
+
private applyHubSwitches;
|
|
510
|
+
/** M-2682: the one writer for sealed Hub settings, created with the Hub runtime. */
|
|
511
|
+
private hubSettingsWriter;
|
|
512
|
+
/** Single flight: one import, one runtime, assigned once; every caller (and Stop) gets that same runtime. */
|
|
513
|
+
private hubRuntimeCreated;
|
|
514
|
+
/**
|
|
515
|
+
* S-51 PR 2b: while the member switch is on, the local owner's "Connect to a Hub" backend (S3c's pairing API) is
|
|
516
|
+
* attached, paired or not; switched off, it is detached. A binding change re-composes the member side.
|
|
517
|
+
*/
|
|
518
|
+
private observeHubMemberPairing;
|
|
519
|
+
/**
|
|
520
|
+
* Disconnect: every published exposure is withdrawn and saved before the disconnect reports success. Through the
|
|
521
|
+
* running member's API, or — held or not composed — directly in the member's own store; a failure here makes the
|
|
522
|
+
* disconnect report "unsaved" (S3c), so consent never outlives the disconnect.
|
|
523
|
+
*/
|
|
524
|
+
private hubMemberWithdrawAll;
|
|
525
|
+
/**
|
|
526
|
+
* The Hub exposure picker's agents (docs/design/hub-representative-agent.md): every configured instance normal
|
|
527
|
+
* delivery addresses, General included, shown by its display name. The dedicated Hub daemon is not a fleet instance.
|
|
528
|
+
*/
|
|
529
|
+
private hubMemberAgents;
|
|
530
|
+
/** Same cached usage source as the owner's rail, scoped to the representative's CLI and credential profile. */
|
|
531
|
+
private hubAgentQuota;
|
|
532
|
+
/**
|
|
533
|
+
* A published representative's lifecycle token (#3145, #3147 review): a DURABLE incarnation id per agent name, rotated
|
|
534
|
+
* whenever its backend, folder or runtime changes and dropped when the instance is removed. A replacement (remove and
|
|
535
|
+
* re-add, even with the same name and config, across restarts) or any retarget — including A→B→A — gets a new id, so
|
|
536
|
+
* earlier consent never matches again without an explicit republish. Stopping or pausing changes nothing.
|
|
537
|
+
*/
|
|
538
|
+
private hubAgentToken;
|
|
539
|
+
private hubIncarnationsPath;
|
|
540
|
+
/**
|
|
541
|
+
* M-2451 (#3147 residual): written beside hub-member/, in the data directory itself, when an invalidation could not be
|
|
542
|
+
* made durable in hub-member/. A later process that finds it invalidates every incarnation before handing out any
|
|
543
|
+
* token, so a restart never revives consent the earlier process had to withdraw (A→B→A, or a removal, while hub-member/
|
|
544
|
+
* was unwritable).
|
|
545
|
+
*/
|
|
546
|
+
private hubIncarnationsMarkerPath;
|
|
547
|
+
/** Whether this process has settled the incarnations on disk (the marker handled, the file proven writable). */
|
|
548
|
+
private hubIncarnationsSettled;
|
|
549
|
+
/**
|
|
550
|
+
* Once per process, before the first token: an invalidation an earlier process could not persist (the marker) clears
|
|
551
|
+
* every incarnation; and an existing file must be rewritable here, else this process is broken (no token at all) —
|
|
552
|
+
* an incarnation this process could not rotate must never be handed out. Fails closed: any doubt marks it broken.
|
|
553
|
+
*/
|
|
554
|
+
private settleHubIncarnations; /**
|
|
555
|
+
* #3147 r2: set when an invalidation could not be made durable in any way (neither the atomic write nor removing the
|
|
556
|
+
* file worked). From then on this process hands out no representative token at all, and the transitions the fleet
|
|
557
|
+
* controls (a config save, a removal) are refused instead of applied.
|
|
558
|
+
*/
|
|
559
|
+
private hubIncarnationsBroken;
|
|
560
|
+
private readHubIncarnations;
|
|
561
|
+
/**
|
|
562
|
+
* Persist the incarnation map: "written", or — when the atomic write fails — "cleared": the whole file is removed, which
|
|
563
|
+
* durably invalidates EVERY earlier incarnation (all consent then needs a republish; never a revival). Throws (and
|
|
564
|
+
* marks the process broken) only when neither is possible.
|
|
565
|
+
*/
|
|
566
|
+
private writeHubIncarnations;
|
|
567
|
+
/** The agent's durable incarnation id (create: make one if none; else null). A changed fingerprint rotates it. */
|
|
568
|
+
private hubAgentIncarnation;
|
|
569
|
+
/**
|
|
570
|
+
* Every configuration in force: rotate a recorded agent's incarnation when its backend/folder/runtime changed; drop
|
|
571
|
+
* removed ones. strict (a config save the fleet is about to write): a failure to make that durable throws, so the save
|
|
572
|
+
* is refused instead of applied. Otherwise (a load or reload of a hand-edited file) a failure is logged — the
|
|
573
|
+
* invalidation then is the cleared file, or, if nothing could be written, this process hands out no token at all.
|
|
574
|
+
*/
|
|
575
|
+
private observeHubAgentIncarnations;
|
|
576
|
+
/** A removed instance's incarnation goes with it (a later instance of the same name is a new one). strict: throw if not durable. */
|
|
577
|
+
private forgetHubAgentIncarnation;
|
|
578
|
+
/**
|
|
579
|
+
* A Hub question to its representative agent: ordinary cross-instance delivery (idle gate, wake, retries), from the
|
|
580
|
+
* reserved Hub sender with the Hub-issued correlation id. beforeInput runs immediately before the IPC hand-off.
|
|
581
|
+
*/
|
|
582
|
+
private deliverHubQuestion;
|
|
583
|
+
/** S-51: why the Hub (or this fleet's Hub membership) is not running, if it is held. Empty while off or running. */
|
|
584
|
+
getHubHolds(): readonly import("./hub/runtime.js").HubHold[];
|
|
585
|
+
hubBrowserCertificate(): import("./hub/browser-certificate.js").HubBrowserCertificateControl | null;
|
|
586
|
+
hubRetention(): import("./hub/retention.js").HubRetentionControl | null;
|
|
587
|
+
/** M-2682: an unfinished sealed-settings commit; Hub setting saves wait until recover() has run. */
|
|
588
|
+
hubSettingsBusy(): boolean;
|
|
589
|
+
/** #3298 S-89: this fleet's own Hub offers group permissions (the page mark that shows Settings → Hub's Group permissions row). */
|
|
590
|
+
hubGroupPermissions(): boolean;
|
|
591
|
+
private observeRuntimeSwitches;
|
|
592
|
+
/**
|
|
593
|
+
* Turned off: what it allowed ends now — the paired computers' connections (their agents show as offline) or this PC's
|
|
594
|
+
* Windows process (a turn in progress is cancelled, as when the fleet stops), and those agents' tool sessions.
|
|
595
|
+
* Turned on: the Windows agents are registered and their chat history read, as at start-up.
|
|
596
|
+
*/
|
|
597
|
+
private applyRuntimeSwitches;
|
|
598
|
+
/** An unavailable opt-in runtime must not prevent the Linux fleet from starting or restoring its own history. */
|
|
599
|
+
private initializeNativeInstances;
|
|
600
|
+
/** Native CLIs are headless: the manager owns the durable delivery generation instead of a tmux daemon. */
|
|
601
|
+
private deliveryBootId;
|
|
337
602
|
private rawFleetConfig;
|
|
603
|
+
/**
|
|
604
|
+
* AGEND-163: one agent's own saved settings, as fleet.yaml has them — not `fleetConfig.instances[name]`, which has the fleet's
|
|
605
|
+
* defaults merged in. Undefined when fleet.yaml has no such agent.
|
|
606
|
+
*/
|
|
607
|
+
rawInstanceConfig(name: string): Record<string, unknown> | undefined;
|
|
608
|
+
/**
|
|
609
|
+
* S-51 (#3095, experimental, off by default): the Hub runtime. src/hub/runtime.js is imported only once a Hub switch
|
|
610
|
+
* (hub.enabled / hub_member.enabled) is on; while both are off nothing Hub-related loads, opens or listens.
|
|
611
|
+
*/
|
|
612
|
+
private hubRuntime;
|
|
613
|
+
/** S3c's currentBinding reader, loaded with the pairing API (only while the member switch is on). */
|
|
614
|
+
private hubMemberBinding;
|
|
615
|
+
/** The member link as the "Connect to a Hub" view shows it (S5's client lifecycle). */
|
|
616
|
+
private hubMemberLink;
|
|
617
|
+
private hubMemberLinkBinding;
|
|
618
|
+
/** OutboundContext: the Hub representative's answer hook (null: no member service running, or not a Hub answer). */
|
|
619
|
+
hubReport(input: {
|
|
620
|
+
correlationId: string;
|
|
621
|
+
caller: string;
|
|
622
|
+
text: string;
|
|
623
|
+
callerCurrent(): boolean;
|
|
624
|
+
extras?: import("./hub-report-target.js").HubReportExtras;
|
|
625
|
+
}): Promise<import("./hub-report-target.js").HubReportOutcome> | null;
|
|
626
|
+
/** The member side's pane-failure hook for a Hub-issued correlation id (else null). */
|
|
627
|
+
private hubDeliveryFailed;
|
|
628
|
+
/** The member side's report_result hook for HUB_REPORT_TARGET while a representative service runs (else null). */
|
|
629
|
+
private hubReports;
|
|
630
|
+
/** The one in-flight creation (single flight): overlapping first observations share it, Stop waits for it. */
|
|
631
|
+
private hubRuntimeInit;
|
|
632
|
+
private hubEffectsReady;
|
|
633
|
+
private hubEffectsScheduled;
|
|
634
|
+
private hubHolds;
|
|
635
|
+
/** M-2457 §6 rule 2: the fleet is held — an old tmux server is still on the socket and AgEnD can't prove it its own. */
|
|
636
|
+
private tmuxHold;
|
|
637
|
+
/** M-2457 §6 rule 3: instances held by an old 2.3 window AgEnD could not prove its own. */
|
|
638
|
+
private readonly legacyWindowHolds;
|
|
338
639
|
private rawFleetDocument;
|
|
339
640
|
/** #2208: the paths a saveFleetConfig() wrote, for its check that nothing else changed. */
|
|
340
641
|
private fleetDocumentWrites;
|
|
@@ -350,7 +651,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
350
651
|
get primaryWorld(): AdapterWorld | undefined;
|
|
351
652
|
readonly routing: RoutingEngine;
|
|
352
653
|
get routingTable(): Map<string, RouteTarget>;
|
|
353
|
-
instanceIpcClients: Map<string,
|
|
654
|
+
instanceIpcClients: Map<string, InstanceClient>;
|
|
354
655
|
scheduler: Scheduler | null;
|
|
355
656
|
private configPath;
|
|
356
657
|
/** SIGHUPs received before startAll finishes are replayed once startup is safe. */
|
|
@@ -393,6 +694,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
393
694
|
private instanceStateCache;
|
|
394
695
|
/** CLI pane status overrides; daemon.pid alone only proves FleetManager lives. */
|
|
395
696
|
private instanceProcessStatus;
|
|
697
|
+
/** #3647: supervision gave up on these (crash loop, supervision ended) — cleared when the process runs again. */
|
|
698
|
+
private readonly livenessGone;
|
|
699
|
+
/** #3647: when each instance last showed working (after the startup grace): activity for "quiet". */
|
|
700
|
+
private readonly lastWorkingAt;
|
|
701
|
+
private dispatcherLiveness;
|
|
396
702
|
/** Adapters whose last slash command registration failed and General was told (#1131). */
|
|
397
703
|
private slashRegistrationFailed;
|
|
398
704
|
/** Instances currently being auto-paused by warm_cap, so concurrent checks don't double-evict. */
|
|
@@ -488,6 +794,9 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
488
794
|
private kiroMigrationRuns;
|
|
489
795
|
/** #1386 "Needs you": the list, its live chat messages and Acknowledge. Started with the fleet (finishStartup). */
|
|
490
796
|
private needsYou;
|
|
797
|
+
/** #3292: "Keep sign-in alive" (signin-keepalive.ts); built at startup, stopped at shutdown. */
|
|
798
|
+
private signInKeepAlive;
|
|
799
|
+
private hubExecutionAttention;
|
|
491
800
|
private missedOfflineStore;
|
|
492
801
|
private configHistory;
|
|
493
802
|
private configHistoryTimer;
|
|
@@ -527,6 +836,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
527
836
|
private startupDashboard;
|
|
528
837
|
private adapterState;
|
|
529
838
|
private adapterRetryInFlight;
|
|
839
|
+
/** #3365 review P2: connections whose adapter could not be confirmed stopped — none is admitted for them until a restart. */
|
|
840
|
+
private adapterTeardownUnknown;
|
|
530
841
|
/** Web Settings secret rotation is deliberately separate from reconnect
|
|
531
842
|
* recovery: a rotation must build a fresh provider client with the new token,
|
|
532
843
|
* and stale callbacks from the old client must not win. */
|
|
@@ -728,6 +1039,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
728
1039
|
/** #2855: a trusted guest's searches, per account. */
|
|
729
1040
|
readonly guestSearches: OfficeWriteLimiter;
|
|
730
1041
|
private officeSharesInstance?;
|
|
1042
|
+
/** #2861: when each instance was last talked to and answered (no words), for share links' dialogue box. */
|
|
1043
|
+
readonly officeTalk: OfficeTalk;
|
|
731
1044
|
/**
|
|
732
1045
|
* #2636: Office share links — the live Office view for people outside the fleet, read-only, on a quick tunnel of
|
|
733
1046
|
* their own (a manager and lease of its own: never the fleet's one tunnel lane nor the public link's preview tunnel).
|
|
@@ -806,6 +1119,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
806
1119
|
* authorizing revoked links and cookies until the fleet restarted.
|
|
807
1120
|
*/
|
|
808
1121
|
private settingsGeneration;
|
|
1122
|
+
/** #2942: the settings baseline the agent-requested Windows changes are checked against (set with the gate). */
|
|
1123
|
+
private settingsBaselineReader;
|
|
809
1124
|
private settingsRuntimeRevision;
|
|
810
1125
|
private settingsConfirmation;
|
|
811
1126
|
private settingsControl;
|
|
@@ -814,32 +1129,262 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
814
1129
|
private queueSettingsOperation;
|
|
815
1130
|
private settingsGate;
|
|
816
1131
|
/**
|
|
817
|
-
* #
|
|
818
|
-
*
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
*
|
|
822
|
-
* -
|
|
823
|
-
*
|
|
824
|
-
* -
|
|
825
|
-
*
|
|
826
|
-
*
|
|
827
|
-
*
|
|
828
|
-
*
|
|
829
|
-
* in, its cookie) confirms the same way. A public link never qualifies (evaluateWebAuthority refuses it). General
|
|
830
|
-
* still hears it: a notice, not a step.
|
|
1132
|
+
* AGEND-122 (upstream #3486, R1): a held change confirmed by the request itself — by the role of whoever asks, not by a
|
|
1133
|
+
* proof given once per browser. A signed-in human fleet admin on a web cookie session may press Apply now from wherever
|
|
1134
|
+
* the dashboard is reached (this computer, a LAN or tailnet name, a link), for every kind of change, on a chat fleet and
|
|
1135
|
+
* on a web-only one alike. settings-role.ts has the checks, asked of the live session now and again at execution:
|
|
1136
|
+
* - a cookie session of an admin (a guest, a read-only session, a header token, the CLI and an agent's request never);
|
|
1137
|
+
* - the owner's own knobs: the web authorization switch, "Only this computer can authorize", and the link option of a
|
|
1138
|
+
* link the session arrived over;
|
|
1139
|
+
* - a chat account is still an admin of its connection, and of every connection the change touches (the scope the
|
|
1140
|
+
* store holds; when that is not known, its own connection's admin list is all there is to ask).
|
|
1141
|
+
* It no longer asks that a chat card could have been posted, that the account confirmed this browser in a DM (#1939),
|
|
1142
|
+
* or that the host's own session confirms: those were what sent a remote admin to the AgEnD computer. The chat card
|
|
1143
|
+
* stays another way to confirm; General is told of a change a chat account confirmed here, when one can be.
|
|
831
1144
|
*/
|
|
832
1145
|
private settingsSelfConfirmation;
|
|
833
|
-
/**
|
|
1146
|
+
/** Company Start is the signed-in admin’s consent; a personal enforced remote code still applies. */
|
|
1147
|
+
private settingsCompanyJoinAllowed;
|
|
1148
|
+
/**
|
|
1149
|
+
* AGEND-122 (Prism P2): whether the ordinary New Agent shortcut — created at once, web-confirmed, with no held change — is open to
|
|
1150
|
+
* this request. It is the same policy as Apply now: refused where "Only this computer can authorize" is on and this is not the
|
|
1151
|
+
* AgEnD computer, and off the computer for an admin whose own "ask for my code" switch is on (the creation then waits as a held
|
|
1152
|
+
* change and takes their code). Everything else is as before the role existed.
|
|
1153
|
+
*/
|
|
1154
|
+
private settingsDirectCreationAllowed;
|
|
1155
|
+
/** AGEND-122: this request's role over a held change — its cookie session asked afresh each time (settings-role.ts). */
|
|
1156
|
+
private settingsRole;
|
|
1157
|
+
/**
|
|
1158
|
+
* AGEND-122 (upstream R1): a change that opens a link, or one that changes a secret, confirmed from another device always
|
|
1159
|
+
* posts a Notice — the audit trail alone is not what the owner sees. Null: not one of those, or confirmed on this computer.
|
|
1160
|
+
*/
|
|
1161
|
+
private settingsRemoteNoticeKind;
|
|
1162
|
+
/**
|
|
1163
|
+
* Where that Notice goes: a web-only fleet's dashboard Notices; a chat fleet's General, else its primary connection's notice
|
|
1164
|
+
* target (notifyFleetError) — and when nothing could be posted there, the web Notices, which a chat fleet's dashboard then
|
|
1165
|
+
* shows. Never throttled, and never silent. It names the change as the card showed it (redacted), who confirmed and how.
|
|
1166
|
+
*/
|
|
1167
|
+
private postSettingsRemoteNotice;
|
|
1168
|
+
/**
|
|
1169
|
+
* A security Notice that must not be silent: where a fleet notice goes (General, else the primary connection's notice target,
|
|
1170
|
+
* else a web-only fleet's dashboard Notices) and, when nothing could be posted there, the web Notices store directly — which a
|
|
1171
|
+
* chat fleet's dashboard then shows (recordWebNotice itself refuses a chat fleet). Never throttled; redacted like any Notice.
|
|
1172
|
+
*/
|
|
1173
|
+
private postFleetSecurityNotice;
|
|
1174
|
+
/** Who an authenticator action is named after in its Notice. */
|
|
1175
|
+
private adminName;
|
|
1176
|
+
/**
|
|
1177
|
+
* AGEND-122: a chat account confirms a change only as an admin of every connection it touches — settingsChatAuthority's own
|
|
1178
|
+
* rule, without needing a General to post to: the scope the store holds (a scope not known: none, fail closed), and, for a
|
|
1179
|
+
* change with `primaryGeneral` (the Hub, the connection list and order, whole-fleet sensitive settings), the connection that owns
|
|
1180
|
+
* the primary General too. Every connection involved, the account's own included, is configured exactly once and on one platform
|
|
1181
|
+
* (user ids are per platform). Asked at entry and again by `current()`.
|
|
1182
|
+
*/
|
|
1183
|
+
private settingsAccountMayConfirm;
|
|
1184
|
+
/**
|
|
1185
|
+
* AGEND-122 (upstream #3486, per admin): each admin's own stricter switch — off by default, kept with their own authenticator
|
|
1186
|
+
* (web-remote-access.ts) and never in fleet.yaml. While it is on, THEIR confirmations from a page that is not the browser on the
|
|
1187
|
+
* AgEnD computer itself do not press Apply now: each takes the code of their own app, bound to that one change
|
|
1188
|
+
* (settingsTotpConfirm). Another admin is never asked, and cannot turn it on or off for them. The computer's own browser is not
|
|
1189
|
+
* asked. The switch lives in the app's record, so it can only be on while the app is set up.
|
|
1190
|
+
*/
|
|
1191
|
+
private strictFor;
|
|
1192
|
+
/**
|
|
1193
|
+
* Who is asked for the code: a session with a role over a held change (settings-role.ts) that is not on this computer,
|
|
1194
|
+
* while the option is on. The role carries every check Apply now has — the web authorization switch, "Only this computer
|
|
1195
|
+
* can authorize" (Q6), the link options, a chat account still an admin of the connections the change touches — asked at
|
|
1196
|
+
* entry and again by `current()` at execution, so a demoted admin's pending change never runs. One refusal on top: a change
|
|
1197
|
+
* that opens a link is never confirmed over a link (the public gateway, bound by the gateway itself, never by a header), the
|
|
1198
|
+
* code or not. The code is the authority; the session only carries it.
|
|
1199
|
+
*/
|
|
1200
|
+
/** Only the server-attested company Start carries its own policy, bound to the original live private cookie. */
|
|
1201
|
+
private settingsCodeRole;
|
|
1202
|
+
private settingsCodeSession;
|
|
1203
|
+
/** One look at a code, for every place that asks for one: the fleet-wide wrong-code limit and a clock that looks off, logged and noticed the same way. */
|
|
1204
|
+
private checkAuthenticatorCode;
|
|
1205
|
+
/**
|
|
1206
|
+
* AGEND-122: a page that is not the browser on the AgEnD computer itself — a LAN or tailnet connection (a Host that is
|
|
1207
|
+
* not loopback, a forwarding header, a peer that is not this machine) or a link. Said to the card so it names no host
|
|
1208
|
+
* command and no "go to that computer" step the reader cannot take; asked per request and never a check: what a page may
|
|
1209
|
+
* confirm is still settingsSelfConfirmation / settingsCodeSession, and the card's wording is all this changes.
|
|
1210
|
+
*/
|
|
1211
|
+
settingsPageIsRemote(req: IncomingMessage): boolean;
|
|
1212
|
+
settingsTotpState(store: SettingsConfirmationStore, req: IncomingMessage, id: string): "ready" | "not_set_up" | "on_host" | "host_only" | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* The code, checked: the change's digest first (a stale page never burns a code), then one use per time step and the
|
|
1215
|
+
* fleet-wide wrong-code limit (web-remote-access.ts), then a confirmation asked again at execution (`current`) — the same
|
|
1216
|
+
* session and role, the same enrolment (an app replaced, or removed and set up again, while the change waits ends it for good).
|
|
1217
|
+
*/
|
|
1218
|
+
settingsTotpConfirm(store: SettingsConfirmationStore, req: IncomingMessage, id: string, code: string, digest: string): {
|
|
1219
|
+
label: string;
|
|
1220
|
+
current(): boolean;
|
|
1221
|
+
audit?: Record<string, unknown>;
|
|
1222
|
+
done?(view: SettingsPendingView): void;
|
|
1223
|
+
} | {
|
|
1224
|
+
error: "wrong" | "paused" | "unavailable" | "not_here" | "changed";
|
|
1225
|
+
retryAfterMs?: number;
|
|
1226
|
+
};
|
|
1227
|
+
/**
|
|
1228
|
+
* alpha.2 (M-2300; #2973's agent requests, junsion's §6): on a fleet with no chat connection there is no General to
|
|
1229
|
+
* post an agent's Windows request in — it waited for `agend settings confirm` on the host. Its owner (decision
|
|
1230
|
+
* 28c2d3a3: the `agend web --code` session on this computer, web-verified) now sees and decides it from the web's
|
|
1231
|
+
* Needs you. The authority is asked from the request each time, and again at execution by the store (`current`):
|
|
1232
|
+
* still that owner now (this computer, not revoked, signed out or run out), still a fleet with no chat connection,
|
|
1233
|
+
* never over the public link. Anyone else — a guest, a LAN or public-link session, a chat-connected fleet's admin —
|
|
1234
|
+
* gets nothing (a chat fleet keeps General's card as its way).
|
|
1235
|
+
*/
|
|
1236
|
+
/**
|
|
1237
|
+
* #2997 review (Prism P2): how many times an agent's request came or was decided — in a web-only fleet's status frame,
|
|
1238
|
+
* so a page that never hears the stream's ping (one polling /ui/poll, one reconnecting, a tab from before the upgrade)
|
|
1239
|
+
* reads the list again when it moves. A count, nothing more.
|
|
1240
|
+
*/
|
|
1241
|
+
private agentProposalsRev;
|
|
1242
|
+
private agentProposalOwner;
|
|
1243
|
+
/**
|
|
1244
|
+
* Refs #3061 (P2a): the new-device approval's one authority — the same one that decides an agent's request: this web-only
|
|
1245
|
+
* fleet's owner, asked of the LIVE session each time (a sign-out, an expiry, a revocation, the authority switch or
|
|
1246
|
+
* "Only this computer can authorize" turning a session into a non-owner is seen at once). A LAN session that signed in
|
|
1247
|
+
* with a one-time code, a session a device approval made, a guest, a chat fleet's admin and the CLI's header token are
|
|
1248
|
+
* none of them this: they are told so, and learn nothing about any request.
|
|
1249
|
+
*/
|
|
1250
|
+
private deviceApprovalOwner;
|
|
1251
|
+
/**
|
|
1252
|
+
* Refs #3061 (auth-api): device-code sign-in is offered — a web-only fleet with web authorization on. With
|
|
1253
|
+
* `web.verified_authority.enabled: false` no one is an owner (liveOwner → null), so no one could approve: the three
|
|
1254
|
+
* `/auth/device-login*` routes answer 404 and the sign-in page shows no button. "Only this computer can authorize"
|
|
1255
|
+
* does not close it: this computer's own session can still approve.
|
|
1256
|
+
*/
|
|
1257
|
+
deviceLoginAvailable(): boolean;
|
|
1258
|
+
/** Refs #3061 (P2b): `web.login_qr` (default off), read per page served — the sign-in page then draws the approve link's QR code. */
|
|
1259
|
+
loginQrEnabled(): boolean;
|
|
1260
|
+
/**
|
|
1261
|
+
* GET /ui/devices — the one device list, for every fleet (AGEND-138, #3486): is this a web-only fleet, may THIS session
|
|
1262
|
+
* approve a new device (web-only: the verified owner) and end the others' (`canEndOthers`), and — to an admin session,
|
|
1263
|
+
* never to a guest or the CLI's header token — every signed-in session of any tier, one row each (webDeviceRows).
|
|
1264
|
+
* `owner`: the verified owner (web-only: this computer's admin here or from outside; a chat fleet: an admin whose chat
|
|
1265
|
+
* account confirmed this session). `authority`: web authorization is on; with it off nobody is an owner, so on a web-only
|
|
1266
|
+
* fleet nobody may add a device or sign another out and the page says so.
|
|
1267
|
+
*/
|
|
1268
|
+
webDevicesStatus(req: IncomingMessage): {
|
|
1269
|
+
webOnly: boolean;
|
|
1270
|
+
owner: boolean;
|
|
1271
|
+
authority: boolean;
|
|
1272
|
+
canEndOthers: boolean;
|
|
1273
|
+
devices: WebDeviceRow[];
|
|
1274
|
+
};
|
|
1275
|
+
/**
|
|
1276
|
+
* AGEND-138 (#3486): which sessions may this ADMIN request sign out — one rule for every way in (POST /ui/devices/signout,
|
|
1277
|
+
* DELETE /auth/sessions[/<handle>]) and for the list's `canSignOut`; asked of the live session each time. Null: not an
|
|
1278
|
+
* admin session (a guest or read-only one ends only its own account's, auth-api; the header token none).
|
|
1279
|
+
* - a web-only fleet: the verified owner ends any; every other admin only itself (`any: false`);
|
|
1280
|
+
* - a fleet with a chat connection: an admin ends their OWN other devices (the same chat account) and any guest's or
|
|
1281
|
+
* read-only one; ANOTHER admin's devices only that admin. Every admin sign-in there records its account (`owner`: /web,
|
|
1282
|
+
* /dashboard and the per-admin authenticator); only a session with NO chat account (the host's own `agend web --code`,
|
|
1283
|
+
* or one persisted before accounts were recorded) counts as the host's — one principal that only another such session
|
|
1284
|
+
* may end, and that ends no chat admin's. It does not re-check that the account is still an admin (an existing
|
|
1285
|
+
* limitation of every admin API; follow-up).
|
|
1286
|
+
* Revoke-all (`revokeWebSessions`, /dashboard revoke) is the host's emergency button and is not this rule.
|
|
1287
|
+
*/
|
|
1288
|
+
private sessionEndRule;
|
|
1289
|
+
/**
|
|
1290
|
+
* AGEND-138: auth-api's narrowing of `DELETE /auth/sessions[/<handle>]` for an admin. Three answers, never confused:
|
|
1291
|
+
* a predicate (what this caller may end), `undefined` (a web-only fleet: no narrowing here, its own owner check stands) and
|
|
1292
|
+
* `null` — the caller could not be authenticated AGAIN just now (expired or signed out since auth-api's first check): a denial,
|
|
1293
|
+
* which must never be read as "no restriction" (PR #3553 review).
|
|
1294
|
+
*/
|
|
1295
|
+
endableSessions(req: IncomingMessage): ((r: SessionRecord) => boolean) | undefined | null;
|
|
1296
|
+
/**
|
|
1297
|
+
* Refs #3061 (P2b), AGEND-138: the device list — every signed-in session of any tier, newest activity first: its tier,
|
|
1298
|
+
* how it was approved, whether it carries owner authority, whether it is the reader's own, and whether the reader may sign
|
|
1299
|
+
* it out (and if not, why). Only an admin session reads it: a guest, a read-only session and the header token get none,
|
|
1300
|
+
* so no one sees another person's devices unless they are an admin.
|
|
1301
|
+
*
|
|
1302
|
+
* `verified` is the §3 verdict for an admin session as it would be used from where it signs in (a host session from this
|
|
1303
|
+
* computer, a session from outside over the link, a chat account's confirmed one): one that signed in with a one-time
|
|
1304
|
+
* code or a device approval is not an owner until the authenticator vouches for it. Display only — the checks that act
|
|
1305
|
+
* on it run again at each use.
|
|
1306
|
+
*/
|
|
1307
|
+
private webDeviceRows;
|
|
1308
|
+
/**
|
|
1309
|
+
* Refs #3061 (P2b): may this request's session end ANOTHER session — one signed in elsewhere, or all of them (auth-api
|
|
1310
|
+
* `DELETE /auth/sessions…`, which an admin session could always do). On a web-only fleet that is the verified owner's:
|
|
1311
|
+
* a session a code or a device approval made is signed in but not an owner, and could otherwise sign out the owner's
|
|
1312
|
+
* own. A fleet with a chat connection: yes for an admin, within endableSessions' rule (AGEND-138). Ending one's OWN
|
|
1313
|
+
* session is never this.
|
|
1314
|
+
*/
|
|
1315
|
+
mayEndOtherSessions(req: IncomingMessage): boolean;
|
|
1316
|
+
/**
|
|
1317
|
+
* Refs #3061 (P2b), AGEND-138: POST /ui/devices/signout {handle} — an admin ends another signed-in session, by the one
|
|
1318
|
+
* rule (sessionEndRule), asked of the live session each time. A web-only fleet: only the verified owner, and a non-owner
|
|
1319
|
+
* is refused (403 `owner_required`) BEFORE any handle is looked up, so it learns nothing about which handles exist. A chat
|
|
1320
|
+
* fleet: any admin for their own devices and any guest's or read-only one; another admin's device is refused (403
|
|
1321
|
+
* `other_admin`). Never the reader's own session here (Sign out is /auth/logout). The device's authorization goes with
|
|
1322
|
+
* it, so a copy of its cookie is nobody's.
|
|
1323
|
+
*/
|
|
1324
|
+
webDeviceSignOut(req: IncomingMessage, handle: string): {
|
|
1325
|
+
status: number;
|
|
1326
|
+
body: Record<string, unknown>;
|
|
1327
|
+
};
|
|
1328
|
+
/**
|
|
1329
|
+
* Refs #3061 (P2a): look a new device's code up (for the confirm screen), approve it, or deny it — the verified owner's,
|
|
1330
|
+
* on a web-only fleet. The answer is the request as it now stands. Approving only marks the request approved: the new
|
|
1331
|
+
* browser makes its own session when it next asks (auth-api POST /auth/device-login/poll), so no credential passes from
|
|
1332
|
+
* here to there — not in the answer, not through the fleet. A wrong code counts against one fleet-wide breaker; while
|
|
1333
|
+
* it is open every code (a right one too) waits.
|
|
1334
|
+
*/
|
|
1335
|
+
webDeviceLoginAct(req: IncomingMessage, op: "lookup" | "approve" | "deny", code: string): {
|
|
1336
|
+
status: number;
|
|
1337
|
+
body: Record<string, unknown>;
|
|
1338
|
+
};
|
|
1339
|
+
/** alpha.2: the agents' requests waiting for this web-only fleet's owner, or null when the reader is not that owner. */
|
|
1340
|
+
webAgentProposals(req: IncomingMessage): SettingsPendingView[] | null;
|
|
1341
|
+
/**
|
|
1342
|
+
* alpha.2: the owner's Approve or Reject of an agent's request. The store claims it before its first await (a second
|
|
1343
|
+
* click, from here or the host, finds it no longer pending) and asks the owner, the request (its fleet generation and
|
|
1344
|
+
* Windows switch) and the target machine again before and while it runs the same creation code the web uses. The
|
|
1345
|
+
* answer is always the request as it now stands: applied (with the new agent's name), rejected, expired, stale or
|
|
1346
|
+
* failed (with its reason), or already decided.
|
|
1347
|
+
*/
|
|
1348
|
+
webDecideAgentProposal(req: IncomingMessage, id: string, decision: "confirm" | "reject"): Promise<{
|
|
1349
|
+
status: number;
|
|
1350
|
+
body: Record<string, unknown>;
|
|
1351
|
+
}>;
|
|
1352
|
+
/** A confirmation belongs to the server route/lifetime, not the availability of General's model. */
|
|
1353
|
+
private settingsGeneralRoute;
|
|
1354
|
+
/** Connected, same-platform, unaffected server routes can post cards even while the model is offline. */
|
|
834
1355
|
private settingsNoticeGenerals;
|
|
835
1356
|
/**
|
|
836
1357
|
* #2170: General's notice of a change confirmed from the web — the first General a chat card could have been posted
|
|
837
1358
|
* in, plain text, no mentions. Information only: nothing waits on it.
|
|
838
1359
|
*/
|
|
839
1360
|
private settingsWebConfirmedNotice;
|
|
1361
|
+
/** The primary General: the General on the primary connection, else the first one — and the connection that owns it. */
|
|
1362
|
+
private settingsPrimaryGeneral;
|
|
840
1363
|
/** Exact configured effect owners; this does not depend on prompt location. */
|
|
841
1364
|
private settingsChatAuthority;
|
|
1365
|
+
/**
|
|
1366
|
+
* #2942: a Windows create or settings change an AGENT asked for. Nothing is created or written here: it becomes a
|
|
1367
|
+
* pending settings change whose General card a fleet admin must confirm (promptSettingsChange — the same admin rule
|
|
1368
|
+
* as every card). Its apply runs the same creation/patch code the web uses, inside the store's SettingsExecution, with
|
|
1369
|
+
* the confirming admin, the Windows switch and the target machine asked again at that moment.
|
|
1370
|
+
*/
|
|
1371
|
+
private proposeAgentWindowsChange;
|
|
1372
|
+
/** #2942: create_instance with runtime "windows" from an agent: validated like the web, then held for General. */
|
|
1373
|
+
requestWindowsCreate(requester: string, rawArgs: Record<string, unknown>): Promise<SettingsPendingView>;
|
|
1374
|
+
/** #2942: update_instance_config on a Windows agent: only the fields the web editor allows, held for General. */
|
|
1375
|
+
requestWindowsConfig(requester: string, name: string, patch: Record<string, unknown>): Promise<SettingsPendingView>;
|
|
1376
|
+
/**
|
|
1377
|
+
* D3: whether a General could take this change's confirmation card now — the same authority and routes
|
|
1378
|
+
* promptSettingsChange posts by. False: it would wait for the host's command (confirmation kind host_cli).
|
|
1379
|
+
*/
|
|
1380
|
+
private settingsCardPossible;
|
|
842
1381
|
private promptSettingsChange;
|
|
1382
|
+
/**
|
|
1383
|
+
* alpha.6 feedback #2c: why no General could take a change's confirm card, so the page says what is missing in plain words
|
|
1384
|
+
* (the user's decision hmsg-77256f66: never "type a host command"). `platform` null: the authority is unknown or spans
|
|
1385
|
+
* platforms. `attempted`: a General route existed and posting to it failed.
|
|
1386
|
+
*/
|
|
1387
|
+
private settingsNoCardReason;
|
|
843
1388
|
private kiroMigrateDeps;
|
|
844
1389
|
/**
|
|
845
1390
|
* #2598 B2, migrate_kiro_instance: judge the move, then ask in General for a fleet admin's Confirm. Nothing changes
|
|
@@ -874,6 +1419,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
874
1419
|
sseHeartbeatMs: number;
|
|
875
1420
|
/** The dashboard's login codes. Memory only: a code that outlives the process is a code nobody can prove was not copied. */
|
|
876
1421
|
private webLoginCodes;
|
|
1422
|
+
/** Refs #3061 (P2a): device-code sign-in requests (in memory; web-device-login.ts). Read by auth-api as `webDeviceLogins`. */
|
|
1423
|
+
private webDeviceLogins;
|
|
877
1424
|
/**
|
|
878
1425
|
* #1920 step 4: guests' codes, apart from the admins' — one per account, so no guest's `/web` withdraws another's or
|
|
879
1426
|
* an admin's code (#2093 review), at most 32 at once. Local sign-in only for now (audience "local").
|
|
@@ -998,6 +1545,16 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
998
1545
|
* requesters are no longer told about overdue or expired asks (they can check delivery_status / describe_instance).
|
|
999
1546
|
*/
|
|
1000
1547
|
sweepReplyObligations(now?: Date): void;
|
|
1548
|
+
/** #3647: the lifecycle's word that supervision gave up on an instance (crash loop, supervision ended). */
|
|
1549
|
+
onSupervisionGone(name: string, kind: "crash_loop" | "supervision_ended", reason: string): void;
|
|
1550
|
+
/** #3647: one dispatcher-liveness sweep, on the reply-obligation timer (30 s). */
|
|
1551
|
+
private tickDispatcherLiveness;
|
|
1552
|
+
/** #3647: every claimed card with an assignee, with the times "quiet" counts from. */
|
|
1553
|
+
private livenessCards;
|
|
1554
|
+
/** #3647: what the fleet knows about an assignee now; null when it is not an instance here. */
|
|
1555
|
+
private livenessFacts;
|
|
1556
|
+
/** #3647: work the pane does not show — the backend's background-work flag, or a live subagent. */
|
|
1557
|
+
private livenessBackgroundBusy;
|
|
1001
1558
|
private expireReplyObligations;
|
|
1002
1559
|
private scheduleDeliveryOutboxPump;
|
|
1003
1560
|
private runDeliveryOutboxPump;
|
|
@@ -1013,6 +1570,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1013
1570
|
private reconcileQueueWorkers;
|
|
1014
1571
|
private createQueueWorker;
|
|
1015
1572
|
private dispatchDurableDelivery;
|
|
1573
|
+
/** The ordinary durable lane, with provider completion proof instead of terminal/IPC submission proof. */
|
|
1574
|
+
private dispatchNativeDurableDelivery;
|
|
1575
|
+
/** A runtime's persisted completion can outlive this manager. Resolve its original delivery fence, never send
|
|
1576
|
+
* the prompt again, and reconstruct a missing peer report using the same durable operation ID. */
|
|
1577
|
+
private reconcileRemoteDelivery;
|
|
1016
1578
|
private waitForDurableLaneRelease;
|
|
1017
1579
|
private spawnConcurrency;
|
|
1018
1580
|
/** #1685: "elevated" or "critical" while host memory pressure slows or holds new agents; otherwise null (an
|
|
@@ -1133,6 +1695,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1133
1695
|
private tightenInstanceDirectories;
|
|
1134
1696
|
/** AgEnD package version (for the Settings "current version" / What's New). */
|
|
1135
1697
|
get currentVersion(): string;
|
|
1698
|
+
get currentBuild(): import("./build-provenance.js").InstalledBuild;
|
|
1136
1699
|
/**
|
|
1137
1700
|
* Resolve a slash-command target in a channel. Classic channels are looked up
|
|
1138
1701
|
* per-bot (same-channel multi-bot); a fleet-topic instance is found via the
|
|
@@ -1318,6 +1881,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1318
1881
|
* retry brings it up, however long the backoff, and fails only once the retries give up.
|
|
1319
1882
|
*/
|
|
1320
1883
|
private sendWhenConnected;
|
|
1884
|
+
/**
|
|
1885
|
+
* The Hub representative's hand-off (#3145): only once a connected client exists, after every reconnect/order wait,
|
|
1886
|
+
* the begin lease + input intent (beforeInput), then the fence and the LIVE client are checked again and the payload
|
|
1887
|
+
* goes in one attempt. After the intent is spent nothing here retries: false is the caller's uncertain outcome.
|
|
1888
|
+
*/
|
|
1889
|
+
private handOffAfterBeforeInput;
|
|
1321
1890
|
/** Poll for the instance's IPC to come back, then send. Throws if it does not. */
|
|
1322
1891
|
private sendAfterIpcReturns;
|
|
1323
1892
|
/**
|
|
@@ -1709,7 +2278,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1709
2278
|
* A single-use login code for the dashboard, for a channel only the operator
|
|
1710
2279
|
* can read (`/dashboard`). Null while the panel is closed (no web.token).
|
|
1711
2280
|
*/
|
|
1712
|
-
issueDashboardLogin(
|
|
2281
|
+
issueDashboardLogin(recipient?: {
|
|
2282
|
+
adapterId: string;
|
|
2283
|
+
userId: string;
|
|
2284
|
+
username?: string;
|
|
2285
|
+
}): {
|
|
1713
2286
|
display: string;
|
|
1714
2287
|
expiresAt: number;
|
|
1715
2288
|
ttlMinutes: number;
|
|
@@ -1756,6 +2329,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1756
2329
|
/** #1742: `/start web` from a fleet admin: the /web menu right here in the DM, for the General this bot serves. */
|
|
1757
2330
|
private startWebInDm;
|
|
1758
2331
|
private getPublicWebLink;
|
|
2332
|
+
/** The public link's wiring to this fleet (a test builds one with the tunnel itself stubbed: `ensure`, `provider`). */
|
|
2333
|
+
private publicWebLinkDeps;
|
|
1759
2334
|
private publicLinkAutoOpen;
|
|
1760
2335
|
/**
|
|
1761
2336
|
* #named-link-ttl: the admin who last opened a named-tunnel link from /web, with the live binding — only while they
|
|
@@ -1829,6 +2404,15 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1829
2404
|
*/
|
|
1830
2405
|
private showDashboardMenu;
|
|
1831
2406
|
private handleDashboardCallback;
|
|
2407
|
+
/**
|
|
2408
|
+
* S-120 (D2a): POST /ui/public-link/close (web-api.ts checks who asks). Closes the open public link — this exposure only,
|
|
2409
|
+
* so a link opened since is left alone — and forgets its remembered owner, as the chat menu's 確定關閉 does. It only closes.
|
|
2410
|
+
* The outside link (#3008) is the owner's switch on this computer: refused (409 outside_link), left open.
|
|
2411
|
+
*/
|
|
2412
|
+
closePublicLinkFromWeb(): Promise<{
|
|
2413
|
+
status: number;
|
|
2414
|
+
body: Record<string, unknown>;
|
|
2415
|
+
}>;
|
|
1832
2416
|
/** `/dashboard revoke`: sign out every browser and withdraw any unused code. */
|
|
1833
2417
|
revokeWebSessions(): {
|
|
1834
2418
|
count: number;
|
|
@@ -2053,6 +2637,17 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2053
2637
|
beginUpdateProgress(adapter: ChannelAdapter, chatId: string, threadId: string | undefined, messageId: string): void;
|
|
2054
2638
|
/** Persist the public response, wait for idle, then start the canonical service restart. */
|
|
2055
2639
|
requestFullRestart(adapter: ChannelAdapter, chatId: string, threadId: string | undefined, messageId: string): Promise<boolean>;
|
|
2640
|
+
/**
|
|
2641
|
+
* S-92: the same tracked reload for a web-only fleet's Settings restart — no chat message to carry its progress: the
|
|
2642
|
+
* marker names the web (WEB_RESTART_TARGET), a refusal is a fleet Notice, and the next fleet says it is back as one.
|
|
2643
|
+
*/
|
|
2644
|
+
private requestWebFullRestart;
|
|
2645
|
+
/**
|
|
2646
|
+
* S-92: a fleet (with no chat connection) that comes up from a web-only Settings restart says it is back as a fleet
|
|
2647
|
+
* Notice — the restart was announced as one. Anything else (a chat restart, an update, a plain boot): nothing here.
|
|
2648
|
+
*/
|
|
2649
|
+
private announceWebRestartDone;
|
|
2650
|
+
private launchTrackedFullRestart;
|
|
2056
2651
|
private isOwnedFullRestartMarker;
|
|
2057
2652
|
/** Give current work the same bounded idle grace used by graceful reload. */
|
|
2058
2653
|
private waitForFullRestartIdleGrace;
|
|
@@ -2179,8 +2774,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2179
2774
|
* that should be running is running
|
|
2180
2775
|
* - `degraded` — reachable, but something the operator should look at (an
|
|
2181
2776
|
* adapter retrying, an instance crashed or stopped)
|
|
2182
|
-
* - `down` —
|
|
2183
|
-
*
|
|
2777
|
+
* - `down` — no configured adapter is connected, or a dedicated Hub's
|
|
2778
|
+
* server mount is unavailable
|
|
2184
2779
|
*
|
|
2185
2780
|
* Deliberately does NOT gate the systemd watchdog — see the comment at the
|
|
2186
2781
|
* WATCHDOG timer for why.
|
|
@@ -2211,6 +2806,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2211
2806
|
topProcessesAt?: string;
|
|
2212
2807
|
};
|
|
2213
2808
|
problems: string[];
|
|
2809
|
+
warnings: string[];
|
|
2810
|
+
/** Local server mount availability; absent when the Hub server switch is off. */
|
|
2811
|
+
hub?: {
|
|
2812
|
+
server: import("./hub/runtime.js").HubServerHealth;
|
|
2813
|
+
};
|
|
2214
2814
|
};
|
|
2215
2815
|
/** Start the primary adapter (backward-compatible, sets this.adapter) */
|
|
2216
2816
|
private startSingleAdapter;
|
|
@@ -2595,6 +3195,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2595
3195
|
* channel, are seen to share it; and every connection's own General is protected, with or without a General agent.
|
|
2596
3196
|
*/
|
|
2597
3197
|
private topicOwnership;
|
|
3198
|
+
/**
|
|
3199
|
+
* The bot an agent's configured topic is on (#3105 review, Prism P1): a fleet.yaml agent's `channel_id` (else the
|
|
3200
|
+
* primary connection) whatever its runtime — a per-turn Windows agent has no execution adapter
|
|
3201
|
+
* (getInstanceAdapterId), yet its topic is still on that bot, and must be counted as an owner and deleted through it.
|
|
3202
|
+
* Topic planning and ownership only; execution routing is getInstanceAdapterId's and unchanged.
|
|
3203
|
+
*/
|
|
3204
|
+
private topicAdapterIdOf;
|
|
2598
3205
|
/** What deleting `name`'s topic would act on: its own bot only — a bot that is not there is never substituted. */
|
|
2599
3206
|
private planInstanceTopicDelete;
|
|
2600
3207
|
getForumTopicDeleter(adapterId?: string): ((topicId: number | string) => Promise<void>) | null;
|
|
@@ -2681,6 +3288,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2681
3288
|
private writingFleetDocument;
|
|
2682
3289
|
getSettingsConfigPath(): string;
|
|
2683
3290
|
removeInstance(name: string, authorization: ExplicitInstanceRemoval, execution?: SettingsExecution): Promise<void>;
|
|
3291
|
+
/** Shared instance metadata goes with a native identity; its Windows workspace and provider sessions stay intact. */
|
|
3292
|
+
private nativeInstanceRemoved;
|
|
2684
3293
|
private removeInstanceOwned;
|
|
2685
3294
|
startStatuslineWatcher(name: string): void;
|
|
2686
3295
|
stopStatuslineWatcher(name: string): void;
|
|
@@ -3018,6 +3627,32 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3018
3627
|
* should say so rather than send into a guaranteed failure.
|
|
3019
3628
|
*/
|
|
3020
3629
|
private fleetNoticeTarget;
|
|
3630
|
+
/**
|
|
3631
|
+
* M-2457 §5: one fleet notice, the first time an upgraded home's fleet runs on AgEnD's own tmux. Marked done only once it
|
|
3632
|
+
* was dispatched (General, the channel's notice target, or a web-only fleet's Notices), so a start with nowhere to
|
|
3633
|
+
* post it tries again next start.
|
|
3634
|
+
*/
|
|
3635
|
+
/** Set at fleet start (before any agent starts): this home ran agents on an earlier AgEnD's system tmux. */
|
|
3636
|
+
ownTmuxUpgradedHome: boolean;
|
|
3637
|
+
/** An upgraded home: agent state from an earlier start, and no AgEnD tmux server ever recorded (`previous`). */
|
|
3638
|
+
static ownTmuxUpgraded(agendHome: string, previous: unknown): boolean;
|
|
3639
|
+
/** Whether any instance directory holds state from an earlier start (its output log or a session id). */
|
|
3640
|
+
static priorAgentState(instancesDir: string): boolean;
|
|
3641
|
+
/** Where an upgraded home's not-yet-dispatched own-tmux notice is kept across restarts; only a dispatch clears it. */
|
|
3642
|
+
static ownTmuxPendingPath(agendHome: string): string;
|
|
3643
|
+
/**
|
|
3644
|
+
* Fleet start's decision, made before this start records server.json: an upgraded home is persisted as owing the
|
|
3645
|
+
* notice. A restart before the notice is dispatched (a slow first start; alpha.6 leg M on the real Mac) would otherwise
|
|
3646
|
+
* read the just-recorded server as "not an upgrade" and drop it.
|
|
3647
|
+
*/
|
|
3648
|
+
static ownTmuxStartDecision(agendHome: string, previous: unknown, logger?: {
|
|
3649
|
+
warn: (o: object, m: string) => void;
|
|
3650
|
+
}): boolean;
|
|
3651
|
+
/** Record that this home owes the own-tmux notice (unless it was already posted). */
|
|
3652
|
+
static persistOwnTmuxPending(agendHome: string, logger?: {
|
|
3653
|
+
warn: (o: object, m: string) => void;
|
|
3654
|
+
}): void;
|
|
3655
|
+
announceOwnTmux(): void;
|
|
3021
3656
|
/**
|
|
3022
3657
|
* Post the daily summary where fleet-wide notices go.
|
|
3023
3658
|
*
|
|
@@ -3034,10 +3669,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3034
3669
|
*/
|
|
3035
3670
|
notifyFleetError(text: string, opts?: {
|
|
3036
3671
|
throttle?: boolean;
|
|
3672
|
+
ack?: (delivered: boolean) => void;
|
|
3037
3673
|
}): boolean;
|
|
3038
3674
|
private webNotices;
|
|
3039
3675
|
/** #2910 D2 (web-api): the Notices on a web-only fleet; null on any other (its General says them). */
|
|
3040
3676
|
webNoticesFeed(): WebNotices | null;
|
|
3677
|
+
/** A web-only fleet always has its Notices; a chat fleet only once something was put there (AGEND-122: a confirmation that nothing else could carry). */
|
|
3678
|
+
private hasWebNotices;
|
|
3041
3679
|
/** #2910 D2: the web-only fleet's Notices (web-notices.json), read on first use. */
|
|
3042
3680
|
webNoticeStore(): WebNotices | null;
|
|
3043
3681
|
/**
|
|
@@ -3045,6 +3683,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3045
3683
|
* told as a Notice, and push it to the dashboard. False on any other fleet (its chat says it; nothing is kept).
|
|
3046
3684
|
*/
|
|
3047
3685
|
private recordWebNotice;
|
|
3686
|
+
/** #3373 review P2: recordWebNotice for a notice that must be on disk first — true only once it was written. */
|
|
3687
|
+
private recordWebNoticeDurable;
|
|
3048
3688
|
private static readonly FLEET_ERROR_THROTTLE_MS;
|
|
3049
3689
|
private fleetErrorNotices;
|
|
3050
3690
|
/**
|
|
@@ -3057,7 +3697,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3057
3697
|
* rejection surfaces only as a warn in its .catch. True delivery confirmation
|
|
3058
3698
|
* would have to make this async and change every caller.
|
|
3059
3699
|
*/
|
|
3060
|
-
notifyInstanceTopic(instanceName: string, text: string, extraOpts?: import("./channel/types.js").SendOpts): boolean;
|
|
3700
|
+
notifyInstanceTopic(instanceName: string, text: string, extraOpts?: import("./channel/types.js").SendOpts, ack?: (delivered: boolean) => void): boolean;
|
|
3061
3701
|
/**
|
|
3062
3702
|
* notifyInstanceTopic's routing, handing back the send itself — and which world sent it — for a caller that must
|
|
3063
3703
|
* edit or delete the message later (#2897). Null when there is no adapter or no postable target (already logged).
|
|
@@ -3128,6 +3768,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3128
3768
|
onAttentionChanged(name: string): void;
|
|
3129
3769
|
/** The list for the web: every world's items, and those of instances with no world (#1386 §5.0). */
|
|
3130
3770
|
needsYouItems(): WebNeedsItem[];
|
|
3771
|
+
/** Enabled member composition supplies only a local attention reader, never an approval/execution callback. */
|
|
3772
|
+
attachHubExecutionAttention(read: (() => import("./needs-you.js").HubExecutionAttentionInput[]) | null): void;
|
|
3131
3773
|
/**
|
|
3132
3774
|
* #1389: the org chart's structure for the web — the instances the dashboard lists (getUiStatus's names), General,
|
|
3133
3775
|
* fleet.yaml's teams, each instance's description and thread link. Read on demand; the live state rides the stream.
|
|
@@ -3230,6 +3872,9 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3230
3872
|
* its lane's channel (#2352: its project's lead; #2434: never the instance that handed it out), else in General.
|
|
3231
3873
|
*/
|
|
3232
3874
|
private needsYouTaskItems;
|
|
3875
|
+
/** #3647: the person's (or a missing or not-running dispatcher's) cards whose assignee went quiet. Crashed, paused and waiting agents
|
|
3876
|
+
* already have their own Needs-you items; quiet is the one nothing else shows. */
|
|
3877
|
+
private needsYouStalls;
|
|
3233
3878
|
private needsYouTasks;
|
|
3234
3879
|
/**
|
|
3235
3880
|
* #2246 step 3: the person's move on a card from a chat's Needs you list — a fleet admin of that world (checked by the
|
|
@@ -3320,6 +3965,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3320
3965
|
gateway: boolean;
|
|
3321
3966
|
peer: WebPeer;
|
|
3322
3967
|
instance?: string;
|
|
3968
|
+
authorization?: SessionAuthorization | null;
|
|
3323
3969
|
}): WebAuthorityResult;
|
|
3324
3970
|
private sessionAuthorizations;
|
|
3325
3971
|
private sessionAuthorizationStore;
|
|
@@ -3344,6 +3990,164 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3344
3990
|
* again. A fleet with a chat connection, another session, or another peer: nothing (§3 as before).
|
|
3345
3991
|
*/
|
|
3346
3992
|
authorizeHostSession(session: SessionRecord, peer: WebPeer): void;
|
|
3993
|
+
private webRemoteAccessState;
|
|
3994
|
+
/** The authenticator, the outside switch and the wrong-code limiter (web-remote-access.json), read on first use. */
|
|
3995
|
+
webRemoteAccess(): WebRemoteAccess | null;
|
|
3996
|
+
/** "Allow connections from outside" is on (an app set up) and this is a web-only fleet. */
|
|
3997
|
+
private outsideOn;
|
|
3998
|
+
/** The link connections from outside opened, while it is open and still theirs: its exposure. Else null. */
|
|
3999
|
+
private outsideLink;
|
|
4000
|
+
/**
|
|
4001
|
+
* The request's live session, asked again each time `current()` is called (its own cookie authenticated anew, the same
|
|
4002
|
+
* handle): this web-only fleet's owner — this computer's admin, on this computer (`hostOnly`), or also signed in from
|
|
4003
|
+
* outside — and web-verified now. Null when it is not (a guest, a LAN session, a chat fleet's admin, nobody).
|
|
4004
|
+
*/
|
|
4005
|
+
private liveOwner;
|
|
4006
|
+
/** Every session signed in from outside ends (and the authorizations kept for them). */
|
|
4007
|
+
private endOutsideSessions;
|
|
4008
|
+
/**
|
|
4009
|
+
* #1939 §10 / #3008: a stored receipt's authority as it reads now — the web authority state, and for this computer's
|
|
4010
|
+
* admin from outside the switch and the last revocation of remote authority (Prism P2 2).
|
|
4011
|
+
*/
|
|
4012
|
+
receiptAuthorityNow(stored: HumanAuthority, state?: AuthorityState): HumanAuthority;
|
|
4013
|
+
/** #3008 (the sign-in page): this exposure is the outside link, open now. */
|
|
4014
|
+
isOutsideLink(exposureId: string): boolean;
|
|
4015
|
+
/**
|
|
4016
|
+
* What Settings shows: THIS admin's own authenticator (set up or not, when, their own "ask for my code" switch), whether they
|
|
4017
|
+
* may set it up or change it here and whether that asks their current code; and, for the host operator on a web-only fleet,
|
|
4018
|
+
* the outside switch, a wait in force and the link — its address only to this computer.
|
|
4019
|
+
*/
|
|
4020
|
+
webOutsideStatus(req: IncomingMessage): {
|
|
4021
|
+
webOnly: boolean;
|
|
4022
|
+
here: boolean;
|
|
4023
|
+
manage: boolean;
|
|
4024
|
+
codeNeeded: boolean;
|
|
4025
|
+
strict: boolean;
|
|
4026
|
+
enrolled: boolean;
|
|
4027
|
+
enrolledAt: number | null;
|
|
4028
|
+
outside: boolean;
|
|
4029
|
+
pausedForMs: number;
|
|
4030
|
+
link: {
|
|
4031
|
+
state: string;
|
|
4032
|
+
url?: string;
|
|
4033
|
+
expiresAt?: number;
|
|
4034
|
+
noExpiry?: true;
|
|
4035
|
+
quick: boolean;
|
|
4036
|
+
} | null;
|
|
4037
|
+
};
|
|
4038
|
+
/**
|
|
4039
|
+
* AGEND-122 (per admin): who may set up, replace or remove an authenticator, and turn its switch on or off — an admin with a
|
|
4040
|
+
* role over held changes (settings-role.ts) on a direct connection (never a link), on a chat fleet and a web-only one alike, and
|
|
4041
|
+
* only THEIR OWN (`who`: their connection and account; a web-only fleet's one admin and a chat fleet's host session are the host
|
|
4042
|
+
* operator's). Another admin's is never reachable from here: a stolen session can lock out at most the admin it belongs to, and
|
|
4043
|
+
* every such change posts a Notice to the fleet. On the AgEnD computer's own browser no code is asked. Connections from outside
|
|
4044
|
+
* and their switch are another thing and stay a web-only fleet's, on its own computer (liveOwner).
|
|
4045
|
+
*/
|
|
4046
|
+
private authenticatorOwner;
|
|
4047
|
+
/**
|
|
4048
|
+
* Changing an app that exists — replacing it, removing it, turning its switch off — is the OWNER'S, proven by its current code off
|
|
4049
|
+
* the AgEnD computer, whatever the "ask for my code on confirmations" switch says (that switch is about ordinary Settings
|
|
4050
|
+
* confirmations; this is lifecycle ownership). With no app there is no old code to ask: a first set-up asks nothing, and the AgEnD
|
|
4051
|
+
* computer's own browser is never asked — the recovery controls.
|
|
4052
|
+
*/
|
|
4053
|
+
private authenticatorCodeAsked;
|
|
4054
|
+
/** What changing the app asks of this session: nothing, or the current code (of its own app). */
|
|
4055
|
+
private authenticatorStep;
|
|
4056
|
+
/**
|
|
4057
|
+
* An app being set up, per session handle: whether that start was on this computer or passed the code. A set-up begun while the
|
|
4058
|
+
* code was not asked (the secret lives ten minutes) must not be finished by a session whose switch is on by then, and one begun
|
|
4059
|
+
* on this computer is not finished from another device: it never passed the code, so the finish is refused. A "code" start also
|
|
4060
|
+
* records WHICH app the code proved (`enrollment`, the opaque id of the owner's app at that moment, null when there was none): a
|
|
4061
|
+
* code is a proof about that app and about nothing that replaces it — the finish is refused once the owner's app has been
|
|
4062
|
+
* replaced or removed since (say, a recovery on the computer), so an earlier remote set-up can never overwrite the newer app.
|
|
4063
|
+
*/
|
|
4064
|
+
private authenticatorStarts;
|
|
4065
|
+
/** Set up (or set up again) your own: a new secret, shown once. Null: not you. A code is asked first when your switch needs one. */
|
|
4066
|
+
webOutsideBeginEnrollment(req: IncomingMessage, code?: string): {
|
|
4067
|
+
secret: string;
|
|
4068
|
+
uri: string;
|
|
4069
|
+
expiresInMs: number;
|
|
4070
|
+
} | {
|
|
4071
|
+
error: "code_required" | "wrong" | "paused" | "unavailable" | "not_here";
|
|
4072
|
+
retryAfterMs?: number;
|
|
4073
|
+
} | null;
|
|
4074
|
+
/** The new app's first code: on "ok" it is now yours (the host operator's replaces the old one, ending the sessions from outside). */
|
|
4075
|
+
webOutsideConfirmEnrollment(req: IncomingMessage, code: string): "ok" | "wrong" | "expired" | "unsaved" | "not_here" | "full";
|
|
4076
|
+
/** Forget your own app (your switch with it). A code is asked first when your switch needs one. Nothing set up: nothing happens. */
|
|
4077
|
+
webOutsideRemove(req: IncomingMessage, code?: string): "ok" | "unsaved" | "not_here" | {
|
|
4078
|
+
error: "code_required" | "wrong" | "paused" | "unavailable";
|
|
4079
|
+
retryAfterMs?: number;
|
|
4080
|
+
};
|
|
4081
|
+
/**
|
|
4082
|
+
* Turn your own "ask for my code to confirm from other devices" switch on or off. On needs your app set up and asks nothing (it
|
|
4083
|
+
* only tightens); off asks your current code off the AgEnD computer — so a session it restricts cannot lift the restriction for
|
|
4084
|
+
* you without it. Never anyone else's. Either way a Notice goes to the fleet's admins.
|
|
4085
|
+
*/
|
|
4086
|
+
webOutsideStrict(req: IncomingMessage, on: boolean, code?: string): "ok" | "not_enrolled" | "not_here" | "unsaved" | {
|
|
4087
|
+
error: "code_required" | "wrong" | "paused" | "unavailable";
|
|
4088
|
+
retryAfterMs?: number;
|
|
4089
|
+
};
|
|
4090
|
+
/** The switch. On: needs an app set up; the link opens. Off: it closes and every session from outside ends. */
|
|
4091
|
+
webOutsideSwitch(req: IncomingMessage, on: boolean): "ok" | "not_enrolled" | "not_here" | "not_allowed" | "unsaved";
|
|
4092
|
+
private outsideAttempt;
|
|
4093
|
+
private outsideOpening;
|
|
4094
|
+
/**
|
|
4095
|
+
* Open the outside link: an attempt after each delay in turn until one opens (#3008 B: twice more at most — the quick
|
|
4096
|
+
* link's address service limits how often it may be asked). Every attempt asks again: the switch still on, the fleet
|
|
4097
|
+
* running. A final failure: one Notice; the switch stays on, so the next start tries again.
|
|
4098
|
+
*/
|
|
4099
|
+
private openOutsideLink;
|
|
4100
|
+
private closeOutsideLink;
|
|
4101
|
+
/** PublicWebLink.onClose for the outside link: what closed it decides what happens next (#3008 B). */
|
|
4102
|
+
private outsideLinkClosed;
|
|
4103
|
+
/**
|
|
4104
|
+
* #3486 (per admin; auth-api POST /auth/totp): a browser that is not signed in yet signs in as ONE admin, with the code of THAT
|
|
4105
|
+
* admin's own authenticator — the same per-admin app their confirmations use.
|
|
4106
|
+
*
|
|
4107
|
+
* **Code only (AGEND-155, the product owner's decision on #3486).** The browser types the 6-digit code and nothing else: the code is
|
|
4108
|
+
* compared with the app of every admin who has one and is still an admin of their connection (WebRemoteAccess.signInByCode — each,
|
|
4109
|
+
* every time, no early stop), and exactly one match signs that admin in. No match, or more than one (nobody is signed in and nothing
|
|
4110
|
+
* is spent), is the one 401 `wrong_code`. The page lists nobody, and nothing in an answer says which admins exist or have an app.
|
|
4111
|
+
* A request that still carries a name (`account`, accepted for compatibility; the UI no longer sends it) is resolved to at most
|
|
4112
|
+
* one admin by that name as before (resolveSignInAdmin) and is held by the per-name and per-admin counts too.
|
|
4113
|
+
* A web-only fleet has one admin (the host operator): its one app, no name needed either way.
|
|
4114
|
+
*
|
|
4115
|
+
* Where it works: a direct connection (LAN, tailnet, the owner's own proxy — and this computer's own browser) on any fleet; on a
|
|
4116
|
+
* chat fleet also a public link (TOTP_SIGNIN_OVER_PUBLIC_LINK, the one switch that takes that back); on a web-only fleet a link
|
|
4117
|
+
* only as before (#3008): the one "Allow connections from outside" opened. "Only this computer can authorize" closes all of it.
|
|
4118
|
+
* What it makes: a chat admin's session is that account's own (owner), exactly as a sign-in code from the chat makes it; a web-only
|
|
4119
|
+
* fleet's is that fleet's admin session (and over the outside link the #3008 `remote` one, authorized as before). No authority beyond
|
|
4120
|
+
* that: no "Authorize this browser", nothing an agent would take as a go-ahead. Every success tells every admin (a Notice).
|
|
4121
|
+
*/
|
|
4122
|
+
totpSignIn(input: {
|
|
4123
|
+
exposureId: string | undefined;
|
|
4124
|
+
peer: WebPeer;
|
|
4125
|
+
account: string | undefined;
|
|
4126
|
+
code: string;
|
|
4127
|
+
browser: {
|
|
4128
|
+
id: string;
|
|
4129
|
+
address: string | undefined;
|
|
4130
|
+
};
|
|
4131
|
+
knownCookie: string | undefined;
|
|
4132
|
+
}): TotpSignInResult;
|
|
4133
|
+
/** Whether the request names an admin (`account`, legacy). Blank or missing: the code stands alone. */
|
|
4134
|
+
private signInNameTyped;
|
|
4135
|
+
/** The platform handle (Discord / Telegram user name) an account last signed in to the web with, exactly as the platform gave it; undefined when none is known. */
|
|
4136
|
+
private signinHandleOf;
|
|
4137
|
+
/** Where the new-device authenticator sign-in is open: the owner's knobs and the link rules in one place (asked again as the session is made). */
|
|
4138
|
+
private totpSignInOpen;
|
|
4139
|
+
/**
|
|
4140
|
+
* The admin a typed name stands for, among the chat admins that have an authenticator AND are still admins of their connection: by
|
|
4141
|
+
* the platform user name they sign in with (Discord / Telegram handle, no "@", any case), their user id, or `connection:id`. Exactly
|
|
4142
|
+
* one: a name two of them answer to is nobody's here (they use `connection:id`). The loop never stops early, so it takes as long
|
|
4143
|
+
* for a name that is nobody's. `ident` is the normalized text, for the limiter.
|
|
4144
|
+
*/
|
|
4145
|
+
private resolveSignInAdmin;
|
|
4146
|
+
/**
|
|
4147
|
+
* #3008: a session just made by totpSignIn's "ok" over the outside link is this computer's admin for its authorization's life. False: it
|
|
4148
|
+
* could not be admitted (its handle not saved, #3015 review r3) — the caller ends it.
|
|
4149
|
+
*/
|
|
4150
|
+
authorizeOutsideSession(session: SessionRecord, peer: WebPeer, label: string): boolean;
|
|
3347
4151
|
private authorityStateStore;
|
|
3348
4152
|
/**
|
|
3349
4153
|
* #1939 §10: the switch, "Only this computer can authorize" and the revocation epoch in force for the configuration as
|
|
@@ -3361,7 +4165,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3361
4165
|
* written), what fleet.yaml says, the hosts that make the dashboard reachable from elsewhere (the warning while
|
|
3362
4166
|
* loopback_only is off), and the sessions authorized now (§0): each one's device, account, and when it runs out.
|
|
3363
4167
|
*/
|
|
3364
|
-
webAuthorityOverview(): {
|
|
4168
|
+
webAuthorityOverview(req?: IncomingMessage): {
|
|
4169
|
+
/** AGEND-138: this browser's own session, and whether it may revoke the others' authorization (the verified owner only). */
|
|
4170
|
+
you: {
|
|
4171
|
+
handle: string | null;
|
|
4172
|
+
canRevoke: boolean;
|
|
4173
|
+
};
|
|
3365
4174
|
state: AuthorityState;
|
|
3366
4175
|
configured: WebVerifiedAuthorityConfig;
|
|
3367
4176
|
hours: typeof VERIFIED_SESSION_HOURS;
|
|
@@ -3377,6 +4186,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3377
4186
|
}>;
|
|
3378
4187
|
/** #2453 (§0.2): the admin's named-tunnel hostname, while one is configured (the named-link row shows only then). */
|
|
3379
4188
|
namedHost: string | null;
|
|
4189
|
+
/** A fleet with no chat connection: the page words the card for the authenticator, not for Discord / Telegram. */
|
|
4190
|
+
webOnly: boolean;
|
|
3380
4191
|
};
|
|
3381
4192
|
private authorizationRequests;
|
|
3382
4193
|
/**
|
|
@@ -3417,11 +4228,38 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3417
4228
|
state: "none";
|
|
3418
4229
|
reason: WebAuthorityRefusal;
|
|
3419
4230
|
};
|
|
3420
|
-
/**
|
|
3421
|
-
|
|
4231
|
+
/**
|
|
4232
|
+
* #1939 §10: revoke every web authority given so far (receipts read as none), without signing anyone out.
|
|
4233
|
+
* AGEND-138: `keep` — the session that asked (the verified owner's own): the epoch still moves, so every other session
|
|
4234
|
+
* and every stored receipt is ended, but this one is authorized again under the new epoch at once (§3 asked afresh,
|
|
4235
|
+
* with the end it already had: a revocation never stretches an authorization). A host session only where it is
|
|
4236
|
+
* allowed to be one — on this computer — as at sign-in.
|
|
4237
|
+
*/
|
|
4238
|
+
revokeWebAuthority(keep?: {
|
|
4239
|
+
session: SessionRecord;
|
|
4240
|
+
peer: WebPeer;
|
|
4241
|
+
gateway: boolean;
|
|
4242
|
+
}): {
|
|
3422
4243
|
epoch: number;
|
|
3423
4244
|
durable: boolean;
|
|
4245
|
+
kept: boolean;
|
|
3424
4246
|
};
|
|
4247
|
+
/**
|
|
4248
|
+
* AGEND-138: who may "Revoke authorization of other devices" — the verified owner only, asked of the LIVE session each
|
|
4249
|
+
* time. A web-only fleet: its owner (this computer's admin here, or signed in from outside). A fleet with a chat
|
|
4250
|
+
* connection: an admin session that is web-verified now (its account confirmed in Discord / Telegram) — the same §3
|
|
4251
|
+
* verdict the rest of web authority uses. A guest, a read-only session, an admin not verified (a device-code or one-time-code
|
|
4252
|
+
* sign-in), the header token: null. `revoke()` ends everyone else's and keeps this session verified.
|
|
4253
|
+
*/
|
|
4254
|
+
webAuthorityRevoker(req: IncomingMessage): {
|
|
4255
|
+
handle: string;
|
|
4256
|
+
current(): boolean;
|
|
4257
|
+
revoke(): {
|
|
4258
|
+
epoch: number;
|
|
4259
|
+
durable: boolean;
|
|
4260
|
+
kept: boolean;
|
|
4261
|
+
};
|
|
4262
|
+
} | null;
|
|
3425
4263
|
/** #1269: an instance's chat command from the web chat (web-commands.ts); `publicLink`: a gateway request. */
|
|
3426
4264
|
/** #2855: the table scope of an instance the web chat may command (a fleet instance or a ClassicBot room), else null. */
|
|
3427
4265
|
private webCommandScope;
|
|
@@ -3511,7 +4349,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3511
4349
|
* `text` if nobody answered them here.
|
|
3512
4350
|
*/
|
|
3513
4351
|
retireRemoteCard(instanceName: string, identity: string | null, text?: string): void;
|
|
3514
|
-
/**
|
|
4352
|
+
/** CLI-owned dialogs need the owning adapter's fleet admin; ordinary agent questions follow conversation access. */
|
|
3515
4353
|
private mayAnswerRemoteCard;
|
|
3516
4354
|
/** A click on a card's button (platform or dashboard). */
|
|
3517
4355
|
private handleRemoteCardClick;
|
|
@@ -3702,12 +4540,27 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3702
4540
|
*/
|
|
3703
4541
|
private readonly loginWindow;
|
|
3704
4542
|
private get webLogin();
|
|
4543
|
+
/**
|
|
4544
|
+
* #3190 Part 3c: dashboard sign-ins on a paired computer (machine-signins.ts): #3212's StructuredSignIn over a RuntimeSignInTransport, one computer and one
|
|
4545
|
+
* credential profile at a time. Its own coordinator, not the host's: it never touches the host's sign-in checklist or login window.
|
|
4546
|
+
*/
|
|
4547
|
+
private machineSignInsInstance;
|
|
4548
|
+
get machineSignIns(): MachineSignIns;
|
|
4549
|
+
private machineAccountsInstance;
|
|
4550
|
+
/** #3190 Part 3c: a paired computer's accounts in Settings → Accounts (machine-accounts.ts). */
|
|
4551
|
+
get machineAccounts(): MachineAccounts;
|
|
3705
4552
|
private browserBackendSignInsInstance;
|
|
3706
4553
|
private structuredLoginCleanupFailed;
|
|
3707
4554
|
private readonly pendingBackendSince;
|
|
3708
4555
|
private browserSignInOwnerCurrent;
|
|
3709
4556
|
/** #2599: default-account controls share the exact writer reservation with chat/profile/install. */
|
|
3710
4557
|
get browserBackendSignIns(): BrowserBackendSignIns;
|
|
4558
|
+
private profileSignInsInstance;
|
|
4559
|
+
/**
|
|
4560
|
+
* #3212: a NAMED account's sign-in on this host from Settings → Accounts — #2599's StructuredSignIn (press Sign in, open the page, paste the code), pointed at
|
|
4561
|
+
* that profile's own folder (`CLAUDE_CONFIG_DIR`), under the host's login window like every other credential writer. Not the default account's checklist.
|
|
4562
|
+
*/
|
|
4563
|
+
get profileSignIns(): ProfileSignIns;
|
|
3711
4564
|
private needsYouBackendSignIns;
|
|
3712
4565
|
/** #2233: sign-ins started from the web dashboard (local admin sessions), on the same controller as chat's. */
|
|
3713
4566
|
private webBackendLoginsInstance;
|
|
@@ -3718,6 +4571,134 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3718
4571
|
* #2233: Settings → Agents' sign-in list — every backend's default login as the availability snapshot has it, then
|
|
3719
4572
|
* each credential profile an agent uses (its own login state, read offline).
|
|
3720
4573
|
*/
|
|
4574
|
+
/** Which account each sign-in is, as the host's own `claude auth status` said (masked; see checkAuthIdentity). Keys are `backend\0profile` in a Map: a name is data, never a property. */
|
|
4575
|
+
private readonly signInIdentities;
|
|
4576
|
+
/** Reads in flight, by the same key: a second request for a sign-in that is already being read joins it instead of starting another process. */
|
|
4577
|
+
private readonly signInIdentityReads;
|
|
4578
|
+
/** Raised each time the accounts are forgotten: a read that began before is never allowed to write what it found. */
|
|
4579
|
+
private signInIdentityGeneration;
|
|
4580
|
+
private signInIdentitySlots;
|
|
4581
|
+
private readonly signInIdentityWaiters;
|
|
4582
|
+
private signInIdentity;
|
|
4583
|
+
/** A sign-in finished (or changed): forget what was read and let no read that was already running put its answer back. */
|
|
4584
|
+
private forgetSignInIdentities;
|
|
4585
|
+
/** At most three `claude auth status` at once across the whole host, however many requests ask. */
|
|
4586
|
+
private withSignInIdentitySlot;
|
|
4587
|
+
/** One `claude auth status` for a sign-in (the default one, or a credential profile's folder). */
|
|
4588
|
+
private readSignInIdentity;
|
|
4589
|
+
/**
|
|
4590
|
+
* Start reading, in the background, the account of each Claude Code sign-in that is signed in (the default and every profile an agent uses) and
|
|
4591
|
+
* not read in the last five minutes. It never waits and never blocks a request: the list shows what is already known, and the pages are told to
|
|
4592
|
+
* read it again when something new was learned. A sign-in already being read is not read twice, and a read that began before the accounts were
|
|
4593
|
+
* forgotten (a sign-in finished meanwhile) is dropped. No login, no network request of ours, nothing logged.
|
|
4594
|
+
*/
|
|
4595
|
+
refreshSignInIdentities(): void;
|
|
4596
|
+
/**
|
|
4597
|
+
* #3212 PR 1: the Accounts view (accounts-view.ts) — every CLI's default sign-in and named profiles (used or only on
|
|
4598
|
+
* disk), who uses each and its weekly usage. Host rows only; a paired computer's rows come with #3190 Part 3c. Its
|
|
4599
|
+
* usage is the usage panel's cached read (never forced), given at most `usageWaitMs` before the view is sent without it.
|
|
4600
|
+
*/
|
|
4601
|
+
accountsView(usageWaitMs?: number): Promise<AccountsView>;
|
|
4602
|
+
/**
|
|
4603
|
+
* A sign-in just finished for this account: look at its Keep sign-in alive setting once now (when it is on), so what the Accounts row says about
|
|
4604
|
+
* "the last check" is not the one from before the sign-in. Never awaited, and never allowed to fail the sign-in's own follow-up.
|
|
4605
|
+
*/
|
|
4606
|
+
private keepAliveAfterSignIn;
|
|
4607
|
+
/** #3292: the keep-alive service (built on first use, so the Accounts view can read settings before startup finishes). */
|
|
4608
|
+
private keepAliveService;
|
|
4609
|
+
private startSignInKeepAlive;
|
|
4610
|
+
/**
|
|
4611
|
+
* #3292 review: which sign-in each host agent is starting or running on, recorded at its start (InstanceLifecycle
|
|
4612
|
+
* admitCredentialUse) from the configuration it launched with — never re-resolved against today's defaults. An entry
|
|
4613
|
+
* whose start ended without a daemon, or whose daemon is gone, is dropped when next read.
|
|
4614
|
+
*/
|
|
4615
|
+
private readonly credentialLeases;
|
|
4616
|
+
/** #3292 review: Keep sign-in alive runs in flight, by sign-in: a start on that sign-in waits for its end. */
|
|
4617
|
+
private readonly keepAliveRenewing;
|
|
4618
|
+
private credentialKey;
|
|
4619
|
+
/**
|
|
4620
|
+
* The sign-in a start launches on, from the instance's own (defaults-expanded at load) options — exactly what the
|
|
4621
|
+
* Daemon's clone of that config hands its CLI. Never today's defaults: an older config object keeps its own.
|
|
4622
|
+
*/
|
|
4623
|
+
private launchCredentialKey;
|
|
4624
|
+
private launchCredentialProfile;
|
|
4625
|
+
/**
|
|
4626
|
+
* #3313 review r2: failed starts whose CLI was not proven gone keep holding their sign-in (across a retry of the same
|
|
4627
|
+
* agent too) until a check finds it ended.
|
|
4628
|
+
*/
|
|
4629
|
+
private readonly credentialOrphans;
|
|
4630
|
+
private orphanCheck;
|
|
4631
|
+
private recheckCredentialOrphans;
|
|
4632
|
+
/**
|
|
4633
|
+
* LifecycleContext: hold the sign-in a start will launch on (waits while Keep sign-in alive renews it). The key is
|
|
4634
|
+
* read again after every wait; `current(config)` lets the start check, with no await before it builds its Daemon,
|
|
4635
|
+
* that the config still names that sign-in (a save may have changed it meanwhile: then it asks again).
|
|
4636
|
+
*/
|
|
4637
|
+
admitCredentialUse(name: string, config: InstanceConfig, backend: string, assertCurrent: () => void): Promise<{
|
|
4638
|
+
published(): void;
|
|
4639
|
+
release(): void;
|
|
4640
|
+
current(config: InstanceConfig): boolean;
|
|
4641
|
+
unknownEnd(ended: () => Promise<boolean>): void;
|
|
4642
|
+
} | null>;
|
|
4643
|
+
/**
|
|
4644
|
+
* #3292: a sign-in is in use when a host agent is starting or running on it (as launched), a ClassicBot room is bound
|
|
4645
|
+
* to it (or the rooms cannot be read — none when there is no classicBot.yaml), or a sign-in for it is running. Codex
|
|
4646
|
+
* refresh tokens are single-use: a refresh beside a live user could spend the one it holds; and use keeps it alive.
|
|
4647
|
+
*/
|
|
4648
|
+
private keepAliveInUse;
|
|
4649
|
+
/**
|
|
4650
|
+
* #3292 review: one keep-alive run's admission, decided synchronously: not in use, the shared login window taken, and the
|
|
4651
|
+
* sign-in marked as renewing (a start on it waits). The run's life is an account writer: a stop waits for it, and
|
|
4652
|
+
* sign-in admission reopens after a restart only once it has ended. `release()` only after its CLI has exited.
|
|
4653
|
+
*/
|
|
4654
|
+
private acquireKeepAliveRun;
|
|
4655
|
+
/** #3292: Needs you's lines for kept sign-ins, in the fleet's language (posted in General's world, like config issues). */
|
|
4656
|
+
private keepAliveAttention;
|
|
4657
|
+
/** #3292: Settings → Accounts → Keep sign-in alive (POST /ui/accounts/keep-alive). `by`: the session's label, for the fleet log. */
|
|
4658
|
+
setAccountKeepAlive(backend: unknown, profile: unknown, enabled: unknown, fallback: unknown, by: string): KeepAliveSetResult;
|
|
4659
|
+
/**
|
|
4660
|
+
* Who uses which account: host agents (an agent on a paired Windows computer runs on that computer's accounts — its
|
|
4661
|
+
* own scope), ClassicBot rooms and the fleet default per CLI, each with its effective profile (null: the default sign-in).
|
|
4662
|
+
*/
|
|
4663
|
+
private accountUses;
|
|
4664
|
+
/** #3212 PR 2: Settings → Accounts → + Add account (accounts-profiles.ts). `by`: the session's label, for the fleet log. */
|
|
4665
|
+
addAccountProfile(backend: string, name: unknown, by: string, machine?: MachineActor): AddResult | Promise<MachineAccountResult>;
|
|
4666
|
+
/** The profile names the configuration refers to for this backend — an agent, a ClassicBot room, the fleet default — whether or not their folders exist yet. */
|
|
4667
|
+
private configuredProfileNames;
|
|
4668
|
+
/**
|
|
4669
|
+
* #3212 PR 2: Settings → Accounts → Remove. Refused while anything uses it or a sign-in for it runs (the login controller,
|
|
4670
|
+
* or the login window held for this backend by a sign-in whose profile is not known yet); see accounts-profiles.ts.
|
|
4671
|
+
* The fleet log records who removed which backend's profile — never what was in it.
|
|
4672
|
+
*/
|
|
4673
|
+
removeAccountProfile(backend: string, name: unknown, confirm: unknown, by: string, machine?: MachineActor, opts?: {
|
|
4674
|
+
cancelSignIn?: true;
|
|
4675
|
+
}): Promise<RemoveResult | MachineAccountResult>;
|
|
4676
|
+
/**
|
|
4677
|
+
* Remove's whole safety proof, read now (#3291 review): who uses the account — configured agents and live daemons, the
|
|
4678
|
+
* fleet default, ClassicBot rooms read strictly — and whether a sign-in for it runs. `ownClaim`: the login window this
|
|
4679
|
+
* removal holds itself, which is not someone else's sign-in.
|
|
4680
|
+
*/
|
|
4681
|
+
private removalRequest;
|
|
4682
|
+
/**
|
|
4683
|
+
* #3212 PR 3: Settings → Accounts → Sign out (accounts-signout.ts): the CLI's own logout for the default sign-in
|
|
4684
|
+
* (`profile` null) or a named account. Refused while a sign-in for it runs (case-insensitive, as Remove). The fleet
|
|
4685
|
+
* log records who signed out which backend's account; then every page reads the sign-ins again.
|
|
4686
|
+
*/
|
|
4687
|
+
/** How a CLI's logout is run and the Keychain asked (a test's stand-in; the platform with it). */
|
|
4688
|
+
accountSignOutDeps: Pick<import("./accounts-signout.js").SignOutDeps, "keychainHas" | "platform" | "run">;
|
|
4689
|
+
/** #3305 review: every account logout's whole life — its CLI children until positively gone (shutdown drains them). */
|
|
4690
|
+
private readonly accountWriters;
|
|
4691
|
+
/**
|
|
4692
|
+
* #3305 review P2-3/P2-5: run `work` as the owner of the credential writer (`claim`). Its CLIs run through a runner
|
|
4693
|
+
* that records each child's positive end; the work is told whether it still owns the writer (`stillOwner`) before it
|
|
4694
|
+
* cleans anything; and the claim is released only once every child it started is positively gone — a child whose end
|
|
4695
|
+
* is unknown keeps sign-in admission closed (logged). Shutdown waits for these (shutdownLoginWindows), and a restart
|
|
4696
|
+
* reopens admission only after they are gone.
|
|
4697
|
+
*/
|
|
4698
|
+
private withAccountWriter;
|
|
4699
|
+
signOutAccount(backend: string, profile: unknown, confirm: unknown, by: string, machine?: MachineActor): Promise<SignOutResult | MachineAccountResult>;
|
|
4700
|
+
/** M-2825: a host Claude sign-in whose own file says it is over (credential-profile.ts claudeStoreEnded); false for other CLIs. */
|
|
4701
|
+
private claudeSignInEnded;
|
|
3721
4702
|
backendSignInTargets(): SignInTarget[];
|
|
3722
4703
|
/** #2233: the session with this handle is live, admin, local and of the current dashboard token. */
|
|
3723
4704
|
private isLocalAdminSession;
|
|
@@ -3791,6 +4772,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3791
4772
|
/** The sign-in itself, in the web terminal, for a CLI that is installed. */
|
|
3792
4773
|
private launchSignIn;
|
|
3793
4774
|
/** Fleet shutdown: end any web login or install window and wait for its confirmed teardown. */
|
|
4775
|
+
/**
|
|
4776
|
+
* #3305 review P2-3: reopen sign-in admission after a restart — only once no account logout's CLI from before is still
|
|
4777
|
+
* alive (a fresh sign-in must never overlap it). Each reopen supersedes a deferred one.
|
|
4778
|
+
*/
|
|
4779
|
+
private loginReopenGen;
|
|
4780
|
+
private reopenLoginWindow;
|
|
3794
4781
|
private shutdownLoginWindows;
|
|
3795
4782
|
/** `/login cancel` — abort the active session and remove its window. */
|
|
3796
4783
|
cancelLoginSession(): Promise<string>;
|
|
@@ -3833,6 +4820,25 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3833
4820
|
}, signIn?: {
|
|
3834
4821
|
profile?: string;
|
|
3835
4822
|
}): Promise<string>;
|
|
4823
|
+
/**
|
|
4824
|
+
* The install window itself, for `/login`'s chat install and the dashboard's Install button alike (AGEND-133): a tmux window running the registry's
|
|
4825
|
+
* command through `unattendedInstallCommand` (no terminal to ask on, low priority, stoppable as a whole, the user's own $SHELL), judged by the installer's
|
|
4826
|
+
* own exit code. The caller holds `claim` (taken before its first await) and gets it released here on every failure; once the session is running,
|
|
4827
|
+
* `events.onDone` owns the release. `activeInstall` is set while it runs, so `/login cancel`, the dashboard's Cancel and a fleet stop all reach it.
|
|
4828
|
+
*/
|
|
4829
|
+
private openInstallWindow;
|
|
4830
|
+
/** AGEND-133: the dashboard's Install button — what the Accounts page asks of `/login`'s install, with no chat to report in. */
|
|
4831
|
+
private webHostInstallsInstance;
|
|
4832
|
+
get webHostInstalls(): WebHostInstalls;
|
|
4833
|
+
/**
|
|
4834
|
+
* AGEND-133: install a CLI for the dashboard. Only the CLI's id arrives (the caller validated it against the registry's table); the command is
|
|
4835
|
+
* `info.unattended ?? info.install` read here, the window and its judgement are `/login`'s (openInstallWindow). The verdict is then checked the way chat's
|
|
4836
|
+
* is — a fresh login shell, else the installer's own directories — and the availability probe reads the version for the page. Everything is
|
|
4837
|
+
* reported through `reporter`; nothing is posted to any chat, and no sign-in is started (the page offers Sign in itself).
|
|
4838
|
+
*/
|
|
4839
|
+
startWebInstall(backendArg: string, reporter: HostInstallReporter, execution?: SettingsExecution, mode?: HostInstallMode): Promise<HostInstallStart>;
|
|
4840
|
+
/** A fresh login shell's answer for `binary`, else the installer's own directories (see locateBinaryOnLoginShell / locateInstalledBackend). */
|
|
4841
|
+
private locateInstalledCli;
|
|
3836
4842
|
/** Whether this backend's CLI is on the fleet's PATH (what `/login` installs when it is not). */
|
|
3837
4843
|
isCliInstalled(backend: string): boolean;
|
|
3838
4844
|
/** M-2281: isCliInstalled without holding the fleet loop (a chat click's path: `which` on a slow PATH can take seconds). */
|
|
@@ -4056,6 +5062,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4056
5062
|
* name, a custom provider's, a typed one) is shown first, marked, so the menu never hides what is running.
|
|
4057
5063
|
*/
|
|
4058
5064
|
private withCurrentModel;
|
|
5065
|
+
/**
|
|
5066
|
+
* The effort a /model option offers behind its "›" (the phone's second level): the levels `model` takes on this
|
|
5067
|
+
* backend and the effort the agent has set, when the model has one of them (else null: it shows "auto"). Only where
|
|
5068
|
+
* an effort change is applied live (a model switch then an effort one is no second restart), and not where the
|
|
5069
|
+
* chat does not offer effort unasked (effortOfferedUnasked: antigravity). A file read; never a CLI.
|
|
5070
|
+
*/
|
|
5071
|
+
private modelEffortChoice;
|
|
4059
5072
|
private modelChoiceLabel;
|
|
4060
5073
|
/** Preserve the existing cache merge rules for worker probes. */
|
|
4061
5074
|
private persistCliEnvProbeResult;
|
|
@@ -4165,6 +5178,18 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4165
5178
|
effortStrategyFor(instanceName: string): "runtime" | "restart" | "unsupported";
|
|
4166
5179
|
/** Effort levels this instance's backend actually accepts (empty = unsupported). */
|
|
4167
5180
|
effortLevelsFor(instanceName: string): string[];
|
|
5181
|
+
/**
|
|
5182
|
+
* What Settings → Runtime & model offers as the agent's effort: the levels `model` (null: the one it runs now) takes on
|
|
5183
|
+
* this agent's backend and the effort in force with its source. The chat chip's own list (`effortLevelsFor`), only for
|
|
5184
|
+
* the model named: a pure file read, never a CLI. `levels: []` — nothing to offer: a Windows agent, or a backend / model
|
|
5185
|
+
* without an effort setting. antigravity's levels are the model's own (its catalog has one slug per level, merged into
|
|
5186
|
+
* one model in Settings' list), so this dropdown is where its effort is chosen.
|
|
5187
|
+
*/
|
|
5188
|
+
effortOptionsFor(instanceName: string, model?: string | null): {
|
|
5189
|
+
levels: string[];
|
|
5190
|
+
effort: string | null;
|
|
5191
|
+
source: "instance" | "fleet-default" | "unset";
|
|
5192
|
+
};
|
|
4168
5193
|
/** The instance's backend's effort metadata; agy's levels are its model's (#1825), the one the instance runs. */
|
|
4169
5194
|
private instanceEffortMetadata;
|
|
4170
5195
|
/** Configured effort for an instance: per-instance, else fleet default, else none. */
|
|
@@ -4251,12 +5276,22 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4251
5276
|
/** Resolve only trusted config; the browser never supplies a home, provider URL or credentials. */
|
|
4252
5277
|
private webModelBinding;
|
|
4253
5278
|
private webModelEnv;
|
|
4254
|
-
modelCatalogFor(backend: string, instance: string | null
|
|
5279
|
+
modelCatalogFor(backend: string, instance: string | null, selection?: {
|
|
5280
|
+
profile?: string;
|
|
5281
|
+
}): import("./backend/types.js").ModelOption[];
|
|
5282
|
+
/** The catalog Web Settings shows: the same cached lists, shaped and grouped (web-model-groups.ts); never a probe. */
|
|
5283
|
+
modelCatalogForWeb(backend: string, instance: string | null, selection?: {
|
|
5284
|
+
profile?: string;
|
|
5285
|
+
}): import("./web-model-groups.js").WebModelOption[];
|
|
4255
5286
|
/** Explicit, bounded vendor rediscovery. Never publish an answer under a different account/config/instance. */
|
|
4256
|
-
refreshModelCatalogFor(backend: string, instance: string | null
|
|
5287
|
+
refreshModelCatalogFor(backend: string, instance: string | null, selection?: {
|
|
5288
|
+
profile?: string;
|
|
5289
|
+
}): Promise<{
|
|
4257
5290
|
models: import("./backend/types.js").ModelOption[];
|
|
4258
5291
|
refreshed: boolean;
|
|
4259
5292
|
}>;
|
|
5293
|
+
/** Host-default fallback only: Grok has no modeled profile home. Never construct a backend or start a probe. */
|
|
5294
|
+
cliModelCatalogFor(backend: string, instance: string | null): Promise<import("./backend/types.js").ModelOption[]>;
|
|
4260
5295
|
/**
|
|
4261
5296
|
* #2072 (#2078 review): the snapshot as THIS instance would see it. Its sign-in on a backend is its own credential
|
|
4262
5297
|
* profile's when it has one there — the host's default login says nothing about it. A profile's login is a file check
|
|
@@ -4444,7 +5479,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4444
5479
|
* audit notice — and only once all of that holds is the attempt written to
|
|
4445
5480
|
* disk and fsynced, before anything spawns.
|
|
4446
5481
|
*/
|
|
4447
|
-
requestSettingsSelfRestart(
|
|
5482
|
+
requestSettingsSelfRestart(requestedJobId: string | null, key: string): Promise<SelfRestartResult>;
|
|
4448
5483
|
/** The audit notice, and the message the restart progress will edit. */
|
|
4449
5484
|
private postSelfRestartNotice;
|
|
4450
5485
|
/** Jobs outlive this process on purpose; see apply-job.ts. */
|
|
@@ -4581,6 +5616,17 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4581
5616
|
};
|
|
4582
5617
|
getConnectionSecretApply(jobId: string, sessionBinding: string): SecretApplyJob | null;
|
|
4583
5618
|
private runConnectionSecretApply;
|
|
5619
|
+
/**
|
|
5620
|
+
* S-91: how a connection stands against what this process set up at start. "same": its adapter start ran (and failed, or
|
|
5621
|
+
* found no token), so starting it now is what the background retry does. "changed": its binding waits for the restart —
|
|
5622
|
+
* never started live, whatever its role (#3365 review P2). "added": #1519 P6's rule.
|
|
5623
|
+
*/
|
|
5624
|
+
private startedWithConnection;
|
|
5625
|
+
/**
|
|
5626
|
+
* S-91: a token's live start for a connection that was not running did not come up. Whatever adapter it left is taken
|
|
5627
|
+
* down (handlers off, stopped, unregistered), and the connection goes back to the background retry with the error.
|
|
5628
|
+
*/
|
|
5629
|
+
private dropAdapterAfterFailedStart;
|
|
4584
5630
|
/** Stop the old provider client and construct a new one from process.env. */
|
|
4585
5631
|
private rebuildAdapterForSecret;
|
|
4586
5632
|
/**
|
|
@@ -4630,6 +5676,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4630
5676
|
* What the install's own channel offers: the target version and whether it came from that channel's dist-tag. Throws
|
|
4631
5677
|
* when npm cannot be asked (the callers decide what a failed look means).
|
|
4632
5678
|
*/
|
|
5679
|
+
/** Tests only: where lookUpUpdateTarget looks for npm (M-2858); unset in production (the running install, process.env). */
|
|
5680
|
+
private updateNpmProbe?;
|
|
4633
5681
|
private lookUpUpdateTarget;
|
|
4634
5682
|
/** M-2738: record a look's answer for the web — the same offer the notice below would make. */
|
|
4635
5683
|
private recordUpdateCheck;
|
|
@@ -4748,3 +5796,5 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4748
5796
|
getUiStatus(): unknown;
|
|
4749
5797
|
private getUiStatusSync;
|
|
4750
5798
|
}
|
|
5799
|
+
/** alpha.2 (M-2300): the agent an applied Windows request created (its name, for the page's "Open chat"), or null. */
|
|
5800
|
+
export declare function agentNameOf(view: SettingsPendingView): string | null;
|