@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,320 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Hub's directory client (S-43). Every operation opens its own connection, proves it is verified TLS before any
|
|
3
|
-
* bind, and closes it; nothing is cached, so each Hub request sees the directory's current answer (design #3095 §4).
|
|
4
|
-
*
|
|
5
|
-
* Transport rules:
|
|
6
|
-
* - ldaps:// only (decision 7e5b8a8f); the certificate is verified against the configured CA (or Node's roots) and the
|
|
7
|
-
* host name, always. A plain ldap:// socket is never created: createConnection refuses outright.
|
|
8
|
-
* - One TLS connection per client. ldapts would otherwise reconnect transparently after a drop; every operation is a
|
|
9
|
-
* fresh session instead, and a bind is sent only on the verified socket this session opened.
|
|
10
|
-
* - The library is imported lazily, so it never loads while the Hub is off.
|
|
11
|
-
*
|
|
12
|
-
* Passwords: the user's password is used for exactly one bind and is never stored, logged or returned. An empty
|
|
13
|
-
* password is refused before the network (to LDAP it would be an unauthenticated bind that "succeeds").
|
|
14
|
-
*/
|
|
15
|
-
import { isIP } from "node:net";
|
|
16
|
-
import * as tls from "node:tls";
|
|
17
|
-
import { HubDirectoryConfigError, resolveDirectoryConfig } from "./config.js";
|
|
18
|
-
import { PROFILES, escapeFilterValue, isDisabled, objectIdMatch, readObjectId, readText, readTextList } from "./profiles.js";
|
|
19
|
-
class InsecureTransportError extends Error {
|
|
20
|
-
constructor(message) {
|
|
21
|
-
super(message);
|
|
22
|
-
this.name = "InsecureTransportError";
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
let ldaptsModule;
|
|
26
|
-
function loadLdapts() {
|
|
27
|
-
ldaptsModule ??= import("ldapts");
|
|
28
|
-
return ldaptsModule;
|
|
29
|
-
}
|
|
30
|
-
const LOGIN_MAX = 256;
|
|
31
|
-
const PASSWORD_MAX = 1024;
|
|
32
|
-
// A login is matched by the directory, not parsed by us; refuse only what can never be a login.
|
|
33
|
-
const LOGIN_SHAPE = /^[^\u0000-\u001f\u007f\s](?:[^\u0000-\u001f\u007f]*[^\u0000-\u001f\u007f\s])?$/;
|
|
34
|
-
function validLogin(login) {
|
|
35
|
-
return typeof login === "string" && login.length > 0 && login.length <= LOGIN_MAX && LOGIN_SHAPE.test(login);
|
|
36
|
-
}
|
|
37
|
-
function validPassword(password) {
|
|
38
|
-
return typeof password === "string" && password.length > 0 && password.length <= PASSWORD_MAX && !password.includes("\u0000");
|
|
39
|
-
}
|
|
40
|
-
/** One verified-TLS LDAP connection that refuses to reconnect. */
|
|
41
|
-
class Session {
|
|
42
|
-
cfg;
|
|
43
|
-
client;
|
|
44
|
-
connections = 0;
|
|
45
|
-
tlsSocket;
|
|
46
|
-
constructor(cfg, client) {
|
|
47
|
-
this.cfg = cfg;
|
|
48
|
-
this.client = client;
|
|
49
|
-
}
|
|
50
|
-
static async open(cfg) {
|
|
51
|
-
const { Client } = await loadLdapts();
|
|
52
|
-
let session;
|
|
53
|
-
const tlsOptions = () => ({
|
|
54
|
-
...(cfg.caPem !== undefined ? { ca: cfg.caPem } : {}),
|
|
55
|
-
rejectUnauthorized: true,
|
|
56
|
-
minVersion: "TLSv1.2",
|
|
57
|
-
host: cfg.host,
|
|
58
|
-
...(isIP(cfg.host) ? {} : { servername: cfg.host }),
|
|
59
|
-
checkServerIdentity: tls.checkServerIdentity,
|
|
60
|
-
});
|
|
61
|
-
const client = new Client({
|
|
62
|
-
url: cfg.url,
|
|
63
|
-
timeout: cfg.timeoutMs,
|
|
64
|
-
connectTimeout: cfg.timeoutMs,
|
|
65
|
-
strictDN: true,
|
|
66
|
-
autoRebind: false,
|
|
67
|
-
// Never a plaintext socket, whatever the URL parsing inside the library decides.
|
|
68
|
-
createConnection: (() => {
|
|
69
|
-
throw new InsecureTransportError("hub directory: refusing a plaintext LDAP connection");
|
|
70
|
-
}),
|
|
71
|
-
// Verification settings come from here only; anything the library passes is ignored.
|
|
72
|
-
createSecureConnection: (() => {
|
|
73
|
-
session.claimConnection();
|
|
74
|
-
const socket = tls.connect({ ...tlsOptions(), port: cfg.port });
|
|
75
|
-
session.tlsSocket = socket;
|
|
76
|
-
return socket;
|
|
77
|
-
}),
|
|
78
|
-
});
|
|
79
|
-
session = new Session(cfg, client);
|
|
80
|
-
return session;
|
|
81
|
-
}
|
|
82
|
-
claimConnection() {
|
|
83
|
-
this.connections += 1;
|
|
84
|
-
if (this.connections > 1)
|
|
85
|
-
throw new InsecureTransportError("hub directory: connection lost; refusing to reconnect within one operation");
|
|
86
|
-
}
|
|
87
|
-
/** Throws unless the live connection is the one verified TLS socket this session made. */
|
|
88
|
-
assertSecure() {
|
|
89
|
-
const s = this.tlsSocket;
|
|
90
|
-
if (!s || s.destroyed || !s.authorized || !s.encrypted || this.connections !== 1 || !this.client.isConnected) {
|
|
91
|
-
throw new InsecureTransportError("hub directory: no verified TLS connection; refusing to send credentials");
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
async bind(dn, password) {
|
|
95
|
-
// ldapts connects lazily inside bind(): a fresh session's first bind opens the socket through
|
|
96
|
-
// createSecureConnection above (verified TLS, or no connection at all), and the bind is written only after
|
|
97
|
-
// 'secureConnect'. A session that already has a socket must still be on that one verified socket.
|
|
98
|
-
if (this.connections > 0)
|
|
99
|
-
this.assertSecure();
|
|
100
|
-
await this.client.bind(dn, password);
|
|
101
|
-
this.assertSecure();
|
|
102
|
-
}
|
|
103
|
-
async search(filter, attributes, binary, scope = "sub", base = this.cfg.baseDn) {
|
|
104
|
-
this.assertSecure();
|
|
105
|
-
const { searchEntries } = await this.client.search(base, {
|
|
106
|
-
scope,
|
|
107
|
-
filter,
|
|
108
|
-
attributes,
|
|
109
|
-
explicitBufferAttributes: [...binary],
|
|
110
|
-
sizeLimit: 2,
|
|
111
|
-
derefAliases: "never",
|
|
112
|
-
});
|
|
113
|
-
return searchEntries;
|
|
114
|
-
}
|
|
115
|
-
async close() {
|
|
116
|
-
try {
|
|
117
|
-
await this.client.unbind();
|
|
118
|
-
}
|
|
119
|
-
catch {
|
|
120
|
-
/* already closed */
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
export function createHubDirectory(config, secrets, options = {}) {
|
|
125
|
-
const cfg = resolveDirectoryConfig(config);
|
|
126
|
-
if (!secrets || typeof secrets.bindPassword !== "string" || !validPassword(secrets.bindPassword)) {
|
|
127
|
-
throw new HubDirectoryConfigError("hub directory: the service account password is missing");
|
|
128
|
-
}
|
|
129
|
-
const bindPassword = secrets.bindPassword;
|
|
130
|
-
const shape = PROFILES[cfg.profile];
|
|
131
|
-
const now = options.now ?? Date.now;
|
|
132
|
-
const attributes = [shape.idAttribute, cfg.loginAttribute, "displayName", "cn", "mail", shape.departmentAttribute, "memberOf", ...shape.statusAttributes];
|
|
133
|
-
const report = (op, outcome, error) => {
|
|
134
|
-
if (!options.onDiagnostic)
|
|
135
|
-
return;
|
|
136
|
-
const message = error instanceof Error ? `${error.name}: ${error.message}` : error === undefined ? undefined : String(error);
|
|
137
|
-
try {
|
|
138
|
-
options.onDiagnostic({ op, outcome, ...(message !== undefined ? { error: message } : {}) });
|
|
139
|
-
}
|
|
140
|
-
catch {
|
|
141
|
-
/* a diagnostic sink never changes the answer */
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
const toPerson = (entry, objectId) => {
|
|
145
|
-
const displayName = readText(entry, "displayName") ?? readText(entry, "cn");
|
|
146
|
-
const email = readText(entry, "mail");
|
|
147
|
-
const department = readText(entry, shape.departmentAttribute);
|
|
148
|
-
return Object.freeze({
|
|
149
|
-
key: Object.freeze({ realm: cfg.realm, objectId }),
|
|
150
|
-
login: readText(entry, cfg.loginAttribute) ?? "",
|
|
151
|
-
dn: entry.dn,
|
|
152
|
-
...(displayName !== undefined ? { displayName } : {}),
|
|
153
|
-
...(email !== undefined ? { email } : {}),
|
|
154
|
-
...(department !== undefined ? { department } : {}),
|
|
155
|
-
groups: Object.freeze(readTextList(entry, "memberOf")),
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
const openService = async () => {
|
|
159
|
-
const session = await Session.open(cfg);
|
|
160
|
-
try {
|
|
161
|
-
await session.bind(cfg.bindDn, bindPassword);
|
|
162
|
-
return session;
|
|
163
|
-
}
|
|
164
|
-
catch (err) {
|
|
165
|
-
await session.close();
|
|
166
|
-
throw err;
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
const findById = async (session, objectId) => {
|
|
170
|
-
const match = objectIdMatch(cfg.profile, objectId);
|
|
171
|
-
if (!match)
|
|
172
|
-
return [];
|
|
173
|
-
const { AndFilter, EqualityFilter, FilterParser } = await loadLdapts();
|
|
174
|
-
const filter = new AndFilter({ filters: [FilterParser.parseString(cfg.userFilter), new EqualityFilter(match)] });
|
|
175
|
-
return session.search(filter, attributes, shape.binaryAttributes);
|
|
176
|
-
};
|
|
177
|
-
let closed = false;
|
|
178
|
-
// Shared with sign-in so local designation never acquires a weaker identity/eligibility rule.
|
|
179
|
-
const selectLogin = async (service, login) => {
|
|
180
|
-
const found = await service.search(`(&${cfg.userFilter}(${cfg.loginAttribute}=${escapeFilterValue(login)}))`, attributes, shape.binaryAttributes);
|
|
181
|
-
if (closed)
|
|
182
|
-
return { ok: false, reason: "unavailable" };
|
|
183
|
-
if (found.length === 0)
|
|
184
|
-
return { ok: false, reason: "not-found" };
|
|
185
|
-
if (found.length !== 1)
|
|
186
|
-
return { ok: false, reason: "unavailable", detail: "the login matches more than one entry" };
|
|
187
|
-
const entry = found[0], objectId = readObjectId(cfg.profile, entry);
|
|
188
|
-
if (!objectId)
|
|
189
|
-
return { ok: false, reason: "unavailable", detail: `the entry has no usable ${shape.idAttribute}` };
|
|
190
|
-
if (isDisabled(cfg.profile, entry, now()))
|
|
191
|
-
return { ok: false, reason: "not-eligible" };
|
|
192
|
-
return { ok: true, entry, objectId };
|
|
193
|
-
};
|
|
194
|
-
const recheck = async (service, entry, objectId, expectedLogin) => {
|
|
195
|
-
const again = await findById(service, objectId), current = again.length === 1 ? again[0] : undefined;
|
|
196
|
-
if (closed || !current || readObjectId(cfg.profile, current) !== objectId
|
|
197
|
-
|| current.dn.toLowerCase() !== entry.dn.toLowerCase()
|
|
198
|
-
|| (expectedLogin !== undefined && readText(current, cfg.loginAttribute)?.toLowerCase() !== expectedLogin.toLowerCase()))
|
|
199
|
-
return { ok: false, reason: "unavailable" };
|
|
200
|
-
if (isDisabled(cfg.profile, current, now()))
|
|
201
|
-
return { ok: false, reason: "not-eligible" };
|
|
202
|
-
return { ok: true, person: toPerson(current, objectId) };
|
|
203
|
-
};
|
|
204
|
-
return {
|
|
205
|
-
realm: cfg.realm,
|
|
206
|
-
async close() {
|
|
207
|
-
// Nothing is pooled; after close every call refuses (fail closed) instead of opening a new connection.
|
|
208
|
-
closed = true;
|
|
209
|
-
},
|
|
210
|
-
async lookupForInitialization(login) {
|
|
211
|
-
if (closed)
|
|
212
|
-
return { ok: false, reason: "unavailable" };
|
|
213
|
-
if (!validLogin(login))
|
|
214
|
-
return { ok: false, reason: "bad-input" };
|
|
215
|
-
let service;
|
|
216
|
-
try {
|
|
217
|
-
service = await openService();
|
|
218
|
-
const selected = await selectLogin(service, login);
|
|
219
|
-
if (!selected.ok)
|
|
220
|
-
return { ok: false, reason: selected.reason };
|
|
221
|
-
// Re-read by immutable id; a rename, deletion or replacement while selecting never retargets the plan.
|
|
222
|
-
return await recheck(service, selected.entry, selected.objectId, login);
|
|
223
|
-
}
|
|
224
|
-
catch (err) {
|
|
225
|
-
// Init diagnostics are local, but server-supplied exception text can repeat a login or DN.
|
|
226
|
-
const certificate = err instanceof Error && /certificate|self.signed|verify/i.test(err.message);
|
|
227
|
-
report("initialization-lookup", "unavailable", certificate ? "directory certificate verification failed" : "directory lookup failed");
|
|
228
|
-
return { ok: false, reason: "unavailable" };
|
|
229
|
-
}
|
|
230
|
-
finally {
|
|
231
|
-
await service?.close();
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
async signIn(login, password) {
|
|
235
|
-
if (closed)
|
|
236
|
-
return { ok: false, reason: "unavailable" };
|
|
237
|
-
if (!validLogin(login) || !validPassword(password)) {
|
|
238
|
-
report("sign-in", "bad-input");
|
|
239
|
-
return { ok: false, reason: "bad-input" };
|
|
240
|
-
}
|
|
241
|
-
let service;
|
|
242
|
-
try {
|
|
243
|
-
service = await openService();
|
|
244
|
-
const selected = await selectLogin(service, login);
|
|
245
|
-
if (!selected.ok) {
|
|
246
|
-
const reason = selected.reason === "not-found" ? "invalid-credentials" : selected.reason;
|
|
247
|
-
report("sign-in", reason, selected.detail);
|
|
248
|
-
return { ok: false, reason };
|
|
249
|
-
}
|
|
250
|
-
const { entry, objectId } = selected;
|
|
251
|
-
// The password goes to the directory once, on its own connection, for the DN the service search found.
|
|
252
|
-
const user = await Session.open(cfg);
|
|
253
|
-
try {
|
|
254
|
-
await user.bind(entry.dn, password);
|
|
255
|
-
}
|
|
256
|
-
catch (err) {
|
|
257
|
-
const { InvalidCredentialsError } = await loadLdapts();
|
|
258
|
-
if (err instanceof InvalidCredentialsError) {
|
|
259
|
-
report("sign-in", "invalid-credentials");
|
|
260
|
-
return { ok: false, reason: "invalid-credentials" };
|
|
261
|
-
}
|
|
262
|
-
throw err;
|
|
263
|
-
}
|
|
264
|
-
finally {
|
|
265
|
-
await user.close();
|
|
266
|
-
}
|
|
267
|
-
// The bound DN must still be the same object, still enabled (closes a delete/recreate race during the bind).
|
|
268
|
-
const checked = await recheck(service, entry, objectId);
|
|
269
|
-
if (!checked.ok) {
|
|
270
|
-
const reason = checked.reason === "not-eligible" ? "not-eligible" : "unavailable";
|
|
271
|
-
report("sign-in", reason, reason === "unavailable" ? "the entry changed during sign-in" : undefined);
|
|
272
|
-
return { ok: false, reason };
|
|
273
|
-
}
|
|
274
|
-
return checked;
|
|
275
|
-
}
|
|
276
|
-
catch (err) {
|
|
277
|
-
report("sign-in", "unavailable", err);
|
|
278
|
-
return { ok: false, reason: "unavailable" };
|
|
279
|
-
}
|
|
280
|
-
finally {
|
|
281
|
-
await service?.close();
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
async checkEligibility(key) {
|
|
285
|
-
if (closed)
|
|
286
|
-
return { eligible: false, reason: "unavailable" };
|
|
287
|
-
if (!key || key.realm !== cfg.realm || typeof key.objectId !== "string" || !objectIdMatch(cfg.profile, key.objectId)) {
|
|
288
|
-
report("eligibility", "gone", "not a person key of this realm");
|
|
289
|
-
return { eligible: false, reason: "gone" };
|
|
290
|
-
}
|
|
291
|
-
let service;
|
|
292
|
-
try {
|
|
293
|
-
service = await openService();
|
|
294
|
-
const found = await findById(service, key.objectId);
|
|
295
|
-
if (found.length > 1) {
|
|
296
|
-
report("eligibility", "unavailable", "the object id matches more than one entry");
|
|
297
|
-
return { eligible: false, reason: "unavailable" };
|
|
298
|
-
}
|
|
299
|
-
const entry = found[0];
|
|
300
|
-
if (!entry || readObjectId(cfg.profile, entry) !== key.objectId) {
|
|
301
|
-
report("eligibility", "gone");
|
|
302
|
-
return { eligible: false, reason: "gone" };
|
|
303
|
-
}
|
|
304
|
-
if (isDisabled(cfg.profile, entry, now())) {
|
|
305
|
-
report("eligibility", "disabled");
|
|
306
|
-
return { eligible: false, reason: "disabled" };
|
|
307
|
-
}
|
|
308
|
-
return { eligible: true, person: toPerson(entry, key.objectId) };
|
|
309
|
-
}
|
|
310
|
-
catch (err) {
|
|
311
|
-
report("eligibility", "unavailable", err);
|
|
312
|
-
return { eligible: false, reason: "unavailable" };
|
|
313
|
-
}
|
|
314
|
-
finally {
|
|
315
|
-
await service?.close();
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
//# sourceMappingURL=directory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../../src/hub/directory/directory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAgC,MAAM,aAAa,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAsB7H,MAAM,sBAAuB,SAAQ,KAAK;IACxC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF;AAGD,IAAI,YAAyC,CAAC;AAC9C,SAAS,UAAU;IACjB,YAAY,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,YAAY,GAAG,IAAI,CAAC;AAC1B,gGAAgG;AAChG,MAAM,WAAW,GAAG,gFAAgF,CAAC;AAErG,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CA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,UAAU,EAAE,CAAC;gBACjD,CAAC;gBACD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnE,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,CAAC,aAAa,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;gBAC1C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;YACpD,CAAC;oBAAS,CAAC;gBACT,MAAM,OAAO,EAAE,KAAK,EAAE,CAAC;YACzB,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** AgEnD Hub directory sign-in (S-43). Import this module only when the Hub is enabled; it loads the LDAP client lazily. */
|
|
2
|
-
export type { DirectoryPerson, Eligibility, HubDirectory, IneligibleReason, InitializationLookupResult, PersonKey, SignInRefusal, SignInResult } from "./types.js";
|
|
3
|
-
export { personKeyString, samePerson } from "./types.js";
|
|
4
|
-
export type { DirectoryProfile, HubDirectoryConfig } from "./config.js";
|
|
5
|
-
export { HubDirectoryConfigError, resolveDirectoryConfig } from "./config.js";
|
|
6
|
-
export type { HubDirectoryDiagnostic, HubDirectoryOptions, HubDirectorySecrets } from "./directory.js";
|
|
7
|
-
export { createHubDirectory } from "./directory.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hub/directory/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEzD,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* How each directory flavour names the things the Hub needs: the immutable object id, the login, and "disabled".
|
|
3
|
-
*
|
|
4
|
-
* - ad: objectGUID (16 bytes; shown in the usual mixed-endian GUID text form), sAMAccountName, userAccountControl bit 2
|
|
5
|
-
* (ACCOUNTDISABLE) and accountExpires (FILETIME; 0 and 0x7FFFFFFFFFFFFFFF mean never).
|
|
6
|
-
* - openldap: entryUUID (RFC 4530), uid, and the ppolicy administrative lock (pwdAccountLockedTime 000001010000Z).
|
|
7
|
-
* A temporary password lockout is left to the server, which refuses the bind while it lasts.
|
|
8
|
-
*/
|
|
9
|
-
import type { DirectoryProfile } from "./config.js";
|
|
10
|
-
export interface ProfileShape {
|
|
11
|
-
readonly idAttribute: string;
|
|
12
|
-
/** Attributes the search must return as raw bytes. */
|
|
13
|
-
readonly binaryAttributes: readonly string[];
|
|
14
|
-
readonly departmentAttribute: string;
|
|
15
|
-
readonly statusAttributes: readonly string[];
|
|
16
|
-
}
|
|
17
|
-
export declare const PROFILES: Record<DirectoryProfile, ProfileShape>;
|
|
18
|
-
export declare function isCanonicalObjectId(value: string): boolean;
|
|
19
|
-
/** objectGUID bytes → the GUID text AD tools show (first three groups little-endian), lowercase. */
|
|
20
|
-
export declare function guidBytesToString(bytes: Uint8Array): string | undefined;
|
|
21
|
-
/** The inverse of guidBytesToString. */
|
|
22
|
-
export declare function guidStringToBytes(guid: string): Buffer | undefined;
|
|
23
|
-
/** RFC 4515 assertion-value escaping for text. */
|
|
24
|
-
export declare function escapeFilterValue(value: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* The equality match that finds exactly the entry with this object id. A binary objectGUID is matched with its raw
|
|
27
|
-
* bytes in a filter object: ldapts turns "\xx" escapes in a filter string into characters and re-encodes them as
|
|
28
|
-
* UTF-8, which changes every byte above 0x7f, so an escaped string would never match.
|
|
29
|
-
*/
|
|
30
|
-
export declare function objectIdMatch(profile: DirectoryProfile, objectId: string): {
|
|
31
|
-
attribute: string;
|
|
32
|
-
value: string | Buffer;
|
|
33
|
-
} | undefined;
|
|
34
|
-
type Values = string | Buffer | readonly (string | Buffer)[] | undefined;
|
|
35
|
-
/** The entry's canonical object id, or undefined when it is missing or malformed (the entry is then refused). */
|
|
36
|
-
export declare function readObjectId(profile: DirectoryProfile, entry: Record<string, Values>): string | undefined;
|
|
37
|
-
/** True when the directory marks the account disabled or expired. Unparseable status counts as disabled. */
|
|
38
|
-
export declare function isDisabled(profile: DirectoryProfile, entry: Record<string, Values>, nowMs: number): boolean;
|
|
39
|
-
export declare function readText(entry: Record<string, Values>, attribute: string): string | undefined;
|
|
40
|
-
export declare function readTextList(entry: Record<string, Values>, attribute: string): string[];
|
|
41
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
export const PROFILES = {
|
|
2
|
-
ad: { idAttribute: "objectGUID", binaryAttributes: ["objectGUID"], departmentAttribute: "department", statusAttributes: ["userAccountControl", "accountExpires"] },
|
|
3
|
-
openldap: { idAttribute: "entryUUID", binaryAttributes: [], departmentAttribute: "departmentNumber", statusAttributes: ["pwdAccountLockedTime"] },
|
|
4
|
-
};
|
|
5
|
-
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
6
|
-
export function isCanonicalObjectId(value) {
|
|
7
|
-
return UUID.test(value);
|
|
8
|
-
}
|
|
9
|
-
/** objectGUID bytes → the GUID text AD tools show (first three groups little-endian), lowercase. */
|
|
10
|
-
export function guidBytesToString(bytes) {
|
|
11
|
-
if (bytes.length !== 16)
|
|
12
|
-
return undefined;
|
|
13
|
-
const h = (i) => bytes[i].toString(16).padStart(2, "0");
|
|
14
|
-
const order = [3, 2, 1, 0, -1, 5, 4, -1, 7, 6, -1, 8, 9, -1, 10, 11, 12, 13, 14, 15];
|
|
15
|
-
return order.map((i) => (i < 0 ? "-" : h(i))).join("");
|
|
16
|
-
}
|
|
17
|
-
/** The inverse of guidBytesToString. */
|
|
18
|
-
export function guidStringToBytes(guid) {
|
|
19
|
-
if (!UUID.test(guid))
|
|
20
|
-
return undefined;
|
|
21
|
-
const hex = guid.replace(/-/g, "");
|
|
22
|
-
const b = Buffer.from(hex, "hex");
|
|
23
|
-
return Buffer.from([b[3], b[2], b[1], b[0], b[5], b[4], b[7], b[6], ...b.subarray(8)]);
|
|
24
|
-
}
|
|
25
|
-
/** RFC 4515 assertion-value escaping for text. */
|
|
26
|
-
export function escapeFilterValue(value) {
|
|
27
|
-
return value.replace(/[\\*()\u0000]/g, (c) => `\\${c.charCodeAt(0).toString(16).padStart(2, "0")}`);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* The equality match that finds exactly the entry with this object id. A binary objectGUID is matched with its raw
|
|
31
|
-
* bytes in a filter object: ldapts turns "\xx" escapes in a filter string into characters and re-encodes them as
|
|
32
|
-
* UTF-8, which changes every byte above 0x7f, so an escaped string would never match.
|
|
33
|
-
*/
|
|
34
|
-
export function objectIdMatch(profile, objectId) {
|
|
35
|
-
if (!isCanonicalObjectId(objectId))
|
|
36
|
-
return undefined;
|
|
37
|
-
if (profile === "ad") {
|
|
38
|
-
const bytes = guidStringToBytes(objectId);
|
|
39
|
-
return bytes ? { attribute: "objectGUID", value: bytes } : undefined;
|
|
40
|
-
}
|
|
41
|
-
return { attribute: "entryUUID", value: objectId };
|
|
42
|
-
}
|
|
43
|
-
function first(v) {
|
|
44
|
-
return Array.isArray(v) ? v[0] : v;
|
|
45
|
-
}
|
|
46
|
-
/** The entry's canonical object id, or undefined when it is missing or malformed (the entry is then refused). */
|
|
47
|
-
export function readObjectId(profile, entry) {
|
|
48
|
-
const raw = first(entry[PROFILES[profile].idAttribute]);
|
|
49
|
-
if (profile === "ad")
|
|
50
|
-
return Buffer.isBuffer(raw) ? guidBytesToString(raw) : undefined;
|
|
51
|
-
if (typeof raw !== "string")
|
|
52
|
-
return undefined;
|
|
53
|
-
const id = raw.toLowerCase();
|
|
54
|
-
return isCanonicalObjectId(id) ? id : undefined;
|
|
55
|
-
}
|
|
56
|
-
const NEVER_EXPIRES = 0x7fffffffffffffffn;
|
|
57
|
-
const FILETIME_EPOCH_OFFSET_MS = 11644473600000n;
|
|
58
|
-
/** True when the directory marks the account disabled or expired. Unparseable status counts as disabled. */
|
|
59
|
-
export function isDisabled(profile, entry, nowMs) {
|
|
60
|
-
if (profile === "ad") {
|
|
61
|
-
const uacText = first(entry.userAccountControl);
|
|
62
|
-
if (typeof uacText !== "string" || !/^-?\d{1,10}$/.test(uacText))
|
|
63
|
-
return true; // AD always has it: missing = refuse
|
|
64
|
-
if ((Number(uacText) & 0x2) !== 0)
|
|
65
|
-
return true;
|
|
66
|
-
const exp = first(entry.accountExpires);
|
|
67
|
-
if (exp === undefined)
|
|
68
|
-
return false;
|
|
69
|
-
if (typeof exp !== "string" || !/^-?\d{1,20}$/.test(exp))
|
|
70
|
-
return true;
|
|
71
|
-
const ft = BigInt(exp);
|
|
72
|
-
if (ft === 0n || ft === NEVER_EXPIRES)
|
|
73
|
-
return false;
|
|
74
|
-
const expiresMs = ft / 10000n - FILETIME_EPOCH_OFFSET_MS;
|
|
75
|
-
return expiresMs <= BigInt(Math.floor(nowMs));
|
|
76
|
-
}
|
|
77
|
-
const locked = entry.pwdAccountLockedTime;
|
|
78
|
-
const values = (Array.isArray(locked) ? locked : locked === undefined ? [] : [locked]);
|
|
79
|
-
return values.some((v) => String(v) === "000001010000Z");
|
|
80
|
-
}
|
|
81
|
-
export function readText(entry, attribute) {
|
|
82
|
-
const v = first(entry[attribute]);
|
|
83
|
-
return typeof v === "string" && v.length > 0 ? v : undefined;
|
|
84
|
-
}
|
|
85
|
-
export function readTextList(entry, attribute) {
|
|
86
|
-
const v = entry[attribute];
|
|
87
|
-
const list = Array.isArray(v) ? v : v === undefined ? [] : [v];
|
|
88
|
-
return list.filter((x) => typeof x === "string");
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=profiles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","source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,SAAS,CAAC,CAAC,CAAC;IAClC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAA6B,EAAE,SAAiB;IAC3E,MAAM,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IAC3B,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAe,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AgEnD Hub — directory sign-in (S-43, design issue #3095 §2 and §4 "Revoke or change roles").
|
|
3
|
-
*
|
|
4
|
-
* A person is the directory realm plus the directory's immutable object id (entryUUID, or objectGUID decoded). The login
|
|
5
|
-
* name, display name and email are attributes that can change; they never identify anyone. A renamed account keeps
|
|
6
|
-
* its key; a deleted-and-recreated account with the same login gets a new key and inherits nothing.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* The only identity the Hub stores or authorizes against. realm: a stable configured id ([a-z][a-z0-9_-]{0,63});
|
|
10
|
-
* objectId: a lowercase canonical UUID. Neither contains "/", so personKeyString is unambiguous.
|
|
11
|
-
*/
|
|
12
|
-
export interface PersonKey {
|
|
13
|
-
readonly realm: string;
|
|
14
|
-
readonly objectId: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* What the directory says about a person right now. Never cached by this module. Server-side only: UI, member and
|
|
18
|
-
* envelope DTOs project it and never forward dn, groups or anything about the service account (S-42 contract).
|
|
19
|
-
*/
|
|
20
|
-
export interface DirectoryPerson {
|
|
21
|
-
readonly key: PersonKey;
|
|
22
|
-
/** The current login (it changes on a rename). Display only. */
|
|
23
|
-
readonly login: string;
|
|
24
|
-
readonly dn: string;
|
|
25
|
-
readonly displayName?: string;
|
|
26
|
-
readonly email?: string;
|
|
27
|
-
readonly department?: string;
|
|
28
|
-
/** Group DNs from memberOf. Informational in P1: grants are personal (design §4). */
|
|
29
|
-
readonly groups: readonly string[];
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Why a sign-in was refused. For the audit log only: the sign-in page shows one generic refusal for all of them, so it
|
|
33
|
-
* never reveals whether a login exists or is disabled.
|
|
34
|
-
*/
|
|
35
|
-
export type SignInRefusal = "bad-input" | "invalid-credentials" | "not-eligible" | "unavailable";
|
|
36
|
-
export type SignInResult = {
|
|
37
|
-
readonly ok: true;
|
|
38
|
-
readonly person: DirectoryPerson;
|
|
39
|
-
} | {
|
|
40
|
-
readonly ok: false;
|
|
41
|
-
readonly reason: SignInRefusal;
|
|
42
|
-
};
|
|
43
|
-
/** Local initialization only: finding an account does not authenticate it or issue a session. */
|
|
44
|
-
export type InitializationLookupResult = {
|
|
45
|
-
readonly ok: true;
|
|
46
|
-
readonly person: DirectoryPerson;
|
|
47
|
-
} | {
|
|
48
|
-
readonly ok: false;
|
|
49
|
-
readonly reason: "bad-input" | "not-found" | "not-eligible" | "unavailable";
|
|
50
|
-
};
|
|
51
|
-
export type IneligibleReason = "gone" | "disabled" | "unavailable";
|
|
52
|
-
export type Eligibility = {
|
|
53
|
-
readonly eligible: true;
|
|
54
|
-
readonly person: DirectoryPerson;
|
|
55
|
-
} | {
|
|
56
|
-
readonly eligible: false;
|
|
57
|
-
readonly reason: IneligibleReason;
|
|
58
|
-
};
|
|
59
|
-
export interface HubDirectory {
|
|
60
|
-
readonly realm: string;
|
|
61
|
-
/** Verify a login and password with the directory. The password is used for one bind and never kept. */
|
|
62
|
-
signIn(login: string, password: string): Promise<SignInResult>;
|
|
63
|
-
/** Narrow service-account lookup for local init, never exposed as a browser lookup endpoint. Missing = unavailable. */
|
|
64
|
-
lookupForInitialization?(login: string): Promise<InitializationLookupResult>;
|
|
65
|
-
/** Per-request eligibility (design §4): exists, same immutable id, enabled. No cache; unreachable = not eligible. */
|
|
66
|
-
checkEligibility(key: PersonKey): Promise<Eligibility>;
|
|
67
|
-
/** Release the directory; later calls refuse (unavailable). */
|
|
68
|
-
close(): Promise<void>;
|
|
69
|
-
}
|
|
70
|
-
export declare function personKeyString(key: PersonKey): string;
|
|
71
|
-
export declare function samePerson(a: PersonKey, b: PersonKey): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AgEnD Hub — directory sign-in (S-43, design issue #3095 §2 and §4 "Revoke or change roles").
|
|
3
|
-
*
|
|
4
|
-
* A person is the directory realm plus the directory's immutable object id (entryUUID, or objectGUID decoded). The login
|
|
5
|
-
* name, display name and email are attributes that can change; they never identify anyone. A renamed account keeps
|
|
6
|
-
* its key; a deleted-and-recreated account with the same login gets a new key and inherits nothing.
|
|
7
|
-
*/
|
|
8
|
-
export function personKeyString(key) {
|
|
9
|
-
return `${key.realm}/${key.objectId}`;
|
|
10
|
-
}
|
|
11
|
-
export function samePerson(a, b) {
|
|
12
|
-
return a.realm === b.realm && a.objectId === b.objectId;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/hub/directory/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmEH,MAAM,UAAU,eAAe,CAAC,GAAc;IAC5C,OAAO,GAAG,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,CAAY,EAAE,CAAY;IACnD,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ,CAAC;AAC1D,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { HubIsolatedProvider } from "./service.js";
|
|
2
|
-
import { type HubCliBackend, type HubModelBroker } from "./model-broker.js";
|
|
3
|
-
export declare const HUB_PROVIDER_CLI_VERSIONS: Readonly<{
|
|
4
|
-
claude: "2.1.316";
|
|
5
|
-
codex: "0.166.0";
|
|
6
|
-
}>;
|
|
7
|
-
export interface HubCliProviderOptions {
|
|
8
|
-
backend: HubCliBackend;
|
|
9
|
-
/** Immutable LOCAL image ID, never a tag or remote ref. No runtime pull. */
|
|
10
|
-
imageId: string;
|
|
11
|
-
model: string;
|
|
12
|
-
modelBroker: HubModelBroker;
|
|
13
|
-
/** A local Unix socket only. No Docker environment/context or remote daemon is inherited. */
|
|
14
|
-
dockerSocket?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface HubCliProvider extends HubIsolatedProvider {
|
|
17
|
-
close(): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
export declare function hubContainerArguments(imageId: string, name: string, token: string, contextId: string): string[];
|
|
20
|
-
/** Check actual engine state, not just the command that requested isolation. */
|
|
21
|
-
export declare function verifyHubContainer(value: unknown, imageId: string, token: string, contextId?: string): void;
|
|
22
|
-
/** Explicit async availability check; merely importing this module cannot install or start anything. */
|
|
23
|
-
export declare function createHubCliProvider(options: HubCliProviderOptions): Promise<HubCliProvider>;
|