@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
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
* After `agend update` in a WSL terminal without the shortcuts, one line says how to make them, once. Nothing here ever
|
|
10
10
|
* makes a desktop item unasked.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
13
|
+
import { dirname, join } from "node:path";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
15
15
|
import { t } from "./locale.js";
|
|
16
|
+
import { detectWsl, findPowershell, interopState, realHost } from "./wsl-host.js";
|
|
16
17
|
/** Written in the data dir once the shortcuts exist (by this command or by the installer). */
|
|
17
18
|
export const SHORTCUTS_MARKER = "windows-shortcuts";
|
|
18
19
|
/** Written once the update hint has been shown. */
|
|
@@ -20,49 +21,8 @@ export const SHORTCUTS_HINT_MARKER = "windows-shortcuts-hint";
|
|
|
20
21
|
const MADE_LINE = /^AGEND_SHORTCUTS_MADE=(\d+)\s*$/m;
|
|
21
22
|
/** install.json names another Linux or user: the script changed nothing and said which (distro|user). */
|
|
22
23
|
const OTHER_LINE = /^AGEND_RECORD_OTHER=([^|\r\n]*)\|([^\r\n]*?)\s*$/m;
|
|
23
|
-
|
|
24
|
-
export
|
|
25
|
-
const read = (path) => { try {
|
|
26
|
-
return readFileSync(path, "utf-8");
|
|
27
|
-
}
|
|
28
|
-
catch {
|
|
29
|
-
return null;
|
|
30
|
-
} };
|
|
31
|
-
let binfmt = null;
|
|
32
|
-
try {
|
|
33
|
-
binfmt = readdirSync("/proc/sys/fs/binfmt_misc");
|
|
34
|
-
}
|
|
35
|
-
catch { /* not mounted: unknown */ }
|
|
36
|
-
return { env: process.env, osRelease: read("/proc/sys/kernel/osrelease"), binfmt, exists: existsSync };
|
|
37
|
-
}
|
|
38
|
-
/** Inside WSL? WSL sets WSL_DISTRO_NAME in the shells it starts; its kernel's release names Microsoft. */
|
|
39
|
-
export function detectWsl(host) {
|
|
40
|
-
const distro = host.env.WSL_DISTRO_NAME?.trim() || null;
|
|
41
|
-
return { wsl: distro !== null || /microsoft/i.test(host.osRelease ?? ""), distro };
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Can this WSL start a Windows program? Interop is a binfmt_misc entry (WSLInterop, or WSLInterop-late under systemd).
|
|
45
|
-
* Without it, running powershell.exe does not fail: the exec falls back to /bin/sh, which reads the .exe as a script.
|
|
46
|
-
* An unreadable binfmt_misc is unknown, and the run's own output decides.
|
|
47
|
-
*/
|
|
48
|
-
export function interopState(host) {
|
|
49
|
-
if (host.binfmt === null)
|
|
50
|
-
return "unknown";
|
|
51
|
-
return host.binfmt.some(name => /^WSLInterop/.test(name)) ? "on" : "off";
|
|
52
|
-
}
|
|
53
|
-
/** Windows PowerShell: on PATH (interop appends Windows' PATH), else where Windows keeps it on a mounted drive. */
|
|
54
|
-
export function findPowershell(host) {
|
|
55
|
-
for (const dir of (host.env.PATH ?? "").split(delimiter)) {
|
|
56
|
-
if (dir && host.exists(join(dir, "powershell.exe")))
|
|
57
|
-
return join(dir, "powershell.exe");
|
|
58
|
-
}
|
|
59
|
-
for (const drive of ["c", "d", "e"]) {
|
|
60
|
-
const path = `/mnt/${drive}/${SYSTEM_POWERSHELL}`;
|
|
61
|
-
if (host.exists(path))
|
|
62
|
-
return path;
|
|
63
|
-
}
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
24
|
+
// The WSL / interop / PowerShell lookups are shared with the local Windows CLI bridge (src/wsl-host.ts).
|
|
25
|
+
export { detectWsl, findPowershell, interopState, realHost } from "./wsl-host.js";
|
|
66
26
|
/** The installer's shortcut code: the template below its header (which ends at the first blank line). */
|
|
67
27
|
export function sharedShortcutsPs(templateText) {
|
|
68
28
|
const text = templateText ?? readFileSync(join(dirname(fileURLToPath(import.meta.url)), "..", "templates", "windows-shortcuts.ps1"), "utf-8");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windows-shortcuts.js","sourceRoot":"","sources":["../src/windows-shortcuts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"windows-shortcuts.js","sourceRoot":"","sources":["../src/windows-shortcuts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAc,SAAS,EAAE,YAAY,EAAe,aAAa,EAAE,MAAM,SAAS,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AAEhG,8FAA8F;AAC9F,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;AACpD,mDAAmD;AACnD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G,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;IAC5D,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;QACnE,IAAI,GAAG,iBAAiB,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9I,CAAC;IACD,IAAI,IAAI;QAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
## Communication Protocol
|
|
4
4
|
|
|
5
|
-
- **Task flow**: `delegate_task` → silent work → `report_result`. Zero messages in between.
|
|
6
5
|
- **Review flow**: send all findings in one message → author fixes → `report_result`. Target 2 round-trips. If a 3rd is needed, scope it to only unresolved items. Keep one `correlation_id` per PR or task thread: a newer message on it replaces an older one still waiting to be delivered.
|
|
7
6
|
- **Direct communication**: talk to other instances directly via `send_to_instance`. Don't relay through a coordinator.
|
|
8
7
|
- **Ask, don't assume**: use `request_information` when you need context from another instance.
|
|
9
|
-
- **Silence = working**: Never send acknowledgment-only messages. If your entire message would be "got it" / "understood" / "working on it" or equivalent in any language — don't send it. Only send messages that contain actionable content.
|
|
10
8
|
- **Silence = agreement**: if you have nothing to add, don't reply. Only reply when you have new information, a disagreement, or a question.
|
|
11
9
|
- **Batch your points**: combine all feedback into one message. Don't send follow-ups for things you forgot.
|
|
12
10
|
|
|
13
11
|
## Shared Decisions
|
|
14
12
|
|
|
15
|
-
-
|
|
13
|
+
- After a restart, reload fleet decisions with `list_decisions` (every `next_cursor` page), and read a rule's full text with `list_decisions { id, detail: true }` before you apply it.
|
|
16
14
|
- Use `post_decision` to share architectural choices that affect other instances.
|
|
17
15
|
|
|
18
16
|
## Progress Tracking
|
|
19
17
|
|
|
20
18
|
Use the **Task Board** (`task` tool) for multi-step work:
|
|
21
19
|
- Break work into discrete tasks with clear deliverables
|
|
22
|
-
- Update status as you progress (open → claimed → done; or blocked / cancelled)
|
|
20
|
+
- Update status as you progress (open → claimed → done; or blocked / cancelled). **Claim a card (`task claim`) before you start on it** — the board shows who is working on a card only once it is claimed
|
|
23
21
|
- A card that waits for confirmation goes to `review` when you finish it: the person confirms the cards they handed out; a card you handed out, you confirm (`done`, or back to `claimed` with what is missing). One nobody else confirms (your own) goes straight to `done`. Sent back, it is yours again: `task get` with `detail: true` shows why, `task mine` lists your work after a reset
|
|
24
22
|
- One board card in progress at a time: finish it, or block it with the question, before starting the next
|
|
25
|
-
- A
|
|
23
|
+
- A main task you own finishes by itself with its last sub task (to `review` if someone confirms it, else `done`): then `update` it — `check` the met definition-of-done items, a `result`, and a `comment` for the person
|
|
24
|
+
- A `[Task board]` notice is news on your cards (assigned, sent back, answered, ready to start, a question on a card you handed out, one waiting for your confirmation, a main task of yours finished and still to wrap up): read and act on the card with the `task` tool; it needs no chat reply or acknowledgment
|
|
26
25
|
- Other instances can check your task board for status instead of asking
|
|
26
|
+
- Report ON the card, not only in chat: a short Markdown `result`, the content as a comment (what it is, how to open it), and the finished file with `attach` — one file, not the source (a web prototype is one `.html`). A path on your machine is not delivery
|
|
27
27
|
|
|
28
28
|
## Context Protection
|
|
29
29
|
|
|
30
|
-
- **Images**:
|
|
30
|
+
- **Images**: read images in a sub-agent if your CLI has one (saves main context); never through `create_instance` or `delegate_task`.
|
|
31
31
|
- **Reactions**: When reacting to messages, avoid these AgEnD system emojis: 👀 ⏳ ✅ ❌ (used for delivery status). Use other emojis instead (e.g. 👍 🎉 for acknowledgment).
|
|
32
|
-
- **Large searches**: use
|
|
32
|
+
- **Large searches**: use a sub-agent, if your CLI has one, instead of reading many files directly
|
|
33
33
|
- **Big codebases**: glob/grep for specific targets, don't read entire directories
|
|
34
|
-
- **Long conversations**:
|
|
34
|
+
- **Long conversations**: keep durable notes in your soul.md (see Memory below); fleet decisions hold only short shared rules.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface WslHost {
|
|
2
|
+
env: NodeJS.ProcessEnv;
|
|
3
|
+
/** /proc/sys/kernel/osrelease, or null. */
|
|
4
|
+
osRelease: string | null;
|
|
5
|
+
/** Entries of /proc/sys/fs/binfmt_misc, or null when it can't be read. */
|
|
6
|
+
binfmt: string[] | null;
|
|
7
|
+
exists: (path: string) => boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function realHost(): WslHost;
|
|
10
|
+
/** Inside WSL? WSL sets WSL_DISTRO_NAME in the shells it starts; its kernel's release names Microsoft. */
|
|
11
|
+
export declare function detectWsl(host: WslHost): {
|
|
12
|
+
wsl: boolean;
|
|
13
|
+
distro: string | null;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Can this WSL start a Windows program? Interop is a binfmt_misc entry (WSLInterop, or WSLInterop-late under systemd).
|
|
17
|
+
* Without it, running powershell.exe does not fail: the exec falls back to /bin/sh, which reads the .exe as a script.
|
|
18
|
+
* An unreadable binfmt_misc is unknown, and the run's own output decides.
|
|
19
|
+
*/
|
|
20
|
+
export declare function interopState(host: WslHost): "on" | "off" | "unknown";
|
|
21
|
+
/**
|
|
22
|
+
* Windows PowerShell for `agend shortcuts` (a one-off CLI): on PATH (interop appends Windows' PATH), else where Windows
|
|
23
|
+
* keeps it on a mounted drive — `drives`, c, d and e by default. The daemon's bridge (windowsReach) looks the other way
|
|
24
|
+
* round and under /mnt/c only, since a stat on an offline network drive can hold the event loop for seconds (a drive
|
|
25
|
+
* mounted elsewhere is `wslpath`'s job).
|
|
26
|
+
*/
|
|
27
|
+
export declare function findPowershell(host: WslHost, drives?: readonly string[]): string | null;
|
|
28
|
+
/**
|
|
29
|
+
* A container (Docker, Podman). Docker Desktop's containers run on WSL2's own kernel, so `osrelease` says Microsoft in them
|
|
30
|
+
* too — but they have no WSL_DISTRO_NAME, no /mnt/c and no interop, and "turn interop on" would be the wrong advice there.
|
|
31
|
+
* Only a hint for the wording: a WSL distro made by `docker export | wsl --import` carries a /.dockerenv too, and a daemon
|
|
32
|
+
* started by systemd, ssh or a schedule often has no WSL_DISTRO_NAME — so it never decides alone (see windowsReach).
|
|
33
|
+
*/
|
|
34
|
+
export declare function inContainer(host: WslHost): boolean;
|
|
35
|
+
/** Why a local Windows process can't be started from this host (the first thing that is wrong). */
|
|
36
|
+
export type WindowsReachProblem = "not-wsl" | "interop-off" | "powershell-missing";
|
|
37
|
+
/**
|
|
38
|
+
* Whether this Linux can start Windows PowerShell, decided before anything is spawned. `powershell` is the path found
|
|
39
|
+
* (/mnt/c's system folder, then PATH; `viaWslpath` is a path that `wslpath` gave for a drive mounted elsewhere), or null.
|
|
40
|
+
* The daemon asks on every launch and each stat is synchronous on its event loop: the usual place first is one stat,
|
|
41
|
+
* and Windows' PATH (often dozens of folders) is scanned only when it isn't there. `agend shortcuts` keeps PATH first.
|
|
42
|
+
*
|
|
43
|
+
* Interop that is not off (on, or unreadable) plus a PowerShell found is always a go. A container is named only when
|
|
44
|
+
* neither holds — interop not seen on AND no PowerShell — where "not WSL" is the truer advice than "turn interop on".
|
|
45
|
+
*/
|
|
46
|
+
export declare function windowsReach(host: WslHost, viaWslpath?: string | null): {
|
|
47
|
+
ok: true;
|
|
48
|
+
powershell: string;
|
|
49
|
+
} | {
|
|
50
|
+
ok: false;
|
|
51
|
+
problem: WindowsReachProblem;
|
|
52
|
+
};
|
package/dist/wsl-host.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What this Linux can say about reaching Windows from it: is it WSL, is interop on, where is Windows PowerShell.
|
|
3
|
+
*
|
|
4
|
+
* Shared by `agend shortcuts` (windows-shortcuts.ts) and the local Windows CLI bridge (windows-cli.ts). No locale or UI
|
|
5
|
+
* imports: the standalone Runtime loads the bridge too. Every question takes the host as a value, so each branch of
|
|
6
|
+
* "why can't PowerShell be started" is testable without a WSL.
|
|
7
|
+
*/
|
|
8
|
+
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
9
|
+
import { delimiter, join } from "node:path";
|
|
10
|
+
export function realHost() {
|
|
11
|
+
const read = (path) => { try {
|
|
12
|
+
return readFileSync(path, "utf-8");
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return null;
|
|
16
|
+
} };
|
|
17
|
+
let binfmt = null;
|
|
18
|
+
try {
|
|
19
|
+
binfmt = readdirSync("/proc/sys/fs/binfmt_misc");
|
|
20
|
+
}
|
|
21
|
+
catch { /* not mounted: unknown */ }
|
|
22
|
+
return { env: process.env, osRelease: read("/proc/sys/kernel/osrelease"), binfmt, exists: existsSync };
|
|
23
|
+
}
|
|
24
|
+
/** Inside WSL? WSL sets WSL_DISTRO_NAME in the shells it starts; its kernel's release names Microsoft. */
|
|
25
|
+
export function detectWsl(host) {
|
|
26
|
+
const distro = host.env.WSL_DISTRO_NAME?.trim() || null;
|
|
27
|
+
return { wsl: distro !== null || /microsoft/i.test(host.osRelease ?? ""), distro };
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Can this WSL start a Windows program? Interop is a binfmt_misc entry (WSLInterop, or WSLInterop-late under systemd).
|
|
31
|
+
* Without it, running powershell.exe does not fail: the exec falls back to /bin/sh, which reads the .exe as a script.
|
|
32
|
+
* An unreadable binfmt_misc is unknown, and the run's own output decides.
|
|
33
|
+
*/
|
|
34
|
+
export function interopState(host) {
|
|
35
|
+
if (host.binfmt === null)
|
|
36
|
+
return "unknown";
|
|
37
|
+
return host.binfmt.some(name => /^WSLInterop/.test(name)) ? "on" : "off";
|
|
38
|
+
}
|
|
39
|
+
/** Where Windows keeps its PowerShell, under a mounted drive. WSL's own PATH spells the folder `windows`; drvfs ignores case, a case-sensitive mount does not. */
|
|
40
|
+
const SYSTEM_POWERSHELL_DIRS = ["Windows", "windows", "WINDOWS"].map(dir => `${dir}/System32/WindowsPowerShell/v1.0/powershell.exe`);
|
|
41
|
+
/**
|
|
42
|
+
* Windows PowerShell for `agend shortcuts` (a one-off CLI): on PATH (interop appends Windows' PATH), else where Windows
|
|
43
|
+
* keeps it on a mounted drive — `drives`, c, d and e by default. The daemon's bridge (windowsReach) looks the other way
|
|
44
|
+
* round and under /mnt/c only, since a stat on an offline network drive can hold the event loop for seconds (a drive
|
|
45
|
+
* mounted elsewhere is `wslpath`'s job).
|
|
46
|
+
*/
|
|
47
|
+
export function findPowershell(host, drives = ["c", "d", "e"]) {
|
|
48
|
+
return powershellOnPath(host) ?? systemPowershell(host, drives);
|
|
49
|
+
}
|
|
50
|
+
function powershellOnPath(host) {
|
|
51
|
+
for (const dir of (host.env.PATH ?? "").split(delimiter)) {
|
|
52
|
+
if (dir && host.exists(join(dir, "powershell.exe")))
|
|
53
|
+
return join(dir, "powershell.exe");
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
function systemPowershell(host, drives) {
|
|
58
|
+
for (const drive of drives) {
|
|
59
|
+
for (const rel of SYSTEM_POWERSHELL_DIRS) {
|
|
60
|
+
const path = `/mnt/${drive}/${rel}`;
|
|
61
|
+
if (host.exists(path))
|
|
62
|
+
return path;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A container (Docker, Podman). Docker Desktop's containers run on WSL2's own kernel, so `osrelease` says Microsoft in them
|
|
69
|
+
* too — but they have no WSL_DISTRO_NAME, no /mnt/c and no interop, and "turn interop on" would be the wrong advice there.
|
|
70
|
+
* Only a hint for the wording: a WSL distro made by `docker export | wsl --import` carries a /.dockerenv too, and a daemon
|
|
71
|
+
* started by systemd, ssh or a schedule often has no WSL_DISTRO_NAME — so it never decides alone (see windowsReach).
|
|
72
|
+
*/
|
|
73
|
+
export function inContainer(host) {
|
|
74
|
+
return host.exists("/.dockerenv") || host.exists("/run/.containerenv");
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Whether this Linux can start Windows PowerShell, decided before anything is spawned. `powershell` is the path found
|
|
78
|
+
* (/mnt/c's system folder, then PATH; `viaWslpath` is a path that `wslpath` gave for a drive mounted elsewhere), or null.
|
|
79
|
+
* The daemon asks on every launch and each stat is synchronous on its event loop: the usual place first is one stat,
|
|
80
|
+
* and Windows' PATH (often dozens of folders) is scanned only when it isn't there. `agend shortcuts` keeps PATH first.
|
|
81
|
+
*
|
|
82
|
+
* Interop that is not off (on, or unreadable) plus a PowerShell found is always a go. A container is named only when
|
|
83
|
+
* neither holds — interop not seen on AND no PowerShell — where "not WSL" is the truer advice than "turn interop on".
|
|
84
|
+
*/
|
|
85
|
+
export function windowsReach(host, viaWslpath = null) {
|
|
86
|
+
const { wsl, distro } = detectWsl(host);
|
|
87
|
+
if (!wsl)
|
|
88
|
+
return { ok: false, problem: "not-wsl" };
|
|
89
|
+
const interop = interopState(host);
|
|
90
|
+
const powershell = systemPowershell(host, ["c"]) ?? powershellOnPath(host) ?? (viaWslpath && host.exists(viaWslpath) ? viaWslpath : null);
|
|
91
|
+
if (interop !== "off" && powershell)
|
|
92
|
+
return { ok: true, powershell };
|
|
93
|
+
if (interop !== "on" && !powershell && !distro && inContainer(host))
|
|
94
|
+
return { ok: false, problem: "not-wsl" };
|
|
95
|
+
return { ok: false, problem: interop === "off" ? "interop-off" : "powershell-missing" };
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=wsl-host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wsl-host.js","sourceRoot":"","sources":["../src/wsl-host.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO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AAE,UAAU,GAAkB,IAAI;IAC1E,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IACnD,MAAM,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC1I,IAAI,OAAO,KAAK,KAAK,IAAI,UAAU;QAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IACrE,IAAI,OAAO,KAAK,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC9G,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB,EAAE,CAAC;AAC1F,CAAC"}
|
package/launcher/agend
CHANGED
|
@@ -34,7 +34,7 @@ esac
|
|
|
34
34
|
node_pkg=$pkg/node_modules/@songsid/agend-node-$os-$cpu
|
|
35
35
|
node=$node_pkg/bin/node
|
|
36
36
|
receipt=$pkg/.agend-runtime.json
|
|
37
|
-
repair="npm install -g @songsid/agend"
|
|
37
|
+
repair="npm install -g --allow-scripts=@songsid/agend @songsid/agend" # M-3805: npm 12 runs install scripts only when allowed
|
|
38
38
|
refuse() { echo "AgEnD cannot start: $1." >&2; echo "To repair: $2" >&2; exit "${3:-1}"; }
|
|
39
39
|
|
|
40
40
|
# 1. AGEND_NODE, the operator's explicit choice: absolute and executable, then it runs the JS launcher, whose probe
|
|
@@ -104,6 +104,9 @@ fi
|
|
|
104
104
|
if command -v node >/dev/null 2>&1; then
|
|
105
105
|
exec node "$launcher" "$@"
|
|
106
106
|
fi
|
|
107
|
+
if [ -e "$node" ] && [ ! -e "$receipt" ] && [ ! -L "$receipt" ] && [ ! -e "$pkg/.agend-runtime.key" ] && [ ! -L "$pkg/.agend-runtime.key" ]; then # absent as the JS reads it (lstat)
|
|
108
|
+
refuse "its install step did not run, so its bundled Node was never verified (npm 12 skips install scripts unless they are allowed), and there is no node on PATH" "$repair"
|
|
109
|
+
fi
|
|
107
110
|
if [ -e "$receipt" ] || [ -e "$node" ] || [ -L "$node" ]; then
|
|
108
111
|
refuse "its bundled Node ($node) is missing, incomplete or changed since it was verified, and there is no node on PATH" "$repair"
|
|
109
112
|
fi
|
package/launcher/agend-agent
CHANGED
|
@@ -34,7 +34,7 @@ esac
|
|
|
34
34
|
node_pkg=$pkg/node_modules/@songsid/agend-node-$os-$cpu
|
|
35
35
|
node=$node_pkg/bin/node
|
|
36
36
|
receipt=$pkg/.agend-runtime.json
|
|
37
|
-
repair="npm install -g @songsid/agend"
|
|
37
|
+
repair="npm install -g --allow-scripts=@songsid/agend @songsid/agend" # M-3805: npm 12 runs install scripts only when allowed
|
|
38
38
|
refuse() { echo "AgEnD cannot start: $1." >&2; echo "To repair: $2" >&2; exit "${3:-1}"; }
|
|
39
39
|
|
|
40
40
|
# 1. AGEND_NODE, the operator's explicit choice: absolute and executable, then it runs the JS launcher, whose probe
|
|
@@ -104,6 +104,9 @@ fi
|
|
|
104
104
|
if command -v node >/dev/null 2>&1; then
|
|
105
105
|
exec node "$launcher" "$@"
|
|
106
106
|
fi
|
|
107
|
+
if [ -e "$node" ] && [ ! -e "$receipt" ] && [ ! -L "$receipt" ] && [ ! -e "$pkg/.agend-runtime.key" ] && [ ! -L "$pkg/.agend-runtime.key" ]; then # absent as the JS reads it (lstat)
|
|
108
|
+
refuse "its install step did not run, so its bundled Node was never verified (npm 12 skips install scripts unless they are allowed), and there is no node on PATH" "$repair"
|
|
109
|
+
fi
|
|
107
110
|
if [ -e "$receipt" ] || [ -e "$node" ] || [ -L "$node" ]; then
|
|
108
111
|
refuse "its bundled Node ($node) is missing, incomplete or changed since it was verified, and there is no node on PATH" "$repair"
|
|
109
112
|
fi
|
|
@@ -26,12 +26,14 @@ var LOCK = ".agend-install.lock";
|
|
|
26
26
|
var MARKER = "update-in-progress.json";
|
|
27
27
|
var fleetServiceOwner = require("./fleet-service-owner.cjs");
|
|
28
28
|
var ensurePrivateHome = require("./private-home.cjs").ensurePrivateHome;
|
|
29
|
+
var allowScripts = require("./npm-allow-scripts.cjs");
|
|
30
|
+
var npmGlobal = require("./npm-global-prefix.cjs"); // M-3806
|
|
29
31
|
|
|
30
32
|
function defaultDeps() {
|
|
31
33
|
return {
|
|
32
34
|
run: function (cmd, args, opts) {
|
|
33
35
|
var o = opts || {};
|
|
34
|
-
var r = childProcess.spawnSync(cmd, args, { encoding: "utf8", stdio: o.inherit ? "inherit" : ["ignore", "pipe", "pipe"], env: o.env || process.env, timeout: o.timeoutMs });
|
|
36
|
+
var r = childProcess.spawnSync(cmd, args, { encoding: "utf8", stdio: o.inherit ? "inherit" : ["ignore", "pipe", "pipe"], env: o.env || process.env, timeout: o.timeoutMs, cwd: o.cwd });
|
|
35
37
|
return { status: r.status, signal: r.signal, stdout: r.stdout || "", stderr: r.stderr || "", error: r.error ? String(r.error.code || r.error.message) : null };
|
|
36
38
|
},
|
|
37
39
|
log: function (line) { process.stdout.write(line + "\n"); },
|
|
@@ -106,7 +108,7 @@ var NPM_BOOLEAN_FLAGS = /^(?:-g|-y|-f|-s|-q|-d|-dd|-ddd|-S|-D|-O|-E|-B|-P|-l|-a|
|
|
|
106
108
|
* (src/update-npm-env.ts). They are for this install's npm only: what restarts or starts the fleet gets the environment
|
|
107
109
|
* without them, so the long-running fleet follows the person's own npm settings again.
|
|
108
110
|
*/
|
|
109
|
-
var UPDATE_NPM_KEYS = ["fetch-timeout", "fetch-retries", "fetch-retry-mintimeout", "fetch-retry-maxtimeout"];
|
|
111
|
+
var UPDATE_NPM_KEYS = ["fetch-timeout", "fetch-retries", "fetch-retry-mintimeout", "fetch-retry-maxtimeout", "allow-scripts"]; // M-3805: allow-scripts too
|
|
110
112
|
function withoutUpdateNpmBounds(env) {
|
|
111
113
|
var copy = Object.assign({}, env);
|
|
112
114
|
var ours = String(copy.AGEND_UPDATE_NPM_BOUNDS || "").split(",");
|
|
@@ -141,21 +143,60 @@ function npmCommands(args) {
|
|
|
141
143
|
var all = readings(at + 1, false);
|
|
142
144
|
return all.length ? all : ["?"];
|
|
143
145
|
}
|
|
144
|
-
|
|
146
|
+
/** The rows of the process list whose npm may change packages; null when the list cannot be read (see npmIdleFromProcessList). */
|
|
147
|
+
function npmChangingFromProcessList(output, ownPid) {
|
|
145
148
|
var rows = String(output).trim().split("\n").map(function (line) {
|
|
146
149
|
var m = /^\s*(\d+)\s+(\d+)\s+(.+)$/.exec(line);
|
|
147
150
|
return m ? { pid: Number(m[1]), parent: Number(m[2]), args: m[3] } : null;
|
|
148
151
|
});
|
|
149
|
-
if (!rows.length || rows.some(function (row) { return !row; })) return
|
|
150
|
-
if (!rows.some(function (row) { return row.pid === ownPid; })) return
|
|
151
|
-
return
|
|
152
|
+
if (!rows.length || rows.some(function (row) { return !row; })) return null;
|
|
153
|
+
if (!rows.some(function (row) { return row.pid === ownPid; })) return null;
|
|
154
|
+
return rows.filter(function (row) {
|
|
152
155
|
var commands = npmCommands(row.args);
|
|
153
156
|
return commands !== null && !commands.every(function (c) { return NPM_READS.test(c); });
|
|
154
157
|
});
|
|
155
158
|
}
|
|
156
|
-
function
|
|
159
|
+
function npmIdleFromProcessList(output, ownPid) {
|
|
160
|
+
var changing = npmChangingFromProcessList(output, ownPid);
|
|
161
|
+
return changing !== null && changing.length === 0;
|
|
162
|
+
}
|
|
163
|
+
function npmChanging(deps) {
|
|
157
164
|
var r = deps.run("ps", ["-A", "-o", "pid=,ppid=,args="], { timeoutMs: 5000 });
|
|
158
|
-
return r.status === 0
|
|
165
|
+
return r.status === 0 ? npmChangingFromProcessList(r.stdout, deps.pid) : null;
|
|
166
|
+
}
|
|
167
|
+
function npmIdle(deps) {
|
|
168
|
+
var changing = npmChanging(deps);
|
|
169
|
+
return changing !== null && changing.length === 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** M-3302 (#4146): how long the installer waits for another npm that is changing packages on this host. */
|
|
173
|
+
var OTHER_NPM_WAIT_MS = 3 * 60 * 1000;
|
|
174
|
+
/**
|
|
175
|
+
* M-3302 (#4146): wait, bounded, while another npm on this host is changing packages — typically a backend CLI updating
|
|
176
|
+
* itself (Claude Code's auto-updater runs `npm install -g @anthropic-ai/claude-code` in the same global prefix). Called
|
|
177
|
+
* before this installer's own `npm install -g`, and again before the fleet is restarted: a restart stops every CLI, and a
|
|
178
|
+
* CLI's npm stopped half-way leaves its package half-installed (its binary gone or a placeholder) and the fleet without it.
|
|
179
|
+
* Says once what it waits for and how it ended; after OTHER_NPM_WAIT_MS it goes on. A process list that cannot be read is
|
|
180
|
+
* not waited on (repair() already treats it as busy for what it touches).
|
|
181
|
+
*/
|
|
182
|
+
function waitForOtherNpm(deps, log, before) {
|
|
183
|
+
var changing = npmChanging(deps);
|
|
184
|
+
if (!changing || !changing.length) return "idle";
|
|
185
|
+
// AGEND_INSTALL_OTHER_NPM_WAIT_MS: a shorter bound, for a test that runs a real npm beside a fake foreign one.
|
|
186
|
+
var fromEnv = Number((deps.env || {}).AGEND_INSTALL_OTHER_NPM_WAIT_MS);
|
|
187
|
+
var clock = clockOf(deps), sleep = sleepOf(deps);
|
|
188
|
+
var waitMs = deps.otherNpmWaitMs !== undefined ? deps.otherNpmWaitMs : (isFinite(fromEnv) && fromEnv >= 0 && String((deps.env || {}).AGEND_INSTALL_OTHER_NPM_WAIT_MS).trim() !== "" ? Math.min(fromEnv, OTHER_NPM_WAIT_MS) : OTHER_NPM_WAIT_MS);
|
|
189
|
+
// Only the pid and npm's command word: `ps -A` is every user's processes, and an npm argv can carry a registry URL with credentials in it.
|
|
190
|
+
var describe = function (rows) { return rows.map(function (row) { var c = npmCommands(row.args) || ["?"]; return "pid " + row.pid + ": npm " + c[0]; }).join("; "); };
|
|
191
|
+
log(" … another npm is changing packages on this host (" + describe(changing) + "); waiting up to " + Math.round(waitMs / 60000) + " min for it to finish before " + before);
|
|
192
|
+
var start = clock();
|
|
193
|
+
while (clock() - start < waitMs) {
|
|
194
|
+
sleep(2000);
|
|
195
|
+
changing = npmChanging(deps);
|
|
196
|
+
if (changing && !changing.length) { log(" ✓ the other npm finished"); return "finished"; }
|
|
197
|
+
}
|
|
198
|
+
log(" ⚠ the other npm is still running after " + Math.round(waitMs / 60000) + " min (" + describe(changing || []) + "); going on");
|
|
199
|
+
return "timeout";
|
|
159
200
|
}
|
|
160
201
|
|
|
161
202
|
/** Move a leftover into `<prefix>/.agend-quarantine/<time>-<pid>/` — kept as evidence, never deleted here. */
|
|
@@ -707,8 +748,12 @@ function main(argv, injected) {
|
|
|
707
748
|
log(" AgEnD installer v" + version + (upgrade ? " (upgrade)" : ""));
|
|
708
749
|
var ownerRefusal = fleetServiceOwner.updateRefusal(home, { env: deps.env, uid: deps.uid, run: deps.run });
|
|
709
750
|
if (ownerRefusal) return fail("install", ownerRefusal);
|
|
710
|
-
|
|
711
|
-
var
|
|
751
|
+
// M-3806: npm 11/12 print `***` for a UUID in the path; then the prefix is asked the way npm tells a child.
|
|
752
|
+
var rootOut = deps.run("npm", ["root", "-g"], { timeoutMs: 30000 }).stdout;
|
|
753
|
+
var where = npmGlobal.resolve(deps.run("npm", ["prefix", "-g"], { timeoutMs: 30000 }).stdout, rootOut,
|
|
754
|
+
function () { return deps.run("npm", npmGlobal.ASK, { timeoutMs: 30000, cwd: npmGlobal.neutralCwd() }).stdout; });
|
|
755
|
+
var root = where.root;
|
|
756
|
+
var prefix = where.prefix;
|
|
712
757
|
if (!root || !prefix) {
|
|
713
758
|
claimed = claimMarker(home, deps, { ownOnly: true });
|
|
714
759
|
return fail("install", "npm did not say where it installs global packages (npm root -g / npm prefix -g)");
|
|
@@ -749,7 +794,9 @@ function main(argv, injected) {
|
|
|
749
794
|
// #2286 review: the lock's token, for a release from before #2264 (its postinstall refuses any other install).
|
|
750
795
|
var npmEnv = Object.assign({}, deps.env);
|
|
751
796
|
npmEnv[lockReaders.TOKEN_ENV] = admitted.token;
|
|
752
|
-
|
|
797
|
+
// M-3805: npm 12 runs this package's postinstall (the bundled Node's proof) only when told to allow it.
|
|
798
|
+
var install = function () { return deps.run("npm", ["install", "-g", spec, allowScripts.flagFor(spec)], { inherit: true, env: npmEnv }); };
|
|
799
|
+
waitForOtherNpm(deps, log, "installing AgEnD");
|
|
753
800
|
var done = install();
|
|
754
801
|
if (done.status !== 0) {
|
|
755
802
|
// npm itself can leave its sibling behind (a failure inside its own move): once more, only if repairing moved one.
|
|
@@ -767,7 +814,8 @@ function main(argv, injected) {
|
|
|
767
814
|
if (running && done.status !== 0) return fail("install", why + "; v" + running + " is still installed and runs — nothing was changed");
|
|
768
815
|
if (previous && previous !== version) {
|
|
769
816
|
repair(root, prefix, deps);
|
|
770
|
-
var
|
|
817
|
+
var backSpec = previousAt >= 0 ? args[previousAt + 1] : "@songsid/agend@" + previous;
|
|
818
|
+
var back = deps.run("npm", ["install", "-g", backSpec, allowScripts.flagFor(backSpec)], { inherit: true, env: npmEnv });
|
|
771
819
|
if (back.status === 0 && versionOf(bin, deps) === previous) return fail("install", why + "; v" + previous + " was reinstalled and runs");
|
|
772
820
|
}
|
|
773
821
|
return fail("install", why + (previous ? "; v" + previous + " could not be put back — run the installer again" : ""));
|
|
@@ -813,7 +861,7 @@ function main(argv, injected) {
|
|
|
813
861
|
if (!stopped.known || !stopped.stopped) { keepPreimage = true; return fail(stage, why + ". " + name + " could not be stopped (" + (stopped.known ? stopped.state : "its state cannot be told") + "), so nothing was rolled back" + kept); }
|
|
814
862
|
}
|
|
815
863
|
var notBack = restorePreimage(root, prefix, preimage);
|
|
816
|
-
if (notBack) { keepPreimage = true; return fail(stage, why + ". " + notBack + " — reinstall it:
|
|
864
|
+
if (notBack) { keepPreimage = true; return fail(stage, why + ". " + notBack + " — reinstall it: " + allowScripts.installCommand("@songsid/agend@" + preimage.version)); }
|
|
817
865
|
var restored = [];
|
|
818
866
|
if (definition !== null && readText(svc.file) !== definition) {
|
|
819
867
|
try { fs.writeFileSync(svc.file, definition); } catch (e) { return fail(stage, why + ". v" + preimage.version + " is back, but " + svc.file + " could not be restored (" + (e && e.code ? e.code : String(e)) + ") — run `agend install --no-activate`, then `agend start`"); }
|
|
@@ -844,6 +892,7 @@ function main(argv, injected) {
|
|
|
844
892
|
}
|
|
845
893
|
var env = Object.assign({}, withoutUpdateNpmBounds(deps.env), { AGEND_RESTART_ORIGIN: upgrade ? "agend-update" : "agend-install" });
|
|
846
894
|
if (fleetRunning(home, deps) && (kind || upgrade)) {
|
|
895
|
+
waitForOtherNpm(deps, log, "restarting the fleet");
|
|
847
896
|
var restarted = deps.run(bin, ["restart", "--yes"], { inherit: true, env: env });
|
|
848
897
|
// 75: the restart job is still running (systemd goes on with it); the new fleet settles the marker.
|
|
849
898
|
if (restarted.status !== 0 && restarted.status !== 75) return rollBack("stopping", "the fleet did not restart onto v" + version + " (exit " + restarted.status + ")", "run `agend restart`");
|
|
@@ -870,5 +919,5 @@ function main(argv, injected) {
|
|
|
870
919
|
}
|
|
871
920
|
}
|
|
872
921
|
|
|
873
|
-
module.exports = { main: main, repair: repair, admit: admit, openedBy: openedBy, setStage: setStage, claimMarker: claimMarker, npmIdleFromProcessList: npmIdleFromProcessList, npmCommands: npmCommands, withoutUpdateNpmBounds: withoutUpdateNpmBounds, LOCK: LOCK };
|
|
922
|
+
module.exports = { main: main, defaultDeps: defaultDeps, repair: repair, admit: admit, openedBy: openedBy, setStage: setStage, claimMarker: claimMarker, npmIdleFromProcessList: npmIdleFromProcessList, npmChangingFromProcessList: npmChangingFromProcessList, waitForOtherNpm: waitForOtherNpm, OTHER_NPM_WAIT_MS: OTHER_NPM_WAIT_MS, npmCommands: npmCommands, withoutUpdateNpmBounds: withoutUpdateNpmBounds, LOCK: LOCK };
|
|
874
923
|
if (require.main === module) process.exit(main(process.argv.slice(2)));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Types for install-admission.cjs (the postinstall's process-identity probes), for the TypeScript that bundles it —
|
|
2
|
+
// the update recovery kit's recover.cjs (M-3770 2.1c), which must not load anything from the package at run time.
|
|
3
|
+
export declare const LOCK: string;
|
|
4
|
+
export declare const TOKEN_ENV: string;
|
|
5
|
+
export declare function processStart(pid: number): string | null;
|
|
6
|
+
export declare function startTicks(pid: number): string | null;
|
|
7
|
+
export declare function bootId(): string | null;
|
|
8
|
+
export declare function exists(pid: number): boolean;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// M-3805: npm 12 runs a package's install scripts only when they are allowed (`allow-scripts`). A plain
|
|
3
|
+
// `npm install -g @songsid/agend` then skips launcher/postinstall.cjs, the bundled Node is never verified, and AgEnD
|
|
4
|
+
// refuses to start. Every install AgEnD runs, and every install command it prints, allows exactly this package.
|
|
5
|
+
// npm 8–11 accept the same flag and variable without a warning; on them scripts run anyway.
|
|
6
|
+
// Old syntax only (var, no ?. ??): this runs under whatever Node runs npm.
|
|
7
|
+
|
|
8
|
+
var PACKAGE = "@songsid/agend";
|
|
9
|
+
/** For an `npm install -g` argv. npm 12 does not pass a flag on to the programs `npm exec` starts: see ENV. */
|
|
10
|
+
var FLAG = "--allow-scripts=" + PACKAGE;
|
|
11
|
+
/** The variable form: it does reach the programs `npm exec` starts, so a release's own installer inherits it. */
|
|
12
|
+
var ENV = "npm_config_allow_scripts";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The flag that allows `spec`'s scripts. npm 12 matches a registry package by its name, but a tarball or folder only by
|
|
16
|
+
* its own absolute path (a relative one is read against the global prefix, not the current directory).
|
|
17
|
+
*/
|
|
18
|
+
function flagFor(spec) {
|
|
19
|
+
var s = String(spec || "");
|
|
20
|
+
if (/^file:/.test(s) || /^[.~\/]/.test(s) || /\.(?:tgz|tar\.gz|tar)$/.test(s)) {
|
|
21
|
+
var file = s.replace(/^file:/, "").replace(/^~(?=\/|$)/, function () { return require("os").homedir(); }); // a quoted ~ the shell left
|
|
22
|
+
return "--allow-scripts=" + require("path").resolve(file);
|
|
23
|
+
}
|
|
24
|
+
return FLAG;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** The install command a person runs to repair or install `spec`. */
|
|
28
|
+
function installCommand(spec) {
|
|
29
|
+
return "npm install -g " + FLAG + " " + (spec || PACKAGE);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The names an `allow-scripts` value lists: comma-separated text (a variable, a flag), or the JSON list `npm config ls`
|
|
34
|
+
* prints (`["a","b"]`).
|
|
35
|
+
*/
|
|
36
|
+
function names(value) {
|
|
37
|
+
var text = String(value === undefined || value === null ? "" : value).trim();
|
|
38
|
+
var list = [text];
|
|
39
|
+
if (text.charAt(0) === "[") {
|
|
40
|
+
try { var parsed = JSON.parse(text); if (Array.isArray(parsed)) list = parsed.map(String); } catch (e) { /* as written */ }
|
|
41
|
+
}
|
|
42
|
+
var out = [];
|
|
43
|
+
list.forEach(function (item) { item.split(",").forEach(function (n) { n = n.trim(); if (n) out.push(n); }); });
|
|
44
|
+
return out;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Does an `allow-scripts` value already allow every version of this package? */
|
|
48
|
+
function covers(value) {
|
|
49
|
+
return names(value).some(function (name) { return name === PACKAGE || name === PACKAGE + "@*"; });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** The comma-separated value that allows this package as well as everything `value` allows. */
|
|
53
|
+
function withPackage(value) {
|
|
54
|
+
var kept = names(value);
|
|
55
|
+
if (!covers(value)) kept.push(PACKAGE);
|
|
56
|
+
return kept.join(",");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Is a config value for `ignore-scripts` on? npm's own rule for a boolean given as text (nopt): a number is on when not
|
|
61
|
+
* 0, "false" and "null" are off, any other text is on. Not set (undefined or null): off.
|
|
62
|
+
*/
|
|
63
|
+
function scriptsIgnored(value) {
|
|
64
|
+
if (value === undefined || value === null) return false;
|
|
65
|
+
if (typeof value === "boolean") return value;
|
|
66
|
+
var v = String(value).trim();
|
|
67
|
+
if (v !== "" && !isNaN(Number(v))) return Number(v) !== 0;
|
|
68
|
+
if (v === "") return false;
|
|
69
|
+
return v !== "false" && v !== "null";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
module.exports = { PACKAGE: PACKAGE, FLAG: FLAG, ENV: ENV, flagFor: flagFor, installCommand: installCommand, names: names, covers: covers, withPackage: withPackage, scriptsIgnored: scriptsIgnored };
|