@songsid/agend 2.4.0-beta.2 → 2.4.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accounts-profiles.d.ts +1 -1
- package/dist/accounts-view.d.ts +32 -0
- package/dist/accounts-view.js +2 -14
- package/dist/accounts-view.js.map +1 -1
- package/dist/agent-cli-instructions.md +17 -7
- package/dist/agent-cli.js +163 -51
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.d.ts +4 -1
- package/dist/agent-endpoint.js +47 -11
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-export.d.ts +3 -1
- package/dist/agent-export.js +18 -1
- package/dist/agent-export.js.map +1 -1
- package/dist/agent-token-header.d.ts +1 -1
- package/dist/agent-token-header.js +1 -1
- package/dist/agent-whats-new.js +15 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/app-message-origin.d.ts +2 -0
- package/dist/app-message-origin.js +3 -0
- package/dist/app-message-origin.js.map +1 -0
- package/dist/apply-job.d.ts +2 -2
- package/dist/auth-api.d.ts +10 -0
- package/dist/auth-api.js +81 -4
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/authority-state.d.ts +7 -0
- package/dist/authority/authority-state.js +17 -2
- package/dist/authority/authority-state.js.map +1 -1
- package/dist/authority/web-authority.d.ts +11 -1
- package/dist/authority/web-authority.js +11 -1
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/agy-model-switch.d.ts +22 -0
- package/dist/backend/agy-model-switch.js +62 -0
- package/dist/backend/agy-model-switch.js.map +1 -0
- package/dist/backend/antigravity.d.ts +9 -2
- package/dist/backend/antigravity.js +84 -9
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-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 +24 -7
- package/dist/backend/claude-code.js +206 -29
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/claude-transcript-errors.d.ts +4 -0
- package/dist/backend/claude-transcript-errors.js +5 -1
- package/dist/backend/claude-transcript-errors.js.map +1 -1
- package/dist/backend/cli-env-probe.js +1 -1
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend/cli-runtime-switch.d.ts +90 -0
- package/dist/backend/cli-runtime-switch.js +273 -0
- package/dist/backend/cli-runtime-switch.js.map +1 -0
- package/dist/backend/codex-footer-hints.d.ts +1 -0
- package/dist/backend/codex-footer-hints.js +15 -0
- package/dist/backend/codex-footer-hints.js.map +1 -1
- package/dist/backend/codex-model-switch.d.ts +41 -0
- package/dist/backend/codex-model-switch.js +170 -0
- package/dist/backend/codex-model-switch.js.map +1 -0
- package/dist/backend/codex-precaution.d.ts +7 -0
- package/dist/backend/codex-precaution.js +103 -0
- package/dist/backend/codex-precaution.js.map +1 -0
- package/dist/backend/codex.d.ts +7 -4
- package/dist/backend/codex.js +56 -10
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.js +1 -1
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/grok-model-switch.d.ts +16 -0
- package/dist/backend/grok-model-switch.js +45 -0
- package/dist/backend/grok-model-switch.js.map +1 -0
- package/dist/backend/grok.js +33 -7
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.js +10 -5
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/muse.d.ts +2 -0
- package/dist/backend/muse.js +7 -3
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/native-pane.js +1 -1
- package/dist/backend/native-pane.js.map +1 -1
- package/dist/backend/types.d.ts +29 -2
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +23 -16
- package/dist/backend-availability.js +73 -93
- package/dist/backend-availability.js.map +1 -1
- package/dist/backend-command.d.ts +4 -2
- package/dist/backend-command.js +3 -0
- package/dist/backend-command.js.map +1 -1
- package/dist/backend-signin-guide.js +1 -1
- package/dist/backend-signin-guide.js.map +1 -1
- package/dist/backend-version-static.d.ts +15 -0
- package/dist/backend-version-static.js +95 -0
- package/dist/backend-version-static.js.map +1 -0
- package/dist/browser-backend-signins.d.ts +1 -0
- package/dist/browser-backend-signins.js +3 -1
- package/dist/browser-backend-signins.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/discord.d.ts +10 -0
- package/dist/channel/adapters/discord.js +35 -0
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +2 -0
- package/dist/channel/adapters/telegram.js +6 -1
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-server.js +36 -4
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.d.ts +27 -1
- package/dist/channel/mcp-tools.js +91 -8
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/tool-router.d.ts +4 -0
- package/dist/channel/tool-router.js +50 -19
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/channel/types.d.ts +10 -0
- package/dist/chat-task-refs.d.ts +61 -0
- package/dist/chat-task-refs.js +112 -0
- package/dist/chat-task-refs.js.map +1 -0
- package/dist/classic-channel-manager.d.ts +6 -2
- package/dist/classic-channel-manager.js +29 -4
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/classic-cli-guard.d.ts +66 -0
- package/dist/classic-cli-guard.js +209 -0
- package/dist/classic-cli-guard.js.map +1 -0
- package/dist/claude-credential-change.d.ts +22 -0
- package/dist/claude-credential-change.js +47 -0
- package/dist/claude-credential-change.js.map +1 -0
- package/dist/claude-credential-launch.d.ts +69 -0
- package/dist/claude-credential-launch.js +328 -0
- package/dist/claude-credential-launch.js.map +1 -0
- package/dist/claude-credential-runner.d.ts +1 -0
- package/dist/claude-credential-runner.js +58 -0
- package/dist/claude-credential-runner.js.map +1 -0
- package/dist/claude-credential-vault.d.ts +57 -0
- package/dist/claude-credential-vault.js +277 -0
- package/dist/claude-credential-vault.js.map +1 -0
- package/dist/claude-install-kind.d.ts +19 -0
- package/dist/claude-install-kind.js +54 -0
- package/dist/claude-install-kind.js.map +1 -0
- package/dist/claude-request-observation.d.ts +7 -0
- package/dist/claude-request-observation.js +26 -0
- package/dist/claude-request-observation.js.map +1 -0
- package/dist/claude-setup-token-transport.d.ts +9 -0
- package/dist/claude-setup-token-transport.js +104 -0
- package/dist/claude-setup-token-transport.js.map +1 -0
- package/dist/claude-setup-token.d.ts +51 -0
- package/dist/claude-setup-token.js +83 -0
- package/dist/claude-setup-token.js.map +1 -0
- package/dist/cli-audited.js +24 -17
- package/dist/cli-audited.js.map +1 -1
- package/dist/cli-capability.d.ts +3 -0
- package/dist/cli-capability.js.map +1 -1
- package/dist/cli-registry-check.js +1 -1
- package/dist/cli-registry-check.js.map +1 -1
- package/dist/cli-registry.d.ts +1 -0
- package/dist/cli-spec-antigravity.d.ts +1 -0
- package/dist/cli-spec-antigravity.js +3 -1
- package/dist/cli-spec-antigravity.js.map +1 -1
- package/dist/cli.js +8 -0
- package/dist/cli.js.map +1 -1
- package/dist/command-report.d.ts +11 -0
- package/dist/command-report.js +2 -0
- package/dist/command-report.js.map +1 -0
- package/dist/composite-tools.d.ts +11 -0
- package/dist/composite-tools.js +29 -0
- package/dist/composite-tools.js.map +1 -0
- package/dist/config-validator.js +52 -2
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +15 -2
- package/dist/config.js.map +1 -1
- package/dist/connect/control.d.ts +20 -0
- package/dist/connect/control.js +236 -0
- package/dist/connect/control.js.map +1 -0
- package/dist/connect/install.d.ts +13 -0
- package/dist/connect/install.js +12 -0
- package/dist/connect/install.js.map +1 -0
- package/dist/connect/mcp.d.ts +9 -0
- package/dist/connect/mcp.js +10 -0
- package/dist/connect/mcp.js.map +1 -0
- package/dist/connect/protocol.d.ts +38 -0
- package/dist/connect/protocol.js +36 -0
- package/dist/connect/protocol.js.map +1 -0
- package/dist/connect/service.d.ts +19 -0
- package/dist/connect/service.js +79 -0
- package/dist/connect/service.js.map +1 -0
- package/dist/connect/stdio-entry.d.ts +1 -0
- package/dist/connect/stdio-entry.js +6 -0
- package/dist/connect/stdio-entry.js.map +1 -0
- package/dist/connect/stdio.d.ts +5 -0
- package/dist/connect/stdio.js +33 -0
- package/dist/connect/stdio.js.map +1 -0
- package/dist/contact-auth-api.d.ts +17 -0
- package/dist/contact-auth-api.js +88 -0
- package/dist/contact-auth-api.js.map +1 -0
- package/dist/contact-auth-files.d.ts +6 -0
- package/dist/contact-auth-files.js +29 -0
- package/dist/contact-auth-files.js.map +1 -0
- package/dist/contact-auth-policy.d.ts +81 -0
- package/dist/contact-auth-policy.js +26 -0
- package/dist/contact-auth-policy.js.map +1 -0
- package/dist/contact-auth-service.d.ts +32 -0
- package/dist/contact-auth-service.js +101 -0
- package/dist/contact-auth-service.js.map +1 -0
- package/dist/contact-auth-store.d.ts +86 -0
- package/dist/contact-auth-store.js +372 -0
- package/dist/contact-auth-store.js.map +1 -0
- package/dist/contact-auth-types.d.ts +198 -0
- package/dist/contact-auth-types.js +7 -0
- package/dist/contact-auth-types.js.map +1 -0
- package/dist/contact-change-proposals.d.ts +47 -0
- package/dist/contact-change-proposals.js +131 -0
- package/dist/contact-change-proposals.js.map +1 -0
- package/dist/daemon.d.ts +98 -3
- package/dist/daemon.js +673 -59
- package/dist/daemon.js.map +1 -1
- package/dist/darwin-memory.js +2 -1
- package/dist/darwin-memory.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +15 -8
- package/dist/dashboard-permissions.js +25 -10
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/delivery-consumed-watch.js +3 -0
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +6 -6
- package/dist/delivery-outbox.js +19 -25
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-outbox.test.js +132 -96
- package/dist/delivery-outbox.test.js.map +1 -1
- package/dist/dispatcher-liveness.d.ts +51 -1
- package/dist/dispatcher-liveness.js +94 -4
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/event-log.d.ts +13 -1
- package/dist/event-log.js +41 -1
- package/dist/event-log.js.map +1 -1
- package/dist/fleet-context.d.ts +1 -0
- package/dist/fleet-level-config.d.ts +1 -1
- package/dist/fleet-level-config.js +1 -0
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +530 -14
- package/dist/fleet-manager.js +3323 -266
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +2 -2
- package/dist/fleet-windows-runtime.js +13 -4
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/fleet-yaml-stringify.d.ts +3 -0
- package/dist/fleet-yaml-stringify.js +132 -0
- package/dist/fleet-yaml-stringify.js.map +1 -0
- package/dist/general-knowledge/skills/concepts/SKILL.md +72 -4
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +23 -1
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +52 -0
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +21 -1
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +18 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +369 -27
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +5 -1
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +7 -2
- package/dist/general-knowledge/skills/persona-emoji/SKILL.md +3 -0
- package/dist/general-knowledge/skills/task-board/SKILL.md +67 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +29 -3
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +224 -43
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +6 -0
- package/dist/general-knowledge/steering/core-rules.md +15 -78
- package/dist/general-role-block.d.ts +19 -0
- package/dist/general-role-block.js +56 -0
- package/dist/general-role-block.js.map +1 -0
- package/dist/general-role.d.ts +1 -1
- package/dist/general-role.js +1 -0
- package/dist/general-role.js.map +1 -1
- package/dist/host-memory.d.ts +3 -0
- package/dist/host-memory.js.map +1 -1
- package/dist/host-monitoring/darwin/collector.d.ts +18 -0
- package/dist/host-monitoring/darwin/collector.js +65 -0
- package/dist/host-monitoring/darwin/collector.js.map +1 -0
- package/dist/host-monitoring/darwin/defaults.d.ts +2 -0
- package/dist/host-monitoring/darwin/defaults.js +9 -0
- package/dist/host-monitoring/darwin/defaults.js.map +1 -0
- package/dist/host-monitoring/darwin/interpretation.d.ts +20 -0
- package/dist/host-monitoring/darwin/interpretation.js +73 -0
- package/dist/host-monitoring/darwin/interpretation.js.map +1 -0
- package/dist/host-monitoring/linux/collector.d.ts +17 -0
- package/dist/host-monitoring/linux/collector.js +55 -0
- package/dist/host-monitoring/linux/collector.js.map +1 -0
- package/dist/host-monitoring/linux/defaults.d.ts +2 -0
- package/dist/host-monitoring/linux/defaults.js +9 -0
- package/dist/host-monitoring/linux/defaults.js.map +1 -0
- package/dist/host-monitoring/linux/interpretation.d.ts +22 -0
- package/dist/host-monitoring/linux/interpretation.js +76 -0
- package/dist/host-monitoring/linux/interpretation.js.map +1 -0
- package/dist/host-monitoring/transport.d.ts +42 -0
- package/dist/host-monitoring/transport.js +101 -0
- package/dist/host-monitoring/transport.js.map +1 -0
- package/dist/host-monitoring/wsl/collector.d.ts +19 -0
- package/dist/host-monitoring/wsl/collector.js +72 -0
- package/dist/host-monitoring/wsl/collector.js.map +1 -0
- package/dist/host-monitoring/wsl/defaults.d.ts +2 -0
- package/dist/host-monitoring/wsl/defaults.js +9 -0
- package/dist/host-monitoring/wsl/defaults.js.map +1 -0
- package/dist/host-monitoring/wsl/interpretation.d.ts +22 -0
- package/dist/host-monitoring/wsl/interpretation.js +77 -0
- package/dist/host-monitoring/wsl/interpretation.js.map +1 -0
- package/dist/host-monitoring-alert-policy.d.ts +73 -0
- package/dist/host-monitoring-alert-policy.js +152 -0
- package/dist/host-monitoring-alert-policy.js.map +1 -0
- package/dist/host-monitoring-alert-resources.d.ts +11 -0
- package/dist/host-monitoring-alert-resources.js +16 -0
- package/dist/host-monitoring-alert-resources.js.map +1 -0
- package/dist/host-monitoring-alert-settings.d.ts +16 -0
- package/dist/host-monitoring-alert-settings.js +68 -0
- package/dist/host-monitoring-alert-settings.js.map +1 -0
- package/dist/host-monitoring-alert-store.d.ts +49 -0
- package/dist/host-monitoring-alert-store.js +228 -0
- package/dist/host-monitoring-alert-store.js.map +1 -0
- package/dist/host-monitoring-alert-text.d.ts +7 -0
- package/dist/host-monitoring-alert-text.js +10 -0
- package/dist/host-monitoring-alert-text.js.map +1 -0
- package/dist/host-monitoring-alerts.d.ts +79 -0
- package/dist/host-monitoring-alerts.js +276 -0
- package/dist/host-monitoring-alerts.js.map +1 -0
- package/dist/host-monitoring-config.d.ts +15 -0
- package/dist/host-monitoring-config.js +36 -0
- package/dist/host-monitoring-config.js.map +1 -0
- package/dist/host-monitoring-defaults.d.ts +19 -0
- package/dist/host-monitoring-defaults.js +10 -0
- package/dist/host-monitoring-defaults.js.map +1 -0
- package/dist/host-monitoring-footprint-policy.d.ts +45 -0
- package/dist/host-monitoring-footprint-policy.js +150 -0
- package/dist/host-monitoring-footprint-policy.js.map +1 -0
- package/dist/host-monitoring-footprint.d.ts +42 -0
- package/dist/host-monitoring-footprint.js +169 -0
- package/dist/host-monitoring-footprint.js.map +1 -0
- package/dist/host-monitoring-history-files.d.ts +2 -0
- package/dist/host-monitoring-history-files.js +16 -0
- package/dist/host-monitoring-history-files.js.map +1 -0
- package/dist/host-monitoring-history-policy.d.ts +57 -0
- package/dist/host-monitoring-history-policy.js +107 -0
- package/dist/host-monitoring-history-policy.js.map +1 -0
- package/dist/host-monitoring-history-store.d.ts +52 -0
- package/dist/host-monitoring-history-store.js +178 -0
- package/dist/host-monitoring-history-store.js.map +1 -0
- package/dist/host-monitoring-history-worker.d.ts +1 -0
- package/dist/host-monitoring-history-worker.js +66 -0
- package/dist/host-monitoring-history-worker.js.map +1 -0
- package/dist/host-monitoring-history.d.ts +80 -0
- package/dist/host-monitoring-history.js +301 -0
- package/dist/host-monitoring-history.js.map +1 -0
- package/dist/host-monitoring-platform.d.ts +21 -0
- package/dist/host-monitoring-platform.js +18 -0
- package/dist/host-monitoring-platform.js.map +1 -0
- package/dist/host-monitoring-process-identity.d.ts +8 -0
- package/dist/host-monitoring-process-identity.js +81 -0
- package/dist/host-monitoring-process-identity.js.map +1 -0
- package/dist/host-monitoring-runtime.d.ts +42 -0
- package/dist/host-monitoring-runtime.js +95 -0
- package/dist/host-monitoring-runtime.js.map +1 -0
- package/dist/host-monitoring-settings-store.d.ts +5 -0
- package/dist/host-monitoring-settings-store.js +49 -0
- package/dist/host-monitoring-settings-store.js.map +1 -0
- package/dist/host-monitoring.d.ts +121 -0
- package/dist/host-monitoring.js +157 -0
- package/dist/host-monitoring.js.map +1 -0
- package/dist/hub/admin-dashboard.d.ts +85 -0
- package/dist/hub/admin-dashboard.js +177 -0
- package/dist/hub/admin-dashboard.js.map +1 -0
- package/dist/hub/agent-catalog-model.d.ts +297 -0
- package/dist/hub/agent-catalog-model.js +57 -0
- package/dist/hub/agent-catalog-model.js.map +1 -0
- package/dist/hub/agent-catalog.d.ts +140 -0
- package/dist/hub/agent-catalog.js +129 -0
- package/dist/hub/agent-catalog.js.map +1 -0
- package/dist/hub/agent-intro-model.d.ts +38 -0
- package/dist/hub/agent-intro-model.js +14 -0
- package/dist/hub/agent-intro-model.js.map +1 -0
- package/dist/hub/agent-intro-tool.d.ts +35 -0
- package/dist/hub/agent-intro-tool.js +83 -0
- package/dist/hub/agent-intro-tool.js.map +1 -0
- package/dist/hub/agent-intro.d.ts +31 -0
- package/dist/hub/agent-intro.js +51 -0
- package/dist/hub/agent-intro.js.map +1 -0
- package/dist/hub/agent-pictures-model.d.ts +147 -0
- package/dist/hub/agent-pictures-model.js +64 -0
- package/dist/hub/agent-pictures-model.js.map +1 -0
- package/dist/hub/agent-pictures.d.ts +52 -0
- package/dist/hub/agent-pictures.js +202 -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 +89 -17
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +18 -0
- package/dist/hub/client.js +149 -12
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +56 -7
- package/dist/hub/compose/member.js +371 -31
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +24 -0
- package/dist/hub/compose/server.js +130 -16
- 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 +5 -2
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/types.d.ts +5 -1
- package/dist/hub/directory/types.js.map +1 -1
- package/dist/hub/display-name.d.ts +10 -0
- package/dist/hub/display-name.js +35 -0
- package/dist/hub/display-name.js.map +1 -0
- package/dist/hub/execution/service.d.ts +2 -1
- package/dist/hub/execution/service.js +2 -1
- package/dist/hub/execution/service.js.map +1 -1
- package/dist/hub/fleet-info.d.ts +12 -0
- package/dist/hub/fleet-info.js +14 -0
- package/dist/hub/fleet-info.js.map +1 -0
- package/dist/hub/fleet-update-model.d.ts +100 -0
- package/dist/hub/fleet-update-model.js +15 -0
- package/dist/hub/fleet-update-model.js.map +1 -0
- package/dist/hub/fleet-updates.d.ts +46 -0
- package/dist/hub/fleet-updates.js +282 -0
- package/dist/hub/fleet-updates.js.map +1 -0
- package/dist/hub/fleet-versions.d.ts +28 -0
- package/dist/hub/fleet-versions.js +80 -0
- package/dist/hub/fleet-versions.js.map +1 -0
- package/dist/hub/group-policy/admin-api.d.ts +1 -0
- package/dist/hub/group-policy/admin-api.js +10 -1
- package/dist/hub/group-policy/admin-api.js.map +1 -1
- package/dist/hub/group-policy/admin-control.d.ts +1 -0
- package/dist/hub/group-policy/admin-control.js +13 -4
- package/dist/hub/group-policy/admin-control.js.map +1 -1
- package/dist/hub/group-policy/admin-dto.d.ts +39 -1
- package/dist/hub/group-policy/admin-dto.js.map +1 -1
- package/dist/hub/group-policy/admin-facts.d.ts +4 -2
- package/dist/hub/group-policy/admin-facts.js +17 -2
- package/dist/hub/group-policy/admin-facts.js.map +1 -1
- package/dist/hub/group-policy/admin-impact.d.ts +36 -6
- package/dist/hub/group-policy/admin-impact.js +21 -7
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.d.ts +2 -0
- package/dist/hub/group-policy/admin-inventory.js +13 -4
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/admin-search.d.ts +2 -1
- package/dist/hub/group-policy/admin-search.js +56 -7
- package/dist/hub/group-policy/admin-search.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +2 -0
- package/dist/hub/group-policy/authorization.js +7 -2
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.d.ts +4 -1
- package/dist/hub/group-policy/impact-inventory.js +23 -2
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/model.d.ts +52 -1
- package/dist/hub/group-policy/model.js +20 -7
- package/dist/hub/group-policy/model.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +2 -0
- package/dist/hub/group-policy/resources.js +12 -1
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.js +22 -3
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/group-policy/team-subjects.d.ts +16 -0
- package/dist/hub/group-policy/team-subjects.js +32 -0
- package/dist/hub/group-policy/team-subjects.js.map +1 -0
- package/dist/hub/http/compose.d.ts +14 -0
- package/dist/hub/http/compose.js +771 -47
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.d.ts +9 -1
- package/dist/hub/http/core.js +53 -3
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +19 -0
- package/dist/hub/http/schema.js +50 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/invitations.js +15 -7
- package/dist/hub/invitations.js.map +1 -1
- package/dist/hub/join/client.js +75 -42
- package/dist/hub/join/client.js.map +1 -1
- package/dist/hub/join/service.d.ts +3 -1
- package/dist/hub/join/service.js +7 -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 +43 -0
- package/dist/hub/member/agent-pictures.js +125 -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 +78 -5
- package/dist/hub/member/room-ask.js +337 -26
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-context-budget.d.ts +5 -0
- package/dist/hub/member/room-context-budget.js +34 -0
- package/dist/hub/member/room-context-budget.js.map +1 -0
- package/dist/hub/member/room-mention-feedback.d.ts +44 -0
- package/dist/hub/member/room-mention-feedback.js +121 -0
- package/dist/hub/member/room-mention-feedback.js.map +1 -0
- package/dist/hub/member/room-notification.d.ts +9 -0
- package/dist/hub/member/room-notification.js +2 -0
- package/dist/hub/member/room-notification.js.map +1 -0
- package/dist/hub/member/room-post-answers.d.ts +46 -0
- package/dist/hub/member/room-post-answers.js +152 -0
- package/dist/hub/member/room-post-answers.js.map +1 -0
- package/dist/hub/member/room-post-receipt.d.ts +21 -0
- package/dist/hub/member/room-post-receipt.js +49 -0
- package/dist/hub/member/room-post-receipt.js.map +1 -0
- package/dist/hub/member/room-post.d.ts +135 -0
- package/dist/hub/member/room-post.js +311 -0
- package/dist/hub/member/room-post.js.map +1 -0
- package/dist/hub/member/sharing-journal.d.ts +252 -0
- package/dist/hub/member/sharing-journal.js +212 -0
- package/dist/hub/member/sharing-journal.js.map +1 -0
- package/dist/hub/member/sharing-link.d.ts +25 -0
- package/dist/hub/member/sharing-link.js +68 -0
- package/dist/hub/member/sharing-link.js.map +1 -0
- package/dist/hub/member/sharing-result.d.ts +6 -0
- package/dist/hub/member/sharing-result.js +46 -0
- package/dist/hub/member/sharing-result.js.map +1 -0
- package/dist/hub/member/sharing.d.ts +39 -0
- package/dist/hub/member/sharing.js +188 -0
- package/dist/hub/member/sharing.js.map +1 -0
- package/dist/hub/member/updates.d.ts +92 -0
- package/dist/hub/member/updates.js +316 -0
- package/dist/hub/member/updates.js.map +1 -0
- package/dist/hub/pairing.d.ts +15 -1
- package/dist/hub/pairing.js +33 -2
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/personal/owner-host.d.ts +146 -0
- package/dist/hub/personal/owner-host.js +289 -0
- package/dist/hub/personal/owner-host.js.map +1 -0
- package/dist/hub/personal/refusals.d.ts +11 -0
- package/dist/hub/personal/refusals.js +33 -0
- package/dist/hub/personal/refusals.js.map +1 -0
- package/dist/hub/personal/runtime-host.d.ts +26 -0
- package/dist/hub/personal/runtime-host.js +51 -0
- package/dist/hub/personal/runtime-host.js.map +1 -0
- package/dist/hub/personal/schema.d.ts +4 -0
- package/dist/hub/personal/schema.js +54 -0
- package/dist/hub/personal/schema.js.map +1 -0
- package/dist/hub/personal/turns.d.ts +39 -0
- package/dist/hub/personal/turns.js +221 -0
- package/dist/hub/personal/turns.js.map +1 -0
- package/dist/hub/personal/types.d.ts +42 -0
- package/dist/hub/personal/types.js +2 -0
- package/dist/hub/personal/types.js.map +1 -0
- package/dist/hub/policy.d.ts +12 -3
- package/dist/hub/policy.js +62 -7
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +1274 -56
- package/dist/hub/protocol.js +123 -16
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/published-version.d.ts +3 -0
- package/dist/hub/published-version.js +35 -0
- package/dist/hub/published-version.js.map +1 -0
- package/dist/hub/quota.js +3 -1
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/recommendation-model.d.ts +36 -0
- package/dist/hub/recommendation-model.js +9 -0
- package/dist/hub/recommendation-model.js.map +1 -0
- package/dist/hub/recommendations.d.ts +58 -0
- package/dist/hub/recommendations.js +211 -0
- package/dist/hub/recommendations.js.map +1 -0
- package/dist/hub/representative.d.ts +33 -0
- package/dist/hub/representative.js +132 -12
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/roles/admin-control.d.ts +29 -0
- package/dist/hub/roles/admin-control.js +187 -0
- package/dist/hub/roles/admin-control.js.map +1 -0
- package/dist/hub/roles/admin-types.d.ts +72 -0
- package/dist/hub/roles/admin-types.js +2 -0
- package/dist/hub/roles/admin-types.js.map +1 -0
- package/dist/hub/roles/allowed-list-control.d.ts +34 -0
- package/dist/hub/roles/allowed-list-control.js +179 -0
- package/dist/hub/roles/allowed-list-control.js.map +1 -0
- package/dist/hub/roles/allowed-list.d.ts +8 -0
- package/dist/hub/roles/allowed-list.js +49 -0
- package/dist/hub/roles/allowed-list.js.map +1 -0
- package/dist/hub/roles/audit-details.d.ts +144 -0
- package/dist/hub/roles/audit-details.js +26 -0
- package/dist/hub/roles/audit-details.js.map +1 -0
- package/dist/hub/roles/authority.d.ts +12 -0
- package/dist/hub/roles/authority.js +39 -3
- package/dist/hub/roles/authority.js.map +1 -1
- package/dist/hub/roles/change.d.ts +3 -1
- package/dist/hub/roles/change.js +7 -2
- package/dist/hub/roles/change.js.map +1 -1
- package/dist/hub/roles/clock.d.ts +3 -0
- package/dist/hub/roles/clock.js +1 -1
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/convert.js +1 -1
- package/dist/hub/roles/convert.js.map +1 -1
- package/dist/hub/roles/cutover-inventory.d.ts +5 -0
- package/dist/hub/roles/cutover-inventory.js +27 -4
- package/dist/hub/roles/cutover-inventory.js.map +1 -1
- package/dist/hub/roles/cutover-marker.d.ts +18 -2
- package/dist/hub/roles/cutover-marker.js +6 -2
- package/dist/hub/roles/cutover-marker.js.map +1 -1
- package/dist/hub/roles/cutover.d.ts +2 -2
- package/dist/hub/roles/cutover.js +3 -4
- package/dist/hub/roles/cutover.js.map +1 -1
- package/dist/hub/roles/delegation.d.ts +4 -1
- package/dist/hub/roles/delegation.js +7 -2
- package/dist/hub/roles/delegation.js.map +1 -1
- package/dist/hub/roles/evaluate.d.ts +2 -1
- package/dist/hub/roles/evaluate.js +14 -0
- package/dist/hub/roles/evaluate.js.map +1 -1
- package/dist/hub/roles/expiry-effects.d.ts +8 -0
- package/dist/hub/roles/expiry-effects.js +50 -0
- package/dist/hub/roles/expiry-effects.js.map +1 -0
- package/dist/hub/roles/migrations.d.ts +7 -0
- package/dist/hub/roles/migrations.js +44 -0
- package/dist/hub/roles/migrations.js.map +1 -0
- package/dist/hub/roles/model.d.ts +25 -0
- package/dist/hub/roles/model.js +9 -3
- package/dist/hub/roles/model.js.map +1 -1
- package/dist/hub/roles/overview.d.ts +8 -0
- package/dist/hub/roles/overview.js +15 -0
- package/dist/hub/roles/overview.js.map +1 -0
- package/dist/hub/roles/resource-effects.d.ts +17 -0
- package/dist/hub/roles/resource-effects.js +62 -0
- package/dist/hub/roles/resource-effects.js.map +1 -0
- package/dist/hub/roles/review.d.ts +16 -0
- package/dist/hub/roles/review.js +42 -0
- package/dist/hub/roles/review.js.map +1 -0
- package/dist/hub/roles/writer.d.ts +14 -3
- package/dist/hub/roles/writer.js +64 -16
- package/dist/hub/roles/writer.js.map +1 -1
- package/dist/hub/room-agent-discovery-model.d.ts +29 -0
- package/dist/hub/room-agent-discovery-model.js +33 -0
- package/dist/hub/room-agent-discovery-model.js.map +1 -0
- package/dist/hub/room-agent-discovery.d.ts +14 -0
- package/dist/hub/room-agent-discovery.js +65 -0
- package/dist/hub/room-agent-discovery.js.map +1 -0
- package/dist/hub/room-agent-requests.d.ts +71 -0
- package/dist/hub/room-agent-requests.js +377 -0
- package/dist/hub/room-agent-requests.js.map +1 -0
- package/dist/hub/room-answer-status-model.d.ts +3 -0
- package/dist/hub/room-answer-status-model.js +4 -0
- package/dist/hub/room-answer-status-model.js.map +1 -0
- package/dist/hub/room-brief-model.d.ts +30 -0
- package/dist/hub/room-brief-model.js +38 -0
- package/dist/hub/room-brief-model.js.map +1 -0
- package/dist/hub/room-context-model.d.ts +45 -0
- package/dist/hub/room-context-model.js +12 -0
- package/dist/hub/room-context-model.js.map +1 -0
- package/dist/hub/room-members-model.d.ts +63 -0
- package/dist/hub/room-members-model.js +7 -0
- package/dist/hub/room-members-model.js.map +1 -0
- package/dist/hub/room-mention-feedback-model.d.ts +12 -0
- package/dist/hub/room-mention-feedback-model.js +12 -0
- package/dist/hub/room-mention-feedback-model.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +49 -10
- package/dist/hub/rooms/agents.js +356 -33
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/assistant.d.ts +1 -6
- package/dist/hub/rooms/assistant.js +7 -2
- package/dist/hub/rooms/assistant.js.map +1 -1
- package/dist/hub/rooms/automation.d.ts +24 -0
- package/dist/hub/rooms/automation.js +66 -0
- package/dist/hub/rooms/automation.js.map +1 -0
- package/dist/hub/rooms/brief.d.ts +18 -0
- package/dist/hub/rooms/brief.js +39 -0
- package/dist/hub/rooms/brief.js.map +1 -0
- package/dist/hub/rooms/buttons.d.ts +85 -0
- package/dist/hub/rooms/buttons.js +62 -0
- package/dist/hub/rooms/buttons.js.map +1 -0
- package/dist/hub/rooms/context-cursor.d.ts +18 -0
- package/dist/hub/rooms/context-cursor.js +61 -0
- package/dist/hub/rooms/context-cursor.js.map +1 -0
- package/dist/hub/rooms/context.d.ts +1 -1
- package/dist/hub/rooms/context.js +4 -4
- package/dist/hub/rooms/context.js.map +1 -1
- package/dist/hub/rooms/direct-view.d.ts +12 -3
- package/dist/hub/rooms/direct-view.js +25 -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/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 +123 -0
- package/dist/hub/rooms/office.js +79 -0
- package/dist/hub/rooms/office.js.map +1 -0
- package/dist/hub/rooms/post-replies.d.ts +23 -0
- package/dist/hub/rooms/post-replies.js +114 -0
- package/dist/hub/rooms/post-replies.js.map +1 -0
- package/dist/hub/rooms/purpose.d.ts +7 -0
- package/dist/hub/rooms/purpose.js +14 -0
- package/dist/hub/rooms/purpose.js.map +1 -0
- package/dist/hub/rooms/schema.d.ts +14 -0
- package/dist/hub/rooms/schema.js +52 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +373 -7
- package/dist/hub/rooms/service.js +1056 -47
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +46 -4
- package/dist/hub/rooms.d.ts +22 -2
- package/dist/hub/rooms.js +193 -47
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +1 -1
- package/dist/hub/runtime.js +17 -4
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +8 -1
- package/dist/hub/server.js +165 -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-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 +2 -2
- package/dist/hub/sessions.js +39 -11
- 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 +1 -1
- 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/sharing-previous-access.d.ts +22 -0
- package/dist/hub/sharing-previous-access.js +93 -0
- package/dist/hub/sharing-previous-access.js.map +1 -0
- package/dist/hub/sharing-requests.d.ts +174 -0
- package/dist/hub/sharing-requests.js +326 -0
- package/dist/hub/sharing-requests.js.map +1 -0
- package/dist/hub/sharing-retention.d.ts +47 -0
- package/dist/hub/sharing-retention.js +83 -0
- package/dist/hub/sharing-retention.js.map +1 -0
- package/dist/hub/sharing-withdrawal.d.ts +14 -0
- package/dist/hub/sharing-withdrawal.js +28 -0
- package/dist/hub/sharing-withdrawal.js.map +1 -0
- package/dist/hub/sharing.js +2 -2
- package/dist/hub/sharing.js.map +1 -1
- package/dist/hub/socket.d.ts +1 -0
- package/dist/hub/socket.js +39 -2
- package/dist/hub/socket.js.map +1 -1
- package/dist/hub/teams/index.d.ts +8 -3
- package/dist/hub/teams/index.js +106 -31
- package/dist/hub/teams/index.js.map +1 -1
- package/dist/hub/teams/store.d.ts +5 -1
- package/dist/hub/teams/store.js +25 -2
- package/dist/hub/teams/store.js.map +1 -1
- package/dist/hub/teams/types.d.ts +19 -2
- package/dist/hub/types.d.ts +173 -5
- package/dist/hub-classic-private.d.ts +19 -0
- package/dist/hub-classic-private.js +64 -0
- package/dist/hub-classic-private.js.map +1 -0
- package/dist/hub-contact-windows.d.ts +11 -0
- package/dist/hub-contact-windows.js +56 -0
- package/dist/hub-contact-windows.js.map +1 -0
- package/dist/hub-page-sharing-settings.d.ts +6 -0
- package/dist/hub-page-sharing-settings.js +19 -0
- package/dist/hub-page-sharing-settings.js.map +1 -0
- package/dist/hub-pairing-summary.d.ts +1 -1
- package/dist/hub-picture-reduce.d.ts +14 -0
- package/dist/hub-picture-reduce.js +49 -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 +11 -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.js +8 -0
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instance-config-impact.js +5 -2
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +21 -1
- package/dist/instance-lifecycle.js +55 -14
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instruction-file-sizes.d.ts +46 -0
- package/dist/instruction-file-sizes.js +115 -0
- package/dist/instruction-file-sizes.js.map +1 -0
- package/dist/instructions.d.ts +35 -1
- package/dist/instructions.js +63 -33
- package/dist/instructions.js.map +1 -1
- package/dist/locale.d.ts +2 -0
- package/dist/locale.js +373 -34
- package/dist/locale.js.map +1 -1
- package/dist/log-steps.d.ts +5 -0
- package/dist/log-steps.js +6 -2
- package/dist/log-steps.js.map +1 -1
- package/dist/login-controller.d.ts +45 -2
- package/dist/login-controller.js +98 -10
- package/dist/login-controller.js.map +1 -1
- package/dist/login-flows.js +1 -1
- package/dist/login-flows.js.map +1 -1
- package/dist/memory-guidance.d.ts +5 -0
- package/dist/memory-guidance.js +14 -0
- package/dist/memory-guidance.js.map +1 -0
- package/dist/model-defaults.d.ts +5 -0
- package/dist/model-defaults.js +6 -0
- package/dist/model-defaults.js.map +1 -0
- package/dist/native-mcp.d.ts +2 -0
- package/dist/native-mcp.js +23 -11
- package/dist/native-mcp.js.map +1 -1
- package/dist/native-model-catalog.d.ts +15 -0
- package/dist/native-model-catalog.js +43 -3
- package/dist/native-model-catalog.js.map +1 -1
- package/dist/native-pane-lifecycle.js +3 -2
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/native-pane-tools.js +3 -0
- package/dist/native-pane-tools.js.map +1 -1
- package/dist/needs-you-hub.d.ts +4 -0
- package/dist/needs-you-hub.js +17 -2
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +40 -2
- package/dist/needs-you.js +18 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +4 -4
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +28 -4
- package/dist/outbound-handlers.js +150 -13
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +32 -0
- package/dist/outbound-schemas.js +44 -25
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +2 -0
- package/dist/pause-marker.d.ts +1 -1
- package/dist/pause-marker.js +1 -1
- package/dist/pause-marker.js.map +1 -1
- package/dist/profile-signins.d.ts +1 -0
- package/dist/profile-signins.js +3 -1
- package/dist/profile-signins.js.map +1 -1
- package/dist/public-web-gateway.d.ts +20 -0
- package/dist/public-web-gateway.js +232 -9
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +21 -2
- package/dist/public-web-link.js +22 -2
- package/dist/public-web-link.js.map +1 -1
- package/dist/queued-handoffs.d.ts +16 -4
- package/dist/queued-handoffs.js +18 -1
- package/dist/queued-handoffs.js.map +1 -1
- package/dist/quickstart-api.d.ts +0 -1
- package/dist/quickstart-api.js +8 -1
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +1 -1
- package/dist/quickstart.js +2 -3
- package/dist/quickstart.js.map +1 -1
- package/dist/remote-card-answer.d.ts +1 -1
- package/dist/remote-card-answer.js +8 -1
- package/dist/remote-card-answer.js.map +1 -1
- package/dist/remote-card-prompt.d.ts +1 -0
- package/dist/remote-card-prompt.js +2 -2
- package/dist/remote-card-prompt.js.map +1 -1
- package/dist/reply-dedup.js +3 -1
- package/dist/reply-dedup.js.map +1 -1
- package/dist/reply-preview-files.d.ts +38 -0
- package/dist/reply-preview-files.js +142 -0
- package/dist/reply-preview-files.js.map +1 -0
- package/dist/reply-preview-spec.d.ts +18 -0
- package/dist/reply-preview-spec.js +27 -0
- package/dist/reply-preview-spec.js.map +1 -0
- package/dist/restart-progress.d.ts +6 -0
- package/dist/restart-progress.js +5 -0
- package/dist/restart-progress.js.map +1 -1
- package/dist/runtime-api.js +10 -2
- package/dist/runtime-api.js.map +1 -1
- package/dist/runtime-build-info.js +2 -1
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli-install.js +18 -14
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/runtime-cli.js +31 -5
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.d.ts +5 -0
- package/dist/runtime-client-store.js +28 -0
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +4 -0
- package/dist/runtime-client.js +33 -10
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +4 -2
- package/dist/runtime-coordinator.js +33 -6
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-install.d.ts +6 -1
- package/dist/runtime-install.js +12 -4
- package/dist/runtime-install.js.map +1 -1
- package/dist/runtime-pane-mcp.js +7 -3
- package/dist/runtime-pane-mcp.js.map +1 -1
- package/dist/runtime-pane-native.js +5 -2
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/runtime-personal-answer-only-probe.d.ts +3 -0
- package/dist/runtime-personal-answer-only-probe.js +134 -0
- package/dist/runtime-personal-answer-only-probe.js.map +1 -0
- package/dist/runtime-personal-answer-only.d.ts +16 -0
- package/dist/runtime-personal-answer-only.js +54 -0
- package/dist/runtime-personal-answer-only.js.map +1 -0
- package/dist/runtime-personal-answer.d.ts +30 -0
- package/dist/runtime-personal-answer.js +124 -0
- package/dist/runtime-personal-answer.js.map +1 -0
- package/dist/runtime-personal-preflight.d.ts +8 -0
- package/dist/runtime-personal-preflight.js +103 -0
- package/dist/runtime-personal-preflight.js.map +1 -0
- package/dist/runtime-personal-profile.d.ts +40 -0
- package/dist/runtime-personal-profile.js +81 -0
- package/dist/runtime-personal-profile.js.map +1 -0
- package/dist/runtime-personal-protocol.d.ts +10 -0
- package/dist/runtime-personal-protocol.js +15 -0
- package/dist/runtime-personal-protocol.js.map +1 -0
- package/dist/runtime-personal-stage.d.ts +37 -0
- package/dist/runtime-personal-stage.js +167 -0
- package/dist/runtime-personal-stage.js.map +1 -0
- package/dist/runtime-protocol.d.ts +2 -0
- package/dist/scheduler/db.js +2 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-mentions.d.ts +32 -0
- package/dist/scheduler/task-board-mentions.js +97 -0
- package/dist/scheduler/task-board-mentions.js.map +1 -0
- package/dist/scheduler/task-board-text.js +3 -0
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +199 -3
- package/dist/scheduler/task-board.js +492 -7
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/settings-api.d.ts +36 -1
- package/dist/settings-api.js +525 -96
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +4 -0
- package/dist/settings-baseline.js +7 -5
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +47 -7
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.d.ts +7 -0
- package/dist/settings-effect.js +80 -5
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.js +18 -44
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-instance-patch.js +3 -1
- package/dist/settings-instance-patch.js.map +1 -1
- package/dist/setup-form.js +10 -0
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-host.d.ts +2 -3
- package/dist/setup-host.js +3 -5
- package/dist/setup-host.js.map +1 -1
- package/dist/setup-i18n.js +2 -2
- package/dist/setup-i18n.js.map +1 -1
- package/dist/setup-wizard.js +0 -2
- package/dist/setup-wizard.js.map +1 -1
- package/dist/shared-default-adoption.d.ts +24 -0
- package/dist/shared-default-adoption.js +73 -0
- package/dist/shared-default-adoption.js.map +1 -0
- package/dist/subagent-records.d.ts +2 -0
- package/dist/subagent-records.js +64 -12
- package/dist/subagent-records.js.map +1 -1
- package/dist/subagent-service.d.ts +3 -0
- package/dist/subagent-service.js +27 -5
- package/dist/subagent-service.js.map +1 -1
- package/dist/task-board-tool.d.ts +48 -0
- package/dist/task-board-tool.js +89 -6
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-board-waker.d.ts +23 -30
- package/dist/task-board-waker.js +136 -97
- package/dist/task-board-waker.js.map +1 -1
- package/dist/tmux-manager.d.ts +2 -0
- package/dist/tmux-manager.js +2 -0
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tool-permissions.js +5 -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/topic-commands.d.ts +7 -1
- package/dist/topic-commands.js +103 -91
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-monitor.d.ts +1 -0
- package/dist/transcript-monitor.js +18 -0
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/tunnel/lease.d.ts +14 -0
- package/dist/tunnel/lease.js +23 -0
- package/dist/tunnel/lease.js.map +1 -1
- package/dist/turn-reply-guard.d.ts +2 -2
- package/dist/turn-reply-guard.js +3 -3
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/types.d.ts +37 -2
- package/dist/ui/accounts-keepalive.js +2 -1
- package/dist/ui/accounts-view.js +18 -9
- package/dist/ui/agent-details-settings.js +9 -7
- package/dist/ui/agent-export-dialog.js +4 -3
- package/dist/ui/agent-export-strings.js +4 -4
- package/dist/ui/agent-page-strings.js +18 -0
- package/dist/ui/backend-signin.js +94 -23
- package/dist/ui/chat-activity-groups.js +42 -9
- package/dist/ui/chat-activity.js +22 -3
- package/dist/ui/chat-commands.js +2 -0
- package/dist/ui/chat-mentions.js +13 -0
- package/dist/ui/chat-msg-actions.js +3 -222
- package/dist/ui/chat-pins.js +106 -0
- package/dist/ui/chat-popout-header.js +2 -2
- package/dist/ui/chat-popout-transport.js +49 -19
- package/dist/ui/chat-popout.js +15 -1
- package/dist/ui/chat-quote.js +3 -261
- package/dist/ui/chat-store.js +178 -16
- package/dist/ui/chat-task-ref-strings.js +24 -0
- package/dist/ui/chat-task-refs.js +131 -0
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/chat-workspace.js +3 -3
- package/dist/ui/claude-credentials.js +123 -0
- package/dist/ui/claude-setup-token.js +36 -0
- package/dist/ui/contact-auth-client.js +55 -0
- package/dist/ui/contact-auth-strings.js +256 -0
- package/dist/ui/contact-authorizations.js +139 -0
- package/dist/ui/contact-grant-editor.js +50 -0
- package/dist/ui/contact-needs.js +100 -0
- package/dist/ui/contact-permissions.js +251 -0
- package/dist/ui/contact-ticket-badge.js +54 -0
- package/dist/ui/contact-tool-groups.js +39 -0
- package/dist/ui/fleet-canvas.js +20 -7
- package/dist/ui/fleet-office-card.js +446 -41
- package/dist/ui/fleet-office-carousel.d.ts +14 -0
- package/dist/ui/fleet-office-carousel.js +95 -0
- package/dist/ui/fleet-office-dialogue.d.ts +6 -3
- package/dist/ui/fleet-office-dialogue.js +16 -6
- package/dist/ui/fleet-office-editor.js +6 -1
- package/dist/ui/fleet-office-layout.js +13 -13
- 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 +81 -4
- package/dist/ui/fleet-office-pack.js +514 -48
- package/dist/ui/fleet-office-play.js +498 -0
- package/dist/ui/fleet-office-skin.js +268 -38
- package/dist/ui/fleet-office-store.js +88 -3
- package/dist/ui/fleet-office-talk.js +423 -0
- package/dist/ui/fleet-office-view.js +26 -17
- package/dist/ui/fleet-office-zones.js +151 -38
- package/dist/ui/fleet-office.js +1147 -155
- package/dist/ui/fleet-route.js +44 -6
- package/dist/ui/fleet-task-activity.js +362 -0
- package/dist/ui/fleet-task-card.js +317 -314
- package/dist/ui/fleet-task-common.js +100 -10
- package/dist/ui/fleet-task-create.js +67 -0
- package/dist/ui/fleet-task-edit.js +204 -0
- package/dist/ui/fleet-task-follow.js +123 -0
- package/dist/ui/fleet-task-menu.js +1 -1
- package/dist/ui/fleet-task-owner.js +252 -0
- package/dist/ui/fleet-task-run.js +257 -0
- package/dist/ui/fleet-task-sort.js +88 -0
- package/dist/ui/fleet-task-view.js +209 -40
- package/dist/ui/fleet-task-work.js +2 -2
- package/dist/ui/fleet-tasks.js +294 -134
- package/dist/ui/host-alerts.js +23 -0
- package/dist/ui/host-footprint.js +17 -0
- package/dist/ui/host-health-model.js +42 -0
- package/dist/ui/host-health.js +82 -0
- package/dist/ui/host-install.js +87 -7
- package/dist/ui/host-monitoring-darwin.js +6 -0
- package/dist/ui/host-monitoring-help.js +7 -0
- package/dist/ui/host-monitoring-linux.js +6 -0
- package/dist/ui/host-monitoring-wsl.js +6 -0
- package/dist/ui/host-time.js +5 -0
- package/dist/ui/hub-admin-overview.js +189 -0
- package/dist/ui/hub-admin-rooms.js +1 -1
- package/dist/ui/hub-agent-copy.js +8 -2
- package/dist/ui/hub-agent-intro.js +35 -0
- package/dist/ui/hub-ai-apps-strings.js +6 -0
- package/dist/ui/hub-ai-apps.js +84 -0
- package/dist/ui/hub-attachments.js +81 -3
- package/dist/ui/hub-chat-store.js +4 -3
- package/dist/ui/hub-chat-strings.js +13 -3
- package/dist/ui/hub-client.js +123 -12
- package/dist/ui/hub-directory-editor-strings.js +2 -2
- package/dist/ui/hub-directory-editor.js +1 -0
- package/dist/ui/hub-fleet-versions.js +393 -0
- package/dist/ui/hub-grant-picker.js +28 -47
- package/dist/ui/hub-group-policy.js +26 -13
- package/dist/ui/hub-group-strings.js +28 -18
- package/dist/ui/hub-intro-notice.js +16 -0
- package/dist/ui/hub-invitations.js +5 -1
- package/dist/ui/hub-join-steps.js +27 -15
- package/dist/ui/hub-my-agents-model.js +42 -0
- package/dist/ui/hub-my-agents-strings.js +20 -0
- package/dist/ui/hub-my-agents.js +169 -0
- package/dist/ui/hub-owner-strings.js +9 -8
- package/dist/ui/hub-personal-agent-strings.js +246 -0
- package/dist/ui/hub-personal-agent.js +119 -0
- package/dist/ui/hub-policy-subjects.js +35 -0
- package/dist/ui/hub-quick-pairing.js +7 -2
- package/dist/ui/hub-quota.js +2 -1
- package/dist/ui/hub-role-audit.js +39 -0
- package/dist/ui/hub-role-forms.js +99 -0
- package/dist/ui/hub-role-notices.js +11 -0
- package/dist/ui/hub-role-view.js +86 -0
- package/dist/ui/hub-roles-strings.js +440 -0
- package/dist/ui/hub-roles.js +83 -0
- package/dist/ui/hub-room-agent-strings.js +28 -0
- package/dist/ui/hub-room-composer.js +183 -20
- package/dist/ui/hub-room-list.js +6 -4
- package/dist/ui/hub-room-members-strings.js +11 -4
- package/dist/ui/hub-room-members.js +132 -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 +161 -0
- package/dist/ui/hub-room-office.js +203 -0
- package/dist/ui/hub-room-owner-requests-strings.js +114 -0
- package/dist/ui/hub-room-owner-requests.js +264 -0
- package/dist/ui/hub-room-pins.js +43 -0
- package/dist/ui/hub-room-presence.js +14 -2
- package/dist/ui/hub-room-purpose.js +35 -0
- package/dist/ui/hub-room-search.js +126 -0
- package/dist/ui/hub-room-settings.js +79 -4
- package/dist/ui/hub-room-source-strings.js +17 -0
- package/dist/ui/hub-room-source.js +37 -0
- package/dist/ui/hub-room-strings.js +102 -7
- package/dist/ui/hub-room-thread.js +510 -65
- 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 +19 -10
- package/dist/ui/hub-subject-picker.js +58 -0
- package/dist/ui/hub-switcher.js +2 -2
- package/dist/ui/hub-teams-strings.js +10 -6
- package/dist/ui/hub-teams.js +58 -29
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/hub-welcome.js +122 -75
- package/dist/ui/image-annotate.js +2 -283
- package/dist/ui/image-lightbox.js +2 -176
- package/dist/ui/image-zoom.js +2 -242
- package/dist/ui/log-row.js +7 -5
- package/dist/ui/model-picker.js +7 -3
- package/dist/ui/native-instance-settings.js +4 -2
- package/dist/ui/notice-hub-sharing.js +81 -0
- package/dist/ui/notice-hub-update.js +94 -0
- package/dist/ui/office-share-dialog.js +2 -2
- package/dist/ui/office-share-page.js +5 -1
- package/dist/ui/panel-chat.js +578 -78
- package/dist/ui/panel-details.js +22 -1
- package/dist/ui/panel-fleet.js +49 -14
- package/dist/ui/panel-hub.js +459 -129
- package/dist/ui/panel-log.js +4 -4
- package/dist/ui/panel-needs.js +78 -24
- package/dist/ui/panel-notices.js +4 -1
- package/dist/ui/panel-runtimes.js +2 -1
- package/dist/ui/panel-settings.js +111 -51
- package/dist/ui/preview-panel.js +3 -1
- package/dist/ui/preview-popout.js +134 -0
- package/dist/ui/reply-file-preview.js +65 -0
- package/dist/ui/runtime-commands.d.ts +2 -2
- package/dist/ui/runtime-commands.js +7 -4
- package/dist/ui/search-dialog.js +8 -1
- package/dist/ui/settings-access-overview.js +5 -4
- package/dist/ui/settings-appearance.js +13 -11
- package/dist/ui/settings-apply.js +8 -3
- package/dist/ui/settings-archive-files.js +109 -0
- package/dist/ui/settings-build-version.js +2 -2
- package/dist/ui/settings-capabilities.js +2 -0
- package/dist/ui/settings-catalog.js +22 -0
- package/dist/ui/settings-connector-strings.js +23 -0
- package/dist/ui/settings-connector.js +40 -0
- package/dist/ui/settings-default-model-scope.js +40 -0
- package/dist/ui/settings-default-model-strings.js +43 -0
- package/dist/ui/settings-dialogs.js +9 -5
- package/dist/ui/settings-guests-entries.js +16 -0
- package/dist/ui/settings-guests.js +57 -15
- package/dist/ui/settings-host-alerts.js +23 -0
- package/dist/ui/settings-host-monitoring.js +71 -0
- package/dist/ui/settings-hub-connection.js +6 -7
- package/dist/ui/settings-hub-membership.js +6 -7
- package/dist/ui/settings-hub-page-sharing.js +52 -0
- package/dist/ui/settings-hub-section.js +2 -4
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-hub-updates.js +67 -0
- package/dist/ui/settings-hub.js +35 -7
- package/dist/ui/settings-layout.js +17 -14
- package/dist/ui/settings-model.js +9 -5
- package/dist/ui/settings-quota-notice.js +3 -3
- package/dist/ui/settings-registry.js +27 -5
- package/dist/ui/settings-shared-strings.js +24 -0
- package/dist/ui/settings-shared.js +62 -14
- package/dist/ui/settings-strings.js +15 -6
- package/dist/ui/settings-update.js +11 -5
- package/dist/ui/settings-web-authority.js +7 -5
- package/dist/ui/shared/access-overview.css +1 -1
- package/dist/ui/shared/accounts-keepalive.css +1 -1
- package/dist/ui/shared/accounts.css +9 -5
- package/dist/ui/shared/agent-sheet.js +120 -0
- package/dist/ui/shared/agent-widget.js +1 -2
- package/dist/ui/shared/app-i18n.js +10 -2
- package/dist/ui/shared/app-nav.js +9 -5
- package/dist/ui/shared/app-prefs.js +9 -3
- package/dist/ui/shared/app-route.js +5 -3
- package/dist/ui/shared/app-shell.js +202 -34
- package/dist/ui/shared/app-store.js +7 -3
- package/dist/ui/shared/app-stream.js +8 -2
- package/dist/ui/shared/app-swipe.js +3 -1
- package/dist/ui/shared/app-themes.js +3 -5
- package/dist/ui/shared/app-update.js +90 -8
- package/dist/ui/shared/app.css +1089 -262
- package/dist/ui/shared/app.js +12 -3
- package/dist/ui/shared/asset-url.d.ts +2 -0
- package/dist/ui/shared/asset-url.js +20 -0
- package/dist/ui/shared/chat-composer.js +36 -11
- package/dist/ui/shared/chat-msg-actions.js +233 -0
- package/dist/ui/shared/chat-quote.js +285 -0
- package/dist/ui/shared/chat-render.js +63 -10
- package/dist/ui/shared/chat-strings.js +32 -11
- package/dist/ui/shared/chat-table-select.js +175 -0
- package/dist/ui/shared/chat-thread.js +175 -29
- package/dist/ui/shared/chat-work-bar.css +118 -0
- package/dist/ui/shared/composer-focus.js +21 -0
- package/dist/ui/shared/connector-prompt.d.ts +3 -0
- package/dist/ui/shared/connector-prompt.js +20 -0
- package/dist/ui/shared/hub-ai-apps.css +12 -0
- package/dist/ui/shared/hub-chat.css +117 -4
- package/dist/ui/shared/hub-groups.css +19 -15
- package/dist/ui/shared/hub-my-agents.css +41 -0
- package/dist/ui/shared/hub-owner.css +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.css +23 -5
- package/dist/ui/shared/image-annotate.css +22 -3
- package/dist/ui/shared/image-annotate.js +416 -0
- package/dist/ui/shared/image-lightbox.js +218 -0
- package/dist/ui/shared/image-zoom.js +316 -0
- package/dist/ui/shared/info-tip.js +64 -0
- package/dist/ui/shared/instance-nav.js +166 -19
- package/dist/ui/shared/jump-idle.js +36 -0
- package/dist/ui/shared/loading.css +1 -1
- package/dist/ui/shared/model-picker.css +32 -4
- package/dist/ui/shared/module-warm.d.ts +3 -0
- package/dist/ui/shared/module-warm.js +39 -0
- package/dist/ui/shared/office-dialogue.css +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 +50 -20
- package/dist/ui/shared/preview-popout.css +11 -0
- package/dist/ui/shared/reply-previews.css +4 -0
- package/dist/ui/shared/runtime-install.css +5 -0
- package/dist/ui/shared/settings-connector.css +7 -0
- package/dist/ui/shared/signin.js +27 -12
- package/dist/ui/shared/task-board.css +505 -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 +300 -10
- package/dist/ui/shared/ui-confirm.js +5 -2
- package/dist/ui/shared/ui-icons.js +2 -0
- package/dist/ui/shared/ui-menu.js +17 -11
- package/dist/ui/shared/ui-states.js +3 -2
- package/dist/ui/shared/ui-toast.js +4 -4
- package/dist/ui/shared/usage-dialog.js +88 -17
- package/dist/ui/shared/view-history.js +2 -1
- package/dist/ui/shared/view-strings.js +28 -4
- package/dist/ui/shared/web-authorize.js +3 -3
- package/dist/ui/signin.html +4 -2
- package/dist/ui/structured-signin.js +64 -12
- package/dist/ui/subagent-row.js +3 -2
- package/dist/ui/trigger-complete.js +71 -0
- package/dist/ui/usage-pool.js +2 -1
- package/dist/ui/web-terminal/terminal.css +1 -1
- package/dist/ui/workspace-panel.js +6 -4
- package/dist/update-dispatch.d.ts +8 -1
- package/dist/update-dispatch.js +16 -1
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-idle.d.ts +65 -0
- package/dist/update-idle.js +190 -0
- package/dist/update-idle.js.map +1 -0
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +9 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +2 -2
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/profile-timeline.d.ts +2 -0
- package/dist/usage/profile-timeline.js +4 -0
- package/dist/usage/profile-timeline.js.map +1 -1
- package/dist/usage/providers.d.ts +1 -0
- package/dist/usage/providers.js +20 -7
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-history.d.ts +1 -1
- package/dist/usage/usage-api.js +5 -2
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/view-api.js +1 -1
- package/dist/view-api.js.map +1 -1
- package/dist/wake-coordinator.js +3 -2
- package/dist/wake-coordinator.js.map +1 -1
- package/dist/web-api.d.ts +62 -6
- package/dist/web-api.js +1050 -212
- package/dist/web-api.js.map +1 -1
- package/dist/web-asset-version.d.ts +65 -0
- package/dist/web-asset-version.js +259 -0
- package/dist/web-asset-version.js.map +1 -0
- package/dist/web-backend-login.d.ts +5 -1
- package/dist/web-backend-login.js +8 -2
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-archive.d.ts +147 -0
- package/dist/web-chat-archive.js +530 -0
- package/dist/web-chat-archive.js.map +1 -0
- package/dist/web-chat-history.d.ts +128 -2
- package/dist/web-chat-history.js +320 -12
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-claude-credentials.d.ts +31 -0
- package/dist/web-claude-credentials.js +138 -0
- package/dist/web-claude-credentials.js.map +1 -0
- package/dist/web-commands.d.ts +9 -5
- package/dist/web-commands.js +7 -4
- package/dist/web-commands.js.map +1 -1
- package/dist/web-guest-access.d.ts +3 -0
- package/dist/web-guest-access.js +8 -4
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-host-guard.js +3 -1
- package/dist/web-host-guard.js.map +1 -1
- package/dist/web-host-install.d.ts +30 -3
- package/dist/web-host-install.js +50 -4
- package/dist/web-host-install.js.map +1 -1
- package/dist/web-icons.js +3 -3
- package/dist/web-icons.js.map +1 -1
- package/dist/web-login.d.ts +7 -0
- package/dist/web-login.js +8 -1
- package/dist/web-login.js.map +1 -1
- package/dist/web-mentions.d.ts +2 -0
- package/dist/web-mentions.js +20 -0
- package/dist/web-mentions.js.map +1 -1
- package/dist/web-notices.d.ts +20 -0
- package/dist/web-notices.js +64 -8
- package/dist/web-notices.js.map +1 -1
- package/dist/web-office-skins.d.ts +14 -3
- package/dist/web-office-skins.js +66 -21
- 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-reply-files.d.ts +1 -0
- package/dist/web-reply-files.js +2 -0
- package/dist/web-reply-files.js.map +1 -1
- package/dist/web-session-authorization.d.ts +24 -0
- package/dist/web-session-authorization.js +32 -0
- package/dist/web-session-authorization.js.map +1 -1
- package/dist/web-session.d.ts +26 -5
- package/dist/web-session.js +32 -3
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +24 -3
- package/dist/web-settings-patch.js +57 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +2 -2
- package/dist/web-shell-routes.js +3 -2
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-terminal.d.ts +9 -0
- package/dist/web-terminal.js +27 -1
- package/dist/web-terminal.js.map +1 -1
- package/dist/web-theme.js +2 -2
- package/dist/web-update.d.ts +15 -1
- package/dist/web-upload.d.ts +37 -1
- package/dist/web-upload.js +105 -5
- package/dist/web-upload.js.map +1 -1
- package/dist/windows-cli-api.d.ts +10 -7
- package/dist/windows-cli-api.js +13 -12
- package/dist/windows-cli-api.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +10 -0
- package/dist/windows-cli-worker.js +109 -14
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +10 -1
- package/dist/windows-cli.js +47 -13
- package/dist/windows-cli.js.map +1 -1
- package/dist/windows-native-mcp.js +5 -2
- package/dist/windows-native-mcp.js.map +1 -1
- package/dist/workflow-templates/default.md +4 -6
- package/launcher/agend-install.cjs +48 -7
- package/package.json +1 -1
- package/templates/runtime-install/install.ps1 +24 -4
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { html, useEffect, useState } from "/assets/app-html.js";
|
|
2
|
+
import { t } from "/assets/app-i18n.js";
|
|
3
|
+
import { useLease } from "/assets/app-ctx.js";
|
|
4
|
+
import { connectorPrompt } from "/assets/connector-prompt.js";
|
|
5
|
+
import "./settings-connector-strings.js";
|
|
6
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
7
|
+
const tr = key => t(`connector.${key}`);
|
|
8
|
+
export function SettingsConnector() {
|
|
9
|
+
const lease = useLease("settings-connector");
|
|
10
|
+
const [info, setInfo] = useState(null), [error, setError] = useState(false), [app, setApp] = useState("claude");
|
|
11
|
+
const [where, setWhere] = useState("local"), [distro, setDistro] = useState(""), [notice, setNotice] = useState("");
|
|
12
|
+
const read = async () => {
|
|
13
|
+
try {
|
|
14
|
+
const response = await lease.fetch("/api/settings/connector"), value = await response.json();
|
|
15
|
+
if (!response.ok) throw Error("unavailable");
|
|
16
|
+
if (lease.current()) { setInfo(value); setDistro(value.wslDistro || ""); setWhere(value.wsl ? "windows" : "local"); setError(false); }
|
|
17
|
+
} catch { if (lease.current()) setError(true); }
|
|
18
|
+
};
|
|
19
|
+
useEffect(() => { void read(); }, []);
|
|
20
|
+
const name = distro.trim(), validDistro = name.length > 0 && name.length <= 128 && !/[\u0000-\u001f\u007f]/.test(name);
|
|
21
|
+
const resolved = info && { ...info, windows: validDistro ? { command: "wsl.exe", args: ["-d", name, "--", "agend", ...info.local.args] } : info.windows };
|
|
22
|
+
const prompt = resolved ? connectorPrompt(resolved, app, where, tr) : "";
|
|
23
|
+
const copy = async () => {
|
|
24
|
+
try { await navigator.clipboard.writeText(prompt); if (lease.current()) setNotice("copied"); }
|
|
25
|
+
catch { if (lease.current()) setNotice("failed"); }
|
|
26
|
+
};
|
|
27
|
+
return html`<section class="card s-group s-connector" id="connector"><link rel="stylesheet" href=${assetUrl("/assets/settings-connector.css")} /><div><h3>${tr("title")}</h3><p class="note">${tr("hint")}</p></div>
|
|
28
|
+
<p class="note">${tr("scope")}</p>
|
|
29
|
+
${error ? html`<button class="btn s-connector-action" type="button" onClick=${read}>${tr("retry")}</button>`
|
|
30
|
+
: !info ? html`<p role="status">${tr("loading")}</p>`
|
|
31
|
+
: !info.supported ? html`<p role="status">${tr("unsupported")}</p>`
|
|
32
|
+
: html`<div class="grid2"><label class="field"><span>${tr("app")}</span><select value=${app} onChange=${event => { setApp(event.target.value); setNotice(""); }}>
|
|
33
|
+
<option value="claude">${tr("claude")}</option><option value="codex">${tr("codex")}</option><option value="generic">${tr("generic")}</option></select></label>
|
|
34
|
+
${info.wsl ? html`<label class="field"><span>${tr("location")}</span><select value=${where} onChange=${event => { setWhere(event.target.value); setNotice(""); }}><option value="windows">${tr("windows")}</option><option value="local">${tr("wsl")}</option></select></label>` : null}</div>
|
|
35
|
+
${info.wsl && where === "windows" && !info.wslDistro ? html`<label class="field"><span>${tr("distro")}</span><input value=${distro} maxLength=${128} onInput=${event => { setDistro(event.target.value); setNotice(""); }} /><small>${tr("distroHint")}</small></label>` : null}
|
|
36
|
+
<p class="note">${tr("noSecrets")}</p><button class="btn s-connector-action" type="button" disabled=${!prompt} onClick=${copy}>${tr("copy")}</button>
|
|
37
|
+
${notice ? html`<p role="status">${tr(notice)}</p>` : null}
|
|
38
|
+
<details><summary>${tr("config")}</summary><div class="field"><textarea readOnly rows=${12} aria-label=${tr("config")} value=${prompt}></textarea></div></details>`}
|
|
39
|
+
</section>`;
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Shared Settings preview: use raw ownership, never expanded live config.
|
|
2
|
+
const effectiveIdentity = (inst, defaults) => {
|
|
3
|
+
const backend = inst.backend || defaults.backend || "claude-code";
|
|
4
|
+
const model = inst.model?.trim() || (inst.runtime !== "windows" && backend === (defaults.backend || "claude-code") ? defaults.model?.trim() : "") || "";
|
|
5
|
+
return [backend, model];
|
|
6
|
+
};
|
|
7
|
+
export const defaultIdentityTargets = (fleet, next) => Object.entries(fleet?.instances || {}).filter(([, inst]) => {
|
|
8
|
+
const before = effectiveIdentity(inst, fleet?.defaults || {}), after = effectiveIdentity(inst, next);
|
|
9
|
+
return before.some((v, i) => v !== after[i]);
|
|
10
|
+
}).map(([name]) => name);
|
|
11
|
+
|
|
12
|
+
export const defaultClassicTargets = (classic, before, after) => {
|
|
13
|
+
const d = classic?.defaults || {};
|
|
14
|
+
const values = (room, fleet) => {
|
|
15
|
+
const backend = room.backend || d.backend || fleet.backend || "claude-code";
|
|
16
|
+
const classicBackend = d.backend || fleet.backend || "claude-code";
|
|
17
|
+
return [backend, room.model || (backend === classicBackend && d.model)
|
|
18
|
+
|| (backend === (fleet.backend || "claude-code") && fleet.model) || ""];
|
|
19
|
+
};
|
|
20
|
+
return Object.entries(classic?.channels || {}).filter(([, room]) => room && typeof room === "object").filter(([, room]) => {
|
|
21
|
+
const a = values(room, before), b = values(room, after);
|
|
22
|
+
return a.some((v, i) => v !== b[i]);
|
|
23
|
+
}).map(([key, room]) => ({ key, instanceName: room.instanceName }));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** One identity form for preview, confirmation and result rows. */
|
|
27
|
+
export const defaultIdentityRecord = (name, fleet, classic, live = {}) => {
|
|
28
|
+
const room = Object.values(classic?.channels || {}).find(room => room?.instanceName === name);
|
|
29
|
+
const display = live?.[name]?.display_name || fleet?.instances?.[name]?.display_name || room?.display_name || room?.name;
|
|
30
|
+
return { name, ...(typeof display === "string" && display.trim() ? { display_name: display.trim() } : {}) };
|
|
31
|
+
};
|
|
32
|
+
/** Unknown/paused/stopped owners are deferred. The confirm never guesses they run. */
|
|
33
|
+
export const runningDefaultIdentityTargets = (fleet, classic, live = {}, next) => {
|
|
34
|
+
const names = new Set([...defaultIdentityTargets(fleet, next),
|
|
35
|
+
...defaultClassicTargets(classic, fleet?.defaults || {}, next).map(room => room.instanceName).filter(Boolean)]);
|
|
36
|
+
return [...names].filter(name => live?.[name]?.status === "running").map(name => {
|
|
37
|
+
const row = defaultIdentityRecord(name, fleet, classic, live);
|
|
38
|
+
return { name, label: row.display_name || name };
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { register } from "/assets/app-i18n.js";
|
|
2
|
+
register("settings", {
|
|
3
|
+
en: {
|
|
4
|
+
defaultIdentityRestartConfirmOne: "Restart 1 running agent now?\n\n{1}\n\nThis interrupts their current sessions. Stopped and paused agents stay stopped.",
|
|
5
|
+
defaultIdentityRestartButton: "Restart now",
|
|
6
|
+
defaultIdentityNamedTarget: "{0} ({1})",
|
|
7
|
+
defaultLabelWithUnit: "{0} ({1})",
|
|
8
|
+
changesApplied: "Changes applied. AgEnD is reconciling affected Agents.",
|
|
9
|
+
modelCatalogCached: "Source: AgEnD's cached CLI/account model list.",
|
|
10
|
+
|
|
11
|
+
defaultIdentityAffected: "Changes backend or model for {0} agents. Other backends keep their own model defaults.",
|
|
12
|
+
defaultIdentityNames: "Affected: {0}",
|
|
13
|
+
defaultIdentityRooms: "Also changes {0} ClassicBot room(s), with the same timing choice.",
|
|
14
|
+
defaultModelCount: "{0}/{1} agents on this backend inherit its shared model.",
|
|
15
|
+
defaultIdentityOtherEdits: "Other changes: {0}",
|
|
16
|
+
defaultIdentityWhen: "When to use the new backend or model",
|
|
17
|
+
defaultIdentityNext: "Next restart · no restart now",
|
|
18
|
+
defaultIdentityRestart: "Restart running agents now",
|
|
19
|
+
defaultIdentityChoiceHint: "Saved defaults wait for the next restart unless you choose to restart running agents now. Stopped and paused agents stay stopped. Other edited settings keep their own apply rules.",
|
|
20
|
+
defaultIdentityRestartConfirm: "Restart {0} running agents now?\n\n{1}\n\nThis interrupts their current sessions. Stopped and paused agents stay stopped.",
|
|
21
|
+
defaultIdentityPending: "Saved · applies on next restart",
|
|
22
|
+
},
|
|
23
|
+
"zh-TW": {
|
|
24
|
+
defaultIdentityRestartConfirmOne: "要立即重啟這 {0} 個執行中的 Agent 嗎?\n\n{1}\n\n這會中斷其目前的工作階段。已停止或暫停者不會啟動。",
|
|
25
|
+
defaultIdentityRestartButton: "立即重啟",
|
|
26
|
+
defaultIdentityNamedTarget: "{0}({1})",
|
|
27
|
+
defaultLabelWithUnit: "{0}({1})",
|
|
28
|
+
changesApplied: "變更已儲存,正在套用到受影響的 Agent。",
|
|
29
|
+
modelCatalogCached: "來源:AgEnD 已取得的 CLI/帳號模型清單。",
|
|
30
|
+
|
|
31
|
+
defaultIdentityAffected: "{0} 個 Agent 的後端或模型會改變;其他後端保留各自的預設模型。",
|
|
32
|
+
defaultIdentityNames: "受影響:{0}",
|
|
33
|
+
defaultIdentityRooms: "另有 {0} 個 ClassicBot 房間受影響,沿用相同的套用時間選擇。",
|
|
34
|
+
defaultModelCount: "此後端有 {0}/{1} 個 Agent 沿用共用模型。",
|
|
35
|
+
defaultIdentityOtherEdits: "其他修改:{0}",
|
|
36
|
+
defaultIdentityWhen: "何時使用新的後端或模型",
|
|
37
|
+
defaultIdentityNext: "下次重啟時(現在不重啟)",
|
|
38
|
+
defaultIdentityRestart: "立即重啟執行中的 Agent",
|
|
39
|
+
defaultIdentityChoiceHint: "儲存的預設值會等到下次重啟才套用,除非你選擇立即重啟。已停止或暫停的 Agent 不會啟動;其他修改仍依各自的套用方式處理。",
|
|
40
|
+
defaultIdentityRestartConfirm: "要立即重啟這 {0} 個執行中的 Agent 嗎?\n\n{1}\n\n這會中斷其目前的工作階段。已停止或暫停者不會啟動。",
|
|
41
|
+
defaultIdentityPending: "已儲存 · 下次重啟時套用",
|
|
42
|
+
},
|
|
43
|
+
});
|
|
@@ -19,7 +19,8 @@ import { goToTarget } from "./settings-registry.js";
|
|
|
19
19
|
import { sectionPath } from "/assets/app-route.js";
|
|
20
20
|
import { backendLabel } from "/assets/instance-nav.js";
|
|
21
21
|
import {AgentRuntimeSettings} from "./agent-runtime-settings.js";
|
|
22
|
-
import "./settings-strings.js";
|
|
22
|
+
import "./settings-strings.js";
|
|
23
|
+
import "./settings-default-model-strings.js"; // its words, wherever a picker of this file is used (#2072: Fleet's create dialog too)
|
|
23
24
|
import "./settings-shared-strings.js";
|
|
24
25
|
import { pt } from "./agent-page-strings.js";
|
|
25
26
|
import { ew } from "./effort-field-strings.js"; // the effort field's words: lazy and fixed (a retained old agent-page-strings lacks them)
|
|
@@ -68,7 +69,7 @@ export const choiceOptions = (field, values) => values.map((v) => ({ value: v, l
|
|
|
68
69
|
export function Select({ value, options, onChange, disabled, id, label }) {
|
|
69
70
|
const opts = options.map((o) => (typeof o === "string" ? { value: o, label: o } : o));
|
|
70
71
|
return html`<select id=${id} value=${value} disabled=${disabled} aria-label=${label} onChange=${(e) => onChange(e.target.value)}>
|
|
71
|
-
${opts.map((o) => html`<option key=${o.value} value=${o.value}>${o.label}</option>`)}</select>`;
|
|
72
|
+
${opts.map((o) => html`<option key=${o.value} value=${o.value} disabled=${o.disabled}>${o.label}</option>`)}</select>`;
|
|
72
73
|
}
|
|
73
74
|
/**
|
|
74
75
|
* #2072: a backend field shows every backend with what this host says about it — one it cannot run is disabled with
|
|
@@ -439,6 +440,8 @@ export function AgentFields({ m, cat, onDelete, idPrefix = "" }) {
|
|
|
439
440
|
${windows ? null : html`<${Card} title=${pt("cardInstructions")} span=${true}>
|
|
440
441
|
<div class="field">${L(pt("lbl_instructions"), "instance.systemPrompt", "ag-sys", pt("tip_instructions"))}<${InstructionsField} id=${fieldId("ag-sys")} value=${f.systemPrompt} saved=${inst.systemPrompt || ""} onChange=${set("systemPrompt")} />
|
|
441
442
|
<p class="note">${pt("note_instructions")}</p></div>
|
|
443
|
+
<div class="field">${L(pt("lbl_operations"), "instance.operations", "ag-ops", pt("tip_operations"))}<textarea id=${fieldId("ag-ops")} rows="4" maxLength=${2000} placeholder=${pt("ph_operations")} value=${f.operations} onInput=${(e) => set("operations")(e.target.value)} />
|
|
444
|
+
<p class="note">${pt("note_operations")}</p></div>
|
|
442
445
|
<${AgentTemplateTools} idPrefix=${idPrefix} name=${name} m=${m} /></${Card}>`}</div>`;
|
|
443
446
|
if (cat === "runtime") return html`<div class="ap-grid">
|
|
444
447
|
<${Card} title=${pt("cardRuntime")}>
|
|
@@ -447,7 +450,7 @@ export function AgentFields({ m, cat, onDelete, idPrefix = "" }) {
|
|
|
447
450
|
</${Card}>
|
|
448
451
|
<${Card} title=${pt("cardModel")}>
|
|
449
452
|
<div class="field">${L(tn("model"), "instance.model", "ag-model", pt("tip_model"))}<${ModelSelect} id=${fieldId("ag-model")} value=${f.model} onChange=${set("model")}
|
|
450
|
-
backend=${acctBackend} instance=${name} profile=${windows ? undefined : acct} inherit=${tn("inheritValue", defaults.model || tn("modelCliDefault"))} /></div>
|
|
453
|
+
backend=${acctBackend} instance=${name} profile=${windows ? undefined : acct} inherit=${tn("inheritValue", (!windows && acctBackend === (defaults.backend || "claude-code") && defaults.model) || tn("modelCliDefault"))} /></div>
|
|
451
454
|
<${EffortField} m=${m} id=${fieldId("ag-effort")} />
|
|
452
455
|
${acctBackend === "codex" && !windows ? html`<div class="field codex-speed">${L(tn("codexSpeed"), "instance.backend_options", "ag-speed", pt("tip_codexSpeed"))}
|
|
453
456
|
<${Select} id=${fieldId("ag-speed")} value=${f.codex_speed} onChange=${set("codex_speed")}
|
|
@@ -844,7 +847,7 @@ export function useClassicForm({ room, ctx }) {
|
|
|
844
847
|
const { fleet, classic, schema } = ctx;
|
|
845
848
|
const cd = (classic && classic.defaults) || {}, fd = fleet.defaults || {};
|
|
846
849
|
const inherited = {
|
|
847
|
-
backend: cd.backend || fd.backend || "claude-code",
|
|
850
|
+
backend: cd.backend || fd.backend || "claude-code",
|
|
848
851
|
auto_pause_after: cd.auto_pause_after ?? fd.auto_pause_after ?? 0, tool_progress: cd.tool_progress ?? fd.tool_progress ?? "off",
|
|
849
852
|
reply_triggers: Boolean(cd.reply_triggers ?? fd.reply_triggers ?? schema.reply_triggers_default),
|
|
850
853
|
reply_completion_guard: cd.reply_completion_guard ?? fd.reply_completion_guard ?? true,
|
|
@@ -921,6 +924,7 @@ export function useClassicForm({ room, ctx }) {
|
|
|
921
924
|
|
|
922
925
|
/** The fields of one category of a ClassicBot room: the dialog's fields, grouped, each with its ⓘ. */
|
|
923
926
|
export function ClassicFields({ m, cat, idPrefix = "" }) {
|
|
927
|
+
const cd = m.ctx.classic?.defaults || {};
|
|
924
928
|
const { c, f, set, setInherit, errors, classicMode, fd, inherited, roomInh, schema, L: originalLabel, acct, setAcct, acctBackend } = m;
|
|
925
929
|
const fieldId = key => key == null ? key : `${idPrefix}${key}`;
|
|
926
930
|
const L = (text, field, key, tip) => originalLabel(text, field, fieldId(key), tip);
|
|
@@ -929,7 +933,7 @@ export function ClassicFields({ m, cat, idPrefix = "" }) {
|
|
|
929
933
|
${!c.backend && f.backend === inherited.backend ? html`<${Inherited} ...${roomInh("backend", "backend", "#g-cbe", "#g-be")} />` : null}
|
|
930
934
|
${capsOf(acctBackend)?.namedAccounts ? html`<${AccountSelect} id=${fieldId("cl-account")} backend=${acctBackend} value=${acct} onChange=${setAcct} />` : null}</div>
|
|
931
935
|
<div class="field">${L(tn("model"), "classic.model", "cl-model", pt("tip_classicModel"))}<${ModelSelect} id=${fieldId("cl-model")} value=${f.model} onChange=${set("model")}
|
|
932
|
-
backend=${f.backend} instance=${c.instanceName} profile=${acct} inherit=${tn("inheritValue",
|
|
936
|
+
backend=${f.backend} instance=${c.instanceName} profile=${acct} inherit=${tn("inheritValue", ((f.backend === (cd.backend || fd.backend || "claude-code") && cd.model?.trim()) || (f.backend === (fd.backend || "claude-code") && fd.model?.trim())) || tn("modelCliDefault"))} /></div>
|
|
933
937
|
<div class="field">${L(`${tn("autoPause")} (${tn("minutes")})`, "classic.auto_pause_after", "cl-auto", pt("tip_classicAutoPause"))}
|
|
934
938
|
<${Override} inherit=${f.inherit.auto_pause_after} onInherit=${setInherit("auto_pause_after")} inherited=${roomInh("auto_pause_after", "minutes", "#classicbot", "#g-auto")}>
|
|
935
939
|
<input id=${fieldId("cl-auto")} type="number" min="0" step="1" class=${errors.auto ? "invalid" : ""} disabled=${f.inherit.auto_pause_after}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// #2348: the Guests section's entries in Settings search (settings-registry.js). A file with no imports of its own, so
|
|
2
|
+
// the registry can read them while settings-guests.js (which uses settings-dialogs → settings-registry) is still loading
|
|
3
|
+
// (M-3276).
|
|
4
|
+
export const GUESTS_SETTINGS = [
|
|
5
|
+
{ id: "guests.enabled", section: "access", card: "guests", key: "web.guests.enabled",
|
|
6
|
+
label: { en: "Guest sign-in", "zh-TW": "訪客登入" }, words: { en: ["guest", "sign in", "visitor", "share"], "zh-TW": ["訪客", "登入", "分享"] } },
|
|
7
|
+
{ id: "guests.chat", section: "access", card: "guests", key: "web.guests.chat",
|
|
8
|
+
label: { en: "Guests may chat", "zh-TW": "訪客可以聊天" }, words: { en: ["guest", "chat", "read-only"], "zh-TW": ["訪客", "聊天", "唯讀"] } },
|
|
9
|
+
{ id: "guests.grants", section: "access", card: "guests", key: "web.guests.grants",
|
|
10
|
+
label: { en: "People with access", "zh-TW": "有存取權的人" }, words: { en: ["guest", "grant", "access", "person", "user", "agents", "who can see"], "zh-TW": ["訪客", "授權", "存取", "使用者", "誰可以看"] } },
|
|
11
|
+
// M-3276: a guest's sign-in length and idle sign-out.
|
|
12
|
+
{ id: "guests.session", section: "access", card: "guests", key: "web.guests.session", target: "#guestSession",
|
|
13
|
+
label: { en: "Guest sign-in length", "zh-TW": "訪客登入時長" }, words: { en: ["guest", "session", "sign-in length", "idle", "timeout", "expire", "sign out"], "zh-TW": ["訪客", "登入時長", "閒置", "逾時", "登出", "期限"] } },
|
|
14
|
+
{ id: "guests.send-code", section: "access", card: "guests",
|
|
15
|
+
label: { en: "Send sign-in code", "zh-TW": "傳送裝置登入碼" }, words: { en: ["code", "sign-in code", "invite", "token", "DM"], "zh-TW": ["裝置登入碼", "登入碼", "邀請", "私訊"] } },
|
|
16
|
+
];
|
|
@@ -18,6 +18,7 @@ import { api } from "./settings-confirm.js";
|
|
|
18
18
|
import { DEFAULT_SCHEMA, impactOf } from "./settings-model.js";
|
|
19
19
|
import "./settings-strings.js";
|
|
20
20
|
import { layoutText } from "./settings-layout.js";
|
|
21
|
+
import { Feedback, Impact, InEffect } from "./settings-dialogs.js";
|
|
21
22
|
|
|
22
23
|
const tn = (k, ...v) => t(`settings.${k}`, ...v);
|
|
23
24
|
const PLATFORMS = { discord: "Discord", telegram: "Telegram" };
|
|
@@ -27,10 +28,34 @@ const accountKey = (g) => `${g.adapterId}:${g.userId}`;
|
|
|
27
28
|
// #2855: a grant's level — "trusted", or chat (the default, so never written).
|
|
28
29
|
const grantOf = (v) => ({ ...(v.name ? { name: v.name } : {}), instances: [...v.instances], ...(v.level === "trusted" ? { level: "trusted" } : {}) });
|
|
29
30
|
const copyGrants = (m) => { const out = {}; for (const [k, v] of Object.entries(m || {})) if (v && Array.isArray(v.instances)) out[k] = grantOf(v); return out; };
|
|
30
|
-
|
|
31
|
+
const text = (v) => (v === null || v === undefined ? "" : String(v));
|
|
32
|
+
/**
|
|
33
|
+
* The saved state, from the fleet's config: `grants` null while the fleet still uses #1920's derived access. M-3276:
|
|
34
|
+
* `sAbs` / `sIdle`, the guest session limits as typed (empty: the default).
|
|
35
|
+
*/
|
|
31
36
|
export function savedGuests(fleet) {
|
|
32
|
-
const g = (fleet && fleet.web && fleet.web.guests) || {};
|
|
33
|
-
return { enabled: g.enabled === true, chat: g.chat !== false, grants: g.grants ? copyGrants(g.grants) : null
|
|
37
|
+
const g = (fleet && fleet.web && fleet.web.guests) || {}, session = (g.session && typeof g.session === "object") ? g.session : {};
|
|
38
|
+
return { enabled: g.enabled === true, chat: g.chat !== false, grants: g.grants ? copyGrants(g.grants) : null,
|
|
39
|
+
sAbs: text(session.absolute_hours), sIdle: text(session.idle_minutes) };
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* M-3276: GUEST_SESSION_BOUNDS and GUEST_SESSION_POLICY (web-session.ts) — an admin's own bounds: 1–720 h, 15–43200 min
|
|
43
|
+
* (720 h); default 12 h / 120 min.
|
|
44
|
+
*/
|
|
45
|
+
export const GUEST_SESSION = { absMin: 1, absMax: 720, idleMin: 15, idleMax: 43200, absDefault: 12, idleDefault: 120 };
|
|
46
|
+
const typed = (v) => (String(v ?? "").trim() === "" ? null : Number(v));
|
|
47
|
+
/**
|
|
48
|
+
* M-3276: the guest session fields' checks, as the validator judges them (config-validator.ts, web.guests.session): each
|
|
49
|
+
* within its bounds, the idle time never over the sign-in length (a typed one; an empty one follows a shorter length) —
|
|
50
|
+
* and what applies: the length, and the idle time (capped by the length).
|
|
51
|
+
*/
|
|
52
|
+
export function guestSessionCheck(f) {
|
|
53
|
+
const G = GUEST_SESSION, a = typed(f.sAbs), i = typed(f.sIdle);
|
|
54
|
+
const abs = a !== null && (!Number.isFinite(a) || a < G.absMin || a > G.absMax) ? "guestSessionAbsoluteRange" : "";
|
|
55
|
+
const absNow = a === null || abs ? G.absDefault : a;
|
|
56
|
+
const idle = i !== null && (!Number.isFinite(i) || i < G.idleMin || i > G.idleMax) ? "guestSessionIdleRange"
|
|
57
|
+
: i !== null && !abs && i > absNow * 60 ? "guestSessionIdleOver" : "";
|
|
58
|
+
return { abs, idle, absNow, idleNow: Math.min(i === null || idle ? G.idleDefault : i, absNow * 60) };
|
|
34
59
|
}
|
|
35
60
|
const levelOf = (g) => (g && g.level === "trusted" ? "trusted" : "chat");
|
|
36
61
|
const sameGrant = (a, b) => !!a && !!b && (a.name || "") === (b.name || "") && sameList(a.instances, b.instances) && levelOf(a) === levelOf(b);
|
|
@@ -44,6 +69,13 @@ export function guestsBody(original, f) {
|
|
|
44
69
|
let count = 0;
|
|
45
70
|
if (f.enabled !== original.enabled) { out.enabled = f.enabled ? true : null; count++; } // off is the default
|
|
46
71
|
if (f.chat !== original.chat) { out.chat = f.chat ? null : false; count++; } // on is the default
|
|
72
|
+
// M-3276: the session limits, a key each (empty: null, back to the default).
|
|
73
|
+
const session = {};
|
|
74
|
+
for (const [key, field] of [["absolute_hours", "sAbs"], ["idle_minutes", "sIdle"]]) {
|
|
75
|
+
if (String(f[field] ?? "").trim() === String(original[field] ?? "").trim()) continue;
|
|
76
|
+
session[key] = typed(f[field]); count++;
|
|
77
|
+
}
|
|
78
|
+
if (Object.keys(session).length) out.session = session;
|
|
47
79
|
if (f.grants) {
|
|
48
80
|
const was = original.grants || {}, diff = {};
|
|
49
81
|
for (const k of new Set([...Object.keys(was), ...Object.keys(f.grants)])) {
|
|
@@ -84,7 +116,7 @@ const clock = (ms) => new Date(ms).toLocaleTimeString([], { hour: "2-digit", min
|
|
|
84
116
|
const COOLDOWN_MS = 60_000;
|
|
85
117
|
|
|
86
118
|
/** A draft as staged (#2365 review: carried in the staged change, so leaving the section and coming back keeps it). */
|
|
87
|
-
const cloneDraft = (d) => ({ enabled: !!d.enabled, chat: d.chat !== false, grants: d.grants ? copyGrants(d.grants) : null });
|
|
119
|
+
const cloneDraft = (d) => ({ enabled: !!d.enabled, chat: d.chat !== false, grants: d.grants ? copyGrants(d.grants) : null, sAbs: text(d.sAbs), sIdle: text(d.sIdle) });
|
|
88
120
|
|
|
89
121
|
export function GuestsSection({ ctx, staged }) {
|
|
90
122
|
const readOnly = !!ctx.readOnly;
|
|
@@ -129,12 +161,14 @@ export function GuestsSection({ ctx, staged }) {
|
|
|
129
161
|
}, [sendState]);
|
|
130
162
|
|
|
131
163
|
const empty = f.grants ? Object.entries(f.grants).find(([, g]) => !g.instances.length) : null;
|
|
164
|
+
const sessionCheck = guestSessionCheck(f), sessionError = sessionCheck.abs || sessionCheck.idle;
|
|
132
165
|
// Stage on every edit: the shell's bar is this section's Save.
|
|
133
166
|
useEffect(() => {
|
|
134
167
|
const change = (diff) => (diff ? {
|
|
135
168
|
label: tn("guestsTitle"), impact: impactOf(ctx.schema || DEFAULT_SCHEMA, "web.guests"), count: diff.count, draft: cloneDraft(f),
|
|
136
169
|
request: { method: "PUT", url: "/api/settings/fleet/web", body: { guests: diff.body } },
|
|
137
|
-
...(
|
|
170
|
+
...(sessionError ? { invalid: tn(sessionError), section: "access", target: sessionCheck.abs ? "#guestSessionAbsolute" : "#guestSessionIdle" }
|
|
171
|
+
: empty ? { invalid: tn("grantsNoAgents"), section: "access", target: "#guests" } : {}),
|
|
138
172
|
onResult: (outcome) => {
|
|
139
173
|
if (!outcome || outcome.status === "applied") { setStatus(null); load(); }
|
|
140
174
|
else if (outcome.status === "waiting") setStatus({ kind: "waiting" });
|
|
@@ -227,6 +261,21 @@ export function GuestsSection({ ctx, staged }) {
|
|
|
227
261
|
</div><div> <label class=${`check${f.chat !== original.chat ? " s-dirty" : ""}`}><input class="s-ui-toggle" id="guestsChat" type="checkbox" checked=${f.chat} onChange=${(e) => set({ chat: e.target.checked })} /><span>${tn("guestsChat")}</span></label>
|
|
228
262
|
<p class="note">${tn("guestsChatHint")}</p>
|
|
229
263
|
</div></div>
|
|
264
|
+
${/* M-3276: a guest's sign-in length and idle sign-out (web.guests.session), as the local session fields. */ ""}
|
|
265
|
+
<div class="s-guest-session" id="guestSession">
|
|
266
|
+
<h4>${tn("guestSessionTitle")}</h4>
|
|
267
|
+
<div class="grid2">
|
|
268
|
+
<div class=${`field${f.sAbs.trim() !== original.sAbs.trim() ? " s-dirty" : ""}`}><label for="guestSessionAbsolute">${tn("guestSessionAbsolute")}<${Impact} schema=${ctx.schema || DEFAULT_SCHEMA} field="web.guests.session.absolute_hours" /></label>
|
|
269
|
+
<input id="guestSessionAbsolute" type="number" min=${GUEST_SESSION.absMin} max=${GUEST_SESSION.absMax} step="any" class=${sessionCheck.abs ? "invalid" : ""} value=${f.sAbs} onInput=${(e) => set({ sAbs: e.target.value })} />
|
|
270
|
+
<${Feedback} error=${sessionCheck.abs} />
|
|
271
|
+
${f.sAbs.trim() === "" ? html`<${InEffect} text=${tn("hoursValue", GUEST_SESSION.absDefault)} />` : null}</div>
|
|
272
|
+
<div class=${`field${f.sIdle.trim() !== original.sIdle.trim() ? " s-dirty" : ""}`}><label for="guestSessionIdle">${tn("guestSessionIdle")}<${Impact} schema=${ctx.schema || DEFAULT_SCHEMA} field="web.guests.session.idle_minutes" /></label>
|
|
273
|
+
<input id="guestSessionIdle" type="number" min=${GUEST_SESSION.idleMin} max=${GUEST_SESSION.idleMax} step="any" class=${sessionCheck.idle ? "invalid" : ""} value=${f.sIdle} onInput=${(e) => set({ sIdle: e.target.value })} />
|
|
274
|
+
<${Feedback} error=${sessionCheck.idle} />
|
|
275
|
+
${f.sIdle.trim() === "" && !sessionCheck.abs ? html`<${InEffect} text=${tn("minutesValue", sessionCheck.idleNow)} why=${sessionCheck.idleNow < GUEST_SESSION.idleDefault ? tn("cappedBySession") : null} />` : null}</div>
|
|
276
|
+
</div>
|
|
277
|
+
<p class="note" id="guestSessionNote">${tn("guestSessionNote")}</p>
|
|
278
|
+
</div>
|
|
230
279
|
${failed ? html`<p class="note" role="status">${tn("guestsLoadFailed")} <button type="button" class="btn btn-sm" onClick=${load}>${t("app.retry")}</button></p>`
|
|
231
280
|
: !overview ? html`<${Skeleton} variant="rows" lines=${3} />` : null}
|
|
232
281
|
${!f.grants && overview ? html`<div class="g-legacy"><p class="note">${tn("grantsLegacy")}</p>
|
|
@@ -306,13 +355,6 @@ export const CODE_REASONS = { guests_off: "codeGuestsOff", admin: "codeAdmin", n
|
|
|
306
355
|
const AUDIT_OUTCOMES = { dm_failed: "grantsAuditDmFailed", wait: "grantsAuditWait", admin_limit: "grantsAuditAdminLimit" };
|
|
307
356
|
const auditOutcome = (outcome) => (Object.prototype.hasOwnProperty.call(AUDIT_OUTCOMES, outcome) ? tn(AUDIT_OUTCOMES[outcome]) : guestCodeReason({ outcome }));
|
|
308
357
|
export const guestCodeReason = (b) => (Object.prototype.hasOwnProperty.call(CODE_REASONS, b.outcome) ? tn(CODE_REASONS[b.outcome]) : b.error || b.outcome || "?");
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
{ id: "guests.chat", section: "access", card: "guests", key: "web.guests.chat",
|
|
313
|
-
label: { en: "Guests may chat", "zh-TW": "訪客可以聊天" }, words: { en: ["guest", "chat", "read-only"], "zh-TW": ["訪客", "聊天", "唯讀"] } },
|
|
314
|
-
{ id: "guests.grants", section: "access", card: "guests", key: "web.guests.grants",
|
|
315
|
-
label: { en: "People with access", "zh-TW": "有存取權的人" }, words: { en: ["guest", "grant", "access", "person", "user", "agents", "who can see"], "zh-TW": ["訪客", "授權", "存取", "使用者", "誰可以看"] } },
|
|
316
|
-
{ id: "guests.send-code", section: "access", card: "guests",
|
|
317
|
-
label: { en: "Send sign-in code", "zh-TW": "傳送裝置登入碼" }, words: { en: ["code", "sign-in code", "invite", "token", "DM"], "zh-TW": ["裝置登入碼", "登入碼", "邀請", "私訊"] } },
|
|
318
|
-
];
|
|
358
|
+
// The search entries live in settings-guests-entries.js (no imports): settings-registry reads them, and this file uses
|
|
359
|
+
// settings-dialogs, which reads settings-registry — kept apart, neither import waits on the other (M-3276).
|
|
360
|
+
export { GUESTS_SETTINGS } from "./settings-guests-entries.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {monitoringHelp} from './host-monitoring-help.js';
|
|
2
|
+
import {html,useEffect} from '/assets/app-html.js';
|
|
3
|
+
import {register,t} from '/assets/app-i18n.js';
|
|
4
|
+
import {useDraft,syncStage} from './settings-draft.js';
|
|
5
|
+
import {hostAlertText,hostAlertDrive,hostAlertName} from './host-alerts.js';
|
|
6
|
+
register('hostAlertSettings',{
|
|
7
|
+
en:{title:'Host alert settings',needs:'Show in Needs you',general:'Send summaries to General',handoff:'General is off initially. The existing disk-watch script keeps sending its own alerts, so turning General on may send duplicate alerts.',resource:'Resource',warning:'Warning',urgent:'Urgent',clear:'Recovery',percent:'Percent used',gib:'GiB available',criticalOnly:'Alert only at critical',criticalHint:'Elevated pressure will not open a warning. Turning this on clears existing elevated warnings; critical alerts and recovery are unchanged.',fixed:'Memory thresholds use the existing Normal / Elevated / Critical pressure states.',defaults:'Restore defaults',holds:'Threshold holds and recovery delays keep brief spikes from becoming alerts. Acknowledgment does not hide a problem; snooze it from Host health.',off:'Rules are saved while monitoring is off. No alert checks, notification retries or incident files run while off.'},
|
|
8
|
+
'zh-TW':{title:'主機警示設定',needs:'顯示在「等你處理」',general:'傳送摘要至 General',handoff:'General 通知預設關閉。現有 disk-watch 腳本仍會傳送自己的警示,開啟 General 通知可能會收到重複提醒。',resource:'監測項目',warning:'注意',urgent:'緊急',clear:'恢復',percent:'使用率(%)',gib:'可用 GiB',criticalOnly:'只在嚴重時警示',criticalHint:'壓力偏高時不發出注意警示。開啟後會清除現有的偏高警示;嚴重警示與恢復條件不變。',fixed:'記憶體門檻沿用正常/偏高/嚴重的壓力狀態。',defaults:'還原預設值',holds:'門檻持續時間與恢復延遲可避免短暫尖峰觸發警示。標記已看過不會隱藏問題;可在主機狀態暫停提醒。',off:'監測關閉時仍可儲存規則,但不會執行警示檢查、通知重試或建立問題檔案。'}
|
|
9
|
+
});
|
|
10
|
+
const text=k=>t('hostAlertSettings.'+k);
|
|
11
|
+
export function HostAlertSettings({ctx,health}){
|
|
12
|
+
const defaults=ctx.schema?.host_alert_defaults,base=ctx.hostAlerts;
|
|
13
|
+
const [form,setForm]=useDraft(ctx,'host-alerts',()=>base||{version:1,needsYou:true,general:false,rules:{}});
|
|
14
|
+
useEffect(()=>{syncStage(ctx,'host-alerts',base&&defaults&&JSON.stringify(form)!==JSON.stringify(base)?{label:text('title'),impact:'now',request:{method:'PUT',url:'/api/settings/fleet/host-alerts',body:form}}:null);},[form,base,defaults]);
|
|
15
|
+
if(!base||!defaults)return null;
|
|
16
|
+
const disks=(health?.disks?.value?.volumes||[]).slice(0,62),resources=[{key:'cpu',kind:'cpu',name:hostAlertText('cpu')},{key:'memory',kind:'memory',name:hostAlertText('memory')},...disks.map(v=>({key:'disk:'+v.id,kind:v.roles.includes('wsl-backing')?'backing-drive':'filesystem',name:hostAlertName({key:'disk:'+v.id,kind:v.roles.includes('wsl-backing')?'backing-drive':'filesystem'})+hostAlertDrive(v.drive)}))];
|
|
17
|
+
for(const [key,rule] of Object.entries(form.rules))if(!resources.some(r=>r.key===key))resources.push({key,kind:rule.kind,name:hostAlertText(rule.kind==='backing-drive'?'backing':'filesystem')+' · '+key.slice(-6)});
|
|
18
|
+
const update=(key,kind,field,value)=>setForm(f=>({...f,rules:{...f.rules,[key]:{...defaults[kind],...f.rules[key],[field]:value}}}));
|
|
19
|
+
const reset=()=>setForm(f=>({...f,rules:{}}));
|
|
20
|
+
const choice=(key,label)=>html`<div class="s-setting-row"><div class="s-setting-copy"><label for=${'hostAlert-'+key}>${text(label)}</label></div><input id=${'hostAlert-'+key} class="s-ui-toggle" type="checkbox" role="switch" checked=${form[key]} onChange=${e=>setForm(f=>({...f,[key]:e.target.checked}))}/></div>`;
|
|
21
|
+
return html`<div class="host-alert-settings"><h4>${text('title')}</h4>${choice('needsYou','needs')}${choice('general','general')}<p class="note">${text('handoff')}</p>
|
|
22
|
+
<details><summary>${text('resource')}</summary>${resources.map(resource=>{const rule=form.rules[resource.key]||defaults[resource.kind],factor=resource.kind==='backing-drive'?1024**3:1;return html`<fieldset class="field" key=${resource.key}><legend>${resource.name}</legend>${resource.kind==='memory'?html`<p class="note">${text('fixed')}</p><p class="note" data-memory-default-help>${monitoringHelp(ctx.schema?.host_monitoring_platform??health?.platform,'alertHint')}</p><div class="s-setting-row"><div class="s-setting-copy"><label for="alert-memory-criticalOnly">${text('criticalOnly')}</label></div><input id="alert-memory-criticalOnly" class="s-ui-toggle" type="checkbox" role="switch" checked=${rule.criticalOnly===true} aria-describedby="alert-memory-critical-hint" onChange=${e=>update(resource.key,resource.kind,'criticalOnly',e.target.checked)}/></div><p class="note" id="alert-memory-critical-hint">${text('criticalHint')}</p>`:html`<p class="note">${text(resource.kind==='backing-drive'?'gib':'percent')}</p><div class="grid2">${['warning','urgent','clear'].map(field=>html`<div class="field"><label for=${'alert-'+resource.key+'-'+field}>${text(field)}</label><input id=${'alert-'+resource.key+'-'+field} type="number" min="0" step=${resource.kind==='backing-drive'?'1':'0.1'} value=${rule[field]/factor} onInput=${e=>update(resource.key,resource.kind,field,Number(e.target.value)*factor)}/></div>`)}</div>`}</fieldset>`;})}<button class="btn btn-sm" type="button" onClick=${reset}>${text('defaults')}</button></details><p class="note">${text('holds')}</p><p class="note">${text('off')}</p></div>`;
|
|
23
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {monitoringHelp} from './host-monitoring-help.js';
|
|
2
|
+
import {HostAlertSettings} from './settings-host-alerts.js';
|
|
3
|
+
import { html, useEffect, useRef, useState } from '/assets/app-html.js';
|
|
4
|
+
import { register, t } from '/assets/app-i18n.js';
|
|
5
|
+
import { confirmDialog } from '/assets/ui-confirm.js';
|
|
6
|
+
import { useDraft, syncStage } from './settings-draft.js';
|
|
7
|
+
import { fleetPath } from '/assets/app-route.js';
|
|
8
|
+
import { hostMonitoringVisible } from './settings-capabilities.js';
|
|
9
|
+
register('hostMonitoring', {
|
|
10
|
+
en: { open:'View host health',title:'Host monitoring', enabled:'Monitor this computer', agents:'Include agent footprint',
|
|
11
|
+
hint:'Samples every 30–60 seconds with a background history worker; keeps up to 64 MiB locally. Memory and writes vary by computer.',
|
|
12
|
+
agentHint:'Optional: samples agent CPU and memory every minute, up to 128 agents and 4096 processes on this computer. Above either limit, the sample is unavailable. Cost grows with agent and process counts; reads known file metadata without scanning workspaces.',
|
|
13
|
+
off:'Off by default. While off, there is no monitoring collector, timer or history file.',
|
|
14
|
+
agentUnavailable:'Agent footprint is not available in this version of AgEnD.',
|
|
15
|
+
stopTitle:'Turn off host monitoring?', stopBody:'This stops monitoring and its alerts, and removes the recorded host history. Turning it on again starts a new history.', stop:'Turn off',
|
|
16
|
+
drive:'Windows drive holding this WSL distribution', auto:'Identify automatically', refresh:'Refresh drive list', driveHint:'If automatic identification is unavailable, choose the drive that holds this distribution’s virtual disk. Mounted local drives are listed from the latest sample while monitoring is on; Refresh reads that sample without starting a probe.', },
|
|
17
|
+
'zh-TW': { open:'查看主機狀態',title:'主機監測', enabled:'監測這台電腦', agents:'包含 Agent 資源用量',
|
|
18
|
+
hint:'每 30–60 秒取樣並在背景保存歷史,本機資料最多 64 MiB。記憶體與寫入量依電腦而異。',
|
|
19
|
+
agentHint:'選用:每分鐘讀取 Agent 的 CPU 和記憶體用量,每次最多 128 個 Agent、全機 4096 個行程。超過任一上限時,該次讀數會顯示無法取得。Agent 與行程越多,耗用的資源越多;只讀已知檔案的資訊,不掃描工作區。',
|
|
20
|
+
off:'預設關閉。關閉時不會取樣、啟動監測計時器或建立歷史檔案。',
|
|
21
|
+
agentUnavailable:'這個 AgEnD 版本尚未提供 Agent 資源用量。',
|
|
22
|
+
stopTitle:'關閉主機監測?', stopBody:'這會停止監測與通知,並移除已記錄的主機歷史。重新開啟時會建立新的歷史。', stop:'關閉',
|
|
23
|
+
drive:'這個 WSL 發行版本的 Windows 磁碟', auto:'自動辨識', refresh:'重新整理磁碟清單', driveHint:'無法自動辨識時,請選擇存放這個發行版本虛擬磁碟的磁碟。監測開啟後會依最新取樣列出已掛載的本機磁碟;重新整理只讀取該取樣,不會啟動探測。', },
|
|
24
|
+
});
|
|
25
|
+
const copy = k => t(`hostMonitoring.${k}`);
|
|
26
|
+
export function HostMonitoringSettings({ ctx }) {
|
|
27
|
+
const available = hostMonitoringVisible(ctx.schema);
|
|
28
|
+
useEffect(() => { if (!available) {syncStage(ctx, 'host-monitoring', null);syncStage(ctx,'host-alerts',null);} }, [available]);
|
|
29
|
+
// A collector alone is not a visible feature: S-207 must provide its page too.
|
|
30
|
+
// A separate child keeps hook order stable across capability transitions.
|
|
31
|
+
return available ? html`<${AvailableHostMonitoringSettings} ctx=${ctx} />` : null;
|
|
32
|
+
}
|
|
33
|
+
function AvailableHostMonitoringSettings({ ctx }) {
|
|
34
|
+
const base = { enabled:ctx.fleet.monitoring?.enabled === true, agent_footprint:ctx.fleet.monitoring?.agent_footprint === true,
|
|
35
|
+
...(typeof ctx.fleet.monitoring?.wsl_drive === 'string' ? {wsl_drive:ctx.fleet.monitoring.wsl_drive} : {}) };
|
|
36
|
+
const [form, setForm] = useDraft(ctx, 'host-monitoring', () => base);
|
|
37
|
+
const [health,setHealth] = useState(null), [reading,setReading] = useState(false);
|
|
38
|
+
const live=useRef(false),seq=useRef(0);
|
|
39
|
+
const refresh=async()=>{
|
|
40
|
+
const request=++seq.current;setReading(true);
|
|
41
|
+
try {const r=await fetch('/ui/host-health');const snapshot=r.ok?await r.json():null;if(live.current&&request===seq.current)setHealth(snapshot);}
|
|
42
|
+
catch {if(live.current&&request===seq.current)setHealth(null);}
|
|
43
|
+
finally {if(live.current&&request===seq.current)setReading(false);}
|
|
44
|
+
};
|
|
45
|
+
useEffect(()=>{live.current=true;void refresh();return()=>{live.current=false;seq.current++;};},[]);
|
|
46
|
+
const agentsAvailable = ctx.schema?.host_monitoring_agents === true;
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
const changed = form.enabled !== base.enabled || form.agent_footprint !== base.agent_footprint || (form.wsl_drive ?? '') !== (base.wsl_drive ?? '');
|
|
49
|
+
syncStage(ctx, 'host-monitoring', changed ? {label:copy('title'), impact:'now', request:{method:'PUT',url:'/api/settings/fleet/monitoring',body:{enabled:form.enabled,agent_footprint:form.agent_footprint,...(Object.hasOwn(form,'wsl_drive')?{wsl_drive:form.wsl_drive}:{})}}} : null);
|
|
50
|
+
}, [form]);
|
|
51
|
+
const setEnabled = async (checked, control) => {
|
|
52
|
+
if (!checked && form.enabled && !(await confirmDialog({title:copy('stopTitle'),message:copy('stopBody'),confirmLabel:copy('stop'),danger:true}))) {
|
|
53
|
+
// The browser toggled its native property before the asynchronous question.
|
|
54
|
+
// Cancel leaves the draft unchanged, so restore the displayed value too.
|
|
55
|
+
control.checked = form.enabled;
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
setForm(f=>({...f,enabled:checked}));
|
|
59
|
+
};
|
|
60
|
+
const row = (id,key,hint,disabled,change) => html`<div class="s-setting-row"><div class="s-setting-copy"><label for=${id}>${copy(key)}</label><p class="note" id=${`${id}-hint`}>${copy(hint)}</p></div>
|
|
61
|
+
<input class="s-ui-toggle" type="checkbox" role="switch" id=${id} checked=${form[key === 'agents' ? 'agent_footprint':'enabled']} disabled=${disabled} aria-describedby=${`${id}-hint`} onChange=${e=>change(e.target.checked, e.target)} /></div>`;
|
|
62
|
+
return html`<section class="card s-group" id="host-monitoring"><div class="s-group-head"><h3>${copy('title')}</h3><a class="btn btn-sm" href=${fleetPath('host-health')}>${copy('open')}</a></div><p class="note" data-monitoring-platform-help>${monitoringHelp(ctx.schema?.host_monitoring_platform??health?.platform,'settings')}</p>
|
|
63
|
+
${row('hostMonitoringEnabled','enabled','hint',false,setEnabled)}
|
|
64
|
+
${row('hostMonitoringAgents','agents','agentHint',!agentsAvailable || !form.enabled,checked=>setForm(f=>({...f,agent_footprint:checked})))}
|
|
65
|
+
${health?.platform === 'wsl' || base.wsl_drive ? html`<div class="field"><label for="hostMonitoringDrive">${copy('drive')}</label>
|
|
66
|
+
<select id="hostMonitoringDrive" value=${form.wsl_drive ?? ''} onChange=${e=>setForm(f=>({...f,wsl_drive:e.target.value}))}>
|
|
67
|
+
<option value="">${copy('auto')}</option>${[...new Set([...(health?.disks?.value?.availableDrives ?? []),form.wsl_drive])].filter(v=>typeof v==='string'&&/^[A-Z]$/.test(v)).slice(0,26).map(d=>html`<option value=${d}>${d}:</option>`)}</select>
|
|
68
|
+
<p class="note">${copy('driveHint')}</p><button type="button" class="btn btn-sm" disabled=${reading} onClick=${refresh}>${copy('refresh')}</button></div>` : null}
|
|
69
|
+
${!agentsAvailable ? html`<p class="note">${copy('agentUnavailable')}</p>` : null}
|
|
70
|
+
<p class="note">${copy('off')}</p><${HostAlertSettings} ctx=${ctx} health=${health}/></section>`;
|
|
71
|
+
}
|
|
@@ -12,7 +12,7 @@ register("hubConnection", {
|
|
|
12
12
|
rights: "Whether you can share agents or chat depends on what your Hub administrator allows; the Hub's home page shows yours.",
|
|
13
13
|
title: "Hub connection", unconnected: "Not connected", connected: "Connected", paused: "Paused", connecting: "Connecting…", attention: "Connection needs attention",
|
|
14
14
|
hub: "Hub", fleet: "Fleet", thisFleet: "This Fleet", open: "Open Hub", pause: "Pause connection", resume: "Resume connection",
|
|
15
|
-
connectedHint: "This Fleet can use the Hub. Connecting does not share any
|
|
15
|
+
connectedHint: "This Fleet can use the Hub. Connecting does not share any agent: other people can see and ask one only after you share it.",
|
|
16
16
|
pausedHint: "New Hub work and answer delivery are stopped. The saved connection and existing conversations are kept.",
|
|
17
17
|
connectingHint: "The connection is saved. Waiting for the Hub link before reporting Connected.",
|
|
18
18
|
advanced: "Connect with a pairing code (Advanced)", manualHint: "Use this for a Hub with a pairing code. The main sign-in flow enables membership when it succeeds.",
|
|
@@ -25,7 +25,7 @@ register("hubConnection", {
|
|
|
25
25
|
rights: "連接後能不能分享 Agent、和 Agent 對話,由 Hub 管理員設定;Hub 首頁會顯示你目前的權限。",
|
|
26
26
|
title: "Hub 連接", unconnected: "尚未連接", connected: "已連接", paused: "已暫停", connecting: "正在連接…", attention: "連接需要處理",
|
|
27
27
|
hub: "Hub", fleet: "Fleet", thisFleet: "這個 Fleet", open: "開啟 Hub", pause: "暫停連接", resume: "恢復連接",
|
|
28
|
-
connectedHint: "這個 Fleet 已可使用 Hub。連接不會自動分享 Agent
|
|
28
|
+
connectedHint: "這個 Fleet 已可使用 Hub。連接不會自動分享 Agent:要你自己分享之後,其他人才看得到、才能提問。",
|
|
29
29
|
pausedHint: "已停止新的 Hub 工作與回答傳送;連接資料和既有對話仍保留。",
|
|
30
30
|
connectingHint: "連接資料已儲存,正在等待與 Hub 的網路連線;尚未顯示為已連接。",
|
|
31
31
|
advanced: "使用配對碼連接(進階)", manualHint: "供使用配對碼的 Hub 使用。上方登入流程成功後會自動啟用成員功能。",
|
|
@@ -44,7 +44,7 @@ const validPairing = p => !!p && states.has(p.state) && (p.state === "unpaired"
|
|
|
44
44
|
const safeOrigin = p => { try { const value = p?.hub?.webOrigin, u = new URL(value); return u.protocol === "https:" && u.origin === value ? u.origin + "/ui/hub" : null; } catch { return null; } };
|
|
45
45
|
export function HubConnectionSettings({ onMode } = {}) {
|
|
46
46
|
const [pilotRevision, setPilotRevision] = useState(0);
|
|
47
|
-
|
|
47
|
+
// M-3278 (decision 7933bf90): over the public link too, for its admin session (the server refuses anyone else).
|
|
48
48
|
const [view, setView] = useState(null), [error, setFailureCode] = useState(""), [busy, setBusy] = useState(false), [fallback, setFallback] = useState(typeof legacy.markMember !== "function");
|
|
49
49
|
const [Company, setCompany] = useState(null), [Connect, setConnect] = useState(null), [pending, setPending] = useState(null);
|
|
50
50
|
// M-2921 (spec 1.1 / 1.3): the company-join record of this connection (its address, label, Hub name, owner), the
|
|
@@ -71,9 +71,9 @@ export function HubConnectionSettings({ onMode } = {}) {
|
|
|
71
71
|
life.current.read = work; void work.finally(() => { if (life.current.read === work) life.current.read = null; }); return work;
|
|
72
72
|
};
|
|
73
73
|
useEffect(() => {
|
|
74
|
-
life.current.live = true; if (!
|
|
74
|
+
life.current.live = true; if (!fallback) void read();
|
|
75
75
|
return () => { life.current.live = false; life.current.sequence++; };
|
|
76
|
-
}, [
|
|
76
|
+
}, [fallback]);
|
|
77
77
|
useEffect(() => {
|
|
78
78
|
let live = true;
|
|
79
79
|
if ((view?.pairing?.state === "unpaired" || joinWait) && !fallback) import("./settings-hub-company-join.js").then(m => {
|
|
@@ -118,7 +118,7 @@ export function HubConnectionSettings({ onMode } = {}) {
|
|
|
118
118
|
finally { if (life.current.live) { setBusy(false); setPending(null); } }
|
|
119
119
|
};
|
|
120
120
|
const change = async enabled => {
|
|
121
|
-
if (
|
|
121
|
+
if (!view || life.current.busy || error) return;
|
|
122
122
|
life.current.busy = true; life.current.sequence++; setBusy(true); setPending(null);
|
|
123
123
|
try {
|
|
124
124
|
const result = await confirmedWrite(path, { method: "PUT", body: { enabled }, resendable: true, label: hc("title"),
|
|
@@ -139,7 +139,6 @@ export function HubConnectionSettings({ onMode } = {}) {
|
|
|
139
139
|
};
|
|
140
140
|
const reported = !view ? "unknown" : view.pairing?.state === "paired" ? (!view.enabled ? "paused" : view.pairing.link === "online" ? "connected" : "connecting") : "unconnected";
|
|
141
141
|
useEffect(() => { onMode?.(reported); }, [reported]);
|
|
142
|
-
if (publicPage) return null;
|
|
143
142
|
if (fallback) return html`<${legacy.HubMembershipSettings} />`;
|
|
144
143
|
const p = view?.pairing, paired = p?.state === "paired", paused = paired && !view.enabled;
|
|
145
144
|
const online = paired && view.enabled && p.link === "online", bound = p && p.state !== "unpaired";
|
|
@@ -43,7 +43,7 @@ export const markMember = on => {
|
|
|
43
43
|
if (tokens.length) body.dataset.hub = tokens.join(" "); else delete body.dataset.hub;
|
|
44
44
|
};
|
|
45
45
|
export function HubMembershipSettings() {
|
|
46
|
-
|
|
46
|
+
// M-3278 (decision 7933bf90): over the public link too, for its admin session (the server refuses anyone else).
|
|
47
47
|
const [view, setView] = useState(null), [busy, setBusy] = useState(false), [messageKey, setMessageKey] = useState("loading");
|
|
48
48
|
const [Connect, setConnect] = useState(null);
|
|
49
49
|
const [connectError, setConnectError] = useState(false), [attempt, setAttempt] = useState(0);
|
|
@@ -58,19 +58,19 @@ export function HubMembershipSettings() {
|
|
|
58
58
|
};
|
|
59
59
|
useEffect(() => {
|
|
60
60
|
owner.current.mounted = true;
|
|
61
|
-
|
|
61
|
+
read();
|
|
62
62
|
return () => { owner.current.mounted = false; owner.current.seq++; };
|
|
63
|
-
}, [
|
|
63
|
+
}, []);
|
|
64
64
|
useEffect(() => {
|
|
65
65
|
let live = true;
|
|
66
|
-
if (
|
|
66
|
+
if (view?.enabled && markedMember()) {
|
|
67
67
|
setConnectError(false);
|
|
68
68
|
import("./settings-hub.js").then(m => { if (live) setConnect(() => m.HubConnectCard); }, () => { if (live) setConnectError(true); });
|
|
69
69
|
}
|
|
70
70
|
return () => { live = false; };
|
|
71
|
-
}, [
|
|
71
|
+
}, [view?.enabled, attempt]);
|
|
72
72
|
const change = async enabled => {
|
|
73
|
-
if (
|
|
73
|
+
if (!view || owner.current.busy) return;
|
|
74
74
|
owner.current.busy = true; owner.current.seq++; setBusy(true); setMessageKey("");
|
|
75
75
|
try {
|
|
76
76
|
const result = await confirmedWrite(path, { method: "PUT", body: { enabled }, resendable: true, label: copy("title"),
|
|
@@ -81,7 +81,6 @@ export function HubMembershipSettings() {
|
|
|
81
81
|
} catch { if (owner.current.mounted) { setView(null); setMessageKey("failed"); } }
|
|
82
82
|
finally { owner.current.busy = false; if (owner.current.mounted) setBusy(false); }
|
|
83
83
|
};
|
|
84
|
-
if (publicPage) return null;
|
|
85
84
|
return html`<div class="form hub-membership-settings"><${CompanyJoinSettings} onSaved=${read} memberEnabled=${view?.enabled === true} /><section class="card" id="hub-membership">
|
|
86
85
|
<h3>${copy("title")}</h3><p class="note">${copy("hint")}</p>
|
|
87
86
|
${!view && messageKey === "loading" ? html`<${Skeleton} variant="rows" lines=${2} label=${copy("loading")} />` : html`<label class="check"><input id="hubMemberEnabled" class="s-ui-toggle" type="checkbox" role="switch" checked=${view?.enabled === true}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { html, useEffect, useRef, useState } from "/assets/app-html.js";
|
|
2
|
+
import { register, t } from "/assets/app-i18n.js";
|
|
3
|
+
import { api, confirmedWrite } from "./settings-confirm.js";
|
|
4
|
+
|
|
5
|
+
register("hubPageSharing", {
|
|
6
|
+
en: {
|
|
7
|
+
title: "Sharing from the Hub", switch: "Let me share agents from the Hub page",
|
|
8
|
+
hint: "When on, this Fleet sends the Hub your agents' names and descriptions, which only you can see there, and applies a share or stop you make on the Hub page without asking again. A notice with Undo is posted here each time.",
|
|
9
|
+
pending: "Waiting for owner confirmation…", unavailable: "This setting is unavailable. Check again.",
|
|
10
|
+
unknown: "The change is not confirmed. Check the saved setting before trying again.", retry: "Check again",
|
|
11
|
+
},
|
|
12
|
+
"zh-TW": {
|
|
13
|
+
title: "從 Hub 分享", switch: "允許我從 Hub 頁面分享 Agent",
|
|
14
|
+
hint: "開啟後,這個 Fleet 會把你的 Agent 名稱與說明傳給 Hub(在 Hub 上只有你看得到),並直接套用你在 Hub 頁面做的分享或停止,不再另外確認。每次都會在這裡發出可以復原的通知。",
|
|
15
|
+
pending: "等待擁有者確認…", unavailable: "目前無法使用這個設定,請再次檢查。",
|
|
16
|
+
unknown: "尚未確認變更,請先檢查儲存的設定再試一次。", retry: "再次檢查",
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
const copy = key => t(`hubPageSharing.${key}`);
|
|
20
|
+
const path = "/api/settings/hub/share-from-hub";
|
|
21
|
+
export function HubPageSharingSettings() {
|
|
22
|
+
const [enabled, setEnabled] = useState(null), [busy, setBusy] = useState(false), [phase, setPhase] = useState("");
|
|
23
|
+
const owner = useRef({ live: true, seq: 0, busy: false });
|
|
24
|
+
const read = async () => {
|
|
25
|
+
const seq = ++owner.current.seq;
|
|
26
|
+
let result; try { result = await api(path); } catch { result = null; }
|
|
27
|
+
if (!owner.current.live || owner.current.seq !== seq) return;
|
|
28
|
+
if (result?.ok && typeof result.body?.enabled === "boolean") { setEnabled(result.body.enabled); setPhase(""); }
|
|
29
|
+
else { setEnabled(null); setPhase("unavailable"); }
|
|
30
|
+
};
|
|
31
|
+
useEffect(() => { owner.current.live = true; void read(); return () => { owner.current.live = false; owner.current.seq++; }; }, []);
|
|
32
|
+
const change = async value => {
|
|
33
|
+
if (enabled === null || owner.current.busy) return;
|
|
34
|
+
owner.current.busy = true; owner.current.seq++; setBusy(true); setPhase("");
|
|
35
|
+
try {
|
|
36
|
+
const result = await confirmedWrite(path, { method: "PUT", body: { enabled: value }, resendable: true, label: copy("title"),
|
|
37
|
+
onPending: () => { if (owner.current.live) setPhase("pending"); } });
|
|
38
|
+
if (!owner.current.live) return;
|
|
39
|
+
if (result.ok) await read();
|
|
40
|
+
else { setEnabled(null); setPhase("unknown"); }
|
|
41
|
+
} catch { if (owner.current.live) { setEnabled(null); setPhase("unknown"); } }
|
|
42
|
+
finally { owner.current.busy = false; if (owner.current.live) setBusy(false); }
|
|
43
|
+
};
|
|
44
|
+
return html`<div class="hub-update-consent">
|
|
45
|
+
<label class="check hub-update-switch"><input class="s-ui-toggle" type="checkbox" role="switch" id="hubShareFromHub"
|
|
46
|
+
checked=${enabled === true} disabled=${enabled === null || busy} aria-describedby="hubShareFromHub-note"
|
|
47
|
+
onChange=${event => { void change(event.target.checked); }} /><span>${copy("switch")}</span></label>
|
|
48
|
+
<p class="note" id="hubShareFromHub-note">${copy("hint")}</p>
|
|
49
|
+
${phase ? html`<p role="status">${copy(phase)}</p>` : null}
|
|
50
|
+
${enabled === null && !busy && phase ? html`<button class="btn btn-sm" type="button" onClick=${read}>${copy("retry")}</button>` : null}
|
|
51
|
+
</div>`;
|
|
52
|
+
}
|