@songsid/agend 2.3.5-alpha.5 → 2.3.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/README.zh-TW.md +0 -2
- package/THIRD_PARTY_NOTICES.md +0 -68
- package/dist/agent-endpoint.d.ts +1 -5
- package/dist/agent-endpoint.js +2 -12
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-file-read.js +1 -1
- package/dist/agent-file-read.js.map +1 -1
- package/dist/auth-api.d.ts +0 -48
- package/dist/auth-api.js +4 -250
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/session-authorizations.d.ts +2 -0
- package/dist/authority/session-authorizations.js +7 -1
- package/dist/authority/session-authorizations.js.map +1 -1
- package/dist/authority/web-authority.d.ts +2 -12
- package/dist/authority/web-authority.js +4 -25
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/claude-code.d.ts +12 -15
- package/dist/backend/claude-code.js +133 -152
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex-footer-hints.d.ts +0 -3
- package/dist/backend/codex-footer-hints.js +0 -14
- package/dist/backend/codex-footer-hints.js.map +1 -1
- package/dist/backend/codex-package.d.ts +2 -5
- package/dist/backend/codex-package.js +5 -1
- package/dist/backend/codex-package.js.map +1 -1
- package/dist/backend/codex-quota-history.js +19 -4
- package/dist/backend/codex-quota-history.js.map +1 -1
- package/dist/backend/codex.d.ts +115 -142
- package/dist/backend/codex.js +1094 -1187
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/grok.d.ts +0 -2
- package/dist/backend/grok.js +0 -22
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/types.d.ts +2 -7
- package/dist/backend/types.js.map +1 -1
- package/dist/bundled-tmux-guard.d.ts +21 -0
- package/dist/bundled-tmux-guard.js +96 -0
- package/dist/bundled-tmux-guard.js.map +1 -0
- package/dist/channel/ipc-bridge.d.ts +0 -2
- package/dist/channel/mcp-tools.js +2 -2
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/classic-channel-manager.d.ts +2 -0
- package/dist/classic-channel-manager.js +5 -1
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/cli.js +30 -127
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +13 -74
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +3 -17
- package/dist/config.js.map +1 -1
- package/dist/daemon.d.ts +5 -72
- package/dist/daemon.js +275 -869
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +3 -15
- package/dist/delivery-consumed-watch.js +1 -23
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +0 -5
- package/dist/delivery-outbox.js +4 -32
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +42 -2
- package/dist/delivery-reconciliation.js +164 -2
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/doctor.js +9 -20
- package/dist/doctor.js.map +1 -1
- package/dist/fleet-context.d.ts +2 -2
- package/dist/fleet-level-config.d.ts +1 -1
- package/dist/fleet-level-config.js +0 -2
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +9 -498
- package/dist/fleet-manager.js +202 -2849
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-instance.d.ts +0 -7
- package/dist/general-instance.js +3 -20
- package/dist/general-instance.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +18 -50
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +2 -5
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +2 -2
- package/dist/general-knowledge/skills/session-management/SKILL.md +1 -1
- package/dist/general-knowledge/skills/tui-effort/SKILL.md +10 -10
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +13 -23
- package/dist/instance-config-impact.js +4 -8
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +3 -22
- package/dist/instance-lifecycle.js +176 -393
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +0 -2
- package/dist/instructions.js +0 -6
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +2 -147
- package/dist/locale.js.map +1 -1
- package/dist/login-flows.d.ts +7 -8
- package/dist/login-flows.js +1 -24
- package/dist/login-flows.js.map +1 -1
- package/dist/ls-rows.js +4 -3
- package/dist/ls-rows.js.map +1 -1
- package/dist/muse-usage-relay.d.ts +2 -0
- package/dist/muse-usage-relay.js +5 -3
- package/dist/muse-usage-relay.js.map +1 -1
- package/dist/needs-you-hub.d.ts +0 -5
- package/dist/needs-you-hub.js +2 -18
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +2 -45
- package/dist/needs-you.js +2 -26
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +3 -3
- package/dist/office-share-page.js.map +1 -1
- package/dist/office-share.d.ts +0 -11
- package/dist/office-share.js +0 -14
- package/dist/office-share.js.map +1 -1
- package/dist/outbound-handlers.d.ts +2 -30
- package/dist/outbound-handlers.js +4 -109
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +1 -71
- package/dist/outbound-schemas.js +14 -36
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-quota-history.d.ts +0 -2
- package/dist/pane-quota-history.js +0 -20
- package/dist/pane-quota-history.js.map +1 -1
- package/dist/pause-marker.d.ts +1 -1
- package/dist/pause-marker.js +1 -1
- package/dist/pause-marker.js.map +1 -1
- package/dist/public-web-gateway.js +0 -16
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +0 -11
- package/dist/public-web-link.js +0 -13
- package/dist/public-web-link.js.map +1 -1
- package/dist/quickstart-api.js +5 -9
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +0 -6
- package/dist/quickstart.js +6 -44
- package/dist/quickstart.js.map +1 -1
- package/dist/quota-notice-config.d.ts +22 -0
- package/dist/quota-notice-config.js +41 -0
- package/dist/quota-notice-config.js.map +1 -0
- package/dist/scheduler/task-board-text.js +1 -1
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +0 -4
- package/dist/scheduler/task-board.js +3 -9
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/service-installer.d.ts +2 -7
- package/dist/service-installer.js +10 -13
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +0 -12
- package/dist/settings-api.js +7 -487
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +0 -7
- package/dist/settings-baseline.js +1 -3
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +7 -35
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +1 -16
- package/dist/settings-confirmation.js +9 -47
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +0 -17
- package/dist/settings-effect.js +1 -155
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +0 -4
- package/dist/settings-http-confirmation.js +3 -43
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-instance-patch.js +1 -1
- package/dist/settings-instance-patch.js.map +1 -1
- package/dist/settings-request-capability.d.ts +0 -2
- package/dist/settings-request-capability.js +0 -4
- package/dist/settings-request-capability.js.map +1 -1
- package/dist/settings-transaction.d.ts +0 -4
- package/dist/settings-transaction.js +0 -9
- package/dist/settings-transaction.js.map +1 -1
- package/dist/setup-form.js +3 -6
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-i18n.js +0 -3
- package/dist/setup-i18n.js.map +1 -1
- package/dist/setup-wizard.js +2 -6
- package/dist/setup-wizard.js.map +1 -1
- package/dist/task-board-tool.d.ts +1 -2
- package/dist/task-board-tool.js +6 -62
- package/dist/task-board-tool.js.map +1 -1
- package/dist/tmux-control.d.ts +1 -2
- package/dist/tmux-control.js +4 -4
- package/dist/tmux-control.js.map +1 -1
- package/dist/tmux-exec-helper.js +1 -32
- package/dist/tmux-exec-helper.js.map +1 -1
- package/dist/tmux-manager.d.ts +2 -3
- package/dist/tmux-manager.js +36 -45
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tmux-read.js +3 -4
- package/dist/tmux-read.js.map +1 -1
- package/dist/tool-permissions.js +1 -2
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +5 -9
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +1 -1
- package/dist/transcript-delta-reader.js +1 -1
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/transcript-monitor.d.ts +0 -3
- package/dist/transcript-monitor.js +51 -27
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-sources.d.ts +0 -5
- package/dist/transcript-sources.js +79 -8
- package/dist/transcript-sources.js.map +1 -1
- package/dist/types.d.ts +3 -29
- package/dist/ui/app.html +8 -1
- package/dist/ui/backend-signin.js +21 -39
- package/dist/ui/chat-ambient.js +1 -1
- package/dist/ui/chat-md-strings.js +9 -3
- package/dist/ui/chat-render.js +670 -3
- package/dist/ui/chat-store.js +3 -14
- package/dist/ui/chat-strings.js +285 -3
- package/dist/ui/chat-thread.js +969 -3
- package/dist/ui/chat-time.js +80 -3
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/fleet-office-pack.d.ts +0 -9
- package/dist/ui/fleet-office-pack.js +4 -76
- package/dist/ui/fleet-office-skin.js +5 -23
- package/dist/ui/fleet-office-store.js +0 -5
- package/dist/ui/fleet-office.js +6 -173
- package/dist/ui/fleet-task-card.js +4 -8
- package/dist/ui/fleet-task-common.js +2 -2
- package/dist/ui/fleet-tasks.js +39 -125
- package/dist/ui/html-attachment.js +40 -3
- package/dist/ui/office-share-page.js +2 -4
- package/dist/ui/panel-chat.js +75 -90
- package/dist/ui/panel-details.js +2 -3
- package/dist/ui/panel-fleet.js +18 -105
- package/dist/ui/panel-log.js +2 -2
- package/dist/ui/panel-needs.js +4 -162
- package/dist/ui/panel-notices.js +4 -3
- package/dist/ui/panel-settings.js +202 -281
- package/dist/ui/preview-pages.js +1 -1
- package/dist/ui/preview-panel.js +13 -21
- package/dist/ui/preview-versions.js +1 -1
- package/dist/ui/preview.js +476 -3
- package/dist/ui/search-dialog.js +3 -4
- package/dist/ui/settings-appearance.js +23 -122
- package/dist/ui/settings-catalog.js +10 -37
- package/dist/ui/settings-confirm.js +1 -3
- package/dist/ui/settings-dialogs.js +20 -48
- package/dist/ui/settings-guests.js +14 -27
- package/dist/ui/settings-model.js +1 -10
- package/dist/ui/settings-quota-notice.js +100 -0
- package/dist/ui/settings-registry.js +5 -15
- package/dist/ui/settings-strings.js +32 -105
- package/dist/ui/settings-web-authority.js +13 -18
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-route.js +3 -12
- package/dist/ui/shared/app-session.js +2 -6
- package/dist/ui/shared/app-shell.js +26 -87
- package/dist/ui/shared/app-store.js +2 -3
- package/dist/ui/shared/app-stream.js +1 -3
- package/dist/ui/shared/app.css +5 -1368
- package/dist/ui/shared/app.js +5 -17
- package/dist/ui/shared/header-tools.js +9 -9
- package/dist/ui/shared/instance-nav.js +7 -34
- package/dist/ui/shared/instance-switch.js +3 -4
- package/dist/ui/shared/loading.css +37 -0
- package/dist/ui/shared/signin.js +6 -211
- package/dist/ui/shared/tokens.css +0 -1
- package/dist/ui/shared/ui-dialog.js +2 -2
- package/dist/ui/shared/ui-menu.js +10 -30
- package/dist/ui/shared/ui-states.js +14 -3
- package/dist/ui/shared/vendor/vendor.json +2 -19
- package/dist/ui/shared/view-strings.js +0 -8
- package/dist/ui/signin.html +5 -23
- package/dist/unattended-install.js +1 -2
- package/dist/unattended-install.js.map +1 -1
- package/dist/usage/providers.d.ts +5 -0
- package/dist/usage/providers.js +6 -2
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-notices.d.ts +38 -0
- package/dist/usage/quota-notices.js +160 -0
- package/dist/usage/quota-notices.js.map +1 -0
- package/dist/usage/usage-api.d.ts +1 -0
- package/dist/usage/usage-api.js +16 -0
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/view-api.js +7 -5
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +2 -80
- package/dist/web-api.js +10 -513
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +1 -23
- package/dist/web-backend-login.js +17 -11
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-history.d.ts +2 -19
- package/dist/web-chat-history.js +3 -72
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-office-skins.d.ts +0 -9
- package/dist/web-office-skins.js +1 -16
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-only-fleet.d.ts +0 -20
- package/dist/web-only-fleet.js +0 -21
- package/dist/web-only-fleet.js.map +1 -1
- package/dist/web-session.d.ts +0 -42
- package/dist/web-session.js +0 -9
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +1 -3
- package/dist/web-settings-patch.js +1 -4
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +1 -10
- package/dist/web-shell-routes.js +2 -14
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-terminal.d.ts +30 -4
- package/dist/web-terminal.js +6 -9
- package/dist/web-terminal.js.map +1 -1
- package/dist/yaml-shared-nodes.js +3 -8
- package/dist/yaml-shared-nodes.js.map +1 -1
- package/launcher/agend-install.cjs +1 -8
- package/launcher/postinstall.cjs +2 -27
- package/package.json +3 -10
- package/templates/launchd.plist.ejs +1 -3
- package/dist/accounts-view.d.ts +0 -97
- package/dist/accounts-view.js +0 -116
- package/dist/accounts-view.js.map +0 -1
- package/dist/agent-runtime-api.d.ts +0 -4
- package/dist/agent-runtime-api.js +0 -59
- package/dist/agent-runtime-api.js.map +0 -1
- package/dist/agent-runtime-change.d.ts +0 -76
- package/dist/agent-runtime-change.js +0 -114
- package/dist/agent-runtime-change.js.map +0 -1
- package/dist/agent-workspace.d.ts +0 -93
- package/dist/agent-workspace.js +0 -353
- package/dist/agent-workspace.js.map +0 -1
- package/dist/backend/grok-model-cache.d.ts +0 -7
- package/dist/backend/grok-model-cache.js +0 -65
- package/dist/backend/grok-model-cache.js.map +0 -1
- package/dist/backend/native-pane.d.ts +0 -11
- package/dist/backend/native-pane.js +0 -59
- package/dist/backend/native-pane.js.map +0 -1
- package/dist/build-provenance-cli.d.ts +0 -3
- package/dist/build-provenance-cli.js +0 -11
- package/dist/build-provenance-cli.js.map +0 -1
- package/dist/build-provenance.d.ts +0 -20
- package/dist/build-provenance.js +0 -67
- package/dist/build-provenance.js.map +0 -1
- package/dist/build-provenance.json +0 -1
- package/dist/claude-auth-status.d.ts +0 -48
- package/dist/claude-auth-status.js +0 -149
- package/dist/claude-auth-status.js.map +0 -1
- package/dist/fleet-windows-runtime.d.ts +0 -98
- package/dist/fleet-windows-runtime.js +0 -467
- package/dist/fleet-windows-runtime.js.map +0 -1
- package/dist/general-binding.d.ts +0 -85
- package/dist/general-binding.js +0 -298
- package/dist/general-binding.js.map +0 -1
- package/dist/general-host-owner.d.ts +0 -8
- package/dist/general-host-owner.js +0 -26
- package/dist/general-host-owner.js.map +0 -1
- package/dist/general-role.d.ts +0 -5
- package/dist/general-role.js +0 -27
- package/dist/general-role.js.map +0 -1
- package/dist/hub/admission.d.ts +0 -28
- package/dist/hub/admission.js +0 -62
- package/dist/hub/admission.js.map +0 -1
- package/dist/hub/attachments/limits.d.ts +0 -20
- package/dist/hub/attachments/limits.js +0 -48
- package/dist/hub/attachments/limits.js.map +0 -1
- package/dist/hub/attachments/store.d.ts +0 -116
- package/dist/hub/attachments/store.js +0 -246
- package/dist/hub/attachments/store.js.map +0 -1
- package/dist/hub/audit/index.d.ts +0 -62
- package/dist/hub/audit/index.js +0 -344
- package/dist/hub/audit/index.js.map +0 -1
- package/dist/hub/browser-certificate.d.ts +0 -38
- package/dist/hub/browser-certificate.js +0 -247
- package/dist/hub/browser-certificate.js.map +0 -1
- package/dist/hub/buttons-model.d.ts +0 -9
- package/dist/hub/buttons-model.js +0 -42
- package/dist/hub/buttons-model.js.map +0 -1
- package/dist/hub/buttons.d.ts +0 -54
- package/dist/hub/buttons.js +0 -346
- package/dist/hub/buttons.js.map +0 -1
- package/dist/hub/catalog.d.ts +0 -74
- package/dist/hub/catalog.js +0 -195
- package/dist/hub/catalog.js.map +0 -1
- package/dist/hub/client.d.ts +0 -69
- package/dist/hub/client.js +0 -300
- package/dist/hub/client.js.map +0 -1
- package/dist/hub/compose/member.d.ts +0 -139
- package/dist/hub/compose/member.js +0 -450
- package/dist/hub/compose/member.js.map +0 -1
- package/dist/hub/compose/server.d.ts +0 -77
- package/dist/hub/compose/server.js +0 -349
- package/dist/hub/compose/server.js.map +0 -1
- package/dist/hub/compose/views.d.ts +0 -12
- package/dist/hub/compose/views.js +0 -4
- package/dist/hub/compose/views.js.map +0 -1
- package/dist/hub/db.d.ts +0 -56
- package/dist/hub/db.js +0 -188
- package/dist/hub/db.js.map +0 -1
- package/dist/hub/directory/config.d.ts +0 -39
- package/dist/hub/directory/config.js +0 -108
- package/dist/hub/directory/config.js.map +0 -1
- package/dist/hub/directory/directory.d.ts +0 -18
- package/dist/hub/directory/directory.js +0 -320
- package/dist/hub/directory/directory.js.map +0 -1
- package/dist/hub/directory/index.d.ts +0 -7
- package/dist/hub/directory/index.js +0 -4
- package/dist/hub/directory/index.js.map +0 -1
- package/dist/hub/directory/profiles.d.ts +0 -41
- package/dist/hub/directory/profiles.js +0 -90
- package/dist/hub/directory/profiles.js.map +0 -1
- package/dist/hub/directory/types.d.ts +0 -71
- package/dist/hub/directory/types.js +0 -14
- package/dist/hub/directory/types.js.map +0 -1
- package/dist/hub/execution/cli-provider.d.ts +0 -23
- package/dist/hub/execution/cli-provider.js +0 -341
- package/dist/hub/execution/cli-provider.js.map +0 -1
- package/dist/hub/execution/index.d.ts +0 -13
- package/dist/hub/execution/index.js +0 -8
- package/dist/hub/execution/index.js.map +0 -1
- package/dist/hub/execution/model-broker.d.ts +0 -24
- package/dist/hub/execution/model-broker.js +0 -208
- package/dist/hub/execution/model-broker.js.map +0 -1
- package/dist/hub/execution/provider-setup.d.ts +0 -11
- package/dist/hub/execution/provider-setup.js +0 -21
- package/dist/hub/execution/provider-setup.js.map +0 -1
- package/dist/hub/execution/sandbox-runner.d.ts +0 -1
- package/dist/hub/execution/sandbox-runner.js +0 -221
- package/dist/hub/execution/sandbox-runner.js.map +0 -1
- package/dist/hub/execution/service.d.ts +0 -136
- package/dist/hub/execution/service.js +0 -459
- package/dist/hub/execution/service.js.map +0 -1
- package/dist/hub/execution/store.d.ts +0 -61
- package/dist/hub/execution/store.js +0 -182
- package/dist/hub/execution/store.js.map +0 -1
- package/dist/hub/execution/views.d.ts +0 -20
- package/dist/hub/execution/views.js +0 -48
- package/dist/hub/execution/views.js.map +0 -1
- package/dist/hub/http/compose.d.ts +0 -20
- package/dist/hub/http/compose.js +0 -518
- package/dist/hub/http/compose.js.map +0 -1
- package/dist/hub/http/core.d.ts +0 -49
- package/dist/hub/http/core.js +0 -124
- package/dist/hub/http/core.js.map +0 -1
- package/dist/hub/http/deps.d.ts +0 -61
- package/dist/hub/http/deps.js +0 -2
- package/dist/hub/http/deps.js.map +0 -1
- package/dist/hub/http/schema.d.ts +0 -14
- package/dist/hub/http/schema.js +0 -80
- package/dist/hub/http/schema.js.map +0 -1
- package/dist/hub/identity.d.ts +0 -32
- package/dist/hub/identity.js +0 -80
- package/dist/hub/identity.js.map +0 -1
- package/dist/hub/init/browser-certificate.d.ts +0 -9
- package/dist/hub/init/browser-certificate.js +0 -78
- package/dist/hub/init/browser-certificate.js.map +0 -1
- package/dist/hub/init/browser-tls.d.ts +0 -18
- package/dist/hub/init/browser-tls.js +0 -62
- package/dist/hub/init/browser-tls.js.map +0 -1
- package/dist/hub/init/cli.d.ts +0 -3
- package/dist/hub/init/cli.js +0 -83
- package/dist/hub/init/cli.js.map +0 -1
- package/dist/hub/init/directory-certificate.d.ts +0 -24
- package/dist/hub/init/directory-certificate.js +0 -222
- package/dist/hub/init/directory-certificate.js.map +0 -1
- package/dist/hub/init/existing-fleet.d.ts +0 -6
- package/dist/hub/init/existing-fleet.js +0 -58
- package/dist/hub/init/existing-fleet.js.map +0 -1
- package/dist/hub/init/handoff.d.ts +0 -8
- package/dist/hub/init/handoff.js +0 -36
- package/dist/hub/init/handoff.js.map +0 -1
- package/dist/hub/init/identity.d.ts +0 -5
- package/dist/hub/init/identity.js +0 -24
- package/dist/hub/init/identity.js.map +0 -1
- package/dist/hub/init/initializer.d.ts +0 -24
- package/dist/hub/init/initializer.js +0 -385
- package/dist/hub/init/initializer.js.map +0 -1
- package/dist/hub/init/inventory.d.ts +0 -17
- package/dist/hub/init/inventory.js +0 -33
- package/dist/hub/init/inventory.js.map +0 -1
- package/dist/hub/init/layout.d.ts +0 -32
- package/dist/hub/init/layout.js +0 -53
- package/dist/hub/init/layout.js.map +0 -1
- package/dist/hub/init/network.d.ts +0 -18
- package/dist/hub/init/network.js +0 -104
- package/dist/hub/init/network.js.map +0 -1
- package/dist/hub/init/plan-digest.d.ts +0 -5
- package/dist/hub/init/plan-digest.js +0 -47
- package/dist/hub/init/plan-digest.js.map +0 -1
- package/dist/hub/init/prompt.d.ts +0 -26
- package/dist/hub/init/prompt.js +0 -110
- package/dist/hub/init/prompt.js.map +0 -1
- package/dist/hub/init/secret-file.d.ts +0 -1
- package/dist/hub/init/secret-file.js +0 -59
- package/dist/hub/init/secret-file.js.map +0 -1
- package/dist/hub/init/text.d.ts +0 -127
- package/dist/hub/init/text.js +0 -247
- package/dist/hub/init/text.js.map +0 -1
- package/dist/hub/init/types.d.ts +0 -114
- package/dist/hub/init/types.js +0 -9
- package/dist/hub/init/types.js.map +0 -1
- package/dist/hub/init/wizard.d.ts +0 -34
- package/dist/hub/init/wizard.js +0 -554
- package/dist/hub/init/wizard.js.map +0 -1
- package/dist/hub/initialization.d.ts +0 -23
- package/dist/hub/initialization.js +0 -28
- package/dist/hub/initialization.js.map +0 -1
- package/dist/hub/member/agent-mode.d.ts +0 -6
- package/dist/hub/member/agent-mode.js +0 -23
- package/dist/hub/member/agent-mode.js.map +0 -1
- package/dist/hub/member/attachments.d.ts +0 -29
- package/dist/hub/member/attachments.js +0 -107
- package/dist/hub/member/attachments.js.map +0 -1
- package/dist/hub/member/exposure-api.d.ts +0 -87
- package/dist/hub/member/exposure-api.js +0 -64
- package/dist/hub/member/exposure-api.js.map +0 -1
- package/dist/hub/member/exposures.d.ts +0 -123
- package/dist/hub/member/exposures.js +0 -282
- package/dist/hub/member/exposures.js.map +0 -1
- package/dist/hub/member/pairing-api.d.ts +0 -85
- package/dist/hub/member/pairing-api.js +0 -385
- package/dist/hub/member/pairing-api.js.map +0 -1
- package/dist/hub/member/quota.d.ts +0 -20
- package/dist/hub/member/quota.js +0 -98
- package/dist/hub/member/quota.js.map +0 -1
- package/dist/hub/member-journal.d.ts +0 -104
- package/dist/hub/member-journal.js +0 -336
- package/dist/hub/member-journal.js.map +0 -1
- package/dist/hub/member-reconciliation.d.ts +0 -14
- package/dist/hub/member-reconciliation.js +0 -97
- package/dist/hub/member-reconciliation.js.map +0 -1
- package/dist/hub/mount.d.ts +0 -39
- package/dist/hub/mount.js +0 -123
- package/dist/hub/mount.js.map +0 -1
- package/dist/hub/pairing-client.d.ts +0 -17
- package/dist/hub/pairing-client.js +0 -108
- package/dist/hub/pairing-client.js.map +0 -1
- package/dist/hub/pairing.d.ts +0 -65
- package/dist/hub/pairing.js +0 -211
- package/dist/hub/pairing.js.map +0 -1
- package/dist/hub/policy.d.ts +0 -63
- package/dist/hub/policy.js +0 -147
- package/dist/hub/policy.js.map +0 -1
- package/dist/hub/preview.d.ts +0 -32
- package/dist/hub/preview.js +0 -64
- package/dist/hub/preview.js.map +0 -1
- package/dist/hub/private-files.d.ts +0 -5
- package/dist/hub/private-files.js +0 -44
- package/dist/hub/private-files.js.map +0 -1
- package/dist/hub/profile.d.ts +0 -59
- package/dist/hub/profile.js +0 -73
- package/dist/hub/profile.js.map +0 -1
- package/dist/hub/protocol.d.ts +0 -779
- package/dist/hub/protocol.js +0 -93
- package/dist/hub/protocol.js.map +0 -1
- package/dist/hub/quota.d.ts +0 -24
- package/dist/hub/quota.js +0 -112
- package/dist/hub/quota.js.map +0 -1
- package/dist/hub/representative.d.ts +0 -141
- package/dist/hub/representative.js +0 -528
- package/dist/hub/representative.js.map +0 -1
- package/dist/hub/retention.d.ts +0 -17
- package/dist/hub/retention.js +0 -45
- package/dist/hub/retention.js.map +0 -1
- package/dist/hub/rooms.d.ts +0 -120
- package/dist/hub/rooms.js +0 -535
- package/dist/hub/rooms.js.map +0 -1
- package/dist/hub/runtime.d.ts +0 -106
- package/dist/hub/runtime.js +0 -298
- package/dist/hub/runtime.js.map +0 -1
- package/dist/hub/server.d.ts +0 -56
- package/dist/hub/server.js +0 -202
- package/dist/hub/server.js.map +0 -1
- package/dist/hub/service-start.d.ts +0 -17
- package/dist/hub/service-start.js +0 -109
- package/dist/hub/service-start.js.map +0 -1
- package/dist/hub/sessions.d.ts +0 -53
- package/dist/hub/sessions.js +0 -196
- package/dist/hub/sessions.js.map +0 -1
- package/dist/hub/socket.d.ts +0 -24
- package/dist/hub/socket.js +0 -79
- package/dist/hub/socket.js.map +0 -1
- package/dist/hub/store.d.ts +0 -77
- package/dist/hub/store.js +0 -88
- package/dist/hub/store.js.map +0 -1
- package/dist/hub/tls.d.ts +0 -31
- package/dist/hub/tls.js +0 -135
- package/dist/hub/tls.js.map +0 -1
- package/dist/hub/types.d.ts +0 -401
- package/dist/hub/types.js +0 -2
- package/dist/hub/types.js.map +0 -1
- package/dist/hub/validation.d.ts +0 -33
- package/dist/hub/validation.js +0 -136
- package/dist/hub/validation.js.map +0 -1
- package/dist/hub/version-floor.d.ts +0 -10
- package/dist/hub/version-floor.js +0 -45
- package/dist/hub/version-floor.js.map +0 -1
- package/dist/hub-browser-certificate-policy.d.ts +0 -31
- package/dist/hub-browser-certificate-policy.js +0 -25
- package/dist/hub-browser-certificate-policy.js.map +0 -1
- package/dist/hub-membership-settings.d.ts +0 -6
- package/dist/hub-membership-settings.js +0 -21
- package/dist/hub-membership-settings.js.map +0 -1
- package/dist/hub-mode.d.ts +0 -15
- package/dist/hub-mode.js +0 -17
- package/dist/hub-mode.js.map +0 -1
- package/dist/hub-pairing-summary.d.ts +0 -48
- package/dist/hub-pairing-summary.js +0 -36
- package/dist/hub-pairing-summary.js.map +0 -1
- package/dist/hub-report-target.d.ts +0 -32
- package/dist/hub-report-target.js +0 -33
- package/dist/hub-report-target.js.map +0 -1
- package/dist/hub-retention-policy.d.ts +0 -14
- package/dist/hub-retention-policy.js +0 -15
- package/dist/hub-retention-policy.js.map +0 -1
- package/dist/launchd-service-domain.d.ts +0 -5
- package/dist/launchd-service-domain.js +0 -21
- package/dist/launchd-service-domain.js.map +0 -1
- package/dist/local-pane-endpoint.d.ts +0 -46
- package/dist/local-pane-endpoint.js +0 -189
- package/dist/local-pane-endpoint.js.map +0 -1
- package/dist/local-pane-launcher.d.ts +0 -2
- package/dist/local-pane-launcher.js +0 -38
- package/dist/local-pane-launcher.js.map +0 -1
- package/dist/local-pane-stage.ps1 +0 -101
- package/dist/model-catalog-defaults.d.ts +0 -14
- package/dist/model-catalog-defaults.js +0 -20
- package/dist/model-catalog-defaults.js.map +0 -1
- package/dist/native-agent-admission.d.ts +0 -7
- package/dist/native-agent-admission.js +0 -26
- package/dist/native-agent-admission.js.map +0 -1
- package/dist/native-daemon-client.d.ts +0 -13
- package/dist/native-daemon-client.js +0 -28
- package/dist/native-daemon-client.js.map +0 -1
- package/dist/native-instance-api.d.ts +0 -13
- package/dist/native-instance-api.js +0 -217
- package/dist/native-instance-api.js.map +0 -1
- package/dist/native-instance-input.d.ts +0 -87
- package/dist/native-instance-input.js +0 -59
- package/dist/native-instance-input.js.map +0 -1
- package/dist/native-instance-registry.d.ts +0 -38
- package/dist/native-instance-registry.js +0 -129
- package/dist/native-instance-registry.js.map +0 -1
- package/dist/native-mcp.d.ts +0 -43
- package/dist/native-mcp.js +0 -291
- package/dist/native-mcp.js.map +0 -1
- package/dist/native-model-catalog.d.ts +0 -5
- package/dist/native-model-catalog.js +0 -76
- package/dist/native-model-catalog.js.map +0 -1
- package/dist/native-pane-crash-budget.d.ts +0 -20
- package/dist/native-pane-crash-budget.js +0 -60
- package/dist/native-pane-crash-budget.js.map +0 -1
- package/dist/native-pane-create.d.ts +0 -26
- package/dist/native-pane-create.js +0 -53
- package/dist/native-pane-create.js.map +0 -1
- package/dist/native-pane-lifecycle.d.ts +0 -73
- package/dist/native-pane-lifecycle.js +0 -239
- package/dist/native-pane-lifecycle.js.map +0 -1
- package/dist/native-pane-manager.d.ts +0 -59
- package/dist/native-pane-manager.js +0 -592
- package/dist/native-pane-manager.js.map +0 -1
- package/dist/native-pane-output-log.d.ts +0 -15
- package/dist/native-pane-output-log.js +0 -108
- package/dist/native-pane-output-log.js.map +0 -1
- package/dist/native-pane-reconciliation.d.ts +0 -4
- package/dist/native-pane-reconciliation.js +0 -40
- package/dist/native-pane-reconciliation.js.map +0 -1
- package/dist/native-pane-recovery.d.ts +0 -12
- package/dist/native-pane-recovery.js +0 -10
- package/dist/native-pane-recovery.js.map +0 -1
- package/dist/native-pane-tools.d.ts +0 -2
- package/dist/native-pane-tools.js +0 -14
- package/dist/native-pane-tools.js.map +0 -1
- package/dist/office-talk.d.ts +0 -26
- package/dist/office-talk.js +0 -50
- package/dist/office-talk.js.map +0 -1
- package/dist/pane-port.d.ts +0 -118
- package/dist/pane-port.js +0 -2
- package/dist/pane-port.js.map +0 -1
- package/dist/runtime-api.d.ts +0 -10
- package/dist/runtime-api.js +0 -189
- package/dist/runtime-api.js.map +0 -1
- package/dist/runtime-assets/@xterm/addon-serialize/LICENSE +0 -21
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.js +0 -2
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.mjs +0 -19
- package/dist/runtime-assets/@xterm/addon-serialize/package.json +0 -29
- package/dist/runtime-assets/@xterm/headless/LICENSE +0 -21
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.js +0 -2
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.mjs +0 -46
- package/dist/runtime-assets/@xterm/headless/package.json +0 -29
- package/dist/runtime-assets/node-pty/CONPTY-LICENSE +0 -21
- package/dist/runtime-assets/node-pty/CONPTY-NOTICE.md +0 -503
- package/dist/runtime-assets/node-pty/LICENSE +0 -69
- package/dist/runtime-assets/node-pty/lib/conpty_console_list_agent.js +0 -16
- package/dist/runtime-assets/node-pty/lib/eventEmitter2.js +0 -47
- package/dist/runtime-assets/node-pty/lib/index.js +0 -52
- package/dist/runtime-assets/node-pty/lib/interfaces.js +0 -7
- package/dist/runtime-assets/node-pty/lib/shared/conout.js +0 -11
- package/dist/runtime-assets/node-pty/lib/terminal.js +0 -190
- package/dist/runtime-assets/node-pty/lib/types.js +0 -7
- package/dist/runtime-assets/node-pty/lib/unixTerminal.js +0 -346
- package/dist/runtime-assets/node-pty/lib/utils.js +0 -39
- package/dist/runtime-assets/node-pty/lib/windowsConoutConnection.js +0 -125
- package/dist/runtime-assets/node-pty/lib/windowsPtyAgent.js +0 -320
- package/dist/runtime-assets/node-pty/lib/windowsTerminal.js +0 -199
- package/dist/runtime-assets/node-pty/lib/worker/conoutSocketWorker.js +0 -22
- package/dist/runtime-assets/node-pty/package.json +0 -64
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/dist/runtime-build-info.d.ts +0 -9
- package/dist/runtime-build-info.js +0 -59
- package/dist/runtime-build-info.js.map +0 -1
- package/dist/runtime-bundle.d.ts +0 -22
- package/dist/runtime-bundle.js +0 -158
- package/dist/runtime-bundle.js.map +0 -1
- package/dist/runtime-cli.d.ts +0 -14
- package/dist/runtime-cli.js +0 -271
- package/dist/runtime-cli.js.map +0 -1
- package/dist/runtime-client-store.d.ts +0 -75
- package/dist/runtime-client-store.js +0 -372
- package/dist/runtime-client-store.js.map +0 -1
- package/dist/runtime-client.d.ts +0 -174
- package/dist/runtime-client.js +0 -1010
- package/dist/runtime-client.js.map +0 -1
- package/dist/runtime-connection.d.ts +0 -22
- package/dist/runtime-connection.js +0 -93
- package/dist/runtime-connection.js.map +0 -1
- package/dist/runtime-coordinator.d.ts +0 -98
- package/dist/runtime-coordinator.js +0 -1089
- package/dist/runtime-coordinator.js.map +0 -1
- package/dist/runtime-credential-profiles.d.ts +0 -78
- package/dist/runtime-credential-profiles.js +0 -280
- package/dist/runtime-credential-profiles.js.map +0 -1
- package/dist/runtime-general-protocol.d.ts +0 -22
- package/dist/runtime-general-protocol.js +0 -57
- package/dist/runtime-general-protocol.js.map +0 -1
- package/dist/runtime-general-workspace.d.ts +0 -17
- package/dist/runtime-general-workspace.js +0 -213
- package/dist/runtime-general-workspace.js.map +0 -1
- package/dist/runtime-install.d.ts +0 -50
- package/dist/runtime-install.js +0 -186
- package/dist/runtime-install.js.map +0 -1
- package/dist/runtime-pane-assets.d.ts +0 -17
- package/dist/runtime-pane-assets.js +0 -23
- package/dist/runtime-pane-assets.js.map +0 -1
- package/dist/runtime-pane-boot.d.ts +0 -9
- package/dist/runtime-pane-boot.js +0 -47
- package/dist/runtime-pane-boot.js.map +0 -1
- package/dist/runtime-pane-codex-index.d.ts +0 -10
- package/dist/runtime-pane-codex-index.js +0 -151
- package/dist/runtime-pane-codex-index.js.map +0 -1
- package/dist/runtime-pane-config.d.ts +0 -16
- package/dist/runtime-pane-config.js +0 -54
- package/dist/runtime-pane-config.js.map +0 -1
- package/dist/runtime-pane-host.d.ts +0 -63
- package/dist/runtime-pane-host.js +0 -467
- package/dist/runtime-pane-host.js.map +0 -1
- package/dist/runtime-pane-job-owner.d.ts +0 -1
- package/dist/runtime-pane-job-owner.js +0 -29
- package/dist/runtime-pane-job-owner.js.map +0 -1
- package/dist/runtime-pane-job.ps1 +0 -116
- package/dist/runtime-pane-link.d.ts +0 -47
- package/dist/runtime-pane-link.js +0 -337
- package/dist/runtime-pane-link.js.map +0 -1
- package/dist/runtime-pane-mcp-protocol.d.ts +0 -32
- package/dist/runtime-pane-mcp-protocol.js +0 -39
- package/dist/runtime-pane-mcp-protocol.js.map +0 -1
- package/dist/runtime-pane-mcp-relay.d.ts +0 -18
- package/dist/runtime-pane-mcp-relay.js +0 -80
- package/dist/runtime-pane-mcp-relay.js.map +0 -1
- package/dist/runtime-pane-mcp.d.ts +0 -55
- package/dist/runtime-pane-mcp.js +0 -153
- package/dist/runtime-pane-mcp.js.map +0 -1
- package/dist/runtime-pane-native.d.ts +0 -75
- package/dist/runtime-pane-native.js +0 -114
- package/dist/runtime-pane-native.js.map +0 -1
- package/dist/runtime-pane-output.d.ts +0 -19
- package/dist/runtime-pane-output.js +0 -53
- package/dist/runtime-pane-output.js.map +0 -1
- package/dist/runtime-pane-port.d.ts +0 -144
- package/dist/runtime-pane-port.js +0 -574
- package/dist/runtime-pane-port.js.map +0 -1
- package/dist/runtime-pane-private.d.ts +0 -14
- package/dist/runtime-pane-private.js +0 -51
- package/dist/runtime-pane-private.js.map +0 -1
- package/dist/runtime-pane-private.ps1 +0 -14
- package/dist/runtime-pane-process.d.ts +0 -4
- package/dist/runtime-pane-process.js +0 -117
- package/dist/runtime-pane-process.js.map +0 -1
- package/dist/runtime-pane-protocol.d.ts +0 -182
- package/dist/runtime-pane-protocol.js +0 -217
- package/dist/runtime-pane-protocol.js.map +0 -1
- package/dist/runtime-pane-quota-history.d.ts +0 -6
- package/dist/runtime-pane-quota-history.js +0 -44
- package/dist/runtime-pane-quota-history.js.map +0 -1
- package/dist/runtime-pane-screen.d.ts +0 -19
- package/dist/runtime-pane-screen.js +0 -76
- package/dist/runtime-pane-screen.js.map +0 -1
- package/dist/runtime-pane-service.d.ts +0 -16
- package/dist/runtime-pane-service.js +0 -256
- package/dist/runtime-pane-service.js.map +0 -1
- package/dist/runtime-pane-stdio-protocol.d.ts +0 -54
- package/dist/runtime-pane-stdio-protocol.js +0 -94
- package/dist/runtime-pane-stdio-protocol.js.map +0 -1
- package/dist/runtime-pane-stdio.d.ts +0 -3
- package/dist/runtime-pane-stdio.js +0 -123
- package/dist/runtime-pane-stdio.js.map +0 -1
- package/dist/runtime-pane-store.d.ts +0 -33
- package/dist/runtime-pane-store.js +0 -164
- package/dist/runtime-pane-store.js.map +0 -1
- package/dist/runtime-pane-transcript-protocol.d.ts +0 -43
- package/dist/runtime-pane-transcript-protocol.js +0 -58
- package/dist/runtime-pane-transcript-protocol.js.map +0 -1
- package/dist/runtime-pane-transcript.d.ts +0 -50
- package/dist/runtime-pane-transcript.js +0 -666
- package/dist/runtime-pane-transcript.js.map +0 -1
- package/dist/runtime-pane-worker.d.ts +0 -1
- package/dist/runtime-pane-worker.js +0 -167
- package/dist/runtime-pane-worker.js.map +0 -1
- package/dist/runtime-protocol.d.ts +0 -177
- package/dist/runtime-protocol.js +0 -49
- package/dist/runtime-protocol.js.map +0 -1
- package/dist/runtime-switches.d.ts +0 -79
- package/dist/runtime-switches.js +0 -90
- package/dist/runtime-switches.js.map +0 -1
- package/dist/runtime-transcript-delta-reader.d.ts +0 -23
- package/dist/runtime-transcript-delta-reader.js +0 -74
- package/dist/runtime-transcript-delta-reader.js.map +0 -1
- package/dist/runtime-transcript-source.d.ts +0 -36
- package/dist/runtime-transcript-source.js +0 -189
- package/dist/runtime-transcript-source.js.map +0 -1
- package/dist/runtime-update-activity.d.ts +0 -21
- package/dist/runtime-update-activity.js +0 -51
- package/dist/runtime-update-activity.js.map +0 -1
- package/dist/runtime-update-artifact.d.ts +0 -31
- package/dist/runtime-update-artifact.js +0 -252
- package/dist/runtime-update-artifact.js.map +0 -1
- package/dist/runtime-update-install.d.ts +0 -31
- package/dist/runtime-update-install.js +0 -205
- package/dist/runtime-update-install.js.map +0 -1
- package/dist/runtime-update-journal.d.ts +0 -44
- package/dist/runtime-update-journal.js +0 -121
- package/dist/runtime-update-journal.js.map +0 -1
- package/dist/runtime-update-lock.d.ts +0 -48
- package/dist/runtime-update-lock.js +0 -217
- package/dist/runtime-update-lock.js.map +0 -1
- package/dist/runtime-update-owners.d.ts +0 -29
- package/dist/runtime-update-owners.js +0 -240
- package/dist/runtime-update-owners.js.map +0 -1
- package/dist/runtime-update-protocol.d.ts +0 -15
- package/dist/runtime-update-protocol.js +0 -13
- package/dist/runtime-update-protocol.js.map +0 -1
- package/dist/runtime-windows-bridge.d.ts +0 -42
- package/dist/runtime-windows-bridge.js +0 -167
- package/dist/runtime-windows-bridge.js.map +0 -1
- package/dist/service-drain.d.ts +0 -19
- package/dist/service-drain.js +0 -64
- package/dist/service-drain.js.map +0 -1
- package/dist/settings-route-lifetime.d.ts +0 -14
- package/dist/settings-route-lifetime.js +0 -48
- package/dist/settings-route-lifetime.js.map +0 -1
- package/dist/tmux-binary.d.ts +0 -59
- package/dist/tmux-binary.js +0 -200
- package/dist/tmux-binary.js.map +0 -1
- package/dist/tmux-pane-host.d.ts +0 -26
- package/dist/tmux-pane-host.js +0 -25
- package/dist/tmux-pane-host.js.map +0 -1
- package/dist/transcript-needles.d.ts +0 -42
- package/dist/transcript-needles.js +0 -166
- package/dist/transcript-needles.js.map +0 -1
- package/dist/transcript-records.d.ts +0 -21
- package/dist/transcript-records.js +0 -141
- package/dist/transcript-records.js.map +0 -1
- package/dist/ui/account-identity.js +0 -27
- package/dist/ui/accounts-view.js +0 -214
- package/dist/ui/agent-proposals.js +0 -90
- package/dist/ui/agent-runtime-settings.js +0 -68
- package/dist/ui/agent-runtime.js +0 -124
- package/dist/ui/cli-picker.js +0 -42
- package/dist/ui/credential-profile-select.js +0 -54
- package/dist/ui/fleet-office-dialogue.d.ts +0 -30
- package/dist/ui/fleet-office-dialogue.js +0 -382
- package/dist/ui/fleet-task-menu.js +0 -188
- package/dist/ui/fleet-task-stats.js +0 -124
- package/dist/ui/fleet-task-view.js +0 -340
- package/dist/ui/general-location.js +0 -71
- package/dist/ui/hub-agent-copy.js +0 -23
- package/dist/ui/hub-button-actions.js +0 -65
- package/dist/ui/hub-chat-store.js +0 -158
- package/dist/ui/hub-chat-strings.js +0 -77
- package/dist/ui/hub-client.js +0 -329
- package/dist/ui/hub-owner-strings.js +0 -51
- package/dist/ui/hub-provider-guidance.js +0 -31
- package/dist/ui/hub-quota.js +0 -85
- package/dist/ui/hub-strings.js +0 -162
- package/dist/ui/hub-switcher.js +0 -27
- package/dist/ui/native-instance-settings.js +0 -44
- package/dist/ui/native-pane-recovery.js +0 -45
- package/dist/ui/panel-hub.js +0 -619
- package/dist/ui/panel-runtimes.js +0 -425
- package/dist/ui/panel-windows-agent.js +0 -86
- package/dist/ui/panel-windows-cli.js +0 -189
- package/dist/ui/provider-marks.js +0 -83
- package/dist/ui/runtime-catalog.js +0 -55
- package/dist/ui/runtime-commands.d.ts +0 -4
- package/dist/ui/runtime-commands.js +0 -59
- package/dist/ui/settings-access-strings.js +0 -42
- package/dist/ui/settings-agent-filters.js +0 -94
- package/dist/ui/settings-build-version.js +0 -35
- package/dist/ui/settings-devices.js +0 -253
- package/dist/ui/settings-hub-browser-certificate.js +0 -74
- package/dist/ui/settings-hub-membership.js +0 -72
- package/dist/ui/settings-hub-retention.js +0 -52
- package/dist/ui/settings-hub.js +0 -196
- package/dist/ui/settings-layout.js +0 -242
- package/dist/ui/settings-outside.js +0 -242
- package/dist/ui/settings-shared-strings.js +0 -143
- package/dist/ui/settings-shared.js +0 -345
- package/dist/ui/settings-shortcuts.js +0 -65
- package/dist/ui/shared/accounts.css +0 -15
- package/dist/ui/shared/chat-composer.js +0 -68
- package/dist/ui/shared/chat-md-strings.js +0 -9
- package/dist/ui/shared/chat-render.js +0 -682
- package/dist/ui/shared/chat-strings.js +0 -333
- package/dist/ui/shared/chat-thread.js +0 -969
- package/dist/ui/shared/chat-time.js +0 -80
- package/dist/ui/shared/html-attachment.js +0 -42
- package/dist/ui/shared/hub-chat.css +0 -85
- package/dist/ui/shared/hub-owner.css +0 -33
- package/dist/ui/shared/hub-quota.css +0 -8
- package/dist/ui/shared/hub.css +0 -71
- package/dist/ui/shared/machine-name.js +0 -13
- package/dist/ui/shared/page-head.js +0 -8
- package/dist/ui/shared/preview.js +0 -476
- package/dist/ui/shared/qrcode.module.js +0 -2237
- package/dist/ui/shared/runtime-install.css +0 -26
- package/dist/ui/shared/settings-width.js +0 -31
- package/dist/ui/shared/side-rail.js +0 -15
- package/dist/ui/shared/task-board.css +0 -95
- package/dist/ui/shared/vendor/qrcode-generator.LICENSE +0 -27
- package/dist/ui/shared/workspace.css +0 -20
- package/dist/ui/windows-agents-nav.js +0 -2
- package/dist/ui/windows-cli-catalog.js +0 -108
- package/dist/ui/workspace-panel.js +0 -189
- package/dist/ui/workspace-strings.js +0 -35
- package/dist/web-device-login.d.ts +0 -153
- package/dist/web-device-login.js +0 -278
- package/dist/web-device-login.js.map +0 -1
- package/dist/web-remote-access.d.ts +0 -152
- package/dist/web-remote-access.js +0 -368
- package/dist/web-remote-access.js.map +0 -1
- package/dist/windows-agents.d.ts +0 -127
- package/dist/windows-agents.js +0 -491
- package/dist/windows-agents.js.map +0 -1
- package/dist/windows-cli-api.d.ts +0 -34
- package/dist/windows-cli-api.js +0 -185
- package/dist/windows-cli-api.js.map +0 -1
- package/dist/windows-cli-providers.d.ts +0 -106
- package/dist/windows-cli-providers.js +0 -424
- package/dist/windows-cli-providers.js.map +0 -1
- package/dist/windows-cli-worker.d.ts +0 -83
- package/dist/windows-cli-worker.js +0 -570
- package/dist/windows-cli-worker.js.map +0 -1
- package/dist/windows-cli.d.ts +0 -126
- package/dist/windows-cli.js +0 -416
- package/dist/windows-cli.js.map +0 -1
- package/dist/windows-native-mcp.d.ts +0 -19
- package/dist/windows-native-mcp.js +0 -143
- package/dist/windows-native-mcp.js.map +0 -1
- package/dist/windows-pane-mcp.d.ts +0 -26
- package/dist/windows-pane-mcp.js +0 -187
- package/dist/windows-pane-mcp.js.map +0 -1
- package/launcher/launchd-session-type.cjs +0 -14
- package/launcher/tmux-bundle.cjs +0 -247
- package/templates/runtime-assets/conpty-LICENSE +0 -21
- package/templates/runtime-assets/conpty-NOTICE.md +0 -503
- package/templates/runtime-assets/local-pane-stage.ps1 +0 -101
- package/templates/runtime-assets/runtime-pane-job.ps1 +0 -116
- package/templates/runtime-assets/runtime-pane-private.ps1 +0 -14
- package/templates/runtime-assets/xterm-LICENSE +0 -21
- package/templates/runtime-install/install.ps1 +0 -270
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** A single server card's route lifetime, including only its own confirmed stop. */
|
|
2
|
-
export declare class SettingsRouteLifetime {
|
|
3
|
-
readonly name: string;
|
|
4
|
-
private readonly route;
|
|
5
|
-
private readonly epoch;
|
|
6
|
-
private readonly isStopping;
|
|
7
|
-
private expected;
|
|
8
|
-
private stopping;
|
|
9
|
-
private followed;
|
|
10
|
-
constructor(name: string, route: () => boolean, epoch: () => number, isStopping: () => boolean);
|
|
11
|
-
current: () => boolean;
|
|
12
|
-
/** The effect must enter the already-owned lifecycle transition synchronously. */
|
|
13
|
-
followStop(name: string, begin: () => Promise<unknown>): Promise<void>;
|
|
14
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/** A single server card's route lifetime, including only its own confirmed stop. */
|
|
2
|
-
export class SettingsRouteLifetime {
|
|
3
|
-
name;
|
|
4
|
-
route;
|
|
5
|
-
epoch;
|
|
6
|
-
isStopping;
|
|
7
|
-
expected;
|
|
8
|
-
stopping = false;
|
|
9
|
-
followed = false;
|
|
10
|
-
constructor(name, route, epoch, isStopping) {
|
|
11
|
-
this.name = name;
|
|
12
|
-
this.route = route;
|
|
13
|
-
this.epoch = epoch;
|
|
14
|
-
this.isStopping = isStopping;
|
|
15
|
-
this.expected = epoch();
|
|
16
|
-
}
|
|
17
|
-
current = () => this.route() && this.epoch() === this.expected && (!this.isStopping() || this.stopping);
|
|
18
|
-
/** The effect must enter the already-owned lifecycle transition synchronously. */
|
|
19
|
-
async followStop(name, begin) {
|
|
20
|
-
if (name !== this.name) {
|
|
21
|
-
if (!this.current())
|
|
22
|
-
throw Error("Settings route expired");
|
|
23
|
-
await begin();
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
if (this.followed || !this.current())
|
|
27
|
-
throw Error("Settings route expired before its owned stop");
|
|
28
|
-
this.followed = true;
|
|
29
|
-
this.stopping = true;
|
|
30
|
-
try {
|
|
31
|
-
const before = this.expected, pending = begin();
|
|
32
|
-
// No await between starting this exact stop and adopting exactly its one invalidation.
|
|
33
|
-
// Another stop/restart advances again and remains stale, including while this stop awaits.
|
|
34
|
-
this.expected = before + 1;
|
|
35
|
-
if (!this.current()) {
|
|
36
|
-
await pending;
|
|
37
|
-
throw Error("Settings route stop was superseded");
|
|
38
|
-
}
|
|
39
|
-
await pending;
|
|
40
|
-
if (!this.current())
|
|
41
|
-
throw Error("Settings route stop was superseded");
|
|
42
|
-
}
|
|
43
|
-
finally {
|
|
44
|
-
this.stopping = false;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=settings-route-lifetime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings-route-lifetime.js","sourceRoot":"","sources":["../src/settings-route-lifetime.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,OAAO,qBAAqB;IAIX,IAAI;IAA2B,KAAK;IACtC,KAAK;IAAiC,UAAU;IAJ3D,QAAQ,CAAS;IACjB,QAAQ,GAAG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AAI,CAAC,IAAI,CAAC,OAAO,EAAE;gBAAE,MAAM,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACzE,CAAC;gBAAS,CAAC;YAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAAC,CAAC;IACtC,CAAC;CACF"}
|
package/dist/tmux-binary.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export declare const BUNDLED_TMUX_ENV = "AGEND_BUNDLED_TMUX";
|
|
2
|
-
export declare const TMUX_BIN_ENV = "AGEND_TMUX_BIN";
|
|
3
|
-
/** The real home's socket once the bundled tmux is on: AgEnD's own, never tmux's default. */
|
|
4
|
-
export declare const BUNDLED_TMUX_SOCKET = "agend";
|
|
5
|
-
/** The switch: exactly "1" (as AGEND_FLEET_START_DIRECT). Anything else — unset included — is off. */
|
|
6
|
-
export declare function bundledTmuxEnabled(env?: NodeJS.ProcessEnv): boolean;
|
|
7
|
-
export declare class TmuxUnavailableError extends Error {
|
|
8
|
-
constructor(message: string);
|
|
9
|
-
}
|
|
10
|
-
export interface TmuxResolution {
|
|
11
|
-
/** What to execute: "tmux" (PATH) while off; an absolute path while on. */
|
|
12
|
-
binary: string;
|
|
13
|
-
/** The bundled terminfo directory, when the binary is the bundle. */
|
|
14
|
-
terminfo: string | null;
|
|
15
|
-
source: "system" | "override" | "bundled";
|
|
16
|
-
/** The bundle's tmux release ("3.8"), when known. */
|
|
17
|
-
version: string | null;
|
|
18
|
-
}
|
|
19
|
-
/** Seams for tests: where the package lives, the host, the home. Production passes none. */
|
|
20
|
-
export interface TmuxResolveDeps {
|
|
21
|
-
env?: NodeJS.ProcessEnv;
|
|
22
|
-
packageDir?: string;
|
|
23
|
-
hostId?: string;
|
|
24
|
-
agendHome?: string;
|
|
25
|
-
}
|
|
26
|
-
/** Tests: forget the cached answers. */
|
|
27
|
-
export declare function resetTmuxResolution(): void;
|
|
28
|
-
/** Which tmux to run. Cached per (switch, override, home): a launch never re-copies. */
|
|
29
|
-
export declare function resolveTmux(deps?: TmuxResolveDeps): TmuxResolution;
|
|
30
|
-
/** The tmux to execute (see resolveTmux). */
|
|
31
|
-
export declare function tmuxBinary(deps?: TmuxResolveDeps): string;
|
|
32
|
-
/**
|
|
33
|
-
* The -L socket: while off, getTmuxSocketName() as before (null — tmux's default socket — only for the real home);
|
|
34
|
-
* while on, the real home's is `agend`, and any other home keeps its isolated name.
|
|
35
|
-
*/
|
|
36
|
-
export declare function tmuxSocket(env?: NodeJS.ProcessEnv): string | null;
|
|
37
|
-
/** The socket rule, pure: off → `before` as is; on → `agend` for the real home, `before` (its isolated name) otherwise. */
|
|
38
|
-
export declare function socketFor(enabled: boolean, realHome: boolean, before: string | null): string | null;
|
|
39
|
-
/**
|
|
40
|
-
* Whether `agend attach` runs inside THIS fleet's tmux (then it switches the client instead of attaching). Off: any
|
|
41
|
-
* $TMUX, as before. On: only a $TMUX whose socket (its first field, a path) is this fleet's — the user's own tmux on
|
|
42
|
-
* another socket is not "inside", and attaching from it is an ordinary (nested) attach.
|
|
43
|
-
*/
|
|
44
|
-
export declare function insideFleetTmux(tmuxVar: string | undefined, enabled: boolean, socket: string | null): boolean;
|
|
45
|
-
/** AgEnD's own tmux configuration (§4): the bundled tmux reads this file, never the user's ~/.tmux.conf. */
|
|
46
|
-
export declare const AGEND_TMUX_CONF: string;
|
|
47
|
-
/** The -f config arguments: none while off; `-f <AGEND_HOME>/tmux/agend-tmux.conf` (written when missing) while on. */
|
|
48
|
-
export declare function tmuxConfArgs(env?: NodeJS.ProcessEnv, home?: string): string[];
|
|
49
|
-
/** `args` with this fleet's -L socket (none for tmux's default socket while off) and, on, the -f config in front. */
|
|
50
|
-
export declare function tmuxArgs(args: readonly string[], env?: NodeJS.ProcessEnv): string[];
|
|
51
|
-
/**
|
|
52
|
-
* The environment a tmux client runs with. Off: `base` as it is. On: the bundled terminfo first in TERMINFO_DIRS,
|
|
53
|
-
* COLORTERM=truecolor, and no $TMUX / $TMUX_PANE (a client must never read another server's from its caller).
|
|
54
|
-
*/
|
|
55
|
-
export declare function tmuxEnv(base?: NodeJS.ProcessEnv, deps?: TmuxResolveDeps): NodeJS.ProcessEnv;
|
|
56
|
-
/** For spreading into a child's options: `{ env }` with the bundled tmux's environment while on; `{}` while off. */
|
|
57
|
-
export declare function tmuxEnvOption(): {
|
|
58
|
-
env?: NodeJS.ProcessEnv;
|
|
59
|
-
};
|
package/dist/tmux-binary.js
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* M-2457 PR B (docs/design/bundled-tmux.md §5): which tmux AgEnD runs, on which socket, with which environment — one
|
|
3
|
-
* place for every call site.
|
|
4
|
-
*
|
|
5
|
-
* Dark: the switch `AGEND_BUNDLED_TMUX=1` turns it on, and nothing sets it in this release. While it is off, every
|
|
6
|
-
* answer is exactly what each call site did before: the `tmux` on PATH, `getTmuxSocketName()` (tmux's default socket
|
|
7
|
-
* for the real home, an isolated one for any other), the caller's environment.
|
|
8
|
-
*
|
|
9
|
-
* On (PR C activates it with the transitions):
|
|
10
|
-
* - the binary is `AGEND_TMUX_BIN` (an absolute path to an executable file; anything else is refused with what to do),
|
|
11
|
-
* else the bundled tmux this package's postinstall verified (its receipt, launcher/tmux-bundle.cjs), copied once to
|
|
12
|
-
* `<AGEND_HOME>/tmux/<version>-<sha12>/` so the server never runs from a package an update replaces. There is no
|
|
13
|
-
* PATH fallback: a missing or unverified bundle refuses with the fix.
|
|
14
|
-
* - the socket is `agend` for the real home (never the default socket), the isolated name for any other home;
|
|
15
|
-
* - the environment puts the bundled terminfo first (TERMINFO_DIRS), says the terminal has true colour, and never
|
|
16
|
-
* passes a caller's $TMUX / $TMUX_PANE to a tmux client.
|
|
17
|
-
*/
|
|
18
|
-
import { createHash } from "node:crypto";
|
|
19
|
-
import { accessSync, chmodSync, constants, cpSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
20
|
-
import { createRequire } from "node:module";
|
|
21
|
-
import { dirname, isAbsolute, join } from "node:path";
|
|
22
|
-
import { fileURLToPath } from "node:url";
|
|
23
|
-
import { getAgendHome, getTmuxSocketName, isDefaultAgendHome } from "./paths.js";
|
|
24
|
-
export const BUNDLED_TMUX_ENV = "AGEND_BUNDLED_TMUX";
|
|
25
|
-
export const TMUX_BIN_ENV = "AGEND_TMUX_BIN";
|
|
26
|
-
/** The real home's socket once the bundled tmux is on: AgEnD's own, never tmux's default. */
|
|
27
|
-
export const BUNDLED_TMUX_SOCKET = "agend";
|
|
28
|
-
/** The switch: exactly "1" (as AGEND_FLEET_START_DIRECT). Anything else — unset included — is off. */
|
|
29
|
-
export function bundledTmuxEnabled(env = process.env) {
|
|
30
|
-
return env[BUNDLED_TMUX_ENV] === "1";
|
|
31
|
-
}
|
|
32
|
-
export class TmuxUnavailableError extends Error {
|
|
33
|
-
constructor(message) { super(message); this.name = "TmuxUnavailableError"; }
|
|
34
|
-
}
|
|
35
|
-
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
36
|
-
/** src/ (tsx) and dist/ (built) both sit one level under the package root. */
|
|
37
|
-
const PACKAGE_DIR = join(HERE, "..");
|
|
38
|
-
const sha256File = (file) => createHash("sha256").update(readFileSync(file)).digest("hex");
|
|
39
|
-
let cache = null;
|
|
40
|
-
/** Tests: forget the cached answers. */
|
|
41
|
-
export function resetTmuxResolution() { cache = null; confWritten = null; }
|
|
42
|
-
/** Which tmux to run. Cached per (switch, override, home): a launch never re-copies. */
|
|
43
|
-
export function resolveTmux(deps = {}) {
|
|
44
|
-
const env = deps.env ?? process.env;
|
|
45
|
-
if (!bundledTmuxEnabled(env))
|
|
46
|
-
return { binary: "tmux", terminfo: null, source: "system", version: null };
|
|
47
|
-
const home = deps.agendHome ?? getAgendHome();
|
|
48
|
-
const key = JSON.stringify([env[TMUX_BIN_ENV] ?? null, home, deps.packageDir ?? null, deps.hostId ?? null]);
|
|
49
|
-
if (cache && cache.key === key)
|
|
50
|
-
return cache.value;
|
|
51
|
-
const value = env[TMUX_BIN_ENV] !== undefined ? overrideBinary(env[TMUX_BIN_ENV]) : bundledBinary(deps, home);
|
|
52
|
-
cache = { key, value };
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
function overrideBinary(raw) {
|
|
56
|
-
const path = raw.trim();
|
|
57
|
-
const refuse = (why) => new TmuxUnavailableError(`${TMUX_BIN_ENV}=${JSON.stringify(raw)} ${why}. Set it to the absolute path of a tmux 3.6a or newer, or unset it to use AgEnD's bundled tmux.`);
|
|
58
|
-
if (!path || !isAbsolute(path))
|
|
59
|
-
throw refuse("is not an absolute path");
|
|
60
|
-
let file = false;
|
|
61
|
-
try {
|
|
62
|
-
file = statSync(path).isFile();
|
|
63
|
-
}
|
|
64
|
-
catch { /* checked below */ }
|
|
65
|
-
if (!file)
|
|
66
|
-
throw refuse("is not a file");
|
|
67
|
-
try {
|
|
68
|
-
accessSync(path, constants.X_OK);
|
|
69
|
-
}
|
|
70
|
-
catch {
|
|
71
|
-
throw refuse("is not executable");
|
|
72
|
-
}
|
|
73
|
-
return { binary: path, terminfo: null, source: "override", version: null };
|
|
74
|
-
}
|
|
75
|
-
function bundledBinary(deps, home) {
|
|
76
|
-
const pkgDir = deps.packageDir ?? PACKAGE_DIR;
|
|
77
|
-
const req = createRequire(join(pkgDir, "package.json"));
|
|
78
|
-
const bundle = req("./launcher/tmux-bundle.cjs");
|
|
79
|
-
const hostId = deps.hostId ?? `${process.platform}-${process.arch}`;
|
|
80
|
-
const reinstall = `Reinstall AgEnD (npm install -g @songsid/agend), or set ${TMUX_BIN_ENV} to a tmux 3.6a or newer.`;
|
|
81
|
-
let manifest = null;
|
|
82
|
-
try {
|
|
83
|
-
manifest = JSON.parse(readFileSync(join(pkgDir, "package.json"), "utf8"));
|
|
84
|
-
}
|
|
85
|
-
catch { /* refused below */ }
|
|
86
|
-
const pin = bundle.pinnedTmux(manifest, { id: hostId });
|
|
87
|
-
if (!pin)
|
|
88
|
-
throw new TmuxUnavailableError(`This release has no bundled tmux for ${hostId}. ${reinstall}`);
|
|
89
|
-
const receipt = bundle.readReceipt(pkgDir, pin);
|
|
90
|
-
if (!receipt)
|
|
91
|
-
throw new TmuxUnavailableError(`AgEnD's bundled tmux (${pin.name}@${pin.version}) is not installed or not verified. ${reinstall}`);
|
|
92
|
-
const pkgTmuxDir = dirname(dirname(receipt.tmuxPath));
|
|
93
|
-
const dest = join(home, "tmux", `${receipt.tmux}-${receipt.sha256.slice(0, 12)}`);
|
|
94
|
-
const bin = join(dest, "bin", "tmux");
|
|
95
|
-
// The copy is trusted only when its bytes are the receipt's.
|
|
96
|
-
if (!(existsSync(bin) && statSync(bin).size === receipt.size && sha256File(bin) === receipt.sha256)) {
|
|
97
|
-
const tmp = `${dest}.${process.pid}.tmp`;
|
|
98
|
-
rmSync(tmp, { recursive: true, force: true });
|
|
99
|
-
mkdirSync(join(tmp, "bin"), { recursive: true });
|
|
100
|
-
cpSync(receipt.tmuxPath, join(tmp, "bin", "tmux"));
|
|
101
|
-
chmodSync(join(tmp, "bin", "tmux"), 0o755);
|
|
102
|
-
if (existsSync(join(pkgTmuxDir, "share", "terminfo")))
|
|
103
|
-
cpSync(join(pkgTmuxDir, "share", "terminfo"), join(tmp, "share", "terminfo"), { recursive: true });
|
|
104
|
-
if (sha256File(join(tmp, "bin", "tmux")) !== receipt.sha256) {
|
|
105
|
-
rmSync(tmp, { recursive: true, force: true });
|
|
106
|
-
throw new TmuxUnavailableError(`AgEnD's bundled tmux changed while it was being copied to ${dest}. ${reinstall}`);
|
|
107
|
-
}
|
|
108
|
-
mkdirSync(dirname(dest), { recursive: true });
|
|
109
|
-
rmSync(dest, { recursive: true, force: true });
|
|
110
|
-
renameSync(tmp, dest);
|
|
111
|
-
}
|
|
112
|
-
return { binary: bin, terminfo: join(dest, "share", "terminfo"), source: "bundled", version: receipt.tmux };
|
|
113
|
-
}
|
|
114
|
-
/** The tmux to execute (see resolveTmux). */
|
|
115
|
-
export function tmuxBinary(deps) {
|
|
116
|
-
return resolveTmux(deps).binary;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* The -L socket: while off, getTmuxSocketName() as before (null — tmux's default socket — only for the real home);
|
|
120
|
-
* while on, the real home's is `agend`, and any other home keeps its isolated name.
|
|
121
|
-
*/
|
|
122
|
-
export function tmuxSocket(env = process.env) {
|
|
123
|
-
return socketFor(bundledTmuxEnabled(env), isDefaultAgendHome(), getTmuxSocketName());
|
|
124
|
-
}
|
|
125
|
-
/** The socket rule, pure: off → `before` as is; on → `agend` for the real home, `before` (its isolated name) otherwise. */
|
|
126
|
-
export function socketFor(enabled, realHome, before) {
|
|
127
|
-
if (!enabled)
|
|
128
|
-
return before;
|
|
129
|
-
return realHome ? BUNDLED_TMUX_SOCKET : before;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Whether `agend attach` runs inside THIS fleet's tmux (then it switches the client instead of attaching). Off: any
|
|
133
|
-
* $TMUX, as before. On: only a $TMUX whose socket (its first field, a path) is this fleet's — the user's own tmux on
|
|
134
|
-
* another socket is not "inside", and attaching from it is an ordinary (nested) attach.
|
|
135
|
-
*/
|
|
136
|
-
export function insideFleetTmux(tmuxVar, enabled, socket) {
|
|
137
|
-
if (!tmuxVar)
|
|
138
|
-
return false;
|
|
139
|
-
if (!enabled)
|
|
140
|
-
return true;
|
|
141
|
-
const path = tmuxVar.split(",")[0] ?? "";
|
|
142
|
-
return socket !== null && path.slice(path.lastIndexOf("/") + 1) === socket;
|
|
143
|
-
}
|
|
144
|
-
/** AgEnD's own tmux configuration (§4): the bundled tmux reads this file, never the user's ~/.tmux.conf. */
|
|
145
|
-
export const AGEND_TMUX_CONF = [
|
|
146
|
-
"# AgEnD's tmux configuration (M-2457). AgEnD's bundled tmux reads only this file; your ~/.tmux.conf is untouched.",
|
|
147
|
-
'set -g default-terminal "tmux-256color"',
|
|
148
|
-
'set -as terminal-features ",*:RGB"',
|
|
149
|
-
"",
|
|
150
|
-
].join("\n");
|
|
151
|
-
let confWritten = null;
|
|
152
|
-
/** The -f config arguments: none while off; `-f <AGEND_HOME>/tmux/agend-tmux.conf` (written when missing) while on. */
|
|
153
|
-
export function tmuxConfArgs(env = process.env, home = getAgendHome()) {
|
|
154
|
-
if (!bundledTmuxEnabled(env))
|
|
155
|
-
return [];
|
|
156
|
-
const file = join(home, "tmux", "agend-tmux.conf");
|
|
157
|
-
if (confWritten !== file) {
|
|
158
|
-
let current = null;
|
|
159
|
-
try {
|
|
160
|
-
current = readFileSync(file, "utf8");
|
|
161
|
-
}
|
|
162
|
-
catch { /* written below */ }
|
|
163
|
-
if (current !== AGEND_TMUX_CONF) {
|
|
164
|
-
mkdirSync(dirname(file), { recursive: true });
|
|
165
|
-
writeFileSync(`${file}.${process.pid}.tmp`, AGEND_TMUX_CONF);
|
|
166
|
-
renameSync(`${file}.${process.pid}.tmp`, file);
|
|
167
|
-
}
|
|
168
|
-
confWritten = file;
|
|
169
|
-
}
|
|
170
|
-
return ["-f", file];
|
|
171
|
-
}
|
|
172
|
-
/** `args` with this fleet's -L socket (none for tmux's default socket while off) and, on, the -f config in front. */
|
|
173
|
-
export function tmuxArgs(args, env = process.env) {
|
|
174
|
-
const socket = tmuxSocket(env);
|
|
175
|
-
return [...(socket ? ["-L", socket] : []), ...tmuxConfArgs(env), ...args];
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* The environment a tmux client runs with. Off: `base` as it is. On: the bundled terminfo first in TERMINFO_DIRS,
|
|
179
|
-
* COLORTERM=truecolor, and no $TMUX / $TMUX_PANE (a client must never read another server's from its caller).
|
|
180
|
-
*/
|
|
181
|
-
export function tmuxEnv(base = process.env, deps) {
|
|
182
|
-
if (!bundledTmuxEnabled(deps?.env ?? base))
|
|
183
|
-
return base;
|
|
184
|
-
const r = resolveTmux({ ...deps, env: deps?.env ?? base });
|
|
185
|
-
const out = { ...base };
|
|
186
|
-
delete out.TMUX;
|
|
187
|
-
delete out.TMUX_PANE;
|
|
188
|
-
if (r.terminfo)
|
|
189
|
-
out.TERMINFO_DIRS = r.terminfo + (base.TERMINFO_DIRS ? `:${base.TERMINFO_DIRS}` : ":/usr/share/terminfo:/lib/terminfo:/usr/lib/terminfo");
|
|
190
|
-
out.COLORTERM = "truecolor";
|
|
191
|
-
// Panes inherit the server's environment: a script inside one reaches this server with this binary (a system tmux
|
|
192
|
-
// client may not speak the bundled server's protocol).
|
|
193
|
-
out.AGEND_TMUX = r.binary;
|
|
194
|
-
return out;
|
|
195
|
-
}
|
|
196
|
-
/** For spreading into a child's options: `{ env }` with the bundled tmux's environment while on; `{}` while off. */
|
|
197
|
-
export function tmuxEnvOption() {
|
|
198
|
-
return bundledTmuxEnabled() ? { env: tmuxEnv() } : {};
|
|
199
|
-
}
|
|
200
|
-
//# sourceMappingURL=tmux-binary.js.map
|
package/dist/tmux-binary.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tmux-binary.js","sourceRoot":"","sources":["../src/tmux-binary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACrJ,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEjF,MAAM,CAAC,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAC7C,6F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AC,CAAC,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC;IAC1J,GAAG,CAAC,SAAS,GAAG,WAAW,CAAC;IAC5B,kHAAkH;IAClH,uDAAuD;IACvD,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1B,OAAO,GAAG,CAAC;AACb,CAAC;AAED,oHAAoH;AACpH,MAAM,UAAU,aAAa;IAC3B,OAAO,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACxD,CAAC"}
|
package/dist/tmux-pane-host.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TmuxManager } from "./tmux-manager.js";
|
|
2
|
-
import type { PaneHost, PaneObservation, PaneSize } from "./pane-port.js";
|
|
3
|
-
/** Delegation preserves native handle identity, optional read lanes and all existing defaults. */
|
|
4
|
-
export declare class TmuxPaneHost implements PaneHost {
|
|
5
|
-
readonly executionHost: "local";
|
|
6
|
-
bind(session: string, id: string, size?: PaneSize, observation?: PaneObservation): TmuxManager;
|
|
7
|
-
ensureSession(session: string): Promise<void>;
|
|
8
|
-
sessionExists(session: string): Promise<boolean>;
|
|
9
|
-
sessionExistsStrict(session: string): Promise<boolean>;
|
|
10
|
-
killSession(session: string): Promise<void>;
|
|
11
|
-
getServerPid(session: string): Promise<number | null>;
|
|
12
|
-
listWindows(session: string, observation?: PaneObservation): Promise<{
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
}[]>;
|
|
16
|
-
listWindowsStrict(session: string, observation?: PaneObservation): Promise<{
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
}[]>;
|
|
20
|
-
getPanePid(session: string, id: string, timeoutMs?: number): Promise<number | null>;
|
|
21
|
-
listPanePids(session: string, timeoutMs?: number): Promise<{
|
|
22
|
-
pid: number;
|
|
23
|
-
window: string;
|
|
24
|
-
}[]>;
|
|
25
|
-
}
|
|
26
|
-
export declare const tmuxPaneHost: PaneHost;
|
package/dist/tmux-pane-host.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TmuxManager } from "./tmux-manager.js";
|
|
2
|
-
/** The control-mode read optimization is local to tmux, not part of a terminal transport. */
|
|
3
|
-
function readPort(observation) {
|
|
4
|
-
const candidate = observation;
|
|
5
|
-
return typeof candidate?.read === "function" && typeof candidate.isFor === "function"
|
|
6
|
-
? candidate : undefined;
|
|
7
|
-
}
|
|
8
|
-
/** Delegation preserves native handle identity, optional read lanes and all existing defaults. */
|
|
9
|
-
export class TmuxPaneHost {
|
|
10
|
-
executionHost = "local";
|
|
11
|
-
bind(session, id, size, observation) {
|
|
12
|
-
return new TmuxManager(session, id, size, readPort(observation));
|
|
13
|
-
}
|
|
14
|
-
ensureSession(session) { return TmuxManager.ensureSession(session); }
|
|
15
|
-
sessionExists(session) { return TmuxManager.sessionExists(session); }
|
|
16
|
-
sessionExistsStrict(session) { return TmuxManager.sessionExistsStrict(session); }
|
|
17
|
-
killSession(session) { return TmuxManager.killSession(session); }
|
|
18
|
-
getServerPid(session) { return TmuxManager.getServerPid(session); }
|
|
19
|
-
listWindows(session, observation) { return TmuxManager.listWindows(session, readPort(observation)); }
|
|
20
|
-
listWindowsStrict(session, observation) { return TmuxManager.listWindowsStrict(session, readPort(observation)); }
|
|
21
|
-
getPanePid(session, id, timeoutMs) { return TmuxManager.getPanePid(session, id, timeoutMs); }
|
|
22
|
-
listPanePids(session, timeoutMs) { return TmuxManager.listPanePids(session, timeoutMs); }
|
|
23
|
-
}
|
|
24
|
-
export const tmuxPaneHost = new TmuxPaneHost();
|
|
25
|
-
//# sourceMappingURL=tmux-pane-host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tmux-pane-host.js","sourceRoot":"","sources":["../src/tmux-pane-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,W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C,CAAC,CAAC,CAAC,CAAC;IAC3I,UAAU,CAAC,OAAe,EAAE,EAAU,EAAE,SAAkB,IAAI,OAAO,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACtH,YAAY,CAAC,OAAe,EAAE,SAAkB,IAAI,OAAO,WAAW,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;CAC3G;AAED,MAAM,CAAC,MAAM,YAAY,GAAa,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Where a delivery's marker turned up in a transcript delta:
|
|
3
|
-
* - `user` — the CLI consumed it as a user message of its own (the strongest signal);
|
|
4
|
-
* - `absorbed` — consumed INTO a running turn at a tool boundary (#1201). Claude Code 2.1.293 writes no user entry for
|
|
5
|
-
* that: a `queue-operation` remove with `reason: "absorbed_mid_turn"` and an `attachment` of type `queued_command`
|
|
6
|
-
* whose `prompt` is the message (tests/fixtures/claude-2.1.293-steer-consumed-mid-turn.transcript.jsonl);
|
|
7
|
-
* - `queued` — Claude Code's queue-operation enqueue: accepted into its input queue, not consumed yet.
|
|
8
|
-
* Consumed means `user` or `absorbed`.
|
|
9
|
-
*/
|
|
10
|
-
export type TranscriptMarkerKind = "user" | "absorbed" | "queued";
|
|
11
|
-
/** Whether a marker kind means the CLI took the message (as its own turn, or into the running one). */
|
|
12
|
-
export declare function markerConsumed(kind: TranscriptMarkerKind | null | undefined): kind is "user" | "absorbed";
|
|
13
|
-
export declare function transcriptDeltaDeliveryMarker(rawDelta: string, backend: string, deliveryId: string): TranscriptMarkerKind | null;
|
|
14
|
-
/**
|
|
15
|
-
* #3030: the same reading for any unique leading marker — a delivery's `[agend-delivery-id:…]` or a person's
|
|
16
|
-
* `[agend-human-id:…]` (both lead the pasted body).
|
|
17
|
-
*/
|
|
18
|
-
export declare function transcriptDeltaMarkerKind(rawDelta: string, backend: string, marker: string): TranscriptMarkerKind | null;
|
|
19
|
-
/**
|
|
20
|
-
* What a transcript proof looks for: an enveloped delivery's id marker (a delivery id string), or — for a raw paste,
|
|
21
|
-
* which carries no envelope (a silent schedule, a system command) — its exact text (#1647).
|
|
22
|
-
*/
|
|
23
|
-
export type TranscriptNeedle = string | {
|
|
24
|
-
readonly rawText: string;
|
|
25
|
-
} | {
|
|
26
|
-
readonly marker: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* #1647: a raw paste's exact text as a user entry of the CLI's own — a message that, whitespace aside and without Claude
|
|
30
|
-
* Code's paste wrapper, IS the pasted text — is the record of the turn that took the paste. The delta starts at the
|
|
31
|
-
* checkpoint taken before the write, so an earlier copy of the same words (a schedule repeats them every run) is never
|
|
32
|
-
* in it. A quote of the text inside a longer message, a tool result or a queued entry is not. Raw text is not unique
|
|
33
|
-
* the way a delivery marker is: the caller must hold a transcript that belongs to the target alone (#1663 P1-2).
|
|
34
|
-
*/
|
|
35
|
-
export declare function transcriptDeltaHasRawText(rawDelta: string, backend: string, rawText: string): boolean;
|
|
36
|
-
/** One needle against one delta: the marker's kind, `user` for a raw paste's own entry, or null. */
|
|
37
|
-
export declare function transcriptDeltaNeedle(rawDelta: string, backend: string, needle: TranscriptNeedle): TranscriptMarkerKind | null;
|
|
38
|
-
/**
|
|
39
|
-
* Whether the CLI consumed the delivery: its unique marker at the start of a persisted user-message body, or of the
|
|
40
|
-
* message Claude Code absorbed into a running turn (#1201).
|
|
41
|
-
*/
|
|
42
|
-
export declare function transcriptDeltaHasDeliveryMarker(rawDelta: string, backend: string, deliveryId: string): boolean;
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
/** Pure consumed/absorbed/queued and raw-paste proof grammar shared by local and native readers. */
|
|
2
|
-
import { normalizeTurnText } from "./transcript-turns.js";
|
|
3
|
-
const ENTER_MARKER = (deliveryId) => `[agend-delivery-id:${deliveryId}]`;
|
|
4
|
-
function userTextsFromEntry(entry, backend) {
|
|
5
|
-
if (!entry || typeof entry !== "object")
|
|
6
|
-
return [];
|
|
7
|
-
const value = entry;
|
|
8
|
-
if (backend === "claude-code") {
|
|
9
|
-
const message = value.message;
|
|
10
|
-
if (value.type !== "user" || message?.role !== "user")
|
|
11
|
-
return [];
|
|
12
|
-
const content = message.content;
|
|
13
|
-
if (typeof content === "string")
|
|
14
|
-
return [content];
|
|
15
|
-
if (!Array.isArray(content))
|
|
16
|
-
return [];
|
|
17
|
-
return content.filter((item) => item?.type === "text" && typeof item.text === "string")
|
|
18
|
-
.map((item) => item.text);
|
|
19
|
-
}
|
|
20
|
-
if (backend === "codex") {
|
|
21
|
-
const payload = value.payload;
|
|
22
|
-
if (value.type !== "response_item" || payload?.type !== "message" || payload?.role !== "user")
|
|
23
|
-
return [];
|
|
24
|
-
if (!Array.isArray(payload.content))
|
|
25
|
-
return [];
|
|
26
|
-
return payload.content.filter((item) => item?.type === "input_text" && typeof item.text === "string")
|
|
27
|
-
.map((item) => item.text);
|
|
28
|
-
}
|
|
29
|
-
return [];
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Claude Code persists a pasted message wrapped in `\n\n<pasted_content id="<hex>">\n` — every paste, small or large
|
|
33
|
-
* (seen on all 640 delivery entries of 2.1.284–2.1.289, none of which begins with the marker itself). The wrapper is the
|
|
34
|
-
* CLI's own, in a fixed shape, so it is the one thing allowed in front of the marker; anything else in front still
|
|
35
|
-
* disqualifies the entry.
|
|
36
|
-
*/
|
|
37
|
-
const CLAUDE_PASTE_WRAPPER = /^\s*<pasted_content id="[0-9a-f]+">\r?\n/;
|
|
38
|
-
/** A unique marker counts only at the start of a persisted body (after the CLI's own paste wrapper, if it adds one). */
|
|
39
|
-
function leadsWithMarker(text, backend, marker) {
|
|
40
|
-
if (text.startsWith(marker))
|
|
41
|
-
return true;
|
|
42
|
-
if (backend !== "claude-code")
|
|
43
|
-
return false;
|
|
44
|
-
const wrapper = CLAUDE_PASTE_WRAPPER.exec(text);
|
|
45
|
-
return !!wrapper && text.startsWith(marker, wrapper[0].length);
|
|
46
|
-
}
|
|
47
|
-
/** Whether a marker kind means the CLI took the message (as its own turn, or into the running one). */
|
|
48
|
-
export function markerConsumed(kind) {
|
|
49
|
-
return kind === "user" || kind === "absorbed";
|
|
50
|
-
}
|
|
51
|
-
/** Claude Code's record of a queued message absorbed into the running turn: the message's own text, or null. */
|
|
52
|
-
function claudeAbsorbedText(value) {
|
|
53
|
-
if (value.type === "attachment" && value.attachment?.type === "queued_command" && typeof value.attachment.prompt === "string") {
|
|
54
|
-
return value.attachment.prompt;
|
|
55
|
-
}
|
|
56
|
-
if (value.type === "queue-operation" && value.operation === "remove" && value.reason === "absorbed_mid_turn"
|
|
57
|
-
&& typeof value.content === "string")
|
|
58
|
-
return value.content;
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
export function transcriptDeltaDeliveryMarker(rawDelta, backend, deliveryId) {
|
|
62
|
-
return transcriptDeltaMarkerKind(rawDelta, backend, ENTER_MARKER(deliveryId));
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* #3030: the same reading for any unique leading marker — a delivery's `[agend-delivery-id:…]` or a person's
|
|
66
|
-
* `[agend-human-id:…]` (both lead the pasted body).
|
|
67
|
-
*/
|
|
68
|
-
export function transcriptDeltaMarkerKind(rawDelta, backend, marker) {
|
|
69
|
-
let queued = false;
|
|
70
|
-
let absorbed = false;
|
|
71
|
-
for (const line of rawDelta.split(/\r?\n/)) {
|
|
72
|
-
if (!line.trim())
|
|
73
|
-
continue;
|
|
74
|
-
try {
|
|
75
|
-
const entry = JSON.parse(line);
|
|
76
|
-
const firstUserText = userTextsFromEntry(entry, backend)[0];
|
|
77
|
-
if (firstUserText !== undefined && leadsWithMarker(firstUserText, backend, marker))
|
|
78
|
-
return "user";
|
|
79
|
-
const value = entry;
|
|
80
|
-
if (backend !== "claude-code" || !value || typeof value !== "object")
|
|
81
|
-
continue;
|
|
82
|
-
const absorbedText = claudeAbsorbedText(value);
|
|
83
|
-
if (absorbedText !== null && leadsWithMarker(absorbedText, backend, marker))
|
|
84
|
-
absorbed = true;
|
|
85
|
-
if (value.type === "queue-operation" && value.operation === "enqueue"
|
|
86
|
-
&& typeof value.content === "string" && leadsWithMarker(value.content, backend, marker))
|
|
87
|
-
queued = true;
|
|
88
|
-
}
|
|
89
|
-
catch { /* incomplete/malformed JSONL is not proof */ }
|
|
90
|
-
}
|
|
91
|
-
return absorbed ? "absorbed" : queued ? "queued" : null;
|
|
92
|
-
}
|
|
93
|
-
/** Claude Code's closing tag after a persisted paste: `</pasted_content id="<hex>">` (seen on 2.1.29x transcripts). */
|
|
94
|
-
const CLAUDE_PASTE_WRAPPER_END = /\r?\n?<\/pasted_content id="[0-9a-f]+">\s*$/;
|
|
95
|
-
/**
|
|
96
|
-
* #1663 P1-1: the user message's ORIGINAL body when it is one piece of text and nothing else — Claude Code's string
|
|
97
|
-
* content, or a content list of exactly one text block; Codex's content of exactly one input_text. Anything else (a
|
|
98
|
-
* second block of any kind: more text, an image, a file) is not a plain text message, so it is no raw paste's own
|
|
99
|
-
* entry: null. (userTextsFromEntry, which the marker match shares, keeps only the text blocks — not this question.)
|
|
100
|
-
*/
|
|
101
|
-
function soleUserText(entry, backend) {
|
|
102
|
-
if (!entry || typeof entry !== "object")
|
|
103
|
-
return null;
|
|
104
|
-
const value = entry;
|
|
105
|
-
const sole = (content, type) => Array.isArray(content) && content.length === 1 && content[0]?.type === type && typeof content[0].text === "string" ? content[0].text : null;
|
|
106
|
-
if (backend === "claude-code") {
|
|
107
|
-
const message = value.message;
|
|
108
|
-
if (value.type !== "user" || message?.role !== "user")
|
|
109
|
-
return null;
|
|
110
|
-
return typeof message.content === "string" ? message.content : sole(message.content, "text");
|
|
111
|
-
}
|
|
112
|
-
if (backend === "codex") {
|
|
113
|
-
const payload = value.payload;
|
|
114
|
-
if (value.type !== "response_item" || payload?.type !== "message" || payload?.role !== "user")
|
|
115
|
-
return null;
|
|
116
|
-
return sole(payload.content, "input_text");
|
|
117
|
-
}
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
/** A persisted user body without the CLI's own paste wrapper (claude-code wraps a long paste in both tags). */
|
|
121
|
-
function withoutPasteWrapper(text, backend) {
|
|
122
|
-
if (backend !== "claude-code")
|
|
123
|
-
return text;
|
|
124
|
-
const open = CLAUDE_PASTE_WRAPPER.exec(text);
|
|
125
|
-
return open ? text.slice(open[0].length).replace(CLAUDE_PASTE_WRAPPER_END, "") : text;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* #1647: a raw paste's exact text as a user entry of the CLI's own — a message that, whitespace aside and without Claude
|
|
129
|
-
* Code's paste wrapper, IS the pasted text — is the record of the turn that took the paste. The delta starts at the
|
|
130
|
-
* checkpoint taken before the write, so an earlier copy of the same words (a schedule repeats them every run) is never
|
|
131
|
-
* in it. A quote of the text inside a longer message, a tool result or a queued entry is not. Raw text is not unique
|
|
132
|
-
* the way a delivery marker is: the caller must hold a transcript that belongs to the target alone (#1663 P1-2).
|
|
133
|
-
*/
|
|
134
|
-
export function transcriptDeltaHasRawText(rawDelta, backend, rawText) {
|
|
135
|
-
const wanted = normalizeTurnText(rawText);
|
|
136
|
-
if (!wanted)
|
|
137
|
-
return false;
|
|
138
|
-
for (const line of rawDelta.split(/\r?\n/)) {
|
|
139
|
-
if (!line.trim())
|
|
140
|
-
continue;
|
|
141
|
-
try {
|
|
142
|
-
// The WHOLE user message must be the paste: its original body is one text and nothing else (#1663 P1-1).
|
|
143
|
-
const body = soleUserText(JSON.parse(line), backend);
|
|
144
|
-
if (body !== null && normalizeTurnText(withoutPasteWrapper(body, backend)) === wanted)
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
catch { /* incomplete/malformed JSONL is not proof */ }
|
|
148
|
-
}
|
|
149
|
-
return false;
|
|
150
|
-
}
|
|
151
|
-
/** One needle against one delta: the marker's kind, `user` for a raw paste's own entry, or null. */
|
|
152
|
-
export function transcriptDeltaNeedle(rawDelta, backend, needle) {
|
|
153
|
-
if (typeof needle === "string")
|
|
154
|
-
return transcriptDeltaDeliveryMarker(rawDelta, backend, needle);
|
|
155
|
-
if ("marker" in needle)
|
|
156
|
-
return transcriptDeltaMarkerKind(rawDelta, backend, needle.marker);
|
|
157
|
-
return transcriptDeltaHasRawText(rawDelta, backend, needle.rawText) ? "user" : null;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Whether the CLI consumed the delivery: its unique marker at the start of a persisted user-message body, or of the
|
|
161
|
-
* message Claude Code absorbed into a running turn (#1201).
|
|
162
|
-
*/
|
|
163
|
-
export function transcriptDeltaHasDeliveryMarker(rawDelta, backend, deliveryId) {
|
|
164
|
-
return markerConsumed(transcriptDeltaDeliveryMarker(rawDelta, backend, deliveryId));
|
|
165
|
-
}
|
|
166
|
-
//# sourceMappingURL=transcript-needles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transcript-needles.js","sourceRoot":"","sources":["../src/transcript-needles.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,MAAM,YAAY,GAAG,CAAC,UAAkB,EAAE,EAAE,CAAC,sBAAsB,UAAU,GAAG,CAAC;AACjF,SAAS,kBAAkB,CAAC,KAAc,EAAE,OAAe;IACzD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IACnD,MAAM,KAAK,GAAG,KAA4B,CAAC;IAC3C,IAAI,OAAO,KAAK,aAAa,EAAE,CAAC;QAC9B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC9B,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,OAAO,EAAE,IAAI,KAAK,MAAM;YAAE,OAAO,EAAE,CAAC;QACjE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAChC,IAAI,OAAO,OA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