@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/agent-workspace.js
DELETED
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* #3153 P1: a read-only look at an agent's working directory, for the web's Files / Changes side panel.
|
|
3
|
-
*
|
|
4
|
-
* - **Scope:** only the agent's configured `working_directory` (realpath). Every path is resolved and must stay under
|
|
5
|
-
* it. A symlink is listed but never followed (its target is neither read nor described). `..`, absolute paths, NUL
|
|
6
|
-
* and device or FIFO files are refused. AgEnD's own state directory is never shown, even inside the folder.
|
|
7
|
-
* - **Secrets:** a fixed deny-list by name (`.env*`, keys, certificates, credential and secret files, `.git`, `.ssh`,
|
|
8
|
-
* …). Such a file is listed as hidden; its contents are never read or sent, and its diff is left out.
|
|
9
|
-
* - **Limits:**
|
|
10
|
-
* - a file over 1 MiB is not read;
|
|
11
|
-
* - the diff stops at 2 MiB or 500 files;
|
|
12
|
-
* - a directory lists at most 1,000 entries;
|
|
13
|
-
* - git runs with a timeout and a byte cap.
|
|
14
|
-
* Every cut is said, never silent.
|
|
15
|
-
* - **git:** only read-only commands (`status`, `diff`, `ls-files`, `check-ignore`, `rev-parse`), never a pager, with
|
|
16
|
-
* `GIT_OPTIONAL_LOCKS=0` (no index refresh), and with fsmonitor, external diff and textconv switched off. Nothing in
|
|
17
|
-
* the folder is executed by this module, and nothing is written.
|
|
18
|
-
*
|
|
19
|
-
* Callers (web-api.ts) decide who may ask: the fleet's local admin session only.
|
|
20
|
-
*/
|
|
21
|
-
import { execFile } from "./child-process.js";
|
|
22
|
-
import { constants as fsConstants } from "node:fs";
|
|
23
|
-
import { lstat, open, readdir, realpath } from "node:fs/promises";
|
|
24
|
-
import { basename, extname, isAbsolute, join, resolve, sep } from "node:path";
|
|
25
|
-
export const WORKSPACE_LIMITS = Object.freeze({
|
|
26
|
-
fileBytes: 1024 * 1024,
|
|
27
|
-
diffBytes: 2 * 1024 * 1024,
|
|
28
|
-
diffFiles: 500,
|
|
29
|
-
/** One file's share of the diff: a bigger one is listed as "too large to show" (the others still fit). */
|
|
30
|
-
fileDiffBytes: 256 * 1024,
|
|
31
|
-
dirEntries: 1000,
|
|
32
|
-
untrackedDiffFiles: 50,
|
|
33
|
-
gitTimeoutMs: 10_000,
|
|
34
|
-
});
|
|
35
|
-
const IMAGE_TYPES = { ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".gif": "image/gif", ".webp": "image/webp" };
|
|
36
|
-
const EMPTY_TREE = "4b825dc642cb6eb9a060e54bf8d69288fbee4904";
|
|
37
|
-
/** Names whose contents never leave the machine through this view (fixed in P1, #3153). Lowercase compare. */
|
|
38
|
-
const HIDDEN_DIRS = new Set([".git", ".ssh", ".aws", ".gnupg", ".kube", ".docker", ".azure", ".config", ".agend", ".claude", ".codex", ".kiro"]);
|
|
39
|
-
const HIDDEN_FILES = new Set([".npmrc", ".netrc", ".pypirc", ".git-credentials", ".pgpass", "credentials", "credentials.json", "auth.json", "secrets.json",
|
|
40
|
-
"id_rsa", "id_dsa", "id_ecdsa", "id_ed25519", "known_hosts", "authorized_keys", ".htpasswd",
|
|
41
|
-
// Fable on #3158: tool credentials and shell histories (a history holds whatever was typed, tokens included).
|
|
42
|
-
".envrc", ".vault-token", ".s3cfg", ".boto", "kubeconfig", ".kubeconfig", "terraform.tfstate", "terraform.tfstate.backup"]);
|
|
43
|
-
/** Whether a path (relative, `/`-separated) is hidden: any part a hidden directory, or its name a secret-looking file. */
|
|
44
|
-
export function isHiddenPath(rel) {
|
|
45
|
-
const parts = rel.split("/").filter(Boolean);
|
|
46
|
-
for (const p of parts.slice(0, -1))
|
|
47
|
-
if (HIDDEN_DIRS.has(p.toLowerCase()))
|
|
48
|
-
return true;
|
|
49
|
-
const name = (parts[parts.length - 1] ?? "").toLowerCase();
|
|
50
|
-
if (HIDDEN_DIRS.has(name) || HIDDEN_FILES.has(name))
|
|
51
|
-
return true;
|
|
52
|
-
if (/^\.env(?:$|[.-])/.test(name) || /^id_(?:rsa|dsa|ecdsa|ed25519)/.test(name))
|
|
53
|
-
return true;
|
|
54
|
-
if (/\.(?:pem|key|p12|p8|pfx|jks|keystore|kdbx|asc|gpg|ppk|token|env|tfvars|tfstate)$/.test(name) || /\.tfstate\./.test(name))
|
|
55
|
-
return true;
|
|
56
|
-
if (/^service[-_]?account.*\.json$/.test(name) || /^\.[a-z0-9]*_?history$/.test(name) || /^\.?kubeconfig(?:[.-]|$)/.test(name))
|
|
57
|
-
return true;
|
|
58
|
-
if (/(?:^|[._-])(?:secret|secrets|credential|credentials|password|passwords|private[-_]?key)(?:[._-]|$)/.test(name))
|
|
59
|
-
return true;
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
export class WorkspaceError extends Error {
|
|
63
|
-
code;
|
|
64
|
-
constructor(code) {
|
|
65
|
-
super(code);
|
|
66
|
-
this.code = code;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
const under = (path, root) => path === root || path.startsWith(root.endsWith(sep) ? root : root + sep);
|
|
70
|
-
/** The agent's folder (realpath) and AgEnD's state directory, when it is inside the folder. */
|
|
71
|
-
export async function workspaceRoot(workingDirectory, agendHome) {
|
|
72
|
-
if (typeof workingDirectory !== "string" || !isAbsolute(workingDirectory))
|
|
73
|
-
throw new WorkspaceError("not_a_directory");
|
|
74
|
-
let root;
|
|
75
|
-
try {
|
|
76
|
-
root = await realpath(workingDirectory);
|
|
77
|
-
}
|
|
78
|
-
catch {
|
|
79
|
-
throw new WorkspaceError("not_found");
|
|
80
|
-
}
|
|
81
|
-
const st = await lstat(root).catch(() => null);
|
|
82
|
-
if (!st || !st.isDirectory())
|
|
83
|
-
throw new WorkspaceError("not_a_directory");
|
|
84
|
-
let state = null;
|
|
85
|
-
try {
|
|
86
|
-
const s = await realpath(agendHome);
|
|
87
|
-
if (under(s, root))
|
|
88
|
-
state = s;
|
|
89
|
-
}
|
|
90
|
-
catch { /* no state directory */ }
|
|
91
|
-
return { root, state };
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* A request's relative path → its place under the root, refused when it is not plainly inside: no absolute path, no
|
|
95
|
-
* `..`, no NUL or control characters; and no part of it (or the place itself, via realpath) outside the root or in
|
|
96
|
-
* AgEnD's state. `allowRoot`: the empty path is the root itself (a directory listing).
|
|
97
|
-
*/
|
|
98
|
-
export async function placeOf(ws, rel, allowRoot = false) {
|
|
99
|
-
if (typeof rel !== "string" || rel.length > 4096 || /[\u0000-\u001f\u007f\\]/.test(rel))
|
|
100
|
-
throw new WorkspaceError("invalid");
|
|
101
|
-
if (rel === "" || rel === "/") {
|
|
102
|
-
if (allowRoot)
|
|
103
|
-
return { abs: ws.root, rel: "" };
|
|
104
|
-
throw new WorkspaceError("invalid");
|
|
105
|
-
}
|
|
106
|
-
if (isAbsolute(rel) || rel.startsWith("/"))
|
|
107
|
-
throw new WorkspaceError("outside");
|
|
108
|
-
const clean = rel.replace(/\/+$/g, "");
|
|
109
|
-
if (clean.split("/").some((p) => p === "" || p === "." || p === ".."))
|
|
110
|
-
throw new WorkspaceError("outside");
|
|
111
|
-
const abs = resolve(ws.root, clean);
|
|
112
|
-
if (!under(abs, ws.root))
|
|
113
|
-
throw new WorkspaceError("outside");
|
|
114
|
-
// Every parent must be a real directory under the root (a symlinked directory is never walked through).
|
|
115
|
-
let at = ws.root;
|
|
116
|
-
for (const part of clean.split("/").slice(0, -1)) {
|
|
117
|
-
at = join(at, part);
|
|
118
|
-
const st = await lstat(at).catch(() => null);
|
|
119
|
-
if (!st)
|
|
120
|
-
throw new WorkspaceError("not_found");
|
|
121
|
-
if (st.isSymbolicLink())
|
|
122
|
-
throw new WorkspaceError("symlink");
|
|
123
|
-
if (!st.isDirectory())
|
|
124
|
-
throw new WorkspaceError("not_a_directory");
|
|
125
|
-
}
|
|
126
|
-
if (ws.state && under(abs, ws.state))
|
|
127
|
-
throw new WorkspaceError("hidden");
|
|
128
|
-
return { abs, rel: clean };
|
|
129
|
-
}
|
|
130
|
-
// ── git ──
|
|
131
|
-
function git(root, args, maxBytes) {
|
|
132
|
-
return new Promise((done) => {
|
|
133
|
-
const child = execFile("git", ["-C", root, "-c", "core.fsmonitor=false", "-c", "core.untrackedCache=false", "-c", "core.pager=cat",
|
|
134
|
-
"-c", "diff.external=", "-c", "color.ui=false", ...args], { encoding: "buffer", timeout: WORKSPACE_LIMITS.gitTimeoutMs, maxBuffer: maxBytes, windowsHide: true,
|
|
135
|
-
env: { ...process.env, GIT_OPTIONAL_LOCKS: "0", GIT_PAGER: "cat", PAGER: "cat", GIT_TERMINAL_PROMPT: "0", GIT_CONFIG_NOSYSTEM: "1", LC_ALL: "C" } }, (err, stdout) => {
|
|
136
|
-
const out = Buffer.isBuffer(stdout) ? stdout : Buffer.alloc(0);
|
|
137
|
-
const e = err;
|
|
138
|
-
if (e && e.code === "ERR_CHILD_PROCESS_STDIO_MAXBUFFER") {
|
|
139
|
-
done({ ok: true, out, cut: true });
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
// `git diff --no-index` answers 1 when the files differ: that is its success.
|
|
143
|
-
done({ ok: !e || e.code === 1, out, cut: false });
|
|
144
|
-
});
|
|
145
|
-
child.stdin?.end();
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
async function isRepo(root) {
|
|
149
|
-
const r = await git(root, ["rev-parse", "--is-inside-work-tree"], 4096);
|
|
150
|
-
return r.ok && r.out.toString("utf8").trim() === "true";
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Changes: git status plus the diff of everything uncommitted against HEAD (staged and unstaged together, P1), and the
|
|
154
|
-
* untracked files git does not ignore, as additions. Hidden files are listed without their diff.
|
|
155
|
-
*/
|
|
156
|
-
export async function workspaceChanges(ws) {
|
|
157
|
-
if (!(await isRepo(ws.root)))
|
|
158
|
-
return { repo: false, branch: null, files: [], patch: "", cut: { files: false, bytes: false }, hiddenCount: 0 };
|
|
159
|
-
const branchR = await git(ws.root, ["rev-parse", "--abbrev-ref", "HEAD"], 4096);
|
|
160
|
-
const branch = branchR.ok ? branchR.out.toString("utf8").trim() || null : null;
|
|
161
|
-
const hasHead = (await git(ws.root, ["rev-parse", "--verify", "-q", "HEAD"], 4096)).out.length > 0;
|
|
162
|
-
const base = hasHead ? "HEAD" : EMPTY_TREE;
|
|
163
|
-
const status = await git(ws.root, ["status", "--porcelain=v1", "-z", "--untracked-files=all", "--no-renames"], 4 * 1024 * 1024);
|
|
164
|
-
const files = [];
|
|
165
|
-
const entries = status.out.toString("utf8").split("\u0000").filter(Boolean);
|
|
166
|
-
let cutFiles = false;
|
|
167
|
-
for (const e of entries) {
|
|
168
|
-
if (files.length >= WORKSPACE_LIMITS.diffFiles) {
|
|
169
|
-
cutFiles = true;
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
const code = e.slice(0, 2), path = e.slice(3);
|
|
173
|
-
if (!path || (ws.state && under(resolve(ws.root, path), ws.state)))
|
|
174
|
-
continue;
|
|
175
|
-
const untracked = code === "??";
|
|
176
|
-
files.push({ path, status: untracked ? "untracked" : code.includes("D") ? "deleted" : code.includes("A") ? "added" : "modified",
|
|
177
|
-
adds: null, dels: null, binary: false, hidden: isHiddenPath(path), untracked });
|
|
178
|
-
}
|
|
179
|
-
// Line counts for tracked changes (numstat: "-\t-" is binary).
|
|
180
|
-
const numstat = await git(ws.root, ["diff", base, "--numstat", "-z", "--no-renames", "--no-ext-diff", "--no-textconv"], 4 * 1024 * 1024);
|
|
181
|
-
const counts = new Map();
|
|
182
|
-
for (const row of numstat.out.toString("utf8").split("\u0000").filter(Boolean)) {
|
|
183
|
-
const m = /^(-|\d+)\t(-|\d+)\t(.*)$/s.exec(row);
|
|
184
|
-
if (m)
|
|
185
|
-
counts.set(m[3], { adds: m[1] === "-" ? null : Number(m[1]), dels: m[2] === "-" ? null : Number(m[2]), binary: m[1] === "-" });
|
|
186
|
-
}
|
|
187
|
-
for (const f of files) {
|
|
188
|
-
const c = counts.get(f.path);
|
|
189
|
-
if (c)
|
|
190
|
-
Object.assign(f, c);
|
|
191
|
-
}
|
|
192
|
-
// The patch: tracked changes (hidden paths excluded by pathspec), then untracked text files as additions.
|
|
193
|
-
const visibleTracked = files.filter((f) => !f.untracked && !f.hidden).map((f) => f.path);
|
|
194
|
-
// Each file's section is kept only within its own share and the whole budget: one huge file never starves the rest.
|
|
195
|
-
let patch = "", cutBytes = false;
|
|
196
|
-
const byPath = new Map(files.map((f) => [f.path, f]));
|
|
197
|
-
const take = (section, f) => {
|
|
198
|
-
const n = Buffer.byteLength(section);
|
|
199
|
-
if (n > WORKSPACE_LIMITS.fileDiffBytes) {
|
|
200
|
-
if (f)
|
|
201
|
-
f.tooLarge = true;
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
if (Buffer.byteLength(patch) + n > WORKSPACE_LIMITS.diffBytes) {
|
|
205
|
-
cutBytes = true;
|
|
206
|
-
if (f)
|
|
207
|
-
f.tooLarge = true;
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
patch += section;
|
|
211
|
-
};
|
|
212
|
-
if (visibleTracked.length) {
|
|
213
|
-
const r = await git(ws.root, ["diff", base, "--no-color", "--no-ext-diff", "--no-textconv", "--no-renames", "-U3", "--", ...visibleTracked.map((p) => `:(literal)${p}`)], 16 * 1024 * 1024);
|
|
214
|
-
if (r.cut)
|
|
215
|
-
cutBytes = true;
|
|
216
|
-
for (const section of r.out.toString("utf8").split(/(?=^diff --git )/m).filter(Boolean)) {
|
|
217
|
-
const m = /^diff --git a\/(.*?) b\//.exec(section);
|
|
218
|
-
take(section, m ? byPath.get(m[1]) : undefined);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
let untrackedShown = 0;
|
|
222
|
-
for (const f of files) {
|
|
223
|
-
if (!f.untracked || f.hidden)
|
|
224
|
-
continue;
|
|
225
|
-
if (untrackedShown >= WORKSPACE_LIMITS.untrackedDiffFiles) {
|
|
226
|
-
cutFiles = true;
|
|
227
|
-
break;
|
|
228
|
-
}
|
|
229
|
-
const abs = resolve(ws.root, f.path);
|
|
230
|
-
const st = await lstat(abs).catch(() => null);
|
|
231
|
-
if (!st || !st.isFile())
|
|
232
|
-
continue; // a link or a special file: listed, no diff
|
|
233
|
-
if (st.size > WORKSPACE_LIMITS.fileDiffBytes) {
|
|
234
|
-
f.tooLarge = true;
|
|
235
|
-
continue;
|
|
236
|
-
}
|
|
237
|
-
const r = await git(ws.root, ["diff", "--no-index", "--no-color", "--no-ext-diff", "--no-textconv", "--", "/dev/null", f.path], WORKSPACE_LIMITS.fileDiffBytes * 2);
|
|
238
|
-
const text = r.out.toString("utf8");
|
|
239
|
-
if (/^Binary files /m.test(text)) {
|
|
240
|
-
f.binary = true;
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
f.adds = (text.match(/^\+(?!\+\+)/gm) ?? []).length;
|
|
244
|
-
f.dels = 0;
|
|
245
|
-
take(text, f);
|
|
246
|
-
untrackedShown++;
|
|
247
|
-
}
|
|
248
|
-
return { repo: true, branch, files, patch, cut: { files: cutFiles, bytes: cutBytes }, hiddenCount: files.filter((f) => f.hidden).length };
|
|
249
|
-
}
|
|
250
|
-
/** One directory's entries (directories first, then names), gitignored ones left out in a repository. */
|
|
251
|
-
export async function workspaceList(ws, rel) {
|
|
252
|
-
const place = await placeOf(ws, rel ?? "", true);
|
|
253
|
-
const st = await lstat(place.abs).catch(() => null);
|
|
254
|
-
if (!st)
|
|
255
|
-
throw new WorkspaceError("not_found");
|
|
256
|
-
if (st.isSymbolicLink())
|
|
257
|
-
throw new WorkspaceError("symlink");
|
|
258
|
-
if (!st.isDirectory())
|
|
259
|
-
throw new WorkspaceError("not_a_directory");
|
|
260
|
-
if (place.rel && isHiddenPath(place.rel))
|
|
261
|
-
throw new WorkspaceError("hidden");
|
|
262
|
-
const names = (await readdir(place.abs)).sort();
|
|
263
|
-
let ignored = new Set();
|
|
264
|
-
if (await isRepo(ws.root)) {
|
|
265
|
-
const candidates = names.map((n) => (place.rel ? `${place.rel}/${n}` : n));
|
|
266
|
-
if (candidates.length) {
|
|
267
|
-
const r = await new Promise((done) => {
|
|
268
|
-
const child = execFile("git", ["-C", ws.root, "-c", "core.fsmonitor=false", "check-ignore", "-z", "--stdin"], { encoding: "buffer", timeout: WORKSPACE_LIMITS.gitTimeoutMs, maxBuffer: 4 * 1024 * 1024, env: { ...process.env, GIT_OPTIONAL_LOCKS: "0", GIT_CONFIG_NOSYSTEM: "1", LC_ALL: "C" } }, (_err, out) => done(Buffer.isBuffer(out) ? out : Buffer.alloc(0)));
|
|
269
|
-
child.stdin?.end(candidates.join("\u0000") + "\u0000");
|
|
270
|
-
});
|
|
271
|
-
ignored = new Set(r.toString("utf8").split("\u0000").filter(Boolean));
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
const entries = [];
|
|
275
|
-
let cut = false;
|
|
276
|
-
for (const name of names) {
|
|
277
|
-
const childRel = place.rel ? `${place.rel}/${name}` : name;
|
|
278
|
-
if (ignored.has(childRel))
|
|
279
|
-
continue;
|
|
280
|
-
const abs = join(place.abs, name);
|
|
281
|
-
if (ws.state && under(abs, ws.state))
|
|
282
|
-
continue;
|
|
283
|
-
if (entries.length >= WORKSPACE_LIMITS.dirEntries) {
|
|
284
|
-
cut = true;
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
const s = await lstat(abs).catch(() => null);
|
|
288
|
-
if (!s)
|
|
289
|
-
continue;
|
|
290
|
-
const type = s.isSymbolicLink() ? "symlink" : s.isDirectory() ? "dir" : s.isFile() ? "file" : "other";
|
|
291
|
-
entries.push({ name, type, size: type === "file" ? s.size : null, hidden: isHiddenPath(childRel) });
|
|
292
|
-
}
|
|
293
|
-
entries.sort((a, b) => (a.type === "dir") === (b.type === "dir") ? (a.name < b.name ? -1 : a.name > b.name ? 1 : 0) : a.type === "dir" ? -1 : 1);
|
|
294
|
-
return { path: place.rel, entries, cut };
|
|
295
|
-
}
|
|
296
|
-
/** Open a regular file under the root without following a symlink (O_NOFOLLOW), never waiting on a FIFO (O_NONBLOCK). */
|
|
297
|
-
async function openPlain(ws, rel) {
|
|
298
|
-
const place = await placeOf(ws, rel);
|
|
299
|
-
if (isHiddenPath(place.rel))
|
|
300
|
-
throw new WorkspaceError("hidden");
|
|
301
|
-
const st = await lstat(place.abs).catch(() => null);
|
|
302
|
-
if (!st)
|
|
303
|
-
throw new WorkspaceError("not_found");
|
|
304
|
-
if (st.isSymbolicLink())
|
|
305
|
-
throw new WorkspaceError("symlink");
|
|
306
|
-
if (!st.isFile())
|
|
307
|
-
throw new WorkspaceError("not_a_file");
|
|
308
|
-
const fh = await open(place.abs, fsConstants.O_RDONLY | fsConstants.O_NOFOLLOW | fsConstants.O_NONBLOCK | fsConstants.O_NOCTTY).catch(() => { throw new WorkspaceError("not_a_file"); });
|
|
309
|
-
const fst = await fh.stat();
|
|
310
|
-
if (!fst.isFile() || fst.ino !== st.ino || fst.dev !== st.dev) {
|
|
311
|
-
await fh.close();
|
|
312
|
-
throw new WorkspaceError("not_a_file");
|
|
313
|
-
}
|
|
314
|
-
return { place, fh, size: fst.size };
|
|
315
|
-
}
|
|
316
|
-
/** A file as the viewer shows it: text (UTF-8, up to 1 MiB), an image (served raw by `workspaceImage`), or why not. */
|
|
317
|
-
export async function workspaceFile(ws, rel) {
|
|
318
|
-
const { place, fh, size } = await openPlain(ws, rel);
|
|
319
|
-
try {
|
|
320
|
-
const mime = IMAGE_TYPES[extname(place.rel).toLowerCase()];
|
|
321
|
-
if (mime)
|
|
322
|
-
return { kind: size > WORKSPACE_LIMITS.fileBytes * 8 ? "too_large" : "image", path: place.rel, size, ...(size > WORKSPACE_LIMITS.fileBytes * 8 ? {} : { mime }) };
|
|
323
|
-
if (size > WORKSPACE_LIMITS.fileBytes)
|
|
324
|
-
return { kind: "too_large", path: place.rel, size };
|
|
325
|
-
const buf = Buffer.alloc(size);
|
|
326
|
-
const { bytesRead } = await fh.read(buf, 0, size, 0);
|
|
327
|
-
const bytes = buf.subarray(0, bytesRead);
|
|
328
|
-
if (bytes.subarray(0, 8192).includes(0))
|
|
329
|
-
return { kind: "binary", path: place.rel, size };
|
|
330
|
-
const text = new TextDecoder("utf-8", { fatal: false }).decode(bytes);
|
|
331
|
-
return { kind: "text", path: place.rel, size, text };
|
|
332
|
-
}
|
|
333
|
-
finally {
|
|
334
|
-
await fh.close();
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
/** An image's bytes for the viewer's <img> (a known image extension only, at most 8 MiB). */
|
|
338
|
-
export async function workspaceImage(ws, rel) {
|
|
339
|
-
const { place, fh, size } = await openPlain(ws, rel);
|
|
340
|
-
try {
|
|
341
|
-
const mime = IMAGE_TYPES[extname(place.rel).toLowerCase()];
|
|
342
|
-
if (!mime || size > WORKSPACE_LIMITS.fileBytes * 8)
|
|
343
|
-
throw new WorkspaceError("not_a_file");
|
|
344
|
-
const buf = Buffer.alloc(size);
|
|
345
|
-
const { bytesRead } = await fh.read(buf, 0, size, 0);
|
|
346
|
-
return { mime, bytes: buf.subarray(0, bytesRead) };
|
|
347
|
-
}
|
|
348
|
-
finally {
|
|
349
|
-
await fh.close();
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
export const workspaceName = (rel) => basename(rel);
|
|
353
|
-
//# sourceMappingURL=agent-workspace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-workspace.js","sourceRoot":"","sources":["../src/agent-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAE9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,IAAI,GAAG,IAAI;IACtB,SAAS,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;IAC1B,SAAS,EAAE,GAAG;IACd,0GAA0G;IAC1G,aAAa,EAAE,GAAG,GAAG,IAAI;IACzB,UAAU,EAAE,IAAI;IAChB,kBAAkB,EAAE,EAAE;IACtB,YAAY,EAAE,MAAM;CACrB,CAAC,CAAC;AACH,MAAM,WAAW,GAA2B,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AAC7J,MAAM,UAAU,GAAG,0CAA0C,CAAC;AAE9D,8GAA8G;AAC9G,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS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"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ModelOption } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Grok owns this cache's freshness. It also stores credentials in it: return only
|
|
4
|
-
* the model-map key and explicitly selected display metadata, never whole entries.
|
|
5
|
-
* File I/O is asynchronous; no CLI, network request or file write is needed.
|
|
6
|
-
*/
|
|
7
|
-
export declare function readGrokModelCache(home?: string): Promise<ModelOption[]>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { constants } from "node:fs";
|
|
2
|
-
import { open } from "node:fs/promises";
|
|
3
|
-
import { homedir } from "node:os";
|
|
4
|
-
import { join } from "node:path";
|
|
5
|
-
const MAX_CACHE_BYTES = 1024 * 1024;
|
|
6
|
-
const MAX_ID_LENGTH = 160;
|
|
7
|
-
const MAX_NAME_LENGTH = 160;
|
|
8
|
-
const MAX_DESCRIPTION_LENGTH = 1000;
|
|
9
|
-
const GROK_MODEL_ID = /^grok[A-Za-z0-9._:/-]*$/i;
|
|
10
|
-
const record = (value) => !!value && typeof value === "object" && !Array.isArray(value);
|
|
11
|
-
const text = (value, limit) => typeof value === "string" ? value.trim().slice(0, limit) || undefined : undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Grok owns this cache's freshness. It also stores credentials in it: return only
|
|
14
|
-
* the model-map key and explicitly selected display metadata, never whole entries.
|
|
15
|
-
* File I/O is asynchronous; no CLI, network request or file write is needed.
|
|
16
|
-
*/
|
|
17
|
-
export async function readGrokModelCache(home = process.env.GROK_HOME?.trim() || join(homedir(), ".grok")) {
|
|
18
|
-
let file;
|
|
19
|
-
try {
|
|
20
|
-
// Nonblocking avoids waiting on a FIFO before fstat can reject it. Do not follow
|
|
21
|
-
// a symlink on platforms offering O_NOFOLLOW; the opened file must be regular.
|
|
22
|
-
file = await open(join(home, "models_cache.json"), constants.O_RDONLY | (constants.O_NONBLOCK ?? 0) | (constants.O_NOFOLLOW ?? 0));
|
|
23
|
-
const stat = await file.stat();
|
|
24
|
-
if (!stat.isFile() || stat.size < 1 || stat.size > MAX_CACHE_BYTES)
|
|
25
|
-
return [];
|
|
26
|
-
// The file can grow after fstat. One extra byte distinguishes an exact-cap file
|
|
27
|
-
// from an oversized one without allocating or reading an unbounded snapshot.
|
|
28
|
-
const bytes = Buffer.alloc(MAX_CACHE_BYTES + 1);
|
|
29
|
-
let used = 0;
|
|
30
|
-
while (used < bytes.length) {
|
|
31
|
-
const { bytesRead } = await file.read(bytes, used, bytes.length - used, null);
|
|
32
|
-
if (bytesRead === 0)
|
|
33
|
-
break;
|
|
34
|
-
used += bytesRead;
|
|
35
|
-
}
|
|
36
|
-
if (used > MAX_CACHE_BYTES)
|
|
37
|
-
return [];
|
|
38
|
-
const cache = JSON.parse(bytes.subarray(0, used).toString("utf8"));
|
|
39
|
-
if (!record(cache) || !record(cache.models))
|
|
40
|
-
return [];
|
|
41
|
-
const models = [];
|
|
42
|
-
for (const [id, entry] of Object.entries(cache.models)) {
|
|
43
|
-
if (id.length > MAX_ID_LENGTH || !GROK_MODEL_ID.test(id))
|
|
44
|
-
continue;
|
|
45
|
-
const info = record(entry) && record(entry.info) ? entry.info : null;
|
|
46
|
-
if (info?.hidden === true)
|
|
47
|
-
continue;
|
|
48
|
-
const description = text(info?.description, MAX_DESCRIPTION_LENGTH);
|
|
49
|
-
models.push({ id, label: text(info?.name, MAX_NAME_LENGTH) ?? id, ...(description ? { description } : {}) });
|
|
50
|
-
}
|
|
51
|
-
return models;
|
|
52
|
-
}
|
|
53
|
-
catch {
|
|
54
|
-
return [];
|
|
55
|
-
}
|
|
56
|
-
finally {
|
|
57
|
-
if (file !== undefined) {
|
|
58
|
-
try {
|
|
59
|
-
await file.close();
|
|
60
|
-
}
|
|
61
|
-
catch { /* A cache read never escapes as an error. */ }
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=grok-model-cache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gr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,CAAC;gBAAE,SAAS;YACnE,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACrE,IAAI,IAAI,EAAE,MAAM,KAAK,IAAI;gBAAE,SAAS;YACpC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,sBAAsB,CAAC,CAAC;YACpE,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAC/G,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;YAAS,CAAC;QACT,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,IAAI,CAAC;gBAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;YAAC,CAAC;YAAC,MAAM,CAAC,CAAC,6CAA6C,CAAC,CAAC;QACrF,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CliBackend } from "./types.js";
|
|
2
|
-
export interface NativePaneBackendState {
|
|
3
|
-
sessionId: string | null;
|
|
4
|
-
contextPercentage: number | null;
|
|
5
|
-
statusLineItems: readonly string[] | null;
|
|
6
|
-
resumes: boolean;
|
|
7
|
-
cwd?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function createNativePaneBackend(provider: "codex" | "claude-code", snapshot: () => NativePaneBackendState, admission?: {
|
|
10
|
-
contextlessResume?: boolean;
|
|
11
|
-
}): CliBackend;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/** Native panes reuse the ordinary pure detectors, while all provider filesystem state stays on the runner. */
|
|
2
|
-
import { CodexPaneDetectors } from "./codex.js";
|
|
3
|
-
import { win32 } from "node:path";
|
|
4
|
-
import { ClaudePaneDetectors, claudeTrustDialogState } from "./claude-code.js";
|
|
5
|
-
import { selectionCard } from "../selection-card.js";
|
|
6
|
-
export function createNativePaneBackend(provider, snapshot, admission = {}) {
|
|
7
|
-
const forbidden = () => { throw Error("Native pane launch preparation must run on its owned Windows host"); };
|
|
8
|
-
const detectors = provider === "codex"
|
|
9
|
-
? new CodexPaneDetectors({ statusLineItems: () => snapshot().statusLineItems, launchMayResume: () => snapshot().resumes, windowsConpty: true, contextlessResume: admission.contextlessResume === true })
|
|
10
|
-
: new ClaudePaneDetectors();
|
|
11
|
-
const originalStartup = detectors.getStartupDialogs.bind(detectors);
|
|
12
|
-
const originalRuntime = detectors.getRuntimeDialogs.bind(detectors);
|
|
13
|
-
const trustScope = (dialog) => {
|
|
14
|
-
if (provider !== "claude-code" || !dialog.description.startsWith("Claude workspace trust dialog"))
|
|
15
|
-
return dialog;
|
|
16
|
-
const matchesCwd = (pane) => {
|
|
17
|
-
const cwd = snapshot().cwd;
|
|
18
|
-
const paths = pane.split(/\r?\n/).map(row => row.trim()).filter(row => /^[A-Za-z]:[\\/]/.test(row));
|
|
19
|
-
return !!cwd && paths.length === 1 && win32.normalize(paths[0]).toLowerCase() === win32.normalize(cwd).toLowerCase();
|
|
20
|
-
};
|
|
21
|
-
return { ...dialog, isActive: (pane) => dialog.holdOnly
|
|
22
|
-
? !!dialog.isActive?.(pane) || (claudeTrustDialogState(pane).active && !matchesCwd(pane))
|
|
23
|
-
: matchesCwd(pane) && !!dialog.isActive?.(pane) };
|
|
24
|
-
};
|
|
25
|
-
const shellCard = (pane) => {
|
|
26
|
-
if (provider !== "claude-code" || detectors.readInputRow(pane) !== null
|
|
27
|
-
|| !/^[ \t]*(?:PowerShell|Bash) command[ \t]*$/m.test(pane)
|
|
28
|
-
|| !/^[ \t]*Do you want to proceed\?[ \t]*$/m.test(pane)
|
|
29
|
-
|| !/^[ \t]*Esc to cancel\b/m.test(pane))
|
|
30
|
-
return null;
|
|
31
|
-
const card = selectionCard(pane, "Claude Code");
|
|
32
|
-
return card && card.options.some(option => /^Yes\b/.test(option.title)) ? card : null;
|
|
33
|
-
};
|
|
34
|
-
const backend = Object.assign(detectors, {
|
|
35
|
-
buildCommand: (_config) => forbidden(),
|
|
36
|
-
writeConfig: (_config) => forbidden(),
|
|
37
|
-
getSessionId: () => snapshot().sessionId,
|
|
38
|
-
getContextUsage: () => snapshot().contextPercentage,
|
|
39
|
-
getStartupDialogs: () => originalStartup().map(dialog => {
|
|
40
|
-
// A pinned native resume may never answer the provider's generic picker by creating a fresh conversation.
|
|
41
|
-
if (provider === "claude-code" && snapshot().resumes && dialog.description === "Claude resume session picker — start fresh") {
|
|
42
|
-
return { ...dialog, keys: [], holdOnly: true, blocksDelivery: true };
|
|
43
|
-
}
|
|
44
|
-
return trustScope(dialog);
|
|
45
|
-
}),
|
|
46
|
-
getRuntimeDialogs: () => [...originalRuntime().map(trustScope), ...(provider === "claude-code" ? [{
|
|
47
|
-
// Windows uses a PowerShell permission shape distinct from the audited four-choice Unix Bash card. Never
|
|
48
|
-
// auto-answer it: expose its actual numbered choices through the ordinary stepwise human-card path.
|
|
49
|
-
pattern: /^[ \t]*Do you want to proceed\?[ \t]*$/m, isActive: (pane) => shellCard(pane) !== null,
|
|
50
|
-
// The request's own identity (as the Linux Bash card's is), not the whole pane: a repainted status row is the same
|
|
51
|
-
// request, so its episode and parked clock are not restarted by every capture.
|
|
52
|
-
remoteCard: shellCard, requestIdentity: (pane) => shellCard(pane)?.identity ?? null,
|
|
53
|
-
interactionKind: "permission", keys: [], holdOnly: true, blocksDelivery: true,
|
|
54
|
-
inputBlocked: true, description: "Claude Windows shell permission — waiting for a human choice, never auto-approving",
|
|
55
|
-
}] : [])],
|
|
56
|
-
});
|
|
57
|
-
return backend;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AO,EAAE,yCAAyC,EAAE,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI;oBACxG,mHAAmH;oBACnH,+EAA+E;oBAC/E,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,IAAI,IAAI;oBAC3F,eAAe,EAAE,YAAqB,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI;oBACtF,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,oFAAoF;iBACtH,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KACV,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { readInstalledBuild } from "./build-provenance.js";
|
|
2
|
-
/** Read-only diagnostics; --version remains the package SemVer used by installers and update checks. */
|
|
3
|
-
export function registerBuildInfoCommand(program) {
|
|
4
|
-
program.command("build-info").description("Show the installed package version and source-build identity")
|
|
5
|
-
.option("--json", "Print structured build information")
|
|
6
|
-
.action((options) => {
|
|
7
|
-
const build = readInstalledBuild();
|
|
8
|
-
console.log(options.json ? JSON.stringify(build) : `${build.label}\nPackage: ${build.version}${build.source?.commit ? `\nSource: ${build.source.ref ?? "detached"} @ ${build.source.commit}` : "\nSource: unavailable"}`);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=build-provenance-cli.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-provenance-cli.js","sourceRoot":"","sources":["../src/build-provenance-cli.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,wGAAwG;AACxG,MAAM,UAAU,wBAAwB,CAAC,OAAgB;IACvD,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,8DAA8D,CAAC;SACtG,MAAM,CAAC,QAAQ,EAAE,oCAAoC,CAAC;SACtD,MAAM,CAAC,CAAC,OAA2B,EAAE,EAAE;QACtC,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;QACnC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,cAAc,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,UAAU,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,uBAAuB,EAAE,CAAC,CAAC;IAC5N,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface BuildProvenance {
|
|
2
|
-
format: 1;
|
|
3
|
-
commit: string | null;
|
|
4
|
-
ref: string | null;
|
|
5
|
-
channel: "alpha" | "source" | "release" | "unknown";
|
|
6
|
-
modified: boolean | null;
|
|
7
|
-
from: "git" | "archive" | "unknown";
|
|
8
|
-
}
|
|
9
|
-
export interface InstalledBuild {
|
|
10
|
-
version: string;
|
|
11
|
-
source: BuildProvenance | null;
|
|
12
|
-
label: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function parseBuildProvenance(v: unknown): BuildProvenance | null;
|
|
15
|
-
export declare function installedBuildLabel(version: string, source: BuildProvenance | null, copy?: {
|
|
16
|
-
source: string;
|
|
17
|
-
modified: string;
|
|
18
|
-
unknown: string;
|
|
19
|
-
}): string;
|
|
20
|
-
export declare function readInstalledBuild(directory?: string): InstalledBuild;
|