@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
package/dist/general-binding.js
DELETED
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
/** Metadata-only General location journal. Provider homes and conversations never move. */
|
|
2
|
-
import { constants, closeSync, fstatSync, mkdirSync, openSync, readFileSync } from "node:fs";
|
|
3
|
-
import { basename, dirname, join } from "node:path";
|
|
4
|
-
import { createHash, randomUUID } from "node:crypto";
|
|
5
|
-
import { atomicWriteFileSync } from "./atomic-write.js";
|
|
6
|
-
import { settingsFingerprint } from "./settings-transaction.js";
|
|
7
|
-
const uuid = (v) => typeof v === "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(v);
|
|
8
|
-
const object = (v) => !!v && typeof v === "object" && !Array.isArray(v);
|
|
9
|
-
const text = (v, n) => typeof v === "string" && v.length <= n && !/[\p{Cc}\p{Cf}]/u.test(v);
|
|
10
|
-
const closed = (v, keys) => Object.keys(v).every(k => keys.includes(k));
|
|
11
|
-
const config = (v) => object(v) && typeof v.working_directory === "string" && v.general_topic === true;
|
|
12
|
-
export function parseGeneralSwitchInput(v) {
|
|
13
|
-
if (!object(v) || !closed(v, ["name", "revision", "target"]) || !text(v.name, 256) || !v.name
|
|
14
|
-
|| !/^[0-9a-f]{64}$/.test(typeof v.revision === "string" ? v.revision : "") || !object(v.target))
|
|
15
|
-
throw Error("Invalid General location request");
|
|
16
|
-
const target = v.target;
|
|
17
|
-
if (target.location === "host" && closed(target, ["location"]))
|
|
18
|
-
return structuredClone(v);
|
|
19
|
-
if (target.location !== "windows" || !closed(target, ["location", "machineId", "cli", "model"]) || !uuid(target.machineId)
|
|
20
|
-
|| target.cli !== "claude-code" && target.cli !== "codex" || !text(target.model, 256))
|
|
21
|
-
throw Error("Invalid General location target");
|
|
22
|
-
return structuredClone(v);
|
|
23
|
-
}
|
|
24
|
-
export function generalBindingRevision(value, current) {
|
|
25
|
-
return settingsFingerprint([value, current]);
|
|
26
|
-
}
|
|
27
|
-
function validate(raw, name) {
|
|
28
|
-
if (!object(raw) || raw.version !== 1 || raw.name !== name || !uuid(raw.revision) || !object(raw.host) || !config(raw.host.config)
|
|
29
|
-
|| raw.host.config.runtime === "windows" || !Array.isArray(raw.windows) || raw.windows.length > 32
|
|
30
|
-
|| !closed(raw, ["version", "name", "revision", "host", "active", "windows", "pending", "hold"]))
|
|
31
|
-
throw Error("General binding journal scope differs");
|
|
32
|
-
const ids = new Set(), agents = new Set();
|
|
33
|
-
for (const row of raw.windows) {
|
|
34
|
-
if (!object(row) || !uuid(row.id) || !uuid(row.agentId) || !uuid(row.machineId) || row.cli !== "claude-code" && row.cli !== "codex"
|
|
35
|
-
|| !config(row.config) || row.config.runtime !== "windows" || row.config.native_adapter !== "pane"
|
|
36
|
-
|| row.config.native_general_binding !== row.id || row.config.native_agent_id !== row.agentId
|
|
37
|
-
|| row.config.machine_id !== row.machineId || row.config.backend !== row.cli || ids.has(row.id) || agents.has(row.agentId))
|
|
38
|
-
throw Error("General Windows binding scope differs");
|
|
39
|
-
ids.add(row.id);
|
|
40
|
-
agents.add(row.agentId);
|
|
41
|
-
}
|
|
42
|
-
if (raw.active !== "host" && (!uuid(raw.active) || !ids.has(raw.active)))
|
|
43
|
-
throw Error("General active binding differs");
|
|
44
|
-
if (raw.host.pin !== undefined && (!object(raw.host.pin) || !text(raw.host.pin.backend, 64) || !text(raw.host.pin.sessionId, 256) || !raw.host.pin.sessionId))
|
|
45
|
-
throw Error("General host pin differs");
|
|
46
|
-
if (raw.hold !== undefined && raw.hold !== "exit" && raw.hold !== "start")
|
|
47
|
-
throw Error("General binding hold differs");
|
|
48
|
-
if (raw.pending !== undefined) {
|
|
49
|
-
const p = raw.pending;
|
|
50
|
-
if (!object(p) || !uuid(p.id) || p.phase !== "prepared" && p.phase !== "stopped" && p.phase !== "selected" || !config(p.source) || !config(p.target)
|
|
51
|
-
|| p.from !== "host" && (!uuid(p.from) || !ids.has(p.from)) || p.to !== "host" && (!uuid(p.to) || !ids.has(p.to))
|
|
52
|
-
|| p.from === p.to || !Number.isSafeInteger(p.at) || p.at < 0)
|
|
53
|
-
throw Error("General switch intent differs");
|
|
54
|
-
const target = p.to === "host" ? raw.host.config : raw.windows.find(row => row.id === p.to).config;
|
|
55
|
-
if (settingsFingerprint(target) !== settingsFingerprint(p.target) || p.phase === "selected" && raw.active !== p.to
|
|
56
|
-
|| p.phase !== "selected" && raw.active !== p.from)
|
|
57
|
-
throw Error("General switch configuration differs");
|
|
58
|
-
if (p.hostOwner !== undefined) {
|
|
59
|
-
const o = p.hostOwner;
|
|
60
|
-
if (!object(o) || o.kind !== "tmux" || typeof o.windowId !== "string" || !/^@\d+$/.test(o.windowId)
|
|
61
|
-
|| !Number.isSafeInteger(o.pid) || o.pid <= 1
|
|
62
|
-
|| o.pin !== undefined && (!object(o.pin) || !text(o.pin.backend, 64) || !text(o.pin.sessionId, 256) || !o.pin.sessionId))
|
|
63
|
-
throw Error("General old host owner differs");
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return structuredClone(raw);
|
|
67
|
-
}
|
|
68
|
-
export class GeneralBindings {
|
|
69
|
-
home;
|
|
70
|
-
constructor(home) {
|
|
71
|
-
this.home = home;
|
|
72
|
-
}
|
|
73
|
-
path(name) { return join(this.home, "general-bindings", `${createHash("sha256").update(name).digest("hex")}.json`); }
|
|
74
|
-
read(name) {
|
|
75
|
-
let fd;
|
|
76
|
-
try {
|
|
77
|
-
fd = openSync(this.path(name), constants.O_RDONLY | constants.O_NOFOLLOW);
|
|
78
|
-
}
|
|
79
|
-
catch (err) {
|
|
80
|
-
if (err.code === "ENOENT")
|
|
81
|
-
return null;
|
|
82
|
-
throw err;
|
|
83
|
-
}
|
|
84
|
-
try {
|
|
85
|
-
const st = fstatSync(fd);
|
|
86
|
-
if (!st.isFile() || st.size > 1024 * 1024 || typeof process.getuid === "function" && st.uid !== process.getuid())
|
|
87
|
-
throw Error("General binding journal is not an owned regular file");
|
|
88
|
-
const bytes = readFileSync(fd);
|
|
89
|
-
if (bytes.length > 1024 * 1024)
|
|
90
|
-
throw Error("General binding journal is too large");
|
|
91
|
-
const value = JSON.parse(bytes.toString("utf8"));
|
|
92
|
-
if (!object(value) || value.checksum !== settingsFingerprint(value.record))
|
|
93
|
-
throw Error("General binding journal checksum differs");
|
|
94
|
-
return validate(value.record, name);
|
|
95
|
-
}
|
|
96
|
-
finally {
|
|
97
|
-
closeSync(fd);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
write(value) {
|
|
101
|
-
const record = validate(value, value.name), bytes = JSON.stringify({ record, checksum: settingsFingerprint(record) });
|
|
102
|
-
if (Buffer.byteLength(bytes) > 1024 * 1024)
|
|
103
|
-
throw Error("General binding journal is too large");
|
|
104
|
-
mkdirSync(join(this.home, "general-bindings"), { recursive: true, mode: 0o700 });
|
|
105
|
-
atomicWriteFileSync(this.path(record.name), bytes, { mode: 0o600 });
|
|
106
|
-
}
|
|
107
|
-
/** A selected intent already owns this exact config. Publication settles its receipt after a coordinator restart. */
|
|
108
|
-
completeSelected(name, current) {
|
|
109
|
-
const record = this.read(name);
|
|
110
|
-
if (!record)
|
|
111
|
-
return false;
|
|
112
|
-
const selected = record.active === "host" ? record.host.config : record.windows.find(row => row.id === record.active).config;
|
|
113
|
-
if (record.pending ? record.pending.phase !== "selected" || settingsFingerprint(record.pending.target) !== settingsFingerprint(current)
|
|
114
|
-
: record.hold !== "start" || settingsFingerprint(selected) !== settingsFingerprint(current))
|
|
115
|
-
return false;
|
|
116
|
-
delete record.pending;
|
|
117
|
-
delete record.hold;
|
|
118
|
-
this.write(record);
|
|
119
|
-
return true;
|
|
120
|
-
}
|
|
121
|
-
/** Called on every start, including boot and automatic recovery. Never guess through an unfinished switch. */
|
|
122
|
-
assertStart(name, current) {
|
|
123
|
-
const record = this.read(name);
|
|
124
|
-
if (!record)
|
|
125
|
-
return;
|
|
126
|
-
if (record.pending && (record.pending.phase !== "selected" || settingsFingerprint(record.pending.target) !== settingsFingerprint(current)))
|
|
127
|
-
throw Error("General switch is waiting for a confirmed old process exit");
|
|
128
|
-
const selected = record.active === "host" ? record.host.config : record.windows.find(row => row.id === record.active).config;
|
|
129
|
-
const sameBinding = record.active === "host" ? current.runtime !== "windows" :
|
|
130
|
-
["runtime", "machine_id", "native_agent_id", "native_adapter", "native_general_binding", "backend", "working_directory"].every(key => selected[key] === current[key]);
|
|
131
|
-
if (!sameBinding || !current.general_topic)
|
|
132
|
-
throw Error("General binding differs from the saved location");
|
|
133
|
-
// Ordinary approved settings edits keep their existing policy. They must not turn a later restart into a binding hold.
|
|
134
|
-
if (!record.pending && settingsFingerprint(selected) !== settingsFingerprint(current)) {
|
|
135
|
-
if (record.active === "host") {
|
|
136
|
-
if (selected.backend !== current.backend || selected.working_directory !== current.working_directory)
|
|
137
|
-
delete record.host.pin;
|
|
138
|
-
record.host.config = structuredClone(current);
|
|
139
|
-
}
|
|
140
|
-
else
|
|
141
|
-
record.windows.find(row => row.id === record.active).config = structuredClone(current);
|
|
142
|
-
record.revision = randomUUID();
|
|
143
|
-
this.write(record);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
/** Only an unfinished, selected switch-back can override the host backend's ordinary resume policy. */
|
|
148
|
-
export function selectedGeneralHostSession(instanceDir, name, backend, cwd) {
|
|
149
|
-
if (basename(instanceDir) !== name || basename(dirname(instanceDir)) !== "instances")
|
|
150
|
-
return null;
|
|
151
|
-
const record = new GeneralBindings(dirname(dirname(instanceDir))).read(name);
|
|
152
|
-
if (record?.pending?.phase !== "selected" || record.pending.to !== "host" || record.active !== "host" || !record.host.pin)
|
|
153
|
-
return null;
|
|
154
|
-
if (record.host.pin.backend !== backend || record.host.config.working_directory !== cwd || !uuid(record.host.pin.sessionId))
|
|
155
|
-
throw Error("General's saved host conversation scope differs");
|
|
156
|
-
return record.host.pin.sessionId;
|
|
157
|
-
}
|
|
158
|
-
/** One lifecycle-serialized switch. The injected stop must positively prove its exact old owner exited. */
|
|
159
|
-
export async function switchGeneralLocation(deps, input, execution) {
|
|
160
|
-
deps.assert();
|
|
161
|
-
execution.assert();
|
|
162
|
-
let source = structuredClone(deps.current());
|
|
163
|
-
const before = deps.store.read(input.name);
|
|
164
|
-
if (!source.general_topic || input.revision !== generalBindingRevision(before, source))
|
|
165
|
-
throw Error("General location changed; read its settings again");
|
|
166
|
-
const record = before ?? { version: 1, name: input.name, revision: randomUUID(), active: "host", host: { config: source }, windows: [] };
|
|
167
|
-
if (!before && source.runtime === "windows")
|
|
168
|
-
throw Error("The original host General binding is not available");
|
|
169
|
-
if (!record.pending && record.active !== "host")
|
|
170
|
-
record.windows.find(row => row.id === record.active).config = source;
|
|
171
|
-
const matches = (target, id) => target.location === "host" ? id === "host"
|
|
172
|
-
: record.windows.some(row => row.id === id && row.machineId === target.machineId && row.cli === target.cli && (row.config.model ?? "") === target.model);
|
|
173
|
-
// Finish only the already-committed config write before reversing a selected intent. This never starts it.
|
|
174
|
-
// The ordinary stop below must still prove that selected Windows owner exited (or was never launched).
|
|
175
|
-
if (record.pending?.phase === "selected" && matches(input.target, record.pending.from)
|
|
176
|
-
&& settingsFingerprint(source) === settingsFingerprint(record.pending.source)) {
|
|
177
|
-
execution.mutate(() => deps.save(structuredClone(record.pending.target)));
|
|
178
|
-
source = structuredClone(deps.current());
|
|
179
|
-
}
|
|
180
|
-
if (!record.pending && record.hold === "start" && matches(input.target, record.active)) {
|
|
181
|
-
execution.commit(() => deps.save(source));
|
|
182
|
-
try {
|
|
183
|
-
await deps.start();
|
|
184
|
-
}
|
|
185
|
-
catch (err) {
|
|
186
|
-
deps.notify("start", err);
|
|
187
|
-
return { started: false };
|
|
188
|
-
}
|
|
189
|
-
delete record.hold;
|
|
190
|
-
deps.store.write(record);
|
|
191
|
-
deps.notify("complete");
|
|
192
|
-
return { started: true };
|
|
193
|
-
}
|
|
194
|
-
const activeWindows = record.windows.find(row => row.id === record.active);
|
|
195
|
-
if (!record.pending && input.target.location === "windows" && activeWindows?.machineId === input.target.machineId && activeWindows.cli === input.target.cli)
|
|
196
|
-
throw Error("General already runs at this location");
|
|
197
|
-
if (record.pending && matches(input.target, record.pending.to)) {
|
|
198
|
-
if (record.pending.phase === "selected") {
|
|
199
|
-
if (![record.pending.source, record.pending.target].some(row => settingsFingerprint(row) === settingsFingerprint(source)))
|
|
200
|
-
throw Error("General switch configuration was changed");
|
|
201
|
-
execution.commit(() => deps.save(structuredClone(record.pending.target)));
|
|
202
|
-
try {
|
|
203
|
-
await deps.start();
|
|
204
|
-
}
|
|
205
|
-
catch (err) {
|
|
206
|
-
record.hold = "start";
|
|
207
|
-
deps.store.write(record);
|
|
208
|
-
deps.notify("start", err);
|
|
209
|
-
return { started: false };
|
|
210
|
-
}
|
|
211
|
-
delete record.pending;
|
|
212
|
-
delete record.hold;
|
|
213
|
-
deps.store.write(record);
|
|
214
|
-
deps.notify("complete");
|
|
215
|
-
return { started: true };
|
|
216
|
-
}
|
|
217
|
-
if (settingsFingerprint(source) !== settingsFingerprint(record.pending.source))
|
|
218
|
-
throw Error("General switch configuration was changed");
|
|
219
|
-
}
|
|
220
|
-
else if (record.pending && record.pending.phase !== "selected")
|
|
221
|
-
throw Error("General has an unfinished switch to another location");
|
|
222
|
-
const replay = record.pending && record.pending.phase !== "selected" ? record.pending : undefined;
|
|
223
|
-
const windows = replay ? record.windows.find(row => row.id === replay.to) ?? null
|
|
224
|
-
: input.target.location === "windows" ? await deps.prepare(input.target, record) : null;
|
|
225
|
-
deps.assert();
|
|
226
|
-
execution.assert();
|
|
227
|
-
const to = windows?.id ?? "host";
|
|
228
|
-
if (to === record.active)
|
|
229
|
-
throw Error("General already runs at this location");
|
|
230
|
-
if (windows) {
|
|
231
|
-
const old = record.windows.findIndex(row => row.id === windows.id);
|
|
232
|
-
if (old < 0)
|
|
233
|
-
record.windows.push(windows);
|
|
234
|
-
else
|
|
235
|
-
record.windows[old] = windows;
|
|
236
|
-
}
|
|
237
|
-
if (!await deps.idle())
|
|
238
|
-
throw Error("Wait for General to be idle before switching its location");
|
|
239
|
-
deps.assert();
|
|
240
|
-
execution.assert();
|
|
241
|
-
const hostOwner = replay?.hostOwner ?? await deps.capture?.();
|
|
242
|
-
deps.assert();
|
|
243
|
-
execution.assert();
|
|
244
|
-
const target = structuredClone(windows?.config ?? record.host.config);
|
|
245
|
-
// The logical route always stays on the coordinator, including a retained host's older config.
|
|
246
|
-
for (const key of ["general_topic", "channel_id", "topic_id"]) {
|
|
247
|
-
if (source[key] === undefined)
|
|
248
|
-
delete target[key];
|
|
249
|
-
else
|
|
250
|
-
target[key] = source[key];
|
|
251
|
-
}
|
|
252
|
-
if (to === "host")
|
|
253
|
-
record.host.config = target;
|
|
254
|
-
else
|
|
255
|
-
record.windows.find(row => row.id === to).config = target;
|
|
256
|
-
record.pending = replay ?? { id: randomUUID(), phase: "prepared", from: record.active, to, source, target, at: Date.now(), ...(hostOwner ? { hostOwner } : {}) };
|
|
257
|
-
execution.mutate(() => deps.store.write(record));
|
|
258
|
-
let pin;
|
|
259
|
-
try {
|
|
260
|
-
await execution.stopTarget(input.name, async () => { pin = await deps.stop(record.pending.hostOwner); });
|
|
261
|
-
}
|
|
262
|
-
catch (err) {
|
|
263
|
-
record.hold = "exit";
|
|
264
|
-
deps.store.write(record);
|
|
265
|
-
deps.notify("exit", err);
|
|
266
|
-
throw err;
|
|
267
|
-
}
|
|
268
|
-
deps.assert();
|
|
269
|
-
execution.assert();
|
|
270
|
-
if (record.active === "host") {
|
|
271
|
-
record.host.config = structuredClone(deps.hostSnapshot?.() ?? source);
|
|
272
|
-
if (pin)
|
|
273
|
-
record.host.pin = pin;
|
|
274
|
-
}
|
|
275
|
-
record.pending.phase = "stopped";
|
|
276
|
-
execution.mutate(() => deps.store.write(record));
|
|
277
|
-
// Keep the stopped intent until both configuration and selected receipt are durable. Any crash in this gap holds.
|
|
278
|
-
record.active = to;
|
|
279
|
-
record.pending.phase = "selected";
|
|
280
|
-
record.revision = randomUUID();
|
|
281
|
-
delete record.hold;
|
|
282
|
-
execution.commit(() => { deps.store.write(record); deps.save(target); });
|
|
283
|
-
// The committed receipt permits only starting its selected config, never another settings mutation.
|
|
284
|
-
try {
|
|
285
|
-
await deps.start();
|
|
286
|
-
}
|
|
287
|
-
catch (err) {
|
|
288
|
-
record.hold = "start";
|
|
289
|
-
deps.store.write(record);
|
|
290
|
-
deps.notify("start", err);
|
|
291
|
-
return { started: false };
|
|
292
|
-
}
|
|
293
|
-
delete record.pending;
|
|
294
|
-
deps.store.write(record);
|
|
295
|
-
deps.notify("complete");
|
|
296
|
-
return { started: true };
|
|
297
|
-
}
|
|
298
|
-
//# sourceMappingURL=general-binding.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"general-binding.js","sourceRoot":"","sources":["../src/general-binding.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE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AC,KAAK,EAAE,CAAC;IAAC,CAAC;IAC3B,OAAO,GAAG,EAAE,CAAC;QAAC,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC;QAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAAC,CAAC;IACtH,OAAO,MAAM,CAAC,OAAO,CAAC;IAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AACrG,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { GeneralHostOwner } from "./general-binding.js";
|
|
2
|
-
/** Read-only exit barrier after the existing owned stop. Missing/unreadable evidence is never exit. */
|
|
3
|
-
export declare function confirmGeneralHostExit(owner: GeneralHostOwner, session: string, deps?: {
|
|
4
|
-
windows(): Promise<Array<{
|
|
5
|
-
id: string;
|
|
6
|
-
}>>;
|
|
7
|
-
probe(pid: number): unknown;
|
|
8
|
-
}): Promise<boolean>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TmuxManager } from "./tmux-manager.js";
|
|
2
|
-
/** Read-only exit barrier after the existing owned stop. Missing/unreadable evidence is never exit. */
|
|
3
|
-
export async function confirmGeneralHostExit(owner, session, deps = { windows: () => TmuxManager.listWindows(session), probe: (pid) => process.kill(-pid, 0) }) {
|
|
4
|
-
if (!/^@\d+$/.test(owner.windowId) || !Number.isSafeInteger(owner.pid) || owner.pid <= 1)
|
|
5
|
-
return false;
|
|
6
|
-
let windows;
|
|
7
|
-
try {
|
|
8
|
-
windows = await deps.windows();
|
|
9
|
-
}
|
|
10
|
-
catch (err) {
|
|
11
|
-
const detail = String(err?.stderr ?? err.message ?? "");
|
|
12
|
-
if (!/can't find session|no server running/.test(detail))
|
|
13
|
-
return false;
|
|
14
|
-
windows = [];
|
|
15
|
-
}
|
|
16
|
-
if (windows.some(row => row.id === owner.windowId))
|
|
17
|
-
return false;
|
|
18
|
-
try {
|
|
19
|
-
deps.probe(owner.pid);
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
catch (err) {
|
|
23
|
-
return err.code === "ESRCH";
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=general-host-owner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"general-host-owner.js","sourceRoot":"","sources":["../src/general-host-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,uGAAuG;AACvG,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,KAAuB,EAAE,OAAe,EACnF,IAAI,GACA,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE;IACtG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IACvG,IAAI,OAA8B,CAAC;IACnC,IAAI,CAAC;QAAC,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IAAC,CAAC;IACvC,OAAO,GAAG,EAAE,CAAC;QACX,MAAM,MAAM,GAAG,MAAM,CAAE,GAA4B,EAAE,MAAM,IAAK,GAAa,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QAC7F,IAAI,CAAC,sCAAsC,CAAC,IAAI,CAAC,MAAM,CAAC;YAAE,OAAO,KAAK,CAAC;QACvE,OAAO,GAAG,EAAE,CAAC;IACf,CAAC;IACD,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,CAAC,QAAQ,CAAC;QAAE,OAAO,KAAK,CAAC;IACjE,IAAI,CAAC;QAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAAC,OAAO,KAAK,CAAC;IAAC,CAAC;IAC5C,OAAO,GAAG,EAAE,CAAC;QAAC,OAAQ,GAA6B,CAAC,IAAI,KAAK,OAAO,CAAC;IAAC,CAAC;AACzE,CAAC"}
|
package/dist/general-role.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Shared General role text; native publication never loads a coordinator workspace or login. */
|
|
2
|
-
export declare const GENERAL_ROLE_INSTRUCTIONS = "# Fleet Coordinator\n\nYou are the fleet coordinator \u2014 the central entry point for this AgEnD fleet.\nYou route tasks, manage instances, enforce policies, and synthesize results.\nDo NOT modify project files directly \u2014 delegate file changes to the project's instance.\nYou CAN write code snippets, explain code, and answer technical questions directly.\n\n## Task Routing\n\n- **Handle directly**: no file/exec access needed, answerable from knowledge, \u22642 reasoning steps (Q&A, translation, status queries, code snippets).\n- **Delegate to 1 instance**: scoped to one project/repo, needs file access or execution.\n- **Coordinate multiple**: spans repos, outputs feed each other, or parallel helps (max 3 per task).\n\nInstance discovery: start with list_instances(); follow the guidance in its response. Prefer reuse; never duplicate a running instance.\n\n## Reply Contract\n\nEvery final response to the user contains: the result (the actual answer or deliverable) and gaps (anything incomplete \u2014 omit if none). Summarize instance reports; omit internal coordination noise.\n\n## After Restart\n\nBEFORE processing any new messages: 1. list_instances() 2. list_teams() 3. list_decisions(). Only then handle requests.\n\n## Playbooks (on-demand skills)\n\nDetailed procedures live in your skills \u2014 consult them when the situation comes up rather than from memory:\n- **delegation-playbook** \u2014 delegation protocol, loop prevention, parallel vs sequential, result/failure handling, team management, instance configuration tips.\n- **development-workflow** \u2014 the fleet-wide code-change policy you enforce when delegating code tasks.\nPlus the operational skills (fleet-health, instance-lifecycle, scheduling, session-management, \u2026).\n";
|
|
3
|
-
/** Fixed installed program assets, never an enumeration of a runtime profile. */
|
|
4
|
-
export declare const GENERAL_SKILL_NAMES: readonly ["backend-providers", "bug-report", "concepts", "credential-profiles", "cross-instance-messaging", "delegation-playbook", "development-workflow", "docker-install", "fleet-config", "fleet-health", "fleet-restart", "instance-lifecycle", "kiro-engine-migration", "model-discovery", "multi-channel", "scheduling", "session-management", "tui-effort", "web-appearance", "web-dashboard"];
|
|
5
|
-
export declare const GENERAL_KNOWLEDGE_FILES: readonly ["steering/core-rules.md", ...string[]];
|
package/dist/general-role.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** Shared General role text; native publication never loads a coordinator workspace or login. */
|
|
2
|
-
export const GENERAL_ROLE_INSTRUCTIONS = "# Fleet Coordinator\n\nYou are the fleet coordinator — the central entry point for this AgEnD fleet.\nYou route tasks, manage instances, enforce policies, and synthesize results.\nDo NOT modify project files directly — delegate file changes to the project's instance.\nYou CAN write code snippets, explain code, and answer technical questions directly.\n\n## Task Routing\n\n- **Handle directly**: no file/exec access needed, answerable from knowledge, ≤2 reasoning steps (Q&A, translation, status queries, code snippets).\n- **Delegate to 1 instance**: scoped to one project/repo, needs file access or execution.\n- **Coordinate multiple**: spans repos, outputs feed each other, or parallel helps (max 3 per task).\n\nInstance discovery: start with list_instances(); follow the guidance in its response. Prefer reuse; never duplicate a running instance.\n\n## Reply Contract\n\nEvery final response to the user contains: the result (the actual answer or deliverable) and gaps (anything incomplete — omit if none). Summarize instance reports; omit internal coordination noise.\n\n## After Restart\n\nBEFORE processing any new messages: 1. list_instances() 2. list_teams() 3. list_decisions(). Only then handle requests.\n\n## Playbooks (on-demand skills)\n\nDetailed procedures live in your skills — consult them when the situation comes up rather than from memory:\n- **delegation-playbook** — delegation protocol, loop prevention, parallel vs sequential, result/failure handling, team management, instance configuration tips.\n- **development-workflow** — the fleet-wide code-change policy you enforce when delegating code tasks.\nPlus the operational skills (fleet-health, instance-lifecycle, scheduling, session-management, …).\n";
|
|
3
|
-
/** Fixed installed program assets, never an enumeration of a runtime profile. */
|
|
4
|
-
export const GENERAL_SKILL_NAMES = [
|
|
5
|
-
"backend-providers",
|
|
6
|
-
"bug-report",
|
|
7
|
-
"concepts",
|
|
8
|
-
"credential-profiles",
|
|
9
|
-
"cross-instance-messaging",
|
|
10
|
-
"delegation-playbook",
|
|
11
|
-
"development-workflow",
|
|
12
|
-
"docker-install",
|
|
13
|
-
"fleet-config",
|
|
14
|
-
"fleet-health",
|
|
15
|
-
"fleet-restart",
|
|
16
|
-
"instance-lifecycle",
|
|
17
|
-
"kiro-engine-migration",
|
|
18
|
-
"model-discovery",
|
|
19
|
-
"multi-channel",
|
|
20
|
-
"scheduling",
|
|
21
|
-
"session-management",
|
|
22
|
-
"tui-effort",
|
|
23
|
-
"web-appearance",
|
|
24
|
-
"web-dashboard"
|
|
25
|
-
];
|
|
26
|
-
export const GENERAL_KNOWLEDGE_FILES = ["steering/core-rules.md", ...GENERAL_SKILL_NAMES.map(name => `skills/${name}/SKILL.md`)];
|
|
27
|
-
//# sourceMappingURL=general-role.js.map
|
package/dist/general-role.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"general-role.js","sourceRoot":"","sources":["../src/general-role.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,MAAM,CAAC,MAAM,yBAAyB,GAAG,usDAAusD,CAAC;AAEjvD,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,mBAAmB;IACnB,YAAY;IACZ,UAAU;IACV,qBAAqB;IACrB,0BAA0B;IAC1B,qBAAqB;IACrB,sBAAsB;IACtB,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,eAAe;IACf,oBAAoB;IACpB,uBAAuB;IACvB,iBAAiB;IACjB,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,YAAY;IACZ,gBAAgB;IAChB,eAAe;CACP,CAAC;AACX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,wBAAwB,EAAE,GAAG,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,IAAI,WAAW,CAAC,CAAU,CAAC"}
|
package/dist/hub/admission.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { HubMemberJournal } from "./member-journal.js";
|
|
2
|
-
import type { HubMemberTransport, HubQuestion, HubReceipt, HubExposure, HubReconcile, HubRevocation, HubMemberAdmission } from "./types.js";
|
|
3
|
-
import type { HubMemberProfile } from "./profile.js";
|
|
4
|
-
export interface HubAdmissionBinding {
|
|
5
|
-
profile: HubMemberProfile;
|
|
6
|
-
linkEpoch: number;
|
|
7
|
-
revocationVersion: number;
|
|
8
|
-
current(): boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface HubAdmissionOptions {
|
|
11
|
-
journal: HubMemberJournal;
|
|
12
|
-
transport: HubMemberTransport;
|
|
13
|
-
binding(): HubAdmissionBinding;
|
|
14
|
-
/** Current member-owned consent, not the Hub's mirrored exposure or question fields. */
|
|
15
|
-
exposure(id: string): HubExposure | null;
|
|
16
|
-
fenceLocal(messageId: string): void;
|
|
17
|
-
hold(messageId: string, reason: "unavailable" | "denied" | "uncertain"): void;
|
|
18
|
-
now?: () => number;
|
|
19
|
-
}
|
|
20
|
-
export declare class HubMemberAdmissionAdapter implements HubMemberAdmission {
|
|
21
|
-
private readonly options;
|
|
22
|
-
constructor(options: HubAdmissionOptions);
|
|
23
|
-
private binding;
|
|
24
|
-
private owns;
|
|
25
|
-
admit(question: HubQuestion): Promise<HubReceipt>;
|
|
26
|
-
reconcile(input: HubReconcile): Promise<readonly HubReceipt[]>;
|
|
27
|
-
fence(input: HubRevocation): Promise<void>;
|
|
28
|
-
}
|
package/dist/hub/admission.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/** Only this adapter admits a signed external question into a restricted outbox. No local human authority. */
|
|
2
|
-
import { createPublicKey } from "node:crypto";
|
|
3
|
-
import { personKeyString, verifyAsker } from "./identity.js";
|
|
4
|
-
import { validated, HubProtocolError } from "./validation.js";
|
|
5
|
-
import { revocationSchema } from "./protocol.js";
|
|
6
|
-
export class HubMemberAdmissionAdapter {
|
|
7
|
-
options;
|
|
8
|
-
constructor(options) {
|
|
9
|
-
this.options = options;
|
|
10
|
-
}
|
|
11
|
-
binding() { const b = this.options.binding(); if (!b.current())
|
|
12
|
-
throw new HubProtocolError("unavailable"); return b; }
|
|
13
|
-
owns(q, b) {
|
|
14
|
-
const e = this.options.exposure(q.identity.exposureId);
|
|
15
|
-
const identity = q.identity;
|
|
16
|
-
return !!e && e.state === "published" && e.id === identity.exposureId && e.fleetId === b.profile.fleetId
|
|
17
|
-
&& identity.destinationFleetId === b.profile.fleetId && identity.issuer === b.profile.hub.hubId && identity.issuerKeyId === b.profile.issuerKeyId
|
|
18
|
-
&& personKeyString(identity.owner) === personKeyString(b.profile.owner) && identity.revocationVersion === b.revocationVersion
|
|
19
|
-
&& identity.expiresAt > (this.options.now?.() ?? Date.now())
|
|
20
|
-
&& personKeyString(e.owner) === personKeyString(b.profile.owner) && e.revision === identity.exposureRevision;
|
|
21
|
-
}
|
|
22
|
-
async admit(question) {
|
|
23
|
-
const b = this.binding();
|
|
24
|
-
try {
|
|
25
|
-
const identity = verifyAsker(question.identity, question.text, { hubId: b.profile.hub.hubId, issuerKeyId: b.profile.issuerKeyId,
|
|
26
|
-
issuerPublicKey: createPublicKey(b.profile.hub.issuerPublicKey), fleetId: b.profile.fleetId, owner: b.profile.owner,
|
|
27
|
-
revocationVersion: b.revocationVersion, now: this.options.now?.() ?? Date.now() }, question.attachments);
|
|
28
|
-
const q = { text: question.text, identity, ...(question.attachments?.length ? { attachments: question.attachments } : {}) };
|
|
29
|
-
if (!this.owns(q, b))
|
|
30
|
-
throw new HubProtocolError("denied");
|
|
31
|
-
const prepared = this.options.journal.prepare(q);
|
|
32
|
-
if (prepared.receipt)
|
|
33
|
-
return prepared.receipt; // exact durable duplicate; never enqueues or executes again
|
|
34
|
-
const request = { messageId: identity.messageId, operationId: prepared.operationId, exposureRevision: identity.exposureRevision, phase: "admit" };
|
|
35
|
-
const lease = await this.options.transport.authorize(request);
|
|
36
|
-
const current = () => {
|
|
37
|
-
const live = this.options.binding();
|
|
38
|
-
return b.current() && live.current() && live.linkEpoch === b.linkEpoch && live.revocationVersion === b.revocationVersion && this.owns(q, live);
|
|
39
|
-
};
|
|
40
|
-
if (!current())
|
|
41
|
-
throw new HubProtocolError("stale");
|
|
42
|
-
return this.options.journal.commitAdmission(q, request, lease, { current, linkEpoch: b.linkEpoch, revocationVersion: b.revocationVersion });
|
|
43
|
-
}
|
|
44
|
-
catch (error) {
|
|
45
|
-
this.options.hold(question.identity.messageId, error instanceof HubProtocolError && error.code === "denied" ? "denied" : "unavailable");
|
|
46
|
-
throw error;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
async reconcile(input) {
|
|
50
|
-
this.binding();
|
|
51
|
-
return this.options.journal.reconcile(input.afterReceiptSequence, input.messages);
|
|
52
|
-
}
|
|
53
|
-
async fence(input) {
|
|
54
|
-
const revocation = validated(revocationSchema, input);
|
|
55
|
-
this.binding();
|
|
56
|
-
const receipts = this.options.journal.fence(revocation, this.options.fenceLocal);
|
|
57
|
-
for (const receipt of receipts)
|
|
58
|
-
if (receipt.stage === "uncertain")
|
|
59
|
-
this.options.hold(receipt.messageId, "uncertain");
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=admission.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"admission.js","sourceRoot":"","sources":["../../src/hub/admission.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;A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E,KAAK,YAAY,gBAAgB,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;YAAC,MAAM,KAAK,CAAC;QACvJ,CAAC;IACH,CAAC;IACD,KAAK,CAAC,SAAS,CAAC,KAAmB;QACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QAAC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpG,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,KAAoB;QAC9B,MAAM,UAAU,GAAG,SAAS,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACtE,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QACjF,KAAK,MAAM,OAAO,IAAI,QAAQ;YAAE,IAAI,OAAO,CAAC,KAAK,KAAK,WAAW;gBAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACvH,CAAC;CACF"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { attachmentsDigest, messageContentDigest } from "../identity.js";
|
|
2
|
-
export interface HubAttachmentLimits {
|
|
3
|
-
fileBytes: number;
|
|
4
|
-
files: number;
|
|
5
|
-
messageBytes: number;
|
|
6
|
-
}
|
|
7
|
-
/** The defaults are also the ceiling: a Hub config may only lower them. */
|
|
8
|
-
export declare const HUB_ATTACHMENT_LIMITS: Readonly<HubAttachmentLimits>;
|
|
9
|
-
export declare function attachmentLimits(config?: Partial<HubAttachmentLimits> | null): HubAttachmentLimits;
|
|
10
|
-
export type AttachmentTypeRefusal = "type-not-allowed" | "image-mismatch" | "empty";
|
|
11
|
-
/** The type a file is stored and served as, decided by its name; an image must also carry its format's magic bytes. */
|
|
12
|
-
export declare function classifyAttachment(name: string, head: Buffer): {
|
|
13
|
-
mime: string;
|
|
14
|
-
image: boolean;
|
|
15
|
-
} | {
|
|
16
|
-
refused: AttachmentTypeRefusal;
|
|
17
|
-
};
|
|
18
|
-
/** PNG, JPEG, GIF and WebP by their leading bytes; anything else (SVG included) is not an image. */
|
|
19
|
-
export declare function sniffImage(head: Buffer): string | null;
|
|
20
|
-
export declare const isInlineImage: (mime: string) => boolean;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/** Hub attachments (attachments-v1): limits, the type allowlist, image magic bytes and the digests that bind files to
|
|
2
|
-
* a question or an answer. Pure: no I/O, no state. */
|
|
3
|
-
import { HUB_ATTACHMENT_FILE_MAX, HUB_ATTACHMENTS_PER_MESSAGE } from "../protocol.js";
|
|
4
|
-
export { attachmentsDigest, messageContentDigest } from "../identity.js";
|
|
5
|
-
/** The defaults are also the ceiling: a Hub config may only lower them. */
|
|
6
|
-
export const HUB_ATTACHMENT_LIMITS = Object.freeze({ fileBytes: HUB_ATTACHMENT_FILE_MAX, files: HUB_ATTACHMENTS_PER_MESSAGE, messageBytes: 50 * 1024 * 1024 });
|
|
7
|
-
export function attachmentLimits(config) {
|
|
8
|
-
const pick = (key) => {
|
|
9
|
-
const value = config?.[key], ceiling = HUB_ATTACHMENT_LIMITS[key];
|
|
10
|
-
return typeof value === "number" && Number.isSafeInteger(value) && value >= 1 && value <= ceiling ? value : ceiling;
|
|
11
|
-
};
|
|
12
|
-
return { fileBytes: pick("fileBytes"), files: pick("files"), messageBytes: pick("messageBytes") };
|
|
13
|
-
}
|
|
14
|
-
/** Extension → stored type. Everything else is refused with a reason. SVG is not here: it is never a supported type. */
|
|
15
|
-
const ALLOWED = Object.freeze({
|
|
16
|
-
png: "image/png", jpg: "image/jpeg", jpeg: "image/jpeg", gif: "image/gif", webp: "image/webp", pdf: "application/pdf",
|
|
17
|
-
txt: "text/plain", md: "text/markdown", csv: "text/csv", json: "application/json", html: "text/html", htm: "text/html",
|
|
18
|
-
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
19
|
-
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
20
|
-
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
21
|
-
});
|
|
22
|
-
const IMAGE = new Set(["image/png", "image/jpeg", "image/gif", "image/webp"]);
|
|
23
|
-
/** The type a file is stored and served as, decided by its name; an image must also carry its format's magic bytes. */
|
|
24
|
-
export function classifyAttachment(name, head) {
|
|
25
|
-
if (head.length === 0)
|
|
26
|
-
return { refused: "empty" };
|
|
27
|
-
const ext = /\.([a-z0-9]{1,8})$/i.exec(name)?.[1]?.toLowerCase();
|
|
28
|
-
const mime = ext !== undefined && Object.hasOwn(ALLOWED, ext) ? ALLOWED[ext] : undefined;
|
|
29
|
-
if (!mime)
|
|
30
|
-
return { refused: "type-not-allowed" };
|
|
31
|
-
if (!IMAGE.has(mime))
|
|
32
|
-
return { mime, image: false };
|
|
33
|
-
return sniffImage(head) === mime ? { mime, image: true } : { refused: "image-mismatch" };
|
|
34
|
-
}
|
|
35
|
-
/** PNG, JPEG, GIF and WebP by their leading bytes; anything else (SVG included) is not an image. */
|
|
36
|
-
export function sniffImage(head) {
|
|
37
|
-
if (head.length >= 8 && head.subarray(0, 8).equals(Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a])))
|
|
38
|
-
return "image/png";
|
|
39
|
-
if (head.length >= 3 && head[0] === 0xff && head[1] === 0xd8 && head[2] === 0xff)
|
|
40
|
-
return "image/jpeg";
|
|
41
|
-
if (head.length >= 6 && /^GIF8[79]a$/.test(head.subarray(0, 6).toString("latin1")))
|
|
42
|
-
return "image/gif";
|
|
43
|
-
if (head.length >= 12 && head.subarray(0, 4).toString("latin1") === "RIFF" && head.subarray(8, 12).toString("latin1") === "WEBP")
|
|
44
|
-
return "image/webp";
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
export const isInlineImage = (mime) => IMAGE.has(mime);
|
|
48
|
-
//# sourceMappingURL=limits.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"limits.js","sourceRoot":"","sources":["../../../src/hub/attachments/limits.ts"],"names":[],"mappings":"AAAA;sDACsD;AACtD,OAAO,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGzE,2EAA2E;AAC3E,MAAM,CAAC,MAAM,qBAAqB,GAAkC,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,2BAA2B,EAAE,YAAY,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI,EAAE,CAAC,CAAC;AAC9L,MAAM,UAAU,gBAAgB,CAAC,MAA4C;IAC3E,MAAM,IAAI,GAAG,CAAC,GAA8B,EAAU,EAAE;QACtD,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC;QAClE,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;IACtH,CAAC,CAAC;IACF,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;AACpG,CAAC;AAED,wHAAwH;AACxH,MAAM,OAAO,GAAqC,MAAM,CAAC,MAAM,CAAC;IAC9D,GAAG,EAAE,WAAW,EAA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