@songsid/agend 2.3.4 → 2.3.5-alpha.11
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 +67 -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 +182 -0
- package/dist/accounts-view.js +204 -0
- package/dist/accounts-view.js.map +1 -0
- package/dist/agent-cli-instructions.md +3 -3
- package/dist/agent-cli.js +5 -2
- package/dist/agent-cli.js.map +1 -1
- 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-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 +5 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/agent-workspace.d.ts +104 -0
- package/dist/agent-workspace.js +381 -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 +81 -1
- package/dist/auth-api.js +365 -14
- 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/session-authorizations.d.ts +2 -0
- package/dist/authority/session-authorizations.js +7 -1
- package/dist/authority/session-authorizations.js.map +1 -1
- 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 +18 -12
- package/dist/backend/claude-code.js +228 -145
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/cli-env-probe.js +6 -2
- package/dist/backend/cli-env-probe.js.map +1 -1
- 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.d.ts +7 -0
- package/dist/backend/codex-quota-history.js +57 -0
- package/dist/backend/codex-quota-history.js.map +1 -0
- package/dist/backend/codex-session-lookup.d.ts +6 -0
- package/dist/backend/codex-session-lookup.js +1 -1
- package/dist/backend/codex-session-lookup.js.map +1 -1
- package/dist/backend/codex.d.ts +148 -116
- package/dist/backend/codex.js +1355 -1225
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +2 -0
- package/dist/backend/credential-profile.js +4 -1
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/grok-model-cache.d.ts +7 -0
- package/dist/backend/grok-model-cache.js +65 -0
- package/dist/backend/grok-model-cache.js.map +1 -0
- package/dist/backend/grok-weekly-reset.d.ts +24 -0
- package/dist/backend/grok-weekly-reset.js +95 -0
- package/dist/backend/grok-weekly-reset.js.map +1 -0
- package/dist/backend/grok.d.ts +32 -1
- package/dist/backend/grok.js +323 -54
- 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/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 +25 -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 +23 -0
- package/dist/bundled-tmux-guard.js +90 -0
- package/dist/bundled-tmux-guard.js.map +1 -0
- package/dist/cache-service.d.ts +6 -0
- package/dist/cache-service.js +105 -0
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/access-manager.d.ts +1 -6
- package/dist/channel/access-manager.js +4 -94
- package/dist/channel/access-manager.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +0 -2
- package/dist/channel/adapters/discord.js +0 -8
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +0 -3
- package/dist/channel/adapters/telegram.js +1 -30
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/ipc-bridge.d.ts +2 -0
- package/dist/channel/mcp-tools.js +7 -7
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/types.d.ts +0 -2
- 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/classic-channel-manager.d.ts +2 -0
- package/dist/classic-channel-manager.js +5 -1
- package/dist/classic-channel-manager.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/claude-model-minimum.d.ts +7 -0
- package/dist/claude-model-minimum.js +16 -0
- package/dist/claude-model-minimum.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 +286 -68
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +99 -2
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +19 -1
- package/dist/config.js.map +1 -1
- package/dist/daemon.d.ts +165 -7
- package/dist/daemon.js +1307 -307
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +8 -0
- package/dist/dashboard-permissions.js +16 -0
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/decision-list.d.ts +2 -0
- package/dist/decision-list.js +1 -1
- package/dist/decision-list.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +15 -3
- package/dist/delivery-consumed-watch.js +23 -1
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +5 -0
- package/dist/delivery-outbox.js +32 -4
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +2 -42
- package/dist/delivery-reconciliation.js +2 -164
- package/dist/delivery-reconciliation.js.map +1 -1
- 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 +1108 -27
- package/dist/fleet-manager.js +5735 -462
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-process-handlers.d.ts +1 -1
- package/dist/fleet-process-handlers.js +3 -2
- package/dist/fleet-process-handlers.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 +101 -39
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +23 -9
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
- package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -1
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +12 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +3 -3
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +4 -0
- 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 +51 -33
- package/dist/general-knowledge/steering/core-rules.md +7 -5
- 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 +69 -0
- package/dist/hub/client.js +304 -0
- package/dist/hub/client.js.map +1 -0
- package/dist/hub/compose/member.d.ts +145 -0
- package/dist/hub/compose/member.js +458 -0
- package/dist/hub/compose/member.js.map +1 -0
- package/dist/hub/compose/server.d.ts +167 -0
- package/dist/hub/compose/server.js +477 -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 +526 -0
- package/dist/hub/directory/directory.js.map +1 -0
- package/dist/hub/directory/groups.d.ts +41 -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 +83 -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/group-policy/admin-api.d.ts +30 -0
- package/dist/hub/group-policy/admin-api.js +83 -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 +34 -0
- package/dist/hub/group-policy/admin-control.js +258 -0
- package/dist/hub/group-policy/admin-control.js.map +1 -0
- package/dist/hub/group-policy/admin-dto.d.ts +249 -0
- package/dist/hub/group-policy/admin-dto.js +55 -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/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 +739 -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 +18 -0
- package/dist/hub/init/network.js +104 -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 +47 -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 +110 -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 +127 -0
- package/dist/hub/init/text.js +247 -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 +552 -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 +35 -0
- package/dist/hub/join/client.js +112 -0
- package/dist/hub/join/client.js.map +1 -0
- package/dist/hub/join/descriptor.d.ts +45 -0
- package/dist/hub/join/descriptor.js +52 -0
- package/dist/hub/join/descriptor.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 +112 -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 +116 -0
- package/dist/hub/join/local.js +419 -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 +177 -0
- package/dist/hub/join/service.js +564 -0
- package/dist/hub/join/service.js.map +1 -0
- package/dist/hub/join/store.d.ts +97 -0
- package/dist/hub/join/store.js +87 -0
- package/dist/hub/join/store.js.map +1 -0
- package/dist/hub/join/trust.d.ts +13 -0
- package/dist/hub/join/trust.js +68 -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 +87 -0
- package/dist/hub/member/exposure-api.js +64 -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 +87 -0
- package/dist/hub/member/pairing-api.js +391 -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 +48 -0
- package/dist/hub/mount.js +146 -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 +105 -0
- package/dist/hub/pairing.js +514 -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 +840 -0
- package/dist/hub/protocol.js +100 -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 +155 -0
- package/dist/hub/runtime.js +651 -0
- package/dist/hub/runtime.js.map +1 -0
- package/dist/hub/server.d.ts +61 -0
- package/dist/hub/server.js +235 -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 +102 -0
- package/dist/hub/settings-commit.js +522 -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 +37 -0
- package/dist/hub/settings-directory-recovery.js +173 -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/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 +92 -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 +416 -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 +48 -0
- package/dist/hub-pairing-summary.js +36 -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/instance-config-impact.js +9 -3
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +52 -5
- package/dist/instance-lifecycle.js +493 -200
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +2 -0
- package/dist/instructions.js +35 -6
- package/dist/instructions.js.map +1 -1
- package/dist/kiro-history-scan.d.ts +26 -0
- package/dist/kiro-history-scan.js +141 -0
- package/dist/kiro-history-scan.js.map +1 -0
- package/dist/kiro-history-worker.d.ts +1 -0
- package/dist/kiro-history-worker.js +9 -0
- package/dist/kiro-history-worker.js.map +1 -0
- package/dist/kiro-history.d.ts +20 -0
- package/dist/kiro-history.js +96 -0
- package/dist/kiro-history.js.map +1 -0
- package/dist/kiro-usage-run.d.ts +2 -0
- package/dist/kiro-usage-run.js +4 -1
- package/dist/kiro-usage-run.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/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 +345 -99
- package/dist/locale.js.map +1 -1
- package/dist/logger.d.ts +5 -3
- package/dist/logger.js +323 -85
- package/dist/logger.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 +21 -8
- package/dist/login-flows.js +40 -18
- package/dist/login-flows.js.map +1 -1
- package/dist/login-manager.d.ts +2 -2
- package/dist/login-manager.js +28 -6
- 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/muse-usage-relay.d.ts +2 -0
- package/dist/muse-usage-relay.js +5 -3
- package/dist/muse-usage-relay.js.map +1 -1
- 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 +29 -3
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +78 -2
- package/dist/needs-you.js +45 -2
- package/dist/needs-you.js.map +1 -1
- package/dist/office-levels.d.ts +4 -3
- package/dist/office-levels.js +3 -3
- package/dist/office-levels.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 +11 -0
- package/dist/office-share.js +14 -0
- 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 +156 -18
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +94 -1
- package/dist/outbound-schemas.js +44 -16
- 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 +9 -0
- package/dist/pane-quota-history.js +67 -0
- package/dist/pane-quota-history.js.map +1 -0
- 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/platform-general.d.ts +46 -0
- package/dist/platform-general.js +91 -0
- package/dist/platform-general.js.map +1 -0
- 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 +11 -0
- package/dist/public-web-link.js +13 -0
- package/dist/public-web-link.js.map +1 -1
- package/dist/quickstart-api.js +11 -7
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +14 -0
- package/dist/quickstart.js +72 -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/quota-notice-config.d.ts +22 -0
- package/dist/quota-notice-config.js +41 -0
- package/dist/quota-notice-config.js.map +1 -0
- package/dist/quota-notice.d.ts +7 -0
- package/dist/quota-notice.js +40 -0
- package/dist/quota-notice.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +5 -1
- package/dist/reply-buttons-controller.js +18 -10
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/reply-buttons.d.ts +6 -2
- package/dist/reply-buttons.js +7 -3
- package/dist/reply-buttons.js.map +1 -1
- package/dist/reply-polls.d.ts +2 -2
- package/dist/reply-polls.js +3 -3
- package/dist/reply-polls.js.map +1 -1
- 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 +387 -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 +14 -0
- package/dist/runtime-pane-private.js +51 -0
- package/dist/runtime-pane-private.js.map +1 -0
- package/dist/runtime-pane-private.ps1 +14 -0
- package/dist/runtime-pane-process.d.ts +4 -0
- package/dist/runtime-pane-process.js +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 +10 -0
- package/dist/scheduler/db.js +38 -11
- 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 +13 -0
- package/dist/scheduler/task-board.js +28 -3
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/scheduler/types.d.ts +6 -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 +13 -10
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +36 -2
- package/dist/settings-api.js +734 -9
- 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 +5 -3
- package/dist/settings-change.js +61 -1
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +44 -7
- package/dist/settings-confirmation.js +56 -14
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +22 -0
- package/dist/settings-effect.js +294 -4
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +35 -0
- package/dist/settings-http-confirmation.js +153 -13
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-instance-patch.js +1 -1
- package/dist/settings-instance-patch.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-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 +7 -4
- 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 +207 -0
- package/dist/signin-keepalive.js +682 -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 +8 -8
- package/dist/structured-signin.js.map +1 -1
- package/dist/subagent-records.d.ts +45 -0
- package/dist/subagent-records.js +214 -0
- package/dist/subagent-records.js.map +1 -0
- package/dist/subagent-service.d.ts +27 -0
- package/dist/subagent-service.js +199 -0
- package/dist/subagent-service.js.map +1 -0
- package/dist/task-board-tool.d.ts +13 -1
- package/dist/task-board-tool.js +104 -4
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-board-waker.d.ts +6 -0
- package/dist/task-board-waker.js +4 -0
- package/dist/task-board-waker.js.map +1 -1
- package/dist/team-membership.d.ts +7 -0
- package/dist/team-membership.js +10 -0
- package/dist/team-membership.js.map +1 -0
- package/dist/tips.js +4 -4
- package/dist/tips.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 +64 -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 +31 -0
- package/dist/tmux-rollback.js +72 -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.d.ts +2 -3
- package/dist/tool-permissions.js +5 -4
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +10 -6
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +1 -1
- package/dist/transcript-delta-reader.js +1 -1
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/transcript-monitor.d.ts +23 -0
- package/dist/transcript-monitor.js +107 -49
- 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 +34 -0
- package/dist/types.js.map +1 -1
- package/dist/ui/account-identity.js +29 -0
- package/dist/ui/accounts-keepalive.js +118 -0
- package/dist/ui/accounts-manage.js +256 -0
- package/dist/ui/accounts-view.js +460 -0
- package/dist/ui/agent-proposals.js +90 -0
- package/dist/ui/agent-runtime-settings.js +69 -0
- package/dist/ui/agent-runtime.js +124 -0
- package/dist/ui/app.html +8 -1
- package/dist/ui/backend-signin.js +169 -97
- package/dist/ui/chat-ambient.js +1 -1
- package/dist/ui/chat-commands.js +7 -0
- package/dist/ui/chat-md-strings.js +3 -9
- package/dist/ui/chat-msg-actions.js +50 -4
- package/dist/ui/chat-quote.js +256 -0
- package/dist/ui/chat-render.js +3 -670
- package/dist/ui/chat-store.js +23 -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 +1 -1
- 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/fleet-cache.js +3 -3
- package/dist/ui/fleet-canvas.js +2 -2
- package/dist/ui/fleet-office-dialogue.d.ts +30 -0
- package/dist/ui/fleet-office-dialogue.js +382 -0
- package/dist/ui/fleet-office-editor.js +1 -1
- package/dist/ui/fleet-office-pack.d.ts +9 -0
- package/dist/ui/fleet-office-pack.js +76 -4
- package/dist/ui/fleet-office-skin.js +23 -5
- package/dist/ui/fleet-office-store.js +5 -0
- package/dist/ui/fleet-office.js +174 -7
- package/dist/ui/fleet-org.js +2 -2
- package/dist/ui/fleet-task-card.js +11 -7
- package/dist/ui/fleet-task-common.js +18 -8
- 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 +131 -43
- 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 +137 -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-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 +164 -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/machine-signin.js +56 -0
- package/dist/ui/model-picker.js +68 -0
- package/dist/ui/native-instance-settings.js +44 -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 +167 -87
- package/dist/ui/panel-details.js +3 -2
- package/dist/ui/panel-fleet.js +183 -32
- package/dist/ui/panel-hub.js +974 -0
- package/dist/ui/panel-log.js +4 -4
- package/dist/ui/panel-needs.js +179 -13
- package/dist/ui/panel-notices.js +4 -3
- package/dist/ui/panel-runtimes.js +645 -0
- package/dist/ui/panel-settings.js +292 -201
- 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 -548
- 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 +6 -2
- 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 +57 -13
- package/dist/ui/settings-confirm.js +108 -10
- package/dist/ui/settings-devices.js +283 -0
- package/dist/ui/settings-dialogs.js +72 -28
- package/dist/ui/settings-guests.js +29 -14
- package/dist/ui/settings-hub-browser-certificate.js +76 -0
- package/dist/ui/settings-hub-company-join.js +165 -0
- package/dist/ui/settings-hub-connection.js +121 -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 +63 -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 +266 -0
- package/dist/ui/settings-layout.js +246 -0
- package/dist/ui/settings-model.js +10 -1
- package/dist/ui/settings-named-test.js +2 -2
- package/dist/ui/settings-outside.js +310 -0
- package/dist/ui/settings-quota-notice.js +102 -0
- package/dist/ui/settings-registry.js +26 -6
- 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 +143 -0
- package/dist/ui/settings-shared.js +345 -0
- package/dist/ui/settings-shortcuts.js +65 -0
- package/dist/ui/settings-strings.js +146 -71
- package/dist/ui/settings-update.js +69 -0
- package/dist/ui/settings-web-authority.js +29 -15
- 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-i18n.js +25 -18
- package/dist/ui/shared/app-route.js +12 -3
- package/dist/ui/shared/app-session.js +13 -12
- package/dist/ui/shared/app-shell.js +320 -48
- package/dist/ui/shared/app-store.js +3 -2
- package/dist/ui/shared/app-stream.js +3 -1
- package/dist/ui/shared/app-update.js +215 -0
- package/dist/ui/shared/app.css +1542 -8
- package/dist/ui/shared/app.js +18 -4
- package/dist/ui/shared/chat-composer.js +68 -0
- package/dist/ui/shared/chat-md-strings.js +9 -0
- package/dist/ui/shared/chat-render.js +682 -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/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 +35 -8
- package/dist/ui/shared/instance-switch.js +4 -3
- package/dist/ui/shared/loading.css +37 -0
- package/dist/ui/shared/machine-name.js +13 -0
- package/dist/ui/shared/model-picker.css +21 -0
- package/dist/ui/shared/page-head.js +8 -0
- 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 +565 -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/setup-host-text.js +8 -5
- package/dist/ui/shared/side-rail.js +15 -0
- package/dist/ui/shared/signin-authenticator.js +60 -0
- package/dist/ui/shared/signin.js +315 -25
- package/dist/ui/shared/subagent-row.css +15 -0
- 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 +30 -10
- package/dist/ui/shared/ui-states.js +14 -3
- package/dist/ui/shared/usage-dialog.js +4 -73
- 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-strings.js +26 -18
- package/dist/ui/shared/web-authorize.js +55 -5
- package/dist/ui/shared/workspace-follow.css +19 -0
- package/dist/ui/shared/workspace.css +20 -0
- package/dist/ui/signin-authenticator.html +60 -0
- package/dist/ui/signin.html +27 -2
- package/dist/ui/structured-signin.js +89 -39
- package/dist/ui/subagent-row.js +72 -0
- package/dist/ui/web-terminal/terminal.js +9 -9
- 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.d.ts +11 -2
- package/dist/unattended-install.js +41 -6
- package/dist/unattended-install.js.map +1 -1
- package/dist/update-dispatch.d.ts +32 -4
- package/dist/update-dispatch.js +146 -16
- 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-launch.d.ts +1 -1
- package/dist/update-launch.js +6 -3
- package/dist/update-launch.js.map +1 -1
- package/dist/update-marker.d.ts +4 -2
- package/dist/update-marker.js +4 -3
- package/dist/update-marker.js.map +1 -1
- package/dist/update-npm-env.d.ts +70 -0
- package/dist/update-npm-env.js +128 -0
- package/dist/update-npm-env.js.map +1 -0
- package/dist/usage/providers.d.ts +8 -0
- package/dist/usage/providers.js +36 -26
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-notices.d.ts +38 -0
- package/dist/usage/quota-notices.js +160 -0
- package/dist/usage/quota-notices.js.map +1 -0
- package/dist/usage/usage-api.d.ts +2 -1
- package/dist/usage/usage-api.js +19 -10
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/usage-rollup.d.ts +3 -0
- package/dist/usage-rollup.js +2 -0
- package/dist/usage-rollup.js.map +1 -1
- package/dist/view-api.d.ts +2 -8
- package/dist/view-api.js +8 -16
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +163 -3
- package/dist/web-api.js +1391 -32
- package/dist/web-api.js.map +1 -1
- package/dist/web-auth.js +2 -1
- package/dist/web-auth.js.map +1 -1
- package/dist/web-backend-login.d.ts +39 -3
- package/dist/web-backend-login.js +25 -17
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-channel-echo.js +3 -1
- package/dist/web-channel-echo.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 +9 -1
- package/dist/web-commands.js +7 -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-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-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 +273 -0
- package/dist/web-remote-access.js +610 -0
- package/dist/web-remote-access.js.map +1 -0
- package/dist/web-session.d.ts +61 -0
- package/dist/web-session.js +47 -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 +78 -0
- package/dist/web-update.js +106 -0
- package/dist/web-update.js.map +1 -0
- 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/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 +143 -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 +24 -4
- 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 -4
- 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 +14 -0
- package/templates/runtime-assets/xterm-LICENSE +21 -0
- package/templates/runtime-install/install.ps1 +618 -0
package/dist/fleet-manager.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { AgentRuntimeChanges } from "./agent-runtime-change.js";
|
|
1
2
|
import { type HumanOrigin } from "./human-delivery-receipts.js";
|
|
3
|
+
import { SettingsConfirmationStore, type SettingsPendingView } from "./settings-confirmation.js";
|
|
4
|
+
import { type GeneralSwitchInput } from "./general-binding.js";
|
|
2
5
|
import { SettingsExecution } from "./settings-transaction.js";
|
|
3
6
|
import { AppIconStore } from "./web-app-icon.js";
|
|
4
7
|
import { type NamedTestResult } from "./tunnel/named-link-test.js";
|
|
5
8
|
import { OfficeShareService } from "./office-share-service.js";
|
|
9
|
+
import { OfficeTalk } from "./office-talk.js";
|
|
6
10
|
import { type OfficeShare } from "./office-share.js";
|
|
7
11
|
import type { PageShare } from "./page-share.js";
|
|
8
12
|
import type { LoginCodeOwner } from "./web-login.js";
|
|
9
13
|
import { type ProfileTicket } from "./runtime-cpu-profile.js";
|
|
10
14
|
import type { CpuProfile } from "./cpu-profile.js";
|
|
15
|
+
import { type IncomingMessage } from "node:http";
|
|
11
16
|
import { type FleetMemory } from "./process-memory.js";
|
|
12
17
|
import { MemoryPressure, type MemoryPressureSnapshot } from "./memory-pressure.js";
|
|
13
18
|
import { ReplyDeduper } from "./reply-dedup.js";
|
|
@@ -19,11 +24,12 @@ import { type TopicDeleteOutcome } from "./instance-topic-delete.js";
|
|
|
19
24
|
import { BackendAvailabilityStore, type AvailabilityProbes, type BackendAvailability } from "./backend-availability.js";
|
|
20
25
|
import { AdapterWorld } from "./adapter-world.js";
|
|
21
26
|
import { CostGuard } from "./cost-guard.js";
|
|
22
|
-
import {
|
|
27
|
+
import { type InstanceClient } from "./channel/ipc-bridge.js";
|
|
23
28
|
import type { AdapterHealthSnapshot, ChannelAdapter, InboundMessage, InboundReaction } from "./channel/types.js";
|
|
24
29
|
import { type BackendCliVersionSnapshot } from "./backend/types.js";
|
|
25
30
|
import { type Logger } from "./logger.js";
|
|
26
31
|
import { Scheduler } from "./scheduler/index.js";
|
|
32
|
+
import type { Task } from "./scheduler/types.js";
|
|
27
33
|
import type { FleetContext } from "./fleet-context.js";
|
|
28
34
|
import { TmuxControlClient } from "./tmux-control.js";
|
|
29
35
|
import { RoutingEngine } from "./routing-engine.js";
|
|
@@ -52,6 +58,11 @@ export declare const LIVE_TASK_STATUSES: string[];
|
|
|
52
58
|
* " \t " and [" ", "\t"] both normalize to undefined (not treated as explicit
|
|
53
59
|
* filters). The same result drives the live-only default and the cap decision.
|
|
54
60
|
*/
|
|
61
|
+
/**
|
|
62
|
+
* #3195: the saved value of each plain-update field the call named (assignee, priority, result), read back from the
|
|
63
|
+
* task — so the answer shows what was persisted, not what was asked. Status is always in the ack already.
|
|
64
|
+
*/
|
|
65
|
+
export declare function savedFields(t: Task, named: Record<string, unknown>): Partial<Pick<Task, "assignee" | "priority" | "result">>;
|
|
55
66
|
export declare function normalizeStatusFilter(v: unknown): string | string[] | undefined;
|
|
56
67
|
export declare function applyTaskListCap<T extends {
|
|
57
68
|
updated_at: string;
|
|
@@ -61,6 +72,10 @@ export declare function applyTaskListCap<T extends {
|
|
|
61
72
|
hint: string;
|
|
62
73
|
} | T[];
|
|
63
74
|
import { type PublicPreviewForUi } from "./web-api.js";
|
|
75
|
+
import { RuntimeInstallService } from "./runtime-install.js";
|
|
76
|
+
import { RuntimeCoordinator } from "./runtime-coordinator.js";
|
|
77
|
+
import { FleetWindowsRuntime, type NativeRuntimePatch } from "./fleet-windows-runtime.js";
|
|
78
|
+
import { NativeMcpSessions } from "./native-mcp.js";
|
|
64
79
|
import { type LogAnswer, type LogQuery } from "./log-service.js";
|
|
65
80
|
import { type ViewHistoryAnswer, type ViewHistoryQuery } from "./view-history.js";
|
|
66
81
|
import { WebChatHistory, type WebChatPost } from "./web-chat-history.js";
|
|
@@ -78,6 +93,7 @@ import { type WebAccount } from "./web-profile.js";
|
|
|
78
93
|
import type { WebPerson as WebPersonView } from "./web-api.js";
|
|
79
94
|
import { ReplyButtonsController } from "./reply-buttons-controller.js";
|
|
80
95
|
import { WebFileLedger } from "./web-upload.js";
|
|
96
|
+
import type { ActiveDecisionRow } from "./daemon.js";
|
|
81
97
|
import { AppearanceTools } from "./web-appearance-tools.js";
|
|
82
98
|
import { ModStore } from "./web-mod-store.js";
|
|
83
99
|
import { type CachedImage } from "./web-images.js";
|
|
@@ -85,7 +101,9 @@ import { SearchIndex } from "./search/search-index.js";
|
|
|
85
101
|
import { type CrossInstanceRecord, type XmsgVisibility } from "./search/search-docs.js";
|
|
86
102
|
import { WebSettingsTools } from "./web-settings-tools.js";
|
|
87
103
|
import { type Delegation, type TrafficItem } from "./fleet-traffic.js";
|
|
104
|
+
import { type WebUpdateHost } from "./web-update.js";
|
|
88
105
|
import { WebBackendLogins, type SignInTarget } from "./web-backend-login.js";
|
|
106
|
+
import { WebHostInstalls, type HostInstallMode, type HostInstallReporter, type HostInstallStart } from "./web-host-install.js";
|
|
89
107
|
import { BrowserBackendSignIns } from "./browser-backend-signins.js";
|
|
90
108
|
import { type RawConfigPatch } from "./settings-api.js";
|
|
91
109
|
import { type AgentEndpointContext } from "./agent-endpoint.js";
|
|
@@ -99,12 +117,15 @@ import { WakeCoordinator } from "./wake-coordinator.js";
|
|
|
99
117
|
import { TargetQueueWorker } from "./target-queue-worker.js";
|
|
100
118
|
import { resolveDeliveryWorkerMode } from "./types.js";
|
|
101
119
|
import { type WebNeedsItem } from "./needs-you-hub.js";
|
|
120
|
+
import { type SetResult as KeepAliveSetResult } from "./signin-keepalive.js";
|
|
102
121
|
import { type OrgChart } from "./web-org.js";
|
|
103
122
|
import { type MemoryHog } from "./memory-hogs.js";
|
|
104
123
|
import { type CacheReport } from "./cache-service.js";
|
|
105
124
|
import { type WebCommandResult } from "./web-commands.js";
|
|
106
|
-
import { type
|
|
125
|
+
import { type TotpSignInResult } from "./auth-api.js";
|
|
126
|
+
import { type SessionRecord, type WebDeviceRow } from "./web-session.js";
|
|
107
127
|
import { WebNotices } from "./web-notices.js";
|
|
128
|
+
import { WebRemoteAccess } from "./web-remote-access.js";
|
|
108
129
|
import { VERIFIED_SESSION_HOURS, type HumanAuthority, type WebAuthorityRefusal, type WebAuthorityResult, type WebPeer } from "./authority/web-authority.js";
|
|
109
130
|
import { type AuthorityState } from "./authority/authority-state.js";
|
|
110
131
|
import { type SessionAuthorization } from "./authority/session-authorizations.js";
|
|
@@ -115,6 +136,12 @@ import { type ConnectionMetadata, type ConnectionBinding, type BindingProbe, typ
|
|
|
115
136
|
import { type ProviderSecretStatus } from "./provider-secret-registry.js";
|
|
116
137
|
import { ApplyJobStore, type ApplyJob, type ApplyTargetKind, type SelfRestartResult } from "./apply-job.js";
|
|
117
138
|
import { type CarryResult } from "./backend/claude-carry.js";
|
|
139
|
+
import { type AccountsView } from "./accounts-view.js";
|
|
140
|
+
import { type AddResult, type RemoveResult } from "./accounts-profiles.js";
|
|
141
|
+
import { type SignOutResult } from "./accounts-signout.js";
|
|
142
|
+
import { MachineAccounts, type MachineActor, type MachineAccountResult } from "./machine-accounts.js";
|
|
143
|
+
import { MachineSignIns } from "./machine-signins.js";
|
|
144
|
+
import { ProfileSignIns } from "./profile-signins.js";
|
|
118
145
|
import { StormWindow } from "./storm-window.js";
|
|
119
146
|
import { SpawnGate } from "./spawn-gate.js";
|
|
120
147
|
import { BackendOutageTracker } from "./backend-outage.js";
|
|
@@ -202,8 +229,18 @@ export interface ModelCatalog {
|
|
|
202
229
|
note?: string;
|
|
203
230
|
}
|
|
204
231
|
export interface DeliveryOptions {
|
|
232
|
+
/**
|
|
233
|
+
* A Windows instance only: the sender's authority after the handoff (see NativeRuntimeDeliveryOptions.authorityCurrent).
|
|
234
|
+
* stillCurrent fences the handoff itself; this one is rechecked before the Windows process starts.
|
|
235
|
+
*/
|
|
236
|
+
authorityCurrent?: () => boolean;
|
|
205
237
|
/** Explicitly identify agent-to-agent delivery when metadata is unavailable. */
|
|
206
238
|
isCrossInstance?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* The Hub representative's last step (docs/design/hub-representative-agent.md): run after any wake, the idle wait and
|
|
241
|
+
* the storm recheck, immediately before the IPC hand-off. False drops the delivery unsent. Not for Windows agents.
|
|
242
|
+
*/
|
|
243
|
+
beforeInput?: () => Promise<boolean>;
|
|
207
244
|
/** Force or bypass the idle gate. Schedules set this explicitly. */
|
|
208
245
|
waitForIdle?: boolean;
|
|
209
246
|
/** Test/operational override; normal deliveries use the 60 second backstop. */
|
|
@@ -286,6 +323,7 @@ export declare class RestartSupersededError extends Error {
|
|
|
286
323
|
}
|
|
287
324
|
export declare class FleetManager implements FleetContext, LifecycleContext, ArchiverContext, StatuslineWatcherContext, OutboundContext, AgentEndpointContext {
|
|
288
325
|
dataDir: string;
|
|
326
|
+
private decisionSnapshot;
|
|
289
327
|
private static signalTarget;
|
|
290
328
|
private static sighupHandlerInstalled;
|
|
291
329
|
/** Test seam: inject a spy to verify saveFleetConfig calls fsync. Default: fsyncSync. */
|
|
@@ -325,7 +363,269 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
325
363
|
/** Live view of lifecycle.daemons — used throughout; not deprecated. */
|
|
326
364
|
get daemons(): Map<string, Daemon>;
|
|
327
365
|
fleetConfig: FleetConfig | null;
|
|
366
|
+
private fleetWindowsRuntime;
|
|
367
|
+
private nativeMcpStore;
|
|
368
|
+
private paneManager;
|
|
369
|
+
private localPaneRelay;
|
|
370
|
+
private openingLocalPane;
|
|
371
|
+
private runtimeHub;
|
|
372
|
+
/**
|
|
373
|
+
* 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
|
|
374
|
+
* 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
|
|
375
|
+
* 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
|
|
376
|
+
* 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
|
|
377
|
+
* 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
|
|
378
|
+
* 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.
|
|
379
|
+
*/
|
|
380
|
+
private ownerNoticeTimer;
|
|
381
|
+
/** 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. */
|
|
382
|
+
private readonly ownerNoticeLive;
|
|
383
|
+
private readonly ownerNoticeInFlight;
|
|
384
|
+
private pendingOwnerNoticesFile;
|
|
385
|
+
private readPendingOwnerNotices;
|
|
386
|
+
private writePendingOwnerNotices;
|
|
387
|
+
static readonly OWNER_NOTICE_CAP = 100;
|
|
388
|
+
/** Past the cap, the oldest are folded into one notice (a count, and where to look); it never silently disappears. */
|
|
389
|
+
private foldOwnerNotices;
|
|
390
|
+
/** Keeps the notice, then tries to deliver it; it stays on disk until a delivery is acknowledged. */
|
|
391
|
+
deliverOwnerNotice(text: string): void;
|
|
392
|
+
private attemptOwnerNotice;
|
|
393
|
+
/** Tries every kept notice that has no attempt in flight (oldest first); returns how many are kept. */
|
|
394
|
+
flushOwnerNotices(): number;
|
|
395
|
+
private scheduleOwnerNoticeFlush;
|
|
396
|
+
private runtimeInstall;
|
|
397
|
+
/** One service for the public installer routes and the administrator API: the hash the dashboard shows is the hash of what is sent. */
|
|
398
|
+
runtimeInstaller(): RuntimeInstallService;
|
|
399
|
+
private runtimeExecutor;
|
|
400
|
+
private runtimeStatusScheduled;
|
|
401
|
+
private readonly reconciledRemoteResults;
|
|
402
|
+
/** Machine credentials are separate from dashboard sessions and per-turn agent capabilities. */
|
|
403
|
+
runtimeCoordinator(): RuntimeCoordinator;
|
|
404
|
+
private runtimeWindowsExecutor;
|
|
405
|
+
/** Per-turn capabilities for native MCP, separate from browser and Linux-agent credentials. */
|
|
406
|
+
nativeMcpSessions(): NativeMcpSessions;
|
|
407
|
+
/** Retire only existing native capabilities; ordinary lifecycle changes do not instantiate the Windows path. */
|
|
408
|
+
invalidateNativeMcp(name: string): void;
|
|
409
|
+
/** The same instance registry and delivery entry point, with a native Windows execution adapter. */
|
|
410
|
+
nativeInstanceRuntime(): FleetWindowsRuntime;
|
|
411
|
+
private agentRuntimeChangeService?;
|
|
412
|
+
agentRuntimeChanges(): AgentRuntimeChanges;
|
|
413
|
+
/** Explicit dashboard opt-in, with the same General confirmation and ordinary topic/Daemon routing. */
|
|
414
|
+
createNativePaneInstance(profile: Record<string, unknown>, channelId: string | undefined, authorized: () => boolean, execution: SettingsExecution): Promise<{
|
|
415
|
+
name: string;
|
|
416
|
+
runtime: "windows";
|
|
417
|
+
agent: import("./windows-agents.js").WindowsAgent;
|
|
418
|
+
}>;
|
|
419
|
+
/** Admin-only settings path: validate first, then close the exact old launch before changing cold fields. */
|
|
420
|
+
updateNativePaneConfig(name: string, patch: Partial<NativeRuntimePatch>, authorized: () => boolean, transaction?: Pick<SettingsExecution, "mutate" | "complete">): Promise<ReturnType<FleetWindowsRuntime["update"]>>;
|
|
421
|
+
/** The local machine's inventory as last used to open its pane relay (status only; never a launch decision). */
|
|
422
|
+
private localPaneInventory;
|
|
423
|
+
private nativeCliStatus;
|
|
424
|
+
private localNativePaneEndpoint;
|
|
425
|
+
/** Persistent ownership is independent of the exec worker's per-turn capabilities. */
|
|
426
|
+
private nativePanes;
|
|
427
|
+
/** Prepare only bundled role files; this neither switches General nor starts a provider process. */
|
|
428
|
+
prepareWindowsGeneralWorkspace(name: string, machineId: string, cli: "codex" | "claude-code", bindingId: string, authorized: () => boolean): Promise<import("./runtime-general-protocol.js").GeneralWorkspaceReceipt>;
|
|
429
|
+
/** S3c (S-55): the member's exposure API, attached by S5's member composition (null: no Hub member here). */
|
|
430
|
+
private hubMemberExposureApi;
|
|
431
|
+
hubMemberExposures(): import("./hub/member/exposure-api.js").HubMemberExposureApi | null;
|
|
432
|
+
attachHubMemberExposures(api: import("./hub/member/exposure-api.js").HubMemberExposureApi | null): void;
|
|
433
|
+
/** M-2687: local host-session setup; controller creation stays lazy while the Hub is off. */
|
|
434
|
+
private hubSetupController;
|
|
435
|
+
private hubSetupInit;
|
|
436
|
+
private hubDirectoryControl;
|
|
437
|
+
private hubDirectoryInit;
|
|
438
|
+
private hubDirectoryCurrent;
|
|
439
|
+
/** Both private listeners share this controller and the already-created sealed writer; callers prove authority first. */
|
|
440
|
+
hubDirectorySettings(): Promise<import("./hub/settings-directory-control.js").HubDirectorySettingsControl>;
|
|
441
|
+
hubSetupSession(req: IncomingMessage): import("./hub/init/types.js").HubInitHostOwner | null;
|
|
442
|
+
hubSetup(): Promise<import("./hub/init/web.js").HubWebInitializer>;
|
|
443
|
+
/** Existing-state host notices also work while the Hub listener is held. No runtime/initializer is started here. */
|
|
444
|
+
hubDirectoryNotices(): Promise<import("./hub/settings-directory-host-notices.js").HubDirectoryHostNotices>;
|
|
445
|
+
/** The member's company sign-in controller; separate from host-owned Hub initialization. */
|
|
446
|
+
private companyJoinController;
|
|
447
|
+
private companyJoinInit;
|
|
448
|
+
private companyObservedMembership;
|
|
449
|
+
private companyMembershipWrite;
|
|
450
|
+
hubCompanySession(req: IncomingMessage): import("./hub/join/local-journal.js").JoinLocalSession | null;
|
|
451
|
+
hubCompanyJoin(): Promise<import("./hub/join/local.js").CompanyJoinController>;
|
|
452
|
+
invalidateHubCompanyJoin(): void;
|
|
453
|
+
private hubMemberPairingApi;
|
|
454
|
+
private hubPairingNotices;
|
|
455
|
+
hubMemberPairing(): ReturnType<typeof import("./hub/member/pairing-api.js").createHubMemberPairingApi> | null;
|
|
456
|
+
/** Explicit owner Settings read only. A paused binding is not permission to mount or connect a member. */
|
|
457
|
+
hubMemberPairingView(): Promise<import("./hub-pairing-summary.js").HubPairingView>;
|
|
458
|
+
attachHubMemberPairing(api: ReturnType<typeof import("./hub/member/pairing-api.js").createHubMemberPairingApi> | null): void;
|
|
459
|
+
private readonly generalLocationFlights;
|
|
460
|
+
private readonly generalAttentionEpisodes;
|
|
461
|
+
private generalBindings;
|
|
462
|
+
generalLocations(): unknown;
|
|
463
|
+
/** Pure preflight for the confirmation diff and stale-tab refusal; never prepares files or starts a CLI. */
|
|
464
|
+
previewGeneralLocation(raw: unknown): {
|
|
465
|
+
input: GeneralSwitchInput;
|
|
466
|
+
summary: string[];
|
|
467
|
+
connections: string[];
|
|
468
|
+
};
|
|
469
|
+
/** All entry points, including automatic native recovery, must respect an interrupted binding switch. */
|
|
470
|
+
assertGeneralBindingStart(name: string, config: InstanceConfig): void;
|
|
471
|
+
/** Only the Settings replay's confirmed admin can enter; the whole switch owns one lifecycle transition. */
|
|
472
|
+
switchGeneralLocation(raw: unknown, authorized: () => boolean, execution: SettingsExecution): Promise<{
|
|
473
|
+
started: boolean;
|
|
474
|
+
message: string;
|
|
475
|
+
}>;
|
|
476
|
+
/** An offline PC or a confirmed binding boundary holds old waiting input; it never becomes another conversation's queue. */
|
|
477
|
+
private holdGeneralOldDeliveries;
|
|
478
|
+
generalLocationDeliveryHold(name: string): string | null;
|
|
479
|
+
private generalLocationAttention;
|
|
480
|
+
nativePaneFor(name: string, config: InstanceConfig, assertCurrent: () => void): Promise<import("./native-pane-lifecycle.js").NativePaneLifecycle>;
|
|
481
|
+
recoverNativePane(name: string, launchId: string, authorized: () => boolean): Promise<void>;
|
|
482
|
+
holdNativePaneRecovery(name: string, error: unknown): boolean;
|
|
483
|
+
startFreshNativePane(name: string, launchId: string, sessionId: string | null, authorized: () => boolean): Promise<void>;
|
|
484
|
+
nativePanePinnedSession(name: string): string | null;
|
|
485
|
+
onNativePaneRecoverySettled(name: string): void;
|
|
486
|
+
setNativePanePaused(name: string, paused: boolean): void;
|
|
487
|
+
closeRetainedNativePane(name: string): Promise<void>;
|
|
488
|
+
reconcileNativePaneBeforeStart(name: string, daemon: Daemon): Promise<boolean>;
|
|
489
|
+
/** M-2255: the Windows runtimes' switches the fleet's own state reflects (null until the start-up has applied them). */
|
|
490
|
+
private runtimeEffects;
|
|
491
|
+
private runtimeEffectsScheduled;
|
|
492
|
+
private localPaneDrain;
|
|
493
|
+
private remotePaneDrain;
|
|
494
|
+
/** Revoke admissions synchronously; keep the captured transport only long enough for exact owned closes. */
|
|
495
|
+
private drainNativeRuntime;
|
|
496
|
+
/**
|
|
497
|
+
* M-2255: Settings → Runtime's switches (fleet.yaml `runtimes`, or their environment override) in force — set each time
|
|
498
|
+
* the configuration in force changes (a load, a save, a reload's rollback), next to the web authority's. Every gate reads
|
|
499
|
+
* them at once; what the fleet itself holds (paired computers' connections, this PC's Windows process, agents' tool
|
|
500
|
+
* sessions) follows just after, outside the save that changed them (applyRuntimeSwitches): no restart is needed.
|
|
501
|
+
*/
|
|
502
|
+
/** S-51: the Hub switches follow the configuration in force (load, save, reload rollback), like the runtime ones. */
|
|
503
|
+
private observeHubSwitches;
|
|
504
|
+
/** Reads the raw configuration at run time (the newest wins); off and never started: returns before any import. */
|
|
505
|
+
private applyHubSwitches;
|
|
506
|
+
/** M-2682: the one writer for sealed Hub settings, created with the Hub runtime. */
|
|
507
|
+
private hubSettingsWriter;
|
|
508
|
+
/** Single flight: one import, one runtime, assigned once; every caller (and Stop) gets that same runtime. */
|
|
509
|
+
private hubRuntimeCreated;
|
|
510
|
+
/**
|
|
511
|
+
* S-51 PR 2b: while the member switch is on, the local owner's "Connect to a Hub" backend (S3c's pairing API) is
|
|
512
|
+
* attached, paired or not; switched off, it is detached. A binding change re-composes the member side.
|
|
513
|
+
*/
|
|
514
|
+
private observeHubMemberPairing;
|
|
515
|
+
/**
|
|
516
|
+
* Disconnect: every published exposure is withdrawn and saved before the disconnect reports success. Through the
|
|
517
|
+
* running member's API, or — held or not composed — directly in the member's own store; a failure here makes the
|
|
518
|
+
* disconnect report "unsaved" (S3c), so consent never outlives the disconnect.
|
|
519
|
+
*/
|
|
520
|
+
private hubMemberWithdrawAll;
|
|
521
|
+
/**
|
|
522
|
+
* The Hub exposure picker's agents (docs/design/hub-representative-agent.md): every configured instance normal
|
|
523
|
+
* delivery addresses, General included, shown by its display name. The dedicated Hub daemon is not a fleet instance.
|
|
524
|
+
*/
|
|
525
|
+
private hubMemberAgents;
|
|
526
|
+
/** Same cached usage source as the owner's rail, scoped to the representative's CLI and credential profile. */
|
|
527
|
+
private hubAgentQuota;
|
|
528
|
+
/**
|
|
529
|
+
* A published representative's lifecycle token (#3145, #3147 review): a DURABLE incarnation id per agent name, rotated
|
|
530
|
+
* whenever its backend, folder or runtime changes and dropped when the instance is removed. A replacement (remove and
|
|
531
|
+
* re-add, even with the same name and config, across restarts) or any retarget — including A→B→A — gets a new id, so
|
|
532
|
+
* earlier consent never matches again without an explicit republish. Stopping or pausing changes nothing.
|
|
533
|
+
*/
|
|
534
|
+
private hubAgentToken;
|
|
535
|
+
private hubIncarnationsPath;
|
|
536
|
+
/**
|
|
537
|
+
* M-2451 (#3147 residual): written beside hub-member/, in the data directory itself, when an invalidation could not be
|
|
538
|
+
* made durable in hub-member/. A later process that finds it invalidates every incarnation before handing out any
|
|
539
|
+
* token, so a restart never revives consent the earlier process had to withdraw (A→B→A, or a removal, while hub-member/
|
|
540
|
+
* was unwritable).
|
|
541
|
+
*/
|
|
542
|
+
private hubIncarnationsMarkerPath;
|
|
543
|
+
/** Whether this process has settled the incarnations on disk (the marker handled, the file proven writable). */
|
|
544
|
+
private hubIncarnationsSettled;
|
|
545
|
+
/**
|
|
546
|
+
* Once per process, before the first token: an invalidation an earlier process could not persist (the marker) clears
|
|
547
|
+
* every incarnation; and an existing file must be rewritable here, else this process is broken (no token at all) —
|
|
548
|
+
* an incarnation this process could not rotate must never be handed out. Fails closed: any doubt marks it broken.
|
|
549
|
+
*/
|
|
550
|
+
private settleHubIncarnations; /**
|
|
551
|
+
* #3147 r2: set when an invalidation could not be made durable in any way (neither the atomic write nor removing the
|
|
552
|
+
* file worked). From then on this process hands out no representative token at all, and the transitions the fleet
|
|
553
|
+
* controls (a config save, a removal) are refused instead of applied.
|
|
554
|
+
*/
|
|
555
|
+
private hubIncarnationsBroken;
|
|
556
|
+
private readHubIncarnations;
|
|
557
|
+
/**
|
|
558
|
+
* Persist the incarnation map: "written", or — when the atomic write fails — "cleared": the whole file is removed, which
|
|
559
|
+
* durably invalidates EVERY earlier incarnation (all consent then needs a republish; never a revival). Throws (and
|
|
560
|
+
* marks the process broken) only when neither is possible.
|
|
561
|
+
*/
|
|
562
|
+
private writeHubIncarnations;
|
|
563
|
+
/** The agent's durable incarnation id (create: make one if none; else null). A changed fingerprint rotates it. */
|
|
564
|
+
private hubAgentIncarnation;
|
|
565
|
+
/**
|
|
566
|
+
* Every configuration in force: rotate a recorded agent's incarnation when its backend/folder/runtime changed; drop
|
|
567
|
+
* removed ones. strict (a config save the fleet is about to write): a failure to make that durable throws, so the save
|
|
568
|
+
* is refused instead of applied. Otherwise (a load or reload of a hand-edited file) a failure is logged — the
|
|
569
|
+
* invalidation then is the cleared file, or, if nothing could be written, this process hands out no token at all.
|
|
570
|
+
*/
|
|
571
|
+
private observeHubAgentIncarnations;
|
|
572
|
+
/** A removed instance's incarnation goes with it (a later instance of the same name is a new one). strict: throw if not durable. */
|
|
573
|
+
private forgetHubAgentIncarnation;
|
|
574
|
+
/**
|
|
575
|
+
* A Hub question to its representative agent: ordinary cross-instance delivery (idle gate, wake, retries), from the
|
|
576
|
+
* reserved Hub sender with the Hub-issued correlation id. beforeInput runs immediately before the IPC hand-off.
|
|
577
|
+
*/
|
|
578
|
+
private deliverHubQuestion;
|
|
579
|
+
/** S-51: why the Hub (or this fleet's Hub membership) is not running, if it is held. Empty while off or running. */
|
|
580
|
+
getHubHolds(): readonly import("./hub/runtime.js").HubHold[];
|
|
581
|
+
hubBrowserCertificate(): import("./hub/browser-certificate.js").HubBrowserCertificateControl | null;
|
|
582
|
+
hubRetention(): import("./hub/retention.js").HubRetentionControl | null;
|
|
583
|
+
/** M-2682: an unfinished sealed-settings commit; Hub setting saves wait until recover() has run. */
|
|
584
|
+
hubSettingsBusy(): boolean;
|
|
585
|
+
/** #3298 S-89: this fleet's own Hub offers group permissions (the page mark that shows Settings → Hub's Group permissions row). */
|
|
586
|
+
hubGroupPermissions(): boolean;
|
|
587
|
+
private observeRuntimeSwitches;
|
|
588
|
+
/**
|
|
589
|
+
* Turned off: what it allowed ends now — the paired computers' connections (their agents show as offline) or this PC's
|
|
590
|
+
* Windows process (a turn in progress is cancelled, as when the fleet stops), and those agents' tool sessions.
|
|
591
|
+
* Turned on: the Windows agents are registered and their chat history read, as at start-up.
|
|
592
|
+
*/
|
|
593
|
+
private applyRuntimeSwitches;
|
|
594
|
+
/** An unavailable opt-in runtime must not prevent the Linux fleet from starting or restoring its own history. */
|
|
595
|
+
private initializeNativeInstances;
|
|
596
|
+
/** Native CLIs are headless: the manager owns the durable delivery generation instead of a tmux daemon. */
|
|
597
|
+
private deliveryBootId;
|
|
328
598
|
private rawFleetConfig;
|
|
599
|
+
/**
|
|
600
|
+
* S-51 (#3095, experimental, off by default): the Hub runtime. src/hub/runtime.js is imported only once a Hub switch
|
|
601
|
+
* (hub.enabled / hub_member.enabled) is on; while both are off nothing Hub-related loads, opens or listens.
|
|
602
|
+
*/
|
|
603
|
+
private hubRuntime;
|
|
604
|
+
/** S3c's currentBinding reader, loaded with the pairing API (only while the member switch is on). */
|
|
605
|
+
private hubMemberBinding;
|
|
606
|
+
/** The member link as the "Connect to a Hub" view shows it (S5's client lifecycle). */
|
|
607
|
+
private hubMemberLink;
|
|
608
|
+
/** OutboundContext: the Hub representative's answer hook (null: no member service running, or not a Hub answer). */
|
|
609
|
+
hubReport(input: {
|
|
610
|
+
correlationId: string;
|
|
611
|
+
caller: string;
|
|
612
|
+
text: string;
|
|
613
|
+
callerCurrent(): boolean;
|
|
614
|
+
extras?: import("./hub-report-target.js").HubReportExtras;
|
|
615
|
+
}): Promise<import("./hub-report-target.js").HubReportOutcome> | null;
|
|
616
|
+
/** The member side's pane-failure hook for a Hub-issued correlation id (else null). */
|
|
617
|
+
private hubDeliveryFailed;
|
|
618
|
+
/** The member side's report_result hook for HUB_REPORT_TARGET while a representative service runs (else null). */
|
|
619
|
+
private hubReports;
|
|
620
|
+
/** The one in-flight creation (single flight): overlapping first observations share it, Stop waits for it. */
|
|
621
|
+
private hubRuntimeInit;
|
|
622
|
+
private hubEffectsReady;
|
|
623
|
+
private hubEffectsScheduled;
|
|
624
|
+
private hubHolds;
|
|
625
|
+
/** 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. */
|
|
626
|
+
private tmuxHold;
|
|
627
|
+
/** M-2457 §6 rule 3: instances held by an old 2.3 window AgEnD could not prove its own. */
|
|
628
|
+
private readonly legacyWindowHolds;
|
|
329
629
|
private rawFleetDocument;
|
|
330
630
|
/** #2208: the paths a saveFleetConfig() wrote, for its check that nothing else changed. */
|
|
331
631
|
private fleetDocumentWrites;
|
|
@@ -341,7 +641,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
341
641
|
get primaryWorld(): AdapterWorld | undefined;
|
|
342
642
|
readonly routing: RoutingEngine;
|
|
343
643
|
get routingTable(): Map<string, RouteTarget>;
|
|
344
|
-
instanceIpcClients: Map<string,
|
|
644
|
+
instanceIpcClients: Map<string, InstanceClient>;
|
|
345
645
|
scheduler: Scheduler | null;
|
|
346
646
|
private configPath;
|
|
347
647
|
/** SIGHUPs received before startAll finishes are replayed once startup is safe. */
|
|
@@ -479,6 +779,9 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
479
779
|
private kiroMigrationRuns;
|
|
480
780
|
/** #1386 "Needs you": the list, its live chat messages and Acknowledge. Started with the fleet (finishStartup). */
|
|
481
781
|
private needsYou;
|
|
782
|
+
/** #3292: "Keep sign-in alive" (signin-keepalive.ts); built at startup, stopped at shutdown. */
|
|
783
|
+
private signInKeepAlive;
|
|
784
|
+
private hubExecutionAttention;
|
|
482
785
|
private missedOfflineStore;
|
|
483
786
|
private configHistory;
|
|
484
787
|
private configHistoryTimer;
|
|
@@ -518,6 +821,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
518
821
|
private startupDashboard;
|
|
519
822
|
private adapterState;
|
|
520
823
|
private adapterRetryInFlight;
|
|
824
|
+
/** #3365 review P2: connections whose adapter could not be confirmed stopped — none is admitted for them until a restart. */
|
|
825
|
+
private adapterTeardownUnknown;
|
|
521
826
|
/** Web Settings secret rotation is deliberately separate from reconnect
|
|
522
827
|
* recovery: a rotation must build a fresh provider client with the new token,
|
|
523
828
|
* and stale callbacks from the old client must not win. */
|
|
@@ -565,6 +870,18 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
565
870
|
private previewInputs;
|
|
566
871
|
private healthPortRetried;
|
|
567
872
|
private updateCheckTimer;
|
|
873
|
+
/** M-2738: the last update check's answer, for the web (null until the first check settles). */
|
|
874
|
+
private updateCheckState;
|
|
875
|
+
/** M-2738: a web "check now" in flight, and when the last one ran (one a minute at most). */
|
|
876
|
+
private updateCheckNow;
|
|
877
|
+
/** M-2738: a web start's Idempotency-Key → its answer (a retried request never starts a second update). */
|
|
878
|
+
private webUpdateStarts;
|
|
879
|
+
/**
|
|
880
|
+
* M-2738 (Prism #3505 P2-2): this fleet's own claim on a web-started update, from admission until its updater exits
|
|
881
|
+
* (or was never launched). The progress marker expires after 15 minutes so a crashed update cannot silence incident
|
|
882
|
+
* reports; that expiry never proves the update ended, so it never admits a second one while this is held.
|
|
883
|
+
*/
|
|
884
|
+
private webUpdateOwned;
|
|
568
885
|
private updateProgressTimer;
|
|
569
886
|
private updateProgressEditRunning;
|
|
570
887
|
private lastUpdateProgressText;
|
|
@@ -707,6 +1024,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
707
1024
|
/** #2855: a trusted guest's searches, per account. */
|
|
708
1025
|
readonly guestSearches: OfficeWriteLimiter;
|
|
709
1026
|
private officeSharesInstance?;
|
|
1027
|
+
/** #2861: when each instance was last talked to and answered (no words), for share links' dialogue box. */
|
|
1028
|
+
readonly officeTalk: OfficeTalk;
|
|
710
1029
|
/**
|
|
711
1030
|
* #2636: Office share links — the live Office view for people outside the fleet, read-only, on a quick tunnel of
|
|
712
1031
|
* their own (a manager and lease of its own: never the fleet's one tunnel lane nor the public link's preview tunnel).
|
|
@@ -785,6 +1104,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
785
1104
|
* authorizing revoked links and cookies until the fleet restarted.
|
|
786
1105
|
*/
|
|
787
1106
|
private settingsGeneration;
|
|
1107
|
+
/** #2942: the settings baseline the agent-requested Windows changes are checked against (set with the gate). */
|
|
1108
|
+
private settingsBaselineReader;
|
|
788
1109
|
private settingsRuntimeRevision;
|
|
789
1110
|
private settingsConfirmation;
|
|
790
1111
|
private settingsControl;
|
|
@@ -793,32 +1114,258 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
793
1114
|
private queueSettingsOperation;
|
|
794
1115
|
private settingsGate;
|
|
795
1116
|
/**
|
|
796
|
-
* #
|
|
797
|
-
*
|
|
798
|
-
*
|
|
799
|
-
*
|
|
800
|
-
*
|
|
801
|
-
* -
|
|
802
|
-
*
|
|
803
|
-
* -
|
|
804
|
-
*
|
|
805
|
-
*
|
|
806
|
-
*
|
|
807
|
-
*
|
|
808
|
-
* in, its cookie) confirms the same way. A public link never qualifies (evaluateWebAuthority refuses it). General
|
|
809
|
-
* still hears it: a notice, not a step.
|
|
1117
|
+
* AGEND-122 (upstream #3486, R1): a held change confirmed by the request itself — by the role of whoever asks, not by a
|
|
1118
|
+
* proof given once per browser. A signed-in human fleet admin on a web cookie session may press Apply now from wherever
|
|
1119
|
+
* the dashboard is reached (this computer, a LAN or tailnet name, a link), for every kind of change, on a chat fleet and
|
|
1120
|
+
* on a web-only one alike. settings-role.ts has the checks, asked of the live session now and again at execution:
|
|
1121
|
+
* - a cookie session of an admin (a guest, a read-only session, a header token, the CLI and an agent's request never);
|
|
1122
|
+
* - the owner's own knobs: the web authorization switch, "Only this computer can authorize", and the link option of a
|
|
1123
|
+
* link the session arrived over;
|
|
1124
|
+
* - a chat account is still an admin of its connection, and of every connection the change touches (the scope the
|
|
1125
|
+
* store holds; when that is not known, its own connection's admin list is all there is to ask).
|
|
1126
|
+
* It no longer asks that a chat card could have been posted, that the account confirmed this browser in a DM (#1939),
|
|
1127
|
+
* or that the host's own session confirms: those were what sent a remote admin to the AgEnD computer. The chat card
|
|
1128
|
+
* stays another way to confirm; General is told of a change a chat account confirmed here, when one can be.
|
|
810
1129
|
*/
|
|
811
1130
|
private settingsSelfConfirmation;
|
|
812
|
-
/**
|
|
1131
|
+
/**
|
|
1132
|
+
* AGEND-122 (Prism P2): whether the ordinary New Agent shortcut — created at once, web-confirmed, with no held change — is open to
|
|
1133
|
+
* this request. It is the same policy as Apply now: refused where "Only this computer can authorize" is on and this is not the
|
|
1134
|
+
* 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
|
|
1135
|
+
* change and takes their code). Everything else is as before the role existed.
|
|
1136
|
+
*/
|
|
1137
|
+
private settingsDirectCreationAllowed;
|
|
1138
|
+
/** AGEND-122: this request's role over a held change — its cookie session asked afresh each time (settings-role.ts). */
|
|
1139
|
+
private settingsRole;
|
|
1140
|
+
/**
|
|
1141
|
+
* AGEND-122 (upstream R1): a change that opens a link, or one that changes a secret, confirmed from another device always
|
|
1142
|
+
* posts a Notice — the audit trail alone is not what the owner sees. Null: not one of those, or confirmed on this computer.
|
|
1143
|
+
*/
|
|
1144
|
+
private settingsRemoteNoticeKind;
|
|
1145
|
+
/**
|
|
1146
|
+
* Where that Notice goes: a web-only fleet's dashboard Notices; a chat fleet's General, else its primary connection's notice
|
|
1147
|
+
* target (notifyFleetError) — and when nothing could be posted there, the web Notices, which a chat fleet's dashboard then
|
|
1148
|
+
* shows. Never throttled, and never silent. It names the change as the card showed it (redacted), who confirmed and how.
|
|
1149
|
+
*/
|
|
1150
|
+
private postSettingsRemoteNotice;
|
|
1151
|
+
/**
|
|
1152
|
+
* A security Notice that must not be silent: where a fleet notice goes (General, else the primary connection's notice target,
|
|
1153
|
+
* else a web-only fleet's dashboard Notices) and, when nothing could be posted there, the web Notices store directly — which a
|
|
1154
|
+
* chat fleet's dashboard then shows (recordWebNotice itself refuses a chat fleet). Never throttled; redacted like any Notice.
|
|
1155
|
+
*/
|
|
1156
|
+
private postFleetSecurityNotice;
|
|
1157
|
+
/** Who an authenticator action is named after in its Notice. */
|
|
1158
|
+
private adminName;
|
|
1159
|
+
/**
|
|
1160
|
+
* AGEND-122: a chat account confirms a change only as an admin of every connection it touches — settingsChatAuthority's own
|
|
1161
|
+
* rule, without needing a General to post to: the scope the store holds (a scope not known: none, fail closed), and, for a
|
|
1162
|
+
* change with `primaryGeneral` (the Hub, the connection list and order, whole-fleet sensitive settings), the connection that owns
|
|
1163
|
+
* the primary General too. Every connection involved, the account's own included, is configured exactly once and on one platform
|
|
1164
|
+
* (user ids are per platform). Asked at entry and again by `current()`.
|
|
1165
|
+
*/
|
|
1166
|
+
private settingsAccountMayConfirm;
|
|
1167
|
+
/**
|
|
1168
|
+
* AGEND-122 (upstream #3486, per admin): each admin's own stricter switch — off by default, kept with their own authenticator
|
|
1169
|
+
* (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
|
|
1170
|
+
* AgEnD computer itself do not press Apply now: each takes the code of their own app, bound to that one change
|
|
1171
|
+
* (settingsTotpConfirm). Another admin is never asked, and cannot turn it on or off for them. The computer's own browser is not
|
|
1172
|
+
* asked. The switch lives in the app's record, so it can only be on while the app is set up.
|
|
1173
|
+
*/
|
|
1174
|
+
private strictFor;
|
|
1175
|
+
/**
|
|
1176
|
+
* Who is asked for the code: a session with a role over a held change (settings-role.ts) that is not on this computer,
|
|
1177
|
+
* while the option is on. The role carries every check Apply now has — the web authorization switch, "Only this computer
|
|
1178
|
+
* can authorize" (Q6), the link options, a chat account still an admin of the connections the change touches — asked at
|
|
1179
|
+
* entry and again by `current()` at execution, so a demoted admin's pending change never runs. One refusal on top: a change
|
|
1180
|
+
* that opens a link is never confirmed over a link (the public gateway, bound by the gateway itself, never by a header), the
|
|
1181
|
+
* code or not. The code is the authority; the session only carries it.
|
|
1182
|
+
*/
|
|
1183
|
+
private settingsCodeSession;
|
|
1184
|
+
/** 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. */
|
|
1185
|
+
private checkAuthenticatorCode;
|
|
1186
|
+
/**
|
|
1187
|
+
* AGEND-122: a page that is not the browser on the AgEnD computer itself — a LAN or tailnet connection (a Host that is
|
|
1188
|
+
* not loopback, a forwarding header, a peer that is not this machine) or a link. Said to the card so it names no host
|
|
1189
|
+
* command and no "go to that computer" step the reader cannot take; asked per request and never a check: what a page may
|
|
1190
|
+
* confirm is still settingsSelfConfirmation / settingsCodeSession, and the card's wording is all this changes.
|
|
1191
|
+
*/
|
|
1192
|
+
settingsPageIsRemote(req: IncomingMessage): boolean;
|
|
1193
|
+
settingsTotpState(store: SettingsConfirmationStore, req: IncomingMessage, id: string): "ready" | "not_set_up" | "on_host" | "host_only" | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* The code, checked: the change's digest first (a stale page never burns a code), then one use per time step and the
|
|
1196
|
+
* fleet-wide wrong-code limit (web-remote-access.ts), then a confirmation asked again at execution (`current`) — the same
|
|
1197
|
+
* session and role, the same enrolment (an app replaced, or removed and set up again, while the change waits ends it for good).
|
|
1198
|
+
*/
|
|
1199
|
+
settingsTotpConfirm(store: SettingsConfirmationStore, req: IncomingMessage, id: string, code: string, digest: string): {
|
|
1200
|
+
label: string;
|
|
1201
|
+
current(): boolean;
|
|
1202
|
+
audit?: Record<string, unknown>;
|
|
1203
|
+
done?(view: SettingsPendingView): void;
|
|
1204
|
+
} | {
|
|
1205
|
+
error: "wrong" | "paused" | "unavailable" | "not_here" | "changed";
|
|
1206
|
+
retryAfterMs?: number;
|
|
1207
|
+
};
|
|
1208
|
+
/**
|
|
1209
|
+
* alpha.2 (M-2300; #2973's agent requests, junsion's §6): on a fleet with no chat connection there is no General to
|
|
1210
|
+
* post an agent's Windows request in — it waited for `agend settings confirm` on the host. Its owner (decision
|
|
1211
|
+
* 28c2d3a3: the `agend web --code` session on this computer, web-verified) now sees and decides it from the web's
|
|
1212
|
+
* Needs you. The authority is asked from the request each time, and again at execution by the store (`current`):
|
|
1213
|
+
* still that owner now (this computer, not revoked, signed out or run out), still a fleet with no chat connection,
|
|
1214
|
+
* never over the public link. Anyone else — a guest, a LAN or public-link session, a chat-connected fleet's admin —
|
|
1215
|
+
* gets nothing (a chat fleet keeps General's card as its way).
|
|
1216
|
+
*/
|
|
1217
|
+
/**
|
|
1218
|
+
* #2997 review (Prism P2): how many times an agent's request came or was decided — in a web-only fleet's status frame,
|
|
1219
|
+
* so a page that never hears the stream's ping (one polling /ui/poll, one reconnecting, a tab from before the upgrade)
|
|
1220
|
+
* reads the list again when it moves. A count, nothing more.
|
|
1221
|
+
*/
|
|
1222
|
+
private agentProposalsRev;
|
|
1223
|
+
private agentProposalOwner;
|
|
1224
|
+
/**
|
|
1225
|
+
* Refs #3061 (P2a): the new-device approval's one authority — the same one that decides an agent's request: this web-only
|
|
1226
|
+
* fleet's owner, asked of the LIVE session each time (a sign-out, an expiry, a revocation, the authority switch or
|
|
1227
|
+
* "Only this computer can authorize" turning a session into a non-owner is seen at once). A LAN session that signed in
|
|
1228
|
+
* 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
|
|
1229
|
+
* none of them this: they are told so, and learn nothing about any request.
|
|
1230
|
+
*/
|
|
1231
|
+
private deviceApprovalOwner;
|
|
1232
|
+
/**
|
|
1233
|
+
* Refs #3061 (auth-api): device-code sign-in is offered — a web-only fleet with web authorization on. With
|
|
1234
|
+
* `web.verified_authority.enabled: false` no one is an owner (liveOwner → null), so no one could approve: the three
|
|
1235
|
+
* `/auth/device-login*` routes answer 404 and the sign-in page shows no button. "Only this computer can authorize"
|
|
1236
|
+
* does not close it: this computer's own session can still approve.
|
|
1237
|
+
*/
|
|
1238
|
+
deviceLoginAvailable(): boolean;
|
|
1239
|
+
/** Refs #3061 (P2b): `web.login_qr` (default off), read per page served — the sign-in page then draws the approve link's QR code. */
|
|
1240
|
+
loginQrEnabled(): boolean;
|
|
1241
|
+
/**
|
|
1242
|
+
* GET /ui/devices — the one device list, for every fleet (AGEND-138, #3486): is this a web-only fleet, may THIS session
|
|
1243
|
+
* approve a new device (web-only: the verified owner) and end the others' (`canEndOthers`), and — to an admin session,
|
|
1244
|
+
* never to a guest or the CLI's header token — every signed-in session of any tier, one row each (webDeviceRows).
|
|
1245
|
+
* `owner`: the verified owner (web-only: this computer's admin here or from outside; a chat fleet: an admin whose chat
|
|
1246
|
+
* account confirmed this session). `authority`: web authorization is on; with it off nobody is an owner, so on a web-only
|
|
1247
|
+
* fleet nobody may add a device or sign another out and the page says so.
|
|
1248
|
+
*/
|
|
1249
|
+
webDevicesStatus(req: IncomingMessage): {
|
|
1250
|
+
webOnly: boolean;
|
|
1251
|
+
owner: boolean;
|
|
1252
|
+
authority: boolean;
|
|
1253
|
+
canEndOthers: boolean;
|
|
1254
|
+
devices: WebDeviceRow[];
|
|
1255
|
+
};
|
|
1256
|
+
/**
|
|
1257
|
+
* AGEND-138 (#3486): which sessions may this ADMIN request sign out — one rule for every way in (POST /ui/devices/signout,
|
|
1258
|
+
* DELETE /auth/sessions[/<handle>]) and for the list's `canSignOut`; asked of the live session each time. Null: not an
|
|
1259
|
+
* admin session (a guest or read-only one ends only its own account's, auth-api; the header token none).
|
|
1260
|
+
* - a web-only fleet: the verified owner ends any; every other admin only itself (`any: false`);
|
|
1261
|
+
* - a fleet with a chat connection: an admin ends their OWN other devices (the same chat account) and any guest's or
|
|
1262
|
+
* read-only one; ANOTHER admin's devices only that admin. Every admin sign-in there records its account (`owner`: /web,
|
|
1263
|
+
* /dashboard and the per-admin authenticator); only a session with NO chat account (the host's own `agend web --code`,
|
|
1264
|
+
* or one persisted before accounts were recorded) counts as the host's — one principal that only another such session
|
|
1265
|
+
* may end, and that ends no chat admin's. It does not re-check that the account is still an admin (an existing
|
|
1266
|
+
* limitation of every admin API; follow-up).
|
|
1267
|
+
* Revoke-all (`revokeWebSessions`, /dashboard revoke) is the host's emergency button and is not this rule.
|
|
1268
|
+
*/
|
|
1269
|
+
private sessionEndRule;
|
|
1270
|
+
/**
|
|
1271
|
+
* AGEND-138: auth-api's narrowing of `DELETE /auth/sessions[/<handle>]` for an admin. Three answers, never confused:
|
|
1272
|
+
* a predicate (what this caller may end), `undefined` (a web-only fleet: no narrowing here, its own owner check stands) and
|
|
1273
|
+
* `null` — the caller could not be authenticated AGAIN just now (expired or signed out since auth-api's first check): a denial,
|
|
1274
|
+
* which must never be read as "no restriction" (PR #3553 review).
|
|
1275
|
+
*/
|
|
1276
|
+
endableSessions(req: IncomingMessage): ((r: SessionRecord) => boolean) | undefined | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Refs #3061 (P2b), AGEND-138: the device list — every signed-in session of any tier, newest activity first: its tier,
|
|
1279
|
+
* how it was approved, whether it carries owner authority, whether it is the reader's own, and whether the reader may sign
|
|
1280
|
+
* it out (and if not, why). Only an admin session reads it: a guest, a read-only session and the header token get none,
|
|
1281
|
+
* so no one sees another person's devices unless they are an admin.
|
|
1282
|
+
*
|
|
1283
|
+
* `verified` is the §3 verdict for an admin session as it would be used from where it signs in (a host session from this
|
|
1284
|
+
* computer, a session from outside over the link, a chat account's confirmed one): one that signed in with a one-time
|
|
1285
|
+
* code or a device approval is not an owner until the authenticator vouches for it. Display only — the checks that act
|
|
1286
|
+
* on it run again at each use.
|
|
1287
|
+
*/
|
|
1288
|
+
private webDeviceRows;
|
|
1289
|
+
/**
|
|
1290
|
+
* Refs #3061 (P2b): may this request's session end ANOTHER session — one signed in elsewhere, or all of them (auth-api
|
|
1291
|
+
* `DELETE /auth/sessions…`, which an admin session could always do). On a web-only fleet that is the verified owner's:
|
|
1292
|
+
* a session a code or a device approval made is signed in but not an owner, and could otherwise sign out the owner's
|
|
1293
|
+
* own. A fleet with a chat connection: yes for an admin, within endableSessions' rule (AGEND-138). Ending one's OWN
|
|
1294
|
+
* session is never this.
|
|
1295
|
+
*/
|
|
1296
|
+
mayEndOtherSessions(req: IncomingMessage): boolean;
|
|
1297
|
+
/**
|
|
1298
|
+
* Refs #3061 (P2b), AGEND-138: POST /ui/devices/signout {handle} — an admin ends another signed-in session, by the one
|
|
1299
|
+
* rule (sessionEndRule), asked of the live session each time. A web-only fleet: only the verified owner, and a non-owner
|
|
1300
|
+
* is refused (403 `owner_required`) BEFORE any handle is looked up, so it learns nothing about which handles exist. A chat
|
|
1301
|
+
* fleet: any admin for their own devices and any guest's or read-only one; another admin's device is refused (403
|
|
1302
|
+
* `other_admin`). Never the reader's own session here (Sign out is /auth/logout). The device's authorization goes with
|
|
1303
|
+
* it, so a copy of its cookie is nobody's.
|
|
1304
|
+
*/
|
|
1305
|
+
webDeviceSignOut(req: IncomingMessage, handle: string): {
|
|
1306
|
+
status: number;
|
|
1307
|
+
body: Record<string, unknown>;
|
|
1308
|
+
};
|
|
1309
|
+
/**
|
|
1310
|
+
* Refs #3061 (P2a): look a new device's code up (for the confirm screen), approve it, or deny it — the verified owner's,
|
|
1311
|
+
* on a web-only fleet. The answer is the request as it now stands. Approving only marks the request approved: the new
|
|
1312
|
+
* browser makes its own session when it next asks (auth-api POST /auth/device-login/poll), so no credential passes from
|
|
1313
|
+
* here to there — not in the answer, not through the fleet. A wrong code counts against one fleet-wide breaker; while
|
|
1314
|
+
* it is open every code (a right one too) waits.
|
|
1315
|
+
*/
|
|
1316
|
+
webDeviceLoginAct(req: IncomingMessage, op: "lookup" | "approve" | "deny", code: string): {
|
|
1317
|
+
status: number;
|
|
1318
|
+
body: Record<string, unknown>;
|
|
1319
|
+
};
|
|
1320
|
+
/** alpha.2: the agents' requests waiting for this web-only fleet's owner, or null when the reader is not that owner. */
|
|
1321
|
+
webAgentProposals(req: IncomingMessage): SettingsPendingView[] | null;
|
|
1322
|
+
/**
|
|
1323
|
+
* alpha.2: the owner's Approve or Reject of an agent's request. The store claims it before its first await (a second
|
|
1324
|
+
* click, from here or the host, finds it no longer pending) and asks the owner, the request (its fleet generation and
|
|
1325
|
+
* Windows switch) and the target machine again before and while it runs the same creation code the web uses. The
|
|
1326
|
+
* answer is always the request as it now stands: applied (with the new agent's name), rejected, expired, stale or
|
|
1327
|
+
* failed (with its reason), or already decided.
|
|
1328
|
+
*/
|
|
1329
|
+
webDecideAgentProposal(req: IncomingMessage, id: string, decision: "confirm" | "reject"): Promise<{
|
|
1330
|
+
status: number;
|
|
1331
|
+
body: Record<string, unknown>;
|
|
1332
|
+
}>;
|
|
1333
|
+
/** A confirmation belongs to the server route/lifetime, not the availability of General's model. */
|
|
1334
|
+
private settingsGeneralRoute;
|
|
1335
|
+
/** Connected, same-platform, unaffected server routes can post cards even while the model is offline. */
|
|
813
1336
|
private settingsNoticeGenerals;
|
|
814
1337
|
/**
|
|
815
1338
|
* #2170: General's notice of a change confirmed from the web — the first General a chat card could have been posted
|
|
816
1339
|
* in, plain text, no mentions. Information only: nothing waits on it.
|
|
817
1340
|
*/
|
|
818
1341
|
private settingsWebConfirmedNotice;
|
|
1342
|
+
/** The primary General: the General on the primary connection, else the first one — and the connection that owns it. */
|
|
1343
|
+
private settingsPrimaryGeneral;
|
|
819
1344
|
/** Exact configured effect owners; this does not depend on prompt location. */
|
|
820
1345
|
private settingsChatAuthority;
|
|
1346
|
+
/**
|
|
1347
|
+
* #2942: a Windows create or settings change an AGENT asked for. Nothing is created or written here: it becomes a
|
|
1348
|
+
* pending settings change whose General card a fleet admin must confirm (promptSettingsChange — the same admin rule
|
|
1349
|
+
* as every card). Its apply runs the same creation/patch code the web uses, inside the store's SettingsExecution, with
|
|
1350
|
+
* the confirming admin, the Windows switch and the target machine asked again at that moment.
|
|
1351
|
+
*/
|
|
1352
|
+
private proposeAgentWindowsChange;
|
|
1353
|
+
/** #2942: create_instance with runtime "windows" from an agent: validated like the web, then held for General. */
|
|
1354
|
+
requestWindowsCreate(requester: string, rawArgs: Record<string, unknown>): Promise<SettingsPendingView>;
|
|
1355
|
+
/** #2942: update_instance_config on a Windows agent: only the fields the web editor allows, held for General. */
|
|
1356
|
+
requestWindowsConfig(requester: string, name: string, patch: Record<string, unknown>): Promise<SettingsPendingView>;
|
|
1357
|
+
/**
|
|
1358
|
+
* D3: whether a General could take this change's confirmation card now — the same authority and routes
|
|
1359
|
+
* promptSettingsChange posts by. False: it would wait for the host's command (confirmation kind host_cli).
|
|
1360
|
+
*/
|
|
1361
|
+
private settingsCardPossible;
|
|
821
1362
|
private promptSettingsChange;
|
|
1363
|
+
/**
|
|
1364
|
+
* alpha.6 feedback #2c: why no General could take a change's confirm card, so the page says what is missing in plain words
|
|
1365
|
+
* (the user's decision hmsg-77256f66: never "type a host command"). `platform` null: the authority is unknown or spans
|
|
1366
|
+
* platforms. `attempted`: a General route existed and posting to it failed.
|
|
1367
|
+
*/
|
|
1368
|
+
private settingsNoCardReason;
|
|
822
1369
|
private kiroMigrateDeps;
|
|
823
1370
|
/**
|
|
824
1371
|
* #2598 B2, migrate_kiro_instance: judge the move, then ask in General for a fleet admin's Confirm. Nothing changes
|
|
@@ -853,6 +1400,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
853
1400
|
sseHeartbeatMs: number;
|
|
854
1401
|
/** The dashboard's login codes. Memory only: a code that outlives the process is a code nobody can prove was not copied. */
|
|
855
1402
|
private webLoginCodes;
|
|
1403
|
+
/** Refs #3061 (P2a): device-code sign-in requests (in memory; web-device-login.ts). Read by auth-api as `webDeviceLogins`. */
|
|
1404
|
+
private webDeviceLogins;
|
|
856
1405
|
/**
|
|
857
1406
|
* #1920 step 4: guests' codes, apart from the admins' — one per account, so no guest's `/web` withdraws another's or
|
|
858
1407
|
* an admin's code (#2093 review), at most 32 at once. Local sign-in only for now (audience "local").
|
|
@@ -992,6 +1541,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
992
1541
|
private reconcileQueueWorkers;
|
|
993
1542
|
private createQueueWorker;
|
|
994
1543
|
private dispatchDurableDelivery;
|
|
1544
|
+
/** The ordinary durable lane, with provider completion proof instead of terminal/IPC submission proof. */
|
|
1545
|
+
private dispatchNativeDurableDelivery;
|
|
1546
|
+
/** A runtime's persisted completion can outlive this manager. Resolve its original delivery fence, never send
|
|
1547
|
+
* the prompt again, and reconstruct a missing peer report using the same durable operation ID. */
|
|
1548
|
+
private reconcileRemoteDelivery;
|
|
995
1549
|
private waitForDurableLaneRelease;
|
|
996
1550
|
private spawnConcurrency;
|
|
997
1551
|
/** #1685: "elevated" or "critical" while host memory pressure slows or holds new agents; otherwise null (an
|
|
@@ -1112,6 +1666,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1112
1666
|
private tightenInstanceDirectories;
|
|
1113
1667
|
/** AgEnD package version (for the Settings "current version" / What's New). */
|
|
1114
1668
|
get currentVersion(): string;
|
|
1669
|
+
get currentBuild(): import("./build-provenance.js").InstalledBuild;
|
|
1115
1670
|
/**
|
|
1116
1671
|
* Resolve a slash-command target in a channel. Classic channels are looked up
|
|
1117
1672
|
* per-bot (same-channel multi-bot); a fleet-topic instance is found via the
|
|
@@ -1131,6 +1686,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1131
1686
|
/** SIGUSR1: full process reload. Names who asked (#1120). */
|
|
1132
1687
|
private onFullRestartSignal;
|
|
1133
1688
|
private handleUpdateSlash;
|
|
1689
|
+
/**
|
|
1690
|
+
* The update itself, for slash `/update` and the web's Update (M-2738): the installed `agend`, verified, launched
|
|
1691
|
+
* independently with its log — or a failure in the progress marker. `stillAllowed` is asked again once the awaits
|
|
1692
|
+
* are done (the asker may have lost the right, or the fleet begun stopping, meanwhile).
|
|
1693
|
+
*/
|
|
1694
|
+
private launchInstalledUpdate;
|
|
1134
1695
|
private handleProfileSlash;
|
|
1135
1696
|
/** Typed /profile belongs only to Telegram's General dispatcher. */
|
|
1136
1697
|
runProfileCommand(msg: InboundMessage, seconds?: string): Promise<void>;
|
|
@@ -1230,6 +1791,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1230
1791
|
viewHistory(name: string, q: ViewHistoryQuery): Promise<ViewHistoryAnswer | null>;
|
|
1231
1792
|
/** #1218: GET /ui/steps — an instance's steps, read on demand (null: no such instance). */
|
|
1232
1793
|
logSteps(name: string, q: LogQuery): Promise<LogAnswer | null>;
|
|
1794
|
+
private subagentReader;
|
|
1795
|
+
subagentRuns(name: string): Promise<import("./subagent-service.js").SubagentAnswer>;
|
|
1233
1796
|
/**
|
|
1234
1797
|
* #1218: where an instance's steps are read from, resolved only when its Log asks: the transcript its daemon follows
|
|
1235
1798
|
* now; for claude-code, also the path its statusline last named (so a stopped instance's Log still shows its last
|
|
@@ -1289,6 +1852,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1289
1852
|
* retry brings it up, however long the backoff, and fails only once the retries give up.
|
|
1290
1853
|
*/
|
|
1291
1854
|
private sendWhenConnected;
|
|
1855
|
+
/**
|
|
1856
|
+
* The Hub representative's hand-off (#3145): only once a connected client exists, after every reconnect/order wait,
|
|
1857
|
+
* the begin lease + input intent (beforeInput), then the fence and the LIVE client are checked again and the payload
|
|
1858
|
+
* goes in one attempt. After the intent is spent nothing here retries: false is the caller's uncertain outcome.
|
|
1859
|
+
*/
|
|
1860
|
+
private handOffAfterBeforeInput;
|
|
1292
1861
|
/** Poll for the instance's IPC to come back, then send. Throws if it does not. */
|
|
1293
1862
|
private sendAfterIpcReturns;
|
|
1294
1863
|
/**
|
|
@@ -1578,6 +2147,10 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1578
2147
|
* Stopped/paused ClassicBot entries count too; their workspace is exactly
|
|
1579
2148
|
* the one startClassicInstance builds, not this FleetManager's dataDir.
|
|
1580
2149
|
*/
|
|
2150
|
+
/** Take the startup snapshot of every active decision (text cut to 200 characters); see activeDecisions. */
|
|
2151
|
+
snapshotActiveDecisions(): void;
|
|
2152
|
+
/** The startup snapshot of active decisions, for a daemon's Active Decisions (it selects and caps its own). */
|
|
2153
|
+
activeDecisions(): readonly ActiveDecisionRow[];
|
|
1581
2154
|
kiroPeerWorkingDirectories(name: string): string[];
|
|
1582
2155
|
/**
|
|
1583
2156
|
* Probe the same executable set exposed by the web backend catalog.
|
|
@@ -1676,7 +2249,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1676
2249
|
* A single-use login code for the dashboard, for a channel only the operator
|
|
1677
2250
|
* can read (`/dashboard`). Null while the panel is closed (no web.token).
|
|
1678
2251
|
*/
|
|
1679
|
-
issueDashboardLogin(
|
|
2252
|
+
issueDashboardLogin(recipient?: {
|
|
2253
|
+
adapterId: string;
|
|
2254
|
+
userId: string;
|
|
2255
|
+
username?: string;
|
|
2256
|
+
}): {
|
|
1680
2257
|
display: string;
|
|
1681
2258
|
expiresAt: number;
|
|
1682
2259
|
ttlMinutes: number;
|
|
@@ -1723,6 +2300,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1723
2300
|
/** #1742: `/start web` from a fleet admin: the /web menu right here in the DM, for the General this bot serves. */
|
|
1724
2301
|
private startWebInDm;
|
|
1725
2302
|
private getPublicWebLink;
|
|
2303
|
+
/** The public link's wiring to this fleet (a test builds one with the tunnel itself stubbed: `ensure`, `provider`). */
|
|
2304
|
+
private publicWebLinkDeps;
|
|
1726
2305
|
private publicLinkAutoOpen;
|
|
1727
2306
|
/**
|
|
1728
2307
|
* #named-link-ttl: the admin who last opened a named-tunnel link from /web, with the live binding — only while they
|
|
@@ -2020,6 +2599,17 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2020
2599
|
beginUpdateProgress(adapter: ChannelAdapter, chatId: string, threadId: string | undefined, messageId: string): void;
|
|
2021
2600
|
/** Persist the public response, wait for idle, then start the canonical service restart. */
|
|
2022
2601
|
requestFullRestart(adapter: ChannelAdapter, chatId: string, threadId: string | undefined, messageId: string): Promise<boolean>;
|
|
2602
|
+
/**
|
|
2603
|
+
* S-92: the same tracked reload for a web-only fleet's Settings restart — no chat message to carry its progress: the
|
|
2604
|
+
* marker names the web (WEB_RESTART_TARGET), a refusal is a fleet Notice, and the next fleet says it is back as one.
|
|
2605
|
+
*/
|
|
2606
|
+
private requestWebFullRestart;
|
|
2607
|
+
/**
|
|
2608
|
+
* S-92: a fleet (with no chat connection) that comes up from a web-only Settings restart says it is back as a fleet
|
|
2609
|
+
* Notice — the restart was announced as one. Anything else (a chat restart, an update, a plain boot): nothing here.
|
|
2610
|
+
*/
|
|
2611
|
+
private announceWebRestartDone;
|
|
2612
|
+
private launchTrackedFullRestart;
|
|
2023
2613
|
private isOwnedFullRestartMarker;
|
|
2024
2614
|
/** Give current work the same bounded idle grace used by graceful reload. */
|
|
2025
2615
|
private waitForFullRestartIdleGrace;
|
|
@@ -2066,6 +2656,9 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2066
2656
|
* Discord bot and while some account has a running agent, read every 30 min — the same cached read (its 5-minute TTL
|
|
2067
2657
|
* still bounds the vendor calls), recorded like any other.
|
|
2068
2658
|
*/
|
|
2659
|
+
private quotaNotices;
|
|
2660
|
+
private stopQuotaObserver;
|
|
2661
|
+
private quotaNoticePolicy;
|
|
2069
2662
|
private startQuotaBackgroundReads;
|
|
2070
2663
|
/** #3066 §1: the latest estimates, by `provider\0metric` (what usage-api's lookup reads, synchronously). */
|
|
2071
2664
|
private capacityEstimates;
|
|
@@ -2143,8 +2736,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2143
2736
|
* that should be running is running
|
|
2144
2737
|
* - `degraded` — reachable, but something the operator should look at (an
|
|
2145
2738
|
* adapter retrying, an instance crashed or stopped)
|
|
2146
|
-
* - `down` —
|
|
2147
|
-
*
|
|
2739
|
+
* - `down` — no configured adapter is connected, or a dedicated Hub's
|
|
2740
|
+
* server mount is unavailable
|
|
2148
2741
|
*
|
|
2149
2742
|
* Deliberately does NOT gate the systemd watchdog — see the comment at the
|
|
2150
2743
|
* WATCHDOG timer for why.
|
|
@@ -2175,6 +2768,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2175
2768
|
topProcessesAt?: string;
|
|
2176
2769
|
};
|
|
2177
2770
|
problems: string[];
|
|
2771
|
+
warnings: string[];
|
|
2772
|
+
/** Local server mount availability; absent when the Hub server switch is off. */
|
|
2773
|
+
hub?: {
|
|
2774
|
+
server: import("./hub/runtime.js").HubServerHealth;
|
|
2775
|
+
};
|
|
2178
2776
|
};
|
|
2179
2777
|
/** Start the primary adapter (backward-compatible, sets this.adapter) */
|
|
2180
2778
|
private startSingleAdapter;
|
|
@@ -2365,6 +2963,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2365
2963
|
/** No chat platform is configured at all: the web dashboard is the fleet's only surface. */
|
|
2366
2964
|
/** #2910: no Discord or Telegram connection at all (src/web-only-fleet.ts). */
|
|
2367
2965
|
isWebOnlyFleet(): boolean;
|
|
2966
|
+
/**
|
|
2967
|
+
* S-117 story 1: the sign-in page's "no chat" words (no /web to send) — a web-only fleet, or one whose chat is not
|
|
2968
|
+
* connected yet (a fresh install whose bot is still being set up, or is down): /web cannot answer there.
|
|
2969
|
+
*/
|
|
2970
|
+
signinWithoutChat(): boolean;
|
|
2368
2971
|
/** On a fleet with no chat platform, the dashboard is where an instance-health prompt is posted (#1307 item 6). */
|
|
2369
2972
|
private webOnlyPromptPlace;
|
|
2370
2973
|
/** Resolves when the reply is in the web chat (#1770: after its files are copied); the caller need not wait. */
|
|
@@ -2479,6 +3082,33 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2479
3082
|
* create paths. An empty or absent value supersedes nothing and needs nothing; anything else must be an id.
|
|
2480
3083
|
*/
|
|
2481
3084
|
private decisionSupersedes;
|
|
3085
|
+
/**
|
|
3086
|
+
* The scope (and team) a new decision gets. Team membership is read from fleet.yaml now. Omitted scope: the poster's
|
|
3087
|
+
* team when they are in exactly one, project (this exact directory) when they are in none; in several, they choose.
|
|
3088
|
+
* A team decision goes only to a team the poster is in.
|
|
3089
|
+
*/
|
|
3090
|
+
decisionScopeFor(instance: string, scope: unknown, team: unknown): {
|
|
3091
|
+
scope: "project" | "team" | "fleet";
|
|
3092
|
+
team?: string;
|
|
3093
|
+
teams: string[];
|
|
3094
|
+
} | {
|
|
3095
|
+
error: string;
|
|
3096
|
+
};
|
|
3097
|
+
/**
|
|
3098
|
+
* #3421 review: a team decision is only for its team's current members — reading it back through an update (even an
|
|
3099
|
+
* empty one) or archiving it is refused to anyone else, exactly as list/get and supersede are. The refusal names it
|
|
3100
|
+
* "not found", as for an id that does not exist, and changes nothing. Project and fleet decisions: as before.
|
|
3101
|
+
*/
|
|
3102
|
+
decisionHiddenFrom(instance: string, id: unknown): string | null;
|
|
3103
|
+
/** A ClassicBot agent's own folder — where startClassicInstance launches it, and its project for decisions (#3454). */
|
|
3104
|
+
classicWorkspaceDir(instanceName: string): string;
|
|
3105
|
+
/**
|
|
3106
|
+
* #3454: the project root of an agent calling the agent endpoint (CLI mode), as the MCP path has it from the daemon's
|
|
3107
|
+
* own working directory. A fleet instance: its fleet.yaml working_directory, as before. A ClassicBot agent (not in
|
|
3108
|
+
* fleet.yaml): its own workspace — it used to fall back to "", one project shared by every CLI-mode ClassicBot room.
|
|
3109
|
+
* Anything else: null, and the caller refuses rather than guess.
|
|
3110
|
+
*/
|
|
3111
|
+
decisionProjectRootFor(instance: string): string | null;
|
|
2482
3112
|
handleDecisionCrudHttp(instance: string, op: string, args: Record<string, unknown>): Promise<unknown>;
|
|
2483
3113
|
handleTaskCrudHttp(instance: string, args: Record<string, unknown>): Promise<unknown>;
|
|
2484
3114
|
handleSetDisplayNameHttp(instance: string, name: string): Promise<unknown>;
|
|
@@ -2527,6 +3157,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2527
3157
|
* channel, are seen to share it; and every connection's own General is protected, with or without a General agent.
|
|
2528
3158
|
*/
|
|
2529
3159
|
private topicOwnership;
|
|
3160
|
+
/**
|
|
3161
|
+
* The bot an agent's configured topic is on (#3105 review, Prism P1): a fleet.yaml agent's `channel_id` (else the
|
|
3162
|
+
* primary connection) whatever its runtime — a per-turn Windows agent has no execution adapter
|
|
3163
|
+
* (getInstanceAdapterId), yet its topic is still on that bot, and must be counted as an owner and deleted through it.
|
|
3164
|
+
* Topic planning and ownership only; execution routing is getInstanceAdapterId's and unchanged.
|
|
3165
|
+
*/
|
|
3166
|
+
private topicAdapterIdOf;
|
|
2530
3167
|
/** What deleting `name`'s topic would act on: its own bot only — a bot that is not there is never substituted. */
|
|
2531
3168
|
private planInstanceTopicDelete;
|
|
2532
3169
|
getForumTopicDeleter(adapterId?: string): ((topicId: number | string) => Promise<void>) | null;
|
|
@@ -2613,6 +3250,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2613
3250
|
private writingFleetDocument;
|
|
2614
3251
|
getSettingsConfigPath(): string;
|
|
2615
3252
|
removeInstance(name: string, authorization: ExplicitInstanceRemoval, execution?: SettingsExecution): Promise<void>;
|
|
3253
|
+
/** Shared instance metadata goes with a native identity; its Windows workspace and provider sessions stay intact. */
|
|
3254
|
+
private nativeInstanceRemoved;
|
|
2616
3255
|
private removeInstanceOwned;
|
|
2617
3256
|
startStatuslineWatcher(name: string): void;
|
|
2618
3257
|
stopStatuslineWatcher(name: string): void;
|
|
@@ -2950,6 +3589,32 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2950
3589
|
* should say so rather than send into a guaranteed failure.
|
|
2951
3590
|
*/
|
|
2952
3591
|
private fleetNoticeTarget;
|
|
3592
|
+
/**
|
|
3593
|
+
* 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
|
|
3594
|
+
* was dispatched (General, the channel's notice target, or a web-only fleet's Notices), so a start with nowhere to
|
|
3595
|
+
* post it tries again next start.
|
|
3596
|
+
*/
|
|
3597
|
+
/** Set at fleet start (before any agent starts): this home ran agents on an earlier AgEnD's system tmux. */
|
|
3598
|
+
ownTmuxUpgradedHome: boolean;
|
|
3599
|
+
/** An upgraded home: agent state from an earlier start, and no AgEnD tmux server ever recorded (`previous`). */
|
|
3600
|
+
static ownTmuxUpgraded(agendHome: string, previous: unknown): boolean;
|
|
3601
|
+
/** Whether any instance directory holds state from an earlier start (its output log or a session id). */
|
|
3602
|
+
static priorAgentState(instancesDir: string): boolean;
|
|
3603
|
+
/** Where an upgraded home's not-yet-dispatched own-tmux notice is kept across restarts; only a dispatch clears it. */
|
|
3604
|
+
static ownTmuxPendingPath(agendHome: string): string;
|
|
3605
|
+
/**
|
|
3606
|
+
* Fleet start's decision, made before this start records server.json: an upgraded home is persisted as owing the
|
|
3607
|
+
* notice. A restart before the notice is dispatched (a slow first start; alpha.6 leg M on the real Mac) would otherwise
|
|
3608
|
+
* read the just-recorded server as "not an upgrade" and drop it.
|
|
3609
|
+
*/
|
|
3610
|
+
static ownTmuxStartDecision(agendHome: string, previous: unknown, logger?: {
|
|
3611
|
+
warn: (o: object, m: string) => void;
|
|
3612
|
+
}): boolean;
|
|
3613
|
+
/** Record that this home owes the own-tmux notice (unless it was already posted). */
|
|
3614
|
+
static persistOwnTmuxPending(agendHome: string, logger?: {
|
|
3615
|
+
warn: (o: object, m: string) => void;
|
|
3616
|
+
}): void;
|
|
3617
|
+
announceOwnTmux(): void;
|
|
2953
3618
|
/**
|
|
2954
3619
|
* Post the daily summary where fleet-wide notices go.
|
|
2955
3620
|
*
|
|
@@ -2966,10 +3631,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2966
3631
|
*/
|
|
2967
3632
|
notifyFleetError(text: string, opts?: {
|
|
2968
3633
|
throttle?: boolean;
|
|
3634
|
+
ack?: (delivered: boolean) => void;
|
|
2969
3635
|
}): boolean;
|
|
2970
3636
|
private webNotices;
|
|
2971
3637
|
/** #2910 D2 (web-api): the Notices on a web-only fleet; null on any other (its General says them). */
|
|
2972
3638
|
webNoticesFeed(): WebNotices | null;
|
|
3639
|
+
/** 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). */
|
|
3640
|
+
private hasWebNotices;
|
|
2973
3641
|
/** #2910 D2: the web-only fleet's Notices (web-notices.json), read on first use. */
|
|
2974
3642
|
webNoticeStore(): WebNotices | null;
|
|
2975
3643
|
/**
|
|
@@ -2977,6 +3645,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2977
3645
|
* told as a Notice, and push it to the dashboard. False on any other fleet (its chat says it; nothing is kept).
|
|
2978
3646
|
*/
|
|
2979
3647
|
private recordWebNotice;
|
|
3648
|
+
/** #3373 review P2: recordWebNotice for a notice that must be on disk first — true only once it was written. */
|
|
3649
|
+
private recordWebNoticeDurable;
|
|
2980
3650
|
private static readonly FLEET_ERROR_THROTTLE_MS;
|
|
2981
3651
|
private fleetErrorNotices;
|
|
2982
3652
|
/**
|
|
@@ -2989,7 +3659,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2989
3659
|
* rejection surfaces only as a warn in its .catch. True delivery confirmation
|
|
2990
3660
|
* would have to make this async and change every caller.
|
|
2991
3661
|
*/
|
|
2992
|
-
notifyInstanceTopic(instanceName: string, text: string, extraOpts?: import("./channel/types.js").SendOpts): boolean;
|
|
3662
|
+
notifyInstanceTopic(instanceName: string, text: string, extraOpts?: import("./channel/types.js").SendOpts, ack?: (delivered: boolean) => void): boolean;
|
|
2993
3663
|
/**
|
|
2994
3664
|
* notifyInstanceTopic's routing, handing back the send itself — and which world sent it — for a caller that must
|
|
2995
3665
|
* edit or delete the message later (#2897). Null when there is no adapter or no postable target (already logged).
|
|
@@ -3060,6 +3730,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3060
3730
|
onAttentionChanged(name: string): void;
|
|
3061
3731
|
/** The list for the web: every world's items, and those of instances with no world (#1386 §5.0). */
|
|
3062
3732
|
needsYouItems(): WebNeedsItem[];
|
|
3733
|
+
/** Enabled member composition supplies only a local attention reader, never an approval/execution callback. */
|
|
3734
|
+
attachHubExecutionAttention(read: (() => import("./needs-you.js").HubExecutionAttentionInput[]) | null): void;
|
|
3063
3735
|
/**
|
|
3064
3736
|
* #1389: the org chart's structure for the web — the instances the dashboard lists (getUiStatus's names), General,
|
|
3065
3737
|
* fleet.yaml's teams, each instance's description and thread link. Read on demand; the live state rides the stream.
|
|
@@ -3252,6 +3924,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3252
3924
|
gateway: boolean;
|
|
3253
3925
|
peer: WebPeer;
|
|
3254
3926
|
instance?: string;
|
|
3927
|
+
authorization?: SessionAuthorization | null;
|
|
3255
3928
|
}): WebAuthorityResult;
|
|
3256
3929
|
private sessionAuthorizations;
|
|
3257
3930
|
private sessionAuthorizationStore;
|
|
@@ -3276,6 +3949,160 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3276
3949
|
* again. A fleet with a chat connection, another session, or another peer: nothing (§3 as before).
|
|
3277
3950
|
*/
|
|
3278
3951
|
authorizeHostSession(session: SessionRecord, peer: WebPeer): void;
|
|
3952
|
+
private webRemoteAccessState;
|
|
3953
|
+
/** The authenticator, the outside switch and the wrong-code limiter (web-remote-access.json), read on first use. */
|
|
3954
|
+
webRemoteAccess(): WebRemoteAccess | null;
|
|
3955
|
+
/** "Allow connections from outside" is on (an app set up) and this is a web-only fleet. */
|
|
3956
|
+
private outsideOn;
|
|
3957
|
+
/** The link connections from outside opened, while it is open and still theirs: its exposure. Else null. */
|
|
3958
|
+
private outsideLink;
|
|
3959
|
+
/**
|
|
3960
|
+
* The request's live session, asked again each time `current()` is called (its own cookie authenticated anew, the same
|
|
3961
|
+
* handle): this web-only fleet's owner — this computer's admin, on this computer (`hostOnly`), or also signed in from
|
|
3962
|
+
* outside — and web-verified now. Null when it is not (a guest, a LAN session, a chat fleet's admin, nobody).
|
|
3963
|
+
*/
|
|
3964
|
+
private liveOwner;
|
|
3965
|
+
/** Every session signed in from outside ends (and the authorizations kept for them). */
|
|
3966
|
+
private endOutsideSessions;
|
|
3967
|
+
/**
|
|
3968
|
+
* #1939 §10 / #3008: a stored receipt's authority as it reads now — the web authority state, and for this computer's
|
|
3969
|
+
* admin from outside the switch and the last revocation of remote authority (Prism P2 2).
|
|
3970
|
+
*/
|
|
3971
|
+
receiptAuthorityNow(stored: HumanAuthority, state?: AuthorityState): HumanAuthority;
|
|
3972
|
+
/** #3008 (the sign-in page): this exposure is the outside link, open now. */
|
|
3973
|
+
isOutsideLink(exposureId: string): boolean;
|
|
3974
|
+
/**
|
|
3975
|
+
* What Settings shows: THIS admin's own authenticator (set up or not, when, their own "ask for my code" switch), whether they
|
|
3976
|
+
* 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,
|
|
3977
|
+
* the outside switch, a wait in force and the link — its address only to this computer.
|
|
3978
|
+
*/
|
|
3979
|
+
webOutsideStatus(req: IncomingMessage): {
|
|
3980
|
+
webOnly: boolean;
|
|
3981
|
+
here: boolean;
|
|
3982
|
+
manage: boolean;
|
|
3983
|
+
codeNeeded: boolean;
|
|
3984
|
+
strict: boolean;
|
|
3985
|
+
enrolled: boolean;
|
|
3986
|
+
enrolledAt: number | null;
|
|
3987
|
+
outside: boolean;
|
|
3988
|
+
/** #3486: what THIS admin types as the name at a new browser's authenticator sign-in (their own, never anyone else's); null: a web-only fleet needs none, or no app yet. */
|
|
3989
|
+
signinName: string | null;
|
|
3990
|
+
pausedForMs: number;
|
|
3991
|
+
link: {
|
|
3992
|
+
state: string;
|
|
3993
|
+
url?: string;
|
|
3994
|
+
expiresAt?: number;
|
|
3995
|
+
noExpiry?: true;
|
|
3996
|
+
quick: boolean;
|
|
3997
|
+
} | null;
|
|
3998
|
+
};
|
|
3999
|
+
/**
|
|
4000
|
+
* AGEND-122 (per admin): who may set up, replace or remove an authenticator, and turn its switch on or off — an admin with a
|
|
4001
|
+
* 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
|
|
4002
|
+
* 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
|
|
4003
|
+
* operator's). Another admin's is never reachable from here: a stolen session can lock out at most the admin it belongs to, and
|
|
4004
|
+
* every such change posts a Notice to the fleet. On the AgEnD computer's own browser no code is asked. Connections from outside
|
|
4005
|
+
* and their switch are another thing and stay a web-only fleet's, on its own computer (liveOwner).
|
|
4006
|
+
*/
|
|
4007
|
+
private authenticatorOwner;
|
|
4008
|
+
/**
|
|
4009
|
+
* Changing an app that exists — replacing it, removing it, turning its switch off — is the OWNER'S, proven by its current code off
|
|
4010
|
+
* the AgEnD computer, whatever the "ask for my code on confirmations" switch says (that switch is about ordinary Settings
|
|
4011
|
+
* confirmations; this is lifecycle ownership). With no app there is no old code to ask: a first set-up asks nothing, and the AgEnD
|
|
4012
|
+
* computer's own browser is never asked — the recovery controls.
|
|
4013
|
+
*/
|
|
4014
|
+
private authenticatorCodeAsked;
|
|
4015
|
+
/** What changing the app asks of this session: nothing, or the current code (of its own app). */
|
|
4016
|
+
private authenticatorStep;
|
|
4017
|
+
/**
|
|
4018
|
+
* 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
|
|
4019
|
+
* 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
|
|
4020
|
+
* on this computer is not finished from another device: it never passed the code, so the finish is refused. A "code" start also
|
|
4021
|
+
* records WHICH app the code proved (`enrollment`, the opaque id of the owner's app at that moment, null when there was none): a
|
|
4022
|
+
* code is a proof about that app and about nothing that replaces it — the finish is refused once the owner's app has been
|
|
4023
|
+
* replaced or removed since (say, a recovery on the computer), so an earlier remote set-up can never overwrite the newer app.
|
|
4024
|
+
*/
|
|
4025
|
+
private authenticatorStarts;
|
|
4026
|
+
/** 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. */
|
|
4027
|
+
webOutsideBeginEnrollment(req: IncomingMessage, code?: string): {
|
|
4028
|
+
secret: string;
|
|
4029
|
+
uri: string;
|
|
4030
|
+
expiresInMs: number;
|
|
4031
|
+
} | {
|
|
4032
|
+
error: "code_required" | "wrong" | "paused" | "unavailable" | "not_here";
|
|
4033
|
+
retryAfterMs?: number;
|
|
4034
|
+
} | null;
|
|
4035
|
+
/** 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). */
|
|
4036
|
+
webOutsideConfirmEnrollment(req: IncomingMessage, code: string): "ok" | "wrong" | "expired" | "unsaved" | "not_here" | "full";
|
|
4037
|
+
/** Forget your own app (your switch with it). A code is asked first when your switch needs one. Nothing set up: nothing happens. */
|
|
4038
|
+
webOutsideRemove(req: IncomingMessage, code?: string): "ok" | "unsaved" | "not_here" | {
|
|
4039
|
+
error: "code_required" | "wrong" | "paused" | "unavailable";
|
|
4040
|
+
retryAfterMs?: number;
|
|
4041
|
+
};
|
|
4042
|
+
/**
|
|
4043
|
+
* 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
|
|
4044
|
+
* only tightens); off asks your current code off the AgEnD computer — so a session it restricts cannot lift the restriction for
|
|
4045
|
+
* you without it. Never anyone else's. Either way a Notice goes to the fleet's admins.
|
|
4046
|
+
*/
|
|
4047
|
+
webOutsideStrict(req: IncomingMessage, on: boolean, code?: string): "ok" | "not_enrolled" | "not_here" | "unsaved" | {
|
|
4048
|
+
error: "code_required" | "wrong" | "paused" | "unavailable";
|
|
4049
|
+
retryAfterMs?: number;
|
|
4050
|
+
};
|
|
4051
|
+
/** The switch. On: needs an app set up; the link opens. Off: it closes and every session from outside ends. */
|
|
4052
|
+
webOutsideSwitch(req: IncomingMessage, on: boolean): "ok" | "not_enrolled" | "not_here" | "not_allowed" | "unsaved";
|
|
4053
|
+
private outsideAttempt;
|
|
4054
|
+
private outsideOpening;
|
|
4055
|
+
/**
|
|
4056
|
+
* Open the outside link: an attempt after each delay in turn until one opens (#3008 B: twice more at most — the quick
|
|
4057
|
+
* link's address service limits how often it may be asked). Every attempt asks again: the switch still on, the fleet
|
|
4058
|
+
* running. A final failure: one Notice; the switch stays on, so the next start tries again.
|
|
4059
|
+
*/
|
|
4060
|
+
private openOutsideLink;
|
|
4061
|
+
private closeOutsideLink;
|
|
4062
|
+
/** PublicWebLink.onClose for the outside link: what closed it decides what happens next (#3008 B). */
|
|
4063
|
+
private outsideLinkClosed;
|
|
4064
|
+
/**
|
|
4065
|
+
* #3486 (per admin; auth-api POST /auth/totp): a browser that is not signed in yet signs in as ONE admin, with
|
|
4066
|
+
* the code of THAT admin's own authenticator — the same per-admin app their confirmations use. Who is not found by trying the code
|
|
4067
|
+
* against everyone: the person types a name (`account`), which resolves — among the admins that have an app and are still admins —
|
|
4068
|
+
* to at most one; the page lists nobody. A name that resolves to nobody (no such name, an admin with no app, a name two admins
|
|
4069
|
+
* share, one no longer an admin) is answered exactly as a wrong code is, after the same work and the same counting (store.signIn).
|
|
4070
|
+
* A web-only fleet has one admin (the host operator): its one app, no name needed.
|
|
4071
|
+
*
|
|
4072
|
+
* Where it works: a direct connection (LAN, tailnet, the owner's own proxy — and this computer's own browser) on any fleet; on a
|
|
4073
|
+
* 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
|
|
4074
|
+
* only as before (#3008): the one "Allow connections from outside" opened. "Only this computer can authorize" closes all of it.
|
|
4075
|
+
* 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
|
|
4076
|
+
* fleet's is that fleet's admin session (and over the outside link the #3008 `remote` one, authorized as before). No authority beyond
|
|
4077
|
+
* that: no "Authorize this browser", nothing an agent would take as a go-ahead. Every success tells every admin (a Notice).
|
|
4078
|
+
*/
|
|
4079
|
+
totpSignIn(input: {
|
|
4080
|
+
exposureId: string | undefined;
|
|
4081
|
+
peer: WebPeer;
|
|
4082
|
+
account: string | undefined;
|
|
4083
|
+
code: string;
|
|
4084
|
+
browser: {
|
|
4085
|
+
id: string;
|
|
4086
|
+
address: string | undefined;
|
|
4087
|
+
};
|
|
4088
|
+
knownCookie: string | undefined;
|
|
4089
|
+
}): TotpSignInResult;
|
|
4090
|
+
/** 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. */
|
|
4091
|
+
private signinHandleOf;
|
|
4092
|
+
/** 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). */
|
|
4093
|
+
private totpSignInOpen;
|
|
4094
|
+
/**
|
|
4095
|
+
* The admin a typed name stands for, among the chat admins that have an authenticator AND are still admins of their connection: by
|
|
4096
|
+
* the platform user name they sign in with (Discord / Telegram handle, no "@", any case), their user id, or `connection:id`. Exactly
|
|
4097
|
+
* 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
|
|
4098
|
+
* for a name that is nobody's. `ident` is the normalized text, for the limiter.
|
|
4099
|
+
*/
|
|
4100
|
+
private resolveSignInAdmin;
|
|
4101
|
+
/**
|
|
4102
|
+
* #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
|
|
4103
|
+
* could not be admitted (its handle not saved, #3015 review r3) — the caller ends it.
|
|
4104
|
+
*/
|
|
4105
|
+
authorizeOutsideSession(session: SessionRecord, peer: WebPeer, label: string): boolean;
|
|
3279
4106
|
private authorityStateStore;
|
|
3280
4107
|
/**
|
|
3281
4108
|
* #1939 §10: the switch, "Only this computer can authorize" and the revocation epoch in force for the configuration as
|
|
@@ -3293,7 +4120,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3293
4120
|
* written), what fleet.yaml says, the hosts that make the dashboard reachable from elsewhere (the warning while
|
|
3294
4121
|
* loopback_only is off), and the sessions authorized now (§0): each one's device, account, and when it runs out.
|
|
3295
4122
|
*/
|
|
3296
|
-
webAuthorityOverview(): {
|
|
4123
|
+
webAuthorityOverview(req?: IncomingMessage): {
|
|
4124
|
+
/** AGEND-138: this browser's own session, and whether it may revoke the others' authorization (the verified owner only). */
|
|
4125
|
+
you: {
|
|
4126
|
+
handle: string | null;
|
|
4127
|
+
canRevoke: boolean;
|
|
4128
|
+
};
|
|
3297
4129
|
state: AuthorityState;
|
|
3298
4130
|
configured: WebVerifiedAuthorityConfig;
|
|
3299
4131
|
hours: typeof VERIFIED_SESSION_HOURS;
|
|
@@ -3309,6 +4141,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3309
4141
|
}>;
|
|
3310
4142
|
/** #2453 (§0.2): the admin's named-tunnel hostname, while one is configured (the named-link row shows only then). */
|
|
3311
4143
|
namedHost: string | null;
|
|
4144
|
+
/** A fleet with no chat connection: the page words the card for the authenticator, not for Discord / Telegram. */
|
|
4145
|
+
webOnly: boolean;
|
|
3312
4146
|
};
|
|
3313
4147
|
private authorizationRequests;
|
|
3314
4148
|
/**
|
|
@@ -3349,11 +4183,38 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3349
4183
|
state: "none";
|
|
3350
4184
|
reason: WebAuthorityRefusal;
|
|
3351
4185
|
};
|
|
3352
|
-
/**
|
|
3353
|
-
|
|
4186
|
+
/**
|
|
4187
|
+
* #1939 §10: revoke every web authority given so far (receipts read as none), without signing anyone out.
|
|
4188
|
+
* AGEND-138: `keep` — the session that asked (the verified owner's own): the epoch still moves, so every other session
|
|
4189
|
+
* and every stored receipt is ended, but this one is authorized again under the new epoch at once (§3 asked afresh,
|
|
4190
|
+
* with the end it already had: a revocation never stretches an authorization). A host session only where it is
|
|
4191
|
+
* allowed to be one — on this computer — as at sign-in.
|
|
4192
|
+
*/
|
|
4193
|
+
revokeWebAuthority(keep?: {
|
|
4194
|
+
session: SessionRecord;
|
|
4195
|
+
peer: WebPeer;
|
|
4196
|
+
gateway: boolean;
|
|
4197
|
+
}): {
|
|
3354
4198
|
epoch: number;
|
|
3355
4199
|
durable: boolean;
|
|
4200
|
+
kept: boolean;
|
|
3356
4201
|
};
|
|
4202
|
+
/**
|
|
4203
|
+
* AGEND-138: who may "Revoke authorization of other devices" — the verified owner only, asked of the LIVE session each
|
|
4204
|
+
* time. A web-only fleet: its owner (this computer's admin here, or signed in from outside). A fleet with a chat
|
|
4205
|
+
* connection: an admin session that is web-verified now (its account confirmed in Discord / Telegram) — the same §3
|
|
4206
|
+
* verdict the rest of web authority uses. A guest, a read-only session, an admin not verified (a device-code or one-time-code
|
|
4207
|
+
* sign-in), the header token: null. `revoke()` ends everyone else's and keeps this session verified.
|
|
4208
|
+
*/
|
|
4209
|
+
webAuthorityRevoker(req: IncomingMessage): {
|
|
4210
|
+
handle: string;
|
|
4211
|
+
current(): boolean;
|
|
4212
|
+
revoke(): {
|
|
4213
|
+
epoch: number;
|
|
4214
|
+
durable: boolean;
|
|
4215
|
+
kept: boolean;
|
|
4216
|
+
};
|
|
4217
|
+
} | null;
|
|
3357
4218
|
/** #1269: an instance's chat command from the web chat (web-commands.ts); `publicLink`: a gateway request. */
|
|
3358
4219
|
/** #2855: the table scope of an instance the web chat may command (a fleet instance or a ClassicBot room), else null. */
|
|
3359
4220
|
private webCommandScope;
|
|
@@ -3364,6 +4225,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3364
4225
|
command: string;
|
|
3365
4226
|
args?: string;
|
|
3366
4227
|
confirm?: string;
|
|
4228
|
+
action?: import("./web-commands.js").WebModelAction;
|
|
3367
4229
|
}, opts: {
|
|
3368
4230
|
publicLink: boolean;
|
|
3369
4231
|
person?: Pick<WebPersonView, "userId" | "name">;
|
|
@@ -3633,12 +4495,27 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3633
4495
|
*/
|
|
3634
4496
|
private readonly loginWindow;
|
|
3635
4497
|
private get webLogin();
|
|
4498
|
+
/**
|
|
4499
|
+
* #3190 Part 3c: dashboard sign-ins on a paired computer (machine-signins.ts): #3212's StructuredSignIn over a RuntimeSignInTransport, one computer and one
|
|
4500
|
+
* credential profile at a time. Its own coordinator, not the host's: it never touches the host's sign-in checklist or login window.
|
|
4501
|
+
*/
|
|
4502
|
+
private machineSignInsInstance;
|
|
4503
|
+
get machineSignIns(): MachineSignIns;
|
|
4504
|
+
private machineAccountsInstance;
|
|
4505
|
+
/** #3190 Part 3c: a paired computer's accounts in Settings → Accounts (machine-accounts.ts). */
|
|
4506
|
+
get machineAccounts(): MachineAccounts;
|
|
3636
4507
|
private browserBackendSignInsInstance;
|
|
3637
4508
|
private structuredLoginCleanupFailed;
|
|
3638
4509
|
private readonly pendingBackendSince;
|
|
3639
4510
|
private browserSignInOwnerCurrent;
|
|
3640
4511
|
/** #2599: default-account controls share the exact writer reservation with chat/profile/install. */
|
|
3641
4512
|
get browserBackendSignIns(): BrowserBackendSignIns;
|
|
4513
|
+
private profileSignInsInstance;
|
|
4514
|
+
/**
|
|
4515
|
+
* #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
|
|
4516
|
+
* 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.
|
|
4517
|
+
*/
|
|
4518
|
+
get profileSignIns(): ProfileSignIns;
|
|
3642
4519
|
private needsYouBackendSignIns;
|
|
3643
4520
|
/** #2233: sign-ins started from the web dashboard (local admin sessions), on the same controller as chat's. */
|
|
3644
4521
|
private webBackendLoginsInstance;
|
|
@@ -3649,6 +4526,131 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3649
4526
|
* #2233: Settings → Agents' sign-in list — every backend's default login as the availability snapshot has it, then
|
|
3650
4527
|
* each credential profile an agent uses (its own login state, read offline).
|
|
3651
4528
|
*/
|
|
4529
|
+
/** 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. */
|
|
4530
|
+
private readonly signInIdentities;
|
|
4531
|
+
/** 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. */
|
|
4532
|
+
private readonly signInIdentityReads;
|
|
4533
|
+
/** Raised each time the accounts are forgotten: a read that began before is never allowed to write what it found. */
|
|
4534
|
+
private signInIdentityGeneration;
|
|
4535
|
+
private signInIdentitySlots;
|
|
4536
|
+
private readonly signInIdentityWaiters;
|
|
4537
|
+
private signInIdentity;
|
|
4538
|
+
/** A sign-in finished (or changed): forget what was read and let no read that was already running put its answer back. */
|
|
4539
|
+
private forgetSignInIdentities;
|
|
4540
|
+
/** At most three `claude auth status` at once across the whole host, however many requests ask. */
|
|
4541
|
+
private withSignInIdentitySlot;
|
|
4542
|
+
/** One `claude auth status` for a sign-in (the default one, or a credential profile's folder). */
|
|
4543
|
+
private readSignInIdentity;
|
|
4544
|
+
/**
|
|
4545
|
+
* 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
|
|
4546
|
+
* 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
|
|
4547
|
+
* 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
|
|
4548
|
+
* forgotten (a sign-in finished meanwhile) is dropped. No login, no network request of ours, nothing logged.
|
|
4549
|
+
*/
|
|
4550
|
+
refreshSignInIdentities(): void;
|
|
4551
|
+
/**
|
|
4552
|
+
* #3212 PR 1: the Accounts view (accounts-view.ts) — every CLI's default sign-in and named profiles (used or only on
|
|
4553
|
+
* disk), who uses each and its weekly usage. Host rows only; a paired computer's rows come with #3190 Part 3c. Its
|
|
4554
|
+
* usage is the usage panel's cached read (never forced), given at most `usageWaitMs` before the view is sent without it.
|
|
4555
|
+
*/
|
|
4556
|
+
accountsView(usageWaitMs?: number): Promise<AccountsView>;
|
|
4557
|
+
/**
|
|
4558
|
+
* 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
|
|
4559
|
+
* "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.
|
|
4560
|
+
*/
|
|
4561
|
+
private keepAliveAfterSignIn;
|
|
4562
|
+
/** #3292: the keep-alive service (built on first use, so the Accounts view can read settings before startup finishes). */
|
|
4563
|
+
private keepAliveService;
|
|
4564
|
+
private startSignInKeepAlive;
|
|
4565
|
+
/**
|
|
4566
|
+
* #3292 review: which sign-in each host agent is starting or running on, recorded at its start (InstanceLifecycle
|
|
4567
|
+
* admitCredentialUse) from the configuration it launched with — never re-resolved against today's defaults. An entry
|
|
4568
|
+
* whose start ended without a daemon, or whose daemon is gone, is dropped when next read.
|
|
4569
|
+
*/
|
|
4570
|
+
private readonly credentialLeases;
|
|
4571
|
+
/** #3292 review: Keep sign-in alive runs in flight, by sign-in: a start on that sign-in waits for its end. */
|
|
4572
|
+
private readonly keepAliveRenewing;
|
|
4573
|
+
private credentialKey;
|
|
4574
|
+
/**
|
|
4575
|
+
* The sign-in a start launches on, from the instance's own (defaults-expanded at load) options — exactly what the
|
|
4576
|
+
* Daemon's clone of that config hands its CLI. Never today's defaults: an older config object keeps its own.
|
|
4577
|
+
*/
|
|
4578
|
+
private launchCredentialKey;
|
|
4579
|
+
/**
|
|
4580
|
+
* #3313 review r2: failed starts whose CLI was not proven gone keep holding their sign-in (across a retry of the same
|
|
4581
|
+
* agent too) until a check finds it ended.
|
|
4582
|
+
*/
|
|
4583
|
+
private readonly credentialOrphans;
|
|
4584
|
+
private orphanCheck;
|
|
4585
|
+
private recheckCredentialOrphans;
|
|
4586
|
+
/**
|
|
4587
|
+
* LifecycleContext: hold the sign-in a start will launch on (waits while Keep sign-in alive renews it). The key is
|
|
4588
|
+
* read again after every wait; `current(config)` lets the start check, with no await before it builds its Daemon,
|
|
4589
|
+
* that the config still names that sign-in (a save may have changed it meanwhile: then it asks again).
|
|
4590
|
+
*/
|
|
4591
|
+
admitCredentialUse(name: string, config: InstanceConfig, backend: string, assertCurrent: () => void): Promise<{
|
|
4592
|
+
published(): void;
|
|
4593
|
+
release(): void;
|
|
4594
|
+
current(config: InstanceConfig): boolean;
|
|
4595
|
+
unknownEnd(ended: () => Promise<boolean>): void;
|
|
4596
|
+
} | null>;
|
|
4597
|
+
/**
|
|
4598
|
+
* #3292: a sign-in is in use when a host agent is starting or running on it (as launched), a ClassicBot room is bound
|
|
4599
|
+
* to it (or the rooms cannot be read — none when there is no classicBot.yaml), or a sign-in for it is running. Codex
|
|
4600
|
+
* refresh tokens are single-use: a refresh beside a live user could spend the one it holds; and use keeps it alive.
|
|
4601
|
+
*/
|
|
4602
|
+
private keepAliveInUse;
|
|
4603
|
+
/**
|
|
4604
|
+
* #3292 review: one keep-alive run's admission, decided synchronously: not in use, the shared login window taken, and the
|
|
4605
|
+
* sign-in marked as renewing (a start on it waits). The run's life is an account writer: a stop waits for it, and
|
|
4606
|
+
* sign-in admission reopens after a restart only once it has ended. `release()` only after its CLI has exited.
|
|
4607
|
+
*/
|
|
4608
|
+
private acquireKeepAliveRun;
|
|
4609
|
+
/** #3292: Needs you's lines for kept sign-ins, in the fleet's language (posted in General's world, like config issues). */
|
|
4610
|
+
private keepAliveAttention;
|
|
4611
|
+
/** #3292: Settings → Accounts → Keep sign-in alive (POST /ui/accounts/keep-alive). `by`: the session's label, for the fleet log. */
|
|
4612
|
+
setAccountKeepAlive(backend: unknown, profile: unknown, enabled: unknown, fallback: unknown, by: string): KeepAliveSetResult;
|
|
4613
|
+
/**
|
|
4614
|
+
* Who uses which account: host agents (an agent on a paired Windows computer runs on that computer's accounts — its
|
|
4615
|
+
* own scope), ClassicBot rooms and the fleet default per CLI, each with its effective profile (null: the default sign-in).
|
|
4616
|
+
*/
|
|
4617
|
+
private accountUses;
|
|
4618
|
+
/** #3212 PR 2: Settings → Accounts → + Add account (accounts-profiles.ts). `by`: the session's label, for the fleet log. */
|
|
4619
|
+
addAccountProfile(backend: string, name: unknown, by: string, machine?: MachineActor): AddResult | Promise<MachineAccountResult>;
|
|
4620
|
+
/** 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. */
|
|
4621
|
+
private configuredProfileNames;
|
|
4622
|
+
/**
|
|
4623
|
+
* #3212 PR 2: Settings → Accounts → Remove. Refused while anything uses it or a sign-in for it runs (the login controller,
|
|
4624
|
+
* or the login window held for this backend by a sign-in whose profile is not known yet); see accounts-profiles.ts.
|
|
4625
|
+
* The fleet log records who removed which backend's profile — never what was in it.
|
|
4626
|
+
*/
|
|
4627
|
+
removeAccountProfile(backend: string, name: unknown, confirm: unknown, by: string, machine?: MachineActor, opts?: {
|
|
4628
|
+
cancelSignIn?: true;
|
|
4629
|
+
}): Promise<RemoveResult | MachineAccountResult>;
|
|
4630
|
+
/**
|
|
4631
|
+
* Remove's whole safety proof, read now (#3291 review): who uses the account — configured agents and live daemons, the
|
|
4632
|
+
* fleet default, ClassicBot rooms read strictly — and whether a sign-in for it runs. `ownClaim`: the login window this
|
|
4633
|
+
* removal holds itself, which is not someone else's sign-in.
|
|
4634
|
+
*/
|
|
4635
|
+
private removalRequest;
|
|
4636
|
+
/**
|
|
4637
|
+
* #3212 PR 3: Settings → Accounts → Sign out (accounts-signout.ts): the CLI's own logout for the default sign-in
|
|
4638
|
+
* (`profile` null) or a named account. Refused while a sign-in for it runs (case-insensitive, as Remove). The fleet
|
|
4639
|
+
* log records who signed out which backend's account; then every page reads the sign-ins again.
|
|
4640
|
+
*/
|
|
4641
|
+
/** How a CLI's logout is run and the Keychain asked (a test's stand-in; the platform with it). */
|
|
4642
|
+
accountSignOutDeps: Pick<import("./accounts-signout.js").SignOutDeps, "keychainHas" | "platform" | "run">;
|
|
4643
|
+
/** #3305 review: every account logout's whole life — its CLI children until positively gone (shutdown drains them). */
|
|
4644
|
+
private readonly accountWriters;
|
|
4645
|
+
/**
|
|
4646
|
+
* #3305 review P2-3/P2-5: run `work` as the owner of the credential writer (`claim`). Its CLIs run through a runner
|
|
4647
|
+
* that records each child's positive end; the work is told whether it still owns the writer (`stillOwner`) before it
|
|
4648
|
+
* cleans anything; and the claim is released only once every child it started is positively gone — a child whose end
|
|
4649
|
+
* is unknown keeps sign-in admission closed (logged). Shutdown waits for these (shutdownLoginWindows), and a restart
|
|
4650
|
+
* reopens admission only after they are gone.
|
|
4651
|
+
*/
|
|
4652
|
+
private withAccountWriter;
|
|
4653
|
+
signOutAccount(backend: string, profile: unknown, confirm: unknown, by: string, machine?: MachineActor): Promise<SignOutResult | MachineAccountResult>;
|
|
3652
4654
|
backendSignInTargets(): SignInTarget[];
|
|
3653
4655
|
/** #2233: the session with this handle is live, admin, local and of the current dashboard token. */
|
|
3654
4656
|
private isLocalAdminSession;
|
|
@@ -3722,6 +4724,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3722
4724
|
/** The sign-in itself, in the web terminal, for a CLI that is installed. */
|
|
3723
4725
|
private launchSignIn;
|
|
3724
4726
|
/** Fleet shutdown: end any web login or install window and wait for its confirmed teardown. */
|
|
4727
|
+
/**
|
|
4728
|
+
* #3305 review P2-3: reopen sign-in admission after a restart — only once no account logout's CLI from before is still
|
|
4729
|
+
* alive (a fresh sign-in must never overlap it). Each reopen supersedes a deferred one.
|
|
4730
|
+
*/
|
|
4731
|
+
private loginReopenGen;
|
|
4732
|
+
private reopenLoginWindow;
|
|
3725
4733
|
private shutdownLoginWindows;
|
|
3726
4734
|
/** `/login cancel` — abort the active session and remove its window. */
|
|
3727
4735
|
cancelLoginSession(): Promise<string>;
|
|
@@ -3764,6 +4772,25 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3764
4772
|
}, signIn?: {
|
|
3765
4773
|
profile?: string;
|
|
3766
4774
|
}): Promise<string>;
|
|
4775
|
+
/**
|
|
4776
|
+
* 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
|
|
4777
|
+
* command through `unattendedInstallCommand` (no terminal to ask on, low priority, stoppable as a whole, the user's own $SHELL), judged by the installer's
|
|
4778
|
+
* 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,
|
|
4779
|
+
* `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.
|
|
4780
|
+
*/
|
|
4781
|
+
private openInstallWindow;
|
|
4782
|
+
/** AGEND-133: the dashboard's Install button — what the Accounts page asks of `/login`'s install, with no chat to report in. */
|
|
4783
|
+
private webHostInstallsInstance;
|
|
4784
|
+
get webHostInstalls(): WebHostInstalls;
|
|
4785
|
+
/**
|
|
4786
|
+
* 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
|
|
4787
|
+
* `info.unattended ?? info.install` read here, the window and its judgement are `/login`'s (openInstallWindow). The verdict is then checked the way chat's
|
|
4788
|
+
* is — a fresh login shell, else the installer's own directories — and the availability probe reads the version for the page. Everything is
|
|
4789
|
+
* reported through `reporter`; nothing is posted to any chat, and no sign-in is started (the page offers Sign in itself).
|
|
4790
|
+
*/
|
|
4791
|
+
startWebInstall(backendArg: string, reporter: HostInstallReporter, execution?: SettingsExecution, mode?: HostInstallMode): Promise<HostInstallStart>;
|
|
4792
|
+
/** A fresh login shell's answer for `binary`, else the installer's own directories (see locateBinaryOnLoginShell / locateInstalledBackend). */
|
|
4793
|
+
private locateInstalledCli;
|
|
3767
4794
|
/** Whether this backend's CLI is on the fleet's PATH (what `/login` installs when it is not). */
|
|
3768
4795
|
isCliInstalled(backend: string): boolean;
|
|
3769
4796
|
/** M-2281: isCliInstalled without holding the fleet loop (a chat click's path: `which` on a slow PATH can take seconds). */
|
|
@@ -3992,6 +5019,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3992
5019
|
private persistCliEnvProbeResult;
|
|
3993
5020
|
/** Background-probe every distinct backend in use at startup (non-blocking). */
|
|
3994
5021
|
private probeCliEnvs;
|
|
5022
|
+
/** Maintain discovery after committed config changes; a model-field read remains passive. */
|
|
5023
|
+
private probeChangedCliEnvs;
|
|
3995
5024
|
/** Best-effort model list for `/model`: cached CLI env first, else live probe. Never throws. */
|
|
3996
5025
|
private getModelOptions;
|
|
3997
5026
|
/**
|
|
@@ -4173,7 +5202,25 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4173
5202
|
* #2072 part 3: the models a Settings field offers for `backend` — the cached catalog (an instance's own credential
|
|
4174
5203
|
* profile's, when it is named and has one), claude's account catalog included. Read only: never a probe.
|
|
4175
5204
|
*/
|
|
4176
|
-
|
|
5205
|
+
private webModelTargetIds;
|
|
5206
|
+
private webModelTargetSequence;
|
|
5207
|
+
private webModelCatalogs;
|
|
5208
|
+
private webModelRefreshes;
|
|
5209
|
+
/** Resolve only trusted config; the browser never supplies a home, provider URL or credentials. */
|
|
5210
|
+
private webModelBinding;
|
|
5211
|
+
private webModelEnv;
|
|
5212
|
+
modelCatalogFor(backend: string, instance: string | null, selection?: {
|
|
5213
|
+
profile?: string;
|
|
5214
|
+
}): import("./backend/types.js").ModelOption[];
|
|
5215
|
+
/** Explicit, bounded vendor rediscovery. Never publish an answer under a different account/config/instance. */
|
|
5216
|
+
refreshModelCatalogFor(backend: string, instance: string | null, selection?: {
|
|
5217
|
+
profile?: string;
|
|
5218
|
+
}): Promise<{
|
|
5219
|
+
models: import("./backend/types.js").ModelOption[];
|
|
5220
|
+
refreshed: boolean;
|
|
5221
|
+
}>;
|
|
5222
|
+
/** Host-default fallback only: Grok has no modeled profile home. Never construct a backend or start a probe. */
|
|
5223
|
+
cliModelCatalogFor(backend: string, instance: string | null): Promise<import("./backend/types.js").ModelOption[]>;
|
|
4177
5224
|
/**
|
|
4178
5225
|
* #2072 (#2078 review): the snapshot as THIS instance would see it. Its sign-in on a backend is its own credential
|
|
4179
5226
|
* profile's when it has one there — the host's default login says nothing about it. A profile's login is a file check
|
|
@@ -4361,7 +5408,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4361
5408
|
* audit notice — and only once all of that holds is the attempt written to
|
|
4362
5409
|
* disk and fsynced, before anything spawns.
|
|
4363
5410
|
*/
|
|
4364
|
-
requestSettingsSelfRestart(
|
|
5411
|
+
requestSettingsSelfRestart(requestedJobId: string | null, key: string): Promise<SelfRestartResult>;
|
|
4365
5412
|
/** The audit notice, and the message the restart progress will edit. */
|
|
4366
5413
|
private postSelfRestartNotice;
|
|
4367
5414
|
/** Jobs outlive this process on purpose; see apply-job.ts. */
|
|
@@ -4498,6 +5545,17 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4498
5545
|
};
|
|
4499
5546
|
getConnectionSecretApply(jobId: string, sessionBinding: string): SecretApplyJob | null;
|
|
4500
5547
|
private runConnectionSecretApply;
|
|
5548
|
+
/**
|
|
5549
|
+
* S-91: how a connection stands against what this process set up at start. "same": its adapter start ran (and failed, or
|
|
5550
|
+
* found no token), so starting it now is what the background retry does. "changed": its binding waits for the restart —
|
|
5551
|
+
* never started live, whatever its role (#3365 review P2). "added": #1519 P6's rule.
|
|
5552
|
+
*/
|
|
5553
|
+
private startedWithConnection;
|
|
5554
|
+
/**
|
|
5555
|
+
* S-91: a token's live start for a connection that was not running did not come up. Whatever adapter it left is taken
|
|
5556
|
+
* down (handlers off, stopped, unregistered), and the connection goes back to the background retry with the error.
|
|
5557
|
+
*/
|
|
5558
|
+
private dropAdapterAfterFailedStart;
|
|
4501
5559
|
/** Stop the old provider client and construct a new one from process.env. */
|
|
4502
5560
|
private rebuildAdapterForSecret;
|
|
4503
5561
|
/**
|
|
@@ -4541,7 +5599,28 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4541
5599
|
};
|
|
4542
5600
|
private runSettingsApply;
|
|
4543
5601
|
restartInstances(): Promise<void>;
|
|
5602
|
+
/** The running package's version (package.json next to this code). */
|
|
5603
|
+
private runningAgendVersion;
|
|
5604
|
+
/**
|
|
5605
|
+
* What the install's own channel offers: the target version and whether it came from that channel's dist-tag. Throws
|
|
5606
|
+
* when npm cannot be asked (the callers decide what a failed look means).
|
|
5607
|
+
*/
|
|
5608
|
+
private lookUpUpdateTarget;
|
|
5609
|
+
/** M-2738: record a look's answer for the web — the same offer the notice below would make. */
|
|
5610
|
+
private recordUpdateCheck;
|
|
4544
5611
|
private checkForUpdates;
|
|
5612
|
+
/** The web's update routes (web-api.ts handleWebUpdate) read and start through this. */
|
|
5613
|
+
get webUpdate(): WebUpdateHost;
|
|
5614
|
+
/** "Check for updates": look now, no chat notice. One a minute; a second ask while one runs waits for it. */
|
|
5615
|
+
private checkUpdateNow;
|
|
5616
|
+
/**
|
|
5617
|
+
* M-2738: Update from the web — a fleet admin's session, after its own confirmation (the leader's D1). Only what the
|
|
5618
|
+
* last check offers as installable; the update itself is chat `/update`'s (launchInstalledUpdate). Its progress marker
|
|
5619
|
+
* targets no chat message (WEB_UPDATE_ADAPTER); the page reads the stages the updater writes into it.
|
|
5620
|
+
*/
|
|
5621
|
+
private startWebUpdate;
|
|
5622
|
+
/** M-2738: a web start's answer for its key, the same on a retry (at most 32 kept). */
|
|
5623
|
+
private startWebUpdateOnce;
|
|
4545
5624
|
/**
|
|
4546
5625
|
* Semver "a > b". Compares major.minor.patch numerically; a version without a
|
|
4547
5626
|
* prerelease outranks the same core with one (2.0.8 > 2.0.8-beta.16); two
|
|
@@ -4644,3 +5723,5 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4644
5723
|
getUiStatus(): unknown;
|
|
4645
5724
|
private getUiStatusSync;
|
|
4646
5725
|
}
|
|
5726
|
+
/** alpha.2 (M-2300): the agent an applied Windows request created (its name, for the page's "Open chat"), or null. */
|
|
5727
|
+
export declare function agentNameOf(view: SettingsPendingView): string | null;
|