@songsid/agend 2.3.5-beta.5 → 2.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/README.zh-TW.md +2 -0
- package/THIRD_PARTY_NOTICES.md +71 -0
- package/dist/accounts-profiles.d.ts +102 -0
- package/dist/accounts-profiles.js +194 -0
- package/dist/accounts-profiles.js.map +1 -0
- package/dist/accounts-signout.d.ts +59 -0
- package/dist/accounts-signout.js +181 -0
- package/dist/accounts-signout.js.map +1 -0
- package/dist/accounts-view.d.ts +189 -0
- package/dist/accounts-view.js +204 -0
- package/dist/accounts-view.js.map +1 -0
- package/dist/agent-endpoint.d.ts +5 -1
- package/dist/agent-endpoint.js +12 -2
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-export.d.ts +74 -0
- package/dist/agent-export.js +362 -0
- package/dist/agent-export.js.map +1 -0
- package/dist/agent-file-read.js +1 -1
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-runtime-api.d.ts +4 -0
- package/dist/agent-runtime-api.js +59 -0
- package/dist/agent-runtime-api.js.map +1 -0
- package/dist/agent-runtime-change.d.ts +76 -0
- package/dist/agent-runtime-change.js +114 -0
- package/dist/agent-runtime-change.js.map +1 -0
- package/dist/agent-whats-new.js +10 -3
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/agent-workspace.d.ts +103 -0
- package/dist/agent-workspace.js +360 -0
- package/dist/agent-workspace.js.map +1 -0
- package/dist/apply-job.d.ts +5 -0
- package/dist/apply-job.js +10 -3
- package/dist/apply-job.js.map +1 -1
- package/dist/auth-api.d.ts +78 -0
- package/dist/auth-api.js +350 -16
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/company-join.d.ts +16 -0
- package/dist/authority/company-join.js +37 -0
- package/dist/authority/company-join.js.map +1 -0
- package/dist/authority/hub-initialization.d.ts +13 -0
- package/dist/authority/hub-initialization.js +30 -0
- package/dist/authority/hub-initialization.js.map +1 -0
- package/dist/authority/settings-role.d.ts +56 -0
- package/dist/authority/settings-role.js +48 -0
- package/dist/authority/settings-role.js.map +1 -0
- package/dist/authority/web-authority.d.ts +25 -2
- package/dist/authority/web-authority.js +37 -4
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/claude-code.d.ts +19 -16
- package/dist/backend/claude-code.js +179 -144
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/claude-context.d.ts +17 -0
- package/dist/backend/claude-context.js +30 -0
- package/dist/backend/claude-context.js.map +1 -0
- package/dist/backend/codex-footer-hints.d.ts +3 -0
- package/dist/backend/codex-footer-hints.js +14 -0
- package/dist/backend/codex-footer-hints.js.map +1 -1
- package/dist/backend/codex-package.d.ts +5 -2
- package/dist/backend/codex-package.js +1 -5
- package/dist/backend/codex-package.js.map +1 -1
- package/dist/backend/codex-quota-history.js +4 -19
- package/dist/backend/codex-quota-history.js.map +1 -1
- package/dist/backend/codex.d.ts +149 -129
- package/dist/backend/codex.js +1323 -1233
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +21 -0
- package/dist/backend/credential-profile.js +48 -1
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/effort-metadata.d.ts +38 -2
- package/dist/backend/effort-metadata.js +145 -8
- package/dist/backend/effort-metadata.js.map +1 -1
- package/dist/backend/grok-mcp.d.ts +5 -0
- package/dist/backend/grok-mcp.js +221 -0
- package/dist/backend/grok-mcp.js.map +1 -0
- package/dist/backend/grok-model-cache.d.ts +7 -0
- package/dist/backend/grok-model-cache.js +65 -0
- package/dist/backend/grok-model-cache.js.map +1 -0
- package/dist/backend/grok.d.ts +7 -10
- package/dist/backend/grok.js +44 -88
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.js +1 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/launch-effort.d.ts +1 -1
- package/dist/backend/launch-effort.js +7 -3
- package/dist/backend/launch-effort.js.map +1 -1
- package/dist/backend/native-pane.d.ts +11 -0
- package/dist/backend/native-pane.js +59 -0
- package/dist/backend/native-pane.js.map +1 -0
- package/dist/backend/types.d.ts +20 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +15 -0
- package/dist/backend-availability.js +37 -1
- package/dist/backend-availability.js.map +1 -1
- package/dist/backend-signin-pending.d.ts +8 -2
- package/dist/backend-signin-pending.js +6 -2
- package/dist/backend-signin-pending.js.map +1 -1
- package/dist/browser-backend-signins.d.ts +2 -1
- package/dist/browser-backend-signins.js +1 -1
- package/dist/browser-backend-signins.js.map +1 -1
- package/dist/build-provenance-cli.d.ts +3 -0
- package/dist/build-provenance-cli.js +11 -0
- package/dist/build-provenance-cli.js.map +1 -0
- package/dist/build-provenance.d.ts +20 -0
- package/dist/build-provenance.js +67 -0
- package/dist/build-provenance.js.map +1 -0
- package/dist/build-provenance.json +1 -0
- package/dist/bundled-tmux-guard.d.ts +0 -2
- package/dist/bundled-tmux-guard.js +10 -23
- package/dist/bundled-tmux-guard.js.map +1 -1
- package/dist/channel/ipc-bridge.d.ts +2 -0
- package/dist/channel/mcp-tools.js +4 -4
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/classic-bindings.d.ts +13 -0
- package/dist/classic-bindings.js +28 -2
- package/dist/classic-bindings.js.map +1 -1
- package/dist/claude-auth-status.d.ts +60 -0
- package/dist/claude-auth-status.js +165 -0
- package/dist/claude-auth-status.js.map +1 -0
- package/dist/cli-audited.d.ts +60 -0
- package/dist/cli-audited.js +84 -0
- package/dist/cli-audited.js.map +1 -0
- package/dist/cli-capability.d.ts +217 -0
- package/dist/cli-capability.js +55 -0
- package/dist/cli-capability.js.map +1 -0
- package/dist/cli-caps-module.d.ts +33 -0
- package/dist/cli-caps-module.js +45 -0
- package/dist/cli-caps-module.js.map +1 -0
- package/dist/cli-registry-check.d.ts +28 -0
- package/dist/cli-registry-check.js +237 -0
- package/dist/cli-registry-check.js.map +1 -0
- package/dist/cli-registry.d.ts +578 -0
- package/dist/cli-registry.js +83 -0
- package/dist/cli-registry.js.map +1 -0
- package/dist/cli-spec-antigravity.d.ts +71 -0
- package/dist/cli-spec-antigravity.js +47 -0
- package/dist/cli-spec-antigravity.js.map +1 -0
- package/dist/cli-spec-claude-code.d.ts +93 -0
- package/dist/cli-spec-claude-code.js +37 -0
- package/dist/cli-spec-claude-code.js.map +1 -0
- package/dist/cli-spec-codex.d.ts +87 -0
- package/dist/cli-spec-codex.js +40 -0
- package/dist/cli-spec-codex.js.map +1 -0
- package/dist/cli-spec-grok.d.ts +64 -0
- package/dist/cli-spec-grok.js +40 -0
- package/dist/cli-spec-grok.js.map +1 -0
- package/dist/cli-spec-kiro-cli.d.ts +79 -0
- package/dist/cli-spec-kiro-cli.js +40 -0
- package/dist/cli-spec-kiro-cli.js.map +1 -0
- package/dist/cli-spec-muse.d.ts +54 -0
- package/dist/cli-spec-muse.js +40 -0
- package/dist/cli-spec-muse.js.map +1 -0
- package/dist/cli-spec-opencode.d.ts +60 -0
- package/dist/cli-spec-opencode.js +42 -0
- package/dist/cli-spec-opencode.js.map +1 -0
- package/dist/cli.js +311 -54
- package/dist/cli.js.map +1 -1
- package/dist/codex-pane-ownership.d.ts +13 -0
- package/dist/codex-pane-ownership.js +192 -0
- package/dist/codex-pane-ownership.js.map +1 -0
- package/dist/config-validator.js +93 -2
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +16 -0
- package/dist/config.js.map +1 -1
- package/dist/create-host-account.d.ts +17 -0
- package/dist/create-host-account.js +47 -0
- package/dist/create-host-account.js.map +1 -0
- package/dist/daemon.d.ts +101 -7
- package/dist/daemon.js +1058 -282
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +15 -3
- package/dist/delivery-consumed-watch.js +23 -1
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +9 -0
- package/dist/delivery-outbox.js +43 -4
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +2 -42
- package/dist/delivery-reconciliation.js +2 -164
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/dispatcher-liveness.d.ts +172 -0
- package/dist/dispatcher-liveness.js +238 -0
- package/dist/dispatcher-liveness.js.map +1 -0
- package/dist/doctor.js +19 -9
- package/dist/doctor.js.map +1 -1
- package/dist/e2e-isolation.js +5 -2
- package/dist/e2e-isolation.js.map +1 -1
- package/dist/fleet-context.d.ts +7 -3
- package/dist/fleet-control-audit.d.ts +1 -1
- package/dist/fleet-level-config.d.ts +1 -1
- package/dist/fleet-level-config.js +2 -0
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +1079 -29
- package/dist/fleet-manager.js +5564 -420
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +98 -0
- package/dist/fleet-windows-runtime.js +467 -0
- package/dist/fleet-windows-runtime.js.map +1 -0
- package/dist/general-binding.d.ts +85 -0
- package/dist/general-binding.js +298 -0
- package/dist/general-binding.js.map +1 -0
- package/dist/general-host-owner.d.ts +8 -0
- package/dist/general-host-owner.js +26 -0
- package/dist/general-host-owner.js.map +1 -0
- package/dist/general-instance.d.ts +7 -0
- package/dist/general-instance.js +20 -3
- package/dist/general-instance.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +75 -23
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +23 -9
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +1 -1
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +2 -2
- package/dist/general-knowledge/skills/fleet-restart/SKILL.md +1 -1
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +1 -1
- package/dist/general-knowledge/skills/session-management/SKILL.md +1 -1
- package/dist/general-knowledge/skills/tui-effort/SKILL.md +10 -10
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +48 -26
- package/dist/general-knowledge/steering/core-rules.md +2 -2
- package/dist/general-role.d.ts +5 -0
- package/dist/general-role.js +27 -0
- package/dist/general-role.js.map +1 -0
- package/dist/hub/admission.d.ts +28 -0
- package/dist/hub/admission.js +62 -0
- package/dist/hub/admission.js.map +1 -0
- package/dist/hub/attachments/limits.d.ts +20 -0
- package/dist/hub/attachments/limits.js +48 -0
- package/dist/hub/attachments/limits.js.map +1 -0
- package/dist/hub/attachments/store.d.ts +116 -0
- package/dist/hub/attachments/store.js +246 -0
- package/dist/hub/attachments/store.js.map +1 -0
- package/dist/hub/audit/index.d.ts +62 -0
- package/dist/hub/audit/index.js +344 -0
- package/dist/hub/audit/index.js.map +1 -0
- package/dist/hub/browser-certificate.d.ts +38 -0
- package/dist/hub/browser-certificate.js +247 -0
- package/dist/hub/browser-certificate.js.map +1 -0
- package/dist/hub/buttons-model.d.ts +9 -0
- package/dist/hub/buttons-model.js +42 -0
- package/dist/hub/buttons-model.js.map +1 -0
- package/dist/hub/buttons.d.ts +54 -0
- package/dist/hub/buttons.js +348 -0
- package/dist/hub/buttons.js.map +1 -0
- package/dist/hub/catalog.d.ts +74 -0
- package/dist/hub/catalog.js +380 -0
- package/dist/hub/catalog.js.map +1 -0
- package/dist/hub/client.d.ts +71 -0
- package/dist/hub/client.js +333 -0
- package/dist/hub/client.js.map +1 -0
- package/dist/hub/compose/member.d.ts +145 -0
- package/dist/hub/compose/member.js +467 -0
- package/dist/hub/compose/member.js.map +1 -0
- package/dist/hub/compose/server.d.ts +170 -0
- package/dist/hub/compose/server.js +494 -0
- package/dist/hub/compose/server.js.map +1 -0
- package/dist/hub/compose/storage.d.ts +5 -0
- package/dist/hub/compose/storage.js +28 -0
- package/dist/hub/compose/storage.js.map +1 -0
- package/dist/hub/compose/views.d.ts +12 -0
- package/dist/hub/compose/views.js +4 -0
- package/dist/hub/compose/views.js.map +1 -0
- package/dist/hub/db.d.ts +58 -0
- package/dist/hub/db.js +215 -0
- package/dist/hub/db.js.map +1 -0
- package/dist/hub/directory/config.d.ts +39 -0
- package/dist/hub/directory/config.js +108 -0
- package/dist/hub/directory/config.js.map +1 -0
- package/dist/hub/directory/directory.d.ts +25 -0
- package/dist/hub/directory/directory.js +588 -0
- package/dist/hub/directory/directory.js.map +1 -0
- package/dist/hub/directory/groups.d.ts +55 -0
- package/dist/hub/directory/groups.js +30 -0
- package/dist/hub/directory/groups.js.map +1 -0
- package/dist/hub/directory/index.d.ts +8 -0
- package/dist/hub/directory/index.js +4 -0
- package/dist/hub/directory/index.js.map +1 -0
- package/dist/hub/directory/profiles.d.ts +41 -0
- package/dist/hub/directory/profiles.js +90 -0
- package/dist/hub/directory/profiles.js.map +1 -0
- package/dist/hub/directory/types.d.ts +84 -0
- package/dist/hub/directory/types.js +14 -0
- package/dist/hub/directory/types.js.map +1 -0
- package/dist/hub/directory-response-owner.d.ts +38 -0
- package/dist/hub/directory-response-owner.js +191 -0
- package/dist/hub/directory-response-owner.js.map +1 -0
- package/dist/hub/enrollment-budget.d.ts +6 -0
- package/dist/hub/enrollment-budget.js +24 -0
- package/dist/hub/enrollment-budget.js.map +1 -0
- package/dist/hub/execution/cli-provider.d.ts +23 -0
- package/dist/hub/execution/cli-provider.js +341 -0
- package/dist/hub/execution/cli-provider.js.map +1 -0
- package/dist/hub/execution/index.d.ts +13 -0
- package/dist/hub/execution/index.js +8 -0
- package/dist/hub/execution/index.js.map +1 -0
- package/dist/hub/execution/model-broker.d.ts +24 -0
- package/dist/hub/execution/model-broker.js +208 -0
- package/dist/hub/execution/model-broker.js.map +1 -0
- package/dist/hub/execution/provider-setup.d.ts +11 -0
- package/dist/hub/execution/provider-setup.js +21 -0
- package/dist/hub/execution/provider-setup.js.map +1 -0
- package/dist/hub/execution/sandbox-runner.d.ts +1 -0
- package/dist/hub/execution/sandbox-runner.js +221 -0
- package/dist/hub/execution/sandbox-runner.js.map +1 -0
- package/dist/hub/execution/service.d.ts +136 -0
- package/dist/hub/execution/service.js +459 -0
- package/dist/hub/execution/service.js.map +1 -0
- package/dist/hub/execution/store.d.ts +61 -0
- package/dist/hub/execution/store.js +182 -0
- package/dist/hub/execution/store.js.map +1 -0
- package/dist/hub/execution/views.d.ts +20 -0
- package/dist/hub/execution/views.js +48 -0
- package/dist/hub/execution/views.js.map +1 -0
- package/dist/hub/fleet-revocation.d.ts +3 -0
- package/dist/hub/fleet-revocation.js +7 -0
- package/dist/hub/fleet-revocation.js.map +1 -0
- package/dist/hub/group-policy/admin-api.d.ts +30 -0
- package/dist/hub/group-policy/admin-api.js +92 -0
- package/dist/hub/group-policy/admin-api.js.map +1 -0
- package/dist/hub/group-policy/admin-context.d.ts +23 -0
- package/dist/hub/group-policy/admin-context.js +52 -0
- package/dist/hub/group-policy/admin-context.js.map +1 -0
- package/dist/hub/group-policy/admin-control.d.ts +35 -0
- package/dist/hub/group-policy/admin-control.js +260 -0
- package/dist/hub/group-policy/admin-control.js.map +1 -0
- package/dist/hub/group-policy/admin-dto.d.ts +259 -0
- package/dist/hub/group-policy/admin-dto.js +57 -0
- package/dist/hub/group-policy/admin-dto.js.map +1 -0
- package/dist/hub/group-policy/admin-facts.d.ts +17 -0
- package/dist/hub/group-policy/admin-facts.js +33 -0
- package/dist/hub/group-policy/admin-facts.js.map +1 -0
- package/dist/hub/group-policy/admin-impact.d.ts +51 -0
- package/dist/hub/group-policy/admin-impact.js +88 -0
- package/dist/hub/group-policy/admin-impact.js.map +1 -0
- package/dist/hub/group-policy/admin-inventory.d.ts +24 -0
- package/dist/hub/group-policy/admin-inventory.js +72 -0
- package/dist/hub/group-policy/admin-inventory.js.map +1 -0
- package/dist/hub/group-policy/admin-read.d.ts +21 -0
- package/dist/hub/group-policy/admin-read.js +95 -0
- package/dist/hub/group-policy/admin-read.js.map +1 -0
- package/dist/hub/group-policy/admin-search.d.ts +14 -0
- package/dist/hub/group-policy/admin-search.js +72 -0
- package/dist/hub/group-policy/admin-search.js.map +1 -0
- package/dist/hub/group-policy/authorization.d.ts +65 -0
- package/dist/hub/group-policy/authorization.js +315 -0
- package/dist/hub/group-policy/authorization.js.map +1 -0
- package/dist/hub/group-policy/impact-inventory.d.ts +21 -0
- package/dist/hub/group-policy/impact-inventory.js +75 -0
- package/dist/hub/group-policy/impact-inventory.js.map +1 -0
- package/dist/hub/group-policy/model.d.ts +56 -0
- package/dist/hub/group-policy/model.js +46 -0
- package/dist/hub/group-policy/model.js.map +1 -0
- package/dist/hub/group-policy/resources.d.ts +72 -0
- package/dist/hub/group-policy/resources.js +260 -0
- package/dist/hub/group-policy/resources.js.map +1 -0
- package/dist/hub/group-policy/store.d.ts +69 -0
- package/dist/hub/group-policy/store.js +210 -0
- package/dist/hub/group-policy/store.js.map +1 -0
- package/dist/hub/group-policy/welcome.d.ts +36 -0
- package/dist/hub/group-policy/welcome.js +55 -0
- package/dist/hub/group-policy/welcome.js.map +1 -0
- package/dist/hub/http/compose.d.ts +24 -0
- package/dist/hub/http/compose.js +742 -0
- package/dist/hub/http/compose.js.map +1 -0
- package/dist/hub/http/core.d.ts +71 -0
- package/dist/hub/http/core.js +266 -0
- package/dist/hub/http/core.js.map +1 -0
- package/dist/hub/http/deps.d.ts +79 -0
- package/dist/hub/http/deps.js +2 -0
- package/dist/hub/http/deps.js.map +1 -0
- package/dist/hub/http/schema.d.ts +14 -0
- package/dist/hub/http/schema.js +84 -0
- package/dist/hub/http/schema.js.map +1 -0
- package/dist/hub/identity.d.ts +32 -0
- package/dist/hub/identity.js +80 -0
- package/dist/hub/identity.js.map +1 -0
- package/dist/hub/init/browser-certificate.d.ts +14 -0
- package/dist/hub/init/browser-certificate.js +99 -0
- package/dist/hub/init/browser-certificate.js.map +1 -0
- package/dist/hub/init/browser-tls.d.ts +18 -0
- package/dist/hub/init/browser-tls.js +62 -0
- package/dist/hub/init/browser-tls.js.map +1 -0
- package/dist/hub/init/cli.d.ts +3 -0
- package/dist/hub/init/cli.js +83 -0
- package/dist/hub/init/cli.js.map +1 -0
- package/dist/hub/init/directory-certificate.d.ts +24 -0
- package/dist/hub/init/directory-certificate.js +229 -0
- package/dist/hub/init/directory-certificate.js.map +1 -0
- package/dist/hub/init/existing-fleet.d.ts +6 -0
- package/dist/hub/init/existing-fleet.js +58 -0
- package/dist/hub/init/existing-fleet.js.map +1 -0
- package/dist/hub/init/handoff.d.ts +8 -0
- package/dist/hub/init/handoff.js +36 -0
- package/dist/hub/init/handoff.js.map +1 -0
- package/dist/hub/init/identity.d.ts +5 -0
- package/dist/hub/init/identity.js +24 -0
- package/dist/hub/init/identity.js.map +1 -0
- package/dist/hub/init/initializer.d.ts +34 -0
- package/dist/hub/init/initializer.js +504 -0
- package/dist/hub/init/initializer.js.map +1 -0
- package/dist/hub/init/inventory.d.ts +17 -0
- package/dist/hub/init/inventory.js +33 -0
- package/dist/hub/init/inventory.js.map +1 -0
- package/dist/hub/init/layout.d.ts +32 -0
- package/dist/hub/init/layout.js +53 -0
- package/dist/hub/init/layout.js.map +1 -0
- package/dist/hub/init/network.d.ts +20 -0
- package/dist/hub/init/network.js +108 -0
- package/dist/hub/init/network.js.map +1 -0
- package/dist/hub/init/plan-digest.d.ts +5 -0
- package/dist/hub/init/plan-digest.js +49 -0
- package/dist/hub/init/plan-digest.js.map +1 -0
- package/dist/hub/init/prompt.d.ts +26 -0
- package/dist/hub/init/prompt.js +111 -0
- package/dist/hub/init/prompt.js.map +1 -0
- package/dist/hub/init/secret-file.d.ts +1 -0
- package/dist/hub/init/secret-file.js +59 -0
- package/dist/hub/init/secret-file.js.map +1 -0
- package/dist/hub/init/text.d.ts +129 -0
- package/dist/hub/init/text.js +251 -0
- package/dist/hub/init/text.js.map +1 -0
- package/dist/hub/init/types.d.ts +142 -0
- package/dist/hub/init/types.js +9 -0
- package/dist/hub/init/types.js.map +1 -0
- package/dist/hub/init/web-audit-import.d.ts +12 -0
- package/dist/hub/init/web-audit-import.js +39 -0
- package/dist/hub/init/web-audit-import.js.map +1 -0
- package/dist/hub/init/web-audit.d.ts +30 -0
- package/dist/hub/init/web-audit.js +42 -0
- package/dist/hub/init/web-audit.js.map +1 -0
- package/dist/hub/init/web-error.d.ts +6 -0
- package/dist/hub/init/web-error.js +8 -0
- package/dist/hub/init/web-error.js.map +1 -0
- package/dist/hub/init/web-http.d.ts +9 -0
- package/dist/hub/init/web-http.js +103 -0
- package/dist/hub/init/web-http.js.map +1 -0
- package/dist/hub/init/web.d.ts +118 -0
- package/dist/hub/init/web.js +428 -0
- package/dist/hub/init/web.js.map +1 -0
- package/dist/hub/init/wizard.d.ts +34 -0
- package/dist/hub/init/wizard.js +580 -0
- package/dist/hub/init/wizard.js.map +1 -0
- package/dist/hub/initialization.d.ts +23 -0
- package/dist/hub/initialization.js +28 -0
- package/dist/hub/initialization.js.map +1 -0
- package/dist/hub/join/client.d.ts +52 -0
- package/dist/hub/join/client.js +136 -0
- package/dist/hub/join/client.js.map +1 -0
- package/dist/hub/join/descriptor.d.ts +52 -0
- package/dist/hub/join/descriptor.js +59 -0
- package/dist/hub/join/descriptor.js.map +1 -0
- package/dist/hub/join/display.d.ts +18 -0
- package/dist/hub/join/display.js +53 -0
- package/dist/hub/join/display.js.map +1 -0
- package/dist/hub/join/fleet-authority.d.ts +2 -0
- package/dist/hub/join/fleet-authority.js +3 -0
- package/dist/hub/join/fleet-authority.js.map +1 -0
- package/dist/hub/join/http.d.ts +8 -0
- package/dist/hub/join/http.js +122 -0
- package/dist/hub/join/http.js.map +1 -0
- package/dist/hub/join/invitation.d.ts +28 -0
- package/dist/hub/join/invitation.js +28 -0
- package/dist/hub/join/invitation.js.map +1 -0
- package/dist/hub/join/local-journal.d.ts +84 -0
- package/dist/hub/join/local-journal.js +65 -0
- package/dist/hub/join/local-journal.js.map +1 -0
- package/dist/hub/join/local.d.ts +228 -0
- package/dist/hub/join/local.js +613 -0
- package/dist/hub/join/local.js.map +1 -0
- package/dist/hub/join/private.d.ts +3 -0
- package/dist/hub/join/private.js +46 -0
- package/dist/hub/join/private.js.map +1 -0
- package/dist/hub/join/protocol.d.ts +69 -0
- package/dist/hub/join/protocol.js +96 -0
- package/dist/hub/join/protocol.js.map +1 -0
- package/dist/hub/join/receipt.d.ts +42 -0
- package/dist/hub/join/receipt.js +75 -0
- package/dist/hub/join/receipt.js.map +1 -0
- package/dist/hub/join/service.d.ts +194 -0
- package/dist/hub/join/service.js +631 -0
- package/dist/hub/join/service.js.map +1 -0
- package/dist/hub/join/store.d.ts +134 -0
- package/dist/hub/join/store.js +136 -0
- package/dist/hub/join/store.js.map +1 -0
- package/dist/hub/join/trust.d.ts +19 -0
- package/dist/hub/join/trust.js +94 -0
- package/dist/hub/join/trust.js.map +1 -0
- package/dist/hub/member/agent-mode.d.ts +6 -0
- package/dist/hub/member/agent-mode.js +23 -0
- package/dist/hub/member/agent-mode.js.map +1 -0
- package/dist/hub/member/attachments.d.ts +29 -0
- package/dist/hub/member/attachments.js +107 -0
- package/dist/hub/member/attachments.js.map +1 -0
- package/dist/hub/member/exposure-api.d.ts +89 -0
- package/dist/hub/member/exposure-api.js +66 -0
- package/dist/hub/member/exposure-api.js.map +1 -0
- package/dist/hub/member/exposures.d.ts +123 -0
- package/dist/hub/member/exposures.js +282 -0
- package/dist/hub/member/exposures.js.map +1 -0
- package/dist/hub/member/pairing-api.d.ts +101 -0
- package/dist/hub/member/pairing-api.js +429 -0
- package/dist/hub/member/pairing-api.js.map +1 -0
- package/dist/hub/member/pairing-notices.d.ts +18 -0
- package/dist/hub/member/pairing-notices.js +60 -0
- package/dist/hub/member/pairing-notices.js.map +1 -0
- package/dist/hub/member/quota.d.ts +20 -0
- package/dist/hub/member/quota.js +98 -0
- package/dist/hub/member/quota.js.map +1 -0
- package/dist/hub/member-journal.d.ts +104 -0
- package/dist/hub/member-journal.js +336 -0
- package/dist/hub/member-journal.js.map +1 -0
- package/dist/hub/member-reconciliation.d.ts +14 -0
- package/dist/hub/member-reconciliation.js +97 -0
- package/dist/hub/member-reconciliation.js.map +1 -0
- package/dist/hub/mount.d.ts +50 -0
- package/dist/hub/mount.js +157 -0
- package/dist/hub/mount.js.map +1 -0
- package/dist/hub/pairing-client.d.ts +17 -0
- package/dist/hub/pairing-client.js +108 -0
- package/dist/hub/pairing-client.js.map +1 -0
- package/dist/hub/pairing-notices.d.ts +47 -0
- package/dist/hub/pairing-notices.js +246 -0
- package/dist/hub/pairing-notices.js.map +1 -0
- package/dist/hub/pairing.d.ts +111 -0
- package/dist/hub/pairing.js +526 -0
- package/dist/hub/pairing.js.map +1 -0
- package/dist/hub/policy.d.ts +65 -0
- package/dist/hub/policy.js +154 -0
- package/dist/hub/policy.js.map +1 -0
- package/dist/hub/preview.d.ts +32 -0
- package/dist/hub/preview.js +64 -0
- package/dist/hub/preview.js.map +1 -0
- package/dist/hub/private-files.d.ts +5 -0
- package/dist/hub/private-files.js +44 -0
- package/dist/hub/private-files.js.map +1 -0
- package/dist/hub/profile.d.ts +59 -0
- package/dist/hub/profile.js +73 -0
- package/dist/hub/profile.js.map +1 -0
- package/dist/hub/protocol.d.ts +848 -0
- package/dist/hub/protocol.js +103 -0
- package/dist/hub/protocol.js.map +1 -0
- package/dist/hub/quota.d.ts +24 -0
- package/dist/hub/quota.js +112 -0
- package/dist/hub/quota.js.map +1 -0
- package/dist/hub/representative.d.ts +141 -0
- package/dist/hub/representative.js +528 -0
- package/dist/hub/representative.js.map +1 -0
- package/dist/hub/retention.d.ts +17 -0
- package/dist/hub/retention.js +45 -0
- package/dist/hub/retention.js.map +1 -0
- package/dist/hub/room-read-pacer.d.ts +14 -0
- package/dist/hub/room-read-pacer.js +51 -0
- package/dist/hub/room-read-pacer.js.map +1 -0
- package/dist/hub/rooms.d.ts +127 -0
- package/dist/hub/rooms.js +597 -0
- package/dist/hub/rooms.js.map +1 -0
- package/dist/hub/runtime.d.ts +163 -0
- package/dist/hub/runtime.js +708 -0
- package/dist/hub/runtime.js.map +1 -0
- package/dist/hub/server.d.ts +61 -0
- package/dist/hub/server.js +249 -0
- package/dist/hub/server.js.map +1 -0
- package/dist/hub/service-start.d.ts +17 -0
- package/dist/hub/service-start.js +109 -0
- package/dist/hub/service-start.js.map +1 -0
- package/dist/hub/session-directory-transition.d.ts +48 -0
- package/dist/hub/session-directory-transition.js +118 -0
- package/dist/hub/session-directory-transition.js.map +1 -0
- package/dist/hub/session-epoch.d.ts +16 -0
- package/dist/hub/session-epoch.js +50 -0
- package/dist/hub/session-epoch.js.map +1 -0
- package/dist/hub/sessions.d.ts +66 -0
- package/dist/hub/sessions.js +217 -0
- package/dist/hub/sessions.js.map +1 -0
- package/dist/hub/settings-api.d.ts +50 -0
- package/dist/hub/settings-api.js +92 -0
- package/dist/hub/settings-api.js.map +1 -0
- package/dist/hub/settings-commit.d.ts +108 -0
- package/dist/hub/settings-commit.js +537 -0
- package/dist/hub/settings-commit.js.map +1 -0
- package/dist/hub/settings-directory-ca.d.ts +31 -0
- package/dist/hub/settings-directory-ca.js +115 -0
- package/dist/hub/settings-directory-ca.js.map +1 -0
- package/dist/hub/settings-directory-control.d.ts +58 -0
- package/dist/hub/settings-directory-control.js +117 -0
- package/dist/hub/settings-directory-control.js.map +1 -0
- package/dist/hub/settings-directory-decision.d.ts +465 -0
- package/dist/hub/settings-directory-decision.js +322 -0
- package/dist/hub/settings-directory-decision.js.map +1 -0
- package/dist/hub/settings-directory-host-http.d.ts +9 -0
- package/dist/hub/settings-directory-host-http.js +75 -0
- package/dist/hub/settings-directory-host-http.js.map +1 -0
- package/dist/hub/settings-directory-host-notice-http.d.ts +9 -0
- package/dist/hub/settings-directory-host-notice-http.js +78 -0
- package/dist/hub/settings-directory-host-notice-http.js.map +1 -0
- package/dist/hub/settings-directory-host-notices.d.ts +11 -0
- package/dist/hub/settings-directory-host-notices.js +39 -0
- package/dist/hub/settings-directory-host-notices.js.map +1 -0
- package/dist/hub/settings-directory-http.d.ts +33 -0
- package/dist/hub/settings-directory-http.js +109 -0
- package/dist/hub/settings-directory-http.js.map +1 -0
- package/dist/hub/settings-directory-mount.d.ts +24 -0
- package/dist/hub/settings-directory-mount.js +77 -0
- package/dist/hub/settings-directory-mount.js.map +1 -0
- package/dist/hub/settings-directory-notices.d.ts +61 -0
- package/dist/hub/settings-directory-notices.js +132 -0
- package/dist/hub/settings-directory-notices.js.map +1 -0
- package/dist/hub/settings-directory-proof.d.ts +77 -0
- package/dist/hub/settings-directory-proof.js +313 -0
- package/dist/hub/settings-directory-proof.js.map +1 -0
- package/dist/hub/settings-directory-recovery-intent.d.ts +13 -0
- package/dist/hub/settings-directory-recovery-intent.js +29 -0
- package/dist/hub/settings-directory-recovery-intent.js.map +1 -0
- package/dist/hub/settings-directory-recovery.d.ts +45 -0
- package/dist/hub/settings-directory-recovery.js +178 -0
- package/dist/hub/settings-directory-recovery.js.map +1 -0
- package/dist/hub/settings-directory-runtime.d.ts +17 -0
- package/dist/hub/settings-directory-runtime.js +2 -0
- package/dist/hub/settings-directory-runtime.js.map +1 -0
- package/dist/hub/settings-directory-save.d.ts +37 -0
- package/dist/hub/settings-directory-save.js +175 -0
- package/dist/hub/settings-directory-save.js.map +1 -0
- package/dist/hub/settings-web-address-control.d.ts +49 -0
- package/dist/hub/settings-web-address-control.js +99 -0
- package/dist/hub/settings-web-address-control.js.map +1 -0
- package/dist/hub/settings-web-address-decision.d.ts +91 -0
- package/dist/hub/settings-web-address-decision.js +163 -0
- package/dist/hub/settings-web-address-decision.js.map +1 -0
- package/dist/hub/settings-web-address-http.d.ts +9 -0
- package/dist/hub/settings-web-address-http.js +74 -0
- package/dist/hub/settings-web-address-http.js.map +1 -0
- package/dist/hub/settings-web-address-network.d.ts +2 -0
- package/dist/hub/settings-web-address-network.js +25 -0
- package/dist/hub/settings-web-address-network.js.map +1 -0
- package/dist/hub/settings-web-address-policy.d.ts +27 -0
- package/dist/hub/settings-web-address-policy.js +47 -0
- package/dist/hub/settings-web-address-policy.js.map +1 -0
- package/dist/hub/settings-web-address.d.ts +64 -0
- package/dist/hub/settings-web-address.js +226 -0
- package/dist/hub/settings-web-address.js.map +1 -0
- package/dist/hub/socket.d.ts +24 -0
- package/dist/hub/socket.js +79 -0
- package/dist/hub/socket.js.map +1 -0
- package/dist/hub/store.d.ts +87 -0
- package/dist/hub/store.js +108 -0
- package/dist/hub/store.js.map +1 -0
- package/dist/hub/tls.d.ts +31 -0
- package/dist/hub/tls.js +135 -0
- package/dist/hub/tls.js.map +1 -0
- package/dist/hub/types.d.ts +421 -0
- package/dist/hub/types.js +2 -0
- package/dist/hub/types.js.map +1 -0
- package/dist/hub/validation.d.ts +33 -0
- package/dist/hub/validation.js +136 -0
- package/dist/hub/validation.js.map +1 -0
- package/dist/hub/version-floor.d.ts +10 -0
- package/dist/hub/version-floor.js +45 -0
- package/dist/hub/version-floor.js.map +1 -0
- package/dist/hub-browser-certificate-policy.d.ts +31 -0
- package/dist/hub-browser-certificate-policy.js +25 -0
- package/dist/hub-browser-certificate-policy.js.map +1 -0
- package/dist/hub-host-settings.d.ts +48 -0
- package/dist/hub-host-settings.js +85 -0
- package/dist/hub-host-settings.js.map +1 -0
- package/dist/hub-membership-settings.d.ts +6 -0
- package/dist/hub-membership-settings.js +21 -0
- package/dist/hub-membership-settings.js.map +1 -0
- package/dist/hub-mode.d.ts +15 -0
- package/dist/hub-mode.js +17 -0
- package/dist/hub-mode.js.map +1 -0
- package/dist/hub-pairing-summary.d.ts +50 -0
- package/dist/hub-pairing-summary.js +39 -0
- package/dist/hub-pairing-summary.js.map +1 -0
- package/dist/hub-report-target.d.ts +32 -0
- package/dist/hub-report-target.js +33 -0
- package/dist/hub-report-target.js.map +1 -0
- package/dist/hub-retention-policy.d.ts +14 -0
- package/dist/hub-retention-policy.js +15 -0
- package/dist/hub-retention-policy.js.map +1 -0
- package/dist/install-user-systemd.d.ts +20 -0
- package/dist/install-user-systemd.js +55 -0
- package/dist/install-user-systemd.js.map +1 -0
- package/dist/instance-config-impact.js +9 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +42 -4
- package/dist/instance-lifecycle.js +460 -202
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +2 -0
- package/dist/instructions.js +6 -0
- package/dist/instructions.js.map +1 -1
- package/dist/launchd-service-domain.d.ts +5 -0
- package/dist/launchd-service-domain.js +21 -0
- package/dist/launchd-service-domain.js.map +1 -0
- package/dist/linux-launchers.d.ts +88 -0
- package/dist/linux-launchers.js +296 -0
- package/dist/linux-launchers.js.map +1 -0
- package/dist/local-pane-endpoint.d.ts +46 -0
- package/dist/local-pane-endpoint.js +189 -0
- package/dist/local-pane-endpoint.js.map +1 -0
- package/dist/local-pane-launcher.d.ts +2 -0
- package/dist/local-pane-launcher.js +38 -0
- package/dist/local-pane-launcher.js.map +1 -0
- package/dist/local-pane-stage.ps1 +101 -0
- package/dist/locale.js +402 -14
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +14 -1
- package/dist/login-controller.js +31 -1
- package/dist/login-controller.js.map +1 -1
- package/dist/login-flows.d.ts +12 -8
- package/dist/login-flows.js +34 -16
- package/dist/login-flows.js.map +1 -1
- package/dist/login-manager.d.ts +2 -2
- package/dist/login-manager.js +3 -2
- package/dist/login-manager.js.map +1 -1
- package/dist/login-window-lock.d.ts +2 -1
- package/dist/login-window-lock.js.map +1 -1
- package/dist/ls-rows.d.ts +1 -1
- package/dist/ls-rows.js +3 -4
- package/dist/ls-rows.js.map +1 -1
- package/dist/machine-accounts.d.ts +110 -0
- package/dist/machine-accounts.js +229 -0
- package/dist/machine-accounts.js.map +1 -0
- package/dist/machine-signins.d.ts +89 -0
- package/dist/machine-signins.js +182 -0
- package/dist/machine-signins.js.map +1 -0
- package/dist/model-catalog-defaults.d.ts +14 -0
- package/dist/model-catalog-defaults.js +20 -0
- package/dist/model-catalog-defaults.js.map +1 -0
- package/dist/native-agent-admission.d.ts +7 -0
- package/dist/native-agent-admission.js +26 -0
- package/dist/native-agent-admission.js.map +1 -0
- package/dist/native-daemon-client.d.ts +13 -0
- package/dist/native-daemon-client.js +28 -0
- package/dist/native-daemon-client.js.map +1 -0
- package/dist/native-instance-api.d.ts +13 -0
- package/dist/native-instance-api.js +217 -0
- package/dist/native-instance-api.js.map +1 -0
- package/dist/native-instance-input.d.ts +87 -0
- package/dist/native-instance-input.js +59 -0
- package/dist/native-instance-input.js.map +1 -0
- package/dist/native-instance-registry.d.ts +38 -0
- package/dist/native-instance-registry.js +129 -0
- package/dist/native-instance-registry.js.map +1 -0
- package/dist/native-mcp.d.ts +43 -0
- package/dist/native-mcp.js +291 -0
- package/dist/native-mcp.js.map +1 -0
- package/dist/native-model-catalog.d.ts +25 -0
- package/dist/native-model-catalog.js +181 -0
- package/dist/native-model-catalog.js.map +1 -0
- package/dist/native-pane-crash-budget.d.ts +20 -0
- package/dist/native-pane-crash-budget.js +60 -0
- package/dist/native-pane-crash-budget.js.map +1 -0
- package/dist/native-pane-create.d.ts +26 -0
- package/dist/native-pane-create.js +53 -0
- package/dist/native-pane-create.js.map +1 -0
- package/dist/native-pane-lifecycle.d.ts +73 -0
- package/dist/native-pane-lifecycle.js +239 -0
- package/dist/native-pane-lifecycle.js.map +1 -0
- package/dist/native-pane-manager.d.ts +59 -0
- package/dist/native-pane-manager.js +592 -0
- package/dist/native-pane-manager.js.map +1 -0
- package/dist/native-pane-output-log.d.ts +15 -0
- package/dist/native-pane-output-log.js +108 -0
- package/dist/native-pane-output-log.js.map +1 -0
- package/dist/native-pane-reconciliation.d.ts +4 -0
- package/dist/native-pane-reconciliation.js +40 -0
- package/dist/native-pane-reconciliation.js.map +1 -0
- package/dist/native-pane-recovery.d.ts +12 -0
- package/dist/native-pane-recovery.js +10 -0
- package/dist/native-pane-recovery.js.map +1 -0
- package/dist/native-pane-tools.d.ts +2 -0
- package/dist/native-pane-tools.js +14 -0
- package/dist/native-pane-tools.js.map +1 -0
- package/dist/needs-you-hub.d.ts +8 -0
- package/dist/needs-you-hub.js +31 -5
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +80 -3
- package/dist/needs-you.js +46 -3
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +3 -3
- package/dist/office-share-page.js.map +1 -1
- package/dist/office-share.d.ts +28 -2
- package/dist/office-share.js +32 -3
- package/dist/office-share.js.map +1 -1
- package/dist/office-talk.d.ts +26 -0
- package/dist/office-talk.js +50 -0
- package/dist/office-talk.js.map +1 -0
- package/dist/outbound-handlers.d.ts +30 -2
- package/dist/outbound-handlers.js +120 -4
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +79 -1
- package/dist/outbound-schemas.js +37 -14
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +118 -0
- package/dist/pane-port.js +2 -0
- package/dist/pane-port.js.map +1 -0
- package/dist/pane-quota-history.d.ts +2 -0
- package/dist/pane-quota-history.js +20 -0
- package/dist/pane-quota-history.js.map +1 -1
- package/dist/pause-marker.d.ts +1 -1
- package/dist/pause-marker.js +1 -1
- package/dist/pause-marker.js.map +1 -1
- package/dist/profile-signins.d.ts +107 -0
- package/dist/profile-signins.js +249 -0
- package/dist/profile-signins.js.map +1 -0
- package/dist/public-web-gateway.js +17 -1
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +16 -0
- package/dist/public-web-link.js +21 -0
- package/dist/public-web-link.js.map +1 -1
- package/dist/quickstart-api.js +9 -5
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +6 -0
- package/dist/quickstart.js +31 -4
- package/dist/quickstart.js.map +1 -1
- package/dist/quiet-run.d.ts +31 -0
- package/dist/quiet-run.js +50 -0
- package/dist/quiet-run.js.map +1 -0
- package/dist/runtime-api.d.ts +23 -0
- package/dist/runtime-api.js +413 -0
- package/dist/runtime-api.js.map +1 -0
- package/dist/runtime-assets/@xterm/addon-serialize/LICENSE +21 -0
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.js +2 -0
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.mjs +19 -0
- package/dist/runtime-assets/@xterm/addon-serialize/package.json +29 -0
- package/dist/runtime-assets/@xterm/headless/LICENSE +21 -0
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.js +2 -0
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.mjs +46 -0
- package/dist/runtime-assets/@xterm/headless/package.json +29 -0
- package/dist/runtime-assets/node-pty/CONPTY-LICENSE +21 -0
- package/dist/runtime-assets/node-pty/CONPTY-NOTICE.md +503 -0
- package/dist/runtime-assets/node-pty/LICENSE +69 -0
- package/dist/runtime-assets/node-pty/lib/conpty_console_list_agent.js +16 -0
- package/dist/runtime-assets/node-pty/lib/eventEmitter2.js +47 -0
- package/dist/runtime-assets/node-pty/lib/index.js +52 -0
- package/dist/runtime-assets/node-pty/lib/interfaces.js +7 -0
- package/dist/runtime-assets/node-pty/lib/shared/conout.js +11 -0
- package/dist/runtime-assets/node-pty/lib/terminal.js +190 -0
- package/dist/runtime-assets/node-pty/lib/types.js +7 -0
- package/dist/runtime-assets/node-pty/lib/unixTerminal.js +346 -0
- package/dist/runtime-assets/node-pty/lib/utils.js +39 -0
- package/dist/runtime-assets/node-pty/lib/windowsConoutConnection.js +125 -0
- package/dist/runtime-assets/node-pty/lib/windowsPtyAgent.js +320 -0
- package/dist/runtime-assets/node-pty/lib/windowsTerminal.js +199 -0
- package/dist/runtime-assets/node-pty/lib/worker/conoutSocketWorker.js +22 -0
- package/dist/runtime-assets/node-pty/package.json +64 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/dist/runtime-autostart.d.ts +61 -0
- package/dist/runtime-autostart.js +161 -0
- package/dist/runtime-autostart.js.map +1 -0
- package/dist/runtime-background.d.ts +200 -0
- package/dist/runtime-background.js +480 -0
- package/dist/runtime-background.js.map +1 -0
- package/dist/runtime-build-info.d.ts +10 -0
- package/dist/runtime-build-info.js +64 -0
- package/dist/runtime-build-info.js.map +1 -0
- package/dist/runtime-bundle.d.ts +22 -0
- package/dist/runtime-bundle.js +158 -0
- package/dist/runtime-bundle.js.map +1 -0
- package/dist/runtime-cli-background.d.ts +92 -0
- package/dist/runtime-cli-background.js +336 -0
- package/dist/runtime-cli-background.js.map +1 -0
- package/dist/runtime-cli-install.d.ts +295 -0
- package/dist/runtime-cli-install.js +869 -0
- package/dist/runtime-cli-install.js.map +1 -0
- package/dist/runtime-cli.d.ts +21 -0
- package/dist/runtime-cli.js +578 -0
- package/dist/runtime-cli.js.map +1 -0
- package/dist/runtime-client-store.d.ts +86 -0
- package/dist/runtime-client-store.js +392 -0
- package/dist/runtime-client-store.js.map +1 -0
- package/dist/runtime-client.d.ts +258 -0
- package/dist/runtime-client.js +1353 -0
- package/dist/runtime-client.js.map +1 -0
- package/dist/runtime-connection.d.ts +22 -0
- package/dist/runtime-connection.js +93 -0
- package/dist/runtime-connection.js.map +1 -0
- package/dist/runtime-coordinator.d.ts +201 -0
- package/dist/runtime-coordinator.js +1514 -0
- package/dist/runtime-coordinator.js.map +1 -0
- package/dist/runtime-credential-profiles.d.ts +89 -0
- package/dist/runtime-credential-profiles.js +304 -0
- package/dist/runtime-credential-profiles.js.map +1 -0
- package/dist/runtime-enroll-notice.d.ts +4 -0
- package/dist/runtime-enroll-notice.js +21 -0
- package/dist/runtime-enroll-notice.js.map +1 -0
- package/dist/runtime-enrollment.d.ts +21 -0
- package/dist/runtime-enrollment.js +52 -0
- package/dist/runtime-enrollment.js.map +1 -0
- package/dist/runtime-general-protocol.d.ts +22 -0
- package/dist/runtime-general-protocol.js +57 -0
- package/dist/runtime-general-protocol.js.map +1 -0
- package/dist/runtime-general-workspace.d.ts +17 -0
- package/dist/runtime-general-workspace.js +213 -0
- package/dist/runtime-general-workspace.js.map +1 -0
- package/dist/runtime-install.d.ts +50 -0
- package/dist/runtime-install.js +189 -0
- package/dist/runtime-install.js.map +1 -0
- package/dist/runtime-pane-assets.d.ts +17 -0
- package/dist/runtime-pane-assets.js +23 -0
- package/dist/runtime-pane-assets.js.map +1 -0
- package/dist/runtime-pane-boot.d.ts +9 -0
- package/dist/runtime-pane-boot.js +47 -0
- package/dist/runtime-pane-boot.js.map +1 -0
- package/dist/runtime-pane-codex-index.d.ts +10 -0
- package/dist/runtime-pane-codex-index.js +151 -0
- package/dist/runtime-pane-codex-index.js.map +1 -0
- package/dist/runtime-pane-config.d.ts +16 -0
- package/dist/runtime-pane-config.js +54 -0
- package/dist/runtime-pane-config.js.map +1 -0
- package/dist/runtime-pane-host.d.ts +63 -0
- package/dist/runtime-pane-host.js +467 -0
- package/dist/runtime-pane-host.js.map +1 -0
- package/dist/runtime-pane-job-owner.d.ts +1 -0
- package/dist/runtime-pane-job-owner.js +29 -0
- package/dist/runtime-pane-job-owner.js.map +1 -0
- package/dist/runtime-pane-job.ps1 +116 -0
- package/dist/runtime-pane-link.d.ts +47 -0
- package/dist/runtime-pane-link.js +338 -0
- package/dist/runtime-pane-link.js.map +1 -0
- package/dist/runtime-pane-mcp-protocol.d.ts +32 -0
- package/dist/runtime-pane-mcp-protocol.js +39 -0
- package/dist/runtime-pane-mcp-protocol.js.map +1 -0
- package/dist/runtime-pane-mcp-relay.d.ts +18 -0
- package/dist/runtime-pane-mcp-relay.js +80 -0
- package/dist/runtime-pane-mcp-relay.js.map +1 -0
- package/dist/runtime-pane-mcp.d.ts +55 -0
- package/dist/runtime-pane-mcp.js +153 -0
- package/dist/runtime-pane-mcp.js.map +1 -0
- package/dist/runtime-pane-native.d.ts +75 -0
- package/dist/runtime-pane-native.js +114 -0
- package/dist/runtime-pane-native.js.map +1 -0
- package/dist/runtime-pane-output.d.ts +19 -0
- package/dist/runtime-pane-output.js +53 -0
- package/dist/runtime-pane-output.js.map +1 -0
- package/dist/runtime-pane-port.d.ts +144 -0
- package/dist/runtime-pane-port.js +574 -0
- package/dist/runtime-pane-port.js.map +1 -0
- package/dist/runtime-pane-private.d.ts +16 -0
- package/dist/runtime-pane-private.js +76 -0
- package/dist/runtime-pane-private.js.map +1 -0
- package/dist/runtime-pane-private.ps1 +81 -0
- package/dist/runtime-pane-process.d.ts +4 -0
- package/dist/runtime-pane-process.js +117 -0
- package/dist/runtime-pane-process.js.map +1 -0
- package/dist/runtime-pane-protocol.d.ts +182 -0
- package/dist/runtime-pane-protocol.js +217 -0
- package/dist/runtime-pane-protocol.js.map +1 -0
- package/dist/runtime-pane-quota-history.d.ts +6 -0
- package/dist/runtime-pane-quota-history.js +44 -0
- package/dist/runtime-pane-quota-history.js.map +1 -0
- package/dist/runtime-pane-screen.d.ts +19 -0
- package/dist/runtime-pane-screen.js +76 -0
- package/dist/runtime-pane-screen.js.map +1 -0
- package/dist/runtime-pane-service.d.ts +16 -0
- package/dist/runtime-pane-service.js +256 -0
- package/dist/runtime-pane-service.js.map +1 -0
- package/dist/runtime-pane-stdio-protocol.d.ts +54 -0
- package/dist/runtime-pane-stdio-protocol.js +94 -0
- package/dist/runtime-pane-stdio-protocol.js.map +1 -0
- package/dist/runtime-pane-stdio.d.ts +3 -0
- package/dist/runtime-pane-stdio.js +123 -0
- package/dist/runtime-pane-stdio.js.map +1 -0
- package/dist/runtime-pane-store.d.ts +43 -0
- package/dist/runtime-pane-store.js +176 -0
- package/dist/runtime-pane-store.js.map +1 -0
- package/dist/runtime-pane-transcript-protocol.d.ts +43 -0
- package/dist/runtime-pane-transcript-protocol.js +58 -0
- package/dist/runtime-pane-transcript-protocol.js.map +1 -0
- package/dist/runtime-pane-transcript.d.ts +50 -0
- package/dist/runtime-pane-transcript.js +666 -0
- package/dist/runtime-pane-transcript.js.map +1 -0
- package/dist/runtime-pane-worker.d.ts +1 -0
- package/dist/runtime-pane-worker.js +167 -0
- package/dist/runtime-pane-worker.js.map +1 -0
- package/dist/runtime-profile-ownership.d.ts +66 -0
- package/dist/runtime-profile-ownership.js +391 -0
- package/dist/runtime-profile-ownership.js.map +1 -0
- package/dist/runtime-protocol.d.ts +340 -0
- package/dist/runtime-protocol.js +179 -0
- package/dist/runtime-protocol.js.map +1 -0
- package/dist/runtime-remote-accounts.d.ts +209 -0
- package/dist/runtime-remote-accounts.js +714 -0
- package/dist/runtime-remote-accounts.js.map +1 -0
- package/dist/runtime-remote-setup.d.ts +108 -0
- package/dist/runtime-remote-setup.js +532 -0
- package/dist/runtime-remote-setup.js.map +1 -0
- package/dist/runtime-signin-transport.d.ts +39 -0
- package/dist/runtime-signin-transport.js +111 -0
- package/dist/runtime-signin-transport.js.map +1 -0
- package/dist/runtime-signin.d.ts +132 -0
- package/dist/runtime-signin.js +290 -0
- package/dist/runtime-signin.js.map +1 -0
- package/dist/runtime-switches.d.ts +79 -0
- package/dist/runtime-switches.js +90 -0
- package/dist/runtime-switches.js.map +1 -0
- package/dist/runtime-transcript-delta-reader.d.ts +23 -0
- package/dist/runtime-transcript-delta-reader.js +74 -0
- package/dist/runtime-transcript-delta-reader.js.map +1 -0
- package/dist/runtime-transcript-source.d.ts +36 -0
- package/dist/runtime-transcript-source.js +189 -0
- package/dist/runtime-transcript-source.js.map +1 -0
- package/dist/runtime-update-activity.d.ts +21 -0
- package/dist/runtime-update-activity.js +51 -0
- package/dist/runtime-update-activity.js.map +1 -0
- package/dist/runtime-update-artifact.d.ts +31 -0
- package/dist/runtime-update-artifact.js +252 -0
- package/dist/runtime-update-artifact.js.map +1 -0
- package/dist/runtime-update-attention.d.ts +4 -0
- package/dist/runtime-update-attention.js +11 -0
- package/dist/runtime-update-attention.js.map +1 -0
- package/dist/runtime-update-controller.d.ts +86 -0
- package/dist/runtime-update-controller.js +743 -0
- package/dist/runtime-update-controller.js.map +1 -0
- package/dist/runtime-update-install.d.ts +31 -0
- package/dist/runtime-update-install.js +205 -0
- package/dist/runtime-update-install.js.map +1 -0
- package/dist/runtime-update-ipc.d.ts +42 -0
- package/dist/runtime-update-ipc.js +144 -0
- package/dist/runtime-update-ipc.js.map +1 -0
- package/dist/runtime-update-journal.d.ts +49 -0
- package/dist/runtime-update-journal.js +128 -0
- package/dist/runtime-update-journal.js.map +1 -0
- package/dist/runtime-update-lock.d.ts +48 -0
- package/dist/runtime-update-lock.js +232 -0
- package/dist/runtime-update-lock.js.map +1 -0
- package/dist/runtime-update-owners.d.ts +29 -0
- package/dist/runtime-update-owners.js +240 -0
- package/dist/runtime-update-owners.js.map +1 -0
- package/dist/runtime-update-protocol.d.ts +15 -0
- package/dist/runtime-update-protocol.js +13 -0
- package/dist/runtime-update-protocol.js.map +1 -0
- package/dist/runtime-update-status.d.ts +30 -0
- package/dist/runtime-update-status.js +31 -0
- package/dist/runtime-update-status.js.map +1 -0
- package/dist/runtime-windows-bridge.d.ts +42 -0
- package/dist/runtime-windows-bridge.js +167 -0
- package/dist/runtime-windows-bridge.js.map +1 -0
- package/dist/scheduler/db.d.ts +3 -0
- package/dist/scheduler/db.js +4 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-text.js +1 -1
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +4 -0
- package/dist/scheduler/task-board.js +9 -3
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/scheduler/task-liveness.d.ts +34 -0
- package/dist/scheduler/task-liveness.js +49 -0
- package/dist/scheduler/task-liveness.js.map +1 -0
- package/dist/selection-card.d.ts +4 -3
- package/dist/selection-card.js +2 -1
- package/dist/selection-card.js.map +1 -1
- package/dist/service-drain.d.ts +19 -0
- package/dist/service-drain.js +64 -0
- package/dist/service-drain.js.map +1 -0
- package/dist/service-installer.d.ts +7 -2
- package/dist/service-installer.js +24 -12
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +37 -2
- package/dist/settings-api.js +866 -12
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +7 -0
- package/dist/settings-baseline.js +3 -1
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.d.ts +7 -3
- package/dist/settings-change.js +128 -30
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +67 -7
- package/dist/settings-confirmation.js +68 -15
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +26 -0
- package/dist/settings-effect.js +317 -5
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +37 -0
- package/dist/settings-http-confirmation.js +162 -15
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-request-capability.d.ts +14 -0
- package/dist/settings-request-capability.js +12 -1
- package/dist/settings-request-capability.js.map +1 -1
- package/dist/settings-route-lifetime.d.ts +14 -0
- package/dist/settings-route-lifetime.js +48 -0
- package/dist/settings-route-lifetime.js.map +1 -0
- package/dist/settings-summary.d.ts +24 -0
- package/dist/settings-summary.js +42 -0
- package/dist/settings-summary.js.map +1 -0
- package/dist/settings-transaction.d.ts +4 -0
- package/dist/settings-transaction.js +9 -0
- package/dist/settings-transaction.js.map +1 -1
- package/dist/setup-form.js +6 -3
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-host.js +1 -1
- package/dist/setup-host.js.map +1 -1
- package/dist/setup-i18n.js +3 -0
- package/dist/setup-i18n.js.map +1 -1
- package/dist/setup-wizard.js +4 -2
- package/dist/setup-wizard.js.map +1 -1
- package/dist/signin-keepalive.d.ts +206 -0
- package/dist/signin-keepalive.js +681 -0
- package/dist/signin-keepalive.js.map +1 -0
- package/dist/structured-signin-transport.d.ts +20 -2
- package/dist/structured-signin-transport.js +57 -2
- package/dist/structured-signin-transport.js.map +1 -1
- package/dist/structured-signin.d.ts +11 -2
- package/dist/structured-signin.js +5 -7
- package/dist/structured-signin.js.map +1 -1
- package/dist/task-board-tool.d.ts +2 -1
- package/dist/task-board-tool.js +76 -7
- package/dist/task-board-tool.js.map +1 -1
- package/dist/tmux-binary.d.ts +59 -0
- package/dist/tmux-binary.js +189 -0
- package/dist/tmux-binary.js.map +1 -0
- package/dist/tmux-control.d.ts +2 -1
- package/dist/tmux-control.js +4 -4
- package/dist/tmux-control.js.map +1 -1
- package/dist/tmux-exec-helper.js +32 -1
- package/dist/tmux-exec-helper.js.map +1 -1
- package/dist/tmux-legacy.d.ts +94 -0
- package/dist/tmux-legacy.js +309 -0
- package/dist/tmux-legacy.js.map +1 -0
- package/dist/tmux-manager.d.ts +11 -4
- package/dist/tmux-manager.js +61 -40
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tmux-pane-host.d.ts +26 -0
- package/dist/tmux-pane-host.js +25 -0
- package/dist/tmux-pane-host.js.map +1 -0
- package/dist/tmux-read.js +4 -3
- package/dist/tmux-read.js.map +1 -1
- package/dist/tmux-rollback.d.ts +42 -0
- package/dist/tmux-rollback.js +78 -0
- package/dist/tmux-rollback.js.map +1 -0
- package/dist/tmux-server.d.ts +102 -0
- package/dist/tmux-server.js +248 -0
- package/dist/tmux-server.js.map +1 -0
- package/dist/tool-permissions.js +2 -1
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +9 -5
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +10 -2
- package/dist/transcript-delta-reader.js +38 -9
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/transcript-monitor.d.ts +3 -0
- package/dist/transcript-monitor.js +68 -54
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-needles.d.ts +42 -0
- package/dist/transcript-needles.js +166 -0
- package/dist/transcript-needles.js.map +1 -0
- package/dist/transcript-records.d.ts +22 -0
- package/dist/transcript-records.js +144 -0
- package/dist/transcript-records.js.map +1 -0
- package/dist/transcript-sources.d.ts +5 -0
- package/dist/transcript-sources.js +11 -79
- package/dist/transcript-sources.js.map +1 -1
- package/dist/types.d.ts +39 -0
- package/dist/ui/account-identity.js +29 -0
- package/dist/ui/accounts-keepalive.js +111 -0
- package/dist/ui/accounts-manage.js +256 -0
- package/dist/ui/accounts-view.js +481 -0
- package/dist/ui/agent-details-settings.js +326 -0
- package/dist/ui/agent-export-dialog.js +170 -0
- package/dist/ui/agent-export-strings.js +81 -0
- package/dist/ui/agent-instructions-field.js +69 -0
- package/dist/ui/agent-page-strings.js +148 -0
- package/dist/ui/agent-proposals.js +90 -0
- package/dist/ui/agent-runtime-settings.js +70 -0
- package/dist/ui/agent-runtime.js +124 -0
- package/dist/ui/backend-signin.js +109 -37
- package/dist/ui/chat-ambient.js +1 -1
- package/dist/ui/chat-md-strings.js +3 -9
- package/dist/ui/chat-quote.js +20 -17
- package/dist/ui/chat-render.js +3 -682
- package/dist/ui/chat-store.js +39 -7
- package/dist/ui/chat-strings.js +3 -285
- package/dist/ui/chat-thread.js +3 -969
- package/dist/ui/chat-time.js +3 -80
- package/dist/ui/chat-tour.js +2 -2
- package/dist/ui/chat-workspace-navigation.js +125 -0
- package/dist/ui/chat-workspace.js +255 -0
- package/dist/ui/cli-caps.js +15 -0
- package/dist/ui/cli-picker.js +42 -0
- package/dist/ui/credential-profile-select.js +54 -0
- package/dist/ui/effort-field-strings.js +18 -0
- package/dist/ui/fleet-office-dialogue.d.ts +30 -0
- package/dist/ui/fleet-office-dialogue.js +382 -0
- package/dist/ui/fleet-office-levels.js +17 -1
- package/dist/ui/fleet-office-pack.d.ts +19 -1
- package/dist/ui/fleet-office-pack.js +177 -24
- package/dist/ui/fleet-office-skin.js +23 -5
- package/dist/ui/fleet-office-store.js +13 -3
- package/dist/ui/fleet-office-zones.js +124 -9
- package/dist/ui/fleet-office.js +203 -19
- package/dist/ui/fleet-task-card.js +8 -4
- package/dist/ui/fleet-task-common.js +2 -2
- package/dist/ui/fleet-task-menu.js +188 -0
- package/dist/ui/fleet-task-stats.js +124 -0
- package/dist/ui/fleet-task-view.js +340 -0
- package/dist/ui/fleet-tasks.js +125 -39
- package/dist/ui/general-location.js +85 -0
- package/dist/ui/host-install.js +290 -0
- package/dist/ui/html-attachment.js +3 -40
- package/dist/ui/hub-agent-copy.js +23 -0
- package/dist/ui/hub-attachments.js +90 -0
- package/dist/ui/hub-button-actions.js +65 -0
- package/dist/ui/hub-chat-store.js +168 -0
- package/dist/ui/hub-chat-strings.js +79 -0
- package/dist/ui/hub-client.js +410 -0
- package/dist/ui/hub-company-join-strings.js +77 -0
- package/dist/ui/hub-company-join.js +165 -0
- package/dist/ui/hub-directory-editor-strings.js +56 -0
- package/dist/ui/hub-directory-editor.js +163 -0
- package/dist/ui/hub-directory-notice-strings.js +28 -0
- package/dist/ui/hub-directory-notices.js +66 -0
- package/dist/ui/hub-grant-strings.js +13 -0
- package/dist/ui/hub-group-policy.js +183 -0
- package/dist/ui/hub-group-strings.js +110 -0
- package/dist/ui/hub-host-security-notices.js +28 -0
- package/dist/ui/hub-join-one-strings.js +131 -0
- package/dist/ui/hub-owner-strings.js +56 -0
- package/dist/ui/hub-pairing-progress-strings.js +15 -0
- package/dist/ui/hub-preview.js +101 -0
- package/dist/ui/hub-provider-guidance.js +31 -0
- package/dist/ui/hub-quick-pairing.js +209 -0
- package/dist/ui/hub-quick-strings.js +43 -0
- package/dist/ui/hub-quota.js +85 -0
- package/dist/ui/hub-read-strings.js +7 -0
- package/dist/ui/hub-strings.js +168 -0
- package/dist/ui/hub-switcher.js +27 -0
- package/dist/ui/hub-this-hub.js +113 -0
- package/dist/ui/hub-welcome.js +102 -0
- package/dist/ui/image-lightbox.js +11 -3
- package/dist/ui/machine-signin.js +56 -0
- package/dist/ui/model-picker.js +18 -14
- package/dist/ui/native-instance-settings.js +81 -0
- package/dist/ui/native-pane-recovery.js +45 -0
- package/dist/ui/office-share-page.js +4 -2
- package/dist/ui/panel-chat.js +245 -116
- package/dist/ui/panel-details.js +46 -17
- package/dist/ui/panel-fleet.js +113 -20
- package/dist/ui/panel-hub.js +974 -0
- package/dist/ui/panel-log.js +9 -6
- package/dist/ui/panel-needs.js +175 -9
- package/dist/ui/panel-runtimes.js +645 -0
- package/dist/ui/panel-settings.js +325 -213
- package/dist/ui/panel-windows-agent.js +87 -0
- package/dist/ui/panel-windows-cli.js +189 -0
- package/dist/ui/preview-pages.js +3 -41
- package/dist/ui/preview-panel-actions.js +3 -161
- package/dist/ui/preview-panel.js +11 -550
- package/dist/ui/preview-versions.js +3 -155
- package/dist/ui/preview.js +3 -476
- package/dist/ui/provider-marks.js +83 -0
- package/dist/ui/runtime-catalog.js +55 -0
- package/dist/ui/runtime-cli-install.js +214 -0
- package/dist/ui/runtime-commands.d.ts +6 -0
- package/dist/ui/runtime-commands.js +92 -0
- package/dist/ui/runtime-update-commands.d.ts +2 -0
- package/dist/ui/runtime-update-commands.js +11 -0
- package/dist/ui/runtime-update-status.js +53 -0
- package/dist/ui/search-dialog.js +3 -0
- package/dist/ui/settings-access-overview.js +188 -0
- package/dist/ui/settings-access-strings.js +42 -0
- package/dist/ui/settings-agent-filters.js +94 -0
- package/dist/ui/settings-appearance.js +122 -23
- package/dist/ui/settings-apply.js +12 -5
- package/dist/ui/settings-build-version.js +35 -0
- package/dist/ui/settings-catalog.js +68 -16
- package/dist/ui/settings-confirm.js +112 -14
- package/dist/ui/settings-devices.js +283 -0
- package/dist/ui/settings-dialogs.js +360 -140
- package/dist/ui/settings-guests.js +25 -11
- package/dist/ui/settings-hub-browser-certificate.js +76 -0
- package/dist/ui/settings-hub-company-join.js +270 -0
- package/dist/ui/settings-hub-connection.js +172 -0
- package/dist/ui/settings-hub-directory.js +29 -0
- package/dist/ui/settings-hub-membership.js +93 -0
- package/dist/ui/settings-hub-preview.js +74 -0
- package/dist/ui/settings-hub-retention.js +54 -0
- package/dist/ui/settings-hub-run.js +61 -0
- package/dist/ui/settings-hub-section.js +67 -0
- package/dist/ui/settings-hub-setup-strings.js +70 -0
- package/dist/ui/settings-hub-setup.js +195 -0
- package/dist/ui/settings-hub.js +276 -0
- package/dist/ui/settings-layout.js +246 -0
- package/dist/ui/settings-level-titles.js +73 -0
- package/dist/ui/settings-model.js +26 -2
- package/dist/ui/settings-named-test.js +2 -2
- package/dist/ui/settings-outside.js +310 -0
- package/dist/ui/settings-quota-notice.js +3 -3
- package/dist/ui/settings-registry.js +26 -5
- package/dist/ui/settings-restart-strings.js +17 -0
- package/dist/ui/settings-revoke-strings.js +28 -0
- package/dist/ui/settings-shared-strings.js +161 -0
- package/dist/ui/settings-shared.js +354 -0
- package/dist/ui/settings-shortcuts.js +65 -0
- package/dist/ui/settings-strings.js +127 -46
- package/dist/ui/settings-web-authority.js +27 -14
- package/dist/ui/shared/access-overview.css +48 -0
- package/dist/ui/shared/accounts-keepalive.css +12 -0
- package/dist/ui/shared/accounts.css +88 -0
- package/dist/ui/shared/agend-auth.js +8 -1
- package/dist/ui/shared/app-ctx.js +22 -1
- package/dist/ui/shared/app-i18n.js +17 -16
- package/dist/ui/shared/app-nav.js +34 -11
- package/dist/ui/shared/app-route.js +12 -3
- package/dist/ui/shared/app-session.js +17 -12
- package/dist/ui/shared/app-shell.js +454 -55
- package/dist/ui/shared/app-store.js +3 -0
- package/dist/ui/shared/app-stream.js +3 -1
- package/dist/ui/shared/app.css +1586 -10
- package/dist/ui/shared/app.js +28 -3
- package/dist/ui/shared/chat-composer.js +74 -0
- package/dist/ui/shared/chat-md-strings.js +9 -0
- package/dist/ui/shared/chat-render.js +694 -0
- package/dist/ui/shared/chat-strings.js +333 -0
- package/dist/ui/shared/chat-thread.js +969 -0
- package/dist/ui/shared/chat-time.js +80 -0
- package/dist/ui/shared/chat-work-bar.css +5 -0
- package/dist/ui/shared/chat-workspace-memory.js +14 -0
- package/dist/ui/shared/chat-workspace-model.js +76 -0
- package/dist/ui/shared/device-roles.js +27 -0
- package/dist/ui/shared/header-tools.js +9 -9
- package/dist/ui/shared/host-install.css +10 -0
- package/dist/ui/shared/html-attachment.js +42 -0
- package/dist/ui/shared/hub-chat.css +98 -0
- package/dist/ui/shared/hub-groups.css +28 -0
- package/dist/ui/shared/hub-owner.css +57 -0
- package/dist/ui/shared/hub-quota.css +8 -0
- package/dist/ui/shared/hub-signin.css +24 -0
- package/dist/ui/shared/hub.css +78 -0
- package/dist/ui/shared/instance-nav.js +44 -8
- package/dist/ui/shared/instance-switch.js +12 -4
- package/dist/ui/shared/machine-name.js +13 -0
- package/dist/ui/shared/model-picker.css +13 -1
- package/dist/ui/shared/page-head.js +8 -0
- package/dist/ui/shared/panel-view.js +39 -26
- package/dist/ui/shared/preview-pages.js +41 -0
- package/dist/ui/shared/preview-panel-actions.js +168 -0
- package/dist/ui/shared/preview-panel.js +576 -0
- package/dist/ui/shared/preview-versions.js +155 -0
- package/dist/ui/shared/preview.js +476 -0
- package/dist/ui/shared/qrcode.module.js +2237 -0
- package/dist/ui/shared/runtime-install.css +55 -0
- package/dist/ui/shared/settings-width.js +31 -0
- package/dist/ui/shared/side-rail.js +15 -0
- package/dist/ui/shared/signin.js +392 -34
- package/dist/ui/shared/task-board.css +95 -0
- package/dist/ui/shared/tokens.css +1 -0
- package/dist/ui/shared/ui-dialog.js +2 -2
- package/dist/ui/shared/ui-menu.js +36 -10
- package/dist/ui/shared/usage-dialog.js +3 -72
- package/dist/ui/shared/usage-meter.js +84 -0
- package/dist/ui/shared/vendor/qrcode-generator.LICENSE +27 -0
- package/dist/ui/shared/vendor/vendor.json +19 -2
- package/dist/ui/shared/view-roster-store.js +8 -0
- package/dist/ui/shared/view-strings.js +14 -4
- package/dist/ui/shared/web-authorize.js +53 -3
- package/dist/ui/shared/workspace-follow.css +19 -0
- package/dist/ui/shared/workspace.css +20 -0
- package/dist/ui/signin.html +41 -8
- package/dist/ui/structured-signin.js +67 -17
- package/dist/ui/windows-agents-nav.js +2 -0
- package/dist/ui/windows-cli-catalog.js +108 -0
- package/dist/ui/workspace-follow-strings.js +28 -0
- package/dist/ui/workspace-panel.js +378 -0
- package/dist/ui/workspace-strings.js +35 -0
- package/dist/unattended-install.js +2 -1
- package/dist/unattended-install.js.map +1 -1
- package/dist/update-dispatch.d.ts +62 -0
- package/dist/update-dispatch.js +69 -2
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-install.d.ts +7 -0
- package/dist/update-install.js +23 -0
- package/dist/update-install.js.map +1 -1
- package/dist/update-marker.d.ts +2 -0
- package/dist/update-marker.js.map +1 -1
- package/dist/usage/providers.d.ts +2 -0
- package/dist/usage/providers.js +20 -19
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.d.ts +1 -1
- package/dist/usage/usage-api.js +3 -10
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/view-api.js +5 -7
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +167 -4
- package/dist/web-api.js +1579 -266
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +41 -3
- package/dist/web-backend-login.js +25 -17
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-history.d.ts +19 -2
- package/dist/web-chat-history.js +72 -3
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-commands.d.ts +10 -1
- package/dist/web-commands.js +1 -1
- package/dist/web-commands.js.map +1 -1
- package/dist/web-device-login.d.ts +153 -0
- package/dist/web-device-login.js +278 -0
- package/dist/web-device-login.js.map +1 -0
- package/dist/web-host-install.d.ts +127 -0
- package/dist/web-host-install.js +165 -0
- package/dist/web-host-install.js.map +1 -0
- package/dist/web-login.d.ts +35 -1
- package/dist/web-login.js +51 -5
- package/dist/web-login.js.map +1 -1
- package/dist/web-model-groups.d.ts +40 -0
- package/dist/web-model-groups.js +70 -0
- package/dist/web-model-groups.js.map +1 -0
- package/dist/web-notices.d.ts +9 -0
- package/dist/web-notices.js +19 -0
- package/dist/web-notices.js.map +1 -1
- package/dist/web-office-skins.d.ts +9 -0
- package/dist/web-office-skins.js +16 -1
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-office-store.d.ts +35 -2
- package/dist/web-office-store.js +64 -15
- package/dist/web-office-store.js.map +1 -1
- package/dist/web-only-fleet.d.ts +20 -0
- package/dist/web-only-fleet.js +21 -0
- package/dist/web-only-fleet.js.map +1 -1
- package/dist/web-remote-access.d.ts +341 -0
- package/dist/web-remote-access.js +801 -0
- package/dist/web-remote-access.js.map +1 -0
- package/dist/web-session.d.ts +63 -0
- package/dist/web-session.js +50 -1
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +3 -1
- package/dist/web-settings-patch.js +4 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +10 -1
- package/dist/web-shell-routes.js +14 -2
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-signin-device.d.ts +16 -0
- package/dist/web-signin-device.js +81 -0
- package/dist/web-signin-device.js.map +1 -0
- package/dist/web-signin-link.d.ts +42 -0
- package/dist/web-signin-link.js +110 -0
- package/dist/web-signin-link.js.map +1 -0
- package/dist/web-terminal.d.ts +11 -30
- package/dist/web-terminal.js +23 -8
- package/dist/web-terminal.js.map +1 -1
- package/dist/web-update.d.ts +1 -0
- package/dist/web-update.js +4 -2
- package/dist/web-update.js.map +1 -1
- package/dist/windows-agents.d.ts +127 -0
- package/dist/windows-agents.js +491 -0
- package/dist/windows-agents.js.map +1 -0
- package/dist/windows-cli-api.d.ts +48 -0
- package/dist/windows-cli-api.js +207 -0
- package/dist/windows-cli-api.js.map +1 -0
- package/dist/windows-cli-providers.d.ts +109 -0
- package/dist/windows-cli-providers.js +396 -0
- package/dist/windows-cli-providers.js.map +1 -0
- package/dist/windows-cli-worker.d.ts +99 -0
- package/dist/windows-cli-worker.js +729 -0
- package/dist/windows-cli-worker.js.map +1 -0
- package/dist/windows-cli.d.ts +130 -0
- package/dist/windows-cli.js +424 -0
- package/dist/windows-cli.js.map +1 -0
- package/dist/windows-native-mcp.d.ts +19 -0
- package/dist/windows-native-mcp.js +143 -0
- package/dist/windows-native-mcp.js.map +1 -0
- package/dist/windows-pane-mcp.d.ts +26 -0
- package/dist/windows-pane-mcp.js +187 -0
- package/dist/windows-pane-mcp.js.map +1 -0
- package/dist/windows-shortcuts.d.ts +29 -5
- package/dist/windows-shortcuts.js +52 -9
- package/dist/windows-shortcuts.js.map +1 -1
- package/dist/workspace-file-policy.d.ts +2 -0
- package/dist/workspace-file-policy.js +31 -0
- package/dist/workspace-file-policy.js.map +1 -0
- package/dist/workspace-follow-parse.d.ts +36 -0
- package/dist/workspace-follow-parse.js +208 -0
- package/dist/workspace-follow-parse.js.map +1 -0
- package/dist/workspace-follow-records.d.ts +17 -0
- package/dist/workspace-follow-records.js +88 -0
- package/dist/workspace-follow-records.js.map +1 -0
- package/dist/workspace-follow.d.ts +41 -0
- package/dist/workspace-follow.js +144 -0
- package/dist/workspace-follow.js.map +1 -0
- package/dist/wsl-detect.d.ts +1 -0
- package/dist/wsl-detect.js +20 -0
- package/dist/wsl-detect.js.map +1 -0
- package/dist/yaml-shared-nodes.js +8 -3
- package/dist/yaml-shared-nodes.js.map +1 -1
- package/launcher/agend-install.cjs +15 -2
- package/launcher/launchd-session-type.cjs +14 -0
- package/launcher/postinstall.cjs +27 -2
- package/launcher/tmux-bundle.cjs +263 -0
- package/package.json +16 -5
- package/templates/icons/agend-restart.ico +0 -0
- package/templates/icons/agend.ico +0 -0
- package/templates/launchd.plist.ejs +3 -1
- package/templates/runtime-assets/conpty-LICENSE +21 -0
- package/templates/runtime-assets/conpty-NOTICE.md +503 -0
- package/templates/runtime-assets/local-pane-stage.ps1 +101 -0
- package/templates/runtime-assets/runtime-pane-job.ps1 +116 -0
- package/templates/runtime-assets/runtime-pane-private.ps1 +81 -0
- package/templates/runtime-assets/xterm-LICENSE +21 -0
- package/templates/runtime-install/install.ps1 +618 -0
- package/templates/windows-shortcuts.ps1 +45 -12
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* M-2682: the one writer for a sealed Hub setting changed after initialization (agreed with Cairn, cid-m2687-settings-commit).
|
|
3
|
+
*
|
|
4
|
+
* The hub.* block is sealed: the initialization manifest signs its normalized digest (init/plan-digest.ts) with the Hub's
|
|
5
|
+
* issuer key, and every mount re-checks the pair (mount.ts). A setting written to fleet.yaml alone makes the Hub hold, so a
|
|
6
|
+
* change goes through here: the new block and a new manifest, signed by the same issuer key, committed as one unit.
|
|
7
|
+
*
|
|
8
|
+
* - An operation names exactly what it changes; there is no generic reseal. `rename` sets/clears hub.name (absent, not blank).
|
|
9
|
+
* The internal, opt-in directory-v2 participant below changes only directory settings and the opaque bind file. Its route
|
|
10
|
+
* proof and production composition remain separate from the file writer. Neither op changes issuer keys, hubId, origins
|
|
11
|
+
* or certificates. The optional host-owner `webAddress` operation changes only webOrigin/webListen/webTls; its v3 journal
|
|
12
|
+
* indexes an authoritative SQL decision for the TLS selector, ended browser sessions and an independent address head.
|
|
13
|
+
* - `prepare` validates and returns a redacted summary and an opaque reference, bound to the session and person that asked,
|
|
14
|
+
* to the exact old image (the sealed digest and the manifest bytes) and to a short expiry. Nothing is written.
|
|
15
|
+
* - `commit` runs with no await from its first check to publication (the fleet's config save is synchronous too), so no other
|
|
16
|
+
* save, reload or Hub apply can see half of it inside this process. Across a crash, a journal carries it:
|
|
17
|
+
* prepared — the staged manifest and receipt are written and fsynced; nothing in force has changed.
|
|
18
|
+
* committed — the commit point: the old image was re-read and matched, the session and person were re-checked.
|
|
19
|
+
* (install the manifest, then save hub.* through the fleet's own writer; then the pair is verified)
|
|
20
|
+
* done — the receipt is kept; the staged files and the journal are removed.
|
|
21
|
+
* `recover()` (before any Hub apply): prepared → drop the staged files, the old pair is untouched; committed → finish each
|
|
22
|
+
* file that is still old, keep each that is new, and refuse — overwriting nothing — any file that is neither.
|
|
23
|
+
* - Provenance: the v1 manifest's schema is unchanged. A versioned receipt (hub/settings-receipts/<id>.json) records the
|
|
24
|
+
* operation, who, the request and both digests; the manifest's confirmationId is the receipt's hash, so the issuer
|
|
25
|
+
* signature binds it. It never stands for the host owner's initialization confirmation.
|
|
26
|
+
* - Directory-v2 preserves rename v1. Its ONLY decision is settings-directory-decision.ts's root SQL COMMIT (including
|
|
27
|
+
* floor/version, binding, sessions, audit and complete security notices). Its file phase is recovery progress only.
|
|
28
|
+
*/
|
|
29
|
+
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
30
|
+
import { closeSync, existsSync, fsyncSync, openSync, readFileSync, rmSync } from "node:fs";
|
|
31
|
+
import { dirname, join } from "node:path";
|
|
32
|
+
import { atomicWriteFileSync } from "../atomic-write.js";
|
|
33
|
+
import { hubPlanDigest } from "./init/plan-digest.js";
|
|
34
|
+
import { sealHubInitialization, verifyHubInitialization } from "./initialization.js";
|
|
35
|
+
import { ensurePrivateDirectory, privatePath, readPrivateFile } from "./private-files.js";
|
|
36
|
+
import { personKeyString } from "./identity.js";
|
|
37
|
+
import { BIND_PASSWORD_REF, BIND_SECRET_REL } from "./init/layout.js";
|
|
38
|
+
import { resolveDirectoryConfig } from "./directory/config.js";
|
|
39
|
+
import { canonicalArguments } from "./identity.js";
|
|
40
|
+
import { scalarString } from "./validation.js";
|
|
41
|
+
import { parseHubDirectoryDecisionMetadata } from "./settings-directory-decision.js";
|
|
42
|
+
import { createHubWebAddressSettingsOperation } from "./settings-web-address.js";
|
|
43
|
+
export const SETTINGS_JOURNAL = "hub/settings-journal.json";
|
|
44
|
+
export const SETTINGS_STAGED = "hub/settings-staged";
|
|
45
|
+
export const SETTINGS_RECEIPTS = "hub/settings-receipts";
|
|
46
|
+
const MANIFEST = "hub/init-manifest.json";
|
|
47
|
+
/** The same rule as the initializer's Hub name: 1–64 characters, no control characters, no blanks around it. */
|
|
48
|
+
export const HUB_NAME_RULE = /^[^\u0000-\u001f\u007f]{1,64}$/;
|
|
49
|
+
const PREPARED_MS = 5 * 60_000;
|
|
50
|
+
const MAX_PREPARED = 32;
|
|
51
|
+
const currentProof = (check) => {
|
|
52
|
+
const result = check();
|
|
53
|
+
if (result && (typeof result === "object" || typeof result === "function") && typeof result.then === "function") {
|
|
54
|
+
try {
|
|
55
|
+
result.then(undefined, () => undefined);
|
|
56
|
+
}
|
|
57
|
+
catch { /* refuse either way */ }
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
return result === true;
|
|
61
|
+
};
|
|
62
|
+
export class HubSettingsError extends Error {
|
|
63
|
+
code;
|
|
64
|
+
constructor(code, detail) {
|
|
65
|
+
super(detail ?? code);
|
|
66
|
+
this.code = code;
|
|
67
|
+
this.name = "HubSettingsError";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const sha = (s) => createHash("sha256").update(s).digest("hex");
|
|
71
|
+
const obj = (v) => (v && typeof v === "object" && !Array.isArray(v) ? v : {});
|
|
72
|
+
function canonical(value) {
|
|
73
|
+
if (Array.isArray(value))
|
|
74
|
+
return `[${value.map(canonical).join(",")}]`;
|
|
75
|
+
if (value && typeof value === "object")
|
|
76
|
+
return `{${Object.entries(value).filter(([, v]) => v !== undefined).sort(([a], [b]) => (a < b ? -1 : 1)).map(([k, v]) => `${JSON.stringify(k)}:${canonical(v)}`).join(",")}}`;
|
|
77
|
+
return JSON.stringify(value);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A name as an administrator sent it: `null` clears it (the key absent); a string is trimmed and must then pass the
|
|
81
|
+
* initializer's rule. A blank string is refused, not taken as a clear: clearing is its own explicit choice.
|
|
82
|
+
*/
|
|
83
|
+
export function hubNameInput(raw) {
|
|
84
|
+
if (raw === null)
|
|
85
|
+
return null;
|
|
86
|
+
if (typeof raw !== "string")
|
|
87
|
+
throw new HubSettingsError("invalid", "name");
|
|
88
|
+
const name = raw.trim();
|
|
89
|
+
if (!HUB_NAME_RULE.test(name))
|
|
90
|
+
throw new HubSettingsError("invalid", "name");
|
|
91
|
+
return name;
|
|
92
|
+
}
|
|
93
|
+
/** The name in force: a present name is a string; absent is null (the plain brand). */
|
|
94
|
+
export const currentHubName = (hub) => (typeof obj(hub).name === "string" && obj(hub).name ? obj(hub).name : null);
|
|
95
|
+
/** Internal material projection shared by the writer and its mount barrier; not a browser DTO or an authority proof. */
|
|
96
|
+
export function hubDirectorySettingsImage(hub, manifest, secret) {
|
|
97
|
+
return { configDigest: hubPlanDigest(hub), configSha: sha(canonical(hub)), directorySha: sha(canonical(obj(hub).directory)),
|
|
98
|
+
manifestSha: sha(manifest), bindSecretSha: sha(secret) };
|
|
99
|
+
}
|
|
100
|
+
/** Fixed private files only. Callers still verify the seal and the authoritative SQL head before admission. */
|
|
101
|
+
export function readHubDirectorySettingsImage(home, hub) {
|
|
102
|
+
if (obj(obj(hub).directory).bindPasswordRef !== BIND_PASSWORD_REF)
|
|
103
|
+
throw new HubSettingsError("unavailable");
|
|
104
|
+
return hubDirectorySettingsImage(hub, readPrivateFile(home, MANIFEST, 64 * 1024, { preserveBom: true }), readPrivateFile(home, BIND_SECRET_REL, 4096, { preserveBom: true }));
|
|
105
|
+
}
|
|
106
|
+
export function createHubSettingsWriter(deps) {
|
|
107
|
+
const now = deps.now ?? Date.now;
|
|
108
|
+
const prepared = new Map();
|
|
109
|
+
const preparedDirectory = new Map();
|
|
110
|
+
const step = (name) => deps.step?.(name);
|
|
111
|
+
const file = (suffix) => join(deps.home, suffix);
|
|
112
|
+
const writePrivate = (dir, suffix, content) => {
|
|
113
|
+
ensurePrivateDirectory(deps.home, dir);
|
|
114
|
+
atomicWriteFileSync(file(suffix), content, { mode: 0o600 });
|
|
115
|
+
privatePath(deps.home, suffix); // refuses a file that is not private, the owner's, a plain file
|
|
116
|
+
};
|
|
117
|
+
const readManifest = () => readFileSync(privatePath(deps.home, MANIFEST), "utf8");
|
|
118
|
+
/** The pair in force verifies against its own digest; returns the image a change is bound to. */
|
|
119
|
+
const image = (directory = false) => {
|
|
120
|
+
const hub = obj(deps.readHub());
|
|
121
|
+
if ((hub.enabled !== true && !(directory && hub.enabled === false)) || typeof hub.hubId !== "string" || typeof hub.memberOrigin !== "string")
|
|
122
|
+
throw new HubSettingsError("unavailable");
|
|
123
|
+
const digest = hubPlanDigest(hub), manifest = readManifest();
|
|
124
|
+
let confirmationId;
|
|
125
|
+
try {
|
|
126
|
+
({ confirmationId } = verifyHubInitialization({ home: deps.home, hubId: hub.hubId, memberOrigin: hub.memberOrigin, planDigest: digest }));
|
|
127
|
+
}
|
|
128
|
+
catch {
|
|
129
|
+
throw new HubSettingsError("unavailable", "the Hub's sealed settings do not verify");
|
|
130
|
+
}
|
|
131
|
+
return { hub, digest, manifest, manifestSha: sha(manifest), confirmationId };
|
|
132
|
+
};
|
|
133
|
+
const readJournal = () => {
|
|
134
|
+
if (!existsSync(file(SETTINGS_JOURNAL)))
|
|
135
|
+
return null;
|
|
136
|
+
const j = JSON.parse(readFileSync(privatePath(deps.home, SETTINGS_JOURNAL), "utf8"));
|
|
137
|
+
if (j?.v === 3 && j.op === "web-address" && ["prepared", "installing", "done"].includes(j.phase)
|
|
138
|
+
&& typeof j.id === "string" && /^[0-9a-f-]{36}$/.test(j.id) && Object.keys(j).sort().join() === "id,op,phase,v")
|
|
139
|
+
return j;
|
|
140
|
+
if (j?.v === 2 && j.op === "directory" && ["prepared", "installing", "done"].includes(j.phase)
|
|
141
|
+
&& typeof j.id === "string" && /^[0-9a-f-]{36}$/.test(j.id) && Object.keys(j).sort().join() === "id,op,phase,v")
|
|
142
|
+
return j;
|
|
143
|
+
if (j?.v !== 1 || j.op !== "rename" || !["prepared", "committed", "done"].includes(j.phase) || typeof j.id !== "string" || !/^[0-9a-f-]{36}$/.test(j.id)) {
|
|
144
|
+
throw new HubSettingsError("recovery", "the settings journal is unreadable");
|
|
145
|
+
}
|
|
146
|
+
return j;
|
|
147
|
+
};
|
|
148
|
+
const writeJournal = (j) => writePrivate("hub", SETTINGS_JOURNAL, `${JSON.stringify(j, null, 2)}\n`);
|
|
149
|
+
const staged = (id, kind) => `${SETTINGS_STAGED}/${id}.${kind}.json`;
|
|
150
|
+
const finish = (j) => {
|
|
151
|
+
// The receipt is kept with the others; then nothing of this commit is left to recover.
|
|
152
|
+
const receipt = readFileSync(privatePath(deps.home, staged(j.id, "receipt")), "utf8");
|
|
153
|
+
writePrivate(SETTINGS_RECEIPTS, `${SETTINGS_RECEIPTS}/${j.id}.json`, receipt);
|
|
154
|
+
writeJournal({ ...j, phase: "done" });
|
|
155
|
+
step("done");
|
|
156
|
+
cleanup(j.id);
|
|
157
|
+
};
|
|
158
|
+
const cleanup = (id) => {
|
|
159
|
+
for (const kind of ["manifest", "receipt"])
|
|
160
|
+
rmSync(file(staged(id, kind)), { force: true });
|
|
161
|
+
rmSync(file(SETTINGS_JOURNAL), { force: true });
|
|
162
|
+
};
|
|
163
|
+
const namePatch = (name) => [name === null ? { path: ["hub", "name"], remove: true } : { path: ["hub", "name"], value: name }];
|
|
164
|
+
// Directory-v2 is an operation of THIS writer. The optional SQL participant decides; these routines alone install files.
|
|
165
|
+
const decision = () => {
|
|
166
|
+
const d = deps.directoryDecision?.();
|
|
167
|
+
if (!d)
|
|
168
|
+
throw new HubSettingsError("unavailable");
|
|
169
|
+
if (d.hubId !== obj(deps.readHub()).hubId)
|
|
170
|
+
throw new HubSettingsError("unavailable", "the directory decision belongs to another Hub");
|
|
171
|
+
return d;
|
|
172
|
+
};
|
|
173
|
+
const flushDirectory = (dir) => { const fd = openSync(dir, "r"); try {
|
|
174
|
+
fsyncSync(fd);
|
|
175
|
+
}
|
|
176
|
+
finally {
|
|
177
|
+
closeSync(fd);
|
|
178
|
+
} };
|
|
179
|
+
const writeDirectoryPrivate = (dir, suffix, content) => {
|
|
180
|
+
writePrivate(dir, suffix, content);
|
|
181
|
+
// Unlike the shared atomic helper's best-effort directory flush, staging must report durability failure.
|
|
182
|
+
flushDirectory(dirname(file(suffix)));
|
|
183
|
+
flushDirectory(file("hub"));
|
|
184
|
+
flushDirectory(deps.home);
|
|
185
|
+
};
|
|
186
|
+
const writeDirectoryJournal = (j) => writeDirectoryPrivate("hub", SETTINGS_JOURNAL, `${JSON.stringify(j, null, 2)}\n`);
|
|
187
|
+
const directoryFile = (id, role) => `${SETTINGS_STAGED}/${id}.directory-${role}`;
|
|
188
|
+
const readDirectoryFile = (id, role, limit = 1024 * 1024) => readPrivateFile(deps.home, directoryFile(id, role), limit, { preserveBom: true });
|
|
189
|
+
const readSecret = () => readPrivateFile(deps.home, BIND_SECRET_REL, 4096, { preserveBom: true });
|
|
190
|
+
const directoryImage = (hub = deps.readHub(), manifest = readManifest(), secret = readSecret()) => hubDirectorySettingsImage(hub, manifest, secret);
|
|
191
|
+
const same = (a, b) => canonical(a) === canonical(b);
|
|
192
|
+
const removeDirectoryPreparation = (id) => {
|
|
193
|
+
for (const role of ["old-hub", "new-hub", "old-secret", "new-secret", "old-manifest", "new-manifest", "receipt"])
|
|
194
|
+
rmSync(file(directoryFile(id, role)), { force: true });
|
|
195
|
+
rmSync(file(SETTINGS_JOURNAL), { force: true });
|
|
196
|
+
};
|
|
197
|
+
const finishDirectory = (j) => {
|
|
198
|
+
const d = decision(), op = d.lookup(j.id); // an unreadable/advanced floor throws; it NEVER means "no decision"
|
|
199
|
+
if (!op) {
|
|
200
|
+
removeDirectoryPreparation(j.id);
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
const assertHead = () => { if (d.inspect().operationId !== op.id)
|
|
204
|
+
throw new HubSettingsError("recovery", "a newer settings operation is in force"); };
|
|
205
|
+
assertHead();
|
|
206
|
+
const oldHub = JSON.parse(readDirectoryFile(j.id, "old-hub")), nextHub = JSON.parse(readDirectoryFile(j.id, "new-hub"));
|
|
207
|
+
const oldSecret = readDirectoryFile(j.id, "old-secret", 4096), nextSecret = readDirectoryFile(j.id, "new-secret", 4096);
|
|
208
|
+
const oldManifest = readDirectoryFile(j.id, "old-manifest"), nextManifest = readDirectoryFile(j.id, "new-manifest"), receipt = readDirectoryFile(j.id, "receipt");
|
|
209
|
+
if (!same(directoryImage(oldHub, oldManifest, oldSecret), op.before) || !same(directoryImage(nextHub, nextManifest, nextSecret), op.after)
|
|
210
|
+
|| sha(receipt) !== op.receiptSha || !same({ ...oldHub, directory: undefined }, { ...nextHub, directory: undefined }))
|
|
211
|
+
throw new HubSettingsError("recovery", "the staged directory image changed");
|
|
212
|
+
const current = directoryImage();
|
|
213
|
+
// Judge ALL files before the first write. Mixed old/new is resumable; any third image is not ours to overwrite.
|
|
214
|
+
if (Object.keys(current).some(k => current[k] !== op.before[k]
|
|
215
|
+
&& current[k] !== op.after[k]))
|
|
216
|
+
throw new HubSettingsError("recovery", "directory settings changed outside this operation");
|
|
217
|
+
writeDirectoryJournal({ ...j, phase: "installing" });
|
|
218
|
+
assertHead();
|
|
219
|
+
if (current.bindSecretSha !== op.after.bindSecretSha)
|
|
220
|
+
writeDirectoryPrivate("hub/secrets", BIND_SECRET_REL, nextSecret);
|
|
221
|
+
step("directory-secret");
|
|
222
|
+
assertHead();
|
|
223
|
+
if (current.manifestSha !== op.after.manifestSha)
|
|
224
|
+
writeDirectoryPrivate("hub", MANIFEST, nextManifest);
|
|
225
|
+
step("manifest");
|
|
226
|
+
assertHead();
|
|
227
|
+
if (current.configSha !== op.after.configSha) {
|
|
228
|
+
deps.saveHub([{ path: ["hub", "directory"], value: nextHub.directory }]);
|
|
229
|
+
flushDirectory(deps.home);
|
|
230
|
+
}
|
|
231
|
+
step("config");
|
|
232
|
+
assertHead();
|
|
233
|
+
if (!same(directoryImage(), op.after))
|
|
234
|
+
throw new HubSettingsError("recovery", "the installed directory image differs from the decision");
|
|
235
|
+
image(true); // same issuer/identity, actual installed seal; no browser authority is published here
|
|
236
|
+
writeDirectoryPrivate(SETTINGS_RECEIPTS, `${SETTINGS_RECEIPTS}/${j.id}.json`, receipt);
|
|
237
|
+
writeDirectoryJournal({ ...j, phase: "done" });
|
|
238
|
+
step("done");
|
|
239
|
+
rmSync(file(SETTINGS_JOURNAL), { force: true });
|
|
240
|
+
// Keep the exact private preimages for the original operation's bounded forward compensation, never an old DB.
|
|
241
|
+
return { receiptId: op.id, directoryEpoch: op.directoryEpoch };
|
|
242
|
+
};
|
|
243
|
+
const installDirectory = (p, current, original, rotation) => {
|
|
244
|
+
const checkTime = () => {
|
|
245
|
+
const t = now();
|
|
246
|
+
if (!Number.isSafeInteger(t) || t < p.createdAt || t >= p.expiresAt)
|
|
247
|
+
throw new HubSettingsError("denied");
|
|
248
|
+
return t;
|
|
249
|
+
};
|
|
250
|
+
const check = () => {
|
|
251
|
+
checkTime();
|
|
252
|
+
if (!currentProof(current))
|
|
253
|
+
throw new HubSettingsError("denied");
|
|
254
|
+
image(true);
|
|
255
|
+
if (!same(directoryImage(), p.before))
|
|
256
|
+
throw new HubSettingsError("stale");
|
|
257
|
+
};
|
|
258
|
+
if (pending())
|
|
259
|
+
throw new HubSettingsError("busy");
|
|
260
|
+
check();
|
|
261
|
+
image(true);
|
|
262
|
+
const id = randomUUID(), at = now(), oldHub = structuredClone(obj(deps.readHub())), oldSecret = readSecret(), oldManifest = readManifest();
|
|
263
|
+
const nextDigest = hubPlanDigest(p.next);
|
|
264
|
+
const receipt = { v: 2, kind: "agend-hub-settings-receipt", id, op: original ? "directory-compensation" : "directory", compensates: original?.id ?? null,
|
|
265
|
+
actor: p.actor, at, oldDigest: p.before.configDigest, newDigest: nextDigest, expected: p.expected,
|
|
266
|
+
...(p.recoveryDeadline === undefined ? {} : { recovery: { v: 1, expiresAt: p.recoveryDeadline } }) };
|
|
267
|
+
const receiptText = `${JSON.stringify(receipt, null, 2)}\n`, committedAt = new Date(at).toISOString(), confirmationId = sha(canonical(receipt)).slice(0, 32);
|
|
268
|
+
const signature = sealHubInitialization({ home: deps.home, planDigest: nextDigest, confirmationId, committedAt });
|
|
269
|
+
const manifest = `${JSON.stringify({ v: 1, hubId: oldHub.hubId, planDigest: nextDigest, committedAt, confirmationId, signature }, null, 2)}\n`;
|
|
270
|
+
const after = directoryImage(p.next, manifest, p.secret);
|
|
271
|
+
for (const [role, text] of Object.entries({ "old-hub": JSON.stringify(oldHub), "new-hub": JSON.stringify(p.next), "old-secret": oldSecret,
|
|
272
|
+
"new-secret": p.secret, "old-manifest": oldManifest, "new-manifest": manifest, receipt: receiptText }))
|
|
273
|
+
writeDirectoryPrivate(SETTINGS_STAGED, directoryFile(id, role), text);
|
|
274
|
+
const journal = { v: 2, id, op: "directory", phase: "prepared" };
|
|
275
|
+
writeDirectoryJournal(journal);
|
|
276
|
+
step("staged");
|
|
277
|
+
const request = { id, expected: p.expected, before: p.before, after, generation: p.generation,
|
|
278
|
+
receiptSha: sha(receiptText), actor: p.actor, at, changes: p.changes, recipients: p.recipients,
|
|
279
|
+
...(p.recoveryDeadline === undefined ? {} : { recovery: { v: 1, expiresAt: p.recoveryDeadline } }) };
|
|
280
|
+
const decisionCheck = () => {
|
|
281
|
+
check();
|
|
282
|
+
if (!same(directoryImage(JSON.parse(readDirectoryFile(id, "old-hub")), readDirectoryFile(id, "old-manifest"), readDirectoryFile(id, "old-secret", 4096)), p.before)
|
|
283
|
+
|| !same(directoryImage(JSON.parse(readDirectoryFile(id, "new-hub")), readDirectoryFile(id, "new-manifest"), readDirectoryFile(id, "new-secret", 4096)), after)
|
|
284
|
+
|| sha(readDirectoryFile(id, "receipt")) !== request.receiptSha)
|
|
285
|
+
throw new HubSettingsError("stale");
|
|
286
|
+
// Proof and material checks may cross either bound; fence the callback-free SQL transition with a fresh sample.
|
|
287
|
+
return checkTime(); // the session participant shares this FINAL writer-owned sample
|
|
288
|
+
};
|
|
289
|
+
try {
|
|
290
|
+
if (original)
|
|
291
|
+
decision().compensate(original.id, request, decisionCheck);
|
|
292
|
+
else
|
|
293
|
+
decision().decide(request, decisionCheck, rotation);
|
|
294
|
+
}
|
|
295
|
+
catch (error) {
|
|
296
|
+
try {
|
|
297
|
+
if (!decision().lookup(id))
|
|
298
|
+
removeDirectoryPreparation(id);
|
|
299
|
+
}
|
|
300
|
+
catch { /* uncertainty keeps the index and private material */ }
|
|
301
|
+
throw error;
|
|
302
|
+
}
|
|
303
|
+
step("directory-decision");
|
|
304
|
+
return finishDirectory(journal);
|
|
305
|
+
};
|
|
306
|
+
const directoryWriter = {
|
|
307
|
+
prepare(candidate, actor, current) {
|
|
308
|
+
const metadata = parseHubDirectoryDecisionMetadata({ actor, changes: candidate.changes, recipients: candidate.recipients });
|
|
309
|
+
const cfg = structuredClone(candidate.directory), nextDirectory = resolveDirectoryConfig(cfg), old = image(true), oldCfg = obj(old.hub.directory);
|
|
310
|
+
const oldSecret = readSecret(), before = directoryImage(old.hub, old.manifest, oldSecret);
|
|
311
|
+
if (metadata.actor.kind === "hub-administrator" && !same(metadata.actor.person, old.hub.administrator))
|
|
312
|
+
throw new HubSettingsError("denied");
|
|
313
|
+
if (oldCfg.bindPasswordRef !== BIND_PASSWORD_REF || cfg.bindPasswordRef !== undefined && cfg.bindPasswordRef !== BIND_PASSWORD_REF
|
|
314
|
+
|| nextDirectory.realm !== oldCfg.realm || nextDirectory.profile !== oldCfg.profile)
|
|
315
|
+
throw new HubSettingsError("invalid");
|
|
316
|
+
const next = { ...old.hub, directory: { ...cfg, bindPasswordRef: BIND_PASSWORD_REF } };
|
|
317
|
+
if (Buffer.byteLength(canonical(next)) > 1024 * 1024)
|
|
318
|
+
throw new HubSettingsError("invalid");
|
|
319
|
+
let secret = candidate.bindPassword;
|
|
320
|
+
if (secret === undefined) {
|
|
321
|
+
if (cfg.url !== oldCfg.url || cfg.caPem !== oldCfg.caPem || cfg.bindDn !== oldCfg.bindDn)
|
|
322
|
+
throw new HubSettingsError("invalid");
|
|
323
|
+
secret = oldSecret;
|
|
324
|
+
}
|
|
325
|
+
if (typeof secret !== "string" || !secret || Buffer.byteLength(secret) > 4096 || !scalarString(secret))
|
|
326
|
+
throw new HubSettingsError("invalid");
|
|
327
|
+
if (!currentProof(current))
|
|
328
|
+
throw new HubSettingsError("denied");
|
|
329
|
+
if (!same(directoryImage(), before))
|
|
330
|
+
throw new HubSettingsError("stale");
|
|
331
|
+
const d = decision(), expected = d.inspect();
|
|
332
|
+
if (same(next, old.hub) && sha(secret) === before.bindSecretSha)
|
|
333
|
+
throw new HubSettingsError("unchanged");
|
|
334
|
+
const generation = sha(canonicalArguments({ v: 1, realm: nextDirectory.realm, url: nextDirectory.url, profile: nextDirectory.profile,
|
|
335
|
+
baseDn: nextDirectory.baseDn, bindDn: nextDirectory.bindDn, loginAttribute: nextDirectory.loginAttribute,
|
|
336
|
+
userFilter: nextDirectory.userFilter, caSha256: nextDirectory.caPem === undefined ? null : sha(nextDirectory.caPem) }));
|
|
337
|
+
const t = now();
|
|
338
|
+
for (const [key, value] of preparedDirectory)
|
|
339
|
+
if (value.expiresAt <= t)
|
|
340
|
+
preparedDirectory.delete(key);
|
|
341
|
+
if (preparedDirectory.size >= MAX_PREPARED)
|
|
342
|
+
throw new HubSettingsError("busy");
|
|
343
|
+
const ref = randomBytes(24).toString("base64url"), expiresAt = t + PREPARED_MS;
|
|
344
|
+
preparedDirectory.set(ref, { ...metadata, before, expected, next: structuredClone(next), secret, generation, createdAt: t, expiresAt });
|
|
345
|
+
return { ref, expiresAt };
|
|
346
|
+
},
|
|
347
|
+
commit(ref, actor, current, rotation, recoveryDeadline) {
|
|
348
|
+
const p = preparedDirectory.get(ref);
|
|
349
|
+
preparedDirectory.delete(ref);
|
|
350
|
+
if (!p)
|
|
351
|
+
throw new HubSettingsError("expired");
|
|
352
|
+
const fresh = parseHubDirectoryDecisionMetadata({ actor, changes: p.changes, recipients: p.recipients });
|
|
353
|
+
if (!same({ ...p.actor, requestId: undefined }, { ...fresh.actor, requestId: undefined }))
|
|
354
|
+
throw new HubSettingsError("denied");
|
|
355
|
+
if (recoveryDeadline !== undefined && (!Number.isSafeInteger(recoveryDeadline) || recoveryDeadline <= p.createdAt))
|
|
356
|
+
throw new HubSettingsError("invalid");
|
|
357
|
+
const expiresAt = recoveryDeadline === undefined ? p.expiresAt : Math.min(p.expiresAt, recoveryDeadline);
|
|
358
|
+
return installDirectory({ ...p, actor: fresh.actor, expiresAt, ...(recoveryDeadline === undefined ? {} : { recoveryDeadline: expiresAt }) }, current, undefined, rotation);
|
|
359
|
+
},
|
|
360
|
+
compensate(originalId, currentIntent, expiresAt) {
|
|
361
|
+
const d = decision(), original = d.operation(originalId);
|
|
362
|
+
if (original.recovery) {
|
|
363
|
+
const receiptText = readDirectoryFile(original.id, "receipt"), receipt = JSON.parse(receiptText);
|
|
364
|
+
if (sha(receiptText) !== original.receiptSha || !same(receipt.recovery, original.recovery))
|
|
365
|
+
throw new HubSettingsError("recovery");
|
|
366
|
+
// SQL and a staged receipt can agree with each other without agreeing with the issuer's signed receipt binding.
|
|
367
|
+
if (receipt.id !== original.id || image(true).confirmationId !== sha(canonical(receipt)).slice(0, 32))
|
|
368
|
+
throw new HubSettingsError("recovery");
|
|
369
|
+
const intent = d.mountRecovery();
|
|
370
|
+
if (intent?.operation.id !== original.id || intent.state !== "pending")
|
|
371
|
+
throw new HubSettingsError("stale");
|
|
372
|
+
expiresAt = Math.min(expiresAt ?? Infinity, original.recovery.expiresAt);
|
|
373
|
+
}
|
|
374
|
+
if (d.inspect().operationId !== original.id || original.kind !== "directory" || !currentProof(() => currentIntent(structuredClone(original))))
|
|
375
|
+
throw new HubSettingsError("denied");
|
|
376
|
+
if (!same(directoryImage(), original.after))
|
|
377
|
+
throw new HubSettingsError("stale");
|
|
378
|
+
const next = JSON.parse(readDirectoryFile(original.id, "old-hub")), secret = readDirectoryFile(original.id, "old-secret", 4096);
|
|
379
|
+
// This is the preauthorized old CONTENT, not a DB/floor/session restore. The SQL participant retains newer security.
|
|
380
|
+
if (sha(canonical(next)) !== original.before.configSha || hubPlanDigest(next) !== original.before.configDigest || sha(secret) !== original.before.bindSecretSha)
|
|
381
|
+
throw new HubSettingsError("recovery");
|
|
382
|
+
const t = now();
|
|
383
|
+
if (expiresAt !== undefined && (!Number.isSafeInteger(expiresAt) || expiresAt <= t))
|
|
384
|
+
throw new HubSettingsError("expired");
|
|
385
|
+
return installDirectory({ actor: original.actor, expected: d.inspect(), before: directoryImage(), next, secret,
|
|
386
|
+
generation: original.previousGeneration, changes: original.changes, recipients: original.recipients, createdAt: t, expiresAt: Math.min(t + PREPARED_MS, expiresAt ?? Infinity) }, () => currentIntent(structuredClone(original)), original);
|
|
387
|
+
},
|
|
388
|
+
};
|
|
389
|
+
const pending = () => existsSync(file(SETTINGS_JOURNAL));
|
|
390
|
+
const webAddressOperation = createHubWebAddressSettingsOperation({ home: deps.home,
|
|
391
|
+
journalPath: SETTINGS_JOURNAL, stagedPath: SETTINGS_STAGED, receiptsPath: SETTINGS_RECEIPTS,
|
|
392
|
+
readHub: deps.readHub, saveHub: deps.saveHub, decision: () => deps.webAddressDecision?.() ?? null, pending, now, step });
|
|
393
|
+
return {
|
|
394
|
+
pending,
|
|
395
|
+
pendingDirectory: () => readJournal()?.v === 2,
|
|
396
|
+
pendingWebAddress: () => readJournal()?.v === 3,
|
|
397
|
+
...(deps.directoryDecision ? { directory: directoryWriter } : {}),
|
|
398
|
+
...(deps.webAddressDecision ? { webAddress: webAddressOperation.api } : {}),
|
|
399
|
+
prepare(op, actor) {
|
|
400
|
+
if (op.kind !== "rename")
|
|
401
|
+
throw new HubSettingsError("invalid");
|
|
402
|
+
const name = hubNameInput(op.name);
|
|
403
|
+
const old = image();
|
|
404
|
+
const from = currentHubName(old.hub);
|
|
405
|
+
if (from === name)
|
|
406
|
+
throw new HubSettingsError("unchanged");
|
|
407
|
+
const next = { ...old.hub };
|
|
408
|
+
if (name === null)
|
|
409
|
+
delete next.name;
|
|
410
|
+
else
|
|
411
|
+
next.name = name;
|
|
412
|
+
const t = now();
|
|
413
|
+
for (const [k, p] of prepared)
|
|
414
|
+
if (p.expiresAt <= t)
|
|
415
|
+
prepared.delete(k);
|
|
416
|
+
if (prepared.size >= MAX_PREPARED)
|
|
417
|
+
prepared.delete(prepared.keys().next().value);
|
|
418
|
+
const ref = randomBytes(24).toString("base64url"), expiresAt = t + PREPARED_MS;
|
|
419
|
+
prepared.set(ref, { op: { kind: "rename", name }, person: personKeyString(actor.person), sessionId: actor.sessionId,
|
|
420
|
+
oldDigest: old.digest, newDigest: hubPlanDigest(next), manifestSha: old.manifestSha, expiresAt });
|
|
421
|
+
return { ref, summary: { field: "name", from, to: name }, expiresAt };
|
|
422
|
+
},
|
|
423
|
+
commit(ref, actor, current) {
|
|
424
|
+
// From here to publication there is no await: nothing else in this process runs in between.
|
|
425
|
+
const p = typeof ref === "string" ? prepared.get(ref) : undefined;
|
|
426
|
+
if (!p)
|
|
427
|
+
throw new HubSettingsError("expired");
|
|
428
|
+
prepared.delete(ref); // one use
|
|
429
|
+
if (p.expiresAt <= now())
|
|
430
|
+
throw new HubSettingsError("expired");
|
|
431
|
+
if (p.person !== personKeyString(actor.person) || p.sessionId !== actor.sessionId || !current())
|
|
432
|
+
throw new HubSettingsError("denied");
|
|
433
|
+
if (pending())
|
|
434
|
+
throw new HubSettingsError("busy");
|
|
435
|
+
const old = image();
|
|
436
|
+
if (old.digest !== p.oldDigest || old.manifestSha !== p.manifestSha)
|
|
437
|
+
throw new HubSettingsError("stale");
|
|
438
|
+
const name = p.op.name, from = currentHubName(old.hub);
|
|
439
|
+
const next = { ...old.hub };
|
|
440
|
+
if (name === null)
|
|
441
|
+
delete next.name;
|
|
442
|
+
else
|
|
443
|
+
next.name = name;
|
|
444
|
+
if (hubPlanDigest(next) !== p.newDigest)
|
|
445
|
+
throw new HubSettingsError("stale");
|
|
446
|
+
const id = randomUUID(), at = new Date(now()).toISOString();
|
|
447
|
+
const receipt = { v: 1, kind: "agend-hub-settings-receipt", id, op: "rename", actor: { kind: "hub-administrator", person: personKeyString(actor.person) },
|
|
448
|
+
requestId: actor.requestId, hubId: old.hub.hubId, oldDigest: old.digest, newDigest: p.newDigest, at };
|
|
449
|
+
const receiptText = `${JSON.stringify(receipt, null, 2)}\n`;
|
|
450
|
+
// The issuer signature binds the receipt: confirmationId is its hash (32 hex, as the v1 schema requires).
|
|
451
|
+
const confirmationId = sha(canonical(receipt)).slice(0, 32);
|
|
452
|
+
const signature = sealHubInitialization({ home: deps.home, planDigest: p.newDigest, confirmationId, committedAt: at });
|
|
453
|
+
const manifestText = `${JSON.stringify({ v: 1, hubId: old.hub.hubId, planDigest: p.newDigest, committedAt: at, confirmationId, signature }, null, 2)}\n`;
|
|
454
|
+
writePrivate(SETTINGS_STAGED, staged(id, "receipt"), receiptText);
|
|
455
|
+
writePrivate(SETTINGS_STAGED, staged(id, "manifest"), manifestText);
|
|
456
|
+
const journal = { v: 1, id, op: "rename", phase: "prepared", old: { digest: old.digest, manifestSha: old.manifestSha },
|
|
457
|
+
new: { digest: p.newDigest, manifestSha: sha(manifestText), name } };
|
|
458
|
+
writeJournal(journal);
|
|
459
|
+
step("staged");
|
|
460
|
+
// The commit point: the image is still the one prepared, and the person and session still hold.
|
|
461
|
+
// Any refusal here (the pair changed, stopped verifying, or the session ended) cancels: the staged files go, nothing in
|
|
462
|
+
// force was touched, and no journal is left to make the next commit wait.
|
|
463
|
+
let again = null;
|
|
464
|
+
try {
|
|
465
|
+
again = image();
|
|
466
|
+
}
|
|
467
|
+
catch { /* the pair no longer verifies: as stale */ }
|
|
468
|
+
if (!again || again.digest !== p.oldDigest || again.manifestSha !== p.manifestSha || !current()) {
|
|
469
|
+
cleanup(id);
|
|
470
|
+
throw new HubSettingsError("stale");
|
|
471
|
+
}
|
|
472
|
+
writeJournal({ ...journal, phase: "committed" });
|
|
473
|
+
step("committed");
|
|
474
|
+
// Past the commit point a failure leaves the journal committed: the next Hub apply calls recover() first, which
|
|
475
|
+
// finishes the change (or refuses, overwriting nothing). Until then the running Hub keeps its mounted settings.
|
|
476
|
+
writePrivate("hub", MANIFEST, manifestText);
|
|
477
|
+
step("manifest");
|
|
478
|
+
deps.saveHub(namePatch(name));
|
|
479
|
+
step("config");
|
|
480
|
+
// What was saved must be exactly what was sealed, and the pair must verify; anything else past the commit point is a
|
|
481
|
+
// recovery (the journal stays committed; recover() then finishes it or refuses, overwriting nothing).
|
|
482
|
+
if (hubPlanDigest(obj(deps.readHub())) !== p.newDigest)
|
|
483
|
+
throw new HubSettingsError("recovery", "the saved settings differ from the sealed ones");
|
|
484
|
+
try {
|
|
485
|
+
image();
|
|
486
|
+
}
|
|
487
|
+
catch {
|
|
488
|
+
throw new HubSettingsError("recovery", "the new pair does not verify");
|
|
489
|
+
}
|
|
490
|
+
finish({ ...journal, phase: "committed" });
|
|
491
|
+
return { receiptId: id, summary: { field: "name", from, to: name } };
|
|
492
|
+
},
|
|
493
|
+
recover() {
|
|
494
|
+
const j = readJournal();
|
|
495
|
+
if (!j)
|
|
496
|
+
return;
|
|
497
|
+
if (j.v === 3) {
|
|
498
|
+
webAddressOperation.recover(j);
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
if (j.v === 2) {
|
|
502
|
+
finishDirectory(j);
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
if (j.phase === "prepared") {
|
|
506
|
+
cleanup(j.id);
|
|
507
|
+
return;
|
|
508
|
+
} // nothing in force changed
|
|
509
|
+
if (j.phase === "done") {
|
|
510
|
+
cleanup(j.id);
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
// committed: finish each file that is still old, keep each that is new; anything else is not ours to overwrite.
|
|
514
|
+
// Both files are judged before either is written, so a refusal leaves both exactly as they were.
|
|
515
|
+
const manifestSha = sha(readManifest());
|
|
516
|
+
const stagedManifest = readFileSync(privatePath(deps.home, staged(j.id, "manifest")), "utf8");
|
|
517
|
+
if (sha(stagedManifest) !== j.new.manifestSha)
|
|
518
|
+
throw new HubSettingsError("recovery", "the staged manifest changed");
|
|
519
|
+
if (manifestSha !== j.new.manifestSha && manifestSha !== j.old.manifestSha)
|
|
520
|
+
throw new HubSettingsError("recovery", "the manifest changed outside this commit");
|
|
521
|
+
const digest = hubPlanDigest(obj(deps.readHub()));
|
|
522
|
+
if (digest !== j.new.digest && digest !== j.old.digest)
|
|
523
|
+
throw new HubSettingsError("recovery", "hub.* changed outside this commit");
|
|
524
|
+
if (manifestSha !== j.new.manifestSha)
|
|
525
|
+
writePrivate("hub", MANIFEST, stagedManifest);
|
|
526
|
+
step("manifest");
|
|
527
|
+
if (digest !== j.new.digest) {
|
|
528
|
+
deps.saveHub(namePatch(j.new.name));
|
|
529
|
+
if (hubPlanDigest(obj(deps.readHub())) !== j.new.digest)
|
|
530
|
+
throw new HubSettingsError("recovery", "the saved settings differ from the sealed ones");
|
|
531
|
+
}
|
|
532
|
+
step("config");
|
|
533
|
+
finish(j);
|
|
534
|
+
},
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
//# sourceMappingURL=settings-commit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-commit.js","sourceRoot":"","sources":["../../src/hub/settings-commit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAA2B,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAuF,MAAM,2BA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,UAAU,EAAE,6BAA6B,CAAC,CAAC;YACrH,IAAI,WAAW,KAAK,CAAC,CAAC,GAAG,CAAC,WAAW,IAAI,WAAW,KAAK,CAAC,CAAC,GAAG,CAAC,WAAW;gBAAE,MAAM,IAAI,gBAAgB,CAAC,UAAU,EAAE,0CAA0C,CAAC,CAAC;YAC/J,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YAClD,IAAI,MAAM,KAAK,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,MAAM,KAAK,CAAC,CAAC,GAAG,CAAC,MAAM;gBAAE,MAAM,IAAI,gBAAgB,CAAC,UAAU,EAAE,mCAAmC,CAAC,CAAC;YACpI,IAAI,WAAW,KAAK,CAAC,CAAC,GAAG,CAAC,WAAW;gBAAE,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;YACrF,IAAI,CAAC,UAAU,CAAC,CAAC;YACjB,IAAI,MAAM,KAAK,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;gBAC5B,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;gBACpC,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,MAAM;oBAAE,MAAM,IAAI,gBAAgB,CAAC,UAAU,EAAE,gDAAgD,CAAC,CAAC;YACpJ,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,CAAC;YACf,MAAM,CAAC,CAAC,CAAC,CAAC;QACZ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { inspectDirectoryCertificate, fetchDirectoryCa } from "./init/directory-certificate.js";
|
|
2
|
+
import type { HubDirectoryProofContext, HubDirectoryProofSource } from "./settings-directory-proof.js";
|
|
3
|
+
import type { PersonKey } from "./types.js";
|
|
4
|
+
export declare class HubDirectorySettingsCaError extends Error {
|
|
5
|
+
readonly code: "ca-invalid" | "ca-trust" | "ca-auth-required" | "ca-unavailable" | "ca-unsupported";
|
|
6
|
+
constructor(code: "ca-invalid" | "ca-trust" | "ca-auth-required" | "ca-unavailable" | "ca-unsupported");
|
|
7
|
+
}
|
|
8
|
+
export interface HubDirectorySettingsCaDeps {
|
|
9
|
+
/** Acquires the SAME configured-admin/D3 source checks as the other settings operations. */
|
|
10
|
+
source(context: HubDirectoryProofContext): HubDirectoryProofSource;
|
|
11
|
+
withDirectoryRead<T>(person: PersonKey, work: () => Promise<T>): Promise<T>;
|
|
12
|
+
now?(): number;
|
|
13
|
+
/** Inert tests only; production uses the existing pinned TLS/AIA implementation. */
|
|
14
|
+
inspectCertificate?: typeof inspectDirectoryCertificate;
|
|
15
|
+
fetchCa?: typeof fetchDirectoryCa;
|
|
16
|
+
}
|
|
17
|
+
export declare function createHubDirectorySettingsCa(options: HubDirectorySettingsCaDeps): {
|
|
18
|
+
inspect(raw: unknown, input: HubDirectoryProofContext): Promise<{
|
|
19
|
+
ref: string;
|
|
20
|
+
expiresAt: number;
|
|
21
|
+
server: string;
|
|
22
|
+
certificate: import("./init/directory-certificate.js").DirectoryCertificateInfo;
|
|
23
|
+
}>;
|
|
24
|
+
fetch(raw: unknown, input: HubDirectoryProofContext): Promise<{
|
|
25
|
+
server: string;
|
|
26
|
+
leafFingerprint: string;
|
|
27
|
+
caPem: string;
|
|
28
|
+
certificates: import("./init/directory-certificate.js").DirectoryCertificateInfo[];
|
|
29
|
+
}>;
|
|
30
|
+
close(): void;
|
|
31
|
+
};
|