@songsid/agend 2.4.0-beta.2 → 2.4.0-beta.20
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/dist/accounts-profiles.d.ts +1 -1
- package/dist/accounts-view.d.ts +32 -0
- package/dist/accounts-view.js +2 -14
- package/dist/accounts-view.js.map +1 -1
- package/dist/agent-cli-instructions.md +17 -7
- package/dist/agent-cli.js +163 -51
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.d.ts +4 -1
- package/dist/agent-endpoint.js +47 -11
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-export.d.ts +3 -1
- package/dist/agent-export.js +18 -1
- package/dist/agent-export.js.map +1 -1
- package/dist/agent-token-header.d.ts +1 -1
- package/dist/agent-token-header.js +1 -1
- package/dist/agent-whats-new.js +15 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/app-message-origin.d.ts +2 -0
- package/dist/app-message-origin.js +3 -0
- package/dist/app-message-origin.js.map +1 -0
- package/dist/apply-job.d.ts +2 -2
- package/dist/auth-api.d.ts +10 -0
- package/dist/auth-api.js +81 -4
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/authority-state.d.ts +7 -0
- package/dist/authority/authority-state.js +17 -2
- package/dist/authority/authority-state.js.map +1 -1
- package/dist/authority/web-authority.d.ts +11 -1
- package/dist/authority/web-authority.js +11 -1
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/agy-model-switch.d.ts +22 -0
- package/dist/backend/agy-model-switch.js +62 -0
- package/dist/backend/agy-model-switch.js.map +1 -0
- package/dist/backend/antigravity.d.ts +9 -2
- package/dist/backend/antigravity.js +84 -9
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-code.d.ts +24 -7
- package/dist/backend/claude-code.js +206 -29
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/claude-transcript-errors.d.ts +4 -0
- package/dist/backend/claude-transcript-errors.js +5 -1
- package/dist/backend/claude-transcript-errors.js.map +1 -1
- package/dist/backend/cli-env-probe.js +1 -1
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend/cli-runtime-switch.d.ts +90 -0
- package/dist/backend/cli-runtime-switch.js +273 -0
- package/dist/backend/cli-runtime-switch.js.map +1 -0
- package/dist/backend/codex-footer-hints.d.ts +1 -0
- package/dist/backend/codex-footer-hints.js +15 -0
- package/dist/backend/codex-footer-hints.js.map +1 -1
- package/dist/backend/codex-model-switch.d.ts +41 -0
- package/dist/backend/codex-model-switch.js +170 -0
- package/dist/backend/codex-model-switch.js.map +1 -0
- package/dist/backend/codex-precaution.d.ts +7 -0
- package/dist/backend/codex-precaution.js +103 -0
- package/dist/backend/codex-precaution.js.map +1 -0
- package/dist/backend/codex.d.ts +7 -4
- package/dist/backend/codex.js +56 -10
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.js +1 -1
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/grok-model-switch.d.ts +16 -0
- package/dist/backend/grok-model-switch.js +45 -0
- package/dist/backend/grok-model-switch.js.map +1 -0
- package/dist/backend/grok.js +33 -7
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.js +10 -5
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/muse.d.ts +2 -0
- package/dist/backend/muse.js +7 -3
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/native-pane.js +1 -1
- package/dist/backend/native-pane.js.map +1 -1
- package/dist/backend/types.d.ts +29 -2
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +23 -16
- package/dist/backend-availability.js +73 -93
- package/dist/backend-availability.js.map +1 -1
- package/dist/backend-command.d.ts +4 -2
- package/dist/backend-command.js +3 -0
- package/dist/backend-command.js.map +1 -1
- package/dist/backend-signin-guide.js +1 -1
- package/dist/backend-signin-guide.js.map +1 -1
- package/dist/backend-version-static.d.ts +15 -0
- package/dist/backend-version-static.js +95 -0
- package/dist/backend-version-static.js.map +1 -0
- package/dist/browser-backend-signins.d.ts +1 -0
- package/dist/browser-backend-signins.js +3 -1
- package/dist/browser-backend-signins.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/discord.d.ts +10 -0
- package/dist/channel/adapters/discord.js +35 -0
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +2 -0
- package/dist/channel/adapters/telegram.js +6 -1
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-server.js +36 -4
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.d.ts +27 -1
- package/dist/channel/mcp-tools.js +88 -7
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/tool-router.d.ts +4 -0
- package/dist/channel/tool-router.js +50 -19
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/channel/types.d.ts +10 -0
- package/dist/chat-task-refs.d.ts +61 -0
- package/dist/chat-task-refs.js +112 -0
- package/dist/chat-task-refs.js.map +1 -0
- package/dist/classic-channel-manager.d.ts +6 -2
- package/dist/classic-channel-manager.js +29 -4
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/classic-cli-guard.d.ts +66 -0
- package/dist/classic-cli-guard.js +209 -0
- package/dist/classic-cli-guard.js.map +1 -0
- package/dist/claude-credential-change.d.ts +22 -0
- package/dist/claude-credential-change.js +47 -0
- package/dist/claude-credential-change.js.map +1 -0
- package/dist/claude-credential-launch.d.ts +69 -0
- package/dist/claude-credential-launch.js +328 -0
- package/dist/claude-credential-launch.js.map +1 -0
- package/dist/claude-credential-runner.d.ts +1 -0
- package/dist/claude-credential-runner.js +58 -0
- package/dist/claude-credential-runner.js.map +1 -0
- package/dist/claude-credential-vault.d.ts +57 -0
- package/dist/claude-credential-vault.js +277 -0
- package/dist/claude-credential-vault.js.map +1 -0
- package/dist/claude-install-kind.d.ts +19 -0
- package/dist/claude-install-kind.js +54 -0
- package/dist/claude-install-kind.js.map +1 -0
- package/dist/claude-request-observation.d.ts +7 -0
- package/dist/claude-request-observation.js +26 -0
- package/dist/claude-request-observation.js.map +1 -0
- package/dist/claude-setup-token-transport.d.ts +9 -0
- package/dist/claude-setup-token-transport.js +104 -0
- package/dist/claude-setup-token-transport.js.map +1 -0
- package/dist/claude-setup-token.d.ts +51 -0
- package/dist/claude-setup-token.js +83 -0
- package/dist/claude-setup-token.js.map +1 -0
- package/dist/cli-audited.js +24 -17
- package/dist/cli-audited.js.map +1 -1
- package/dist/cli-capability.d.ts +3 -0
- package/dist/cli-capability.js.map +1 -1
- package/dist/cli-registry-check.js +1 -1
- package/dist/cli-registry-check.js.map +1 -1
- package/dist/cli-registry.d.ts +1 -0
- package/dist/cli-spec-antigravity.d.ts +1 -0
- package/dist/cli-spec-antigravity.js +3 -1
- package/dist/cli-spec-antigravity.js.map +1 -1
- package/dist/cli.js +8 -0
- package/dist/cli.js.map +1 -1
- package/dist/command-report.d.ts +11 -0
- package/dist/command-report.js +2 -0
- package/dist/command-report.js.map +1 -0
- package/dist/composite-tools.d.ts +11 -0
- package/dist/composite-tools.js +29 -0
- package/dist/composite-tools.js.map +1 -0
- package/dist/config-validator.js +52 -2
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +15 -2
- package/dist/config.js.map +1 -1
- package/dist/connect/control.d.ts +20 -0
- package/dist/connect/control.js +236 -0
- package/dist/connect/control.js.map +1 -0
- package/dist/connect/install.d.ts +13 -0
- package/dist/connect/install.js +12 -0
- package/dist/connect/install.js.map +1 -0
- package/dist/connect/mcp.d.ts +9 -0
- package/dist/connect/mcp.js +10 -0
- package/dist/connect/mcp.js.map +1 -0
- package/dist/connect/protocol.d.ts +38 -0
- package/dist/connect/protocol.js +36 -0
- package/dist/connect/protocol.js.map +1 -0
- package/dist/connect/service.d.ts +19 -0
- package/dist/connect/service.js +79 -0
- package/dist/connect/service.js.map +1 -0
- package/dist/connect/stdio-entry.d.ts +1 -0
- package/dist/connect/stdio-entry.js +6 -0
- package/dist/connect/stdio-entry.js.map +1 -0
- package/dist/connect/stdio.d.ts +5 -0
- package/dist/connect/stdio.js +33 -0
- package/dist/connect/stdio.js.map +1 -0
- package/dist/contact-auth-api.d.ts +17 -0
- package/dist/contact-auth-api.js +88 -0
- package/dist/contact-auth-api.js.map +1 -0
- package/dist/contact-auth-files.d.ts +6 -0
- package/dist/contact-auth-files.js +29 -0
- package/dist/contact-auth-files.js.map +1 -0
- package/dist/contact-auth-policy.d.ts +81 -0
- package/dist/contact-auth-policy.js +26 -0
- package/dist/contact-auth-policy.js.map +1 -0
- package/dist/contact-auth-service.d.ts +32 -0
- package/dist/contact-auth-service.js +101 -0
- package/dist/contact-auth-service.js.map +1 -0
- package/dist/contact-auth-store.d.ts +86 -0
- package/dist/contact-auth-store.js +372 -0
- package/dist/contact-auth-store.js.map +1 -0
- package/dist/contact-auth-types.d.ts +198 -0
- package/dist/contact-auth-types.js +7 -0
- package/dist/contact-auth-types.js.map +1 -0
- package/dist/daemon.d.ts +98 -3
- package/dist/daemon.js +673 -59
- package/dist/daemon.js.map +1 -1
- package/dist/darwin-memory.js +2 -1
- package/dist/darwin-memory.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +15 -8
- package/dist/dashboard-permissions.js +25 -10
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/delivery-consumed-watch.js +3 -0
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +6 -6
- package/dist/delivery-outbox.js +19 -25
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-outbox.test.js +132 -96
- package/dist/delivery-outbox.test.js.map +1 -1
- package/dist/dispatcher-liveness.d.ts +51 -1
- package/dist/dispatcher-liveness.js +94 -4
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/event-log.d.ts +13 -1
- package/dist/event-log.js +41 -1
- package/dist/event-log.js.map +1 -1
- package/dist/fleet-context.d.ts +1 -0
- package/dist/fleet-level-config.d.ts +1 -1
- package/dist/fleet-level-config.js +1 -0
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +505 -13
- package/dist/fleet-manager.js +3157 -263
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +2 -2
- package/dist/fleet-windows-runtime.js +13 -4
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/fleet-yaml-stringify.d.ts +3 -0
- package/dist/fleet-yaml-stringify.js +132 -0
- package/dist/fleet-yaml-stringify.js.map +1 -0
- package/dist/general-knowledge/skills/concepts/SKILL.md +71 -4
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +23 -1
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +52 -0
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +21 -1
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +18 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +332 -27
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +5 -1
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +7 -2
- package/dist/general-knowledge/skills/persona-emoji/SKILL.md +3 -0
- package/dist/general-knowledge/skills/task-board/SKILL.md +63 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +29 -3
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +211 -40
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +6 -0
- package/dist/general-knowledge/steering/core-rules.md +15 -78
- package/dist/general-role-block.d.ts +19 -0
- package/dist/general-role-block.js +56 -0
- package/dist/general-role-block.js.map +1 -0
- package/dist/general-role.d.ts +1 -1
- package/dist/general-role.js +1 -0
- package/dist/general-role.js.map +1 -1
- package/dist/host-memory.d.ts +3 -0
- package/dist/host-memory.js.map +1 -1
- package/dist/host-monitoring/darwin/collector.d.ts +18 -0
- package/dist/host-monitoring/darwin/collector.js +65 -0
- package/dist/host-monitoring/darwin/collector.js.map +1 -0
- package/dist/host-monitoring/darwin/defaults.d.ts +2 -0
- package/dist/host-monitoring/darwin/defaults.js +9 -0
- package/dist/host-monitoring/darwin/defaults.js.map +1 -0
- package/dist/host-monitoring/darwin/interpretation.d.ts +20 -0
- package/dist/host-monitoring/darwin/interpretation.js +73 -0
- package/dist/host-monitoring/darwin/interpretation.js.map +1 -0
- package/dist/host-monitoring/linux/collector.d.ts +17 -0
- package/dist/host-monitoring/linux/collector.js +55 -0
- package/dist/host-monitoring/linux/collector.js.map +1 -0
- package/dist/host-monitoring/linux/defaults.d.ts +2 -0
- package/dist/host-monitoring/linux/defaults.js +9 -0
- package/dist/host-monitoring/linux/defaults.js.map +1 -0
- package/dist/host-monitoring/linux/interpretation.d.ts +22 -0
- package/dist/host-monitoring/linux/interpretation.js +76 -0
- package/dist/host-monitoring/linux/interpretation.js.map +1 -0
- package/dist/host-monitoring/transport.d.ts +42 -0
- package/dist/host-monitoring/transport.js +101 -0
- package/dist/host-monitoring/transport.js.map +1 -0
- package/dist/host-monitoring/wsl/collector.d.ts +19 -0
- package/dist/host-monitoring/wsl/collector.js +72 -0
- package/dist/host-monitoring/wsl/collector.js.map +1 -0
- package/dist/host-monitoring/wsl/defaults.d.ts +2 -0
- package/dist/host-monitoring/wsl/defaults.js +9 -0
- package/dist/host-monitoring/wsl/defaults.js.map +1 -0
- package/dist/host-monitoring/wsl/interpretation.d.ts +22 -0
- package/dist/host-monitoring/wsl/interpretation.js +77 -0
- package/dist/host-monitoring/wsl/interpretation.js.map +1 -0
- package/dist/host-monitoring-alert-policy.d.ts +73 -0
- package/dist/host-monitoring-alert-policy.js +152 -0
- package/dist/host-monitoring-alert-policy.js.map +1 -0
- package/dist/host-monitoring-alert-resources.d.ts +11 -0
- package/dist/host-monitoring-alert-resources.js +16 -0
- package/dist/host-monitoring-alert-resources.js.map +1 -0
- package/dist/host-monitoring-alert-settings.d.ts +16 -0
- package/dist/host-monitoring-alert-settings.js +68 -0
- package/dist/host-monitoring-alert-settings.js.map +1 -0
- package/dist/host-monitoring-alert-store.d.ts +49 -0
- package/dist/host-monitoring-alert-store.js +228 -0
- package/dist/host-monitoring-alert-store.js.map +1 -0
- package/dist/host-monitoring-alert-text.d.ts +7 -0
- package/dist/host-monitoring-alert-text.js +10 -0
- package/dist/host-monitoring-alert-text.js.map +1 -0
- package/dist/host-monitoring-alerts.d.ts +79 -0
- package/dist/host-monitoring-alerts.js +276 -0
- package/dist/host-monitoring-alerts.js.map +1 -0
- package/dist/host-monitoring-config.d.ts +15 -0
- package/dist/host-monitoring-config.js +36 -0
- package/dist/host-monitoring-config.js.map +1 -0
- package/dist/host-monitoring-defaults.d.ts +19 -0
- package/dist/host-monitoring-defaults.js +10 -0
- package/dist/host-monitoring-defaults.js.map +1 -0
- package/dist/host-monitoring-footprint-policy.d.ts +45 -0
- package/dist/host-monitoring-footprint-policy.js +150 -0
- package/dist/host-monitoring-footprint-policy.js.map +1 -0
- package/dist/host-monitoring-footprint.d.ts +42 -0
- package/dist/host-monitoring-footprint.js +169 -0
- package/dist/host-monitoring-footprint.js.map +1 -0
- package/dist/host-monitoring-history-files.d.ts +2 -0
- package/dist/host-monitoring-history-files.js +16 -0
- package/dist/host-monitoring-history-files.js.map +1 -0
- package/dist/host-monitoring-history-policy.d.ts +57 -0
- package/dist/host-monitoring-history-policy.js +107 -0
- package/dist/host-monitoring-history-policy.js.map +1 -0
- package/dist/host-monitoring-history-store.d.ts +52 -0
- package/dist/host-monitoring-history-store.js +178 -0
- package/dist/host-monitoring-history-store.js.map +1 -0
- package/dist/host-monitoring-history-worker.d.ts +1 -0
- package/dist/host-monitoring-history-worker.js +66 -0
- package/dist/host-monitoring-history-worker.js.map +1 -0
- package/dist/host-monitoring-history.d.ts +80 -0
- package/dist/host-monitoring-history.js +301 -0
- package/dist/host-monitoring-history.js.map +1 -0
- package/dist/host-monitoring-platform.d.ts +21 -0
- package/dist/host-monitoring-platform.js +18 -0
- package/dist/host-monitoring-platform.js.map +1 -0
- package/dist/host-monitoring-process-identity.d.ts +8 -0
- package/dist/host-monitoring-process-identity.js +81 -0
- package/dist/host-monitoring-process-identity.js.map +1 -0
- package/dist/host-monitoring-runtime.d.ts +42 -0
- package/dist/host-monitoring-runtime.js +95 -0
- package/dist/host-monitoring-runtime.js.map +1 -0
- package/dist/host-monitoring-settings-store.d.ts +5 -0
- package/dist/host-monitoring-settings-store.js +49 -0
- package/dist/host-monitoring-settings-store.js.map +1 -0
- package/dist/host-monitoring.d.ts +121 -0
- package/dist/host-monitoring.js +157 -0
- package/dist/host-monitoring.js.map +1 -0
- package/dist/hub/admin-dashboard.d.ts +85 -0
- package/dist/hub/admin-dashboard.js +177 -0
- package/dist/hub/admin-dashboard.js.map +1 -0
- package/dist/hub/agent-catalog-model.d.ts +297 -0
- package/dist/hub/agent-catalog-model.js +57 -0
- package/dist/hub/agent-catalog-model.js.map +1 -0
- package/dist/hub/agent-catalog.d.ts +140 -0
- package/dist/hub/agent-catalog.js +129 -0
- package/dist/hub/agent-catalog.js.map +1 -0
- package/dist/hub/agent-intro-model.d.ts +38 -0
- package/dist/hub/agent-intro-model.js +14 -0
- package/dist/hub/agent-intro-model.js.map +1 -0
- package/dist/hub/agent-intro-tool.d.ts +35 -0
- package/dist/hub/agent-intro-tool.js +83 -0
- package/dist/hub/agent-intro-tool.js.map +1 -0
- package/dist/hub/agent-intro.d.ts +31 -0
- package/dist/hub/agent-intro.js +51 -0
- package/dist/hub/agent-intro.js.map +1 -0
- package/dist/hub/attachments/store.d.ts +2 -0
- package/dist/hub/attachments/store.js +6 -0
- package/dist/hub/attachments/store.js.map +1 -1
- package/dist/hub/audit/index.d.ts +5 -1
- package/dist/hub/audit/index.js +43 -3
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/buttons.js +3 -1
- package/dist/hub/buttons.js.map +1 -1
- package/dist/hub/catalog.d.ts +19 -6
- package/dist/hub/catalog.js +89 -17
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +16 -0
- package/dist/hub/client.js +135 -12
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +46 -5
- package/dist/hub/compose/member.js +344 -28
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +23 -0
- package/dist/hub/compose/server.js +128 -16
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/directory/directory.js +5 -2
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/types.d.ts +5 -1
- package/dist/hub/directory/types.js.map +1 -1
- package/dist/hub/display-name.d.ts +10 -0
- package/dist/hub/display-name.js +35 -0
- package/dist/hub/display-name.js.map +1 -0
- package/dist/hub/execution/service.d.ts +2 -1
- package/dist/hub/execution/service.js +2 -1
- package/dist/hub/execution/service.js.map +1 -1
- package/dist/hub/fleet-info.d.ts +12 -0
- package/dist/hub/fleet-info.js +14 -0
- package/dist/hub/fleet-info.js.map +1 -0
- package/dist/hub/fleet-update-model.d.ts +100 -0
- package/dist/hub/fleet-update-model.js +15 -0
- package/dist/hub/fleet-update-model.js.map +1 -0
- package/dist/hub/fleet-updates.d.ts +46 -0
- package/dist/hub/fleet-updates.js +282 -0
- package/dist/hub/fleet-updates.js.map +1 -0
- package/dist/hub/fleet-versions.d.ts +28 -0
- package/dist/hub/fleet-versions.js +80 -0
- package/dist/hub/fleet-versions.js.map +1 -0
- package/dist/hub/group-policy/admin-api.d.ts +1 -0
- package/dist/hub/group-policy/admin-api.js +10 -1
- package/dist/hub/group-policy/admin-api.js.map +1 -1
- package/dist/hub/group-policy/admin-control.d.ts +1 -0
- package/dist/hub/group-policy/admin-control.js +13 -4
- package/dist/hub/group-policy/admin-control.js.map +1 -1
- package/dist/hub/group-policy/admin-dto.d.ts +39 -1
- package/dist/hub/group-policy/admin-dto.js.map +1 -1
- package/dist/hub/group-policy/admin-facts.d.ts +4 -2
- package/dist/hub/group-policy/admin-facts.js +17 -2
- package/dist/hub/group-policy/admin-facts.js.map +1 -1
- package/dist/hub/group-policy/admin-impact.d.ts +36 -6
- package/dist/hub/group-policy/admin-impact.js +21 -7
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.d.ts +2 -0
- package/dist/hub/group-policy/admin-inventory.js +13 -4
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/admin-search.d.ts +2 -1
- package/dist/hub/group-policy/admin-search.js +56 -7
- package/dist/hub/group-policy/admin-search.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +2 -0
- package/dist/hub/group-policy/authorization.js +7 -2
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.d.ts +4 -1
- package/dist/hub/group-policy/impact-inventory.js +23 -2
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/model.d.ts +52 -1
- package/dist/hub/group-policy/model.js +20 -7
- package/dist/hub/group-policy/model.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +2 -0
- package/dist/hub/group-policy/resources.js +12 -1
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.js +22 -3
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/group-policy/team-subjects.d.ts +16 -0
- package/dist/hub/group-policy/team-subjects.js +32 -0
- package/dist/hub/group-policy/team-subjects.js.map +1 -0
- package/dist/hub/http/compose.d.ts +12 -0
- package/dist/hub/http/compose.js +633 -45
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.js +32 -2
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +19 -0
- package/dist/hub/http/schema.js +44 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/invitations.js +15 -7
- package/dist/hub/invitations.js.map +1 -1
- package/dist/hub/join/client.js +75 -42
- package/dist/hub/join/client.js.map +1 -1
- package/dist/hub/join/service.d.ts +1 -1
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/lapse-carry.d.ts +45 -0
- package/dist/hub/lapse-carry.js +62 -0
- package/dist/hub/lapse-carry.js.map +1 -0
- package/dist/hub/mcp/auth-schema.d.ts +7 -0
- package/dist/hub/mcp/auth-schema.js +31 -0
- package/dist/hub/mcp/auth-schema.js.map +1 -0
- package/dist/hub/mcp/auth.d.ts +89 -0
- package/dist/hub/mcp/auth.js +374 -0
- package/dist/hub/mcp/auth.js.map +1 -0
- package/dist/hub/mcp/catalog.d.ts +44 -0
- package/dist/hub/mcp/catalog.js +31 -0
- package/dist/hub/mcp/catalog.js.map +1 -0
- package/dist/hub/mcp/door-schema.d.ts +7 -0
- package/dist/hub/mcp/door-schema.js +20 -0
- package/dist/hub/mcp/door-schema.js.map +1 -0
- package/dist/hub/mcp/http.d.ts +25 -0
- package/dist/hub/mcp/http.js +259 -0
- package/dist/hub/mcp/http.js.map +1 -0
- package/dist/hub/mcp/policy.d.ts +65 -0
- package/dist/hub/mcp/policy.js +153 -0
- package/dist/hub/mcp/policy.js.map +1 -0
- package/dist/hub/mcp/server.d.ts +3 -0
- package/dist/hub/mcp/server.js +32 -0
- package/dist/hub/mcp/server.js.map +1 -0
- package/dist/hub/mcp/tools.d.ts +31 -0
- package/dist/hub/mcp/tools.js +177 -0
- package/dist/hub/mcp/tools.js.map +1 -0
- package/dist/hub/member/agent-catalog.d.ts +31 -0
- package/dist/hub/member/agent-catalog.js +91 -0
- package/dist/hub/member/agent-catalog.js.map +1 -0
- package/dist/hub/member/agent-intro.d.ts +29 -0
- package/dist/hub/member/agent-intro.js +73 -0
- package/dist/hub/member/agent-intro.js.map +1 -0
- package/dist/hub/member/display-name.d.ts +9 -0
- package/dist/hub/member/display-name.js +71 -0
- package/dist/hub/member/display-name.js.map +1 -0
- package/dist/hub/member/exposure-api.d.ts +11 -3
- package/dist/hub/member/exposure-api.js +24 -10
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/exposures.d.ts +16 -4
- package/dist/hub/member/exposures.js +47 -13
- package/dist/hub/member/exposures.js.map +1 -1
- package/dist/hub/member/pairing-api.js +3 -2
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/member/recommendations.d.ts +37 -0
- package/dist/hub/member/recommendations.js +129 -0
- package/dist/hub/member/recommendations.js.map +1 -0
- package/dist/hub/member/room-ask.d.ts +78 -5
- package/dist/hub/member/room-ask.js +337 -26
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-context-budget.d.ts +5 -0
- package/dist/hub/member/room-context-budget.js +34 -0
- package/dist/hub/member/room-context-budget.js.map +1 -0
- package/dist/hub/member/room-mention-feedback.d.ts +44 -0
- package/dist/hub/member/room-mention-feedback.js +121 -0
- package/dist/hub/member/room-mention-feedback.js.map +1 -0
- package/dist/hub/member/room-notification.d.ts +9 -0
- package/dist/hub/member/room-notification.js +2 -0
- package/dist/hub/member/room-notification.js.map +1 -0
- package/dist/hub/member/room-post-answers.d.ts +46 -0
- package/dist/hub/member/room-post-answers.js +152 -0
- package/dist/hub/member/room-post-answers.js.map +1 -0
- package/dist/hub/member/room-post-receipt.d.ts +21 -0
- package/dist/hub/member/room-post-receipt.js +49 -0
- package/dist/hub/member/room-post-receipt.js.map +1 -0
- package/dist/hub/member/room-post.d.ts +134 -0
- package/dist/hub/member/room-post.js +267 -0
- package/dist/hub/member/room-post.js.map +1 -0
- package/dist/hub/member/sharing-journal.d.ts +252 -0
- package/dist/hub/member/sharing-journal.js +212 -0
- package/dist/hub/member/sharing-journal.js.map +1 -0
- package/dist/hub/member/sharing-link.d.ts +25 -0
- package/dist/hub/member/sharing-link.js +68 -0
- package/dist/hub/member/sharing-link.js.map +1 -0
- package/dist/hub/member/sharing-result.d.ts +6 -0
- package/dist/hub/member/sharing-result.js +46 -0
- package/dist/hub/member/sharing-result.js.map +1 -0
- package/dist/hub/member/sharing.d.ts +39 -0
- package/dist/hub/member/sharing.js +188 -0
- package/dist/hub/member/sharing.js.map +1 -0
- package/dist/hub/member/updates.d.ts +92 -0
- package/dist/hub/member/updates.js +316 -0
- package/dist/hub/member/updates.js.map +1 -0
- package/dist/hub/pairing.d.ts +15 -1
- package/dist/hub/pairing.js +33 -2
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/personal/owner-host.d.ts +146 -0
- package/dist/hub/personal/owner-host.js +289 -0
- package/dist/hub/personal/owner-host.js.map +1 -0
- package/dist/hub/personal/refusals.d.ts +11 -0
- package/dist/hub/personal/refusals.js +33 -0
- package/dist/hub/personal/refusals.js.map +1 -0
- package/dist/hub/personal/runtime-host.d.ts +26 -0
- package/dist/hub/personal/runtime-host.js +51 -0
- package/dist/hub/personal/runtime-host.js.map +1 -0
- package/dist/hub/personal/schema.d.ts +4 -0
- package/dist/hub/personal/schema.js +54 -0
- package/dist/hub/personal/schema.js.map +1 -0
- package/dist/hub/personal/turns.d.ts +39 -0
- package/dist/hub/personal/turns.js +221 -0
- package/dist/hub/personal/turns.js.map +1 -0
- package/dist/hub/personal/types.d.ts +42 -0
- package/dist/hub/personal/types.js +2 -0
- package/dist/hub/personal/types.js.map +1 -0
- package/dist/hub/policy.d.ts +1 -1
- package/dist/hub/policy.js +2 -0
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +1101 -5
- package/dist/hub/protocol.js +111 -14
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/published-version.d.ts +3 -0
- package/dist/hub/published-version.js +35 -0
- package/dist/hub/published-version.js.map +1 -0
- package/dist/hub/quota.js +3 -1
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/recommendation-model.d.ts +36 -0
- package/dist/hub/recommendation-model.js +9 -0
- package/dist/hub/recommendation-model.js.map +1 -0
- package/dist/hub/recommendations.d.ts +58 -0
- package/dist/hub/recommendations.js +211 -0
- package/dist/hub/recommendations.js.map +1 -0
- package/dist/hub/representative.d.ts +5 -0
- package/dist/hub/representative.js +6 -1
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/roles/admin-control.d.ts +29 -0
- package/dist/hub/roles/admin-control.js +187 -0
- package/dist/hub/roles/admin-control.js.map +1 -0
- package/dist/hub/roles/admin-types.d.ts +72 -0
- package/dist/hub/roles/admin-types.js +2 -0
- package/dist/hub/roles/admin-types.js.map +1 -0
- package/dist/hub/roles/allowed-list-control.d.ts +34 -0
- package/dist/hub/roles/allowed-list-control.js +179 -0
- package/dist/hub/roles/allowed-list-control.js.map +1 -0
- package/dist/hub/roles/allowed-list.d.ts +8 -0
- package/dist/hub/roles/allowed-list.js +49 -0
- package/dist/hub/roles/allowed-list.js.map +1 -0
- package/dist/hub/roles/audit-details.d.ts +144 -0
- package/dist/hub/roles/audit-details.js +26 -0
- package/dist/hub/roles/audit-details.js.map +1 -0
- package/dist/hub/roles/authority.d.ts +12 -0
- package/dist/hub/roles/authority.js +39 -3
- package/dist/hub/roles/authority.js.map +1 -1
- package/dist/hub/roles/change.d.ts +3 -1
- package/dist/hub/roles/change.js +7 -2
- package/dist/hub/roles/change.js.map +1 -1
- package/dist/hub/roles/clock.d.ts +3 -0
- package/dist/hub/roles/clock.js +1 -1
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/convert.js +1 -1
- package/dist/hub/roles/convert.js.map +1 -1
- package/dist/hub/roles/cutover-inventory.d.ts +5 -0
- package/dist/hub/roles/cutover-inventory.js +27 -4
- package/dist/hub/roles/cutover-inventory.js.map +1 -1
- package/dist/hub/roles/cutover-marker.d.ts +18 -2
- package/dist/hub/roles/cutover-marker.js +6 -2
- package/dist/hub/roles/cutover-marker.js.map +1 -1
- package/dist/hub/roles/cutover.d.ts +2 -2
- package/dist/hub/roles/cutover.js +3 -4
- package/dist/hub/roles/cutover.js.map +1 -1
- package/dist/hub/roles/delegation.d.ts +4 -1
- package/dist/hub/roles/delegation.js +7 -2
- package/dist/hub/roles/delegation.js.map +1 -1
- package/dist/hub/roles/evaluate.d.ts +2 -1
- package/dist/hub/roles/evaluate.js +14 -0
- package/dist/hub/roles/evaluate.js.map +1 -1
- package/dist/hub/roles/expiry-effects.d.ts +8 -0
- package/dist/hub/roles/expiry-effects.js +50 -0
- package/dist/hub/roles/expiry-effects.js.map +1 -0
- package/dist/hub/roles/migrations.d.ts +7 -0
- package/dist/hub/roles/migrations.js +44 -0
- package/dist/hub/roles/migrations.js.map +1 -0
- package/dist/hub/roles/model.d.ts +25 -0
- package/dist/hub/roles/model.js +9 -3
- package/dist/hub/roles/model.js.map +1 -1
- package/dist/hub/roles/overview.d.ts +8 -0
- package/dist/hub/roles/overview.js +15 -0
- package/dist/hub/roles/overview.js.map +1 -0
- package/dist/hub/roles/resource-effects.d.ts +17 -0
- package/dist/hub/roles/resource-effects.js +62 -0
- package/dist/hub/roles/resource-effects.js.map +1 -0
- package/dist/hub/roles/review.d.ts +16 -0
- package/dist/hub/roles/review.js +42 -0
- package/dist/hub/roles/review.js.map +1 -0
- package/dist/hub/roles/writer.d.ts +14 -3
- package/dist/hub/roles/writer.js +64 -16
- package/dist/hub/roles/writer.js.map +1 -1
- package/dist/hub/room-agent-discovery-model.d.ts +29 -0
- package/dist/hub/room-agent-discovery-model.js +33 -0
- package/dist/hub/room-agent-discovery-model.js.map +1 -0
- package/dist/hub/room-agent-discovery.d.ts +14 -0
- package/dist/hub/room-agent-discovery.js +65 -0
- package/dist/hub/room-agent-discovery.js.map +1 -0
- package/dist/hub/room-agent-requests.d.ts +71 -0
- package/dist/hub/room-agent-requests.js +377 -0
- package/dist/hub/room-agent-requests.js.map +1 -0
- package/dist/hub/room-answer-status-model.d.ts +3 -0
- package/dist/hub/room-answer-status-model.js +4 -0
- package/dist/hub/room-answer-status-model.js.map +1 -0
- package/dist/hub/room-brief-model.d.ts +30 -0
- package/dist/hub/room-brief-model.js +38 -0
- package/dist/hub/room-brief-model.js.map +1 -0
- package/dist/hub/room-context-model.d.ts +45 -0
- package/dist/hub/room-context-model.js +12 -0
- package/dist/hub/room-context-model.js.map +1 -0
- package/dist/hub/room-members-model.d.ts +63 -0
- package/dist/hub/room-members-model.js +7 -0
- package/dist/hub/room-members-model.js.map +1 -0
- package/dist/hub/room-mention-feedback-model.d.ts +12 -0
- package/dist/hub/room-mention-feedback-model.js +12 -0
- package/dist/hub/room-mention-feedback-model.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +47 -10
- package/dist/hub/rooms/agents.js +344 -32
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/assistant.d.ts +1 -6
- package/dist/hub/rooms/assistant.js +7 -2
- package/dist/hub/rooms/assistant.js.map +1 -1
- package/dist/hub/rooms/automation.d.ts +24 -0
- package/dist/hub/rooms/automation.js +66 -0
- package/dist/hub/rooms/automation.js.map +1 -0
- package/dist/hub/rooms/brief.d.ts +18 -0
- package/dist/hub/rooms/brief.js +39 -0
- package/dist/hub/rooms/brief.js.map +1 -0
- package/dist/hub/rooms/buttons.d.ts +85 -0
- package/dist/hub/rooms/buttons.js +62 -0
- package/dist/hub/rooms/buttons.js.map +1 -0
- package/dist/hub/rooms/context-cursor.d.ts +18 -0
- package/dist/hub/rooms/context-cursor.js +61 -0
- package/dist/hub/rooms/context-cursor.js.map +1 -0
- package/dist/hub/rooms/context.d.ts +1 -1
- package/dist/hub/rooms/context.js +4 -4
- package/dist/hub/rooms/context.js.map +1 -1
- package/dist/hub/rooms/direct-view.d.ts +10 -2
- package/dist/hub/rooms/direct-view.js +4 -4
- package/dist/hub/rooms/direct-view.js.map +1 -1
- package/dist/hub/rooms/directory.d.ts +13 -0
- package/dist/hub/rooms/directory.js +12 -3
- package/dist/hub/rooms/directory.js.map +1 -1
- package/dist/hub/rooms/members-page.d.ts +33 -0
- package/dist/hub/rooms/members-page.js +37 -0
- package/dist/hub/rooms/members-page.js.map +1 -0
- package/dist/hub/rooms/mentions.d.ts +15 -0
- package/dist/hub/rooms/mentions.js +43 -0
- package/dist/hub/rooms/mentions.js.map +1 -0
- package/dist/hub/rooms/office.d.ts +114 -0
- package/dist/hub/rooms/office.js +71 -0
- package/dist/hub/rooms/office.js.map +1 -0
- package/dist/hub/rooms/post-replies.d.ts +23 -0
- package/dist/hub/rooms/post-replies.js +114 -0
- package/dist/hub/rooms/post-replies.js.map +1 -0
- package/dist/hub/rooms/purpose.d.ts +7 -0
- package/dist/hub/rooms/purpose.js +14 -0
- package/dist/hub/rooms/purpose.js.map +1 -0
- package/dist/hub/rooms/schema.d.ts +14 -0
- package/dist/hub/rooms/schema.js +52 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +341 -6
- package/dist/hub/rooms/service.js +1022 -47
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +43 -4
- package/dist/hub/rooms.d.ts +13 -2
- package/dist/hub/rooms.js +97 -22
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +1 -1
- package/dist/hub/runtime.js +17 -4
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +8 -1
- package/dist/hub/server.js +148 -7
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +2 -1
- package/dist/hub/session-directory-transition.js +10 -3
- package/dist/hub/session-directory-transition.js.map +1 -1
- package/dist/hub/sessions.d.ts +1 -1
- package/dist/hub/sessions.js +26 -4
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-commit.d.ts +32 -1
- package/dist/hub/settings-commit.js +11 -4
- package/dist/hub/settings-commit.js.map +1 -1
- package/dist/hub/settings-directory-ca.js +1 -1
- package/dist/hub/settings-directory-ca.js.map +1 -1
- package/dist/hub/settings-directory-control.js +7 -7
- package/dist/hub/settings-directory-control.js.map +1 -1
- package/dist/hub/settings-directory-http.d.ts +2 -0
- package/dist/hub/settings-directory-http.js +21 -6
- package/dist/hub/settings-directory-http.js.map +1 -1
- package/dist/hub/settings-directory-proof.d.ts +5 -1
- package/dist/hub/settings-directory-proof.js +49 -10
- package/dist/hub/settings-directory-proof.js.map +1 -1
- package/dist/hub/settings-directory-recovery.js +2 -1
- package/dist/hub/settings-directory-recovery.js.map +1 -1
- package/dist/hub/settings-directory-save.d.ts +2 -0
- package/dist/hub/settings-directory-save.js +9 -6
- package/dist/hub/settings-directory-save.js.map +1 -1
- package/dist/hub/sharing-previous-access.d.ts +22 -0
- package/dist/hub/sharing-previous-access.js +93 -0
- package/dist/hub/sharing-previous-access.js.map +1 -0
- package/dist/hub/sharing-requests.d.ts +174 -0
- package/dist/hub/sharing-requests.js +326 -0
- package/dist/hub/sharing-requests.js.map +1 -0
- package/dist/hub/sharing-retention.d.ts +47 -0
- package/dist/hub/sharing-retention.js +83 -0
- package/dist/hub/sharing-retention.js.map +1 -0
- package/dist/hub/sharing-withdrawal.d.ts +14 -0
- package/dist/hub/sharing-withdrawal.js +28 -0
- package/dist/hub/sharing-withdrawal.js.map +1 -0
- package/dist/hub/sharing.js +2 -2
- package/dist/hub/sharing.js.map +1 -1
- package/dist/hub/socket.d.ts +1 -0
- package/dist/hub/socket.js +39 -2
- package/dist/hub/socket.js.map +1 -1
- package/dist/hub/teams/index.d.ts +8 -3
- package/dist/hub/teams/index.js +106 -31
- package/dist/hub/teams/index.js.map +1 -1
- package/dist/hub/teams/store.d.ts +5 -1
- package/dist/hub/teams/store.js +25 -2
- package/dist/hub/teams/store.js.map +1 -1
- package/dist/hub/teams/types.d.ts +19 -2
- package/dist/hub/types.d.ts +167 -5
- package/dist/hub-classic-private.d.ts +19 -0
- package/dist/hub-classic-private.js +64 -0
- package/dist/hub-classic-private.js.map +1 -0
- package/dist/hub-contact-windows.d.ts +11 -0
- package/dist/hub-contact-windows.js +56 -0
- package/dist/hub-contact-windows.js.map +1 -0
- package/dist/hub-page-sharing-settings.d.ts +6 -0
- package/dist/hub-page-sharing-settings.js +19 -0
- package/dist/hub-page-sharing-settings.js.map +1 -0
- package/dist/hub-pairing-summary.d.ts +1 -1
- package/dist/hub-room-conversation.d.ts +14 -0
- package/dist/hub-room-conversation.js +60 -0
- package/dist/hub-room-conversation.js.map +1 -0
- package/dist/hub-room-reply-warning.d.ts +2 -0
- package/dist/hub-room-reply-warning.js +16 -0
- package/dist/hub-room-reply-warning.js.map +1 -0
- package/dist/hub-sharing-notice.d.ts +43 -0
- package/dist/hub-sharing-notice.js +34 -0
- package/dist/hub-sharing-notice.js.map +1 -0
- package/dist/hub-update-notice.d.ts +12 -0
- package/dist/hub-update-notice.js +35 -0
- package/dist/hub-update-notice.js.map +1 -0
- package/dist/human-delivery-receipts.js +8 -0
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instance-config-impact.js +5 -2
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +21 -1
- package/dist/instance-lifecycle.js +55 -14
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instruction-file-sizes.d.ts +46 -0
- package/dist/instruction-file-sizes.js +115 -0
- package/dist/instruction-file-sizes.js.map +1 -0
- package/dist/instructions.d.ts +35 -1
- package/dist/instructions.js +63 -33
- package/dist/instructions.js.map +1 -1
- package/dist/locale.d.ts +2 -0
- package/dist/locale.js +283 -32
- package/dist/locale.js.map +1 -1
- package/dist/log-steps.d.ts +5 -0
- package/dist/log-steps.js +6 -2
- package/dist/log-steps.js.map +1 -1
- package/dist/login-controller.d.ts +45 -2
- package/dist/login-controller.js +98 -10
- package/dist/login-controller.js.map +1 -1
- package/dist/login-flows.js +1 -1
- package/dist/login-flows.js.map +1 -1
- package/dist/memory-guidance.d.ts +5 -0
- package/dist/memory-guidance.js +14 -0
- package/dist/memory-guidance.js.map +1 -0
- package/dist/model-defaults.d.ts +5 -0
- package/dist/model-defaults.js +6 -0
- package/dist/model-defaults.js.map +1 -0
- package/dist/native-mcp.d.ts +2 -0
- package/dist/native-mcp.js +23 -11
- package/dist/native-mcp.js.map +1 -1
- package/dist/native-model-catalog.d.ts +15 -0
- package/dist/native-model-catalog.js +43 -3
- package/dist/native-model-catalog.js.map +1 -1
- package/dist/native-pane-lifecycle.js +3 -2
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/native-pane-tools.js +3 -0
- package/dist/native-pane-tools.js.map +1 -1
- package/dist/needs-you-hub.d.ts +4 -0
- package/dist/needs-you-hub.js +17 -2
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +36 -2
- package/dist/needs-you.js +16 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +4 -4
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +24 -4
- package/dist/outbound-handlers.js +115 -11
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +30 -0
- package/dist/outbound-schemas.js +42 -25
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +2 -0
- 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/profile-signins.d.ts +1 -0
- package/dist/profile-signins.js +3 -1
- package/dist/profile-signins.js.map +1 -1
- package/dist/public-web-gateway.d.ts +20 -0
- package/dist/public-web-gateway.js +232 -9
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +21 -2
- package/dist/public-web-link.js +22 -2
- package/dist/public-web-link.js.map +1 -1
- package/dist/queued-handoffs.d.ts +16 -4
- package/dist/queued-handoffs.js +18 -1
- package/dist/queued-handoffs.js.map +1 -1
- package/dist/quickstart-api.d.ts +0 -1
- package/dist/quickstart-api.js +8 -1
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +1 -1
- package/dist/quickstart.js +2 -3
- package/dist/quickstart.js.map +1 -1
- package/dist/remote-card-answer.d.ts +1 -1
- package/dist/remote-card-answer.js +8 -1
- package/dist/remote-card-answer.js.map +1 -1
- package/dist/remote-card-prompt.d.ts +1 -0
- package/dist/remote-card-prompt.js +2 -2
- package/dist/remote-card-prompt.js.map +1 -1
- package/dist/reply-dedup.js +3 -1
- package/dist/reply-dedup.js.map +1 -1
- package/dist/reply-preview-files.d.ts +38 -0
- package/dist/reply-preview-files.js +142 -0
- package/dist/reply-preview-files.js.map +1 -0
- package/dist/reply-preview-spec.d.ts +18 -0
- package/dist/reply-preview-spec.js +27 -0
- package/dist/reply-preview-spec.js.map +1 -0
- package/dist/restart-progress.d.ts +6 -0
- package/dist/restart-progress.js +5 -0
- package/dist/restart-progress.js.map +1 -1
- package/dist/runtime-api.js +10 -2
- package/dist/runtime-api.js.map +1 -1
- package/dist/runtime-build-info.js +2 -1
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli-install.js +18 -14
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/runtime-cli.js +31 -5
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.d.ts +5 -0
- package/dist/runtime-client-store.js +28 -0
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +4 -0
- package/dist/runtime-client.js +33 -10
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +4 -2
- package/dist/runtime-coordinator.js +33 -6
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-install.d.ts +6 -1
- package/dist/runtime-install.js +12 -4
- package/dist/runtime-install.js.map +1 -1
- package/dist/runtime-pane-mcp.js +7 -3
- package/dist/runtime-pane-mcp.js.map +1 -1
- package/dist/runtime-pane-native.js +5 -2
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/runtime-personal-answer-only-probe.d.ts +3 -0
- package/dist/runtime-personal-answer-only-probe.js +134 -0
- package/dist/runtime-personal-answer-only-probe.js.map +1 -0
- package/dist/runtime-personal-answer-only.d.ts +16 -0
- package/dist/runtime-personal-answer-only.js +54 -0
- package/dist/runtime-personal-answer-only.js.map +1 -0
- package/dist/runtime-personal-answer.d.ts +30 -0
- package/dist/runtime-personal-answer.js +124 -0
- package/dist/runtime-personal-answer.js.map +1 -0
- package/dist/runtime-personal-preflight.d.ts +8 -0
- package/dist/runtime-personal-preflight.js +103 -0
- package/dist/runtime-personal-preflight.js.map +1 -0
- package/dist/runtime-personal-profile.d.ts +40 -0
- package/dist/runtime-personal-profile.js +81 -0
- package/dist/runtime-personal-profile.js.map +1 -0
- package/dist/runtime-personal-protocol.d.ts +10 -0
- package/dist/runtime-personal-protocol.js +15 -0
- package/dist/runtime-personal-protocol.js.map +1 -0
- package/dist/runtime-personal-stage.d.ts +37 -0
- package/dist/runtime-personal-stage.js +167 -0
- package/dist/runtime-personal-stage.js.map +1 -0
- package/dist/runtime-protocol.d.ts +2 -0
- package/dist/scheduler/db.js +2 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-mentions.d.ts +32 -0
- package/dist/scheduler/task-board-mentions.js +97 -0
- package/dist/scheduler/task-board-mentions.js.map +1 -0
- package/dist/scheduler/task-board-text.js +3 -0
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +199 -3
- package/dist/scheduler/task-board.js +492 -7
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/settings-api.d.ts +36 -1
- package/dist/settings-api.js +525 -96
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +4 -0
- package/dist/settings-baseline.js +7 -5
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +47 -7
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.d.ts +7 -0
- package/dist/settings-effect.js +80 -5
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.js +18 -44
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-instance-patch.js +3 -1
- package/dist/settings-instance-patch.js.map +1 -1
- package/dist/setup-form.js +10 -0
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-host.d.ts +2 -3
- package/dist/setup-host.js +3 -5
- package/dist/setup-host.js.map +1 -1
- package/dist/setup-i18n.js +2 -2
- package/dist/setup-i18n.js.map +1 -1
- package/dist/setup-wizard.js +0 -2
- package/dist/setup-wizard.js.map +1 -1
- package/dist/shared-default-adoption.d.ts +24 -0
- package/dist/shared-default-adoption.js +73 -0
- package/dist/shared-default-adoption.js.map +1 -0
- package/dist/subagent-records.d.ts +2 -0
- package/dist/subagent-records.js +64 -12
- package/dist/subagent-records.js.map +1 -1
- package/dist/subagent-service.d.ts +3 -0
- package/dist/subagent-service.js +27 -5
- package/dist/subagent-service.js.map +1 -1
- package/dist/task-board-tool.d.ts +31 -0
- package/dist/task-board-tool.js +31 -0
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-board-waker.d.ts +23 -30
- package/dist/task-board-waker.js +136 -97
- package/dist/task-board-waker.js.map +1 -1
- package/dist/tmux-manager.d.ts +2 -0
- package/dist/tmux-manager.js +2 -0
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tool-permissions.js +3 -0
- package/dist/tool-permissions.js.map +1 -1
- package/dist/tool-progress.d.ts +9 -0
- package/dist/tool-progress.js +141 -32
- package/dist/tool-progress.js.map +1 -1
- package/dist/topic-commands.d.ts +7 -1
- package/dist/topic-commands.js +103 -91
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-monitor.d.ts +1 -0
- package/dist/transcript-monitor.js +18 -0
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/tunnel/lease.d.ts +14 -0
- package/dist/tunnel/lease.js +23 -0
- package/dist/tunnel/lease.js.map +1 -1
- package/dist/turn-reply-guard.d.ts +2 -2
- package/dist/turn-reply-guard.js +3 -3
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/types.d.ts +37 -2
- package/dist/ui/accounts-keepalive.js +2 -1
- package/dist/ui/accounts-view.js +18 -9
- package/dist/ui/agent-details-settings.js +9 -7
- package/dist/ui/agent-export-dialog.js +4 -3
- package/dist/ui/agent-export-strings.js +4 -4
- package/dist/ui/agent-page-strings.js +18 -0
- package/dist/ui/backend-signin.js +94 -23
- package/dist/ui/chat-activity-groups.js +42 -9
- package/dist/ui/chat-activity.js +22 -3
- package/dist/ui/chat-commands.js +2 -0
- package/dist/ui/chat-mentions.js +13 -0
- package/dist/ui/chat-msg-actions.js +3 -222
- package/dist/ui/chat-pins.js +106 -0
- package/dist/ui/chat-popout-header.js +2 -2
- package/dist/ui/chat-popout-transport.js +49 -19
- package/dist/ui/chat-popout.js +15 -1
- package/dist/ui/chat-quote.js +3 -261
- package/dist/ui/chat-store.js +178 -16
- package/dist/ui/chat-task-ref-strings.js +24 -0
- package/dist/ui/chat-task-refs.js +131 -0
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/chat-workspace.js +3 -3
- package/dist/ui/claude-credentials.js +123 -0
- package/dist/ui/claude-setup-token.js +36 -0
- package/dist/ui/contact-auth-client.js +55 -0
- package/dist/ui/contact-auth-strings.js +256 -0
- package/dist/ui/contact-authorizations.js +139 -0
- package/dist/ui/contact-grant-editor.js +50 -0
- package/dist/ui/contact-needs.js +100 -0
- package/dist/ui/contact-permissions.js +251 -0
- package/dist/ui/contact-ticket-badge.js +54 -0
- package/dist/ui/contact-tool-groups.js +39 -0
- package/dist/ui/fleet-canvas.js +19 -7
- package/dist/ui/fleet-office-card.js +431 -41
- package/dist/ui/fleet-office-carousel.d.ts +14 -0
- package/dist/ui/fleet-office-carousel.js +95 -0
- package/dist/ui/fleet-office-dialogue.js +3 -3
- package/dist/ui/fleet-office-editor.js +6 -1
- package/dist/ui/fleet-office-model.js +2 -1
- package/dist/ui/fleet-office-pack.d.ts +68 -1
- package/dist/ui/fleet-office-pack.js +418 -20
- package/dist/ui/fleet-office-play.js +491 -0
- package/dist/ui/fleet-office-skin.js +249 -33
- package/dist/ui/fleet-office-store.js +78 -2
- package/dist/ui/fleet-office-zones.js +132 -27
- package/dist/ui/fleet-office.js +993 -130
- package/dist/ui/fleet-route.js +44 -6
- package/dist/ui/fleet-task-activity.js +362 -0
- package/dist/ui/fleet-task-card.js +317 -314
- package/dist/ui/fleet-task-common.js +99 -9
- package/dist/ui/fleet-task-create.js +67 -0
- package/dist/ui/fleet-task-edit.js +204 -0
- package/dist/ui/fleet-task-follow.js +123 -0
- package/dist/ui/fleet-task-menu.js +1 -1
- package/dist/ui/fleet-task-owner.js +252 -0
- package/dist/ui/fleet-task-run.js +257 -0
- package/dist/ui/fleet-task-view.js +180 -40
- package/dist/ui/fleet-task-work.js +2 -2
- package/dist/ui/fleet-tasks.js +258 -130
- package/dist/ui/host-alerts.js +23 -0
- package/dist/ui/host-footprint.js +17 -0
- package/dist/ui/host-health-model.js +42 -0
- package/dist/ui/host-health.js +82 -0
- package/dist/ui/host-install.js +87 -7
- package/dist/ui/host-monitoring-darwin.js +6 -0
- package/dist/ui/host-monitoring-help.js +7 -0
- package/dist/ui/host-monitoring-linux.js +6 -0
- package/dist/ui/host-monitoring-wsl.js +6 -0
- package/dist/ui/host-time.js +5 -0
- package/dist/ui/hub-admin-overview.js +189 -0
- package/dist/ui/hub-admin-rooms.js +1 -1
- package/dist/ui/hub-agent-copy.js +8 -2
- package/dist/ui/hub-agent-intro.js +35 -0
- package/dist/ui/hub-ai-apps-strings.js +6 -0
- package/dist/ui/hub-ai-apps.js +84 -0
- package/dist/ui/hub-attachments.js +81 -3
- package/dist/ui/hub-chat-strings.js +11 -3
- package/dist/ui/hub-client.js +120 -12
- package/dist/ui/hub-directory-editor-strings.js +2 -2
- package/dist/ui/hub-directory-editor.js +1 -0
- package/dist/ui/hub-fleet-versions.js +393 -0
- package/dist/ui/hub-grant-picker.js +28 -47
- package/dist/ui/hub-group-policy.js +26 -13
- package/dist/ui/hub-group-strings.js +28 -18
- package/dist/ui/hub-intro-notice.js +16 -0
- package/dist/ui/hub-invitations.js +5 -1
- package/dist/ui/hub-join-steps.js +27 -15
- package/dist/ui/hub-my-agents-model.js +42 -0
- package/dist/ui/hub-my-agents-strings.js +20 -0
- package/dist/ui/hub-my-agents.js +166 -0
- package/dist/ui/hub-owner-strings.js +9 -8
- package/dist/ui/hub-personal-agent-strings.js +246 -0
- package/dist/ui/hub-personal-agent.js +119 -0
- package/dist/ui/hub-policy-subjects.js +35 -0
- package/dist/ui/hub-quick-pairing.js +7 -2
- package/dist/ui/hub-quota.js +2 -1
- package/dist/ui/hub-role-audit.js +39 -0
- package/dist/ui/hub-role-forms.js +99 -0
- package/dist/ui/hub-role-notices.js +11 -0
- package/dist/ui/hub-role-view.js +86 -0
- package/dist/ui/hub-roles-strings.js +440 -0
- package/dist/ui/hub-roles.js +83 -0
- package/dist/ui/hub-room-agent-strings.js +28 -0
- package/dist/ui/hub-room-composer.js +161 -18
- package/dist/ui/hub-room-list.js +6 -4
- package/dist/ui/hub-room-members-strings.js +11 -4
- package/dist/ui/hub-room-members.js +127 -17
- package/dist/ui/hub-room-new-strings.js +2 -1
- package/dist/ui/hub-room-new.js +17 -7
- package/dist/ui/hub-room-notify.js +161 -0
- package/dist/ui/hub-room-office.js +202 -0
- package/dist/ui/hub-room-owner-requests-strings.js +114 -0
- package/dist/ui/hub-room-owner-requests.js +264 -0
- package/dist/ui/hub-room-pins.js +43 -0
- package/dist/ui/hub-room-presence.js +5 -2
- package/dist/ui/hub-room-purpose.js +35 -0
- package/dist/ui/hub-room-search.js +126 -0
- package/dist/ui/hub-room-settings.js +79 -4
- package/dist/ui/hub-room-source-strings.js +17 -0
- package/dist/ui/hub-room-source.js +37 -0
- package/dist/ui/hub-room-strings.js +86 -7
- package/dist/ui/hub-room-thread.js +436 -60
- package/dist/ui/hub-room-unread.js +2 -1
- package/dist/ui/hub-strings.js +19 -10
- package/dist/ui/hub-subject-picker.js +58 -0
- package/dist/ui/hub-switcher.js +2 -2
- package/dist/ui/hub-teams-strings.js +10 -6
- package/dist/ui/hub-teams.js +58 -29
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/hub-welcome.js +122 -75
- package/dist/ui/image-annotate.js +2 -283
- package/dist/ui/image-lightbox.js +2 -176
- package/dist/ui/image-zoom.js +2 -242
- package/dist/ui/log-row.js +7 -5
- package/dist/ui/model-picker.js +7 -3
- package/dist/ui/native-instance-settings.js +4 -2
- package/dist/ui/notice-hub-sharing.js +81 -0
- package/dist/ui/notice-hub-update.js +94 -0
- package/dist/ui/office-share-dialog.js +2 -2
- package/dist/ui/office-share-page.js +5 -1
- package/dist/ui/panel-chat.js +578 -78
- package/dist/ui/panel-details.js +22 -1
- package/dist/ui/panel-fleet.js +49 -14
- package/dist/ui/panel-hub.js +418 -123
- package/dist/ui/panel-log.js +4 -4
- package/dist/ui/panel-needs.js +50 -22
- package/dist/ui/panel-notices.js +4 -1
- package/dist/ui/panel-runtimes.js +2 -1
- package/dist/ui/panel-settings.js +111 -51
- package/dist/ui/preview-panel.js +3 -1
- package/dist/ui/preview-popout.js +134 -0
- package/dist/ui/reply-file-preview.js +65 -0
- package/dist/ui/runtime-commands.d.ts +2 -2
- package/dist/ui/runtime-commands.js +7 -4
- package/dist/ui/search-dialog.js +8 -1
- package/dist/ui/settings-access-overview.js +5 -4
- package/dist/ui/settings-appearance.js +13 -11
- package/dist/ui/settings-apply.js +8 -3
- package/dist/ui/settings-archive-files.js +109 -0
- package/dist/ui/settings-build-version.js +2 -2
- package/dist/ui/settings-capabilities.js +2 -0
- package/dist/ui/settings-catalog.js +22 -0
- package/dist/ui/settings-connector-strings.js +23 -0
- package/dist/ui/settings-connector.js +40 -0
- package/dist/ui/settings-default-model-scope.js +40 -0
- package/dist/ui/settings-default-model-strings.js +43 -0
- package/dist/ui/settings-dialogs.js +9 -5
- package/dist/ui/settings-guests-entries.js +16 -0
- package/dist/ui/settings-guests.js +57 -15
- package/dist/ui/settings-host-alerts.js +23 -0
- package/dist/ui/settings-host-monitoring.js +71 -0
- package/dist/ui/settings-hub-connection.js +6 -7
- package/dist/ui/settings-hub-membership.js +6 -7
- package/dist/ui/settings-hub-page-sharing.js +52 -0
- package/dist/ui/settings-hub-section.js +2 -4
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-hub-updates.js +67 -0
- package/dist/ui/settings-hub.js +35 -7
- package/dist/ui/settings-layout.js +17 -14
- package/dist/ui/settings-model.js +9 -5
- package/dist/ui/settings-quota-notice.js +3 -3
- package/dist/ui/settings-registry.js +27 -5
- package/dist/ui/settings-shared-strings.js +24 -0
- package/dist/ui/settings-shared.js +62 -14
- package/dist/ui/settings-strings.js +15 -6
- package/dist/ui/settings-update.js +11 -5
- package/dist/ui/settings-web-authority.js +7 -5
- package/dist/ui/shared/access-overview.css +1 -1
- package/dist/ui/shared/accounts-keepalive.css +1 -1
- package/dist/ui/shared/accounts.css +9 -5
- package/dist/ui/shared/agent-sheet.js +120 -0
- package/dist/ui/shared/agent-widget.js +1 -2
- package/dist/ui/shared/app-i18n.js +10 -2
- package/dist/ui/shared/app-nav.js +9 -5
- package/dist/ui/shared/app-prefs.js +9 -3
- package/dist/ui/shared/app-route.js +5 -3
- package/dist/ui/shared/app-shell.js +202 -34
- package/dist/ui/shared/app-store.js +7 -3
- package/dist/ui/shared/app-stream.js +8 -2
- package/dist/ui/shared/app-swipe.js +3 -1
- package/dist/ui/shared/app-themes.js +3 -5
- package/dist/ui/shared/app-update.js +90 -8
- package/dist/ui/shared/app.css +1005 -259
- package/dist/ui/shared/app.js +12 -3
- package/dist/ui/shared/asset-url.d.ts +2 -0
- package/dist/ui/shared/asset-url.js +20 -0
- package/dist/ui/shared/chat-composer.js +36 -11
- package/dist/ui/shared/chat-msg-actions.js +233 -0
- package/dist/ui/shared/chat-quote.js +285 -0
- package/dist/ui/shared/chat-render.js +63 -10
- package/dist/ui/shared/chat-strings.js +31 -10
- package/dist/ui/shared/chat-table-select.js +175 -0
- package/dist/ui/shared/chat-thread.js +175 -29
- package/dist/ui/shared/chat-work-bar.css +118 -0
- package/dist/ui/shared/composer-focus.js +21 -0
- package/dist/ui/shared/connector-prompt.d.ts +3 -0
- package/dist/ui/shared/connector-prompt.js +20 -0
- package/dist/ui/shared/hub-ai-apps.css +12 -0
- package/dist/ui/shared/hub-chat.css +117 -4
- package/dist/ui/shared/hub-groups.css +19 -15
- package/dist/ui/shared/hub-my-agents.css +41 -0
- package/dist/ui/shared/hub-owner.css +118 -3
- package/dist/ui/shared/hub-roles.css +99 -0
- package/dist/ui/shared/hub-rooms-u2.css +95 -0
- package/dist/ui/shared/hub.css +23 -5
- package/dist/ui/shared/image-annotate.css +22 -3
- package/dist/ui/shared/image-annotate.js +416 -0
- package/dist/ui/shared/image-lightbox.js +218 -0
- package/dist/ui/shared/image-zoom.js +316 -0
- package/dist/ui/shared/info-tip.js +64 -0
- package/dist/ui/shared/instance-nav.js +166 -19
- package/dist/ui/shared/jump-idle.js +36 -0
- package/dist/ui/shared/loading.css +1 -1
- package/dist/ui/shared/model-picker.css +32 -4
- package/dist/ui/shared/module-warm.d.ts +3 -0
- package/dist/ui/shared/module-warm.js +39 -0
- package/dist/ui/shared/office-dialogue.css +12 -0
- package/dist/ui/shared/owner-css.js +1 -1
- package/dist/ui/shared/panel-view.js +7 -1
- package/dist/ui/shared/preview-panel-actions.js +1 -1
- package/dist/ui/shared/preview-panel.js +50 -20
- package/dist/ui/shared/preview-popout.css +11 -0
- package/dist/ui/shared/reply-previews.css +4 -0
- package/dist/ui/shared/runtime-install.css +5 -0
- package/dist/ui/shared/settings-connector.css +7 -0
- package/dist/ui/shared/signin.js +27 -12
- package/dist/ui/shared/task-board.css +408 -10
- package/dist/ui/shared/text-undo.js +17 -3
- package/dist/ui/shared/theme-picker.js +46 -0
- package/dist/ui/shared/theme.js +101 -2
- package/dist/ui/shared/tokens.css +300 -10
- package/dist/ui/shared/ui-confirm.js +5 -2
- package/dist/ui/shared/ui-icons.js +2 -0
- package/dist/ui/shared/ui-menu.js +17 -11
- package/dist/ui/shared/ui-states.js +3 -2
- package/dist/ui/shared/ui-toast.js +4 -4
- package/dist/ui/shared/usage-dialog.js +88 -17
- package/dist/ui/shared/view-history.js +2 -1
- package/dist/ui/shared/view-strings.js +28 -4
- package/dist/ui/shared/web-authorize.js +3 -3
- package/dist/ui/signin.html +4 -2
- package/dist/ui/structured-signin.js +64 -12
- package/dist/ui/subagent-row.js +3 -2
- package/dist/ui/trigger-complete.js +71 -0
- package/dist/ui/usage-pool.js +2 -1
- package/dist/ui/web-terminal/terminal.css +1 -1
- package/dist/ui/workspace-panel.js +6 -4
- package/dist/update-dispatch.d.ts +8 -1
- package/dist/update-dispatch.js +16 -1
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-idle.d.ts +65 -0
- package/dist/update-idle.js +190 -0
- package/dist/update-idle.js.map +1 -0
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +9 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +2 -2
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/profile-timeline.d.ts +2 -0
- package/dist/usage/profile-timeline.js +4 -0
- package/dist/usage/profile-timeline.js.map +1 -1
- package/dist/usage/providers.d.ts +1 -0
- package/dist/usage/providers.js +20 -7
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-history.d.ts +1 -1
- package/dist/usage/usage-api.js +5 -2
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/view-api.js +1 -1
- package/dist/view-api.js.map +1 -1
- package/dist/wake-coordinator.js +3 -2
- package/dist/wake-coordinator.js.map +1 -1
- package/dist/web-api.d.ts +57 -6
- package/dist/web-api.js +1021 -212
- package/dist/web-api.js.map +1 -1
- package/dist/web-asset-version.d.ts +65 -0
- package/dist/web-asset-version.js +259 -0
- package/dist/web-asset-version.js.map +1 -0
- package/dist/web-backend-login.d.ts +5 -1
- package/dist/web-backend-login.js +8 -2
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-archive.d.ts +147 -0
- package/dist/web-chat-archive.js +530 -0
- package/dist/web-chat-archive.js.map +1 -0
- package/dist/web-chat-history.d.ts +128 -2
- package/dist/web-chat-history.js +320 -12
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-claude-credentials.d.ts +31 -0
- package/dist/web-claude-credentials.js +138 -0
- package/dist/web-claude-credentials.js.map +1 -0
- package/dist/web-commands.d.ts +9 -5
- package/dist/web-commands.js +7 -4
- package/dist/web-commands.js.map +1 -1
- package/dist/web-guest-access.d.ts +3 -0
- package/dist/web-guest-access.js +8 -4
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-host-guard.js +3 -1
- package/dist/web-host-guard.js.map +1 -1
- package/dist/web-host-install.d.ts +30 -3
- package/dist/web-host-install.js +50 -4
- package/dist/web-host-install.js.map +1 -1
- package/dist/web-icons.js +3 -3
- package/dist/web-icons.js.map +1 -1
- package/dist/web-login.d.ts +7 -0
- package/dist/web-login.js +8 -1
- package/dist/web-login.js.map +1 -1
- package/dist/web-mentions.d.ts +2 -0
- package/dist/web-mentions.js +20 -0
- package/dist/web-mentions.js.map +1 -1
- package/dist/web-notices.d.ts +20 -0
- package/dist/web-notices.js +64 -8
- package/dist/web-notices.js.map +1 -1
- package/dist/web-office-skins.d.ts +7 -2
- package/dist/web-office-skins.js +42 -16
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-office-store.d.ts +2 -0
- package/dist/web-office-store.js +15 -3
- package/dist/web-office-store.js.map +1 -1
- package/dist/web-pin-store.d.ts +58 -0
- package/dist/web-pin-store.js +170 -0
- package/dist/web-pin-store.js.map +1 -0
- package/dist/web-prefs.js +5 -1
- package/dist/web-prefs.js.map +1 -1
- package/dist/web-reply-files.d.ts +1 -0
- package/dist/web-reply-files.js +2 -0
- package/dist/web-reply-files.js.map +1 -1
- package/dist/web-session-authorization.d.ts +24 -0
- package/dist/web-session-authorization.js +32 -0
- package/dist/web-session-authorization.js.map +1 -1
- package/dist/web-session.d.ts +26 -5
- package/dist/web-session.js +32 -3
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +24 -3
- package/dist/web-settings-patch.js +57 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +2 -2
- package/dist/web-shell-routes.js +3 -2
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-terminal.d.ts +9 -0
- package/dist/web-terminal.js +27 -1
- package/dist/web-terminal.js.map +1 -1
- package/dist/web-theme.js +2 -2
- package/dist/web-update.d.ts +15 -1
- package/dist/web-upload.d.ts +37 -1
- package/dist/web-upload.js +105 -5
- package/dist/web-upload.js.map +1 -1
- package/dist/windows-cli-api.d.ts +10 -7
- package/dist/windows-cli-api.js +13 -12
- package/dist/windows-cli-api.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +10 -0
- package/dist/windows-cli-worker.js +109 -14
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +10 -1
- package/dist/windows-cli.js +47 -13
- package/dist/windows-cli.js.map +1 -1
- package/dist/windows-native-mcp.js +5 -2
- package/dist/windows-native-mcp.js.map +1 -1
- package/dist/workflow-templates/default.md +4 -6
- package/launcher/agend-install.cjs +48 -7
- package/package.json +1 -1
- package/templates/runtime-install/install.ps1 +24 -4
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* M-3180: the in-session model / effort switch for CLIs other than codex (codex: codex-model-switch.ts, M-3175), one table entry per
|
|
3
|
+
* CLI. The fleet splits a request into one-command steps; the daemon types a step only into an idle pane of a CLI whose RUNNING binary
|
|
4
|
+
* is at the entry's minimum version, and asks the entry for a verdict on what the CLI shows (or records) after it — against what it
|
|
5
|
+
* showed before the command, so an answer or footer already on screen cannot confirm it. Anything not confirmed is restarted, as before.
|
|
6
|
+
*/
|
|
7
|
+
import { existsSync } from "node:fs";
|
|
8
|
+
import { readdir, readFile, readlink, stat } from "node:fs/promises";
|
|
9
|
+
import { basename, dirname, join } from "node:path";
|
|
10
|
+
import { compareVersions, versionOf } from "../cli-audited.js";
|
|
11
|
+
import { probeBackendVersion } from "../backend-availability.js";
|
|
12
|
+
import { readMuseCachedCatalog } from "./muse.js";
|
|
13
|
+
import { GROK_INLINE_MODEL_MIN, grokSwitchCommand, grokSwitchVerdict } from "./grok-model-switch.js";
|
|
14
|
+
import { readAgyCliEnv } from "./effort-metadata.js";
|
|
15
|
+
import { AGY_INLINE_MODEL_MIN, agySwitchCommand, agySwitchTarget, agySwitchVerdict } from "./agy-model-switch.js";
|
|
16
|
+
import { kiroV2SessionsDir } from "./kiro.js";
|
|
17
|
+
const ONE_TOKEN = /^[A-Za-z0-9][A-Za-z0-9._:/+-]{0,127}$/;
|
|
18
|
+
// ── muse ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
19
|
+
// Rig (scripts/manual/muse-version-audit/switch.sh; 1.4.4, 1.4.6, 1.4.20, 1.4.23, offline): `/model ID` answers `Model set to ID for this session
|
|
20
|
+
// (saved model unchanged)` and keeps the effort; `/effort LEVEL` answers nothing; both show at once in the footer `MODEL · EFFORT · <cwd> · …`.
|
|
21
|
+
// A bad level is refused (`◆ unsupported reasoning effort …`); ANY model id is taken (`/model nosuch-model` too), so the fleet checks the
|
|
22
|
+
// name against muse's catalog first. `/model ID` is a one-command switch from 1.4.6 (1.4.4 answers `◆ model catalog has no visible
|
|
23
|
+
// models`, its picker); `/effort LEVEL` is in 1.4.4 already. The next request carried the switched model and effort (the mock's log).
|
|
24
|
+
const MUSE_EFFORT = /^(?:minimal|low|medium|high|xhigh|max|ultra)$/;
|
|
25
|
+
const MUSE_MODEL_SET = /^ {0,2}Model set to (\S+) for this session \(saved model unchanged\)\s*$/;
|
|
26
|
+
const MUSE_REFUSAL = /^◆ (unsupported reasoning effort .*|model catalog has no visible models.*)$/;
|
|
27
|
+
/** The footer's model and effort: the last `MODEL · EFFORT · …` row. */
|
|
28
|
+
export function museFooter(pane) {
|
|
29
|
+
const rows = pane.replace(/\r/g, "").split("\n");
|
|
30
|
+
for (let i = rows.length - 1; i >= 0; i--) {
|
|
31
|
+
const m = /^\s*(\S+) · (minimal|low|medium|high|xhigh|max|ultra) · /.exec(rows[i]);
|
|
32
|
+
if (m)
|
|
33
|
+
return { model: m[1], effort: m[2] };
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
const count = (pane, re) => pane.replace(/\r/g, "").split("\n").filter(row => re.test(row)).length;
|
|
38
|
+
const newest = (pane, re) => {
|
|
39
|
+
const rows = pane.replace(/\r/g, "").split("\n");
|
|
40
|
+
for (let i = rows.length - 1; i >= 0; i--) {
|
|
41
|
+
const m = re.exec(rows[i]);
|
|
42
|
+
if (m)
|
|
43
|
+
return m;
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
};
|
|
47
|
+
export const MUSE_RUNTIME_SWITCH = {
|
|
48
|
+
minVersion: { model: "1.4.6", effort: "1.4.4" },
|
|
49
|
+
// The launcher (`muse`, a bash script) execs `muse-bin-<version>`: the running process is that file.
|
|
50
|
+
matchExe: exe => /\/muse-bin-\d+\.\d+\.\d+[^/]*$/.test(exe),
|
|
51
|
+
versionFromExe: exe => versionOf(basename(exe).replace(/^muse-bin-/, "")),
|
|
52
|
+
steps: want => want.model !== null && want.effort !== null ? [{ model: want.model, effort: null }, { model: null, effort: want.effort }] : [want],
|
|
53
|
+
command: step => step.model !== null ? (ONE_TOKEN.test(step.model) && step.effort === null ? `/model ${step.model}` : null)
|
|
54
|
+
: step.effort !== null && MUSE_EFFORT.test(step.effort) ? `/effort ${step.effort}` : null,
|
|
55
|
+
// Only muse's own cached catalog can say (its fallback list is a guess): a name it does not list keeps the restart.
|
|
56
|
+
knownModel: model => { const rows = readMuseCachedCatalog(); return rows ? rows.some(row => row.id === model) : null; },
|
|
57
|
+
verify(step, before, now) {
|
|
58
|
+
if (count(now.pane, MUSE_REFUSAL) > count(before.pane, MUSE_REFUSAL))
|
|
59
|
+
return { outcome: "mismatch", shown: newest(now.pane, MUSE_REFUSAL)[1] };
|
|
60
|
+
const footer = museFooter(now.pane);
|
|
61
|
+
if (step.model !== null) {
|
|
62
|
+
// A NEW answer naming the model, and the footer on it: an older answer or footer for the same model is not this switch.
|
|
63
|
+
if (count(now.pane, MUSE_MODEL_SET) <= count(before.pane, MUSE_MODEL_SET))
|
|
64
|
+
return null;
|
|
65
|
+
const set = newest(now.pane, MUSE_MODEL_SET)[1];
|
|
66
|
+
if (set !== step.model)
|
|
67
|
+
return { outcome: "mismatch", shown: set };
|
|
68
|
+
return footer?.model === step.model ? { outcome: "switched", shown: `${footer.model} ${footer.effort}` } : null;
|
|
69
|
+
}
|
|
70
|
+
// The effort has no answer line: the footer is muse's record of it (a level already in force is that level).
|
|
71
|
+
return footer && footer.effort === step.effort ? { outcome: "switched", shown: `${footer.model} ${footer.effort}` } : null;
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
/** Grok: exact fresh model/effort response; transient notices may replace earlier notices. */
|
|
75
|
+
export const GROK_RUNTIME_SWITCH = {
|
|
76
|
+
minVersion: { model: GROK_INLINE_MODEL_MIN, effort: GROK_INLINE_MODEL_MIN },
|
|
77
|
+
matchExe: exe => /\/grok(?:-\d+\.\d+\.\d+[^/]*)?$/.test(exe),
|
|
78
|
+
modelWant: (model, effort) => ({ model, effort }),
|
|
79
|
+
steps: want => [want],
|
|
80
|
+
command: grokSwitchCommand,
|
|
81
|
+
verify: (want, before, now) => grokSwitchVerdict(want, before.pane, now.pane),
|
|
82
|
+
};
|
|
83
|
+
/** agy: exact catalog labels in its fresh command response, captured on 1.4.7 and 1.5.9. */
|
|
84
|
+
export const AGY_RUNTIME_SWITCH = {
|
|
85
|
+
minVersion: { model: AGY_INLINE_MODEL_MIN, effort: AGY_INLINE_MODEL_MIN },
|
|
86
|
+
matchExe: exe => /\/agy$/.test(exe),
|
|
87
|
+
modelWant: (model, effort) => ({ model, effort }),
|
|
88
|
+
steps: want => [want],
|
|
89
|
+
command: want => agySwitchCommand(want, readAgyCliEnv()?.models ?? []),
|
|
90
|
+
knownModel: model => { const env = readAgyCliEnv(); return env ? agySwitchTarget({ model, effort: null }, env.models) !== null : null; },
|
|
91
|
+
verify: (want, before, now) => agySwitchVerdict(want, before.pane, now.pane, readAgyCliEnv()?.models ?? []),
|
|
92
|
+
};
|
|
93
|
+
// ── kiro-cli: the TUI on the v2 engine only (the fleet routes nothing else here; classic and V3 keep the restart) ───────────────
|
|
94
|
+
// Rig (scripts/manual/kiro-switch-audit/switch.sh; 2.30.0, 2.34.0, 3.2.1, 3.3.0; kiro's own KIRO_TEST_MODE model list, no network, no
|
|
95
|
+
// account): `/model ID` and `/effort LEVEL` switch the session at once — the footer `AGENT · MODEL NAME · EFFORT · ◔ N%` shows it, and
|
|
96
|
+
// the session's file (~/.kiro/sessions/cli/<id>.json) records `rts_model_state.model_info.model_id`. Each answers
|
|
97
|
+
// `• Model changed to NAME` / `• Effort set to LEVEL` (3.3.0: `/effort` also adds a deprecation notice). An unknown
|
|
98
|
+
// model or level is refused with a `•` line and nothing changes. `/model ID` puts the effort to that model's default, so the fleet
|
|
99
|
+
// sends the configured effort as a second step (modelWant). The oldest binary checked is 2.30.0: older ones keep the restart.
|
|
100
|
+
const KIRO_EFFORT = /^(?:low|medium|high|xhigh|max)$/;
|
|
101
|
+
const KIRO_REFUSAL = /^• (Model '.*' not found.*|invalid effort level .*|Effort configuration is currently not available.*|Failed to fetch models.*|No options available for \/model.*)$/;
|
|
102
|
+
const kiroRows = (pane) => pane.replace(/\r/g, "").split("\n").map(row => row.replace(/\s{2,}any key to dismiss.*$/, "").trimEnd());
|
|
103
|
+
/** The v2 TUI footer: the last `AGENT · MODEL NAME[ · EFFORT] · ◔ N%` row. */
|
|
104
|
+
export function kiroTuiFooter(pane) {
|
|
105
|
+
const rows = kiroRows(pane);
|
|
106
|
+
for (let i = rows.length - 1; i >= 0; i--) {
|
|
107
|
+
const m = /^(\S+) · (.+?)(?: · (low|medium|high|xhigh|max))? · ◔ \d+%/.exec(rows[i]);
|
|
108
|
+
if (m)
|
|
109
|
+
return { agent: m[1], model: m[2], effort: m[3] ?? null };
|
|
110
|
+
}
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
/** The session file a pane's kiro writes: the `<id>.lock` naming a process of that pane (the TUI's `acp` child holds it). */
|
|
114
|
+
export async function kiroPaneSession(panePid, deps = {}) {
|
|
115
|
+
const dir = deps.sessionsDir ?? kiroV2SessionsDir();
|
|
116
|
+
const pids = await paneProcesses(panePid, deps.procRoot);
|
|
117
|
+
let found = null;
|
|
118
|
+
let names = [];
|
|
119
|
+
try {
|
|
120
|
+
names = (await readdir(dir)).filter(n => /^[A-Za-z0-9-]{8,64}\.lock$/.test(n)).slice(0, 512);
|
|
121
|
+
}
|
|
122
|
+
catch {
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
for (const name of names) {
|
|
126
|
+
try {
|
|
127
|
+
const pid = JSON.parse(await readFile(join(dir, name), "utf8")).pid;
|
|
128
|
+
if (typeof pid !== "number" || !pids.has(pid))
|
|
129
|
+
continue;
|
|
130
|
+
if (found)
|
|
131
|
+
return null; // two: cannot tell which
|
|
132
|
+
found = join(dir, name.replace(/\.lock$/, ".json"));
|
|
133
|
+
}
|
|
134
|
+
catch { /* gone or partial */ }
|
|
135
|
+
}
|
|
136
|
+
return found;
|
|
137
|
+
}
|
|
138
|
+
/** The model and effort a kiro session file records (`rts_model_state`); null when it cannot be read. */
|
|
139
|
+
export async function kiroRecorded(path) {
|
|
140
|
+
try {
|
|
141
|
+
if ((await stat(path)).size > 4 << 20)
|
|
142
|
+
return null;
|
|
143
|
+
const state = JSON.parse(await readFile(path, "utf8"))
|
|
144
|
+
?.session_state?.rts_model_state;
|
|
145
|
+
if (!state)
|
|
146
|
+
return null;
|
|
147
|
+
const model = state.model_info?.model_id, effort = state.additional_fields?.overrides?.output_config?.effort;
|
|
148
|
+
return { model: typeof model === "string" && model ? model : null, effort: typeof effort === "string" && effort ? effort : null };
|
|
149
|
+
}
|
|
150
|
+
catch {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
export const KIRO_RUNTIME_SWITCH = {
|
|
155
|
+
minVersion: { model: "2.30.0", effort: "2.30.0" },
|
|
156
|
+
// 2.x runs `kiro-cli-chat` (beside the `kiro-cli` launcher, which stays its parent); 3.x is the one `kiro-cli` (its `acp` child too).
|
|
157
|
+
matchExe: exe => basename(exe) === "kiro-cli-chat" || (basename(exe) === "kiro-cli" && !existsSync(join(dirname(exe), "kiro-cli-chat"))),
|
|
158
|
+
// `/model ID` puts the effort to the model's default: the configured one (when that model has it) follows as its own step.
|
|
159
|
+
modelWant: (model, effort) => ({ model, effort }),
|
|
160
|
+
steps: want => want.model !== null && want.effort !== null ? [{ model: want.model, effort: null }, { model: null, effort: want.effort }] : [want],
|
|
161
|
+
command: step => step.model !== null ? (ONE_TOKEN.test(step.model) && step.effort === null ? `/model ${step.model}` : null)
|
|
162
|
+
: step.effort !== null && KIRO_EFFORT.test(step.effort) ? `/effort ${step.effort}` : null,
|
|
163
|
+
checkpoint: async (_pane, _cwd, panePid) => panePid ? await kiroPaneSession(panePid) ?? undefined : undefined,
|
|
164
|
+
async verify(step, before, now) {
|
|
165
|
+
// kiro's notices are one overlay row that the next replaces, so a count says nothing: a refusal is new when that exact row was
|
|
166
|
+
// not on screen before the command (the same refusal again cannot be told from the old one: not confirmed, the restart).
|
|
167
|
+
const earlier = new Set(kiroRows(before.pane).filter(row => KIRO_REFUSAL.test(row)));
|
|
168
|
+
const refused = kiroRows(now.pane).filter(row => KIRO_REFUSAL.test(row) && !earlier.has(row)).pop();
|
|
169
|
+
if (refused)
|
|
170
|
+
return { outcome: "mismatch", shown: KIRO_REFUSAL.exec(refused)[1] };
|
|
171
|
+
// The footer shows the model's NAME, so the session's own record (found before the command) has the say: its model id, its
|
|
172
|
+
// effort — and the footer agrees. No record: nothing can confirm it (the fleet restarts).
|
|
173
|
+
const footer = kiroTuiFooter(now.pane);
|
|
174
|
+
const recorded = typeof before.record === "string" ? await kiroRecorded(before.record) : null;
|
|
175
|
+
if (!footer || !recorded)
|
|
176
|
+
return null;
|
|
177
|
+
if (step.model !== null)
|
|
178
|
+
return recorded.model === step.model ? { outcome: "switched", shown: `${recorded.model}${footer.effort ? ` ${footer.effort}` : ""}` } : null;
|
|
179
|
+
return recorded.effort === step.effort && footer.effort === step.effort ? { outcome: "switched", shown: `${recorded.model ?? footer.model} ${step.effort}` } : null;
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
/** The CLIs whose model/effort changes use a verified in-session switch. */
|
|
183
|
+
export const CLI_RUNTIME_SWITCH = Object.freeze({ muse: MUSE_RUNTIME_SWITCH, antigravity: AGY_RUNTIME_SWITCH, grok: GROK_RUNTIME_SWITCH, "kiro-cli": KIRO_RUNTIME_SWITCH });
|
|
184
|
+
export function cliSwitchAllowed(entry, step, version) {
|
|
185
|
+
const v = versionOf(version);
|
|
186
|
+
return v !== null && compareVersions(v, step.model !== null ? entry.minVersion.model : entry.minVersion.effort) >= 0;
|
|
187
|
+
}
|
|
188
|
+
/** The pane's process and every process under it (at most 512), from /proc; empty when /proc cannot be read. */
|
|
189
|
+
export async function paneProcesses(panePid, procRoot = "/proc") {
|
|
190
|
+
let entries = [];
|
|
191
|
+
try {
|
|
192
|
+
entries = await readdir(procRoot);
|
|
193
|
+
}
|
|
194
|
+
catch {
|
|
195
|
+
return new Set();
|
|
196
|
+
}
|
|
197
|
+
const children = new Map();
|
|
198
|
+
for (const e of entries.slice(0, 65536)) {
|
|
199
|
+
if (!/^\d+$/.test(e))
|
|
200
|
+
continue;
|
|
201
|
+
let ppid = null;
|
|
202
|
+
try {
|
|
203
|
+
ppid = Number(/^PPid:\s+(\d+)$/m.exec(await readFile(`${procRoot}/${e}/status`, "utf8"))?.[1] ?? NaN) || null;
|
|
204
|
+
}
|
|
205
|
+
catch { /* gone */ }
|
|
206
|
+
if (ppid !== null)
|
|
207
|
+
children.set(ppid, [...(children.get(ppid) ?? []), Number(e)]);
|
|
208
|
+
}
|
|
209
|
+
const queue = [panePid], seen = new Set();
|
|
210
|
+
while (queue.length && seen.size < 512) {
|
|
211
|
+
const pid = queue.shift();
|
|
212
|
+
if (seen.has(pid))
|
|
213
|
+
continue;
|
|
214
|
+
seen.add(pid);
|
|
215
|
+
queue.push(...(children.get(pid) ?? []));
|
|
216
|
+
}
|
|
217
|
+
return seen;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* The version of the CLI a pane is RUNNING: the pane's process and those under it whose executable `matchExe` accepts, which must be one
|
|
221
|
+
* file that is still the one on disk (an update that replaced it leaves `(deleted)` or another inode: the running one is then unknown);
|
|
222
|
+
* its version from its own name when it carries one, else probeBackendVersion. Null whenever that cannot be proven.
|
|
223
|
+
*/
|
|
224
|
+
export async function cliRunningVersion(panePid, spec, deps = {}) {
|
|
225
|
+
const proc = deps.procRoot ?? "/proc";
|
|
226
|
+
const probe = deps.probe ?? probeBackendVersion;
|
|
227
|
+
const exes = new Set();
|
|
228
|
+
const matched = [];
|
|
229
|
+
for (const pid of await paneProcesses(panePid, proc)) {
|
|
230
|
+
// The pane's own process too: tmux (or its `sh -c`) may exec the CLI itself, which is then the pane pid (a shell never matches).
|
|
231
|
+
let exe;
|
|
232
|
+
try {
|
|
233
|
+
exe = await readlink(`${proc}/${pid}/exe`);
|
|
234
|
+
}
|
|
235
|
+
catch {
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
const deleted = exe.endsWith(" (deleted)");
|
|
239
|
+
if (!spec.matchExe(deleted ? exe.slice(0, -" (deleted)".length) : exe))
|
|
240
|
+
continue;
|
|
241
|
+
if (deleted)
|
|
242
|
+
return null;
|
|
243
|
+
try {
|
|
244
|
+
const [running, onDisk] = await Promise.all([stat(`${proc}/${pid}/exe`), stat(exe)]);
|
|
245
|
+
if (running.ino !== onDisk.ino || running.dev !== onDisk.dev)
|
|
246
|
+
return null;
|
|
247
|
+
matched.push({ pid, exe, ino: running.ino, dev: running.dev });
|
|
248
|
+
}
|
|
249
|
+
catch {
|
|
250
|
+
return null;
|
|
251
|
+
}
|
|
252
|
+
exes.add(exe);
|
|
253
|
+
}
|
|
254
|
+
if (exes.size !== 1)
|
|
255
|
+
return null;
|
|
256
|
+
const exe = [...exes][0];
|
|
257
|
+
const version = spec.versionFromExe?.(exe) ?? versionOf(await probe(spec.backend, exe).catch(() => null));
|
|
258
|
+
if (version === null)
|
|
259
|
+
return null;
|
|
260
|
+
// The async probe may read an updated file at the same path. Never attribute that newer version to the old running inode.
|
|
261
|
+
for (const item of matched) {
|
|
262
|
+
try {
|
|
263
|
+
const [running, onDisk] = await Promise.all([stat(`${proc}/${item.pid}/exe`), stat(item.exe)]);
|
|
264
|
+
if (running.ino !== item.ino || running.dev !== item.dev || onDisk.ino !== item.ino || onDisk.dev !== item.dev)
|
|
265
|
+
return null;
|
|
266
|
+
}
|
|
267
|
+
catch {
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return version;
|
|
272
|
+
}
|
|
273
|
+
//# sourceMappingURL=cli-runtime-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-runtime-switch.js","sourceRoot":"","sources":["../../src/backend/cli-runtime-switch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAClH,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AA8B9C,MAAM,SAAS,GAAG,uCAAuC,CAAC;AAE1D,+HAA+H;AAC/H,kJAAkJ;AAClJ,gJAAgJ;AAChJ,0IAA0I;AAC1I,mIAAmI;AACnI,sIAAsI;AACtI,MAAM,WAAW,GAAG,+CAA+C,CAAC;AACpE,MAAM,cA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C,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC;IACD,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACjC,MAAM,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAE,CAAC;IAC1B,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1G,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAClC,0HAA0H;IAC1H,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC;YACH,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YAC/F,IAAI,OAAO,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,MAAM,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,MAAM,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG;gBAAE,OAAO,IAAI,CAAC;QAC9H,CAAC;QAAC,MAAM,CAAC;YAAC,OAAO,IAAI,CAAC;QAAC,CAAC;IAC1B,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -4,4 +4,5 @@ export declare function stripCodexPassiveHintRow(rows: string[]): void;
|
|
|
4
4
|
export declare function withCodexPassiveHintTail(pattern: RegExp): RegExp;
|
|
5
5
|
export declare const CODEX_EMPTY_PASSIVE_COMPOSER: RegExp;
|
|
6
6
|
export declare const CODEX_STATUS_PASSIVE_COMPOSER: RegExp;
|
|
7
|
+
export declare function codexFooterlessResumeComposer(text: "Ask Codex to do anything" | "/status", sessionId?: string | null): RegExp;
|
|
7
8
|
export declare function isCodexStatusAutocompleteComposer(pane: string): boolean;
|
|
@@ -29,6 +29,21 @@ export function withCodexPassiveHintTail(pattern) {
|
|
|
29
29
|
const passiveComposer = (text) => new RegExp(String.raw `(?:^|\n)[>›][ \t⋆]+${text}[ \t⋆]*\r?\n(?:[ \t⋆]*\r?\n){0,3}${CODEX_PASSIVE_HINT_ROW}(?:\r?\n[ \t⋆]*)*$`, "iu");
|
|
30
30
|
export const CODEX_EMPTY_PASSIVE_COMPOSER = passiveComposer("Ask Codex to do anything");
|
|
31
31
|
export const CODEX_STATUS_PASSIVE_COMPOSER = passiveComposer("/status");
|
|
32
|
+
// #4019: an interrupted native resume can have no footer at all. These exact tails are separate from the general
|
|
33
|
+
// passive-footer grammar. Callers must also prove an owned native resume with the context-only status configuration.
|
|
34
|
+
export function codexFooterlessResumeComposer(text, sessionId) {
|
|
35
|
+
const blank = String.raw `[ \t]*\r?\n`;
|
|
36
|
+
const interrupted = String.raw `(?:^|\n)■ Conversation interrupted - use /feedback if something went wrong[ \t]*\r?\n(?:${blank})*`;
|
|
37
|
+
const prefixes = [interrupted];
|
|
38
|
+
if (sessionId && /^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i.test(sessionId)) {
|
|
39
|
+
// The real once-typed /status replaces the interrupted tail with this metadata report. Unknown menus,
|
|
40
|
+
// extra Session rows and arbitrary footer text cannot borrow it; the expected UUID comes from this owned launch.
|
|
41
|
+
const field = String.raw `[ \t]+(?:Visit https://chatgpt\.com/settings/usage for up-to-date|information on rate limits and credits|(?:Model|Model provider|Directory|Permissions|Agents\.md|Account|Collaboration mode):[ \t]+[^\r\n]+)[ \t]*\r?\n`;
|
|
42
|
+
const usage = String.raw `[ \t]+(?:Monthly limit|Weekly limit|5h limit):[ \t]+[^\r\n]+\r?\n`;
|
|
43
|
+
prefixes.push(String.raw `(?:^|\n)/status[ \t]*\r?\n(?:${blank})*[ \t]+>_ OpenAI Codex \(v[0-9]+\.[0-9]+\.[0-9]+\)[ \t]*\r?\n(?:${blank}|${field})*[ \t]+Session:[ \t]+${sessionId}[ \t]*\r?\n(?:${blank}|${usage})*`);
|
|
44
|
+
}
|
|
45
|
+
return new RegExp(String.raw `(?:${prefixes.join("|")})[>›][ \t]+${text}[ \t]*(?:\r?\n[ \t]*)*$`, "iu");
|
|
46
|
+
}
|
|
32
47
|
// Real 0.165 contextless /status completion replaces the passive footer. This is only the exact selected
|
|
33
48
|
// built-in command plus its one sibling and the same typed command; it is never empty-composer readiness.
|
|
34
49
|
const statusAutocomplete = /(?:^|\n)[>›][ \t]+\/status[ \t]{2,}show current session configuration and token usage[ \t]*\n[ \t]+\/statusline[ \t]{2,}configure which items appear in the status line[ \t]*\n(?:[ \t]*\n){0,3}[>›][ \t]+\/status[ \t]*(?:\n[ \t]*)*$/u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-footer-hints.js","sourceRoot":"","sources":["../../src/backend/codex-footer-hints.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAA,+GAA+G,CAAC;AACvI,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA,2DAA2D,IAAI,EAAE,CAAC;AAC5F,0EAA0E;AAC1E,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA,GAAG,OAAO,OAAO,OAAO,IAAI,CAAC;AACxD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA,MAAM,QAAQ,aAAa,CAAC;AACzD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAA,aAAa,CAAC;AACtC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA,wCAAwC,UAAU,iEAAiE,UAAU,iBAAiB,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AAI,CAAC;IACnI,MAAM,QAAQ,GAAG,CAAC,WAAW,CAAC,CAAC;IAC/B,IAAI,SAAS,IAAI,gDAAgD,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;QAClF,sGAAsG;QACtG,iHAAiH;QACjH,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAA,0NAA0N,CAAC;QACnP,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAA,mEAAmE,CAAC;QAC5F,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAA,gCAAgC,KAAK,oEAAoE,KAAK,IAAI,KAAK,yBAAyB,SAAS,iBAAiB,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC;IACxN,CAAC;IACD,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAA,MAAM,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,IAAI,yBAAyB,EAAE,IAAI,CAAC,CAAC;AACzG,CAAC;AAED,yGAAyG;AACzG,0GAA0G;AAC1G,MAAM,kBAAkB,GAAG,yOAAyO,CAAC;AACrQ,MAAM,UAAU,iCAAiC,CAAC,IAAY;IAC5D,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACrC,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC;WAC/B,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,4CAA4C,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC;WAC7E,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,uFAAuF,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AAChI,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** The first codex release with the inline `/model NAME --reasoning=LEVEL` (openai/codex #54378). */
|
|
2
|
+
export declare const CODEX_INLINE_MODEL_MIN = "0.164.0";
|
|
3
|
+
export declare function codexSupportsInlineModel(version: string | null | undefined): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* The line to type. `model` null: the effort alone, on the model the session runs. `effort` null: the model alone — codex then
|
|
6
|
+
* takes the model's default effort, as a launch without an effort does. Null when either is not something codex parses as one token.
|
|
7
|
+
*/
|
|
8
|
+
export declare function codexModelCommand(model: string | null, effort: string | null): string | null;
|
|
9
|
+
export type CodexPaneSwitch = {
|
|
10
|
+
kind: "switched";
|
|
11
|
+
model: string;
|
|
12
|
+
effort: string;
|
|
13
|
+
} | {
|
|
14
|
+
kind: "refused";
|
|
15
|
+
text: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The newest history entry that is codex's answer to a `/model` line: its `• Model changed to … for this session only`, or a
|
|
19
|
+
* `■ …` refusal. Read from the bottom up to the first entry (a `•`/`■` row above the composer); anything else first → null.
|
|
20
|
+
*/
|
|
21
|
+
export declare function codexSwitchFromPane(pane: string): CodexPaneSwitch | null;
|
|
22
|
+
/** How many of codex's answers to a `/model` line a capture holds (successes and refusals): a new one is ours. */
|
|
23
|
+
export declare function codexSwitchAnswerCount(pane: string): number;
|
|
24
|
+
/** At most `max` bytes of a file from `offset` (a rollout delta), "" when it cannot be read. */
|
|
25
|
+
export declare function readFrom(path: string, offset: number, max: number): Promise<string>;
|
|
26
|
+
/** The last `thread_settings_applied` in rollout lines (a delta read after our checkpoint), or null when none was written. */
|
|
27
|
+
export declare function codexAppliedFromRollout(lines: string): {
|
|
28
|
+
model: string;
|
|
29
|
+
effort: string | null;
|
|
30
|
+
} | null;
|
|
31
|
+
export interface RunningVersionDeps {
|
|
32
|
+
procRoot?: string;
|
|
33
|
+
/** `<exe> --version` → its stdout; production runs the binary with a short timeout. */
|
|
34
|
+
printVersion?: (exe: string) => Promise<string>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The version of the codex a pane is RUNNING: the `codex` processes under the pane's shell, whose executable must still be the
|
|
38
|
+
* file on disk (an update that replaced it leaves `(deleted)` or another inode: the running one is then unknown), asked for its
|
|
39
|
+
* `--version`. Null whenever that cannot be proven: no codex process, more than one executable, a replaced binary, or no version.
|
|
40
|
+
*/
|
|
41
|
+
export declare function codexRunningVersion(panePid: number, deps?: RunningVersionDeps): Promise<string | null>;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* M-3175: codex's in-session model and reasoning switch, `/model NAME --reasoning=LEVEL` (and `/model --reasoning=LEVEL` for the
|
|
3
|
+
* effort alone). It arrived in codex 0.164.0 (openai/codex #54378, 2026-10-15; 0.163.0 does not have it). On an older codex the
|
|
4
|
+
* same line is NOT a command: 0.163.0 sends `/model gpt-… --reasoning=high` to the model as a user prompt (rig, M-3175). So the
|
|
5
|
+
* switch is typed only into a codex whose RUNNING binary is known to be 0.164.0 or later; anything unknown keeps the restart.
|
|
6
|
+
*
|
|
7
|
+
* What codex does with it (0.164.0 … 0.169.0, source and rig): a session-only selection — the thread's settings are updated, the
|
|
8
|
+
* history gains `• Model changed to MODEL EFFORT for this session only`, and the rollout (once it exists) gains an
|
|
9
|
+
* `event_msg` `thread_settings_applied` with the new `model` and `reasoning_effort` at once, even mid-turn. A name or level the
|
|
10
|
+
* model catalog does not list is refused with a `■ …` line and nothing changes. A `/model NAME` WITHOUT `--reasoning` resets the
|
|
11
|
+
* effort to that model's default, so a model switch carries the effort a restart would launch with.
|
|
12
|
+
*/
|
|
13
|
+
import { open, readdir, readFile, readlink, stat } from "node:fs/promises";
|
|
14
|
+
import { promisify } from "node:util";
|
|
15
|
+
import { execFile } from "../child-process.js";
|
|
16
|
+
import { compareVersions, versionOf } from "../cli-audited.js";
|
|
17
|
+
/** The first codex release with the inline `/model NAME --reasoning=LEVEL` (openai/codex #54378). */
|
|
18
|
+
export const CODEX_INLINE_MODEL_MIN = "0.164.0";
|
|
19
|
+
export function codexSupportsInlineModel(version) {
|
|
20
|
+
const v = versionOf(version ?? null);
|
|
21
|
+
return v !== null && compareVersions(v, CODEX_INLINE_MODEL_MIN) >= 0;
|
|
22
|
+
}
|
|
23
|
+
/** A model id codex can be told on one line (its own ids: `gpt-6.1-sol`, `provider/model`); nothing a shell or the TUI parses. */
|
|
24
|
+
const MODEL_ID = /^[A-Za-z0-9][A-Za-z0-9._:/+-]{0,127}$/;
|
|
25
|
+
const EFFORT = /^(?:none|minimal|low|medium|high|xhigh|max|ultra)$/;
|
|
26
|
+
/**
|
|
27
|
+
* The line to type. `model` null: the effort alone, on the model the session runs. `effort` null: the model alone — codex then
|
|
28
|
+
* takes the model's default effort, as a launch without an effort does. Null when either is not something codex parses as one token.
|
|
29
|
+
*/
|
|
30
|
+
export function codexModelCommand(model, effort) {
|
|
31
|
+
if (model !== null && !MODEL_ID.test(model))
|
|
32
|
+
return null;
|
|
33
|
+
if (effort !== null && !EFFORT.test(effort))
|
|
34
|
+
return null;
|
|
35
|
+
if (model === null && effort === null)
|
|
36
|
+
return null;
|
|
37
|
+
return ["/model", ...(model !== null ? [model] : []), ...(effort !== null ? [`--reasoning=${effort}`] : [])].join(" ");
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The newest history entry that is codex's answer to a `/model` line: its `• Model changed to … for this session only`, or a
|
|
41
|
+
* `■ …` refusal. Read from the bottom up to the first entry (a `•`/`■` row above the composer); anything else first → null.
|
|
42
|
+
*/
|
|
43
|
+
export function codexSwitchFromPane(pane) {
|
|
44
|
+
const rows = pane.replace(/\r/g, "").split("\n");
|
|
45
|
+
let i = rows.length - 1;
|
|
46
|
+
while (i >= 0 && !/^\s*›/.test(rows[i]))
|
|
47
|
+
i--; // the composer row
|
|
48
|
+
for (i--; i >= 0; i--) {
|
|
49
|
+
const row = rows[i].trimEnd();
|
|
50
|
+
if (!row.trim())
|
|
51
|
+
continue;
|
|
52
|
+
const ok = /^• Model changed to (\S+) (\S+)(?: \S+)? for this session only$/.exec(row);
|
|
53
|
+
if (ok)
|
|
54
|
+
return { kind: "switched", model: ok[1], effort: ok[2] };
|
|
55
|
+
const refused = /^■ (.+)$/.exec(row);
|
|
56
|
+
if (refused)
|
|
57
|
+
return { kind: "refused", text: refused[1] };
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
/** How many of codex's answers to a `/model` line a capture holds (successes and refusals): a new one is ours. */
|
|
63
|
+
export function codexSwitchAnswerCount(pane) {
|
|
64
|
+
return pane.replace(/\r/g, "").split("\n").filter(row => /^• Model changed to \S+ .* for this session only\s*$|^■ /.test(row)).length;
|
|
65
|
+
}
|
|
66
|
+
/** At most `max` bytes of a file from `offset` (a rollout delta), "" when it cannot be read. */
|
|
67
|
+
export async function readFrom(path, offset, max) {
|
|
68
|
+
let handle;
|
|
69
|
+
try {
|
|
70
|
+
handle = await open(path, "r");
|
|
71
|
+
const buf = Buffer.alloc(max);
|
|
72
|
+
const { bytesRead } = await handle.read(buf, 0, max, offset);
|
|
73
|
+
return buf.subarray(0, bytesRead).toString("utf8");
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
return "";
|
|
77
|
+
}
|
|
78
|
+
finally {
|
|
79
|
+
await handle?.close().catch(() => { });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/** The last `thread_settings_applied` in rollout lines (a delta read after our checkpoint), or null when none was written. */
|
|
83
|
+
export function codexAppliedFromRollout(lines) {
|
|
84
|
+
let last = null;
|
|
85
|
+
for (const line of lines.split("\n")) {
|
|
86
|
+
if (!line.includes("thread_settings_applied"))
|
|
87
|
+
continue;
|
|
88
|
+
try {
|
|
89
|
+
const d = JSON.parse(line);
|
|
90
|
+
const s = d.type === "event_msg" && d.payload?.type === "thread_settings_applied" ? d.payload.thread_settings : undefined;
|
|
91
|
+
if (s && typeof s.model === "string")
|
|
92
|
+
last = { model: s.model, effort: typeof s.reasoning_effort === "string" ? s.reasoning_effort : null };
|
|
93
|
+
}
|
|
94
|
+
catch { /* a partial last line */ }
|
|
95
|
+
}
|
|
96
|
+
return last;
|
|
97
|
+
}
|
|
98
|
+
const execFileP = promisify(execFile);
|
|
99
|
+
/**
|
|
100
|
+
* The version of the codex a pane is RUNNING: the `codex` processes under the pane's shell, whose executable must still be the
|
|
101
|
+
* file on disk (an update that replaced it leaves `(deleted)` or another inode: the running one is then unknown), asked for its
|
|
102
|
+
* `--version`. Null whenever that cannot be proven: no codex process, more than one executable, a replaced binary, or no version.
|
|
103
|
+
*/
|
|
104
|
+
export async function codexRunningVersion(panePid, deps = {}) {
|
|
105
|
+
const proc = deps.procRoot ?? "/proc";
|
|
106
|
+
const printVersion = deps.printVersion ?? (async (exe) => (await execFileP(exe, ["--version"], { timeout: 5000, maxBuffer: 64 * 1024 })).stdout);
|
|
107
|
+
const parentOf = async (pid) => {
|
|
108
|
+
try {
|
|
109
|
+
return Number(/^PPid:\s+(\d+)$/m.exec(await readFile(`${proc}/${pid}/status`, "utf8"))?.[1] ?? NaN) || null;
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
let entries = [];
|
|
116
|
+
try {
|
|
117
|
+
entries = await readdir(proc);
|
|
118
|
+
}
|
|
119
|
+
catch {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
const children = new Map();
|
|
123
|
+
for (const e of entries.slice(0, 65536)) {
|
|
124
|
+
if (!/^\d+$/.test(e))
|
|
125
|
+
continue;
|
|
126
|
+
const ppid = await parentOf(Number(e));
|
|
127
|
+
if (ppid !== null)
|
|
128
|
+
children.set(ppid, [...(children.get(ppid) ?? []), Number(e)]);
|
|
129
|
+
}
|
|
130
|
+
const exes = new Set();
|
|
131
|
+
const queue = [panePid], seen = new Set();
|
|
132
|
+
while (queue.length && seen.size < 512) {
|
|
133
|
+
const pid = queue.shift();
|
|
134
|
+
if (seen.has(pid))
|
|
135
|
+
continue;
|
|
136
|
+
seen.add(pid);
|
|
137
|
+
queue.push(...(children.get(pid) ?? []));
|
|
138
|
+
if (pid === panePid)
|
|
139
|
+
continue;
|
|
140
|
+
let exe;
|
|
141
|
+
try {
|
|
142
|
+
exe = await readlink(`${proc}/${pid}/exe`);
|
|
143
|
+
}
|
|
144
|
+
catch {
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
if (!/\/codex(?: \(deleted\))?$/.test(exe))
|
|
148
|
+
continue;
|
|
149
|
+
if (exe.endsWith(" (deleted)"))
|
|
150
|
+
return null;
|
|
151
|
+
try {
|
|
152
|
+
const [running, onDisk] = await Promise.all([stat(`${proc}/${pid}/exe`), stat(exe)]);
|
|
153
|
+
if (running.ino !== onDisk.ino || running.dev !== onDisk.dev)
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
catch {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
exes.add(exe);
|
|
160
|
+
}
|
|
161
|
+
if (exes.size !== 1)
|
|
162
|
+
return null;
|
|
163
|
+
try {
|
|
164
|
+
return versionOf(await printVersion([...exes][0]));
|
|
165
|
+
}
|
|
166
|
+
catch {
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=codex-model-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-model-switch.js","sourceRoot":"","sources":["../../src/backend/codex-model-switch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE/D,qGAAqG;AACrG,MAAM,CAAC,MAAM,sBAAsB,GAAG,SAAS,CAAC;AAEhD,MAAM,UAAU,wBAAwB,CAAC,OAAkC;IACzE,MAAM,CAAC,GAAG,SAAS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AAG,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACrF,IAAI,OAAO,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG;gBAAE,OAAO,IAAI,CAAC;QAC5E,CAAC;QAAC,MAAM,CAAC;YAAC,OAAO,IAAI,CAAC;QAAC,CAAC;QACxB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC;IACD,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACjC,IAAI,CAAC;QAAC,OAAO,SAAS,CAAC,MAAM,YAAY,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC;QAAC,OAAO,IAAI,CAAC;IAAC,CAAC;AACrF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RemoteQuestionCard } from "./types.js";
|
|
2
|
+
export type CodexPrecautionStage = "root" | "stopped" | "confirmation" | "report";
|
|
3
|
+
export interface CodexPrecaution {
|
|
4
|
+
stage: CodexPrecautionStage;
|
|
5
|
+
card: RemoteQuestionCard;
|
|
6
|
+
}
|
|
7
|
+
export declare function codexPrecaution(pane: string): CodexPrecaution | null;
|