@songsid/agend 2.4.0-beta.3 → 2.4.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/README.zh-TW.md +11 -1
- 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/agend-home.js +5 -5
- package/dist/agend-home.js.map +1 -1
- package/dist/agent-cli-instructions.md +19 -7
- package/dist/agent-cli.js +199 -51
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.d.ts +5 -1
- package/dist/agent-endpoint.js +62 -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-file-read.js +3 -3
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-whats-new.js +35 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/agent-workspace.d.ts +18 -2
- package/dist/agent-workspace.js +15 -4
- package/dist/agent-workspace.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 +12 -0
- package/dist/auth-api.js +87 -5
- 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 +28 -4
- package/dist/authority/web-authority.js +67 -4
- 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 +121 -13
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-carry.d.ts +11 -0
- package/dist/backend/claude-carry.js +88 -6
- package/dist/backend/claude-carry.js.map +1 -1
- package/dist/backend/claude-code.d.ts +39 -7
- package/dist/backend/claude-code.js +234 -32
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/claude-mcp-carry.d.ts +63 -0
- package/dist/backend/claude-mcp-carry.js +242 -0
- package/dist/backend/claude-mcp-carry.js.map +1 -0
- 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/claude-usage-credits.d.ts +8 -0
- package/dist/backend/claude-usage-credits.js +121 -0
- package/dist/backend/claude-usage-credits.js.map +1 -0
- 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/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-auth-store.d.ts +15 -2
- package/dist/backend/kiro-auth-store.js +64 -0
- package/dist/backend/kiro-auth-store.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 +59 -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/cache-ledger.d.ts +23 -21
- package/dist/cache-ledger.js +70 -6
- package/dist/cache-ledger.js.map +1 -1
- package/dist/cache-prices.d.ts +8 -6
- package/dist/cache-prices.js +12 -5
- package/dist/cache-prices.js.map +1 -1
- package/dist/cache-service.d.ts +9 -5
- package/dist/cache-service.js +202 -50
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +23 -1
- package/dist/channel/adapters/discord.js +97 -26
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +2 -0
- package/dist/channel/adapters/telegram.js +9 -4
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/ipc-bridge.d.ts +7 -0
- package/dist/channel/ipc-bridge.js +45 -11
- package/dist/channel/ipc-bridge.js.map +1 -1
- package/dist/channel/mcp-server.js +39 -5
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.d.ts +27 -1
- package/dist/channel/mcp-tools.js +107 -14
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/tool-router.d.ts +4 -0
- package/dist/channel/tool-router.js +51 -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/claude-turn-boundaries.d.ts +15 -0
- package/dist/claude-turn-boundaries.js +88 -0
- package/dist/claude-turn-boundaries.js.map +1 -0
- package/dist/cli-audited.js +30 -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 +231 -24
- 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 +69 -3
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +17 -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 +90 -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 +110 -0
- package/dist/contact-auth-service.js.map +1 -0
- package/dist/contact-auth-store.d.ts +149 -0
- package/dist/contact-auth-store.js +573 -0
- package/dist/contact-auth-store.js.map +1 -0
- package/dist/contact-auth-types.d.ts +202 -0
- package/dist/contact-auth-types.js +7 -0
- package/dist/contact-auth-types.js.map +1 -0
- package/dist/contact-change-proposals.d.ts +98 -0
- package/dist/contact-change-proposals.js +166 -0
- package/dist/contact-change-proposals.js.map +1 -0
- package/dist/contact-state-view.d.ts +103 -0
- package/dist/contact-state-view.js +80 -0
- package/dist/contact-state-view.js.map +1 -0
- package/dist/cross-instance-notice.d.ts +1 -0
- package/dist/cross-instance-notice.js +9 -8
- package/dist/cross-instance-notice.js.map +1 -1
- package/dist/daemon.d.ts +249 -3
- package/dist/daemon.js +1730 -181
- 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 +23 -8
- package/dist/dashboard-permissions.js +33 -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 +213 -10
- package/dist/delivery-outbox.js +664 -49
- 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/detached-fleet-stop.d.ts +40 -0
- package/dist/detached-fleet-stop.js +126 -0
- package/dist/detached-fleet-stop.js.map +1 -0
- 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 +12 -0
- package/dist/event-log.js +40 -0
- package/dist/event-log.js.map +1 -1
- package/dist/fleet-context.d.ts +9 -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-lock.d.ts +88 -2
- package/dist/fleet-lock.js +296 -3
- package/dist/fleet-lock.js.map +1 -1
- package/dist/fleet-manager.d.ts +1399 -29
- package/dist/fleet-manager.js +8192 -619
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +59 -4
- package/dist/fleet-windows-runtime.js +307 -40
- 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/admin/SKILL.md +52 -0
- package/dist/general-knowledge/skills/concepts/SKILL.md +106 -23
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +19 -1
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +68 -1
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +24 -4
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +9 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +393 -27
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +6 -2
- 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 +98 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +35 -3
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +391 -70
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +7 -1
- 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 +2 -0
- package/dist/general-role.js.map +1 -1
- package/dist/home-update-lock.d.ts +35 -0
- package/dist/home-update-lock.js +81 -0
- package/dist/home-update-lock.js.map +1 -0
- package/dist/host-memory.d.ts +24 -1
- package/dist/host-memory.js +30 -4
- 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 +123 -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/admission.d.ts +2 -0
- package/dist/hub/admission.js +13 -0
- package/dist/hub/admission.js.map +1 -1
- 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 +130 -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/agent-pictures-model.d.ts +275 -0
- package/dist/hub/agent-pictures-model.js +103 -0
- package/dist/hub/agent-pictures-model.js.map +1 -0
- package/dist/hub/agent-pictures.d.ts +64 -0
- package/dist/hub/agent-pictures.js +256 -0
- package/dist/hub/agent-pictures.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 +102 -27
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +30 -0
- package/dist/hub/client.js +293 -14
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +67 -9
- package/dist/hub/compose/member.js +423 -36
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +30 -5
- package/dist/hub/compose/server.js +140 -20
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/direct-posts-model.d.ts +1 -0
- package/dist/hub/direct-posts-model.js +2 -0
- package/dist/hub/direct-posts-model.js.map +1 -0
- package/dist/hub/direct-posts.d.ts +36 -0
- package/dist/hub/direct-posts.js +145 -0
- package/dist/hub/direct-posts.js.map +1 -0
- package/dist/hub/directory/directory.js +27 -7
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/types.d.ts +10 -4
- 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 +284 -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 +81 -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 +17 -0
- package/dist/hub/http/compose.js +903 -100
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.d.ts +11 -1
- package/dist/hub/http/core.js +70 -10
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +21 -0
- package/dist/hub/http/schema.js +54 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/identity.d.ts +2 -0
- package/dist/hub/identity.js +5 -2
- package/dist/hub/identity.js.map +1 -1
- package/dist/hub/init/text.js +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 +9 -1
- package/dist/hub/join/service.js +17 -3
- 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/agent-pictures.d.ts +76 -0
- package/dist/hub/member/agent-pictures.js +196 -0
- package/dist/hub/member/agent-pictures.js.map +1 -0
- package/dist/hub/member/direct-rooms.d.ts +9 -0
- package/dist/hub/member/direct-rooms.js +14 -0
- package/dist/hub/member/direct-rooms.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 +104 -6
- package/dist/hub/member/room-ask.js +505 -34
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-asker-store.d.ts +48 -0
- package/dist/hub/member/room-asker-store.js +181 -0
- package/dist/hub/member/room-asker-store.js.map +1 -0
- 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 +46 -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 +48 -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 +144 -0
- package/dist/hub/member/room-post.js +339 -0
- package/dist/hub/member/room-post.js.map +1 -0
- package/dist/hub/member/room-reaction-acks.d.ts +12 -0
- package/dist/hub/member/room-reaction-acks.js +44 -0
- package/dist/hub/member/room-reaction-acks.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 +98 -0
- package/dist/hub/member/updates.js +322 -0
- package/dist/hub/member/updates.js.map +1 -0
- package/dist/hub/member-journal.d.ts +6 -0
- package/dist/hub/member-journal.js +36 -0
- package/dist/hub/member-journal.js.map +1 -1
- 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 +15 -4
- package/dist/hub/policy.js +110 -24
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +1481 -49
- package/dist/hub/protocol.js +130 -17
- 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/question-close-model.d.ts +17 -0
- package/dist/hub/question-close-model.js +7 -0
- package/dist/hub/question-close-model.js.map +1 -0
- package/dist/hub/quota.d.ts +2 -2
- package/dist/hub/quota.js +9 -5
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/read-statement.d.ts +6 -0
- package/dist/hub/read-statement.js +33 -0
- package/dist/hub/read-statement.js.map +1 -0
- 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 +212 -0
- package/dist/hub/recommendations.js.map +1 -0
- package/dist/hub/representative.d.ts +59 -0
- package/dist/hub/representative.js +261 -20
- 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 +146 -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 +20 -3
- package/dist/hub/roles/authority.js +165 -87
- 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 +4 -1
- package/dist/hub/roles/clock.js +15 -12
- 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-clock-facts.d.ts +13 -0
- package/dist/hub/roles/cutover-clock-facts.js +25 -0
- package/dist/hub/roles/cutover-clock-facts.js.map +1 -0
- 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 +9 -4
- 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 +30 -2
- package/dist/hub/roles/model.js +14 -7
- 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/read.d.ts +4 -0
- package/dist/hub/roles/read.js +37 -7
- package/dist/hub/roles/read.js.map +1 -1
- 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-asker-identity-model.d.ts +53 -0
- package/dist/hub/room-asker-identity-model.js +14 -0
- package/dist/hub/room-asker-identity-model.js.map +1 -0
- package/dist/hub/room-asker-identity.d.ts +22 -0
- package/dist/hub/room-asker-identity.js +43 -0
- package/dist/hub/room-asker-identity.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-history-model.d.ts +87 -0
- package/dist/hub/room-history-model.js +14 -0
- package/dist/hub/room-history-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/room-react-ack-model.d.ts +2 -0
- package/dist/hub/room-react-ack-model.js +3 -0
- package/dist/hub/room-react-ack-model.js.map +1 -0
- package/dist/hub/rooms/admin.d.ts +6 -0
- package/dist/hub/rooms/admin.js +33 -0
- package/dist/hub/rooms/admin.js.map +1 -1
- package/dist/hub/rooms/agents.d.ts +52 -11
- package/dist/hub/rooms/agents.js +418 -37
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/asker-identity.d.ts +21 -0
- package/dist/hub/rooms/asker-identity.js +86 -0
- package/dist/hub/rooms/asker-identity.js.map +1 -0
- 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 +12 -3
- package/dist/hub/rooms/direct-view.js +26 -10
- 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/history.d.ts +8 -0
- package/dist/hub/rooms/history.js +31 -0
- package/dist/hub/rooms/history.js.map +1 -0
- 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 +141 -0
- package/dist/hub/rooms/office.js +81 -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 +16 -0
- package/dist/hub/rooms/schema.js +56 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +400 -8
- package/dist/hub/rooms/service.js +1231 -72
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +48 -4
- package/dist/hub/rooms.d.ts +33 -6
- package/dist/hub/rooms.js +236 -51
- 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/send-timing.d.ts +6 -0
- package/dist/hub/send-timing.js +39 -0
- package/dist/hub/send-timing.js.map +1 -0
- package/dist/hub/server.d.ts +8 -1
- package/dist/hub/server.js +187 -7
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +3 -1
- package/dist/hub/session-directory-transition.js +25 -12
- package/dist/hub/session-directory-transition.js.map +1 -1
- package/dist/hub/session-epoch.js +2 -1
- package/dist/hub/session-epoch.js.map +1 -1
- package/dist/hub/session-limits.d.ts +58 -0
- package/dist/hub/session-limits.js +121 -0
- package/dist/hub/session-limits.js.map +1 -0
- package/dist/hub/sessions.d.ts +5 -2
- package/dist/hub/sessions.js +84 -12
- 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-decision.js +15 -8
- package/dist/hub/settings-directory-decision.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/settings-member-address-decision.js +3 -2
- package/dist/hub/settings-member-address-decision.js.map +1 -1
- package/dist/hub/settings-web-address-decision.js +2 -1
- package/dist/hub/settings-web-address-decision.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/store.d.ts +5 -0
- package/dist/hub/store.js +28 -5
- package/dist/hub/store.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 +176 -5
- package/dist/hub-agent-incarnation-record.d.ts +24 -0
- package/dist/hub-agent-incarnation-record.js +46 -0
- package/dist/hub-agent-incarnation-record.js.map +1 -0
- package/dist/hub-character-plan.d.ts +47 -0
- package/dist/hub-character-plan.js +70 -0
- package/dist/hub-character-plan.js.map +1 -0
- 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 +23 -0
- package/dist/hub-contact-windows.js +89 -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-picture-reduce.d.ts +34 -0
- package/dist/hub-picture-reduce.js +101 -0
- package/dist/hub-picture-reduce.js.map +1 -0
- package/dist/hub-picture-worker.d.ts +1 -0
- package/dist/hub-picture-worker.js +19 -0
- package/dist/hub-picture-worker.js.map +1 -0
- package/dist/hub-report-target.d.ts +6 -0
- package/dist/hub-report-target.js +6 -0
- package/dist/hub-report-target.js.map +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.d.ts +27 -5
- package/dist/human-delivery-receipts.js +52 -8
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/install-lock.d.ts +15 -1
- package/dist/install-lock.js +16 -8
- package/dist/install-lock.js.map +1 -1
- package/dist/install-ownership.d.ts +165 -0
- package/dist/install-ownership.js +404 -0
- package/dist/install-ownership.js.map +1 -0
- package/dist/instance-config-impact.js +7 -2
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +32 -4
- package/dist/instance-lifecycle.js +111 -25
- 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 +40 -2
- package/dist/instructions.js +68 -34
- package/dist/instructions.js.map +1 -1
- package/dist/local-pane-endpoint.d.ts +18 -1
- package/dist/local-pane-endpoint.js +44 -2
- package/dist/local-pane-endpoint.js.map +1 -1
- package/dist/locale.d.ts +2 -0
- package/dist/locale.js +956 -295
- 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/ls-rows.d.ts +2 -0
- package/dist/ls-rows.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/memory-pressure.js +8 -1
- package/dist/memory-pressure.js.map +1 -1
- 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-agent-admission.d.ts +7 -0
- package/dist/native-agent-admission.js +55 -3
- package/dist/native-agent-admission.js.map +1 -1
- package/dist/native-exec-context.d.ts +11 -0
- package/dist/native-exec-context.js +18 -0
- package/dist/native-exec-context.js.map +1 -0
- package/dist/native-exec-input.d.ts +56 -0
- package/dist/native-exec-input.js +89 -0
- package/dist/native-exec-input.js.map +1 -0
- package/dist/native-mcp.d.ts +26 -1
- package/dist/native-mcp.js +85 -18
- 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.d.ts +12 -0
- package/dist/native-pane-lifecycle.js +28 -2
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/native-pane-manager.d.ts +37 -6
- package/dist/native-pane-manager.js +160 -8
- package/dist/native-pane-manager.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 +7 -0
- package/dist/needs-you-hub.js +48 -7
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +66 -2
- package/dist/needs-you.js +26 -1
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +5 -5
- package/dist/office-share-page.js.map +1 -1
- package/dist/office-share.js +2 -1
- package/dist/office-share.js.map +1 -1
- package/dist/outbound-handlers.d.ts +49 -4
- package/dist/outbound-handlers.js +263 -20
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +44 -0
- package/dist/outbound-schemas.js +56 -30
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/package-preimage.js +4 -0
- package/dist/package-preimage.js.map +1 -1
- package/dist/pane-port.d.ts +3 -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/plist-args.d.ts +9 -0
- package/dist/plist-args.js +22 -0
- package/dist/plist-args.js.map +1 -0
- 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-preview.d.ts +4 -6
- package/dist/public-preview.js +5 -2
- package/dist/public-preview.js.map +1 -1
- package/dist/public-web-gateway.d.ts +20 -0
- package/dist/public-web-gateway.js +262 -9
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +34 -3
- package/dist/public-web-link.js +50 -3
- 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/recover.cjs +2639 -0
- 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 +7 -2
- package/dist/remote-card-prompt.js +13 -4
- package/dist/remote-card-prompt.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +3 -1
- package/dist/reply-buttons-controller.js +1 -1
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/reply-dedup.js +3 -1
- package/dist/reply-dedup.js.map +1 -1
- package/dist/reply-draft.d.ts +12 -0
- package/dist/reply-draft.js +81 -0
- package/dist/reply-draft.js.map +1 -0
- 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/request-contact-api.d.ts +15 -0
- package/dist/request-contact-api.js +120 -0
- package/dist/request-contact-api.js.map +1 -0
- package/dist/request-contact-card.d.ts +36 -0
- package/dist/request-contact-card.js +206 -0
- package/dist/request-contact-card.js.map +1 -0
- package/dist/request-contact-gate.d.ts +81 -0
- package/dist/request-contact-gate.js +267 -0
- package/dist/request-contact-gate.js.map +1 -0
- package/dist/request-contact-native.d.ts +52 -0
- package/dist/request-contact-native.js +87 -0
- package/dist/request-contact-native.js.map +1 -0
- package/dist/request-contact-types.d.ts +86 -0
- package/dist/request-contact-types.js +7 -0
- package/dist/request-contact-types.js.map +1 -0
- package/dist/request-context-activation.d.ts +29 -0
- package/dist/request-context-activation.js +85 -0
- package/dist/request-context-activation.js.map +1 -0
- package/dist/request-context-admission.d.ts +22 -0
- package/dist/request-context-admission.js +12 -0
- package/dist/request-context-admission.js.map +1 -0
- package/dist/request-context-boot.d.ts +35 -0
- package/dist/request-context-boot.js +97 -0
- package/dist/request-context-boot.js.map +1 -0
- package/dist/request-context-call-protocol.d.ts +12 -0
- package/dist/request-context-call-protocol.js +14 -0
- package/dist/request-context-call-protocol.js.map +1 -0
- package/dist/request-context-call.d.ts +25 -0
- package/dist/request-context-call.js +35 -0
- package/dist/request-context-call.js.map +1 -0
- package/dist/request-context-compatibility.d.ts +20 -0
- package/dist/request-context-compatibility.js +82 -0
- package/dist/request-context-compatibility.js.map +1 -0
- package/dist/request-context-continuation.d.ts +6 -0
- package/dist/request-context-continuation.js +24 -0
- package/dist/request-context-continuation.js.map +1 -0
- package/dist/request-context-control-api.d.ts +119 -0
- package/dist/request-context-control-api.js +179 -0
- package/dist/request-context-control-api.js.map +1 -0
- package/dist/request-context-control-copy.d.ts +3 -0
- package/dist/request-context-control-copy.js +7 -0
- package/dist/request-context-control-copy.js.map +1 -0
- package/dist/request-context-controller.d.ts +44 -0
- package/dist/request-context-controller.js +129 -0
- package/dist/request-context-controller.js.map +1 -0
- package/dist/request-context-delivery-resolver.d.ts +13 -0
- package/dist/request-context-delivery-resolver.js +30 -0
- package/dist/request-context-delivery-resolver.js.map +1 -0
- package/dist/request-context-drain-projection.d.ts +8 -0
- package/dist/request-context-drain-projection.js +40 -0
- package/dist/request-context-drain-projection.js.map +1 -0
- package/dist/request-context-drain.d.ts +61 -0
- package/dist/request-context-drain.js +291 -0
- package/dist/request-context-drain.js.map +1 -0
- package/dist/request-context-enable-offer.d.ts +13 -0
- package/dist/request-context-enable-offer.js +31 -0
- package/dist/request-context-enable-offer.js.map +1 -0
- package/dist/request-context-exec-owner.d.ts +39 -0
- package/dist/request-context-exec-owner.js +128 -0
- package/dist/request-context-exec-owner.js.map +1 -0
- package/dist/request-context-fence.d.ts +28 -0
- package/dist/request-context-fence.js +58 -0
- package/dist/request-context-fence.js.map +1 -0
- package/dist/request-context-go-back-view.d.ts +1 -0
- package/dist/request-context-go-back-view.js +17 -0
- package/dist/request-context-go-back-view.js.map +1 -0
- package/dist/request-context-helper-readiness.d.ts +14 -0
- package/dist/request-context-helper-readiness.js +23 -0
- package/dist/request-context-helper-readiness.js.map +1 -0
- package/dist/request-context-helper.d.ts +20 -0
- package/dist/request-context-helper.js +41 -0
- package/dist/request-context-helper.js.map +1 -0
- package/dist/request-context-hub-resolver.d.ts +29 -0
- package/dist/request-context-hub-resolver.js +90 -0
- package/dist/request-context-hub-resolver.js.map +1 -0
- package/dist/request-context-human-resolver.d.ts +20 -0
- package/dist/request-context-human-resolver.js +77 -0
- package/dist/request-context-human-resolver.js.map +1 -0
- package/dist/request-context-human.d.ts +112 -0
- package/dist/request-context-human.js +176 -0
- package/dist/request-context-human.js.map +1 -0
- package/dist/request-context-inputs.d.ts +21 -0
- package/dist/request-context-inputs.js +63 -0
- package/dist/request-context-inputs.js.map +1 -0
- package/dist/request-context-installation.d.ts +117 -0
- package/dist/request-context-installation.js +328 -0
- package/dist/request-context-installation.js.map +1 -0
- package/dist/request-context-knowledge.d.ts +5 -0
- package/dist/request-context-knowledge.js +32 -0
- package/dist/request-context-knowledge.js.map +1 -0
- package/dist/request-context-migration.d.ts +75 -0
- package/dist/request-context-migration.js +171 -0
- package/dist/request-context-migration.js.map +1 -0
- package/dist/request-context-native-human.d.ts +20 -0
- package/dist/request-context-native-human.js +91 -0
- package/dist/request-context-native-human.js.map +1 -0
- package/dist/request-context-native-output.d.ts +15 -0
- package/dist/request-context-native-output.js +46 -0
- package/dist/request-context-native-output.js.map +1 -0
- package/dist/request-context-native-result.d.ts +15 -0
- package/dist/request-context-native-result.js +46 -0
- package/dist/request-context-native-result.js.map +1 -0
- package/dist/request-context-off.d.ts +22 -0
- package/dist/request-context-off.js +77 -0
- package/dist/request-context-off.js.map +1 -0
- package/dist/request-context-outside-label.d.ts +5 -0
- package/dist/request-context-outside-label.js +28 -0
- package/dist/request-context-outside-label.js.map +1 -0
- package/dist/request-context-pane.d.ts +33 -0
- package/dist/request-context-pane.js +67 -0
- package/dist/request-context-pane.js.map +1 -0
- package/dist/request-context-pending-work.d.ts +11 -0
- package/dist/request-context-pending-work.js +43 -0
- package/dist/request-context-pending-work.js.map +1 -0
- package/dist/request-context-policy.d.ts +90 -0
- package/dist/request-context-policy.js +194 -0
- package/dist/request-context-policy.js.map +1 -0
- package/dist/request-context-protocol.d.ts +137 -0
- package/dist/request-context-protocol.js +38 -0
- package/dist/request-context-protocol.js.map +1 -0
- package/dist/request-context-readiness.d.ts +49 -0
- package/dist/request-context-readiness.js +64 -0
- package/dist/request-context-readiness.js.map +1 -0
- package/dist/request-context-recovery.d.ts +18 -0
- package/dist/request-context-recovery.js +81 -0
- package/dist/request-context-recovery.js.map +1 -0
- package/dist/request-context-relay.d.ts +19 -0
- package/dist/request-context-relay.js +63 -0
- package/dist/request-context-relay.js.map +1 -0
- package/dist/request-context-reply-pending.d.ts +16 -0
- package/dist/request-context-reply-pending.js +77 -0
- package/dist/request-context-reply-pending.js.map +1 -0
- package/dist/request-context-resolution.d.ts +35 -0
- package/dist/request-context-resolution.js +86 -0
- package/dist/request-context-resolution.js.map +1 -0
- package/dist/request-context-retirement.d.ts +21 -0
- package/dist/request-context-retirement.js +16 -0
- package/dist/request-context-retirement.js.map +1 -0
- package/dist/request-context-returns.d.ts +67 -0
- package/dist/request-context-returns.js +211 -0
- package/dist/request-context-returns.js.map +1 -0
- package/dist/request-context-start.d.ts +15 -0
- package/dist/request-context-start.js +2 -0
- package/dist/request-context-start.js.map +1 -0
- package/dist/request-context-store.d.ts +26 -0
- package/dist/request-context-store.js +144 -0
- package/dist/request-context-store.js.map +1 -0
- package/dist/request-context-turns.d.ts +99 -0
- package/dist/request-context-turns.js +216 -0
- package/dist/request-context-turns.js.map +1 -0
- package/dist/request-context-unproved-label.d.ts +4 -0
- package/dist/request-context-unproved-label.js +25 -0
- package/dist/request-context-unproved-label.js.map +1 -0
- package/dist/request-context-update-guard.d.ts +15 -0
- package/dist/request-context-update-guard.js +54 -0
- package/dist/request-context-update-guard.js.map +1 -0
- package/dist/request-context-view.d.ts +33 -0
- package/dist/request-context-view.js +36 -0
- package/dist/request-context-view.js.map +1 -0
- package/dist/request-context-work.d.ts +50 -0
- package/dist/request-context-work.js +178 -0
- package/dist/request-context-work.js.map +1 -0
- package/dist/request-hub-context.d.ts +131 -0
- package/dist/request-hub-context.js +89 -0
- package/dist/request-hub-context.js.map +1 -0
- package/dist/request-hub-output.d.ts +13 -0
- package/dist/request-hub-output.js +33 -0
- package/dist/request-hub-output.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/retained-human-control.d.ts +11 -0
- package/dist/retained-human-control.js +11 -0
- package/dist/retained-human-control.js.map +1 -0
- 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 +20 -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 +35 -1
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +6 -0
- package/dist/runtime-client.js +63 -15
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +31 -3
- package/dist/runtime-coordinator.js +145 -12
- 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-assets.d.ts +1 -1
- package/dist/runtime-pane-assets.js +1 -1
- package/dist/runtime-pane-assets.js.map +1 -1
- package/dist/runtime-pane-host.d.ts +3 -0
- package/dist/runtime-pane-host.js +39 -21
- package/dist/runtime-pane-host.js.map +1 -1
- package/dist/runtime-pane-link.d.ts +6 -2
- package/dist/runtime-pane-link.js +17 -4
- package/dist/runtime-pane-link.js.map +1 -1
- package/dist/runtime-pane-mcp-relay.d.ts +11 -1
- package/dist/runtime-pane-mcp-relay.js +69 -3
- package/dist/runtime-pane-mcp-relay.js.map +1 -1
- package/dist/runtime-pane-mcp.d.ts +37 -1
- package/dist/runtime-pane-mcp.js +120 -19
- 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-pane-port.d.ts +6 -0
- package/dist/runtime-pane-port.js +23 -4
- package/dist/runtime-pane-port.js.map +1 -1
- package/dist/runtime-pane-protocol.d.ts +4 -0
- package/dist/runtime-pane-protocol.js +11 -4
- package/dist/runtime-pane-protocol.js.map +1 -1
- package/dist/runtime-pane-service.d.ts +1 -0
- package/dist/runtime-pane-service.js +25 -9
- package/dist/runtime-pane-service.js.map +1 -1
- package/dist/runtime-pane-stdio-protocol.d.ts +4 -0
- package/dist/runtime-pane-stdio-protocol.js +12 -5
- package/dist/runtime-pane-stdio-protocol.js.map +1 -1
- package/dist/runtime-pane-stdio.js +5 -5
- package/dist/runtime-pane-stdio.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 +7 -0
- package/dist/runtime-protocol.js.map +1 -1
- package/dist/runtime-update-controller.js +1 -1
- package/dist/runtime-update-controller.js.map +1 -1
- package/dist/runtime-windows-bridge.d.ts +8 -0
- package/dist/runtime-windows-bridge.js +50 -3
- package/dist/runtime-windows-bridge.js.map +1 -1
- package/dist/scheduler/db.js +37 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/scheduler.d.ts +15 -0
- package/dist/scheduler/scheduler.js +45 -1
- package/dist/scheduler/scheduler.js.map +1 -1
- package/dist/scheduler/scheduler.test.js +17 -0
- package/dist/scheduler/scheduler.test.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.d.ts +5 -6
- package/dist/scheduler/task-board-text.js +30 -10
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board-unread.d.ts +90 -0
- package/dist/scheduler/task-board-unread.js +192 -0
- package/dist/scheduler/task-board-unread.js.map +1 -0
- package/dist/scheduler/task-board.d.ts +628 -10
- package/dist/scheduler/task-board.js +1496 -48
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/scheduler/task-files.d.ts +80 -0
- package/dist/scheduler/task-files.js +357 -0
- package/dist/scheduler/task-files.js.map +1 -0
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/service-activation.js +3 -13
- package/dist/service-activation.js.map +1 -1
- package/dist/service-install-handover.d.ts +52 -0
- package/dist/service-install-handover.js +50 -0
- package/dist/service-install-handover.js.map +1 -0
- package/dist/service-installer.d.ts +12 -0
- package/dist/service-installer.js +24 -10
- package/dist/service-installer.js.map +1 -1
- package/dist/service-lock.d.ts +28 -0
- package/dist/service-lock.js +85 -0
- package/dist/service-lock.js.map +1 -0
- package/dist/settings-api.d.ts +46 -1
- package/dist/settings-api.js +642 -97
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +6 -0
- package/dist/settings-baseline.js +11 -8
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +60 -7
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +2 -0
- package/dist/settings-confirmation.js +6 -0
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +11 -0
- package/dist/settings-effect.js +154 -7
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +3 -0
- package/dist/settings-http-confirmation.js +46 -43
- 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/settings-route-lifetime.d.ts +3 -1
- package/dist/settings-route-lifetime.js +15 -5
- package/dist/settings-route-lifetime.js.map +1 -1
- package/dist/settings-transaction.d.ts +3 -2
- package/dist/settings-transaction.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/state-lease.d.ts +24 -0
- package/dist/state-lease.js +103 -0
- package/dist/state-lease.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-attach-client.d.ts +43 -0
- package/dist/task-attach-client.js +125 -0
- package/dist/task-attach-client.js.map +1 -0
- package/dist/task-board-tool.d.ts +60 -0
- package/dist/task-board-tool.js +216 -11
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-board-waker.d.ts +75 -31
- package/dist/task-board-waker.js +311 -101
- package/dist/task-board-waker.js.map +1 -1
- package/dist/task-file-limits.d.ts +15 -0
- package/dist/task-file-limits.js +21 -0
- package/dist/task-file-limits.js.map +1 -0
- package/dist/tips.js +4 -4
- package/dist/tips.js.map +1 -1
- package/dist/tmux-binary.js +1 -1
- package/dist/tmux-binary.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.d.ts +32 -0
- package/dist/tool-permissions.js +68 -2
- 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/tool-receipt-output.d.ts +8 -6
- package/dist/topic-commands.d.ts +7 -1
- package/dist/topic-commands.js +124 -92
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-monitor.d.ts +7 -1
- package/dist/transcript-monitor.js +79 -3
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-turns.d.ts +3 -0
- package/dist/transcript-turns.js +5 -0
- package/dist/transcript-turns.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/tunnel/named-link-test.d.ts +27 -0
- package/dist/tunnel/named-link-test.js +41 -0
- package/dist/tunnel/named-link-test.js.map +1 -1
- package/dist/turn-reply-guard.d.ts +18 -3
- package/dist/turn-reply-guard.js +23 -5
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/types.d.ts +50 -2
- package/dist/ui/accounts-keepalive.js +4 -2
- package/dist/ui/accounts-view.js +18 -9
- package/dist/ui/agent-details-settings.js +11 -7
- package/dist/ui/agent-export-dialog.js +4 -3
- package/dist/ui/agent-export-strings.js +5 -5
- package/dist/ui/agent-page-strings.js +23 -5
- package/dist/ui/agent-who-can-use-strings.js +125 -0
- package/dist/ui/agent-who-can-use.js +238 -0
- package/dist/ui/app.html +2 -2
- package/dist/ui/backend-signin.js +94 -23
- package/dist/ui/chat-activity-groups.js +42 -9
- package/dist/ui/chat-activity.js +24 -4
- 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 +107 -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 +182 -19
- 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 +124 -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 +272 -0
- package/dist/ui/contact-authorizations.js +159 -0
- package/dist/ui/contact-grant-editor.js +110 -0
- package/dist/ui/contact-needs.js +124 -0
- package/dist/ui/contact-permissions.js +278 -0
- package/dist/ui/contact-ticket-badge.js +54 -0
- package/dist/ui/contact-tool-groups.js +39 -0
- package/dist/ui/contact-verify-need.js +46 -0
- package/dist/ui/fleet-cache.js +7 -6
- package/dist/ui/fleet-canvas.js +21 -8
- package/dist/ui/fleet-office-card.js +505 -45
- 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.d.ts +6 -3
- package/dist/ui/fleet-office-dialogue.js +16 -6
- package/dist/ui/fleet-office-editor.js +11 -6
- package/dist/ui/fleet-office-layout.js +15 -15
- package/dist/ui/fleet-office-model.js +5 -3
- package/dist/ui/fleet-office-overview.js +1 -1
- package/dist/ui/fleet-office-pack.d.ts +92 -5
- package/dist/ui/fleet-office-pack.js +596 -50
- package/dist/ui/fleet-office-play.js +498 -0
- package/dist/ui/fleet-office-skin.js +360 -52
- package/dist/ui/fleet-office-store.js +121 -5
- package/dist/ui/fleet-office-talk.js +423 -0
- package/dist/ui/fleet-office-vehicles.js +147 -0
- package/dist/ui/fleet-office-view.js +58 -17
- package/dist/ui/fleet-office-zones.js +174 -39
- package/dist/ui/fleet-office.js +1462 -188
- package/dist/ui/fleet-org.js +9 -4
- package/dist/ui/fleet-route.js +44 -6
- package/dist/ui/fleet-tab-icons.js +19 -0
- package/dist/ui/fleet-task-activity.js +430 -0
- package/dist/ui/fleet-task-archive.js +111 -0
- package/dist/ui/fleet-task-card.js +386 -317
- package/dist/ui/fleet-task-common.js +117 -13
- package/dist/ui/fleet-task-create.js +67 -0
- package/dist/ui/fleet-task-edit.js +211 -0
- package/dist/ui/fleet-task-files.js +196 -0
- package/dist/ui/fleet-task-flow.js +353 -0
- package/dist/ui/fleet-task-follow.js +123 -0
- package/dist/ui/fleet-task-md.js +98 -0
- package/dist/ui/fleet-task-menu.js +2 -2
- package/dist/ui/fleet-task-owner.js +252 -0
- package/dist/ui/fleet-task-run.js +333 -0
- package/dist/ui/fleet-task-sort.js +88 -0
- package/dist/ui/fleet-task-stats.js +2 -2
- package/dist/ui/fleet-task-thread.js +245 -0
- package/dist/ui/fleet-task-unread.js +100 -0
- package/dist/ui/fleet-task-view.js +221 -46
- package/dist/ui/fleet-task-wake.js +140 -0
- package/dist/ui/fleet-task-work.js +2 -2
- package/dist/ui/fleet-tasks.js +336 -145
- package/dist/ui/fleet-usage.js +8 -7
- 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 +190 -0
- package/dist/ui/hub-admin-rooms-strings.js +6 -2
- package/dist/ui/hub-admin-rooms.js +4 -2
- package/dist/ui/hub-agent-copy.js +8 -2
- package/dist/ui/hub-agent-intro.js +36 -0
- package/dist/ui/hub-ai-apps-strings.js +6 -0
- package/dist/ui/hub-ai-apps.js +84 -0
- package/dist/ui/hub-assistant-admin.js +2 -1
- package/dist/ui/hub-attachments.js +81 -3
- package/dist/ui/hub-chat-store.js +4 -3
- package/dist/ui/hub-chat-strings.js +14 -4
- package/dist/ui/hub-client.js +126 -12
- package/dist/ui/hub-directory-editor-strings.js +2 -2
- package/dist/ui/hub-directory-editor.js +1 -0
- package/dist/ui/hub-directory-notices.js +2 -1
- package/dist/ui/hub-enrolment-code.js +2 -1
- 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-search.js +2 -2
- 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 +170 -0
- package/dist/ui/hub-notify-keep.js +49 -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 +9 -3
- package/dist/ui/hub-quota.js +2 -1
- package/dist/ui/hub-role-audit.js +40 -0
- package/dist/ui/hub-role-forms.js +100 -0
- package/dist/ui/hub-role-notices.js +11 -0
- package/dist/ui/hub-role-view.js +87 -0
- package/dist/ui/hub-roles-strings.js +444 -0
- package/dist/ui/hub-roles.js +84 -0
- package/dist/ui/hub-room-agent-strings.js +29 -0
- package/dist/ui/hub-room-composer.js +174 -17
- package/dist/ui/hub-room-list.js +8 -5
- package/dist/ui/hub-room-members-strings.js +11 -4
- package/dist/ui/hub-room-members.js +134 -18
- 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 +162 -0
- package/dist/ui/hub-room-office.js +271 -0
- package/dist/ui/hub-room-owner-requests-strings.js +114 -0
- package/dist/ui/hub-room-owner-requests.js +265 -0
- package/dist/ui/hub-room-pins.js +44 -0
- package/dist/ui/hub-room-presence.js +19 -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-strings.js +8 -0
- package/dist/ui/hub-room-settings.js +110 -3
- 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 +102 -7
- package/dist/ui/hub-room-thread.js +522 -69
- package/dist/ui/hub-room-unread.js +2 -1
- package/dist/ui/hub-room-working.js +37 -0
- package/dist/ui/hub-session-limits.js +79 -0
- package/dist/ui/hub-strings.js +23 -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/icons/hub-apple-touch-icon.png +0 -0
- package/dist/ui/icons/hub-favicon.ico +0 -0
- package/dist/ui/icons/hub-favicon.svg +10 -0
- package/dist/ui/icons/hub-icon-192.png +0 -0
- package/dist/ui/icons/hub-icon-512.png +0 -0
- package/dist/ui/icons/hub-icon-maskable-192.png +0 -0
- package/dist/ui/icons/hub-icon-maskable-512.png +0 -0
- package/dist/ui/icons/hub-maskable.svg +12 -0
- 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 +11 -8
- 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 +4 -3
- package/dist/ui/office-share-page.js +7 -2
- package/dist/ui/page-share-dialog.js +3 -2
- package/dist/ui/panel-chat.js +515 -81
- package/dist/ui/panel-details.js +27 -3
- package/dist/ui/panel-fleet.js +61 -21
- package/dist/ui/panel-hub.js +478 -135
- package/dist/ui/panel-log.js +7 -7
- package/dist/ui/panel-needs.js +139 -28
- package/dist/ui/panel-notices.js +6 -2
- package/dist/ui/panel-runtimes.js +6 -4
- package/dist/ui/panel-settings.js +150 -61
- package/dist/ui/panel-windows-cli.js +4 -3
- 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/request-contact-card.js +287 -0
- package/dist/ui/request-contact-client.js +83 -0
- package/dist/ui/request-contact-page.js +78 -0
- package/dist/ui/request-context-control.js +209 -0
- package/dist/ui/runtime-cli-install.js +3 -2
- package/dist/ui/runtime-commands.d.ts +2 -2
- package/dist/ui/runtime-commands.js +7 -4
- package/dist/ui/runtime-update-status.js +1 -1
- package/dist/ui/search-dialog.js +8 -1
- package/dist/ui/settings-access-overview.js +5 -4
- package/dist/ui/settings-access-strings.js +1 -1
- package/dist/ui/settings-appearance.js +15 -12
- 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 +61 -18
- 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-member-address.js +2 -1
- 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-strings.js +1 -1
- package/dist/ui/settings-hub-setup.js +4 -2
- package/dist/ui/settings-hub-updates.js +67 -0
- package/dist/ui/settings-hub-web-address.js +2 -1
- package/dist/ui/settings-hub.js +37 -8
- package/dist/ui/settings-layout.js +18 -15
- package/dist/ui/settings-model.js +9 -5
- package/dist/ui/settings-named-test.js +16 -16
- package/dist/ui/settings-preview-address.js +156 -0
- package/dist/ui/settings-public-session-strings.js +2 -2
- package/dist/ui/settings-quota-notice.js +3 -3
- package/dist/ui/settings-registry.js +32 -5
- package/dist/ui/settings-revoke-strings.js +1 -1
- package/dist/ui/settings-shared-strings.js +35 -2
- package/dist/ui/settings-shared.js +67 -14
- package/dist/ui/settings-strings.js +58 -49
- package/dist/ui/settings-update.js +28 -7
- package/dist/ui/settings-web-authority.js +9 -6
- package/dist/ui/shared/access-overview.css +2 -2
- package/dist/ui/shared/accounts-keepalive.css +1 -1
- package/dist/ui/shared/accounts.css +9 -5
- package/dist/ui/shared/agent-sheet.js +121 -0
- package/dist/ui/shared/agent-widget.js +1 -2
- package/dist/ui/shared/app-i18n.js +12 -4
- package/dist/ui/shared/app-install.js +123 -0
- package/dist/ui/shared/app-nav.js +9 -5
- package/dist/ui/shared/app-needs.js +8 -1
- package/dist/ui/shared/app-prefs.js +9 -3
- package/dist/ui/shared/app-route.js +5 -3
- package/dist/ui/shared/app-session.js +4 -3
- package/dist/ui/shared/app-shell.js +218 -46
- package/dist/ui/shared/app-store.js +7 -3
- package/dist/ui/shared/app-stream.js +11 -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 +107 -10
- package/dist/ui/shared/app.css +1398 -275
- package/dist/ui/shared/app.js +34 -5
- 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 +30 -8
- 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 +49 -24
- package/dist/ui/shared/chat-table-select.js +175 -0
- package/dist/ui/shared/chat-thread.js +181 -29
- package/dist/ui/shared/chat-time.js +7 -4
- package/dist/ui/shared/chat-work-bar.css +97 -15
- package/dist/ui/shared/clock-text.js +57 -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/device-roles.js +6 -5
- package/dist/ui/shared/hub-ai-apps.css +12 -0
- package/dist/ui/shared/hub-chat.css +114 -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 +123 -3
- package/dist/ui/shared/hub-roles.css +99 -0
- package/dist/ui/shared/hub-rooms-u2.css +98 -0
- package/dist/ui/shared/hub-signin.css +2 -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 +197 -21
- package/dist/ui/shared/jump-idle.js +36 -0
- package/dist/ui/shared/loading.css +1 -1
- package/dist/ui/shared/model-picker.css +28 -1
- 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 +122 -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 +51 -21
- package/dist/ui/shared/preview-popout.css +11 -0
- package/dist/ui/shared/preview.js +11 -2
- 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 +733 -11
- 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 +318 -13
- package/dist/ui/shared/ui-confirm.js +10 -5
- package/dist/ui/shared/ui-icons.js +7 -0
- package/dist/ui/shared/ui-menu.js +17 -11
- package/dist/ui/shared/ui-states.js +9 -2
- package/dist/ui/shared/ui-toast.js +4 -4
- package/dist/ui/shared/update-card-ui.js +586 -0
- package/dist/ui/shared/usage-dialog.js +90 -18
- package/dist/ui/shared/view-history.js +2 -1
- package/dist/ui/shared/view-strings.js +57 -13
- package/dist/ui/shared/web-authorize.js +6 -5
- package/dist/ui/shared/workspace.css +7 -0
- package/dist/ui/signin.html +4 -2
- package/dist/ui/structured-signin.js +64 -12
- package/dist/ui/subagent-row.js +5 -3
- package/dist/ui/task-unread.js +70 -0
- package/dist/ui/trigger-complete.js +71 -0
- package/dist/ui/usage-credits-card.js +84 -0
- package/dist/ui/usage-pool.js +2 -1
- package/dist/ui/web-terminal/terminal.css +1 -1
- package/dist/ui/windows-cli-catalog.js +33 -6
- package/dist/ui/workspace-ignored-strings.js +16 -0
- package/dist/ui/workspace-panel.js +21 -10
- package/dist/update-abandon.d.ts +26 -0
- package/dist/update-abandon.js +111 -0
- package/dist/update-abandon.js.map +1 -0
- package/dist/update-card.d.ts +193 -0
- package/dist/update-card.js +620 -0
- package/dist/update-card.js.map +1 -0
- package/dist/update-dispatch.d.ts +24 -2
- package/dist/update-dispatch.js +28 -5
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-fix.d.ts +66 -0
- package/dist/update-fix.js +67 -0
- package/dist/update-fix.js.map +1 -0
- package/dist/update-forward.d.ts +59 -0
- package/dist/update-forward.js +227 -0
- package/dist/update-forward.js.map +1 -0
- package/dist/update-goback.d.ts +90 -0
- package/dist/update-goback.js +272 -0
- package/dist/update-goback.js.map +1 -0
- package/dist/update-idle.d.ts +66 -0
- package/dist/update-idle.js +199 -0
- package/dist/update-idle.js.map +1 -0
- package/dist/update-install.d.ts +2 -1
- package/dist/update-install.js +18 -10
- package/dist/update-install.js.map +1 -1
- package/dist/update-journal.d.ts +359 -0
- package/dist/update-journal.js +723 -0
- package/dist/update-journal.js.map +1 -0
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +10 -3
- package/dist/update-launch.js.map +1 -1
- package/dist/update-npm-env.d.ts +45 -12
- package/dist/update-npm-env.js +48 -0
- package/dist/update-npm-env.js.map +1 -1
- package/dist/update-package-restore.d.ts +84 -0
- package/dist/update-package-restore.js +329 -0
- package/dist/update-package-restore.js.map +1 -0
- package/dist/update-quiescence.d.ts +221 -0
- package/dist/update-quiescence.js +370 -0
- package/dist/update-quiescence.js.map +1 -0
- package/dist/update-readiness-host.d.ts +61 -0
- package/dist/update-readiness-host.js +297 -0
- package/dist/update-readiness-host.js.map +1 -0
- package/dist/update-readiness.d.ts +85 -0
- package/dist/update-readiness.js +463 -0
- package/dist/update-readiness.js.map +1 -0
- package/dist/update-recovery/kit.d.ts +35 -0
- package/dist/update-recovery/kit.js +99 -0
- package/dist/update-recovery/kit.js.map +1 -0
- package/dist/update-recovery/pre-start.d.ts +34 -0
- package/dist/update-recovery/pre-start.js +103 -0
- package/dist/update-recovery/pre-start.js.map +1 -0
- package/dist/update-recovery/recover-main.d.ts +1 -0
- package/dist/update-recovery/recover-main.js +4 -0
- package/dist/update-recovery/recover-main.js.map +1 -0
- package/dist/update-recovery/recover.d.ts +22 -0
- package/dist/update-recovery/recover.js +134 -0
- package/dist/update-recovery/recover.js.map +1 -0
- package/dist/update-recovery/route.d.ts +53 -0
- package/dist/update-recovery/route.js +262 -0
- package/dist/update-recovery/route.js.map +1 -0
- package/dist/update-recovery/runner.d.ts +62 -0
- package/dist/update-recovery/runner.js +229 -0
- package/dist/update-recovery/runner.js.map +1 -0
- package/dist/update-recovery/service-manager.d.ts +39 -0
- package/dist/update-recovery/service-manager.js +57 -0
- package/dist/update-recovery/service-manager.js.map +1 -0
- package/dist/update-restore.d.ts +50 -0
- package/dist/update-restore.js +360 -0
- package/dist/update-restore.js.map +1 -0
- package/dist/update-retained.d.ts +65 -0
- package/dist/update-retained.js +116 -0
- package/dist/update-retained.js.map +1 -0
- package/dist/update-rollback.d.ts +74 -0
- package/dist/update-rollback.js +221 -0
- package/dist/update-rollback.js.map +1 -0
- package/dist/update-settings.d.ts +63 -0
- package/dist/update-settings.js +162 -0
- package/dist/update-settings.js.map +1 -0
- package/dist/update-snapshot-manifest.d.ts +32 -0
- package/dist/update-snapshot-manifest.js +65 -0
- package/dist/update-snapshot-manifest.js.map +1 -0
- package/dist/update-snapshot-scope.d.ts +67 -0
- package/dist/update-snapshot-scope.js +174 -0
- package/dist/update-snapshot-scope.js.map +1 -0
- package/dist/update-snapshot.d.ts +34 -0
- package/dist/update-snapshot.js +246 -0
- package/dist/update-snapshot.js.map +1 -0
- package/dist/update-writers.d.ts +71 -0
- package/dist/update-writers.js +235 -0
- package/dist/update-writers.js.map +1 -0
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +10 -1
- 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 +4 -11
- package/dist/usage/providers.js +109 -134
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.js +5 -2
- package/dist/usage/usage-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 +132 -9
- package/dist/web-api.js +1468 -242
- 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 +137 -2
- package/dist/web-chat-history.js +335 -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.d.ts +20 -3
- package/dist/web-icons.js +79 -10
- package/dist/web-icons.js.map +1 -1
- package/dist/web-login.d.ts +13 -1
- package/dist/web-login.js +16 -4
- package/dist/web-login.js.map +1 -1
- package/dist/web-mentions.d.ts +29 -8
- package/dist/web-mentions.js +128 -1
- 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-acts.d.ts +16 -0
- package/dist/web-office-acts.js +30 -9
- package/dist/web-office-acts.js.map +1 -1
- package/dist/web-office-pack-read.js +1 -1
- package/dist/web-office-pack-read.js.map +1 -1
- package/dist/web-office-skins.d.ts +19 -6
- package/dist/web-office-skins.js +85 -36
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-office-store.d.ts +2 -0
- package/dist/web-office-store.js +20 -6
- 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-preview.d.ts +5 -0
- package/dist/web-preview.js +1 -1
- package/dist/web-preview.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 +27 -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 +51 -3
- package/dist/web-settings-patch.js +124 -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 +30 -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-agents.d.ts +36 -2
- package/dist/windows-agents.js +115 -4
- package/dist/windows-agents.js.map +1 -1
- package/dist/windows-cli-api.d.ts +10 -7
- package/dist/windows-cli-api.js +17 -14
- package/dist/windows-cli-api.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +10 -0
- package/dist/windows-cli-worker.js +118 -15
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +65 -2
- package/dist/windows-cli.js +192 -28
- 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/windows-shortcuts.d.ts +3 -22
- package/dist/windows-shortcuts.js +5 -45
- package/dist/windows-shortcuts.js.map +1 -1
- package/dist/workflow-templates/default.md +8 -8
- package/dist/wsl-host.d.ts +52 -0
- package/dist/wsl-host.js +97 -0
- package/dist/wsl-host.js.map +1 -0
- package/launcher/agend +4 -1
- package/launcher/agend-agent +4 -1
- package/launcher/agend-install.cjs +63 -14
- package/launcher/install-admission.d.cts +8 -0
- package/launcher/npm-allow-scripts.cjs +72 -0
- package/launcher/npm-global-prefix.cjs +81 -0
- package/launcher/postinstall.cjs +9 -8
- package/launcher/runtime-select.cjs +8 -2
- package/package.json +4 -3
- package/scripts/preinstall-guard.cjs +1 -1
- package/templates/runtime-install/install.ps1 +24 -4
package/dist/ui/panel-chat.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { focusComposerStrip } from "/assets/composer-focus.js";
|
|
2
|
+
import { previewReplyFile, replyPreviewLabel } from "./reply-file-preview.js";
|
|
1
3
|
import { NativePaneRecovery } from "./native-pane-recovery.js";
|
|
2
4
|
import { GeneralLocation } from "./general-location.js";
|
|
3
5
|
// #1408 step 1: the chat panel. Behind the session gate (/ui/js/), loaded by the app with a dynamic import in "full"
|
|
@@ -9,17 +11,20 @@ import { GeneralLocation } from "./general-location.js";
|
|
|
9
11
|
// The instance's own actions (details, start, stop, restart, delete) are in the header's ⋯ menu, and only the ones
|
|
10
12
|
// that apply to its state are offered (#1408 rough edges 4 and 7).
|
|
11
13
|
import { html, Fragment, useEffect, useLayoutEffect, useRef, useState } from "/assets/app-html.js";
|
|
14
|
+
import { JUMP_IDLE_MS, useJumpIdle } from "/assets/jump-idle.js";
|
|
12
15
|
import { lang, register, t } from "/assets/app-i18n.js";
|
|
16
|
+
import { AgentSheetButton, AgentSheet } from "/assets/agent-sheet.js";
|
|
13
17
|
import { appStore, createStore, guestPage, guestTrusted, useStore } from "/assets/app-store.js";
|
|
14
18
|
import { ComposerAuth, useWebAuthorization } from "/assets/web-authorize.js";
|
|
15
19
|
import { useLease } from "/assets/app-ctx.js";
|
|
16
20
|
import * as paneContext from "/assets/app-ctx.js";
|
|
17
21
|
import { backendLabel, modelText, namesOf, namesStore, navStore as instanceNavStore, supportsInstanceFeature } from "/assets/instance-nav.js";
|
|
18
22
|
import { machineName } from "/assets/machine-name.js";
|
|
19
|
-
import { PanelHeader, onPanelKey, setTitle, statusClass, statusLabel, openDrawer, requestNewInstance, needsCount } from "/assets/app-shell.js";
|
|
20
|
-
import { detailsPath, textLinkSegments, sectionPath, NEEDS_PATH, fleetEntryPath, settingsPath } from "/assets/app-route.js";
|
|
23
|
+
import { PanelHeader, onPanelKey, setTitle, statusClass, statusLabel, openDrawer, requestNewInstance, needsCount, openSearch } from "/assets/app-shell.js";
|
|
24
|
+
import { chatPath, detailsPath, textLinkSegments, sectionPath, NEEDS_PATH, fleetEntryPath, settingsPath, viewPath, logPath } from "/assets/app-route.js";
|
|
21
25
|
import { InstanceSwitch } from "/assets/instance-switch.js";
|
|
22
|
-
import { HeaderTools } from "/assets/header-tools.js";
|
|
26
|
+
import { HeaderTools, setTextSize, textSizeStore, usageOffered, TEXT_SIZES } from "/assets/header-tools.js";
|
|
27
|
+
import { UsageDialog } from "/assets/usage-dialog.js";
|
|
23
28
|
import { navigate, navStore } from "/assets/app-nav.js";
|
|
24
29
|
import { Menu } from "/assets/ui-menu.js";
|
|
25
30
|
import { Dialog } from "/assets/ui-dialog.js";
|
|
@@ -48,6 +53,7 @@ function nativeCliTag(inst) {
|
|
|
48
53
|
return html`<span class="tag native-cli-unverified" title=${t("nativecli.unverifiedHint", cli, inst.native_cli_version || "")}>${t("nativecli.unverified")}</span>`;
|
|
49
54
|
}
|
|
50
55
|
import { confirmDialog } from "/assets/ui-confirm.js";
|
|
56
|
+
import { isPinned, pinOffered, PinCopyDialog, PinsButton, PinsDialog, setPin, usePins } from "./chat-pins.js";
|
|
51
57
|
import { modelLabel, modelPickerStyles, mw } from "./model-picker.js";
|
|
52
58
|
/** An effort level as a word: low → Low, xhigh → XHigh (the CLIs' own names). Local: a tab on an older model-picker.js still has it. */
|
|
53
59
|
const effortWord = (level) => ({ xhigh: "XHigh" }[level] || String(level).charAt(0).toUpperCase() + String(level).slice(1));
|
|
@@ -56,6 +62,7 @@ import { applyTheme, clearAmbient, resolvedMode, themeFor, themeImageUrl, themeM
|
|
|
56
62
|
import { colorMenuItem } from "/assets/identity-color.js";
|
|
57
63
|
import { brokenPictures, cardFoldable, IdentityCard, useCard } from "/assets/identity-card.js";
|
|
58
64
|
import { AgentWidget, instanceBinds, widgetFor } from "/assets/agent-widget.js";
|
|
65
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
59
66
|
// #1629 r4 §1: the identity card under the chat's header — hidden by default; shown or not is this device's choice.
|
|
60
67
|
// #2217 (the user, 2026-10-19): no row of its own; its picture and bio can be folded away (the banner stays) — this
|
|
61
68
|
// device's choice too, kept the same way. The user (2026-10-20): no control on the card — one card button in the header
|
|
@@ -100,7 +107,7 @@ register("chatPhone", {
|
|
|
100
107
|
en: { goTo: "Go to", thisChat: "This chat", verifiedUntil: "Verified · speaks as you until {0}", needsToast: "{0} needs you", ctxHide: "Hide this for now" },
|
|
101
108
|
"zh-TW": { goTo: "前往", thisChat: "這個對話", verifiedUntil: "已驗證 · 以你的身分發言到 {0}", needsToast: "{0} 正在等你回應", ctxHide: "這次先不提醒" },
|
|
102
109
|
});
|
|
103
|
-
const untilClock = (ms) => { try { return
|
|
110
|
+
const untilClock = (ms) => { try { return timeText(ms, { hour: "2-digit", minute: "2-digit" }, []); } catch { return ""; } };
|
|
104
111
|
/** A Needs-you item's identity: its nonce, else its id, else what it says. */
|
|
105
112
|
const needKey = (item) => String(item?.nonce || item?.id || JSON.stringify(item || null));
|
|
106
113
|
/**
|
|
@@ -108,7 +115,50 @@ const needKey = (item) => String(item?.nonce || item?.id || JSON.stringify(item
|
|
|
108
115
|
* count), Fleet, Settings — then this chat's items, and ends with 「✓ 已驗證」 (the line under the composer no longer
|
|
109
116
|
* says it). A Needs-you item that arrives meanwhile, for another agent, is a short toast. A desk's ⋯ is unchanged.
|
|
110
117
|
*/
|
|
111
|
-
|
|
118
|
+
/** One target-bound action list for the header and sidebar; the server remains the authority. */
|
|
119
|
+
export function chatAgentMenuItems({ name, inst, wide, pinCount = 0, onPins, onDelete,
|
|
120
|
+
onDetails = () => navigate(detailsPath(name)), onSplit = () => appStore.get().chatWorkspace?.open(name) }) {
|
|
121
|
+
if (guestPage()) return [];
|
|
122
|
+
const running = inst.status === "running";
|
|
123
|
+
const action = async (verb) => {
|
|
124
|
+
let r;
|
|
125
|
+
try { const res = await fetch(`/ui/${verb}/${encodeURIComponent(name)}`, { method: "POST", headers: { "Content-Type": "application/json" } }); r = await res.json(); }
|
|
126
|
+
catch (err) { r = { error: err && err.message ? err.message : t("chat.disconnected") }; }
|
|
127
|
+
if (r && r.error) toast(r.error, false);
|
|
128
|
+
else if (r && r.held) toast(r.message);
|
|
129
|
+
else toast(t(verb === "start" ? "chat.started" : verb === "stop" ? "chat.stoppedInst" : "chat.restarted", name));
|
|
130
|
+
};
|
|
131
|
+
return [
|
|
132
|
+
// #1523 N2: Details is a page now (the Fleet side of this instance), not a dialog.
|
|
133
|
+
supportsInstanceFeature(inst,"details") ? { key: "details", label: t("chat.details"), icon: "info", onSelect: () => onDetails() } : null,
|
|
134
|
+
appStore.get().chatWorkspace ? { key: "splitChat", label: t("chatWorkspace.split"), icon: "sidebar", onSelect: () => onSplit() } : null,
|
|
135
|
+
inst.runtime === "windows" ? {key:"settings",label:t("app.settings"),icon:"settings",onSelect:() => navigate(sectionPath("agents"))} : null,
|
|
136
|
+
running || !supportsInstanceFeature(inst,"lifecycle") ? null : { key: "start", label: t("chat.start"), icon: "play", onSelect: () => action("start") },
|
|
137
|
+
running && supportsInstanceFeature(inst,"lifecycle") ? { key: "restart", label: t("chat.restart"), icon: "restart", onSelect: () => action("restart") } : null,
|
|
138
|
+
running && supportsInstanceFeature(inst,"lifecycle") ? { key: "stop", label: t("chat.stopInstance"), icon: "stop", onSelect: () => action("stop") } : null,
|
|
139
|
+
// #1958: its identity colour and where it shows (the public link too, as profile edits).
|
|
140
|
+
// #3153 P1: the folder it works in, read-only — an admin only (M-3278: over the public link too), and not an
|
|
141
|
+
// agent on another machine (the server also refuses General and coordinators: their folder is the fleet's own).
|
|
142
|
+
inst.runtime === "windows" || inst.machine_id || inst.general_topic === true ? null
|
|
143
|
+
: { key: "workspace", label: t("chat.wsOpen"), icon: "file", onSelect: () => openWorkspace({ key: `ws:${name}`, instance: name }) },
|
|
144
|
+
// M-3271: the pinned list — here too, for a phone (its header shows ← title ⋯ only) and a narrow pane.
|
|
145
|
+
pinCount ? { key: "pins", label: `${t("chat.pinsTitle")} · ${pinCount}`, icon: "pin", onSelect: onPins } : null,
|
|
146
|
+
colorMenuItem(name, inst),
|
|
147
|
+
// #1629: a person's control over this agent's theme — not over the public link (it only views themes).
|
|
148
|
+
...themeMenuItems(name),
|
|
149
|
+
// #2117: its ambient — why it is not showing here (with the way to change that), and a person's Clear.
|
|
150
|
+
...ambientMenuItems(name, { publicLink: false, clear: clearAmbient }), // M-3278
|
|
151
|
+
// AGEND-181: the activity timeline above each reply (this browser's choice), when the Log is on.
|
|
152
|
+
...(activityOffered() && activityInfo(name)?.level !== "off" ? [
|
|
153
|
+
{ key: "activity", checkbox: true, checked: activityPrefs.get().on, label: t("act.menuActivity"), onSelect: () => setActivityOn(!activityPrefs.get().on) },
|
|
154
|
+
...(activityInfo(name)?.thinking ? [{ key: "thinking", checkbox: true, checked: activityPrefs.get().thinking, disabled: !activityPrefs.get().on, label: t("act.menuThinking"), onSelect: () => setActivityThinking(!activityPrefs.get().thinking) }] : []),
|
|
155
|
+
] : []),
|
|
156
|
+
narrowScreen() ? null : { key: "fullWidth", checkbox: true, checked: wide, label: t("chat.fullWidth"), onSelect: () => setChatWide(!wide) },
|
|
157
|
+
{ key: "delete", label: t("chat.delete"), icon: "trash", danger: true, onSelect: onDelete },
|
|
158
|
+
];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function ChatMoreMenu({ items, name, inst = null, card = null, navKey, lease = null }) {
|
|
112
162
|
const app = useStore(appStore);
|
|
113
163
|
const auth = useWebAuthorization();
|
|
114
164
|
const seen = useRef(null);
|
|
@@ -125,6 +175,20 @@ function ChatMoreMenu({ items, name }) {
|
|
|
125
175
|
});
|
|
126
176
|
}, [name]);
|
|
127
177
|
if (!narrowScreen()) return html`<${Menu} items=${items} label=${t("app.more")} />`;
|
|
178
|
+
// M-3166 (Argon 3, the user's OK of round 2): a phone's ⋯ is a sheet (below); its Go to went to the drawer.
|
|
179
|
+
if (inst) {
|
|
180
|
+
// The header's chips, here: the same commands, bound to this page's lease (a reply after the page moved on is dropped).
|
|
181
|
+
const run = (command) => store.runCommand(name, command, "", lease ? { alive: () => lease.current() } : {});
|
|
182
|
+
const commands = supportsInstanceFeature(inst, "commands");
|
|
183
|
+
const chat = { card: !!card, onCard: () => setChatCardOpen(!chatCardPrefs.get().open),
|
|
184
|
+
...(commands ? {
|
|
185
|
+
onModel: () => run("model"),
|
|
186
|
+
modelText: `${shortModelName(modelLabel(inst.model || modelText(inst)))}${supportsInstanceFeature(inst, "effort") && effortChip(inst) ? ` · ${effortChip(inst)}` : ""}`,
|
|
187
|
+
onBackend: () => (inst.runtime === "windows" ? navigate(sectionPath("agents")) : run("backend")), backendText: backendLabel(inst.backend),
|
|
188
|
+
} : {}) };
|
|
189
|
+
return html`<${AgentSheetButton} items=${items} name=${name} inst=${inst} current="chat" navKey=${navKey} chat=${chat}
|
|
190
|
+
verifiedUntil=${auth.st?.state === "verified" ? auth.st.until : null} />`;
|
|
191
|
+
}
|
|
128
192
|
const waiting = needsCount(app);
|
|
129
193
|
const route = navStore.get().route;
|
|
130
194
|
const verified = auth.st?.state === "verified";
|
|
@@ -144,11 +208,15 @@ import { confirmedWrite, selfConfirmed } from "./settings-confirm.js";
|
|
|
144
208
|
import { createChatStore } from "./chat-store.js";
|
|
145
209
|
import { createThread, msgKey } from "/assets/chat-thread.js";
|
|
146
210
|
import { ComposerInput, WorkBarView, touchScreen } from "/assets/chat-composer.js";
|
|
147
|
-
import { installMessageActions } from "
|
|
211
|
+
import { installMessageActions } from "/assets/chat-msg-actions.js";
|
|
148
212
|
import { composerCaret, insertQuote, installQuoteSelection, showCaret } from "./chat-quote.js";
|
|
213
|
+
import { installTableSelection } from "/assets/chat-table-select.js";
|
|
214
|
+
import { contactBadgeHtml, installBadgeRefresh } from "./contact-ticket-badge.js";
|
|
149
215
|
import { createEmojiIndex } from "./chat-emojis.js";
|
|
150
216
|
import { pollPublicPreview } from "./preview-status.js";
|
|
151
217
|
import { createMentionIndex } from "./chat-mentions.js";
|
|
218
|
+
import "./chat-task-ref-strings.js";
|
|
219
|
+
import { createTaskRefIndex, insertTaskRef, taskRefAt } from "./chat-task-refs.js";
|
|
152
220
|
import { setPanelFeedback } from "./preview-panel-actions.js";
|
|
153
221
|
import { PreviewPanel, claimPanel, openMarkdown, openPanel, openWorkspace, panelClaims, panelStore, panelVersion, shownKey } from "./preview-panel.js";
|
|
154
222
|
import { isUpdateLine, needsArgument, paletteFor, parseCommandLine, UPDATE_COMMAND } from "./chat-commands.js";
|
|
@@ -169,13 +237,15 @@ export function linkWorkBarCss(doc = typeof document !== "undefined" ? document
|
|
|
169
237
|
try {
|
|
170
238
|
if (!doc || !doc.head || doc.querySelector('link[data-chat-work-bar-css="1"]')) return;
|
|
171
239
|
const link = doc.createElement("link");
|
|
172
|
-
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/chat-work-bar.css"); link.setAttribute("data-chat-work-bar-css", "1");
|
|
240
|
+
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", assetUrl("/assets/chat-work-bar.css")); link.setAttribute("data-chat-work-bar-css", "1");
|
|
173
241
|
doc.head.appendChild(link);
|
|
174
242
|
} catch { /* Stop still works without it */ }
|
|
175
243
|
}
|
|
176
244
|
linkWorkBarCss();
|
|
177
245
|
|
|
178
|
-
import { activityInfo, activityInfoStore, activityOffered, activityPrefs, composeActivity, mountActivity, observeActivity, setActivityOn, setActivityThinking } from "./chat-activity.js";
|
|
246
|
+
import { activityDrawCtx, activityInfo, activityInfoStore, activityOffered, activityPrefs, composeActivity, mountActivity, observeActivity, setActivityOn, setActivityThinking } from "./chat-activity.js";
|
|
247
|
+
import { timeText } from "/assets/clock-text.js";
|
|
248
|
+
import { usageCreditsActions, usageCreditsTitle, usageCreditsDetail, kindClass, showRawLabel } from "./usage-credits-card.js";
|
|
179
249
|
/** The composer's textarea (#2342: text put back into it is a step Ctrl+Z goes back from). */
|
|
180
250
|
const composers = new Map(); // agent → current mounted refs, never a retained thread's stale closure
|
|
181
251
|
const composerField = (name) => composers.get(name)?.input.current || null;
|
|
@@ -299,10 +369,7 @@ const agentBusy = (name) => R().isBusy(store.state.exec[name]);
|
|
|
299
369
|
const agentSince = (name) => { const t = store.state.workingSince[name]; return t == null ? null : Date.now() - (performance.now() - t); };
|
|
300
370
|
const rowsOf = (name) => (activityShown() ? composeActivity(name, store.threadRows(name), Date.now(), { busy: agentBusy(name), since: agentSince(name) }) : store.threadRows(name));
|
|
301
371
|
/** What a chat's activity blocks need to draw: its paths to shorten, and whether thinking is shown. */
|
|
302
|
-
const activityCtx = (name) => () =>
|
|
303
|
-
const info = activityInfo(name);
|
|
304
|
-
return { paths: info ? { cwd: info.cwd, home: info.home } : null, thinking: activityPrefs.get().thinking && !!info && info.thinking === true };
|
|
305
|
-
};
|
|
372
|
+
const activityCtx = (name) => () => activityDrawCtx(name);
|
|
306
373
|
|
|
307
374
|
// ── Announcements: one polite, visually hidden line for the coarse events only (a reply arrived, the agent started,
|
|
308
375
|
// finished, or waits on you). Messages themselves are not read out as they arrive; the list is a log to browse.
|
|
@@ -310,6 +377,15 @@ let announceTimer = null;
|
|
|
310
377
|
/** #1630: which Discord server emoji this page may draw (created with the store, in boot). */
|
|
311
378
|
let emojiIndex = null;
|
|
312
379
|
let mentionIndex = null; // #1682: the names of the mentions shown
|
|
380
|
+
let taskRefIndex = null; // The task cards the person's messages name (chips) and the ones offered while `#` is typed
|
|
381
|
+
/** What a chip draws for a card the page knows — its words, its status in the page's language, and a tip with who has it. */
|
|
382
|
+
function taskChipInfo(code) {
|
|
383
|
+
const v = taskRefIndex ? taskRefIndex.get(code) : null;
|
|
384
|
+
if (!v) return null;
|
|
385
|
+
const status = t(`taskref.s.${v.status}`);
|
|
386
|
+
const tip = [`${v.code} · ${v.title}`, status, v.assignee ? `@${v.assignee}` : null].filter(Boolean).join(" · ");
|
|
387
|
+
return { title: v.title, status: v.status, statusLabel: status, tip };
|
|
388
|
+
}
|
|
313
389
|
function announce(text) {
|
|
314
390
|
let el = document.getElementById("announcer");
|
|
315
391
|
if (!el) { el = document.createElement("div"); el.id = "announcer"; el.className = "sr-only"; el.setAttribute("role", "status"); el.setAttribute("aria-live", "polite"); el.setAttribute("aria-atomic", "true"); document.body.appendChild(el); }
|
|
@@ -341,7 +417,9 @@ export function boot({ stream, boot: bootData, deps = {} }) {
|
|
|
341
417
|
...deps,
|
|
342
418
|
});
|
|
343
419
|
emojiIndex = createEmojiIndex((url) => (deps.fetch || fetch)(url, { credentials: "same-origin" }));
|
|
344
|
-
mentionIndex = createMentionIndex((url) => (deps.fetch || fetch)(url, { credentials: "same-origin" }));
|
|
420
|
+
mentionIndex = createMentionIndex((url) => guestPage() ? null : (deps.fetch || fetch)(url, { credentials: "same-origin" }));
|
|
421
|
+
// A guest has no task board (the server refuses it too); everyone else reads the cards a message names.
|
|
422
|
+
taskRefIndex = guestPage() ? null : createTaskRefIndex((url) => (deps.fetch || fetch)(url, { credentials: "same-origin" }));
|
|
345
423
|
store.attach(stream);
|
|
346
424
|
// #1306: what the server said about previews for this load. The page-wide message and storage listeners this adds
|
|
347
425
|
// belong to the app, once (they are never per mount).
|
|
@@ -364,10 +442,11 @@ export function boot({ stream, boot: bootData, deps = {} }) {
|
|
|
364
442
|
clearReply: (instance) => store.clearReply(instance),
|
|
365
443
|
addToDraft: (instance, line) => { feedbackInstance = instance; recordEdit(composerField(instance)); store.addToDraft(instance, line); },
|
|
366
444
|
focus: (instance = feedbackInstance) => {
|
|
445
|
+
import("./preview-popout.js").then(m => m.leavePreviewWindow()).catch(() => {});
|
|
367
446
|
const el = composerField(instance); if (!el) return;
|
|
368
447
|
el.focus();
|
|
369
448
|
// After the render that shows the line: the caret at its end.
|
|
370
|
-
setTimeout(() => { if (composerField(instance) !== el) return; try { const n = el.value.length; el.setSelectionRange(n, n); } catch { /* not a text field */ } }, 0);
|
|
449
|
+
setTimeout(() => { if (composerField(instance) !== el) return; el.focus(); try { const n = el.value.length; el.setSelectionRange(n, n); } catch { /* not a text field */ } }, 0);
|
|
371
450
|
},
|
|
372
451
|
});
|
|
373
452
|
// #1604: the preview opt-in and Tour live in Settings → This device now (and on each preview card's menu).
|
|
@@ -425,6 +504,7 @@ export function ChatPanel({ route, navKey }) {
|
|
|
425
504
|
const app = useStore(appStore);
|
|
426
505
|
const name = route.instance;
|
|
427
506
|
const inst = name ? app.instances.find(i => i.name === name) : null;
|
|
507
|
+
|
|
428
508
|
useEffect(() => {
|
|
429
509
|
if (store.show) {
|
|
430
510
|
if (!name || !inst) return;
|
|
@@ -480,6 +560,16 @@ function useResolvedMode(lease) {
|
|
|
480
560
|
}
|
|
481
561
|
|
|
482
562
|
function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
563
|
+
const [previewPopout, setPreviewPopout] = useState(null);
|
|
564
|
+
useEffect(() => {
|
|
565
|
+
let alive = true, owner = null; setPreviewPopout(null);
|
|
566
|
+
if (!name || !inst) return;
|
|
567
|
+
import("./preview-popout.js").then(m => m.createPreviewPopout(name)).then(value => {
|
|
568
|
+
if (!alive) { value?.close(); return; } owner = value;
|
|
569
|
+
if (owner) setPreviewPopout(() => spec => owner.open(spec));
|
|
570
|
+
}).catch(() => {});
|
|
571
|
+
return () => { alive = false; owner?.close(); };
|
|
572
|
+
}, [name, !!inst]);
|
|
483
573
|
const pane = paneContext.usePane?.(), paneNow = useRef(pane); paneNow.current = pane;
|
|
484
574
|
const bindings = useRef({ input: { current: null }, box: { current: null }, composing: false }).current;
|
|
485
575
|
const ids = pane ? Object.fromEntries(["msgIn", "attachBtn", "stopBtn", "sendBtn", "cmdPalette"].map(key => [key, `pane-${pane.id}-${key}`])) : {};
|
|
@@ -520,6 +610,11 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
520
610
|
const wide = useStore(chatWide).on;
|
|
521
611
|
useStore(activityPrefs); useStore(activityInfoStore); // AGEND-181: the ⋯ menu's Show activity / Show thinking
|
|
522
612
|
const view = useRef(null), split = useRef(null), thread = useRef(null), bg = useRef(null), effectSurface = useRef(null);
|
|
613
|
+
// M-3271: this agent's pinned messages — the header's 📌 opens the list; a pin no longer in the chat opens its copy.
|
|
614
|
+
const [pinsOpen, setPinsOpen] = useState(false), [pinCopy, setPinCopy] = useState(null);
|
|
615
|
+
const pinCount = usePins(guestPage() ? "" : name).pins?.length || 0;
|
|
616
|
+
const openPins = () => setPinsOpen(true);
|
|
617
|
+
const jumpPin = (p) => { setPinsOpen(false); void thread.current?.jumpTo(p.key, { onGone: () => setPinCopy(p) }); };
|
|
523
618
|
useLayoutEffect(() => { applyTheme(view.current, theme, mode); }, [themeKey, mode]);
|
|
524
619
|
useLayoutEffect(() => {
|
|
525
620
|
const img = bg.current;
|
|
@@ -558,41 +653,8 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
558
653
|
e.preventDefault();
|
|
559
654
|
store.cancelReply(name);
|
|
560
655
|
})), [lease]);
|
|
561
|
-
const
|
|
562
|
-
|
|
563
|
-
let r;
|
|
564
|
-
try { const res = await fetch(`/ui/${verb}/${encodeURIComponent(name)}`, { method: "POST", headers: { "Content-Type": "application/json" } }); r = await res.json(); }
|
|
565
|
-
catch (err) { r = { error: err && err.message ? err.message : t("chat.disconnected") }; }
|
|
566
|
-
if (r && r.error) toast(r.error, false);
|
|
567
|
-
else if (r && r.held) toast(r.message);
|
|
568
|
-
else toast(t(verb === "start" ? "chat.started" : verb === "stop" ? "chat.stoppedInst" : "chat.restarted", name));
|
|
569
|
-
};
|
|
570
|
-
const items = [
|
|
571
|
-
// #1523 N2: Details is a page now (the Fleet side of this instance), not a dialog.
|
|
572
|
-
supportsInstanceFeature(inst,"details") ? { key: "details", label: t("chat.details"), icon: "info", onSelect: () => (paneNow.current?.navigate || navigate)(detailsPath(name)) } : null,
|
|
573
|
-
appStore.get().chatWorkspace ? { key: "splitChat", label: t("chatWorkspace.split"), icon: "sidebar", onSelect: () => appStore.get().chatWorkspace.pick() } : null,
|
|
574
|
-
inst.runtime === "windows" ? {key:"settings",label:t("app.settings"),icon:"settings",onSelect:() => navigate(sectionPath("agents"))} : null,
|
|
575
|
-
running || !supportsInstanceFeature(inst,"lifecycle") ? null : { key: "start", label: t("chat.start"), icon: "play", onSelect: () => action("start") },
|
|
576
|
-
running && supportsInstanceFeature(inst,"lifecycle") ? { key: "restart", label: t("chat.restart"), icon: "restart", onSelect: () => action("restart") } : null,
|
|
577
|
-
running && supportsInstanceFeature(inst,"lifecycle") ? { key: "stop", label: t("chat.stopInstance"), icon: "stop", onSelect: () => action("stop") } : null,
|
|
578
|
-
// #1958: its identity colour and where it shows (the public link too, as profile edits).
|
|
579
|
-
// #3153 P1: the folder it works in, read-only — this computer's admin only (never over the public link), and not an
|
|
580
|
-
// agent on another machine (the server also refuses General and coordinators: their folder is the fleet's own).
|
|
581
|
-
document.body.dataset.publicLink === "1" || inst.runtime === "windows" || inst.machine_id || inst.general_topic === true ? null
|
|
582
|
-
: { key: "workspace", label: t("chat.wsOpen"), icon: "file", onSelect: () => openWorkspace({ key: `ws:${name}`, instance: name }) },
|
|
583
|
-
colorMenuItem(name, inst),
|
|
584
|
-
// #1629: a person's control over this agent's theme — not over the public link (it only views themes).
|
|
585
|
-
...themeMenuItems(name),
|
|
586
|
-
// #2117: its ambient — why it is not showing here (with the way to change that), and a person's Clear.
|
|
587
|
-
...ambientMenuItems(name, { publicLink: document.body.dataset.publicLink === "1", clear: clearAmbient }),
|
|
588
|
-
// AGEND-181: the activity timeline above each reply (this browser's choice), when the Log is on.
|
|
589
|
-
...(activityOffered() && activityInfo(name)?.level !== "off" ? [
|
|
590
|
-
{ key: "activity", checkbox: true, checked: activityPrefs.get().on, label: t("act.menuActivity"), onSelect: () => setActivityOn(!activityPrefs.get().on) },
|
|
591
|
-
...(activityInfo(name)?.thinking ? [{ key: "thinking", checkbox: true, checked: activityPrefs.get().thinking, disabled: !activityPrefs.get().on, label: t("act.menuThinking"), onSelect: () => setActivityThinking(!activityPrefs.get().thinking) }] : []),
|
|
592
|
-
] : []),
|
|
593
|
-
narrowScreen() ? null : { key: "fullWidth", checkbox: true, checked: wide, label: t("chat.fullWidth"), onSelect: () => setChatWide(!wide) },
|
|
594
|
-
{ key: "delete", label: t("chat.delete"), icon: "trash", danger: true, onSelect: () => setDialog("delete") },
|
|
595
|
-
];
|
|
656
|
+
const items = chatAgentMenuItems({ name, inst, wide, pinCount, onPins: openPins, onDelete: () => setDialog("delete"),
|
|
657
|
+
onDetails: () => (paneNow.current?.navigate || navigate)(detailsPath(name)), onSplit: () => appStore.get().chatWorkspace.pick() });
|
|
596
658
|
const cls = statusClass(inst, exec, awaiting);
|
|
597
659
|
// #1920 phase 3: a guest has this chat only — no Details, View or Log to switch to, no lifecycle, colour, theme,
|
|
598
660
|
// effect management or delete (a guest's status frame carries no model or effort either, so those chips do not show).
|
|
@@ -604,15 +666,17 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
604
666
|
${inst.runtime === "windows" ? html`<span class="tag">Windows</span>` : null}
|
|
605
667
|
${nativeCliTag(inst)}${inst.machine_id ? html`<span class="tag runtime-machine-tag" title=${t("chat.machineName",machineName(inst.machine_id,inst.machine_name))}>${machineName(inst.machine_id,inst.machine_name)}</span>${inst.machine_status !== "online" ? html`<span class="tag runtime-machine-offline">${t(inst.machine_status === "revoked" ? "chat.machineRevoked" : "chat.machineOffline")}</span>` : null}` : null}
|
|
606
668
|
${!guest && supportsInstanceFeature(inst,"commands") ? html`<button type="button" class="hd-chip chat-model-entry" title=${mw("backend")} aria-label=${mw("backend")} onClick=${() => inst.runtime === "windows" ? navigate(sectionPath("agents")) : pick("backend")}>${backendLabel(inst.backend)} ▾</button>
|
|
607
|
-
<button type="button" class="hd-chip chat-model-entry" title=${t("chat.chipModel", modelText(inst))} aria-label=${t("chat.chipModel", modelText(inst))} onClick=${() => pick("model")}>${modelLabel(inst.model || modelText(inst))} ▾</button>` : null}
|
|
669
|
+
<button type="button" class="hd-chip chat-model-entry" title=${t("chat.chipModel", modelText(inst))} aria-label=${t("chat.chipModel", modelText(inst))} onClick=${(e) => { noteModelMenuAnchor(e.currentTarget); pick("model"); }}>${modelLabel(inst.model || modelText(inst))} ▾</button>` : null}
|
|
608
670
|
${effortChip(inst) && supportsInstanceFeature(inst,"effort") ? html`<button type="button" class="hd-chip" title=${t("chat.chipEffort", effortChip(inst))} aria-label=${t("chat.chipEffort", effortChip(inst))} onClick=${() => pick("effort")}>${effortChip(inst)}</button>` : null}`;
|
|
609
671
|
|
|
610
672
|
return html`<div class=${`panel p-chat${wrap ? " wrap-code" : ""}`} data-width=${wide ? "full" : undefined} ref=${view}>
|
|
611
673
|
<${PanelHeader} title=${inst.runtime === "windows" ? inst.display_name || name : headerName(namesOf(inst || { name }, names.primary))} sub=${sub}
|
|
612
|
-
pageControls=${{ CardMenu, card, navKey, usage: supportsInstanceFeature(inst,"usage") }} pageActions=${[
|
|
674
|
+
pageControls=${{ CardMenu, card, navKey, usage: supportsInstanceFeature(inst,"usage"), ...(guest ? {} : { Pins: PinsButton, pins: { name, onOpen: openPins } }) }} pageActions=${[
|
|
613
675
|
...items]}
|
|
614
|
-
nav=${guest ? (guestTrusted() ? html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" guest=${true} />` : null) : html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" />`}
|
|
676
|
+
nav=${guest ? (guestTrusted() ? html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" guest=${true} />` : null) : html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" />`}>${guest ? null : html`<${PinsButton} name=${name} onOpen=${openPins} />`}<${CardMenu} card=${card} /><${HeaderTools} navKey=${navKey} usage=${supportsInstanceFeature(inst,"usage")} />${guest ? null : html`<${ChatMoreMenu} items=${items} name=${name} inst=${inst} card=${card} navKey=${navKey} lease=${lease} />`}</${PanelHeader}>
|
|
615
677
|
<${ChatCard} key=${name} name=${name} card=${card} />
|
|
678
|
+
${pinsOpen ? html`<${PinsDialog} name=${name} onClose=${() => setPinsOpen(false)} onJump=${jumpPin} />` : null}
|
|
679
|
+
${pinCopy ? html`<${PinCopyDialog} pin=${pinCopy} onClose=${() => setPinCopy(null)} />` : null}
|
|
616
680
|
<${AgentWidget} slot="chat_header" widget=${widgetFor(name, "chat_header")} binds=${instanceBinds(inst, exec, awaiting)} />
|
|
617
681
|
<div class="chat-split" ref=${split}>
|
|
618
682
|
<div ref=${effectSurface} class=${`chat-main${theme && theme.background ? " has-th-bg" : ""}`}>
|
|
@@ -627,7 +691,7 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
627
691
|
<${ChatAmbient} name=${name} surface=${effectSurface} part="front" />
|
|
628
692
|
</div>
|
|
629
693
|
<${PreviewPanel} name=${name} split=${split} msgs=${() => store.state.msgs[name] || []} subscribe=${(fn) => store.subscribe(fn)}
|
|
630
|
-
keyOf=${msgKey} reveal=${(k) => thread.current && thread.current
|
|
694
|
+
popout=${previewPopout} keyOf=${msgKey} reveal=${(k) => { const owner = thread.current; import("./preview-popout.js").then(m => m.leavePreviewWindow(), () => {}).then(() => { if (lease.current() && thread.current === owner) owner?.reveal(k); }); }} download=${downloadHtml} allow=${(commit) => setPreviewOptIn(true, commit)} />
|
|
631
695
|
</div>
|
|
632
696
|
<${LightboxHost} owner=${view} />
|
|
633
697
|
${attachmentsSupported ? html`<div data-trust="drop" class="drop-overlay" aria-hidden="true"><div class="drop-card"><${Icon} name="attach" size=${32} /><span>${t("chat.dropHere")}</span></div></div>` : null}
|
|
@@ -673,7 +737,34 @@ export function threadsToLetGo(kept, current, { keep, maxNodes, favorites, prote
|
|
|
673
737
|
}
|
|
674
738
|
return out;
|
|
675
739
|
}
|
|
676
|
-
const narrowScreen = () => typeof matchMedia === "function" && matchMedia("(max-width: 899px)").matches;
|
|
740
|
+
const narrowScreen = () => typeof matchMedia === "function" && matchMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)").matches;
|
|
741
|
+
/**
|
|
742
|
+
* M-3167: the composer's own model picker and context ring, below this width. The header's chips give way to them
|
|
743
|
+
* there (chat-work-bar.css, the same width), so the model is always in one place and never under the agent's tabs.
|
|
744
|
+
*/
|
|
745
|
+
const COMPOSER_TOOLS_Q = "(max-width: 1439px)";
|
|
746
|
+
/** M-3167: whether a media query matches, kept current as the window is resized (read once, it went stale: #3166). */
|
|
747
|
+
function useMedia(query) {
|
|
748
|
+
const read = () => typeof matchMedia === "function" && matchMedia(query).matches;
|
|
749
|
+
const [on, setOn] = useState(read);
|
|
750
|
+
useEffect(() => {
|
|
751
|
+
if (typeof matchMedia !== "function") return undefined;
|
|
752
|
+
const mq = matchMedia(query), changed = () => setOn(mq.matches);
|
|
753
|
+
changed();
|
|
754
|
+
mq.addEventListener?.("change", changed);
|
|
755
|
+
return () => mq.removeEventListener?.("change", changed);
|
|
756
|
+
}, [query]);
|
|
757
|
+
return on;
|
|
758
|
+
}
|
|
759
|
+
/** M-3167: the model's short name for the composer's chip on a desk ("Opus 5.5 (claude-opus-5-5)" → "Opus 5.5"). */
|
|
760
|
+
export function shortModelName(label) {
|
|
761
|
+
const s = String(label || "").replace(/\s*\([^)]*\)\s*$/, "").trim();
|
|
762
|
+
// M-3304: a version is one or two digits each (`5`, `5-5`); a dated id's date is not a minor version —
|
|
763
|
+
// "claude-sonnet-6-20270101" is "Sonnet 6" (was "Sonnet 6.20270101"), "claude-opus-5-5-20261201" "Opus 5.5".
|
|
764
|
+
const family = /^claude-(opus|sonnet|haiku|fable)-(\d{1,2})(?:-(\d{1,2}))?(?![\d.])/i.exec(s);
|
|
765
|
+
if (family) return `${family[1][0].toUpperCase()}${family[1].slice(1).toLowerCase()} ${family[2]}${family[3] ? `.${family[3]}` : ""}`;
|
|
766
|
+
return s;
|
|
767
|
+
}
|
|
677
768
|
/** Let go what the budget does not hold (after `current` was shown, or drew more). */
|
|
678
769
|
function trimKept(current) {
|
|
679
770
|
const kept = [...keptThreads].map(([n, e]) => [n, e.thread.nodes.size]);
|
|
@@ -703,21 +794,31 @@ function threadEntry(name, doc) {
|
|
|
703
794
|
onEmpty: (v) => e.sink?.setEmpty(v && store.allHidden(name) ? "hidden" : v),
|
|
704
795
|
setPreviewOptIn, copyText, download: downloadHtml, toggleWrap,
|
|
705
796
|
clickReplyButton: (id, index) => store.clickReplyButton(name, id, index), // #1266
|
|
797
|
+
contactBadge: (x) => { installBadgeRefresh(); return contactBadgeHtml(x); }, // M-3339: 聯絡申請 #R… / 已准轉交 #R… (kept current)
|
|
798
|
+
canResend: (message) => store.canResend(name, message),
|
|
799
|
+
resendMessage: (key) => store.resendMessage(name, key),
|
|
706
800
|
retryOutgoing: (clientId) => store.retryOutgoing(name, clientId), // a failed send's Retry and Delete
|
|
707
801
|
deleteOutgoing: (clientId) => store.deleteOutgoing(name, clientId),
|
|
708
802
|
putBackOutgoing: (clientId) => { recordEdit(composerField(name)); store.putBackOutgoing(name, clientId); }, // undoable, as typing
|
|
709
803
|
// #2272: reply to a message (the bar above the composer), and show the one a reply quotes.
|
|
710
804
|
startReply: (x) => { store.startReply(name, x); composerField(name)?.focus(); },
|
|
711
805
|
findQuoted: (key) => store.findQuoted(name, key),
|
|
806
|
+
// M-3272: scroll-back — older at the very top, the unloaded newest end again at the bottom (chat-store.js loadOlder).
|
|
807
|
+
onTop: () => { if (!guestPage()) void store.loadOlder(name); }, // #4103 review N1: a guest is refused; never asked
|
|
808
|
+
onBottom: () => { void store.loadNewer(name); },
|
|
809
|
+
detached: () => store.pagingState(name).detached,
|
|
712
810
|
notice: (text) => toast(text, false),
|
|
713
811
|
replyButtonBusy: (id) => store.state.rbBusy.has(id),
|
|
714
812
|
pollMine: (id) => store.state.pollMine[id], // #1823: this device's own vote
|
|
715
813
|
serverNow: () => Date.now() + store.state.clockSkew, // #1823: the deadline is the server's
|
|
716
814
|
panel: { shown: shownKey, open: (spec, o) => openPanel(spec, o), version: panelVersion, claim: claimPanel, claims: panelClaims, // #1481, #1704
|
|
717
815
|
openMarkdown: (spec) => openMarkdown(spec) }, // M-2448: a Markdown file in the side panel
|
|
816
|
+
previewFile: !guestPage() ? (spec, opener, msgKey) => previewReplyFile(name, spec, opener, msgKey) : undefined,
|
|
817
|
+
previewFileLabel: replyPreviewLabel,
|
|
718
818
|
openImage: (links, img) => openLightbox(links, img, annotateFor(name, img)), // an image, full size, in the page (#3727: with 標註)
|
|
719
819
|
emojis: (id) => !!emojiIndex && emojiIndex.known(id), // #1630: the fleet's server emoji
|
|
720
820
|
mentions: (kind, id) => (mentionIndex ? mentionIndex.name(kind, id) : null), // #1682: mention names
|
|
821
|
+
taskRefs: taskRefIndex ? taskChipInfo : undefined, // A person's and an agent's task numbers as chips
|
|
721
822
|
activity: { mount: (node, group) => mountActivity(node, group, activityCtx(name)) }, // AGEND-181: the timeline's blocks
|
|
722
823
|
});
|
|
723
824
|
e.thread = thread;
|
|
@@ -727,10 +828,20 @@ function threadEntry(name, doc) {
|
|
|
727
828
|
function follow(name, thread) {
|
|
728
829
|
// #1630: the server-emoji list is read once a message shows a tag; when it arrives, those messages are drawn again.
|
|
729
830
|
// #1682: the same for mention names — asked for the ids the messages carry; when names arrive, drawn again.
|
|
730
|
-
const wantEmojis = (msgs) => { if (emojiIndex && emojiIndex.wants(msgs)) emojiIndex.ensure(); if (mentionIndex) mentionIndex.ensure(msgs); };
|
|
831
|
+
const wantEmojis = (msgs) => { if (emojiIndex && emojiIndex.wants(msgs)) emojiIndex.ensure(); if (mentionIndex) mentionIndex.ensure(msgs); if (taskRefIndex) taskRefIndex.ensure(msgs); };
|
|
731
832
|
const offs = [];
|
|
732
833
|
if (emojiIndex) offs.push(emojiIndex.subscribe(() => thread.render(rowsOf(name))));
|
|
733
834
|
if (mentionIndex) offs.push(mentionIndex.subscribe(() => thread.render(rowsOf(name))));
|
|
835
|
+
// The cards the messages name — drawn again when their answer arrives, and read again when the board changed.
|
|
836
|
+
if (taskRefIndex) {
|
|
837
|
+
offs.push(taskRefIndex.subscribe(() => thread.render(rowsOf(name))));
|
|
838
|
+
const sub = appStore.get().streamOn;
|
|
839
|
+
if (typeof sub === "function") {
|
|
840
|
+
let timer = null;
|
|
841
|
+
const off = sub("tasks", () => { if (timer) clearTimeout(timer); timer = setTimeout(() => { timer = null; taskRefIndex.refresh(); }, 400); });
|
|
842
|
+
offs.push(() => { if (timer) clearTimeout(timer); if (typeof off === "function") off(); });
|
|
843
|
+
}
|
|
844
|
+
}
|
|
734
845
|
wantEmojis(store.state.msgs[name]);
|
|
735
846
|
// AGEND-181/197: the activity feed — this instance's steps while the chat is shown (the Log's own read, live by steps_tick,
|
|
736
847
|
// or by a poll when the stream has fallen back to polling); switched by this browser's Show activity / Show thinking.
|
|
@@ -763,8 +874,11 @@ function follow(name, thread) {
|
|
|
763
874
|
}
|
|
764
875
|
if (instance !== name) return;
|
|
765
876
|
if (kind === "msgs") { thread.render(rowsOf(name)); wantEmojis(store.state.msgs[name]); if (feed) feed.nudge(); } // a message came or went: read the steps now
|
|
877
|
+
// M-3272: a page of scroll-back (older at the top, newer at the bottom): drawn with the reader kept where they were.
|
|
878
|
+
else if (kind === "page") { thread.render(rowsOf(name), { keep: true }); wantEmojis(store.state.msgs[name]); }
|
|
766
879
|
else if (kind === "progress") thread.progress(); // an upload moved: its bar, in place
|
|
767
|
-
|
|
880
|
+
// Sent while scrolled back past an unloaded newest end: the live chat again, then its end (M-3272).
|
|
881
|
+
else if (kind === "sent") { if (store.pagingState(name).detached) void store.backToLatest(name).then(() => thread.jumpLatest()); else thread.jumpLatest(); }
|
|
768
882
|
}));
|
|
769
883
|
offs.push(P() ? P().onChange(() => thread.refreshCards()) : () => {});
|
|
770
884
|
offs.push(panelStore.subscribe(() => thread.refreshCards())); // a card shows whether the panel has its block
|
|
@@ -772,11 +886,14 @@ function follow(name, thread) {
|
|
|
772
886
|
}
|
|
773
887
|
|
|
774
888
|
/** The thread's view: Preact owns the scroller and the jump pill; the kept list (chat-thread.js) is put inside it. */
|
|
889
|
+
export { JUMP_IDLE_MS };
|
|
775
890
|
function Thread({ name, label = name, th, bindings }) {
|
|
776
891
|
const pane = paneContext.usePane?.(), paneNow = useRef(pane); paneNow.current = pane;
|
|
777
892
|
const scroller = useRef(null), host = useRef(null);
|
|
778
893
|
const [jump, setJump] = useState({ show: false, unseen: 0 });
|
|
779
894
|
const [empty, setEmpty] = useState(false);
|
|
895
|
+
// M-3492/M-3493: 最新 fades out JUMP_IDLE_MS after the last scroll (shared with the Hub's threads: jump-idle.js).
|
|
896
|
+
const jumpIdle = useJumpIdle(scroller, jump.show, name);
|
|
780
897
|
useLayoutEffect(() => { keptThreads.get(name)?.list.setAttribute("aria-label",t("chat.conversationWith",label)); },[name,label]);
|
|
781
898
|
useLayoutEffect(() => {
|
|
782
899
|
const doc = host.current.ownerDocument;
|
|
@@ -809,7 +926,13 @@ function Thread({ name, label = name, th, bindings }) {
|
|
|
809
926
|
t, messageOf: thread.messageOf, rove: thread.rove, reply: (x) => { store.startReply(name, x); bindings.input.current?.focus(); },
|
|
810
927
|
copyText, notice: (text, ok = true) => toast(text, ok),
|
|
811
928
|
linkOf: (x) => `${location.origin}/ui/chat/${encodeURIComponent(name)}#m=${msgKey(x)}`,
|
|
929
|
+
// M-3271: Pin / Unpin — an admin's (the host answers who may: pinOffered), on a stored agent or person message.
|
|
930
|
+
pin: (x) => { const key = msgKey(x); void setPin(name, key, !isPinned(name, key)); },
|
|
931
|
+
pinned: (x) => isPinned(name, msgKey(x)),
|
|
932
|
+
canPin: (x) => !guestPage() && pinOffered(name) && (x.role === "agent" || x.role === "user") && /^[0-9a-f]{1,32}-\d{1,15}$/.test(msgKey(x)),
|
|
812
933
|
});
|
|
934
|
+
// M-3326: a table's cells selected as a spreadsheet's (a desk: drag down a column or across a block; Ctrl/Cmd+C as TSV).
|
|
935
|
+
const offCells = installTableSelection(ls, { phone: () => typeof matchMedia === "function" && matchMedia("(pointer: coarse)").matches });
|
|
813
936
|
// M-2789: select a passage in a message → 「引用」 → it goes into the composer as a quote at the caret, repeatable.
|
|
814
937
|
const offQuote = installQuoteSelection(ls, {
|
|
815
938
|
field: () => bindings.input.current,
|
|
@@ -856,7 +979,7 @@ function Thread({ name, label = name, th, bindings }) {
|
|
|
856
979
|
return () => {
|
|
857
980
|
window.removeEventListener("hashchange", onHash);
|
|
858
981
|
unfollow();
|
|
859
|
-
offActions(); offQuote();
|
|
982
|
+
offActions(); offQuote(); offCells();
|
|
860
983
|
sc.removeEventListener("scroll", onScroll);
|
|
861
984
|
ls.removeEventListener("click", thread.onClick);
|
|
862
985
|
if (mountedThreads.get(name) === owner) mountedThreads.delete(name);
|
|
@@ -877,7 +1000,8 @@ function Thread({ name, label = name, th, bindings }) {
|
|
|
877
1000
|
<div class="thread-host" ref=${host}></div>
|
|
878
1001
|
${empty === "hidden" ? html`<${Empty} icon="chat" title=${t("chat.guestAllHidden")} hint=${t("chat.guestAllHiddenHint")} />`
|
|
879
1002
|
: empty ? html`<${Empty} icon="chat" title=${t("chat.noMessages")} />` : null}
|
|
880
|
-
</div><div class="jump-dock">${jump.show ? html`<button data-trust="thread-control" type="button" class
|
|
1003
|
+
</div><div class="jump-dock">${jump.show ? html`<button data-trust="thread-control" type="button" ref=${jumpIdle.ref} class=${`jump-latest${jumpIdle.idle ? " is-idle" : ""}`} onClick=${() => { const t2 = th.current; if (!t2) return; if (store.pagingState(name).detached) void store.backToLatest(name).then(() => t2.jumpLatest()); else t2.jumpLatest(); }}
|
|
1004
|
+
onFocus=${jumpIdle.onFocus} onBlur=${jumpIdle.onBlur}
|
|
881
1005
|
aria-label=${jump.unseen > 0 ? t("chat.newBelow", jump.unseen) : t("chat.jumpLatest")}>
|
|
882
1006
|
<${Icon} name="down" size=${16} /><span class="jump-text">${jump.unseen > 0 ? t("chat.newBelow", jump.unseen) : t("chat.jumpLatest")}</span>${
|
|
883
1007
|
/* The user (before 2.4.0-beta.3): no unread counts for now — a phone's round button has no badge. */ ""}</button>` : null}</div>
|
|
@@ -887,7 +1011,7 @@ function Thread({ name, label = name, th, bindings }) {
|
|
|
887
1011
|
// Missing optional chunks on an older server never prevent chat from loading. No shared export added.
|
|
888
1012
|
function SubagentProgress({ name }) {
|
|
889
1013
|
const [Component, setComponent] = useState(null);
|
|
890
|
-
const offered = typeof document !== "undefined" && document.body?.dataset.subagents === "1" && !guestPage()
|
|
1014
|
+
const offered = typeof document !== "undefined" && document.body?.dataset.subagents === "1" && !guestPage(); // M-3278: the public link's admin too
|
|
891
1015
|
useEffect(() => {
|
|
892
1016
|
if (!offered) return;
|
|
893
1017
|
let live = true;
|
|
@@ -901,27 +1025,185 @@ function SubagentProgress({ name }) {
|
|
|
901
1025
|
function Dock({ name, inst, lease, exec, awaiting, workingLabel, bindings, ids, focused }) {
|
|
902
1026
|
useChatTick(name, ["state"]);
|
|
903
1027
|
const s = store.state;
|
|
1028
|
+
// M-3166 (Argon 0): a phone's one line above the box — model · effort · context, or what the agent is doing — instead of
|
|
1029
|
+
// the working bar; the line under the box goes with it (its Not verified is this line's right end).
|
|
1030
|
+
const metaLine = useMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)") && !guestPage();
|
|
904
1031
|
return html`<div data-trust="composer" class="dock"><div class="dock-col">
|
|
905
1032
|
<${Prompts} name=${name} />
|
|
906
1033
|
<${SubagentProgress} name=${name} />
|
|
907
|
-
|
|
1034
|
+
<div class="composer-hit" data-composer-focus onPointerDown=${focusComposerStrip} onClick=${focusComposerStrip}>
|
|
1035
|
+
${metaLine ? html`<${ChatMetaLine} ids=${ids} name=${name} inst=${inst} lease=${lease} exec=${exec} awaiting=${awaiting} />`
|
|
1036
|
+
: html`<${WorkBar} ids=${ids} name=${name} lease=${lease} exec=${exec} awaiting=${awaiting} workingLabel=${workingLabel} />`}
|
|
908
1037
|
<${CommandCard} name=${name} lease=${lease} />
|
|
909
1038
|
<${QuickActions} name=${name} inst=${inst} lease=${lease} />
|
|
910
1039
|
${s.waking[name] ? html`<p class="send-waking" role="status">${t("chat.waking", name)}</p>` : null}
|
|
911
1040
|
<${Composer} name=${name} inst=${inst} bindings=${bindings} ids=${ids} focused=${focused} label=${composerLabel(inst, name)} lease=${lease} busy=${R().isBusy(exec)} />
|
|
912
|
-
|
|
913
|
-
class="hint" title=${t(guestPage() || !supportsInstanceFeature(inst,"commands") ? "chat.guestMore" : "chat.composerMore")}>${t(supportsInstanceFeature(inst,"commands") ? touchScreen() ? "chat.composerHintTouch" : "chat.composerHint" : touchScreen() ? "chat.nativeComposerHintTouch" : "chat.nativeComposerHint")}</span></div
|
|
914
|
-
</div></div>`;
|
|
1041
|
+
${metaLine ? null : html`<div class="composer-row" data-composer-focus>${guestPage() ? html`<span class="guest-note" data-composer-focus title=${t("chat.guestNote")}>${t("chat.guestNote")}</span>` : html`<${ComposerAuth} />`}<span
|
|
1042
|
+
class="hint" data-composer-focus title=${t(guestPage() || !supportsInstanceFeature(inst,"commands") ? "chat.guestMore" : "chat.composerMore")}>${t(supportsInstanceFeature(inst,"commands") ? touchScreen() ? "chat.composerHintTouch" : "chat.composerHint" : touchScreen() ? "chat.nativeComposerHintTouch" : "chat.nativeComposerHint")}</span></div>`}
|
|
1043
|
+
</div></div></div>`;
|
|
915
1044
|
}
|
|
916
1045
|
|
|
917
|
-
/** #2233: the public link's page — the dashboard's Sign in is refused there, so it is never offered (#2262 review). */
|
|
918
|
-
const publicLinkPage = () => typeof document !== "undefined" && !!document.body && document.body.dataset.publicLink === "1";
|
|
919
1046
|
/** #2233: a backend's "not signed in" choice offers Sign in (the module behind the session gate, loaded when asked). */
|
|
920
1047
|
function openBackendSignIn(backend) {
|
|
921
1048
|
import("./backend-signin.js").then((m) => m.openSignIn({ backend }), () => toast(t("app.loadFailed"), false));
|
|
922
1049
|
}
|
|
923
1050
|
|
|
1051
|
+
/** Reports contain plain strings; HTM escapes every title, header, cell and note. */
|
|
1052
|
+
function CommandReport({ report, command }) {
|
|
1053
|
+
const [filter, setFilter] = useState("");
|
|
1054
|
+
const [expanded, setExpanded] = useState(false);
|
|
1055
|
+
const trigger = useRef(null);
|
|
1056
|
+
const wasExpanded = useRef(false);
|
|
1057
|
+
// The inline trigger is recreated when the modal closes; restore focus after its ref is mounted.
|
|
1058
|
+
useLayoutEffect(() => {
|
|
1059
|
+
if (wasExpanded.current && !expanded) trigger.current?.focus({ preventScroll: true });
|
|
1060
|
+
wasExpanded.current = expanded;
|
|
1061
|
+
}, [expanded]);
|
|
1062
|
+
const query = filter.trim().toLocaleLowerCase();
|
|
1063
|
+
const rows = command === "status" && query
|
|
1064
|
+
? report.rows.filter(row => row.some(value => value.toLocaleLowerCase().includes(query))) : report.rows;
|
|
1065
|
+
const view = html`<section class=${`cmd-report cmd-report-${command}${expanded ? " cmd-report-expanded" : ""}`} aria-label=${report.title}>
|
|
1066
|
+
${expanded ? null : html`<h3>${report.title}</h3>`}
|
|
1067
|
+
<div class="cmd-report-tools">
|
|
1068
|
+
${command === "status" ? html`<label class="field"><span class="sr-only">${t("chat.cmdReportFilter")}</span>
|
|
1069
|
+
<input type="search" aria-label=${t("chat.cmdReportFilter")} placeholder=${t("chat.cmdReportFilter")}
|
|
1070
|
+
value=${filter} onInput=${e => setFilter(e.target.value)} /></label>` : null}
|
|
1071
|
+
${expanded ? null : html`<button type="button" class="btn btn-sm btn-ghost" ref=${trigger} data-report-expand onClick=${() => setExpanded(true)}>${t("chat.cmdReportOpen")}</button>`}
|
|
1072
|
+
</div>
|
|
1073
|
+
${command === "status" ? html`<p class="note cmd-report-count">${query ? t("chat.cmdReportMatches", rows.length, report.rows.length) : t("chat.cmdReportCount", report.rows.length)}${report.notes[0] ? " · " + report.notes[0] : ""}</p>` : null}
|
|
1074
|
+
<div class="cmd-report-body" tabIndex="0" aria-label=${report.title}>
|
|
1075
|
+
${rows.length ? html`<table class=${command === "status" ? "us-table" : "cmd-metrics"}><thead><tr>${report.columns.map(label => html`<th scope="col">${label}</th>`)}</tr></thead>
|
|
1076
|
+
<tbody>${rows.map(row => html`<tr>${row.map((value, i) => html`<td data-label=${report.columns[i]}>${value}</td>`)}</tr>`)}</tbody></table>` : query ? html`<p class="note">${t("chat.cmdReportEmpty")}</p>` : null}
|
|
1077
|
+
${(command === "status" ? report.notes.slice(1) : report.notes).map(note => html`<p class="note">${note}</p>`)}
|
|
1078
|
+
</div>
|
|
1079
|
+
</section>`;
|
|
1080
|
+
return expanded ? html`<div class="cmd-report-modal"><${Dialog} title=${report.title} wide onClose=${() => setExpanded(false)}>${view}</${Dialog}></div>` : view;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
924
1083
|
/** #1269: what the last chat command answered — its text, why it was refused, or a list to choose from. */
|
|
1084
|
+
// M-3166 PR 3: the model menu's words (kept beside their caller: a retained chat dictionary has no such words).
|
|
1085
|
+
register("modelMenu", {
|
|
1086
|
+
en: { title: "Model", effort: "Reasoning effort", loading: "Loading models…", opus: "Most capable, for complex and long work",
|
|
1087
|
+
sonnet: "Fast and capable, for everyday work", haiku: "Fastest, for simple and high-volume work", close: "Close" },
|
|
1088
|
+
"zh-TW": { title: "模型", effort: "推理強度", loading: "正在讀取模型…", opus: "最強,適合複雜、長時間的工作",
|
|
1089
|
+
sonnet: "速度與品質兼顧,適合日常工作", haiku: "最快,適合簡單、大量的工作", close: "關閉" },
|
|
1090
|
+
});
|
|
1091
|
+
const mm = (key, ...args) => t(`modelMenu.${key}`, ...args);
|
|
1092
|
+
/** Where the model control that opened the menu is (a desk anchors the menu under it); null: under the box's left end. */
|
|
1093
|
+
let modelMenuAnchor = null, modelMenuOpener = null;
|
|
1094
|
+
/** The control that opens the menu: where it sits (the menu goes by it) and itself (focus goes back to it on close, M-3192). */
|
|
1095
|
+
export function noteModelMenuAnchor(el) {
|
|
1096
|
+
try { modelMenuAnchor = el ? el.getBoundingClientRect() : null; } catch { modelMenuAnchor = null; }
|
|
1097
|
+
modelMenuOpener = el || null;
|
|
1098
|
+
}
|
|
1099
|
+
/** A model's one line: its family's (Opus / Sonnet / Haiku), else its own id when the name doesn't say it. */
|
|
1100
|
+
function modelDescription(o, name) {
|
|
1101
|
+
const s = `${o.id} ${o.label}`;
|
|
1102
|
+
const family = /\bopus\b|claude-opus/i.test(s) ? "opus" : /\bsonnet\b|claude-sonnet/i.test(s) ? "sonnet" : /\bhaiku\b|claude-haiku/i.test(s) ? "haiku" : "";
|
|
1103
|
+
if (o.disabled) return String(o.disabled);
|
|
1104
|
+
if (family) return mm(family);
|
|
1105
|
+
return o.id && o.id !== name ? o.id : "";
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* M-3166 PR 3 (the user's OK of round 2): /model as a menu. One row per model — its name and one line, ✓ on the current
|
|
1109
|
+
* one; "More models" in place; the current model's reasoning effort as one segmented row; Refresh in the head. Picking a
|
|
1110
|
+
* model or an effort runs the same commands the card ran (its result then shows as the card does). A failed Refresh says
|
|
1111
|
+
* so in the menu and keeps the list (M-2731); a refused switch (no list with it) is the card's.
|
|
1112
|
+
*/
|
|
1113
|
+
function ModelMenu({ name, c, lease }) {
|
|
1114
|
+
const narrow = useMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)");
|
|
1115
|
+
const close = () => store.dismissCommand(name);
|
|
1116
|
+
const alive = () => lease.current();
|
|
1117
|
+
const run = (args, action) => store.runCommand(name, "model", args, { alive, ...(action ? { action } : {}) });
|
|
1118
|
+
// The control that opened it is this opening's only: gone with the menu, a later typed /model is placed by the box.
|
|
1119
|
+
// M-3192: on a desk, focus goes back where it came from when the menu closes — that control, else the box (a typed /model).
|
|
1120
|
+
useEffect(() => () => {
|
|
1121
|
+
const back = modelMenuOpener;
|
|
1122
|
+
modelMenuAnchor = null; modelMenuOpener = null;
|
|
1123
|
+
if (narrow || typeof document === "undefined") return;
|
|
1124
|
+
const inMenu = !document.activeElement || document.activeElement === document.body || !!document.activeElement.closest?.(".model-menu-pop");
|
|
1125
|
+
if (!inMenu) return; // the person moved on (clicked elsewhere): leave their focus be
|
|
1126
|
+
const to = back && back.isConnected !== false ? back : document.getElementById("msgIn");
|
|
1127
|
+
try { to?.focus?.(); } catch { /* gone */ }
|
|
1128
|
+
}, []);
|
|
1129
|
+
const pop = useRef(null);
|
|
1130
|
+
// M-3192: a desk's menu takes the keyboard — focus on the model in use (else the first), ↑ ↓ Home End move between its
|
|
1131
|
+
// buttons (rows, More, the effort row), Enter picks (they are buttons), Escape closes, Tab goes on as anywhere.
|
|
1132
|
+
const items = () => [...(pop.current?.querySelectorAll(".model-menu button:not([disabled])") || [])];
|
|
1133
|
+
useEffect(() => {
|
|
1134
|
+
if (narrow || !pop.current || pop.current.contains(document.activeElement)) return;
|
|
1135
|
+
const first = pop.current.querySelector(".model-menu-row.on:not([disabled])") || items()[0];
|
|
1136
|
+
try { first?.focus?.(); } catch { /* none */ }
|
|
1137
|
+
}, [narrow, c.choices?.options?.length || 0, !!c.busy]);
|
|
1138
|
+
const onKeys = (e) => {
|
|
1139
|
+
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key)) return;
|
|
1140
|
+
const list = items(); if (!list.length) return;
|
|
1141
|
+
e.preventDefault();
|
|
1142
|
+
const at = list.indexOf(document.activeElement);
|
|
1143
|
+
const next = e.key === "Home" ? 0 : e.key === "End" ? list.length - 1
|
|
1144
|
+
: e.key === "ArrowDown" ? (at + 1) % list.length : (at <= 0 ? list.length - 1 : at - 1);
|
|
1145
|
+
try { list[next].focus(); } catch { /* gone */ }
|
|
1146
|
+
};
|
|
1147
|
+
const options = c.choices?.options || [], current = c.choices?.current ?? null, actions = c.choices?.actions || [];
|
|
1148
|
+
const refresh = actions.find((a) => a === "refresh" || a === "refreshAll");
|
|
1149
|
+
const cur = options.find((o) => o.id === current && o.effort);
|
|
1150
|
+
useEffect(() => {
|
|
1151
|
+
if (narrow) return undefined;
|
|
1152
|
+
const esc = (e) => { if (e.key === "Escape") { e.stopPropagation(); close(); } };
|
|
1153
|
+
document.addEventListener("keydown", esc, true);
|
|
1154
|
+
return () => document.removeEventListener("keydown", esc, true);
|
|
1155
|
+
}, [narrow]);
|
|
1156
|
+
const rows = options.filter((o) => !o.signIn).map((o) => {
|
|
1157
|
+
const label = String(o.label || o.id).replace(/^✓\s*/, ""), short = shortModelName(modelLabel(label)), on = o.id === current;
|
|
1158
|
+
const desc = modelDescription(o, short);
|
|
1159
|
+
return html`<button key=${o.id} type="button" role="menuitemradio" aria-checked=${on ? "true" : "false"} class=${`model-menu-row${on ? " on" : ""}`}
|
|
1160
|
+
disabled=${c.busy || !!o.disabled} title=${label} onClick=${() => (on ? close() : run(o.id))}>
|
|
1161
|
+
<span class="model-menu-text"><b>${short}</b>${desc ? html`<small>${desc}</small>` : null}</span>${on ? html`<${Icon} name="check" size=${18} />` : null}</button>`;
|
|
1162
|
+
});
|
|
1163
|
+
const body = html`<div class="model-menu" role="menu" aria-label=${mm("title")}>
|
|
1164
|
+
${narrow ? null : html`<div class="model-menu-head"><span>${mm("title")}</span>${refresh ? html`<button type="button" class="icon-btn" data-model-action=${refresh} title=${mw("refresh")}
|
|
1165
|
+
aria-label=${mw("refresh")} disabled=${c.busy} onClick=${() => run(c.choices.args || "", refresh)}><${Icon} name="restart" size=${16} /></button>` : null}</div>`}
|
|
1166
|
+
${c.error ? html`<p class="err model-menu-error" role="alert">${c.error}</p>` : null}
|
|
1167
|
+
${c.busy && !options.length ? html`<p class="note model-menu-loading" role="status">${mm("loading")}</p>` : rows}
|
|
1168
|
+
${actions.includes("more") ? html`<button type="button" class="model-menu-more" data-model-action="more" disabled=${c.busy} onClick=${() => run("", "more")}>${mw("more")}</button>` : null}
|
|
1169
|
+
${cur ? html`<div class="model-menu-label">${mm("effort")}</div>
|
|
1170
|
+
<div class="model-menu-seg" role="group" aria-label=${mm("effort")}>${cur.effort.levels.map((level) => html`<button key=${level} type="button"
|
|
1171
|
+
class=${level === cur.effort.current ? "on" : ""} aria-pressed=${level === cur.effort.current ? "true" : "false"} disabled=${c.busy}
|
|
1172
|
+
onClick=${() => store.runCommand(name, "effort", level, { alive })}>${effortWord(level)}</button>`)}</div>` : null}
|
|
1173
|
+
${options.some((o) => o.signIn) ? html`<div class="model-menu-signin">${options.filter((o) => o.signIn).map((o) => html`<button
|
|
1174
|
+
key=${`signin:${o.signIn}`} type="button" class="btn btn-sm btn-primary" onClick=${() => openBackendSignIn(o.signIn)}>${t("chat.cmdSignInTo", o.signIn)}</button>`)}</div>` : null}
|
|
1175
|
+
</div>`;
|
|
1176
|
+
if (narrow) return html`<${Dialog} title=${mm("title")} onClose=${close} cls="model-menu-sheet"
|
|
1177
|
+
tools=${refresh ? html`<button type="button" class="icon-btn" data-model-action=${refresh} title=${mw("refresh")} aria-label=${mw("refresh")} disabled=${c.busy}
|
|
1178
|
+
onClick=${() => run(c.choices.args || "", refresh)}><${Icon} name="restart" size=${16} /></button>` : null}>${body}</${Dialog}>`;
|
|
1179
|
+
// A desk: under the control that opened it (else above the box's left end); a click outside closes it.
|
|
1180
|
+
const place = (el) => {
|
|
1181
|
+
if (!el) return;
|
|
1182
|
+
const at = modelMenuAnchor, w = el.offsetWidth || 320;
|
|
1183
|
+
const vw = globalThis.innerWidth || 1280, vh = globalThis.innerHeight || 800; // (a test DOM has no viewport)
|
|
1184
|
+
let left, top;
|
|
1185
|
+
// M-3304 (the user, beta.11): under the control — or above it when it sits in the lower half (the composer's chip) — and
|
|
1186
|
+
// never over it: a list longer than the room there scrolls within the menu (its height capped to that room), instead
|
|
1187
|
+
// of the menu moving up over the control and the header. Its left at the control's (kept in the viewport).
|
|
1188
|
+
if (at) {
|
|
1189
|
+
const up = at.top > vh / 2, room = Math.max(160, Math.floor(up ? at.top - 6 - 8 : vh - at.bottom - 6 - 8));
|
|
1190
|
+
el.style.setProperty("max-height", `${room}px`);
|
|
1191
|
+
const h = Math.min(el.offsetHeight || 0, room);
|
|
1192
|
+
left = Math.min(Math.max(8, at.left), vw - w - 8);
|
|
1193
|
+
top = up ? Math.max(8, at.top - 6 - h) : at.bottom + 6;
|
|
1194
|
+
} else {
|
|
1195
|
+
const box = el.closest(".p-chat")?.querySelector(".composer-box")?.getBoundingClientRect();
|
|
1196
|
+
el.style.setProperty("max-height", `${Math.max(160, Math.floor((box ? box.top : vh) - 16))}px`);
|
|
1197
|
+
const h = el.offsetHeight || 0;
|
|
1198
|
+
left = box ? box.left : 16; top = box ? Math.max(8, box.top - h - 8) : 72;
|
|
1199
|
+
}
|
|
1200
|
+
el.style.setProperty("left", `${Math.round(left)}px`); el.style.setProperty("top", `${Math.round(top)}px`);
|
|
1201
|
+
};
|
|
1202
|
+
return html`<div class="model-menu-scrim" onClick=${close}></div><div class="model-menu-pop" ref=${(el) => { pop.current = el; place(el); }} onKeyDown=${onKeys}>${body}</div>`;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
const usesModelMenu = c => c?.command === "model" && (c.choices ? c.choices.step !== "backend" : c.busy && !c.error && !c.args);
|
|
1206
|
+
|
|
925
1207
|
function CommandCard({ name, lease }) {
|
|
926
1208
|
const c = store.state.commands[name];
|
|
927
1209
|
if (!c) return null;
|
|
@@ -930,6 +1212,11 @@ function CommandCard({ name, lease }) {
|
|
|
930
1212
|
const refresh = actions.find(a => a === "refresh" || a === "refreshAll");
|
|
931
1213
|
// The phone's second level: a /model option with an `effort` (its levels and the one set) opens its own list, with a way back.
|
|
932
1214
|
const [sub, setSub] = useState(null);
|
|
1215
|
+
// M-3166 PR 3 (the user's OK of round 2): /model's pick list is a menu — anchored under the model control on a desk, a
|
|
1216
|
+
// bottom sheet on a phone — not a card above the box. A failure, its result text and /backend stay the card.
|
|
1217
|
+
// The menu is /model's list: shown with its choices, or while that list loads. A model being switched to (a pick from the
|
|
1218
|
+
// menu, a typed "/model <id>") is the card's, as before (#4003 review).
|
|
1219
|
+
if (usesModelMenu(c)) return html`<${ModelMenu} name=${name} c=${c} lease=${lease} />`;
|
|
933
1220
|
const open = sub && sub.for === c.choices ? c.choices.options.find((o) => o.id === sub.id && o.effort) : null;
|
|
934
1221
|
const pickEffort = async (model, level) => {
|
|
935
1222
|
setSub(null);
|
|
@@ -943,7 +1230,7 @@ function CommandCard({ name, lease }) {
|
|
|
943
1230
|
${c.busy ? html`<span class="wait">${t("chat.cmdRunning", c.command)}</span>` : html`<button type="button" class="icon-btn" title=${t("chat.cmdDismiss")}
|
|
944
1231
|
aria-label=${t("chat.cmdDismiss")} onClick=${() => store.dismissCommand(name)}><${Icon} name="close" size=${14} /></button>`}</div></div>
|
|
945
1232
|
${c.error ? html`<p class="cmd-text">${c.error}</p>` : null}
|
|
946
|
-
${c.text ? html`<pre class="cmd-text">${c.text}</pre>` : null}
|
|
1233
|
+
${c.report ? html`<${CommandReport} report=${c.report} command=${c.command} />` : c.text ? html`<pre class="cmd-text">${c.text}</pre>` : null}
|
|
947
1234
|
${c.compact ? html`<p class="cmd-text cmd-phase">${c.compact === "running" ? t("chat.compactRunning")
|
|
948
1235
|
: c.compact === "done" ? t("chat.compactDone") : c.compact === "timeout" ? t("chat.compactTimeout", "10")
|
|
949
1236
|
: c.compact === "lost" ? t("chat.compactLost") : c.compact === "not_compacted" ? t("chat.compactNotCompacted") : t("chat.compactUnknown")}</p>` : null}
|
|
@@ -963,7 +1250,7 @@ function CommandCard({ name, lease }) {
|
|
|
963
1250
|
})}</div>` : null}
|
|
964
1251
|
${c.command === "model" && c.choices ? html`<p class="note">${mw("selectionHint")}</p>` : null}
|
|
965
1252
|
${actions.includes("more") ? html`<div class="cmd-model-more"><button type="button" class="btn btn-sm btn-ghost" data-model-action="more" disabled=${c.busy} onClick=${() => run("", "more")}>${mw("more")}</button></div>` : null}
|
|
966
|
-
${c.choices && c.choices.options.some((o) => o.signIn)
|
|
1253
|
+
${c.choices && c.choices.options.some((o) => o.signIn) ? html`<div class="cmd-choices" role="group" aria-label=${t("chat.cmdSignIn")}>${c.choices.options.filter((o) => o.signIn).map((o) => html`<button
|
|
967
1254
|
key=${`signin:${o.signIn}`} type="button" class="btn btn-sm btn-primary" onClick=${() => openBackendSignIn(o.signIn)}>${t("chat.cmdSignInTo", o.signIn)}</button>`)}</div>` : null}
|
|
968
1255
|
</div>`;
|
|
969
1256
|
}
|
|
@@ -994,13 +1281,25 @@ function QuickActions({ name, inst, lease }) {
|
|
|
994
1281
|
function Prompts({ name }) {
|
|
995
1282
|
const list = store.promptsFor(name);
|
|
996
1283
|
if (!list.length) return null;
|
|
997
|
-
return html`<div data-trust="permission" class="prompts" aria-live="polite">${list.map(p => html`<div key=${p.nonce} class=${`prompt${p.resolved ? " done" : ""}`} role="group" aria-label=${p.text}>
|
|
1284
|
+
return html`<div data-trust="permission" class="prompts" aria-live="polite">${list.map(p => p.view && p.view.kind === "usage-credits" && !p.resolved ? html`<${UsageCreditsPrompt} key=${p.nonce} p=${p} />` : html`<div key=${p.nonce} class=${`prompt${p.resolved ? " done" : ""}`} role="group" aria-label=${p.text}>
|
|
998
1285
|
<div class="txt">${p.resolved ? (p.outcome || t("chat.promptGone")) : textLinkSegments(p.text, p.links).map(sg => sg.href ? html`<a data-trust="link" class="st-link" href=${sg.href}>${sg.text}</a>` : sg.text)}</div>
|
|
999
|
-
${p.resolved ? null : html`<div class="acts">${p.actions.filter(a => !a.input).map(a => html`<button key=${a.id} type="button" class="btn" disabled=${!!p.busy} onClick=${() => store.answerPrompt(p, a.id)}>${a.label}</button>`)}
|
|
1000
|
-
${p.busy ? html`<span class="wait">${t("chat.promptAnswering")}</span>` : null}</div>`}
|
|
1286
|
+
${p.resolved ? null : html`<div class="acts">${p.actions.filter(a => !a.input).map(a => html`<button key=${a.id} type="button" class="btn" disabled=${!!p.busy} onClick=${() => store.answerPrompt(p, a.id)}>${a.label}${a.hint ? html`<span class="btn-hint">${a.hint}</span>` : null}</button>`)}
|
|
1287
|
+
${p.busy && !p.confirming ? html`<span class="wait">${t("chat.promptAnswering")}</span>` : null}</div>`}
|
|
1001
1288
|
${p.resolved ? null : p.actions.filter(a => a.input).map(a => html`<${PromptText} key=${a.id} p=${p} action=${a} />`)}</div>`)}</div>`;
|
|
1002
1289
|
}
|
|
1003
1290
|
|
|
1291
|
+
/** M-3757: Claude's usage-credits prompt, as in Needs you: the question naming the agent, one sentence on the bill, Claude's own words folded, its choices. */
|
|
1292
|
+
function UsageCreditsPrompt({ p }) {
|
|
1293
|
+
const title = usageCreditsTitle(p.view);
|
|
1294
|
+
return html`<div class="prompt prompt-usage-credits" role="group" aria-label=${title}>
|
|
1295
|
+
<div class="txt"><strong>${title}</strong></div>
|
|
1296
|
+
<div class="txt prompt-detail">${usageCreditsDetail(p.view)}</div>
|
|
1297
|
+
<details class="n-raw"><summary>${showRawLabel()}</summary><pre class="n-raw-text">${p.view.raw || p.text}</pre></details>
|
|
1298
|
+
<div class="acts">${usageCreditsActions(p.view, p.actions).filter(a => !a.input).map(a => html`<button key=${a.id} type="button" class=${`btn btn-sm${kindClass(a.kind)}`} disabled=${!!p.busy} onClick=${() => store.answerPrompt(p, a.id)}>${a.label}</button>`)}
|
|
1299
|
+
${p.busy && !p.confirming ? html`<span class="wait">${t("chat.promptAnswering")}</span>` : null}</div>
|
|
1300
|
+
</div>`;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1004
1303
|
/** #2675: a prompt's typed answer (a kiro question card's "answer in words"): a box and its send button. */
|
|
1005
1304
|
function PromptText({ p, action }) {
|
|
1006
1305
|
const [text, setText] = useState("");
|
|
@@ -1017,6 +1316,40 @@ function PromptText({ p, action }) {
|
|
|
1017
1316
|
* #3724: the strip is always there — idle it keeps its height and shows nothing (no button), so a state change only changes
|
|
1018
1317
|
* what is inside it and never moves the thread or the composer (chat-work-bar.css fixes the height; long text stays one line).
|
|
1019
1318
|
*/
|
|
1319
|
+
/**
|
|
1320
|
+
* M-3166 (Argon 0, the user's OK of round 2): a phone's meta line above the box, 26 px, 12 px text. Left: the model, its
|
|
1321
|
+
* effort and the context ("Opus 5.5 · high · 56%", which opens the model's pick list) — or, while the agent is busy, what it
|
|
1322
|
+
* is doing and for how long ("處理中 0:12 · 56%"). Right: Not verified · Authorize (and its other states) only while this
|
|
1323
|
+
* browser is not verified; while the agent works with something typed, Stop (Send sends again). Hit targets ≥ 32 px.
|
|
1324
|
+
*/
|
|
1325
|
+
function ChatMetaLine({ name, inst, lease, exec, awaiting, ids = {} }) {
|
|
1326
|
+
const s = store.state, busy = R().isBusy(exec) ? exec : "";
|
|
1327
|
+
const kind = awaiting != null ? "awaiting" : s.stopping[name] && busy ? "stopping" : busy;
|
|
1328
|
+
const [, tick] = useState(0);
|
|
1329
|
+
useEffect(() => {
|
|
1330
|
+
if (!kind || kind === "awaiting") return undefined;
|
|
1331
|
+
const h = lease.interval(() => tick((n) => n + 1), 1000);
|
|
1332
|
+
return () => lease.clear(h);
|
|
1333
|
+
}, [kind, lease]);
|
|
1334
|
+
const pct = inst?.context_pct == null ? null : Math.round(inst.context_pct);
|
|
1335
|
+
const since = s.workingSince[name];
|
|
1336
|
+
const tail = pct != null ? ` · ${pct}%` : "";
|
|
1337
|
+
const commands = supportsInstanceFeature(inst, "commands");
|
|
1338
|
+
const model = shortModelName(modelLabel(inst?.model || modelText(inst || {})));
|
|
1339
|
+
const effort = supportsInstanceFeature(inst, "effort") ? effortChip(inst || {}) : "";
|
|
1340
|
+
const doing = kind ? `${t(kind === "stuck" ? "chat.metaStuck" : kind === "stopping" ? "chat.metaStopping" : kind === "awaiting" ? "chat.metaAwaiting" : "chat.metaWorking")}${
|
|
1341
|
+
kind !== "awaiting" && since != null ? ` ${R().formatElapsed(performance.now() - since)}` : ""}` : "";
|
|
1342
|
+
const run = (command) => store.runCommand(name, command, "", { alive: () => lease.current() });
|
|
1343
|
+
const label = `${model}${effort ? ` · ${effort}` : ""}`;
|
|
1344
|
+
return html`<div class=${`chat-meta${kind ? ` busy ${kind}` : ""}`} data-trust="status" role="status" data-composer-focus>
|
|
1345
|
+
${kind ? html`<span class="chat-meta-left" data-composer-focus><span class="chat-meta-dot" data-composer-focus aria-hidden="true"></span><span data-composer-focus>${doing}${tail}</span></span>`
|
|
1346
|
+
: commands ? html`<button type="button" class="chat-meta-left chat-meta-model" title=${t("chat.chipModel", label)} aria-label=${t("chat.chipModel", label)}
|
|
1347
|
+
onClick=${() => (inst?.runtime === "windows" ? navigate(sectionPath("agents")) : run("model"))}><span>${label}${tail}</span><span class="chev" aria-hidden="true">⌄</span></button>`
|
|
1348
|
+
: html`<span class="chat-meta-left" data-composer-focus><span data-composer-focus>${label}${tail}</span></span>`}
|
|
1349
|
+
<span class="chat-meta-right" data-composer-focus>${busy ? html`<button type="button" id=${ids.stopBtn || "stopBtn"} class="chat-meta-stop btn-stop" disabled=${!!s.cancelling[name]} title=${t("chat.stopReplyTitle")}
|
|
1350
|
+
onClick=${() => store.cancelReply(name)}>${t("chat.stopReply")}</button>` : null}<${ComposerAuth} /></span>
|
|
1351
|
+
</div>`;
|
|
1352
|
+
}
|
|
1020
1353
|
function WorkBar({ name, lease, exec, awaiting, workingLabel, ids }) {
|
|
1021
1354
|
const s = store.state;
|
|
1022
1355
|
const busy = R().isBusy(exec) ? exec : "";
|
|
@@ -1027,7 +1360,7 @@ function WorkBar({ name, lease, exec, awaiting, workingLabel, ids }) {
|
|
|
1027
1360
|
const h = lease.interval(() => tick(n => n + 1), 1000); // ticks only while it shows, cleared with the lease
|
|
1028
1361
|
return () => lease.clear(h);
|
|
1029
1362
|
}, [kind, lease]);
|
|
1030
|
-
if (!kind) return html`<div class="work-bar idle" aria-hidden="true"></div>`;
|
|
1363
|
+
if (!kind) return html`<div class="work-bar idle" data-composer-focus aria-hidden="true"></div>`;
|
|
1031
1364
|
// #1629: the agent's own working label (its theme), shown as text — only for "working", never for the other states.
|
|
1032
1365
|
const label = kind === "working" && workingLabel ? workingLabel
|
|
1033
1366
|
: t(kind === "stuck" ? "chat.stuck" : kind === "stopping" ? "chat.stopping" : kind === "awaiting" ? "chat.awaiting" : "chat.working", name);
|
|
@@ -1057,7 +1390,10 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
1057
1390
|
const content = !!value.trim() || files.length > 0;
|
|
1058
1391
|
// M-3115 (phone v2): one row — the box, the context ring and the model picker beside it — and, while the agent works
|
|
1059
1392
|
// with nothing typed, Send is Stop (typed: Send again, and Stop is the status line's).
|
|
1060
|
-
|
|
1393
|
+
// M-3167: both read live, so a window resized across them redraws (read once, a phone's ring and picker stayed on a
|
|
1394
|
+
// desk, unstyled). Between the phone's width and a wide desk the composer has the ring and a short model chip too.
|
|
1395
|
+
const narrow = useMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)"), toolsHere = useMedia(COMPOSER_TOOLS_Q);
|
|
1396
|
+
const phone = narrow && !guestPage();
|
|
1061
1397
|
const stopNow = phone && busy && !content;
|
|
1062
1398
|
// A file waiting: what goes is a message with its file, never a command (no palette, no command line). #2855: a guest's
|
|
1063
1399
|
// palette offers only what it may run on this agent — the table's "anyone" commands (its status frame's `commands`).
|
|
@@ -1074,6 +1410,48 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
1074
1410
|
useEffect(() => { if (focused && input.current) input.current.focus(); }, [name]);
|
|
1075
1411
|
useEffect(() => { refreshTourSpot(); });
|
|
1076
1412
|
const setValue = (v) => { store.setDraft(name, v); setSel(0); tick(n => n + 1); };
|
|
1413
|
+
// A `#` at the caret offers the task cards (what the board has: its number, title, status); Enter or Tab put the
|
|
1414
|
+
// number in, Esc closes the list, the arrow keys choose. The caret is read from the box as the page draws (a key that only
|
|
1415
|
+
// moves it redraws: the box's keyup and click, below). Not for a guest (no board), a command line, or an IME still composing.
|
|
1416
|
+
const [refSel, setRefSel] = useState(0);
|
|
1417
|
+
const [refItems, setRefItems] = useState([]);
|
|
1418
|
+
const [refClosed, setRefClosed] = useState(null); // the draft the list was closed on (Esc); it opens again on change
|
|
1419
|
+
const refCaret = useRef(null); // where the caret goes once a chosen number is in the box
|
|
1420
|
+
const box = input.current;
|
|
1421
|
+
// While a chosen number is on its way into the box the caret is where it will be (the box still has the old text's caret until the page has drawn it).
|
|
1422
|
+
const caret = refCaret.current !== null ? refCaret.current : box && typeof box.selectionStart === "number" ? box.selectionStart : value.length;
|
|
1423
|
+
const refAt = taskRefIndex && !guest && !bindings.composing ? taskRefAt(value, caret) : null;
|
|
1424
|
+
const refKey = refAt ? `${refAt.start}:${refAt.query}` : "";
|
|
1425
|
+
const refOpen = !!refAt && refClosed !== value && refItems.length > 0;
|
|
1426
|
+
const refPick = Math.min(refSel, Math.max(refItems.length - 1, 0));
|
|
1427
|
+
useEffect(() => {
|
|
1428
|
+
if (!refAt) { setRefItems((x) => (x.length ? [] : x)); return undefined; }
|
|
1429
|
+
let live = true;
|
|
1430
|
+
const timer = setTimeout(() => { taskRefIndex.suggest(refAt.query).then((items) => { if (live) { setRefItems(items); setRefSel(0); } }); }, refAt.query ? 120 : 0);
|
|
1431
|
+
return () => { live = false; clearTimeout(timer); };
|
|
1432
|
+
}, [refKey]);
|
|
1433
|
+
useEffect(() => {
|
|
1434
|
+
const el = input.current;
|
|
1435
|
+
if (!el || !taskRefIndex || guest || typeof el.addEventListener !== "function") return undefined;
|
|
1436
|
+
const moved = (e) => { if (e.type === "click" || /^(Arrow(Left|Right)|Home|End)$/.test(String(e.key || ""))) tick((n) => n + 1); };
|
|
1437
|
+
el.addEventListener("keyup", moved); el.addEventListener("click", moved);
|
|
1438
|
+
return () => { el.removeEventListener("keyup", moved); el.removeEventListener("click", moved); };
|
|
1439
|
+
}, [input.current]);
|
|
1440
|
+
useEffect(() => { // after a chosen number is in the box, the caret goes behind it
|
|
1441
|
+
const c = refCaret.current;
|
|
1442
|
+
if (c === null) return;
|
|
1443
|
+
refCaret.current = null;
|
|
1444
|
+
const el = input.current;
|
|
1445
|
+
if (el) try { el.focus(); el.setSelectionRange(c, c); } catch { /* no selection API */ }
|
|
1446
|
+
});
|
|
1447
|
+
// Task rows keep their own interaction; only exact marked background surfaces opt into strip focus.
|
|
1448
|
+
const chooseRef = (v) => {
|
|
1449
|
+
if (!v || !refAt) return;
|
|
1450
|
+
recordEdit(input.current); // #2342: a step Ctrl+Z goes back from
|
|
1451
|
+
const r = insertTaskRef(value, refAt, caret, v.code);
|
|
1452
|
+
refCaret.current = r.caret;
|
|
1453
|
+
setValue(r.text);
|
|
1454
|
+
};
|
|
1077
1455
|
// #1269: a command line runs the command (POST /ui/command); anything else — "/" included — is sent as before.
|
|
1078
1456
|
// The draft is consumed only by a command that starts: one still out keeps the new line in the composer (#1476 review).
|
|
1079
1457
|
const runLine = (cmd) => {
|
|
@@ -1105,6 +1483,12 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
1105
1483
|
store.send(name);
|
|
1106
1484
|
};
|
|
1107
1485
|
const onKeyDown = (e) => {
|
|
1486
|
+
if (refOpen) {
|
|
1487
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp") { e.preventDefault(); setRefSel((n) => (Math.min(n, refItems.length - 1) + (e.key === "ArrowDown" ? 1 : refItems.length - 1)) % refItems.length); return; }
|
|
1488
|
+
// On a touch screen Enter is a new line (the list is tapped); anywhere else it, and Tab, put the highlighted card in.
|
|
1489
|
+
if (((e.key === "Enter" && !touchScreen()) || e.key === "Tab") && !e.shiftKey && !e.ctrlKey && !e.metaKey && !e.isComposing) { e.preventDefault(); chooseRef(refItems[refPick]); return; }
|
|
1490
|
+
if (e.key === "Escape" && !e.isComposing) { e.preventDefault(); setRefClosed(value); return; }
|
|
1491
|
+
}
|
|
1108
1492
|
if (palette && palette.length && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
|
|
1109
1493
|
e.preventDefault();
|
|
1110
1494
|
setSel((n) => (Math.min(n, palette.length - 1) + (e.key === "ArrowDown" ? 1 : palette.length - 1)) % palette.length);
|
|
@@ -1124,7 +1508,8 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
1124
1508
|
};
|
|
1125
1509
|
const paletteId = ids.cmdPalette || "cmdPalette";
|
|
1126
1510
|
const optId = (c) => ids.cmdPalette ? `${ids.cmdPalette}-${c.name}` : `cmd-${c.name}`;
|
|
1127
|
-
|
|
1511
|
+
const refListId = `${paletteId}-tasks`, refOptId = (v) => `${refListId}-${v.code}`;
|
|
1512
|
+
return html`<div class="composer-box" data-composer-focus ref=${bindings.box}>
|
|
1128
1513
|
${machineUnavailable ? html`<p class="note runtime-machine-unavailable" role="status">${t(inst.machine_status === "revoked" ? "chat.machineRevokedHint" : "chat.machineUnavailable",machineName(inst.machine_id,inst.machine_name))}</p>` : null}
|
|
1129
1514
|
${inst?.native_busy && !busy && !inst?.native_blocked ? html`<p class="note" role="status">${t("chat.nativeBusy")}</p>` : null}
|
|
1130
1515
|
${palette ? html`<ul data-trust="palette" class="cmd-palette" id=${paletteId} role="listbox" aria-label=${t("chat.cmdCommands")}>
|
|
@@ -1133,6 +1518,12 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
1133
1518
|
<span class="cmd-name mono">/${c.name}${c.arg ? html` <span class="cmd-arg">${c.arg}</span>` : null}</span><span class="cmd-desc">${t(`chat.cmd_${c.name}`)}</span></li>`)
|
|
1134
1519
|
: html`<li class="cmd-none" role="option" aria-selected="false">${t(guest ? "chat.cmdNotGuests" : "chat.cmdNotCommand")}</li>`}
|
|
1135
1520
|
</ul>` : null}
|
|
1521
|
+
${refOpen ? html`<ul data-trust="palette" class="cmd-palette task-ref-list" id=${refListId} role="listbox" aria-label=${t("taskref.pickHint")}>
|
|
1522
|
+
${refItems.map((v, i) => html`<li key=${v.code} id=${refOptId(v)} role="option" tabindex="-1" aria-selected=${i === refPick ? "true" : "false"}
|
|
1523
|
+
class=${i === refPick ? "on" : ""} onMouseDown=${(e) => { e.preventDefault(); chooseRef(v); }}>
|
|
1524
|
+
<span class="cmd-name mono">${v.code}</span><span class="cmd-desc">${v.title}</span>
|
|
1525
|
+
<span class=${`tb-pill st-${v.status}`}>${t(`taskref.s.${v.status}`)}</span></li>`)}
|
|
1526
|
+
</ul>` : null}
|
|
1136
1527
|
${reply ? html`<div class="reply-bar" data-trust="composer" role="status">
|
|
1137
1528
|
<span class="reply-mark" aria-hidden="true"><svg class="icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11"/></svg></span><span class="reply-label">${t("chat.replyingTo", reply.sender)}</span>
|
|
1138
1529
|
<span class="reply-text">${replySnippet(reply)}</span>
|
|
@@ -1140,10 +1531,11 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
1140
1531
|
</div>` : null}
|
|
1141
1532
|
${files.length ? html`<div class="pending-files">${files.map((f, i) => html`<${FileChip} bindings=${bindings} key=${`${f.name}-${i}`} f=${f} i=${i} name=${name} />`)}</div>` : null}
|
|
1142
1533
|
<${ComposerInput} inputRef=${input} ids=${ids} value=${value} placeholder=${t("chat.composerPlaceholder", label)} onValue=${setValue}
|
|
1143
|
-
onKeyDown=${onKeyDown} onPaste=${onPaste} controls=${palette ? paletteId : undefined} expanded=${!!palette
|
|
1534
|
+
onKeyDown=${onKeyDown} onPaste=${onPaste} controls=${palette ? paletteId : refOpen ? refListId : undefined} expanded=${!!palette || refOpen}
|
|
1535
|
+
activeDescendant=${pick ? optId(pick) : refOpen ? refOptId(refItems[refPick]) : undefined}
|
|
1144
1536
|
attach=${attachmentsSupported ? { title: t("chat.attachTitle"), onFiles: (list) => store.addFiles(name, list) } : null}
|
|
1145
1537
|
stop=${HIDDEN_STOP}
|
|
1146
|
-
tools=${
|
|
1538
|
+
tools=${toolsHere && !narrow && !guestPage() ? html`<${ComposerTools} name=${name} inst=${inst} lease=${lease} short=${true} />` : null}
|
|
1147
1539
|
send=${stopNow ? { hidden: false, stop: true, disabled: !!s.cancelling[name], label: t("chat.stopReply"), title: t("chat.stopReplyTitle"), onClick: () => store.cancelReply(name) }
|
|
1148
1540
|
: { hidden: false, disabled: !content || sendingBlocked, label: t("chat.send"), onClick: submit }} />
|
|
1149
1541
|
</div>`;
|
|
@@ -1155,17 +1547,18 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
1155
1547
|
* name says the effort too; the row leaves the box its room). The backend stays in
|
|
1156
1548
|
* Details. The ring's fill is painted through the CSSOM (no inline style attribute under the page's CSP).
|
|
1157
1549
|
*/
|
|
1158
|
-
function ComposerTools({ name, inst, lease }) {
|
|
1550
|
+
function ComposerTools({ name, inst, lease, short = false }) {
|
|
1159
1551
|
const run = (command) => store.runCommand(name, command, "", { alive: () => lease.current() });
|
|
1160
1552
|
const pct = inst?.context_pct == null ? null : Math.round(inst.context_pct);
|
|
1161
1553
|
const effort = supportsInstanceFeature(inst, "effort") && effortChip(inst) ? effortWord(effortChip(inst)) : null;
|
|
1162
|
-
const
|
|
1163
|
-
const
|
|
1554
|
+
const full = modelLabel(inst?.model || modelText(inst || {}));
|
|
1555
|
+
const model = short ? shortModelName(full) : full;
|
|
1556
|
+
const pickLabel = effort ? `${full} · ${effort}` : full; // the whole name is its title and accessible name
|
|
1164
1557
|
return html`<span class="composer-tools">
|
|
1165
1558
|
${pct != null && pct >= 50 ? html`<button type="button" class=${`ctx-ring${pct >= 70 ? " warn" : ""}`} ref=${(el) => el?.style?.setProperty("--pct", String(pct))}
|
|
1166
1559
|
title=${t("chat.chipContext", pct)} aria-label=${t("chat.chipContext", pct)} onClick=${() => run("ctx")}><span class="ctx-dial" aria-hidden="true"><span class="ctx-pct">${pct}</span></span></button>` : null}
|
|
1167
1560
|
${supportsInstanceFeature(inst, "commands") ? html`<button type="button" class="composer-pick" title=${t("chat.chipModel", pickLabel)} aria-label=${t("chat.chipModel", pickLabel)}
|
|
1168
|
-
onClick=${() => (inst?.runtime === "windows"
|
|
1561
|
+
onClick=${(e) => { if (inst?.runtime === "windows") navigate(sectionPath("agents")); else { noteModelMenuAnchor(e.currentTarget); run("model"); } }}><b>${model}</b><span class="chev" aria-hidden="true">⌄</span></button>` : null}
|
|
1169
1562
|
</span>`;
|
|
1170
1563
|
}
|
|
1171
1564
|
|
|
@@ -1187,7 +1580,7 @@ function FileChip({ f, i, name, bindings }) {
|
|
|
1187
1580
|
|
|
1188
1581
|
// ── Dialogs ──
|
|
1189
1582
|
|
|
1190
|
-
function DeleteDialog({ name, inst, onClose }) {
|
|
1583
|
+
function DeleteDialog({ name, inst, onClose, onDeleted = () => navigate("/ui") }) {
|
|
1191
1584
|
// The dialog's own lease: it ends when the dialog goes (closed, or the chat left for another page). The delete
|
|
1192
1585
|
// may still finish on the server, and says so, but a dialog that is gone never closes or navigates the page the
|
|
1193
1586
|
// person is on now (#1425 review).
|
|
@@ -1214,7 +1607,7 @@ function DeleteDialog({ name, inst, onClose }) {
|
|
|
1214
1607
|
if (handedOver || !lease.current()) return;
|
|
1215
1608
|
setBusy(false);
|
|
1216
1609
|
onClose();
|
|
1217
|
-
|
|
1610
|
+
onDeleted();
|
|
1218
1611
|
}
|
|
1219
1612
|
return html`<${Dialog} title=${t("chat.deleteTitle", name)} onClose=${onClose} busy=${busy}
|
|
1220
1613
|
actions=${html`<button type="button" class="btn" onClick=${onClose} disabled=${busy}>${t("chat.cancel")}</button>
|
|
@@ -1226,3 +1619,44 @@ function DeleteDialog({ name, inst, onClose }) {
|
|
|
1226
1619
|
</${Dialog}>`;
|
|
1227
1620
|
}
|
|
1228
1621
|
ChatPanel.workspaceVersion = 1;
|
|
1622
|
+
|
|
1623
|
+
/** Session-only injection: public InstanceNav never imports this module. */
|
|
1624
|
+
export function SidebarChatMenu({ inst, context, onClose, favorite = null }) {
|
|
1625
|
+
const name = inst.name || inst.instance_name, lease = useLease(`sidebar-menu:${name}`);
|
|
1626
|
+
const [phase, setPhase] = useState("menu");
|
|
1627
|
+
const [, redraw] = useState(0);
|
|
1628
|
+
const wide = useStore(chatWide).on;
|
|
1629
|
+
useStore(themesStore); useStore(activityInfoStore); useStore(activityPrefs);
|
|
1630
|
+
const auth = useWebAuthorization(), card = useCard(name, inst.card_v);
|
|
1631
|
+
const pinCount = usePins(name).pins?.length || 0;
|
|
1632
|
+
useEffect(() => store?.subscribe(target => { if (target === name) redraw(n => n + 1); }), [name]);
|
|
1633
|
+
useEffect(() => {
|
|
1634
|
+
if (phase !== "menu" || !activityShown() || activityInfo(name)?.level !== undefined) return;
|
|
1635
|
+
const feed = observeActivity(name, { changed: () => feed.stop(), wantThinking: () => activityPrefs.get().thinking });
|
|
1636
|
+
feed.start(); return () => feed.stop();
|
|
1637
|
+
}, [name, phase, activityPrefs.get().on]);
|
|
1638
|
+
const command = store?.state.commands[name];
|
|
1639
|
+
useEffect(() => { if ((phase === "command" && !command) || (phase === "card" && !card)) setPhase(null); }, [phase, command, card]);
|
|
1640
|
+
useEffect(() => { if (!phase) onClose(); }, [phase]);
|
|
1641
|
+
const items = chatAgentMenuItems({ name, inst, wide, pinCount, onPins: () => setPhase("pins"), onDelete: () => setPhase("delete") });
|
|
1642
|
+
const run = command => { setPhase("command"); void store.runCommand(name, command, "", { alive: () => lease.current() && !guestPage() }); };
|
|
1643
|
+
const dismiss = () => setPhase(null);
|
|
1644
|
+
const chat = { card: !!card, onCard: () => setPhase("card"),
|
|
1645
|
+
...(supportsInstanceFeature(inst, "commands") ? { onModel: () => run("model"),
|
|
1646
|
+
modelText: `${shortModelName(modelLabel(inst.model || modelText(inst)))}${supportsInstanceFeature(inst, "effort") && effortChip(inst) ? ` · ${effortChip(inst)}` : ""}`,
|
|
1647
|
+
onBackend: () => inst.runtime === "windows" ? navigate(sectionPath("agents")) : run("backend"), backendText: backendLabel(inst.backend) } : {}) };
|
|
1648
|
+
return html`${phase === "menu" ? narrowScreen()
|
|
1649
|
+
? html`<${AgentSheet} name=${name} inst=${inst} current="chat" items=${items} extra=${[favorite, items.find(item => item?.key === "splitChat")].filter(Boolean)} chat=${chat} targetLabel=${inst.display_name || name}
|
|
1650
|
+
verifiedUntil=${auth.st?.state === "verified" ? auth.st.until : null} onUsage=${() => setPhase("usage")} onClose=${dismiss} />`
|
|
1651
|
+
: html`<${Menu} cls="agent-menu" fit=${true} topLayer=${true} ownerKey=${name} context=${{...context, onClose: dismiss}} items=${[favorite, ...items]} label=${t("agentRow.actions", inst.display_name || name)} />` : null}
|
|
1652
|
+
${phase === "delete" ? html`<${DeleteDialog} name=${name} inst=${inst} onClose=${dismiss}
|
|
1653
|
+
onDeleted=${() => { if (navStore.get().route?.instance === name) navigate("/ui"); }} />` : null}
|
|
1654
|
+
${phase === "pins" ? html`<${PinsDialog} name=${name} onClose=${dismiss} onJump=${pin => { dismiss(); navigate(`${chatPath(name)}#m=${encodeURIComponent(pin.key)}`); }} />` : null}
|
|
1655
|
+
${phase === "usage" ? html`<${UsageDialog} owner=${`chat:${name}`} onClose=${dismiss} />` : null}
|
|
1656
|
+
${phase === "card" && card ? html`<${Dialog} title=${t("card.label", inst.display_name || name)} onClose=${dismiss}><${IdentityCard} name=${name} card=${card} compact=${true} /></${Dialog}>` : null}
|
|
1657
|
+
${phase === "command" && command ? usesModelMenu(command)
|
|
1658
|
+
? html`<${CommandCard} name=${name} lease=${lease} />`
|
|
1659
|
+
: html`<${Dialog} title=${inst.display_name || name} onClose=${() => { store.dismissCommand(name); dismiss(); }}><${CommandCard} name=${name} lease=${lease} /></${Dialog}>` : null}`;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
SidebarChatMenu.contextVersion = Menu.contextVersion === 1 && AgentSheet.sidebarTargetVersion === 1 ? 1 : 0;
|