@songsid/agend 2.3.5-alpha.5 → 2.3.5-beta.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 +0 -2
- package/README.zh-TW.md +0 -2
- package/THIRD_PARTY_NOTICES.md +0 -68
- package/dist/agent-endpoint.d.ts +1 -5
- package/dist/agent-endpoint.js +2 -12
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-file-read.js +1 -1
- package/dist/agent-file-read.js.map +1 -1
- package/dist/auth-api.d.ts +0 -48
- package/dist/auth-api.js +4 -250
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/session-authorizations.d.ts +2 -0
- package/dist/authority/session-authorizations.js +7 -1
- package/dist/authority/session-authorizations.js.map +1 -1
- package/dist/authority/web-authority.d.ts +2 -12
- package/dist/authority/web-authority.js +4 -25
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/claude-code.d.ts +12 -15
- package/dist/backend/claude-code.js +133 -152
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex-footer-hints.d.ts +0 -3
- package/dist/backend/codex-footer-hints.js +0 -14
- package/dist/backend/codex-footer-hints.js.map +1 -1
- package/dist/backend/codex-package.d.ts +2 -5
- package/dist/backend/codex-package.js +5 -1
- package/dist/backend/codex-package.js.map +1 -1
- package/dist/backend/codex-quota-history.js +19 -4
- package/dist/backend/codex-quota-history.js.map +1 -1
- package/dist/backend/codex.d.ts +115 -142
- package/dist/backend/codex.js +1094 -1187
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/grok.d.ts +0 -2
- package/dist/backend/grok.js +0 -22
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/types.d.ts +2 -7
- package/dist/backend/types.js.map +1 -1
- package/dist/bundled-tmux-guard.d.ts +21 -0
- package/dist/bundled-tmux-guard.js +96 -0
- package/dist/bundled-tmux-guard.js.map +1 -0
- package/dist/channel/ipc-bridge.d.ts +0 -2
- package/dist/channel/mcp-tools.js +2 -2
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/classic-channel-manager.d.ts +2 -0
- package/dist/classic-channel-manager.js +5 -1
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/cli.js +30 -127
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +13 -74
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +3 -17
- package/dist/config.js.map +1 -1
- package/dist/daemon.d.ts +5 -72
- package/dist/daemon.js +275 -869
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +3 -15
- package/dist/delivery-consumed-watch.js +1 -23
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +0 -5
- package/dist/delivery-outbox.js +4 -32
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +42 -2
- package/dist/delivery-reconciliation.js +164 -2
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/doctor.js +9 -20
- package/dist/doctor.js.map +1 -1
- package/dist/fleet-context.d.ts +2 -2
- package/dist/fleet-level-config.d.ts +1 -1
- package/dist/fleet-level-config.js +0 -2
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +9 -498
- package/dist/fleet-manager.js +202 -2849
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-instance.d.ts +0 -7
- package/dist/general-instance.js +3 -20
- package/dist/general-instance.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +18 -50
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +2 -5
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +2 -2
- 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 +13 -23
- package/dist/instance-config-impact.js +4 -8
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +3 -22
- package/dist/instance-lifecycle.js +176 -393
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +0 -2
- package/dist/instructions.js +0 -6
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +2 -147
- package/dist/locale.js.map +1 -1
- package/dist/login-flows.d.ts +7 -8
- package/dist/login-flows.js +1 -24
- package/dist/login-flows.js.map +1 -1
- package/dist/ls-rows.js +4 -3
- package/dist/ls-rows.js.map +1 -1
- package/dist/muse-usage-relay.d.ts +2 -0
- package/dist/muse-usage-relay.js +5 -3
- package/dist/muse-usage-relay.js.map +1 -1
- package/dist/needs-you-hub.d.ts +0 -5
- package/dist/needs-you-hub.js +2 -18
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +2 -45
- package/dist/needs-you.js +2 -26
- 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 +0 -11
- package/dist/office-share.js +0 -14
- package/dist/office-share.js.map +1 -1
- package/dist/outbound-handlers.d.ts +2 -30
- package/dist/outbound-handlers.js +4 -109
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +1 -71
- package/dist/outbound-schemas.js +14 -36
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-quota-history.d.ts +0 -2
- package/dist/pane-quota-history.js +0 -20
- 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/public-web-gateway.js +0 -16
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +0 -11
- package/dist/public-web-link.js +0 -13
- package/dist/public-web-link.js.map +1 -1
- package/dist/quickstart-api.js +5 -9
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +0 -6
- package/dist/quickstart.js +6 -44
- package/dist/quickstart.js.map +1 -1
- package/dist/quota-notice-config.d.ts +22 -0
- package/dist/quota-notice-config.js +41 -0
- package/dist/quota-notice-config.js.map +1 -0
- package/dist/scheduler/task-board-text.js +1 -1
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +0 -4
- package/dist/scheduler/task-board.js +3 -9
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/service-installer.d.ts +2 -7
- package/dist/service-installer.js +10 -13
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +0 -12
- package/dist/settings-api.js +7 -487
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +0 -7
- package/dist/settings-baseline.js +1 -3
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +7 -35
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +1 -16
- package/dist/settings-confirmation.js +9 -47
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +0 -17
- package/dist/settings-effect.js +1 -155
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +0 -4
- package/dist/settings-http-confirmation.js +3 -43
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-instance-patch.js +1 -1
- package/dist/settings-instance-patch.js.map +1 -1
- package/dist/settings-request-capability.d.ts +0 -2
- package/dist/settings-request-capability.js +0 -4
- package/dist/settings-request-capability.js.map +1 -1
- package/dist/settings-transaction.d.ts +0 -4
- package/dist/settings-transaction.js +0 -9
- package/dist/settings-transaction.js.map +1 -1
- package/dist/setup-form.js +3 -6
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-i18n.js +0 -3
- package/dist/setup-i18n.js.map +1 -1
- package/dist/setup-wizard.js +2 -6
- package/dist/setup-wizard.js.map +1 -1
- package/dist/task-board-tool.d.ts +1 -2
- package/dist/task-board-tool.js +6 -62
- package/dist/task-board-tool.js.map +1 -1
- package/dist/tmux-control.d.ts +1 -2
- package/dist/tmux-control.js +4 -4
- package/dist/tmux-control.js.map +1 -1
- package/dist/tmux-exec-helper.js +1 -32
- package/dist/tmux-exec-helper.js.map +1 -1
- package/dist/tmux-manager.d.ts +2 -3
- package/dist/tmux-manager.js +36 -45
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tmux-read.js +3 -4
- package/dist/tmux-read.js.map +1 -1
- package/dist/tool-permissions.js +1 -2
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +5 -9
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +1 -1
- package/dist/transcript-delta-reader.js +1 -1
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/transcript-monitor.d.ts +0 -3
- package/dist/transcript-monitor.js +51 -27
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-sources.d.ts +0 -5
- package/dist/transcript-sources.js +79 -8
- package/dist/transcript-sources.js.map +1 -1
- package/dist/types.d.ts +3 -29
- package/dist/ui/app.html +8 -1
- package/dist/ui/backend-signin.js +21 -39
- package/dist/ui/chat-ambient.js +1 -1
- package/dist/ui/chat-md-strings.js +9 -3
- package/dist/ui/chat-render.js +670 -3
- package/dist/ui/chat-store.js +3 -14
- package/dist/ui/chat-strings.js +285 -3
- package/dist/ui/chat-thread.js +969 -3
- package/dist/ui/chat-time.js +80 -3
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/fleet-office-pack.d.ts +0 -9
- package/dist/ui/fleet-office-pack.js +4 -76
- package/dist/ui/fleet-office-skin.js +5 -23
- package/dist/ui/fleet-office-store.js +0 -5
- package/dist/ui/fleet-office.js +6 -173
- package/dist/ui/fleet-task-card.js +4 -8
- package/dist/ui/fleet-task-common.js +2 -2
- package/dist/ui/fleet-tasks.js +39 -125
- package/dist/ui/html-attachment.js +40 -3
- package/dist/ui/office-share-page.js +2 -4
- package/dist/ui/panel-chat.js +75 -90
- package/dist/ui/panel-details.js +2 -3
- package/dist/ui/panel-fleet.js +18 -105
- package/dist/ui/panel-log.js +2 -2
- package/dist/ui/panel-needs.js +4 -162
- package/dist/ui/panel-notices.js +4 -3
- package/dist/ui/panel-settings.js +202 -281
- package/dist/ui/preview-pages.js +1 -1
- package/dist/ui/preview-panel.js +13 -21
- package/dist/ui/preview-versions.js +1 -1
- package/dist/ui/preview.js +476 -3
- package/dist/ui/search-dialog.js +3 -4
- package/dist/ui/settings-appearance.js +23 -122
- package/dist/ui/settings-catalog.js +10 -37
- package/dist/ui/settings-confirm.js +1 -3
- package/dist/ui/settings-dialogs.js +20 -48
- package/dist/ui/settings-guests.js +14 -27
- package/dist/ui/settings-model.js +1 -10
- package/dist/ui/settings-quota-notice.js +100 -0
- package/dist/ui/settings-registry.js +5 -15
- package/dist/ui/settings-strings.js +32 -105
- package/dist/ui/settings-web-authority.js +13 -18
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-route.js +3 -12
- package/dist/ui/shared/app-session.js +2 -6
- package/dist/ui/shared/app-shell.js +26 -87
- package/dist/ui/shared/app-store.js +2 -3
- package/dist/ui/shared/app-stream.js +1 -3
- package/dist/ui/shared/app.css +5 -1368
- package/dist/ui/shared/app.js +5 -17
- package/dist/ui/shared/header-tools.js +9 -9
- package/dist/ui/shared/instance-nav.js +7 -34
- package/dist/ui/shared/instance-switch.js +3 -4
- package/dist/ui/shared/loading.css +37 -0
- package/dist/ui/shared/signin.js +6 -211
- package/dist/ui/shared/tokens.css +0 -1
- package/dist/ui/shared/ui-dialog.js +2 -2
- package/dist/ui/shared/ui-menu.js +10 -30
- package/dist/ui/shared/ui-states.js +14 -3
- package/dist/ui/shared/vendor/vendor.json +2 -19
- package/dist/ui/shared/view-strings.js +0 -8
- package/dist/ui/signin.html +5 -23
- package/dist/unattended-install.js +1 -2
- package/dist/unattended-install.js.map +1 -1
- package/dist/usage/providers.d.ts +5 -0
- package/dist/usage/providers.js +6 -2
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-notices.d.ts +38 -0
- package/dist/usage/quota-notices.js +160 -0
- package/dist/usage/quota-notices.js.map +1 -0
- package/dist/usage/usage-api.d.ts +1 -0
- package/dist/usage/usage-api.js +16 -0
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/view-api.js +7 -5
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +2 -80
- package/dist/web-api.js +10 -513
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +1 -23
- package/dist/web-backend-login.js +17 -11
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-history.d.ts +2 -19
- package/dist/web-chat-history.js +3 -72
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-office-skins.d.ts +0 -9
- package/dist/web-office-skins.js +1 -16
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-only-fleet.d.ts +0 -20
- package/dist/web-only-fleet.js +0 -21
- package/dist/web-only-fleet.js.map +1 -1
- package/dist/web-session.d.ts +0 -42
- package/dist/web-session.js +0 -9
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +1 -3
- package/dist/web-settings-patch.js +1 -4
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +1 -10
- package/dist/web-shell-routes.js +2 -14
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-terminal.d.ts +30 -4
- package/dist/web-terminal.js +6 -9
- package/dist/web-terminal.js.map +1 -1
- package/dist/yaml-shared-nodes.js +3 -8
- package/dist/yaml-shared-nodes.js.map +1 -1
- package/launcher/agend-install.cjs +1 -8
- package/launcher/postinstall.cjs +2 -27
- package/package.json +3 -10
- package/templates/launchd.plist.ejs +1 -3
- package/dist/accounts-view.d.ts +0 -97
- package/dist/accounts-view.js +0 -116
- package/dist/accounts-view.js.map +0 -1
- package/dist/agent-runtime-api.d.ts +0 -4
- package/dist/agent-runtime-api.js +0 -59
- package/dist/agent-runtime-api.js.map +0 -1
- package/dist/agent-runtime-change.d.ts +0 -76
- package/dist/agent-runtime-change.js +0 -114
- package/dist/agent-runtime-change.js.map +0 -1
- package/dist/agent-workspace.d.ts +0 -93
- package/dist/agent-workspace.js +0 -353
- package/dist/agent-workspace.js.map +0 -1
- package/dist/backend/grok-model-cache.d.ts +0 -7
- package/dist/backend/grok-model-cache.js +0 -65
- package/dist/backend/grok-model-cache.js.map +0 -1
- package/dist/backend/native-pane.d.ts +0 -11
- package/dist/backend/native-pane.js +0 -59
- package/dist/backend/native-pane.js.map +0 -1
- package/dist/build-provenance-cli.d.ts +0 -3
- package/dist/build-provenance-cli.js +0 -11
- package/dist/build-provenance-cli.js.map +0 -1
- package/dist/build-provenance.d.ts +0 -20
- package/dist/build-provenance.js +0 -67
- package/dist/build-provenance.js.map +0 -1
- package/dist/build-provenance.json +0 -1
- package/dist/claude-auth-status.d.ts +0 -48
- package/dist/claude-auth-status.js +0 -149
- package/dist/claude-auth-status.js.map +0 -1
- package/dist/fleet-windows-runtime.d.ts +0 -98
- package/dist/fleet-windows-runtime.js +0 -467
- package/dist/fleet-windows-runtime.js.map +0 -1
- package/dist/general-binding.d.ts +0 -85
- package/dist/general-binding.js +0 -298
- package/dist/general-binding.js.map +0 -1
- package/dist/general-host-owner.d.ts +0 -8
- package/dist/general-host-owner.js +0 -26
- package/dist/general-host-owner.js.map +0 -1
- package/dist/general-role.d.ts +0 -5
- package/dist/general-role.js +0 -27
- package/dist/general-role.js.map +0 -1
- package/dist/hub/admission.d.ts +0 -28
- package/dist/hub/admission.js +0 -62
- package/dist/hub/admission.js.map +0 -1
- package/dist/hub/attachments/limits.d.ts +0 -20
- package/dist/hub/attachments/limits.js +0 -48
- package/dist/hub/attachments/limits.js.map +0 -1
- package/dist/hub/attachments/store.d.ts +0 -116
- package/dist/hub/attachments/store.js +0 -246
- package/dist/hub/attachments/store.js.map +0 -1
- package/dist/hub/audit/index.d.ts +0 -62
- package/dist/hub/audit/index.js +0 -344
- package/dist/hub/audit/index.js.map +0 -1
- package/dist/hub/browser-certificate.d.ts +0 -38
- package/dist/hub/browser-certificate.js +0 -247
- package/dist/hub/browser-certificate.js.map +0 -1
- package/dist/hub/buttons-model.d.ts +0 -9
- package/dist/hub/buttons-model.js +0 -42
- package/dist/hub/buttons-model.js.map +0 -1
- package/dist/hub/buttons.d.ts +0 -54
- package/dist/hub/buttons.js +0 -346
- package/dist/hub/buttons.js.map +0 -1
- package/dist/hub/catalog.d.ts +0 -74
- package/dist/hub/catalog.js +0 -195
- package/dist/hub/catalog.js.map +0 -1
- package/dist/hub/client.d.ts +0 -69
- package/dist/hub/client.js +0 -300
- package/dist/hub/client.js.map +0 -1
- package/dist/hub/compose/member.d.ts +0 -139
- package/dist/hub/compose/member.js +0 -450
- package/dist/hub/compose/member.js.map +0 -1
- package/dist/hub/compose/server.d.ts +0 -77
- package/dist/hub/compose/server.js +0 -349
- package/dist/hub/compose/server.js.map +0 -1
- package/dist/hub/compose/views.d.ts +0 -12
- package/dist/hub/compose/views.js +0 -4
- package/dist/hub/compose/views.js.map +0 -1
- package/dist/hub/db.d.ts +0 -56
- package/dist/hub/db.js +0 -188
- package/dist/hub/db.js.map +0 -1
- package/dist/hub/directory/config.d.ts +0 -39
- package/dist/hub/directory/config.js +0 -108
- package/dist/hub/directory/config.js.map +0 -1
- package/dist/hub/directory/directory.d.ts +0 -18
- package/dist/hub/directory/directory.js +0 -320
- package/dist/hub/directory/directory.js.map +0 -1
- package/dist/hub/directory/index.d.ts +0 -7
- package/dist/hub/directory/index.js +0 -4
- package/dist/hub/directory/index.js.map +0 -1
- package/dist/hub/directory/profiles.d.ts +0 -41
- package/dist/hub/directory/profiles.js +0 -90
- package/dist/hub/directory/profiles.js.map +0 -1
- package/dist/hub/directory/types.d.ts +0 -71
- package/dist/hub/directory/types.js +0 -14
- package/dist/hub/directory/types.js.map +0 -1
- package/dist/hub/execution/cli-provider.d.ts +0 -23
- package/dist/hub/execution/cli-provider.js +0 -341
- package/dist/hub/execution/cli-provider.js.map +0 -1
- package/dist/hub/execution/index.d.ts +0 -13
- package/dist/hub/execution/index.js +0 -8
- package/dist/hub/execution/index.js.map +0 -1
- package/dist/hub/execution/model-broker.d.ts +0 -24
- package/dist/hub/execution/model-broker.js +0 -208
- package/dist/hub/execution/model-broker.js.map +0 -1
- package/dist/hub/execution/provider-setup.d.ts +0 -11
- package/dist/hub/execution/provider-setup.js +0 -21
- package/dist/hub/execution/provider-setup.js.map +0 -1
- package/dist/hub/execution/sandbox-runner.d.ts +0 -1
- package/dist/hub/execution/sandbox-runner.js +0 -221
- package/dist/hub/execution/sandbox-runner.js.map +0 -1
- package/dist/hub/execution/service.d.ts +0 -136
- package/dist/hub/execution/service.js +0 -459
- package/dist/hub/execution/service.js.map +0 -1
- package/dist/hub/execution/store.d.ts +0 -61
- package/dist/hub/execution/store.js +0 -182
- package/dist/hub/execution/store.js.map +0 -1
- package/dist/hub/execution/views.d.ts +0 -20
- package/dist/hub/execution/views.js +0 -48
- package/dist/hub/execution/views.js.map +0 -1
- package/dist/hub/http/compose.d.ts +0 -20
- package/dist/hub/http/compose.js +0 -518
- package/dist/hub/http/compose.js.map +0 -1
- package/dist/hub/http/core.d.ts +0 -49
- package/dist/hub/http/core.js +0 -124
- package/dist/hub/http/core.js.map +0 -1
- package/dist/hub/http/deps.d.ts +0 -61
- package/dist/hub/http/deps.js +0 -2
- package/dist/hub/http/deps.js.map +0 -1
- package/dist/hub/http/schema.d.ts +0 -14
- package/dist/hub/http/schema.js +0 -80
- package/dist/hub/http/schema.js.map +0 -1
- package/dist/hub/identity.d.ts +0 -32
- package/dist/hub/identity.js +0 -80
- package/dist/hub/identity.js.map +0 -1
- package/dist/hub/init/browser-certificate.d.ts +0 -9
- package/dist/hub/init/browser-certificate.js +0 -78
- package/dist/hub/init/browser-certificate.js.map +0 -1
- package/dist/hub/init/browser-tls.d.ts +0 -18
- package/dist/hub/init/browser-tls.js +0 -62
- package/dist/hub/init/browser-tls.js.map +0 -1
- package/dist/hub/init/cli.d.ts +0 -3
- package/dist/hub/init/cli.js +0 -83
- package/dist/hub/init/cli.js.map +0 -1
- package/dist/hub/init/directory-certificate.d.ts +0 -24
- package/dist/hub/init/directory-certificate.js +0 -222
- package/dist/hub/init/directory-certificate.js.map +0 -1
- package/dist/hub/init/existing-fleet.d.ts +0 -6
- package/dist/hub/init/existing-fleet.js +0 -58
- package/dist/hub/init/existing-fleet.js.map +0 -1
- package/dist/hub/init/handoff.d.ts +0 -8
- package/dist/hub/init/handoff.js +0 -36
- package/dist/hub/init/handoff.js.map +0 -1
- package/dist/hub/init/identity.d.ts +0 -5
- package/dist/hub/init/identity.js +0 -24
- package/dist/hub/init/identity.js.map +0 -1
- package/dist/hub/init/initializer.d.ts +0 -24
- package/dist/hub/init/initializer.js +0 -385
- package/dist/hub/init/initializer.js.map +0 -1
- package/dist/hub/init/inventory.d.ts +0 -17
- package/dist/hub/init/inventory.js +0 -33
- package/dist/hub/init/inventory.js.map +0 -1
- package/dist/hub/init/layout.d.ts +0 -32
- package/dist/hub/init/layout.js +0 -53
- package/dist/hub/init/layout.js.map +0 -1
- package/dist/hub/init/network.d.ts +0 -18
- package/dist/hub/init/network.js +0 -104
- package/dist/hub/init/network.js.map +0 -1
- package/dist/hub/init/plan-digest.d.ts +0 -5
- package/dist/hub/init/plan-digest.js +0 -47
- package/dist/hub/init/plan-digest.js.map +0 -1
- package/dist/hub/init/prompt.d.ts +0 -26
- package/dist/hub/init/prompt.js +0 -110
- package/dist/hub/init/prompt.js.map +0 -1
- package/dist/hub/init/secret-file.d.ts +0 -1
- package/dist/hub/init/secret-file.js +0 -59
- package/dist/hub/init/secret-file.js.map +0 -1
- package/dist/hub/init/text.d.ts +0 -127
- package/dist/hub/init/text.js +0 -247
- package/dist/hub/init/text.js.map +0 -1
- package/dist/hub/init/types.d.ts +0 -114
- package/dist/hub/init/types.js +0 -9
- package/dist/hub/init/types.js.map +0 -1
- package/dist/hub/init/wizard.d.ts +0 -34
- package/dist/hub/init/wizard.js +0 -554
- package/dist/hub/init/wizard.js.map +0 -1
- package/dist/hub/initialization.d.ts +0 -23
- package/dist/hub/initialization.js +0 -28
- package/dist/hub/initialization.js.map +0 -1
- package/dist/hub/member/agent-mode.d.ts +0 -6
- package/dist/hub/member/agent-mode.js +0 -23
- package/dist/hub/member/agent-mode.js.map +0 -1
- package/dist/hub/member/attachments.d.ts +0 -29
- package/dist/hub/member/attachments.js +0 -107
- package/dist/hub/member/attachments.js.map +0 -1
- package/dist/hub/member/exposure-api.d.ts +0 -87
- package/dist/hub/member/exposure-api.js +0 -64
- package/dist/hub/member/exposure-api.js.map +0 -1
- package/dist/hub/member/exposures.d.ts +0 -123
- package/dist/hub/member/exposures.js +0 -282
- package/dist/hub/member/exposures.js.map +0 -1
- package/dist/hub/member/pairing-api.d.ts +0 -85
- package/dist/hub/member/pairing-api.js +0 -385
- package/dist/hub/member/pairing-api.js.map +0 -1
- package/dist/hub/member/quota.d.ts +0 -20
- package/dist/hub/member/quota.js +0 -98
- package/dist/hub/member/quota.js.map +0 -1
- package/dist/hub/member-journal.d.ts +0 -104
- package/dist/hub/member-journal.js +0 -336
- package/dist/hub/member-journal.js.map +0 -1
- package/dist/hub/member-reconciliation.d.ts +0 -14
- package/dist/hub/member-reconciliation.js +0 -97
- package/dist/hub/member-reconciliation.js.map +0 -1
- package/dist/hub/mount.d.ts +0 -39
- package/dist/hub/mount.js +0 -123
- package/dist/hub/mount.js.map +0 -1
- package/dist/hub/pairing-client.d.ts +0 -17
- package/dist/hub/pairing-client.js +0 -108
- package/dist/hub/pairing-client.js.map +0 -1
- package/dist/hub/pairing.d.ts +0 -65
- package/dist/hub/pairing.js +0 -211
- package/dist/hub/pairing.js.map +0 -1
- package/dist/hub/policy.d.ts +0 -63
- package/dist/hub/policy.js +0 -147
- package/dist/hub/policy.js.map +0 -1
- package/dist/hub/preview.d.ts +0 -32
- package/dist/hub/preview.js +0 -64
- package/dist/hub/preview.js.map +0 -1
- package/dist/hub/private-files.d.ts +0 -5
- package/dist/hub/private-files.js +0 -44
- package/dist/hub/private-files.js.map +0 -1
- package/dist/hub/profile.d.ts +0 -59
- package/dist/hub/profile.js +0 -73
- package/dist/hub/profile.js.map +0 -1
- package/dist/hub/protocol.d.ts +0 -779
- package/dist/hub/protocol.js +0 -93
- package/dist/hub/protocol.js.map +0 -1
- package/dist/hub/quota.d.ts +0 -24
- package/dist/hub/quota.js +0 -112
- package/dist/hub/quota.js.map +0 -1
- package/dist/hub/representative.d.ts +0 -141
- package/dist/hub/representative.js +0 -528
- package/dist/hub/representative.js.map +0 -1
- package/dist/hub/retention.d.ts +0 -17
- package/dist/hub/retention.js +0 -45
- package/dist/hub/retention.js.map +0 -1
- package/dist/hub/rooms.d.ts +0 -120
- package/dist/hub/rooms.js +0 -535
- package/dist/hub/rooms.js.map +0 -1
- package/dist/hub/runtime.d.ts +0 -106
- package/dist/hub/runtime.js +0 -298
- package/dist/hub/runtime.js.map +0 -1
- package/dist/hub/server.d.ts +0 -56
- package/dist/hub/server.js +0 -202
- package/dist/hub/server.js.map +0 -1
- package/dist/hub/service-start.d.ts +0 -17
- package/dist/hub/service-start.js +0 -109
- package/dist/hub/service-start.js.map +0 -1
- package/dist/hub/sessions.d.ts +0 -53
- package/dist/hub/sessions.js +0 -196
- package/dist/hub/sessions.js.map +0 -1
- package/dist/hub/socket.d.ts +0 -24
- package/dist/hub/socket.js +0 -79
- package/dist/hub/socket.js.map +0 -1
- package/dist/hub/store.d.ts +0 -77
- package/dist/hub/store.js +0 -88
- package/dist/hub/store.js.map +0 -1
- package/dist/hub/tls.d.ts +0 -31
- package/dist/hub/tls.js +0 -135
- package/dist/hub/tls.js.map +0 -1
- package/dist/hub/types.d.ts +0 -401
- package/dist/hub/types.js +0 -2
- package/dist/hub/types.js.map +0 -1
- package/dist/hub/validation.d.ts +0 -33
- package/dist/hub/validation.js +0 -136
- package/dist/hub/validation.js.map +0 -1
- package/dist/hub/version-floor.d.ts +0 -10
- package/dist/hub/version-floor.js +0 -45
- package/dist/hub/version-floor.js.map +0 -1
- package/dist/hub-browser-certificate-policy.d.ts +0 -31
- package/dist/hub-browser-certificate-policy.js +0 -25
- package/dist/hub-browser-certificate-policy.js.map +0 -1
- package/dist/hub-membership-settings.d.ts +0 -6
- package/dist/hub-membership-settings.js +0 -21
- package/dist/hub-membership-settings.js.map +0 -1
- package/dist/hub-mode.d.ts +0 -15
- package/dist/hub-mode.js +0 -17
- package/dist/hub-mode.js.map +0 -1
- package/dist/hub-pairing-summary.d.ts +0 -48
- package/dist/hub-pairing-summary.js +0 -36
- package/dist/hub-pairing-summary.js.map +0 -1
- package/dist/hub-report-target.d.ts +0 -32
- package/dist/hub-report-target.js +0 -33
- package/dist/hub-report-target.js.map +0 -1
- package/dist/hub-retention-policy.d.ts +0 -14
- package/dist/hub-retention-policy.js +0 -15
- package/dist/hub-retention-policy.js.map +0 -1
- package/dist/launchd-service-domain.d.ts +0 -5
- package/dist/launchd-service-domain.js +0 -21
- package/dist/launchd-service-domain.js.map +0 -1
- package/dist/local-pane-endpoint.d.ts +0 -46
- package/dist/local-pane-endpoint.js +0 -189
- package/dist/local-pane-endpoint.js.map +0 -1
- package/dist/local-pane-launcher.d.ts +0 -2
- package/dist/local-pane-launcher.js +0 -38
- package/dist/local-pane-launcher.js.map +0 -1
- package/dist/local-pane-stage.ps1 +0 -101
- package/dist/model-catalog-defaults.d.ts +0 -14
- package/dist/model-catalog-defaults.js +0 -20
- package/dist/model-catalog-defaults.js.map +0 -1
- package/dist/native-agent-admission.d.ts +0 -7
- package/dist/native-agent-admission.js +0 -26
- package/dist/native-agent-admission.js.map +0 -1
- package/dist/native-daemon-client.d.ts +0 -13
- package/dist/native-daemon-client.js +0 -28
- package/dist/native-daemon-client.js.map +0 -1
- package/dist/native-instance-api.d.ts +0 -13
- package/dist/native-instance-api.js +0 -217
- package/dist/native-instance-api.js.map +0 -1
- package/dist/native-instance-input.d.ts +0 -87
- package/dist/native-instance-input.js +0 -59
- package/dist/native-instance-input.js.map +0 -1
- package/dist/native-instance-registry.d.ts +0 -38
- package/dist/native-instance-registry.js +0 -129
- package/dist/native-instance-registry.js.map +0 -1
- package/dist/native-mcp.d.ts +0 -43
- package/dist/native-mcp.js +0 -291
- package/dist/native-mcp.js.map +0 -1
- package/dist/native-model-catalog.d.ts +0 -5
- package/dist/native-model-catalog.js +0 -76
- package/dist/native-model-catalog.js.map +0 -1
- package/dist/native-pane-crash-budget.d.ts +0 -20
- package/dist/native-pane-crash-budget.js +0 -60
- package/dist/native-pane-crash-budget.js.map +0 -1
- package/dist/native-pane-create.d.ts +0 -26
- package/dist/native-pane-create.js +0 -53
- package/dist/native-pane-create.js.map +0 -1
- package/dist/native-pane-lifecycle.d.ts +0 -73
- package/dist/native-pane-lifecycle.js +0 -239
- package/dist/native-pane-lifecycle.js.map +0 -1
- package/dist/native-pane-manager.d.ts +0 -59
- package/dist/native-pane-manager.js +0 -592
- package/dist/native-pane-manager.js.map +0 -1
- package/dist/native-pane-output-log.d.ts +0 -15
- package/dist/native-pane-output-log.js +0 -108
- package/dist/native-pane-output-log.js.map +0 -1
- package/dist/native-pane-reconciliation.d.ts +0 -4
- package/dist/native-pane-reconciliation.js +0 -40
- package/dist/native-pane-reconciliation.js.map +0 -1
- package/dist/native-pane-recovery.d.ts +0 -12
- package/dist/native-pane-recovery.js +0 -10
- package/dist/native-pane-recovery.js.map +0 -1
- package/dist/native-pane-tools.d.ts +0 -2
- package/dist/native-pane-tools.js +0 -14
- package/dist/native-pane-tools.js.map +0 -1
- package/dist/office-talk.d.ts +0 -26
- package/dist/office-talk.js +0 -50
- package/dist/office-talk.js.map +0 -1
- package/dist/pane-port.d.ts +0 -118
- package/dist/pane-port.js +0 -2
- package/dist/pane-port.js.map +0 -1
- package/dist/runtime-api.d.ts +0 -10
- package/dist/runtime-api.js +0 -189
- package/dist/runtime-api.js.map +0 -1
- package/dist/runtime-assets/@xterm/addon-serialize/LICENSE +0 -21
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.js +0 -2
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.mjs +0 -19
- package/dist/runtime-assets/@xterm/addon-serialize/package.json +0 -29
- package/dist/runtime-assets/@xterm/headless/LICENSE +0 -21
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.js +0 -2
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.mjs +0 -46
- package/dist/runtime-assets/@xterm/headless/package.json +0 -29
- package/dist/runtime-assets/node-pty/CONPTY-LICENSE +0 -21
- package/dist/runtime-assets/node-pty/CONPTY-NOTICE.md +0 -503
- package/dist/runtime-assets/node-pty/LICENSE +0 -69
- package/dist/runtime-assets/node-pty/lib/conpty_console_list_agent.js +0 -16
- package/dist/runtime-assets/node-pty/lib/eventEmitter2.js +0 -47
- package/dist/runtime-assets/node-pty/lib/index.js +0 -52
- package/dist/runtime-assets/node-pty/lib/interfaces.js +0 -7
- package/dist/runtime-assets/node-pty/lib/shared/conout.js +0 -11
- package/dist/runtime-assets/node-pty/lib/terminal.js +0 -190
- package/dist/runtime-assets/node-pty/lib/types.js +0 -7
- package/dist/runtime-assets/node-pty/lib/unixTerminal.js +0 -346
- package/dist/runtime-assets/node-pty/lib/utils.js +0 -39
- package/dist/runtime-assets/node-pty/lib/windowsConoutConnection.js +0 -125
- package/dist/runtime-assets/node-pty/lib/windowsPtyAgent.js +0 -320
- package/dist/runtime-assets/node-pty/lib/windowsTerminal.js +0 -199
- package/dist/runtime-assets/node-pty/lib/worker/conoutSocketWorker.js +0 -22
- package/dist/runtime-assets/node-pty/package.json +0 -64
- 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-build-info.d.ts +0 -9
- package/dist/runtime-build-info.js +0 -59
- package/dist/runtime-build-info.js.map +0 -1
- package/dist/runtime-bundle.d.ts +0 -22
- package/dist/runtime-bundle.js +0 -158
- package/dist/runtime-bundle.js.map +0 -1
- package/dist/runtime-cli.d.ts +0 -14
- package/dist/runtime-cli.js +0 -271
- package/dist/runtime-cli.js.map +0 -1
- package/dist/runtime-client-store.d.ts +0 -75
- package/dist/runtime-client-store.js +0 -372
- package/dist/runtime-client-store.js.map +0 -1
- package/dist/runtime-client.d.ts +0 -174
- package/dist/runtime-client.js +0 -1010
- package/dist/runtime-client.js.map +0 -1
- package/dist/runtime-connection.d.ts +0 -22
- package/dist/runtime-connection.js +0 -93
- package/dist/runtime-connection.js.map +0 -1
- package/dist/runtime-coordinator.d.ts +0 -98
- package/dist/runtime-coordinator.js +0 -1089
- package/dist/runtime-coordinator.js.map +0 -1
- package/dist/runtime-credential-profiles.d.ts +0 -78
- package/dist/runtime-credential-profiles.js +0 -280
- package/dist/runtime-credential-profiles.js.map +0 -1
- package/dist/runtime-general-protocol.d.ts +0 -22
- package/dist/runtime-general-protocol.js +0 -57
- package/dist/runtime-general-protocol.js.map +0 -1
- package/dist/runtime-general-workspace.d.ts +0 -17
- package/dist/runtime-general-workspace.js +0 -213
- package/dist/runtime-general-workspace.js.map +0 -1
- package/dist/runtime-install.d.ts +0 -50
- package/dist/runtime-install.js +0 -186
- package/dist/runtime-install.js.map +0 -1
- package/dist/runtime-pane-assets.d.ts +0 -17
- package/dist/runtime-pane-assets.js +0 -23
- package/dist/runtime-pane-assets.js.map +0 -1
- package/dist/runtime-pane-boot.d.ts +0 -9
- package/dist/runtime-pane-boot.js +0 -47
- package/dist/runtime-pane-boot.js.map +0 -1
- package/dist/runtime-pane-codex-index.d.ts +0 -10
- package/dist/runtime-pane-codex-index.js +0 -151
- package/dist/runtime-pane-codex-index.js.map +0 -1
- package/dist/runtime-pane-config.d.ts +0 -16
- package/dist/runtime-pane-config.js +0 -54
- package/dist/runtime-pane-config.js.map +0 -1
- package/dist/runtime-pane-host.d.ts +0 -63
- package/dist/runtime-pane-host.js +0 -467
- package/dist/runtime-pane-host.js.map +0 -1
- package/dist/runtime-pane-job-owner.d.ts +0 -1
- package/dist/runtime-pane-job-owner.js +0 -29
- package/dist/runtime-pane-job-owner.js.map +0 -1
- package/dist/runtime-pane-job.ps1 +0 -116
- package/dist/runtime-pane-link.d.ts +0 -47
- package/dist/runtime-pane-link.js +0 -337
- package/dist/runtime-pane-link.js.map +0 -1
- package/dist/runtime-pane-mcp-protocol.d.ts +0 -32
- package/dist/runtime-pane-mcp-protocol.js +0 -39
- package/dist/runtime-pane-mcp-protocol.js.map +0 -1
- package/dist/runtime-pane-mcp-relay.d.ts +0 -18
- package/dist/runtime-pane-mcp-relay.js +0 -80
- package/dist/runtime-pane-mcp-relay.js.map +0 -1
- package/dist/runtime-pane-mcp.d.ts +0 -55
- package/dist/runtime-pane-mcp.js +0 -153
- package/dist/runtime-pane-mcp.js.map +0 -1
- package/dist/runtime-pane-native.d.ts +0 -75
- package/dist/runtime-pane-native.js +0 -114
- package/dist/runtime-pane-native.js.map +0 -1
- package/dist/runtime-pane-output.d.ts +0 -19
- package/dist/runtime-pane-output.js +0 -53
- package/dist/runtime-pane-output.js.map +0 -1
- package/dist/runtime-pane-port.d.ts +0 -144
- package/dist/runtime-pane-port.js +0 -574
- package/dist/runtime-pane-port.js.map +0 -1
- package/dist/runtime-pane-private.d.ts +0 -14
- package/dist/runtime-pane-private.js +0 -51
- package/dist/runtime-pane-private.js.map +0 -1
- package/dist/runtime-pane-private.ps1 +0 -14
- package/dist/runtime-pane-process.d.ts +0 -4
- package/dist/runtime-pane-process.js +0 -117
- package/dist/runtime-pane-process.js.map +0 -1
- package/dist/runtime-pane-protocol.d.ts +0 -182
- package/dist/runtime-pane-protocol.js +0 -217
- package/dist/runtime-pane-protocol.js.map +0 -1
- package/dist/runtime-pane-quota-history.d.ts +0 -6
- package/dist/runtime-pane-quota-history.js +0 -44
- package/dist/runtime-pane-quota-history.js.map +0 -1
- package/dist/runtime-pane-screen.d.ts +0 -19
- package/dist/runtime-pane-screen.js +0 -76
- package/dist/runtime-pane-screen.js.map +0 -1
- package/dist/runtime-pane-service.d.ts +0 -16
- package/dist/runtime-pane-service.js +0 -256
- package/dist/runtime-pane-service.js.map +0 -1
- package/dist/runtime-pane-stdio-protocol.d.ts +0 -54
- package/dist/runtime-pane-stdio-protocol.js +0 -94
- package/dist/runtime-pane-stdio-protocol.js.map +0 -1
- package/dist/runtime-pane-stdio.d.ts +0 -3
- package/dist/runtime-pane-stdio.js +0 -123
- package/dist/runtime-pane-stdio.js.map +0 -1
- package/dist/runtime-pane-store.d.ts +0 -33
- package/dist/runtime-pane-store.js +0 -164
- package/dist/runtime-pane-store.js.map +0 -1
- package/dist/runtime-pane-transcript-protocol.d.ts +0 -43
- package/dist/runtime-pane-transcript-protocol.js +0 -58
- package/dist/runtime-pane-transcript-protocol.js.map +0 -1
- package/dist/runtime-pane-transcript.d.ts +0 -50
- package/dist/runtime-pane-transcript.js +0 -666
- package/dist/runtime-pane-transcript.js.map +0 -1
- package/dist/runtime-pane-worker.d.ts +0 -1
- package/dist/runtime-pane-worker.js +0 -167
- package/dist/runtime-pane-worker.js.map +0 -1
- package/dist/runtime-protocol.d.ts +0 -177
- package/dist/runtime-protocol.js +0 -49
- package/dist/runtime-protocol.js.map +0 -1
- package/dist/runtime-switches.d.ts +0 -79
- package/dist/runtime-switches.js +0 -90
- package/dist/runtime-switches.js.map +0 -1
- package/dist/runtime-transcript-delta-reader.d.ts +0 -23
- package/dist/runtime-transcript-delta-reader.js +0 -74
- package/dist/runtime-transcript-delta-reader.js.map +0 -1
- package/dist/runtime-transcript-source.d.ts +0 -36
- package/dist/runtime-transcript-source.js +0 -189
- package/dist/runtime-transcript-source.js.map +0 -1
- package/dist/runtime-update-activity.d.ts +0 -21
- package/dist/runtime-update-activity.js +0 -51
- package/dist/runtime-update-activity.js.map +0 -1
- package/dist/runtime-update-artifact.d.ts +0 -31
- package/dist/runtime-update-artifact.js +0 -252
- package/dist/runtime-update-artifact.js.map +0 -1
- package/dist/runtime-update-install.d.ts +0 -31
- package/dist/runtime-update-install.js +0 -205
- package/dist/runtime-update-install.js.map +0 -1
- package/dist/runtime-update-journal.d.ts +0 -44
- package/dist/runtime-update-journal.js +0 -121
- package/dist/runtime-update-journal.js.map +0 -1
- package/dist/runtime-update-lock.d.ts +0 -48
- package/dist/runtime-update-lock.js +0 -217
- package/dist/runtime-update-lock.js.map +0 -1
- package/dist/runtime-update-owners.d.ts +0 -29
- package/dist/runtime-update-owners.js +0 -240
- package/dist/runtime-update-owners.js.map +0 -1
- package/dist/runtime-update-protocol.d.ts +0 -15
- package/dist/runtime-update-protocol.js +0 -13
- package/dist/runtime-update-protocol.js.map +0 -1
- package/dist/runtime-windows-bridge.d.ts +0 -42
- package/dist/runtime-windows-bridge.js +0 -167
- package/dist/runtime-windows-bridge.js.map +0 -1
- package/dist/service-drain.d.ts +0 -19
- package/dist/service-drain.js +0 -64
- package/dist/service-drain.js.map +0 -1
- package/dist/settings-route-lifetime.d.ts +0 -14
- package/dist/settings-route-lifetime.js +0 -48
- package/dist/settings-route-lifetime.js.map +0 -1
- package/dist/tmux-binary.d.ts +0 -59
- package/dist/tmux-binary.js +0 -200
- package/dist/tmux-binary.js.map +0 -1
- package/dist/tmux-pane-host.d.ts +0 -26
- package/dist/tmux-pane-host.js +0 -25
- package/dist/tmux-pane-host.js.map +0 -1
- package/dist/transcript-needles.d.ts +0 -42
- package/dist/transcript-needles.js +0 -166
- package/dist/transcript-needles.js.map +0 -1
- package/dist/transcript-records.d.ts +0 -21
- package/dist/transcript-records.js +0 -141
- package/dist/transcript-records.js.map +0 -1
- package/dist/ui/account-identity.js +0 -27
- package/dist/ui/accounts-view.js +0 -214
- package/dist/ui/agent-proposals.js +0 -90
- package/dist/ui/agent-runtime-settings.js +0 -68
- package/dist/ui/agent-runtime.js +0 -124
- package/dist/ui/cli-picker.js +0 -42
- package/dist/ui/credential-profile-select.js +0 -54
- package/dist/ui/fleet-office-dialogue.d.ts +0 -30
- package/dist/ui/fleet-office-dialogue.js +0 -382
- package/dist/ui/fleet-task-menu.js +0 -188
- package/dist/ui/fleet-task-stats.js +0 -124
- package/dist/ui/fleet-task-view.js +0 -340
- package/dist/ui/general-location.js +0 -71
- package/dist/ui/hub-agent-copy.js +0 -23
- package/dist/ui/hub-button-actions.js +0 -65
- package/dist/ui/hub-chat-store.js +0 -158
- package/dist/ui/hub-chat-strings.js +0 -77
- package/dist/ui/hub-client.js +0 -329
- package/dist/ui/hub-owner-strings.js +0 -51
- package/dist/ui/hub-provider-guidance.js +0 -31
- package/dist/ui/hub-quota.js +0 -85
- package/dist/ui/hub-strings.js +0 -162
- package/dist/ui/hub-switcher.js +0 -27
- package/dist/ui/native-instance-settings.js +0 -44
- package/dist/ui/native-pane-recovery.js +0 -45
- package/dist/ui/panel-hub.js +0 -619
- package/dist/ui/panel-runtimes.js +0 -425
- package/dist/ui/panel-windows-agent.js +0 -86
- package/dist/ui/panel-windows-cli.js +0 -189
- package/dist/ui/provider-marks.js +0 -83
- package/dist/ui/runtime-catalog.js +0 -55
- package/dist/ui/runtime-commands.d.ts +0 -4
- package/dist/ui/runtime-commands.js +0 -59
- package/dist/ui/settings-access-strings.js +0 -42
- package/dist/ui/settings-agent-filters.js +0 -94
- package/dist/ui/settings-build-version.js +0 -35
- package/dist/ui/settings-devices.js +0 -253
- package/dist/ui/settings-hub-browser-certificate.js +0 -74
- package/dist/ui/settings-hub-membership.js +0 -72
- package/dist/ui/settings-hub-retention.js +0 -52
- package/dist/ui/settings-hub.js +0 -196
- package/dist/ui/settings-layout.js +0 -242
- package/dist/ui/settings-outside.js +0 -242
- package/dist/ui/settings-shared-strings.js +0 -143
- package/dist/ui/settings-shared.js +0 -345
- package/dist/ui/settings-shortcuts.js +0 -65
- package/dist/ui/shared/accounts.css +0 -15
- package/dist/ui/shared/chat-composer.js +0 -68
- package/dist/ui/shared/chat-md-strings.js +0 -9
- package/dist/ui/shared/chat-render.js +0 -682
- package/dist/ui/shared/chat-strings.js +0 -333
- package/dist/ui/shared/chat-thread.js +0 -969
- package/dist/ui/shared/chat-time.js +0 -80
- package/dist/ui/shared/html-attachment.js +0 -42
- package/dist/ui/shared/hub-chat.css +0 -85
- package/dist/ui/shared/hub-owner.css +0 -33
- package/dist/ui/shared/hub-quota.css +0 -8
- package/dist/ui/shared/hub.css +0 -71
- package/dist/ui/shared/machine-name.js +0 -13
- package/dist/ui/shared/page-head.js +0 -8
- package/dist/ui/shared/preview.js +0 -476
- package/dist/ui/shared/qrcode.module.js +0 -2237
- package/dist/ui/shared/runtime-install.css +0 -26
- package/dist/ui/shared/settings-width.js +0 -31
- package/dist/ui/shared/side-rail.js +0 -15
- package/dist/ui/shared/task-board.css +0 -95
- package/dist/ui/shared/vendor/qrcode-generator.LICENSE +0 -27
- package/dist/ui/shared/workspace.css +0 -20
- package/dist/ui/windows-agents-nav.js +0 -2
- package/dist/ui/windows-cli-catalog.js +0 -108
- package/dist/ui/workspace-panel.js +0 -189
- package/dist/ui/workspace-strings.js +0 -35
- package/dist/web-device-login.d.ts +0 -153
- package/dist/web-device-login.js +0 -278
- package/dist/web-device-login.js.map +0 -1
- package/dist/web-remote-access.d.ts +0 -152
- package/dist/web-remote-access.js +0 -368
- package/dist/web-remote-access.js.map +0 -1
- package/dist/windows-agents.d.ts +0 -127
- package/dist/windows-agents.js +0 -491
- package/dist/windows-agents.js.map +0 -1
- package/dist/windows-cli-api.d.ts +0 -34
- package/dist/windows-cli-api.js +0 -185
- package/dist/windows-cli-api.js.map +0 -1
- package/dist/windows-cli-providers.d.ts +0 -106
- package/dist/windows-cli-providers.js +0 -424
- package/dist/windows-cli-providers.js.map +0 -1
- package/dist/windows-cli-worker.d.ts +0 -83
- package/dist/windows-cli-worker.js +0 -570
- package/dist/windows-cli-worker.js.map +0 -1
- package/dist/windows-cli.d.ts +0 -126
- package/dist/windows-cli.js +0 -416
- package/dist/windows-cli.js.map +0 -1
- package/dist/windows-native-mcp.d.ts +0 -19
- package/dist/windows-native-mcp.js +0 -143
- package/dist/windows-native-mcp.js.map +0 -1
- package/dist/windows-pane-mcp.d.ts +0 -26
- package/dist/windows-pane-mcp.js +0 -187
- package/dist/windows-pane-mcp.js.map +0 -1
- package/launcher/launchd-session-type.cjs +0 -14
- package/launcher/tmux-bundle.cjs +0 -247
- package/templates/runtime-assets/conpty-LICENSE +0 -21
- package/templates/runtime-assets/conpty-NOTICE.md +0 -503
- package/templates/runtime-assets/local-pane-stage.ps1 +0 -101
- package/templates/runtime-assets/runtime-pane-job.ps1 +0 -116
- package/templates/runtime-assets/runtime-pane-private.ps1 +0 -14
- package/templates/runtime-assets/xterm-LICENSE +0 -21
- package/templates/runtime-install/install.ps1 +0 -270
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
-
import { type HubAuditStore, type HubContentStore } from "../audit/index.js";
|
|
3
|
-
import { type HubHoldCode, type HubMigration, type HubStateSet } from "../db.js";
|
|
4
|
-
import type { HubDirectory, HubDirectoryConfig } from "../directory/index.js";
|
|
5
|
-
import type { HubMountedService } from "../mount.js";
|
|
6
|
-
import { HubPairingService } from "../pairing.js";
|
|
7
|
-
import { type HubLinkContext } from "../server.js";
|
|
8
|
-
import { HubTransportStore } from "../store.js";
|
|
9
|
-
import type { HubAskerEnvelope, HubMemberFrame, HubMode, HubPerson, HubServerFrame, HubServerTransport, HubUnitOfWork, PersonKey } from "../types.js";
|
|
10
|
-
import { type HubBrowserCertificateControl } from "../browser-certificate.js";
|
|
11
|
-
import { type HubRetentionControl } from "../retention.js";
|
|
12
|
-
import { type HubPreviewView } from "../preview.js";
|
|
13
|
-
import { HubAttachmentStore } from "../attachments/store.js";
|
|
14
|
-
export declare const SERVER_SET: HubStateSet;
|
|
15
|
-
/** What S3b's createHubHttp receives (agreed in cid-hub-s3b-deps). */
|
|
16
|
-
export interface HubHttpDeps {
|
|
17
|
-
uow: HubUnitOfWork;
|
|
18
|
-
audit: HubAuditStore;
|
|
19
|
-
content: HubContentStore;
|
|
20
|
-
/** attachments-v1 files under the content key (absent: the Hub offers no upload). */
|
|
21
|
-
attachments?: HubAttachmentStore;
|
|
22
|
-
directory: HubDirectory;
|
|
23
|
-
pairing: HubPairingService;
|
|
24
|
-
store: HubTransportStore;
|
|
25
|
-
current(): HubMode;
|
|
26
|
-
now?: () => number;
|
|
27
|
-
preview?: Readonly<HubPreviewView>;
|
|
28
|
-
config: Readonly<{
|
|
29
|
-
hubId: string;
|
|
30
|
-
name: string;
|
|
31
|
-
webOrigin: string;
|
|
32
|
-
administrator: PersonKey;
|
|
33
|
-
}>;
|
|
34
|
-
issuer: {
|
|
35
|
-
keyId: string;
|
|
36
|
-
sign(envelope: Omit<HubAskerEnvelope, "signature">): HubAskerEnvelope;
|
|
37
|
-
};
|
|
38
|
-
/** null before the member listener runs and after fence/close: S3 answers "unavailable", never queues. */
|
|
39
|
-
transport(): Pick<HubServerTransport, "send"> | null;
|
|
40
|
-
}
|
|
41
|
-
export interface HubHttp {
|
|
42
|
-
/** Serve a request under /hub/v1/*; false if the path is not S3's. */
|
|
43
|
-
handle(req: IncomingMessage, res: ServerResponse): boolean;
|
|
44
|
-
receive(frame: Exclude<HubMemberFrame, {
|
|
45
|
-
type: "hello";
|
|
46
|
-
}>, link: HubLinkContext): Promise<HubServerFrame | void>;
|
|
47
|
-
close(): Promise<void>;
|
|
48
|
-
}
|
|
49
|
-
export interface HubHttpEntry {
|
|
50
|
-
createHubHttp(deps: HubHttpDeps): HubHttp;
|
|
51
|
-
migrations: readonly HubMigration[];
|
|
52
|
-
}
|
|
53
|
-
export interface HubServerComponents {
|
|
54
|
-
/** S3b's entry (src/hub/http/compose.ts), imported lazily. Missing: hub-incomplete, before any I/O. */
|
|
55
|
-
http?: () => Promise<HubHttpEntry>;
|
|
56
|
-
}
|
|
57
|
-
export interface HubServerFactoryOptions {
|
|
58
|
-
home: string;
|
|
59
|
-
components: HubServerComponents;
|
|
60
|
-
createDirectory: (config: HubDirectoryConfig, secrets: {
|
|
61
|
-
bindPassword: string;
|
|
62
|
-
}) => HubDirectory;
|
|
63
|
-
/** The specific reason, reported before the factory throws (HubMount itself only knows service-unavailable). */
|
|
64
|
-
report(code: HubHoldCode, detail: string): void;
|
|
65
|
-
log(level: "info" | "warn", message: string, meta?: Record<string, unknown>): void;
|
|
66
|
-
now?: () => number;
|
|
67
|
-
/** Retention job interval; daily by default. */
|
|
68
|
-
retentionEveryMs?: number;
|
|
69
|
-
/** Host Settings only; the disposer removes this exact generation's control. */
|
|
70
|
-
retentionReady?(control: HubRetentionControl): () => void;
|
|
71
|
-
browserCertificateReady?(control: HubBrowserCertificateControl): () => void;
|
|
72
|
-
}
|
|
73
|
-
export declare function createHubServerFactory(options: HubServerFactoryOptions): ((cfg: Record<string, unknown>, current: () => boolean) => Promise<HubMountedService>) & {
|
|
74
|
-
drain: () => Promise<void>;
|
|
75
|
-
};
|
|
76
|
-
export type HubServerFactory = ReturnType<typeof createHubServerFactory>;
|
|
77
|
-
export type { HubPerson };
|
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* S5b server factory (S-51; docs/design/hub-composition.md §5 "Server"). Called by S1's HubMount only after the sealed
|
|
3
|
-
* manifest verified. Builds, in order: the private DB and its migrations, the Hub-instance binding, floors and content
|
|
4
|
-
* key (first creation only), audit + unit of work, S1's transport store and pairing, S2's directory, S3's HTTP entry,
|
|
5
|
-
* S1's member listener and the Hub web listener. Either the whole service comes back or nothing stays open.
|
|
6
|
-
*/
|
|
7
|
-
import { createPrivateKey, randomBytes } from "node:crypto";
|
|
8
|
-
import { closeSync, openSync, writeSync } from "node:fs";
|
|
9
|
-
import { createServer as createHttpsServer } from "node:https";
|
|
10
|
-
import { createHubAudit, HUB_AUDIT_MIGRATION } from "../audit/index.js";
|
|
11
|
-
import { applyHubMigrations, bindHubInstance, createHubUnitOfWork, HUB_INSTANCE_MIGRATION, HubStateError, inspectStateSet, openHubDatabase, } from "../db.js";
|
|
12
|
-
import { signAsker } from "../identity.js";
|
|
13
|
-
import { BIND_SECRET_REL, bindSecretPath } from "../init/layout.js";
|
|
14
|
-
import { HubPairingService } from "../pairing.js";
|
|
15
|
-
import { ensurePrivateDirectory, readPrivateFile } from "../private-files.js";
|
|
16
|
-
import { HubServer } from "../server.js";
|
|
17
|
-
import { HUB_TRANSPORT_MIGRATION, HubTransportStore } from "../store.js";
|
|
18
|
-
import { readHubIdentity } from "../tls.js";
|
|
19
|
-
import { HubFileVersionFloor } from "../version-floor.js";
|
|
20
|
-
import { browserCertificateMigration, createHubBrowserCertificateControl } from "../browser-certificate.js";
|
|
21
|
-
import { createHubRetentionControl, retentionMigration } from "../retention.js";
|
|
22
|
-
import { createHubPreviewHandler, hubPreviewSettings, hubPreviewView } from "../preview.js";
|
|
23
|
-
import { HUB_ATTACHMENTS_MIGRATION, HubAttachmentStore } from "../attachments/store.js";
|
|
24
|
-
export const SERVER_SET = Object.freeze({
|
|
25
|
-
database: "hub/hub.sqlite",
|
|
26
|
-
floors: Object.freeze(["hub/floors/transport"]),
|
|
27
|
-
keys: Object.freeze(["hub/keys/content.key"]),
|
|
28
|
-
});
|
|
29
|
-
const obj = (v) => (v && typeof v === "object" && !Array.isArray(v) ? v : {});
|
|
30
|
-
const listen = (v, label) => {
|
|
31
|
-
const o = obj(v);
|
|
32
|
-
if (typeof o.host !== "string" || !o.host || !Number.isInteger(o.port) || o.port < 0 || o.port > 65535) {
|
|
33
|
-
throw new HubStateError("hub-unsealed", `hub.${label} is not a listener address`);
|
|
34
|
-
}
|
|
35
|
-
return { host: o.host, port: o.port };
|
|
36
|
-
};
|
|
37
|
-
function settingsOf(cfg) {
|
|
38
|
-
const tls = obj(cfg.webTls);
|
|
39
|
-
const admin = obj(cfg.administrator);
|
|
40
|
-
const retention = obj(cfg.retention);
|
|
41
|
-
const directory = obj(cfg.directory);
|
|
42
|
-
for (const k of ["hubId", "name", "webOrigin", "memberOrigin"]) {
|
|
43
|
-
if (typeof cfg[k] !== "string" || !cfg[k])
|
|
44
|
-
throw new HubStateError("hub-unsealed", `hub.${k} is missing`);
|
|
45
|
-
}
|
|
46
|
-
if (typeof tls.certificateFile !== "string" || typeof tls.keyFile !== "string")
|
|
47
|
-
throw new HubStateError("hub-unsealed", "hub.webTls is missing");
|
|
48
|
-
if (typeof admin.realm !== "string" || typeof admin.objectId !== "string")
|
|
49
|
-
throw new HubStateError("hub-unsealed", "hub.administrator is missing");
|
|
50
|
-
if (!Number.isSafeInteger(retention.contentDays) || !Number.isSafeInteger(retention.eventDays))
|
|
51
|
-
throw new HubStateError("hub-unsealed", "hub.retention is missing");
|
|
52
|
-
if (typeof directory.bindPasswordRef !== "string")
|
|
53
|
-
throw new HubStateError("hub-unsealed", "hub.directory.bindPasswordRef is missing");
|
|
54
|
-
const webListen = listen(cfg.webListen, "webListen"), memberListen = listen(cfg.memberListen, "memberListen");
|
|
55
|
-
const preview = hubPreviewSettings({ web: cfg.web, webOrigin: cfg.webOrigin, memberOrigin: cfg.memberOrigin, webListen, memberListen });
|
|
56
|
-
return {
|
|
57
|
-
hubId: cfg.hubId,
|
|
58
|
-
name: cfg.name,
|
|
59
|
-
webOrigin: cfg.webOrigin,
|
|
60
|
-
memberOrigin: cfg.memberOrigin,
|
|
61
|
-
memberListen,
|
|
62
|
-
webListen,
|
|
63
|
-
preview,
|
|
64
|
-
webTls: { certificateFile: tls.certificateFile, keyFile: tls.keyFile },
|
|
65
|
-
directory: directory,
|
|
66
|
-
administrator: { realm: admin.realm, objectId: admin.objectId },
|
|
67
|
-
retention: { contentDays: retention.contentDays, eventDays: retention.eventDays },
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Ordered cleanup that never pretends: steps run in reverse creation order, each at most once successfully; the first
|
|
72
|
-
* failure stops the run (no dependency is closed under a component whose own close is unconfirmed) and is reported as
|
|
73
|
-
* an unconfirmed shutdown. Running it again retries from the failed step.
|
|
74
|
-
*/
|
|
75
|
-
class Teardown {
|
|
76
|
-
steps = [];
|
|
77
|
-
add(name, run) {
|
|
78
|
-
this.steps.push({ name, run, done: false });
|
|
79
|
-
}
|
|
80
|
-
get pending() {
|
|
81
|
-
return this.steps.some((s) => !s.done);
|
|
82
|
-
}
|
|
83
|
-
async run() {
|
|
84
|
-
for (let i = this.steps.length - 1; i >= 0; i -= 1) {
|
|
85
|
-
const step = this.steps[i];
|
|
86
|
-
if (step.done)
|
|
87
|
-
continue;
|
|
88
|
-
try {
|
|
89
|
-
await step.run();
|
|
90
|
-
step.done = true;
|
|
91
|
-
}
|
|
92
|
-
catch (err) {
|
|
93
|
-
throw new HubStateError("service-unavailable", `Hub cleanup of ${step.name} is unconfirmed: ${err.message}`);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
/** Create a private file with random bytes, exclusively (never overwrite). */
|
|
99
|
-
function createKeyFile(home, rel) {
|
|
100
|
-
ensurePrivateDirectory(home, rel.slice(0, rel.lastIndexOf("/")));
|
|
101
|
-
const fd = openSync(`${home}/${rel}`, "wx", 0o600);
|
|
102
|
-
try {
|
|
103
|
-
writeSync(fd, randomBytes(32).toString("base64"));
|
|
104
|
-
}
|
|
105
|
-
finally {
|
|
106
|
-
closeSync(fd);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function readKeyFile(home, rel) {
|
|
110
|
-
const key = Buffer.from(readPrivateFile(home, rel, 256).trim(), "base64");
|
|
111
|
-
if (key.length !== 32)
|
|
112
|
-
throw new HubStateError("hub-storage", `${rel} is not a 32-byte key`);
|
|
113
|
-
return key;
|
|
114
|
-
}
|
|
115
|
-
export function createHubServerFactory(options) {
|
|
116
|
-
const now = options.now ?? Date.now;
|
|
117
|
-
/** A previous attempt whose cleanup was not confirmed: nothing new is created until it is, and Off/Stop drain it. */
|
|
118
|
-
let unconfirmed = null;
|
|
119
|
-
const createServer = async function createServer(cfg, current) {
|
|
120
|
-
if (unconfirmed) {
|
|
121
|
-
try {
|
|
122
|
-
await unconfirmed.run();
|
|
123
|
-
unconfirmed = null;
|
|
124
|
-
}
|
|
125
|
-
catch (err) {
|
|
126
|
-
options.report("service-unavailable", err.message);
|
|
127
|
-
throw err;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
const teardown = new Teardown();
|
|
131
|
-
const fail = async (err) => {
|
|
132
|
-
try {
|
|
133
|
-
await teardown.run();
|
|
134
|
-
}
|
|
135
|
-
catch (cleanupErr) {
|
|
136
|
-
unconfirmed = teardown; // kept: retried before any replacement is created
|
|
137
|
-
options.report("service-unavailable", cleanupErr.message);
|
|
138
|
-
throw cleanupErr;
|
|
139
|
-
}
|
|
140
|
-
const code = err instanceof HubStateError ? err.code : "service-unavailable";
|
|
141
|
-
options.report(code, err.message);
|
|
142
|
-
throw err;
|
|
143
|
-
};
|
|
144
|
-
try {
|
|
145
|
-
// 0. Every slice present, before any I/O: no partial server.
|
|
146
|
-
if (!options.components.http)
|
|
147
|
-
throw new HubStateError("hub-incomplete", "the Hub web service (S3) is not in this build");
|
|
148
|
-
const httpEntry = await options.components.http();
|
|
149
|
-
const settings = settingsOf(cfg);
|
|
150
|
-
const previewBoot = randomBytes(16).toString("hex");
|
|
151
|
-
// 1. The private state set: new (create all), complete (open), anything else refused.
|
|
152
|
-
const state = inspectStateSet(options.home, SERVER_SET);
|
|
153
|
-
const db = openHubDatabase(options.home, SERVER_SET.database, { create: state === "new" });
|
|
154
|
-
teardown.add("the Hub database", () => db.close());
|
|
155
|
-
const floor = new HubFileVersionFloor(options.home, SERVER_SET.floors[0]);
|
|
156
|
-
if (state === "new") {
|
|
157
|
-
floor.initialize();
|
|
158
|
-
createKeyFile(options.home, SERVER_SET.keys[0]);
|
|
159
|
-
}
|
|
160
|
-
applyHubMigrations(db, [HUB_INSTANCE_MIGRATION, HUB_AUDIT_MIGRATION, HUB_TRANSPORT_MIGRATION, ...httpEntry.migrations,
|
|
161
|
-
retentionMigration(settings.hubId, settings.retention), browserCertificateMigration(settings.hubId), HUB_ATTACHMENTS_MIGRATION]);
|
|
162
|
-
bindHubInstance(db, settings.hubId, state, now());
|
|
163
|
-
// 2. Audit + unit of work + S1's transport store (its audit goes through the bridge, same transaction).
|
|
164
|
-
const contentKey = readKeyFile(options.home, SERVER_SET.keys[0]);
|
|
165
|
-
const audit = createHubAudit({ db, contentKey, now });
|
|
166
|
-
// attachments-v1 files, under the same content key as audit content.
|
|
167
|
-
const attachments = new HubAttachmentStore({ contentKey, now });
|
|
168
|
-
const uow = createHubUnitOfWork(db);
|
|
169
|
-
const store = new HubTransportStore(db, { floor, appendAudit: (record, database) => audit.appendInTransaction(record, database) });
|
|
170
|
-
if (state === "new")
|
|
171
|
-
store.initialize();
|
|
172
|
-
// 3. S2 directory with the service password from the one accepted private file.
|
|
173
|
-
if (!bindSecretPath(options.home, settings.directory.bindPasswordRef))
|
|
174
|
-
throw new HubStateError("hub-directory-secret", "hub.directory.bindPasswordRef is not the private bind file");
|
|
175
|
-
let bindPassword;
|
|
176
|
-
try {
|
|
177
|
-
bindPassword = readPrivateFile(options.home, BIND_SECRET_REL, 4096, { preserveBom: true });
|
|
178
|
-
}
|
|
179
|
-
catch (err) {
|
|
180
|
-
throw new HubStateError("hub-directory-secret", `the directory bind secret is missing or not private: ${err.message}`);
|
|
181
|
-
}
|
|
182
|
-
const { bindPasswordRef: _ref, ...directoryConfig } = settings.directory;
|
|
183
|
-
const directory = options.createDirectory(directoryConfig, { bindPassword });
|
|
184
|
-
teardown.add("the directory client", () => directory.close?.());
|
|
185
|
-
// 4. S1 identity, pairing and the member listener; S3's HTTP entry in between (it supplies receive).
|
|
186
|
-
const identity = readHubIdentity({ home: options.home, memberOrigin: settings.memberOrigin });
|
|
187
|
-
if (identity.hubId !== settings.hubId)
|
|
188
|
-
throw new HubStateError("hub-state-mismatch", "the Hub keys belong to another Hub");
|
|
189
|
-
const issuerKey = createPrivateKey(readPrivateFile(options.home, "hub/keys/issuer-key.pem"));
|
|
190
|
-
let memberServer = null;
|
|
191
|
-
let fenced = false;
|
|
192
|
-
const live = () => !fenced && current();
|
|
193
|
-
const retention = createHubRetentionControl({ db, hubId: settings.hubId, audit, current: live, now });
|
|
194
|
-
const pairing = new HubPairingService({
|
|
195
|
-
store,
|
|
196
|
-
identity: { hubId: identity.hubId, memberOrigin: settings.memberOrigin, webOrigin: settings.webOrigin, spkiSha256: identity.spkiSha256, issuerPublicKey: identity.issuerPublicKey },
|
|
197
|
-
directory,
|
|
198
|
-
enabled: live,
|
|
199
|
-
now,
|
|
200
|
-
fenceFleet: (fleetId, reason) => memberServer?.fenceFleet(fleetId, reason),
|
|
201
|
-
});
|
|
202
|
-
let generation = 0;
|
|
203
|
-
const mode = { serverEnabled: live, memberEnabled: () => false, epoch: () => generation };
|
|
204
|
-
const http = httpEntry.createHubHttp({
|
|
205
|
-
uow,
|
|
206
|
-
audit,
|
|
207
|
-
content: audit.content,
|
|
208
|
-
attachments,
|
|
209
|
-
directory,
|
|
210
|
-
pairing,
|
|
211
|
-
store,
|
|
212
|
-
current: () => mode,
|
|
213
|
-
now,
|
|
214
|
-
preview: hubPreviewView(settings.webOrigin, settings.preview, previewBoot),
|
|
215
|
-
config: Object.freeze({ hubId: settings.hubId, name: settings.name, webOrigin: settings.webOrigin, administrator: Object.freeze({ ...settings.administrator }) }),
|
|
216
|
-
issuer: { keyId: identity.issuerKeyId, sign: (envelope) => signAsker(envelope, issuerKey) },
|
|
217
|
-
transport: () => (live() && memberServer ? memberServer : null),
|
|
218
|
-
});
|
|
219
|
-
teardown.add("the Hub web service (S3)", () => http.close());
|
|
220
|
-
memberServer = new HubServer({
|
|
221
|
-
home: options.home,
|
|
222
|
-
hubId: settings.hubId,
|
|
223
|
-
memberOrigin: settings.memberOrigin,
|
|
224
|
-
listen: settings.memberListen,
|
|
225
|
-
pairing,
|
|
226
|
-
current: live,
|
|
227
|
-
receive: (frame, link) => http.receive(frame, link),
|
|
228
|
-
hold: (fleetId, code) => options.log("warn", "Hub member link held", { fleetId, code }),
|
|
229
|
-
});
|
|
230
|
-
teardown.add("the member listener", () => memberServer?.close());
|
|
231
|
-
// 5. The Hub web listener: every request goes to S3's handler (it serves /hub/v1/*, the Hub-only shell and its
|
|
232
|
-
// assets without fleet cookies); anything it declines is 404. The personal fleet listener is untouched.
|
|
233
|
-
let web = null;
|
|
234
|
-
let preview = null;
|
|
235
|
-
const browserCertificate = createHubBrowserCertificateControl({ db, home: options.home, hubId: settings.hubId, origin: settings.webOrigin,
|
|
236
|
-
initial: settings.webTls, audit, current: live, now, activate: material => {
|
|
237
|
-
if (!web || !live())
|
|
238
|
-
throw Error("unavailable");
|
|
239
|
-
web.setSecureContext({ ...material, minVersion: "TLSv1.2" });
|
|
240
|
-
preview?.setSecureContext({ ...material, minVersion: "TLSv1.2" });
|
|
241
|
-
} });
|
|
242
|
-
teardown.add("browser certificate preparation", () => browserCertificate.close());
|
|
243
|
-
let retentionTimer = null;
|
|
244
|
-
const serveWeb = (req, res) => {
|
|
245
|
-
if (!live()) {
|
|
246
|
-
res.writeHead(503, { "Content-Type": "application/json", "Cache-Control": "no-store" }).end('{"code":"unavailable"}');
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
if (http.handle(req, res))
|
|
250
|
-
return;
|
|
251
|
-
res.writeHead(404, { "Content-Type": "text/plain; charset=utf-8", "Cache-Control": "no-store" }).end("Not found");
|
|
252
|
-
};
|
|
253
|
-
return {
|
|
254
|
-
async start() {
|
|
255
|
-
if (!live())
|
|
256
|
-
throw new HubStateError("service-unavailable", "the Hub was switched off while starting");
|
|
257
|
-
try {
|
|
258
|
-
await memberServer.start();
|
|
259
|
-
if (settings.preview) {
|
|
260
|
-
const server = createHttpsServer({ ...browserCertificate.material(), minVersion: "TLSv1.2" }, createHubPreviewHandler(settings.preview, settings.webOrigin, previewBoot, live));
|
|
261
|
-
preview = server;
|
|
262
|
-
teardown.add("the Hub preview listener", () => {
|
|
263
|
-
server.closeAllConnections?.();
|
|
264
|
-
return new Promise((resolve, reject) => server.close(err => err && err.code !== "ERR_SERVER_NOT_RUNNING" ? reject(err) : resolve()));
|
|
265
|
-
});
|
|
266
|
-
await new Promise((resolve, reject) => {
|
|
267
|
-
server.once("error", reject);
|
|
268
|
-
server.listen(settings.preview.port, settings.preview.host, () => { server.removeListener("error", reject); resolve(); });
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
const server = createHttpsServer({ ...browserCertificate.material(), minVersion: "TLSv1.2" }, serveWeb);
|
|
272
|
-
teardown.add("the Hub web listener", () => {
|
|
273
|
-
if (web !== server)
|
|
274
|
-
return;
|
|
275
|
-
server.closeAllConnections?.();
|
|
276
|
-
return new Promise((resolve, reject) => server.close((err) => (err && err.code !== "ERR_SERVER_NOT_RUNNING" ? reject(err) : resolve())));
|
|
277
|
-
});
|
|
278
|
-
web = server;
|
|
279
|
-
await new Promise((resolve, reject) => {
|
|
280
|
-
server.once("error", reject);
|
|
281
|
-
server.listen(settings.webListen.port, settings.webListen.host, () => {
|
|
282
|
-
server.removeListener("error", reject);
|
|
283
|
-
resolve();
|
|
284
|
-
});
|
|
285
|
-
});
|
|
286
|
-
browserCertificate.activate();
|
|
287
|
-
const detachCertificate = options.browserCertificateReady?.(browserCertificate);
|
|
288
|
-
if (detachCertificate)
|
|
289
|
-
teardown.add("the host browser certificate Settings", detachCertificate);
|
|
290
|
-
retentionTimer = setInterval(() => {
|
|
291
|
-
if (!live())
|
|
292
|
-
return;
|
|
293
|
-
try {
|
|
294
|
-
const policy = retention.read();
|
|
295
|
-
audit.purge(policy);
|
|
296
|
-
// Files follow the content policy; expired uploads and unfinished transfers go too.
|
|
297
|
-
db.transaction(() => attachments.purge(db, now() - policy.contentDays * 86_400_000)).immediate();
|
|
298
|
-
}
|
|
299
|
-
catch (err) {
|
|
300
|
-
options.log("warn", "Hub retention could not run", { err: err.message });
|
|
301
|
-
}
|
|
302
|
-
}, options.retentionEveryMs ?? 86_400_000);
|
|
303
|
-
retentionTimer.unref();
|
|
304
|
-
const timer = retentionTimer;
|
|
305
|
-
teardown.add("the retention timer", () => clearInterval(timer));
|
|
306
|
-
const detach = options.retentionReady?.(retention);
|
|
307
|
-
if (detach)
|
|
308
|
-
teardown.add("the host retention Settings", detach);
|
|
309
|
-
}
|
|
310
|
-
catch (err) {
|
|
311
|
-
options.report(err instanceof HubStateError ? err.code : "service-unavailable", err.message);
|
|
312
|
-
throw err;
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
fence() {
|
|
316
|
-
fenced = true;
|
|
317
|
-
generation += 1;
|
|
318
|
-
memberServer?.fence();
|
|
319
|
-
},
|
|
320
|
-
async close() {
|
|
321
|
-
fenced = true;
|
|
322
|
-
// Rejects while any step is unconfirmed; S1 keeps ownership and retries this close before any replacement.
|
|
323
|
-
await teardown.run();
|
|
324
|
-
},
|
|
325
|
-
/** Test and diagnostics seams (not part of HubMountedService). */
|
|
326
|
-
webAddress: () => web?.address() ?? null,
|
|
327
|
-
memberAddress: () => memberServer?.address() ?? null,
|
|
328
|
-
previewAddress: () => preview?.address() ?? null,
|
|
329
|
-
audit,
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
catch (err) {
|
|
333
|
-
return fail(err);
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
/**
|
|
337
|
-
* The factory owns what a failed creation could not clean up (HubMount never received a service for it). The runtime
|
|
338
|
-
* calls drain() when the Hub is switched off and when it stops: it retries that cleanup and rejects while it still
|
|
339
|
-
* fails, so the leftover stays owned and reported instead of being forgotten.
|
|
340
|
-
*/
|
|
341
|
-
const drain = async () => {
|
|
342
|
-
if (!unconfirmed)
|
|
343
|
-
return;
|
|
344
|
-
await unconfirmed.run();
|
|
345
|
-
unconfirmed = null;
|
|
346
|
-
};
|
|
347
|
-
return Object.assign(createServer, { drain });
|
|
348
|
-
}
|
|
349
|
-
//# sourceMappingURL=server.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/hub/compose/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,YAAY,IAAI,iBAAiB,EAAe,MAAM,YAAY,CAAC;AAG5E,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAA4C,MAAM,mBAAmB,CAAC;AAClH,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EACb,eAAe,EACf,eAAe,GAIhB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAuB,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,2BAA2B,EAAE,kCAAkC,EAAqC,MAAM,2BAA2B,CAAC;AAC/I,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAA4B,MAAM,iBAAiB,CAAC;AAC1G,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,cAAc,EAAgD,MAAM,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CAAC;QACnB,CAAC;IACH,CAAC,CAAC;IACF;;;;OAIG;IACH,MAAM,KAAK,GAAG,KAAK,IAAmB,EAAE;QACtC,IAAI,CAAC,WAAW;YAAE,OAAO;QACzB,MAAM,WAAW,CAAC,GAAG,EAAE,CAAC;QACxB,WAAW,GAAG,IAAI,CAAC;IACrB,CAAC,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Where a member's approved data views come from (S-51 PR 2b). One interface, so the owner-approval flow decided under
|
|
3
|
-
* #3095 §7 Q2 (the leader recommends: the owner picks files or folders in Settings, previews exactly what is included,
|
|
4
|
-
* confirms; snapshotted immutable at approval, re-approved to change) plugs in later without touching composition.
|
|
5
|
-
* Until then the registry is EMPTY: no exposure is publishable or askable (fail closed).
|
|
6
|
-
*/
|
|
7
|
-
import type { HubDocumentView } from "../execution/index.js";
|
|
8
|
-
export interface HubViewSource {
|
|
9
|
-
/** The owner-approved, immutable views in force now. Called once per member mount. */
|
|
10
|
-
load(): ReadonlyMap<string, HubDocumentView>;
|
|
11
|
-
}
|
|
12
|
-
export declare const EMPTY_VIEW_SOURCE: HubViewSource;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../../src/hub/compose/views.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,iBAAiB,GAAkB,MAAM,CAAC,MAAM,CAAC;IAC5D,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,GAAG,EAA2B;CAC/C,CAAC,CAAC"}
|
package/dist/hub/db.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* S5b (S-51; docs/design/hub-composition.md §3–§4): the Hub's private databases. Opening with private modes from the
|
|
3
|
-
* first byte, the per-slice migration registry, the "created together" set check, the Hub-instance binding, and the
|
|
4
|
-
* unit of work (HubUnitOfWork) with `hubTxDatabase` for slices that run their own statements inside it.
|
|
5
|
-
* Nothing here runs on import; only composition calls it, and only while a Hub switch is on.
|
|
6
|
-
*/
|
|
7
|
-
import Database from "better-sqlite3";
|
|
8
|
-
import type { HubTx, HubUnitOfWork } from "./types.js";
|
|
9
|
-
/** Composition's closed set of hold reasons (hub-composition.md §2). Each has fleet text (locale "hub.hold.<code>"). */
|
|
10
|
-
export declare const HUB_HOLD_CODES: readonly ["hub-incomplete", "hub-unsealed", "hub-state-newer", "hub-state-mismatch", "hub-storage", "hub-directory-secret", "hub-member-pairing", "hub-provider-unavailable", "service-unavailable"];
|
|
11
|
-
export type HubHoldCode = (typeof HUB_HOLD_CODES)[number];
|
|
12
|
-
export declare class HubStateError extends Error {
|
|
13
|
-
readonly code: HubHoldCode;
|
|
14
|
-
constructor(code: HubHoldCode, message: string);
|
|
15
|
-
}
|
|
16
|
-
/** One slice's schema step. `up` must be idempotent for its own version (CREATE … IF NOT EXISTS). */
|
|
17
|
-
export interface HubMigration {
|
|
18
|
-
readonly component: string;
|
|
19
|
-
readonly version: number;
|
|
20
|
-
up(db: Database.Database): void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The files composition creates together on one side (§3), relative to the AgEnD home. Prerequisites written earlier
|
|
24
|
-
* (S1's identity keys, the sealed manifest, pairing files) are never part of a set.
|
|
25
|
-
*/
|
|
26
|
-
export interface HubStateSet {
|
|
27
|
-
readonly database: string;
|
|
28
|
-
readonly floors: readonly string[];
|
|
29
|
-
readonly keys: readonly string[];
|
|
30
|
-
}
|
|
31
|
-
export type HubSetState = "new" | "complete";
|
|
32
|
-
/** "new" when no member of the set exists, "complete" when all do; anything else is hub-state-mismatch. */
|
|
33
|
-
export declare function inspectStateSet(home: string, set: HubStateSet): HubSetState;
|
|
34
|
-
/**
|
|
35
|
-
* Open (or, with `create`, first create) a private SQLite database at `rel` under `home`. The file is created 0600
|
|
36
|
-
* before SQLite touches it; its directory is a private, owned, non-symlink chain (S1's privatePath). WAL/SHM files are
|
|
37
|
-
* checked to be private after the journal mode is set.
|
|
38
|
-
*/
|
|
39
|
-
export declare function openHubDatabase(home: string, rel: string, options: {
|
|
40
|
-
create: boolean;
|
|
41
|
-
}): Database.Database;
|
|
42
|
-
/**
|
|
43
|
-
* Apply every slice's migrations in one immediate transaction. A component stored with a higher version than this
|
|
44
|
-
* build knows, or a component this build does not know at all, means a newer build wrote the database: refuse.
|
|
45
|
-
*/
|
|
46
|
-
export declare function applyHubMigrations(db: Database.Database, migrations: readonly HubMigration[]): void;
|
|
47
|
-
/** The database's Hub (or member's Hub) id: written once at creation, compared on every open. */
|
|
48
|
-
export declare const HUB_INSTANCE_MIGRATION: HubMigration;
|
|
49
|
-
export declare function bindHubInstance(db: Database.Database, hubId: string, mode: HubSetState, now: number): void;
|
|
50
|
-
/**
|
|
51
|
-
* The database behind a live transaction, for a slice's own statements (S3's repositories). Throws once the
|
|
52
|
-
* transaction has committed or rolled back, so a leaked handle cannot write outside a transaction.
|
|
53
|
-
*/
|
|
54
|
-
export declare function hubTxDatabase(tx: HubTx): Database.Database;
|
|
55
|
-
/** HubUnitOfWork over one database: immediate transactions; nested calls are savepoints; async work is refused. */
|
|
56
|
-
export declare function createHubUnitOfWork(db: Database.Database): HubUnitOfWork;
|