@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,372 @@
|
|
|
1
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
2
|
+
export const CONTACT_APPLICATION_TTL_MS = 30 * 60_000;
|
|
3
|
+
export function contactPersonKey(person) {
|
|
4
|
+
return JSON.stringify([person.platform, person.adapterId, person.userId]);
|
|
5
|
+
}
|
|
6
|
+
function unique(values, key) {
|
|
7
|
+
return [...new Map(values.map(value => [key(value), value])).values()];
|
|
8
|
+
}
|
|
9
|
+
export function mergeContactOrigins(before, next) {
|
|
10
|
+
before ??= { kind: next.kind, people: [], receiptIds: [], chain: [] };
|
|
11
|
+
const people = unique([...before.people, ...next.people], contactPersonKey);
|
|
12
|
+
const receipts = [...new Set([...before.receiptIds, ...next.receiptIds])];
|
|
13
|
+
const chain = [...new Set([...before.chain, ...next.chain])];
|
|
14
|
+
// Receipt/hop history is diagnostic. Trimming it must not change the known people's authority.
|
|
15
|
+
const unknown = before.kind === "unknown" || next.kind === "unknown" || people.length > 16;
|
|
16
|
+
return { kind: unknown ? "unknown" : people.length === 1 && before.kind !== "mixed" && next.kind !== "mixed" ? "human" : "mixed",
|
|
17
|
+
people: people.slice(0, 16), receiptIds: receipts.slice(-64), chain: chain.slice(-32) };
|
|
18
|
+
}
|
|
19
|
+
/** Server-private data, on the durable outbox connection so approval and admission commit together. */
|
|
20
|
+
export class ContactAuthStore {
|
|
21
|
+
db;
|
|
22
|
+
now;
|
|
23
|
+
constructor(db, now = Date.now) {
|
|
24
|
+
this.db = db;
|
|
25
|
+
this.now = now;
|
|
26
|
+
db.exec(`CREATE TABLE IF NOT EXISTS contact_auth_tickets (
|
|
27
|
+
id TEXT PRIMARY KEY, operation_key TEXT NOT NULL UNIQUE, request_hash TEXT NOT NULL,
|
|
28
|
+
request_json TEXT NOT NULL, ticket_json TEXT NOT NULL, created_at INTEGER NOT NULL);
|
|
29
|
+
CREATE TABLE IF NOT EXISTS contact_auth_origins (instance TEXT PRIMARY KEY, origin_json TEXT NOT NULL);
|
|
30
|
+
CREATE TABLE IF NOT EXISTS contact_auth_policies (instance TEXT PRIMARY KEY, revision INTEGER NOT NULL, policy_json TEXT NOT NULL);
|
|
31
|
+
CREATE TABLE IF NOT EXISTS contact_auth_history (id TEXT PRIMARY KEY, instance TEXT NOT NULL, at INTEGER NOT NULL, row_json TEXT NOT NULL);`);
|
|
32
|
+
db.exec("CREATE TABLE IF NOT EXISTS contact_auth_suggestions (instance TEXT PRIMARY KEY, dismissed_at INTEGER NOT NULL)");
|
|
33
|
+
db.exec("CREATE TABLE IF NOT EXISTS contact_auth_origin_revisions (instance TEXT PRIMARY KEY, revision INTEGER NOT NULL)");
|
|
34
|
+
db.exec("CREATE TABLE IF NOT EXISTS contact_auth_room_context (instance TEXT PRIMARY KEY, context_json TEXT NOT NULL)");
|
|
35
|
+
// M-3381: when the restricted-mode suggestion was first raised for a room (its age counts from here, not from the room).
|
|
36
|
+
db.exec("CREATE TABLE IF NOT EXISTS contact_auth_suggestion_raised (instance TEXT PRIMARY KEY, raised_at INTEGER NOT NULL)");
|
|
37
|
+
db.transaction(() => {
|
|
38
|
+
const existed = db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='contact_auth_outcome_notices'").get();
|
|
39
|
+
db.exec("CREATE TABLE IF NOT EXISTS contact_auth_outcome_notices (ticket_id TEXT PRIMARY KEY)");
|
|
40
|
+
// Do not re-announce decisions already terminal before this feature was installed.
|
|
41
|
+
if (!existed)
|
|
42
|
+
db.exec("INSERT INTO contact_auth_outcome_notices SELECT id FROM contact_auth_tickets WHERE json_extract(ticket_json,'$.state') IN ('declined','expired')");
|
|
43
|
+
})();
|
|
44
|
+
}
|
|
45
|
+
roomContext(instance, generation) {
|
|
46
|
+
const row = this.db.prepare("SELECT context_json FROM contact_auth_room_context WHERE instance=?").get(instance);
|
|
47
|
+
const context = row ? JSON.parse(row.context_json) : undefined;
|
|
48
|
+
return context && (!generation || context.generation === generation) ? context : { fileIds: [] };
|
|
49
|
+
}
|
|
50
|
+
recordRoomContext(instance, input, generation) {
|
|
51
|
+
const prior = this.roomContext(instance, generation);
|
|
52
|
+
const next = { generation, threadId: input.threadId, fileIds: [...new Set([...prior.fileIds, ...input.fileIds])].slice(-256) };
|
|
53
|
+
this.db.prepare("INSERT INTO contact_auth_room_context VALUES (?,?) ON CONFLICT(instance) DO UPDATE SET context_json=excluded.context_json")
|
|
54
|
+
.run(instance, JSON.stringify(next));
|
|
55
|
+
}
|
|
56
|
+
/** M-3381: when the restricted-mode suggestion was first raised for `instance` (recorded now, the first time it is asked). */
|
|
57
|
+
suggestionRaisedAt(instance) {
|
|
58
|
+
this.db.prepare("INSERT INTO contact_auth_suggestion_raised VALUES (?,?) ON CONFLICT(instance) DO NOTHING").run(instance, this.now());
|
|
59
|
+
return this.db.prepare("SELECT raised_at FROM contact_auth_suggestion_raised WHERE instance=?").get(instance).raised_at;
|
|
60
|
+
}
|
|
61
|
+
suggestionDismissed(instance) {
|
|
62
|
+
return !!this.db.prepare("SELECT 1 FROM contact_auth_suggestions WHERE instance=?").get(instance);
|
|
63
|
+
}
|
|
64
|
+
dismissSuggestion(instance) {
|
|
65
|
+
this.db.prepare("INSERT INTO contact_auth_suggestions VALUES (?,?) ON CONFLICT(instance) DO UPDATE SET dismissed_at=excluded.dismissed_at").run(instance, this.now());
|
|
66
|
+
}
|
|
67
|
+
inheritOrigin(instance, origin) {
|
|
68
|
+
return this.db.transaction(() => {
|
|
69
|
+
const combined = mergeContactOrigins(this.origin(instance), origin);
|
|
70
|
+
this.db.prepare("INSERT INTO contact_auth_origins VALUES (?,?) ON CONFLICT(instance) DO UPDATE SET origin_json=excluded.origin_json")
|
|
71
|
+
.run(instance, JSON.stringify(combined));
|
|
72
|
+
this.bumpOriginRevision(instance);
|
|
73
|
+
return combined;
|
|
74
|
+
})();
|
|
75
|
+
}
|
|
76
|
+
bumpOriginRevision(instance) {
|
|
77
|
+
this.db.prepare("INSERT INTO contact_auth_origin_revisions VALUES (?,1) ON CONFLICT(instance) DO UPDATE SET revision=revision+1").run(instance);
|
|
78
|
+
}
|
|
79
|
+
originRevision(instance) {
|
|
80
|
+
return this.db.prepare("SELECT revision FROM contact_auth_origin_revisions WHERE instance=?").get(instance)?.revision ?? 0;
|
|
81
|
+
}
|
|
82
|
+
clearOrigin(instance, input, actor, currentGeneration) {
|
|
83
|
+
this.db.transaction(() => {
|
|
84
|
+
const generation = currentGeneration();
|
|
85
|
+
if (generation !== input.generation || this.policy(instance, generation).revision !== input.revision
|
|
86
|
+
|| this.originRevision(instance) !== input.originRevision)
|
|
87
|
+
throw Error("conflict");
|
|
88
|
+
const before = this.origin(instance);
|
|
89
|
+
if (!before)
|
|
90
|
+
throw Error("conflict");
|
|
91
|
+
const after = { kind: "human", people: [actor], receiptIds: [], chain: [instance] };
|
|
92
|
+
this.db.prepare("UPDATE contact_auth_origins SET origin_json=? WHERE instance=?").run(JSON.stringify(after), instance);
|
|
93
|
+
this.bumpOriginRevision(instance);
|
|
94
|
+
const image = (value) => ({ kind: value.kind, people: value.people, chain: value.chain, receiptCount: value.receiptIds.length });
|
|
95
|
+
this.history(instance, actor, "origin-clear", "", undefined, undefined, { generation, originChange: { before: image(before), after: image(after) } });
|
|
96
|
+
})();
|
|
97
|
+
}
|
|
98
|
+
lastOriginClear(instance, generation) {
|
|
99
|
+
const row = this.db.prepare("SELECT row_json FROM contact_auth_history WHERE instance=? AND json_extract(row_json,'$.action')='origin-clear' "
|
|
100
|
+
+ "AND json_extract(row_json,'$.generation')=? ORDER BY at DESC,rowid DESC LIMIT 1").get(instance, generation);
|
|
101
|
+
if (!row)
|
|
102
|
+
return;
|
|
103
|
+
const entry = JSON.parse(row.row_json);
|
|
104
|
+
return { actor: entry.actor, at: entry.at };
|
|
105
|
+
}
|
|
106
|
+
origin(instance) {
|
|
107
|
+
const row = this.db.prepare("SELECT origin_json FROM contact_auth_origins WHERE instance=?").get(instance);
|
|
108
|
+
return row ? JSON.parse(row.origin_json) : undefined;
|
|
109
|
+
}
|
|
110
|
+
policy(instance, generation) {
|
|
111
|
+
const row = this.db.prepare("SELECT policy_json FROM contact_auth_policies WHERE instance=?").get(instance);
|
|
112
|
+
const previous = row ? JSON.parse(row.policy_json) : undefined;
|
|
113
|
+
if (previous && (!generation || previous.generation === generation))
|
|
114
|
+
return previous;
|
|
115
|
+
const fresh = { revision: previous ? previous.revision + 1 : 0,
|
|
116
|
+
...(generation ? { generation } : {}), grants: [], roomTools: { publicRead: true, allowedMcpTools: [], wouldDisable: [] } };
|
|
117
|
+
if (previous && generation)
|
|
118
|
+
this.db.prepare("UPDATE contact_auth_policies SET revision=?,policy_json=? WHERE instance=?")
|
|
119
|
+
.run(fresh.revision, JSON.stringify(fresh), instance);
|
|
120
|
+
return fresh;
|
|
121
|
+
}
|
|
122
|
+
writePolicy(instance, input, actor, generation) {
|
|
123
|
+
return this.db.transaction(() => {
|
|
124
|
+
const previous = this.policy(instance, generation?.(instance));
|
|
125
|
+
if (input.revision !== previous.revision)
|
|
126
|
+
throw Error("conflict");
|
|
127
|
+
const now = new Date(this.now()).toISOString();
|
|
128
|
+
const next = { revision: previous.revision + 1, generation: generation?.(instance) ?? previous.generation,
|
|
129
|
+
approvers: input.approvers ?? previous.approvers,
|
|
130
|
+
roomTools: input.roomTools ? { ...input.roomTools, wouldDisable: [] } : previous.roomTools,
|
|
131
|
+
grants: input.grants ? input.grants.map(grant => {
|
|
132
|
+
const old = previous.grants.find(row => row.id === grant.id);
|
|
133
|
+
return { ...grant, id: old?.id ?? randomUUID(), createdAt: old?.createdAt ?? now, createdBy: old?.createdBy ?? actor,
|
|
134
|
+
sourceGeneration: old?.source === grant.source ? old.sourceGeneration : generation?.(grant.source) ?? grant.sourceGeneration,
|
|
135
|
+
targetGeneration: old?.target === grant.target ? old.targetGeneration : generation?.(grant.target) ?? grant.targetGeneration };
|
|
136
|
+
}) : previous.grants };
|
|
137
|
+
this.db.prepare("INSERT INTO contact_auth_policies VALUES (?,?,?) ON CONFLICT(instance) DO UPDATE SET revision=excluded.revision,policy_json=excluded.policy_json")
|
|
138
|
+
.run(instance, next.revision, JSON.stringify(next));
|
|
139
|
+
const changedGrants = (left, right) => left.filter(row => JSON.stringify(row) !== JSON.stringify(right.find(other => row.id === other.id)));
|
|
140
|
+
const policyChange = {};
|
|
141
|
+
if (JSON.stringify(previous.approvers) !== JSON.stringify(next.approvers))
|
|
142
|
+
policyChange.approvers = { before: previous.approvers ?? null, after: next.approvers ?? null };
|
|
143
|
+
const removed = changedGrants(previous.grants, next.grants), added = changedGrants(next.grants, previous.grants);
|
|
144
|
+
if (removed.length || added.length)
|
|
145
|
+
policyChange.grants = { before: removed, after: added };
|
|
146
|
+
if (JSON.stringify(previous.roomTools) !== JSON.stringify(next.roomTools))
|
|
147
|
+
policyChange.roomTools = { before: previous.roomTools, after: next.roomTools };
|
|
148
|
+
if (input.mode)
|
|
149
|
+
policyChange.modeRequested = input.mode;
|
|
150
|
+
this.history(instance, actor, "policy", "Contact permissions updated", undefined, policyChange);
|
|
151
|
+
return next;
|
|
152
|
+
})();
|
|
153
|
+
}
|
|
154
|
+
history(instance, actor, action, summary, ticketId, policyChange, details) {
|
|
155
|
+
const id = randomUUID(), at = this.now();
|
|
156
|
+
const ticket = ticketId ? this.get(ticketId) : undefined;
|
|
157
|
+
const row = { id, at: new Date(at).toISOString(), actor, action, summary, target: instance, generation: details?.generation ?? ticket?.targetGeneration ?? this.policy(instance).generation,
|
|
158
|
+
...(ticket ? { source: ticket.source } : {}), ...(ticketId ? { ticketId } : {}), ...(policyChange ? { policyChange } : {}), ...(details?.originChange ? { originChange: details.originChange } : {}) };
|
|
159
|
+
this.db.prepare("INSERT INTO contact_auth_history VALUES (?,?,?,?)").run(id, instance, at, JSON.stringify(row));
|
|
160
|
+
}
|
|
161
|
+
histories(instance, generation) {
|
|
162
|
+
return this.db.prepare("SELECT row_json FROM contact_auth_history WHERE instance=? ORDER BY at DESC,id LIMIT 50").all(instance)
|
|
163
|
+
.map(row => JSON.parse(row.row_json)).filter(row => !generation || row.generation === generation);
|
|
164
|
+
}
|
|
165
|
+
/** Every known originating person needs an exact row; an unknown origin never matches. */
|
|
166
|
+
matchingGrants(request) {
|
|
167
|
+
if (request.origin.kind === "unknown" || request.origin.people.length === 0)
|
|
168
|
+
return [];
|
|
169
|
+
const table = this.policy(request.target, request.targetGeneration).grants;
|
|
170
|
+
const matched = request.origin.people.map(person => table.find(grant => grant.target === request.target && grant.source === request.source
|
|
171
|
+
&& contactPersonKey(grant.person) === contactPersonKey(person)
|
|
172
|
+
&& grant.sourceGeneration === request.sourceGeneration && grant.targetGeneration === request.targetGeneration
|
|
173
|
+
&& grant.verbs.includes(request.verb) && Date.parse(grant.expiresAt) > this.now()
|
|
174
|
+
&& (grant.remainingUses === null || grant.remainingUses > 0)));
|
|
175
|
+
return matched.every((grant) => !!grant) ? unique(matched, grant => grant.id) : [];
|
|
176
|
+
}
|
|
177
|
+
approvedReturn(source, target, correlationId) {
|
|
178
|
+
const rows = this.db.prepare("SELECT * FROM contact_auth_tickets WHERE json_extract(ticket_json,'$.target')=? "
|
|
179
|
+
+ "AND json_extract(ticket_json,'$.resultRecipient')=? AND json_extract(ticket_json,'$.correlationId')=? "
|
|
180
|
+
+ "AND json_extract(ticket_json,'$.state') IN ('approved','delivered') AND created_at>? LIMIT 16")
|
|
181
|
+
.all(source, target, correlationId, this.now() - 24 * 60 * 60_000);
|
|
182
|
+
return rows.map(row => this.read(row));
|
|
183
|
+
}
|
|
184
|
+
hold(input) {
|
|
185
|
+
if (!input.operationId || !input.source || !input.target || !input.sourceGeneration || !input.targetGeneration
|
|
186
|
+
|| !input.correlationId || Buffer.byteLength(JSON.stringify(input), "utf8") > 96 * 1024)
|
|
187
|
+
throw Error("invalid-request");
|
|
188
|
+
// Generated correlation/message ids and timestamps do not change retry identity.
|
|
189
|
+
// The exact first payload remains retained, never rebuilt from an approval form.
|
|
190
|
+
const stable = { operationId: input.operationId, source: input.source, target: input.target,
|
|
191
|
+
sourceGeneration: input.sourceGeneration, targetGeneration: input.targetGeneration,
|
|
192
|
+
verb: input.verb, message: input.message, resultRecipient: input.resultRecipient,
|
|
193
|
+
correlationId: input.correlationExplicit === false ? undefined : input.correlationId,
|
|
194
|
+
forwards: input.forwards ?? [], targetSession: input.payload.targetSession, type: input.payload.type,
|
|
195
|
+
metadata: Object.fromEntries(Object.entries((input.payload.meta ?? {}))
|
|
196
|
+
.filter(([key]) => !["message_id", "correlation_id", "ts"].includes(key))) };
|
|
197
|
+
const hash = createHash("sha256").update(JSON.stringify(stable)).digest("hex");
|
|
198
|
+
const key = JSON.stringify([input.source, input.operationId, input.target, input.verb]);
|
|
199
|
+
return this.db.transaction(() => {
|
|
200
|
+
const previous = this.db.prepare("SELECT * FROM contact_auth_tickets WHERE operation_key=?").get(key);
|
|
201
|
+
if (previous) {
|
|
202
|
+
if (previous.request_hash !== hash)
|
|
203
|
+
throw Error("operation-conflict");
|
|
204
|
+
return this.read(previous);
|
|
205
|
+
}
|
|
206
|
+
const now = this.now();
|
|
207
|
+
// Bound accidental tool retry loops without deleting pending decisions or replaying anything.
|
|
208
|
+
const active = this.db.prepare("SELECT count(*) AS n FROM contact_auth_tickets WHERE created_at>? "
|
|
209
|
+
+ "AND json_extract(ticket_json,'$.state')='pending' AND json_extract(ticket_json,'$.source')=?")
|
|
210
|
+
.get(now - CONTACT_APPLICATION_TTL_MS, input.source);
|
|
211
|
+
if (active.n >= 32)
|
|
212
|
+
throw Error("application-capacity");
|
|
213
|
+
const total = this.db.prepare("SELECT count(*) AS n FROM contact_auth_tickets WHERE created_at>? "
|
|
214
|
+
+ "AND json_extract(ticket_json,'$.state')='pending'").get(now - CONTACT_APPLICATION_TTL_MS);
|
|
215
|
+
if (total.n >= 512)
|
|
216
|
+
throw Error("application-capacity");
|
|
217
|
+
this.db.prepare("DELETE FROM contact_auth_tickets WHERE created_at<?")
|
|
218
|
+
.run(now - 30 * 24 * 60 * 60_000);
|
|
219
|
+
this.db.exec("DELETE FROM contact_auth_outcome_notices WHERE ticket_id NOT IN (SELECT id FROM contact_auth_tickets)");
|
|
220
|
+
this.db.prepare("DELETE FROM contact_auth_history WHERE at<?").run(now - 90 * 24 * 60 * 60_000);
|
|
221
|
+
const ticket = { id: `R${randomUUID()}`, revision: 1, scope: "peer.dispatch", state: "pending",
|
|
222
|
+
source: input.source, target: input.target, sourceGeneration: input.sourceGeneration, targetGeneration: input.targetGeneration,
|
|
223
|
+
verb: input.verb, origin: structuredClone(input.origin), message: input.message, requestHash: hash,
|
|
224
|
+
correlationId: input.correlationId, resultRecipient: input.resultRecipient,
|
|
225
|
+
createdAt: new Date(now).toISOString(), expiresAt: new Date(now + CONTACT_APPLICATION_TTL_MS).toISOString(), canDecide: false };
|
|
226
|
+
this.db.prepare("INSERT INTO contact_auth_tickets VALUES (?,?,?,?,?,?)")
|
|
227
|
+
.run(ticket.id, key, hash, JSON.stringify(input), JSON.stringify(ticket), now);
|
|
228
|
+
return ticket;
|
|
229
|
+
})();
|
|
230
|
+
}
|
|
231
|
+
operationTicket(source, operationId, target, verb) {
|
|
232
|
+
const row = this.db.prepare("SELECT * FROM contact_auth_tickets WHERE operation_key=?")
|
|
233
|
+
.get(JSON.stringify([source, operationId, target, verb]));
|
|
234
|
+
return row ? this.read(row) : undefined;
|
|
235
|
+
}
|
|
236
|
+
read(row) {
|
|
237
|
+
const ticket = JSON.parse(row.ticket_json);
|
|
238
|
+
if (ticket.state === "pending" && Date.parse(ticket.expiresAt) <= this.now()) {
|
|
239
|
+
ticket.state = "expired";
|
|
240
|
+
ticket.revision++;
|
|
241
|
+
this.write(ticket);
|
|
242
|
+
}
|
|
243
|
+
return ticket;
|
|
244
|
+
}
|
|
245
|
+
write(ticket) {
|
|
246
|
+
this.db.prepare("UPDATE contact_auth_tickets SET ticket_json=? WHERE id=?").run(JSON.stringify(ticket), ticket.id);
|
|
247
|
+
}
|
|
248
|
+
get(id) {
|
|
249
|
+
const row = this.db.prepare("SELECT * FROM contact_auth_tickets WHERE id=?").get(id);
|
|
250
|
+
return row ? this.read(row) : undefined;
|
|
251
|
+
}
|
|
252
|
+
pending() {
|
|
253
|
+
this.db.prepare("UPDATE contact_auth_tickets SET ticket_json=json_set(ticket_json,'$.state','expired','$.revision',json_extract(ticket_json,'$.revision')+1) "
|
|
254
|
+
+ "WHERE created_at<=? AND json_extract(ticket_json,'$.state')='pending'").run(this.now() - CONTACT_APPLICATION_TTL_MS);
|
|
255
|
+
return this.db.prepare("SELECT * FROM contact_auth_tickets WHERE json_extract(ticket_json,'$.state')='pending' ORDER BY created_at,id LIMIT 512")
|
|
256
|
+
.all().map(row => this.read(row));
|
|
257
|
+
}
|
|
258
|
+
/** M-3372: the callback admits a system notice on this same outbox connection. */
|
|
259
|
+
notifyOutcomes(admit) {
|
|
260
|
+
return this.db.transaction(() => {
|
|
261
|
+
// A timer calls this even if no person opens the web page.
|
|
262
|
+
this.pending();
|
|
263
|
+
const rows = this.db.prepare("SELECT t.* FROM contact_auth_tickets t LEFT JOIN contact_auth_outcome_notices n ON n.ticket_id=t.id "
|
|
264
|
+
+ "WHERE n.ticket_id IS NULL AND json_extract(t.ticket_json,'$.state') IN ('declined','expired') ORDER BY t.created_at,t.id LIMIT 64")
|
|
265
|
+
.all();
|
|
266
|
+
for (const row of rows) {
|
|
267
|
+
admit(this.read(row));
|
|
268
|
+
this.db.prepare("INSERT INTO contact_auth_outcome_notices VALUES (?)").run(row.id);
|
|
269
|
+
}
|
|
270
|
+
return rows.length;
|
|
271
|
+
})();
|
|
272
|
+
}
|
|
273
|
+
list(filter = {}) {
|
|
274
|
+
const offset = filter.cursor ? Number(filter.cursor) : 0;
|
|
275
|
+
if (!Number.isSafeInteger(offset) || offset < 0 || offset > 100_000)
|
|
276
|
+
throw Error("invalid-cursor");
|
|
277
|
+
// Read a bounded page; identity visibility is applied by the service, not query parameters.
|
|
278
|
+
const rows = this.db.prepare("SELECT * FROM contact_auth_tickets ORDER BY created_at DESC,id LIMIT 51 OFFSET ?").all(offset);
|
|
279
|
+
const items = rows.slice(0, 50).map(row => this.read(row))
|
|
280
|
+
.filter(ticket => (!filter.agent || ticket.source === filter.agent || ticket.target === filter.agent)
|
|
281
|
+
&& (!filter.status || ticket.state === filter.status));
|
|
282
|
+
return { items, nextCursor: rows.length > 50 ? String(offset + 50) : null };
|
|
283
|
+
}
|
|
284
|
+
decide(id, decision, actor, authority, automatic = false) {
|
|
285
|
+
// Expiry is persisted outside the decision transaction, even when deciding throws.
|
|
286
|
+
this.get(id);
|
|
287
|
+
return this.db.transaction(() => {
|
|
288
|
+
const row = this.db.prepare("SELECT * FROM contact_auth_tickets WHERE id=?").get(id);
|
|
289
|
+
if (!row)
|
|
290
|
+
throw Error("not-found");
|
|
291
|
+
const ticket = this.read(row), request = JSON.parse(row.request_json);
|
|
292
|
+
if (!authority.canDecide(ticket.target, actor))
|
|
293
|
+
throw Error("forbidden");
|
|
294
|
+
if (ticket.state === "expired")
|
|
295
|
+
throw Error("expired");
|
|
296
|
+
if (ticket.state !== "pending")
|
|
297
|
+
throw Error("already-decided");
|
|
298
|
+
if (decision.revision !== ticket.revision)
|
|
299
|
+
throw Error("conflict");
|
|
300
|
+
if (decision.decision !== "approve-once" && decision.decision !== "decline")
|
|
301
|
+
throw Error("invalid-decision");
|
|
302
|
+
ticket.decidedAt = new Date(this.now()).toISOString();
|
|
303
|
+
ticket.decidedBy = actor;
|
|
304
|
+
ticket.revision++;
|
|
305
|
+
if (decision.decision === "decline")
|
|
306
|
+
ticket.state = "declined";
|
|
307
|
+
else {
|
|
308
|
+
if (!authority.current(request))
|
|
309
|
+
throw Error("stale-generation");
|
|
310
|
+
// An administrator approval (including a standing grant) endorses this delivery.
|
|
311
|
+
// Keep its original origin on the ticket/source; do not merge it into the receiving agent.
|
|
312
|
+
if (decision.grant) {
|
|
313
|
+
const choice = decision.grant;
|
|
314
|
+
if (!["human", "mixed"].includes(request.origin.kind) || !request.origin.people.length || request.origin.people.length > 16
|
|
315
|
+
|| (!choice.personKeys && (request.origin.kind !== "human" || request.origin.people.length !== 1)))
|
|
316
|
+
throw Error("invalid-grant-origin");
|
|
317
|
+
const keys = choice.personKeys ?? [contactPersonKey(request.origin.people[0])];
|
|
318
|
+
if (!keys.length || keys.length > 16 || new Set(keys).size !== keys.length
|
|
319
|
+
|| keys.some(key => !request.origin.people.some(person => contactPersonKey(person) === key)))
|
|
320
|
+
throw Error("invalid-grant-origin");
|
|
321
|
+
if (!Number.isFinite(Date.parse(choice.expiresAt)) || Date.parse(choice.expiresAt) <= this.now()
|
|
322
|
+
|| (choice.remainingUses !== null && (!Number.isInteger(choice.remainingUses) || choice.remainingUses < 1 || choice.remainingUses > 10_000)))
|
|
323
|
+
throw Error("invalid-grant");
|
|
324
|
+
const previous = this.policy(request.target, request.targetGeneration);
|
|
325
|
+
if (previous.grants.length + keys.length > 100)
|
|
326
|
+
throw Error("invalid-grant");
|
|
327
|
+
const grants = keys.map(key => ({ id: randomUUID(),
|
|
328
|
+
person: request.origin.people.find(person => contactPersonKey(person) === key), source: request.source,
|
|
329
|
+
target: request.target, sourceGeneration: request.sourceGeneration, targetGeneration: request.targetGeneration,
|
|
330
|
+
verbs: [request.verb], expiresAt: choice.expiresAt, remainingUses: choice.remainingUses,
|
|
331
|
+
createdAt: ticket.decidedAt, createdBy: actor }));
|
|
332
|
+
const saved = this.writePolicy(request.target, { revision: previous.revision, grants: [...previous.grants, ...grants] }, actor, name => name === request.target ? request.targetGeneration : name === request.source ? request.sourceGeneration : "unavailable");
|
|
333
|
+
// writePolicy assigns fresh ids to appended rows; reference the persisted images.
|
|
334
|
+
ticket.grantIds = saved.grants.slice(previous.grants.length).map(grant => grant.id);
|
|
335
|
+
}
|
|
336
|
+
ticket.deliveryId = authority.admit(request, ticket.id);
|
|
337
|
+
ticket.state = "approved";
|
|
338
|
+
}
|
|
339
|
+
this.write(ticket);
|
|
340
|
+
this.history(ticket.target, actor, automatic ? "grant-use" : decision.decision === "decline" ? "decline" : "approve", automatic ? "Standing contact grant used" : decision.decision, ticket.id);
|
|
341
|
+
return ticket;
|
|
342
|
+
})();
|
|
343
|
+
}
|
|
344
|
+
applyStandingGrant(id, authority) {
|
|
345
|
+
return this.db.transaction(() => {
|
|
346
|
+
const row = this.db.prepare("SELECT * FROM contact_auth_tickets WHERE id=?").get(id);
|
|
347
|
+
if (!row)
|
|
348
|
+
return undefined;
|
|
349
|
+
const ticket = this.read(row);
|
|
350
|
+
if (ticket.state !== "pending")
|
|
351
|
+
return ticket;
|
|
352
|
+
const request = JSON.parse(row.request_json);
|
|
353
|
+
const grants = this.matchingGrants(request), grant = grants[0];
|
|
354
|
+
if (!grant || !grants.every(row => authority.canDecide(request.target, row.createdBy)))
|
|
355
|
+
return undefined;
|
|
356
|
+
const next = this.decide(id, { revision: ticket.revision, decision: "approve-once" }, grant.createdBy, { ...authority, canDecide: () => true }, true);
|
|
357
|
+
const policy = this.policy(request.target, request.targetGeneration);
|
|
358
|
+
if (grants.some(row => row.remainingUses !== null)) {
|
|
359
|
+
const used = new Set(grants.map(row => row.id));
|
|
360
|
+
const updated = policy.grants.map(item => used.has(item.id) && item.remainingUses !== null ? { ...item, remainingUses: item.remainingUses - 1 } : item);
|
|
361
|
+
const changed = { ...policy, revision: policy.revision + 1, grants: updated };
|
|
362
|
+
this.db.prepare("UPDATE contact_auth_policies SET revision=?,policy_json=? WHERE instance=?")
|
|
363
|
+
.run(changed.revision, JSON.stringify(changed), request.target);
|
|
364
|
+
}
|
|
365
|
+
next.grantId = grant.id;
|
|
366
|
+
next.grantIds = grants.map(row => row.id);
|
|
367
|
+
this.write(next);
|
|
368
|
+
return next;
|
|
369
|
+
})();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
//# sourceMappingURL=contact-auth-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-auth-store.js","sourceRoot":"","sources":["../src/contact-auth-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,GAAG,MAAM,CAAC;AA+BtD,MAAM,UAAU,gBAAgB,CAAC,MAAqB;IACpD,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5E,CAAC;AACD,SAAS,MAAM,CAAI,MAAW,EAAE,GAAyB;IACvD,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AACzE,CAAC;AACD,MAAM,UAAU,mBAAmB,CAAC,MAAiC,EAAE,IAAmB;IACxF,MAAM,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACtE,MAAM,MAAM,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,CAAC,EAAE,GAAG,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBACxJ,MAAM,OAAO,GAAG,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;gBAC9E,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,4EAA4E,CAAC;qBAC1F,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;YACpE,CAAC;YACD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,EAAE,CAAC;YACxB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAC1C,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACjB,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,EAAE,CAAC;IACP,CAAC;CACF"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/** M-3339 wire contract. All identities and origins are resolved by the server. */
|
|
2
|
+
export interface ContactPerson {
|
|
3
|
+
platform: "discord" | "telegram" | "host";
|
|
4
|
+
adapterId: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export type ContactVerb = "send_to_instance" | "delegate_task" | "request_information" | "broadcast" | "report_result";
|
|
9
|
+
export type ContactTicketState = "pending" | "approved" | "delivered" | "declined" | "expired" | "unknown";
|
|
10
|
+
export interface ContactGuardStatus {
|
|
11
|
+
state: "ready" | "restart-required" | "not-covered" | "failed";
|
|
12
|
+
backend: string;
|
|
13
|
+
version?: string;
|
|
14
|
+
wouldDisable?: string[];
|
|
15
|
+
impactComplete?: boolean;
|
|
16
|
+
reason?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ContactRoomTool {
|
|
19
|
+
/** Exact backend tool identity; no wildcard or command-fragment matching. */
|
|
20
|
+
name: string;
|
|
21
|
+
kind: "public-read" | "mcp";
|
|
22
|
+
usesOwnerAccount: boolean;
|
|
23
|
+
/** Server label, never a credential value. */
|
|
24
|
+
accountWarning?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ContactRoomTools {
|
|
27
|
+
/** Public WebSearch/WebFetch or the verified backend equivalents stay available. */
|
|
28
|
+
publicRead: boolean;
|
|
29
|
+
allowedMcpTools: ContactRoomTool[];
|
|
30
|
+
/** Current tools that would stop if this legacy room switched. */
|
|
31
|
+
wouldDisable: string[];
|
|
32
|
+
}
|
|
33
|
+
export interface ContactOrigin {
|
|
34
|
+
/** Unknown and mixed origins never acquire admin authority from message text. */
|
|
35
|
+
kind: "human" | "unknown" | "mixed";
|
|
36
|
+
people: ContactPerson[];
|
|
37
|
+
receiptIds: string[];
|
|
38
|
+
/** Server-owned instance hops, oldest first; no authority is conveyed by labels. */
|
|
39
|
+
chain: string[];
|
|
40
|
+
}
|
|
41
|
+
export interface ContactGrant {
|
|
42
|
+
id: string;
|
|
43
|
+
person: ContactPerson;
|
|
44
|
+
source: string;
|
|
45
|
+
target: string;
|
|
46
|
+
sourceGeneration?: string;
|
|
47
|
+
targetGeneration?: string;
|
|
48
|
+
verbs: ContactVerb[];
|
|
49
|
+
expiresAt: string;
|
|
50
|
+
/** null means reusable until expiry, otherwise a remaining dispatch count. */
|
|
51
|
+
remainingUses: number | null;
|
|
52
|
+
createdBy: ContactPerson;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
}
|
|
55
|
+
export interface ContactTicket {
|
|
56
|
+
id: string;
|
|
57
|
+
revision: number;
|
|
58
|
+
scope: "peer.dispatch";
|
|
59
|
+
state: ContactTicketState;
|
|
60
|
+
source: string;
|
|
61
|
+
target: string;
|
|
62
|
+
sourceGeneration: string;
|
|
63
|
+
targetGeneration: string;
|
|
64
|
+
verb: ContactVerb;
|
|
65
|
+
origin: ContactOrigin;
|
|
66
|
+
/** Visible only to an authorized approver or the source room's authorized admin. */
|
|
67
|
+
message: string;
|
|
68
|
+
requestHash: string;
|
|
69
|
+
correlationId: string;
|
|
70
|
+
resultRecipient: string;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
expiresAt: string;
|
|
73
|
+
decidedAt?: string;
|
|
74
|
+
decidedBy?: ContactPerson;
|
|
75
|
+
grantId?: string;
|
|
76
|
+
grantIds?: string[];
|
|
77
|
+
deliveryId?: string;
|
|
78
|
+
/** Contact delivery, never a claim that the target completed its task. */
|
|
79
|
+
reason?: string;
|
|
80
|
+
canDecide: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface ContactHistoryRow {
|
|
83
|
+
id: string;
|
|
84
|
+
at: string;
|
|
85
|
+
actor: ContactPerson;
|
|
86
|
+
action: "policy" | "approve" | "decline" | "grant-add" | "grant-remove" | "grant-use" | "origin-clear";
|
|
87
|
+
ticketId?: string;
|
|
88
|
+
summary: string;
|
|
89
|
+
source?: string;
|
|
90
|
+
target?: string;
|
|
91
|
+
generation?: string;
|
|
92
|
+
originChange?: {
|
|
93
|
+
before: ContactOriginImage;
|
|
94
|
+
after: ContactOriginImage;
|
|
95
|
+
};
|
|
96
|
+
policyChange?: {
|
|
97
|
+
approvers?: {
|
|
98
|
+
before: ContactPerson[] | null;
|
|
99
|
+
after: ContactPerson[] | null;
|
|
100
|
+
};
|
|
101
|
+
grants?: {
|
|
102
|
+
before: ContactGrant[];
|
|
103
|
+
after: ContactGrant[];
|
|
104
|
+
};
|
|
105
|
+
roomTools?: {
|
|
106
|
+
before: ContactRoomTools;
|
|
107
|
+
after: ContactRoomTools;
|
|
108
|
+
};
|
|
109
|
+
modeRequested?: "legacy" | "restricted";
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export type ContactOriginImage = Pick<ContactOrigin, "kind" | "people" | "chain"> & {
|
|
113
|
+
receiptCount: number;
|
|
114
|
+
};
|
|
115
|
+
export interface ContactOriginClear {
|
|
116
|
+
revision: number;
|
|
117
|
+
originRevision: number;
|
|
118
|
+
generation: string;
|
|
119
|
+
}
|
|
120
|
+
export interface ContactOriginState {
|
|
121
|
+
kind: ContactOrigin["kind"] | "none";
|
|
122
|
+
people: ContactPerson[];
|
|
123
|
+
chain: string[];
|
|
124
|
+
receiptCount: number;
|
|
125
|
+
revision: number;
|
|
126
|
+
generation: string;
|
|
127
|
+
canClear: boolean;
|
|
128
|
+
lastCleared?: {
|
|
129
|
+
actor: ContactPerson;
|
|
130
|
+
at: string;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export interface ContactPermissions {
|
|
134
|
+
instance: string;
|
|
135
|
+
revision: number;
|
|
136
|
+
classicRoom: boolean;
|
|
137
|
+
mode: "legacy" | "restricted";
|
|
138
|
+
approvers: ContactPerson[];
|
|
139
|
+
/** Slice 1: only the target adapter's Fleet admins (or verified host operator). */
|
|
140
|
+
eligibleApprovers: ContactPerson[];
|
|
141
|
+
/** True when approvers are inherited from the target's owning adapter. */
|
|
142
|
+
inheritedApprovers: boolean;
|
|
143
|
+
nativeGuard: ContactGuardStatus;
|
|
144
|
+
roomTools: ContactRoomTools;
|
|
145
|
+
canManage: boolean;
|
|
146
|
+
canSetMode: boolean;
|
|
147
|
+
suggestRestricted: boolean;
|
|
148
|
+
grants: ContactGrant[];
|
|
149
|
+
history: ContactHistoryRow[];
|
|
150
|
+
originState?: ContactOriginState;
|
|
151
|
+
originRestriction?: {
|
|
152
|
+
active: true;
|
|
153
|
+
reason: "earlier-non-admin" | "unknown-origin";
|
|
154
|
+
resetSupported: false;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
export interface ContactPermissionsWrite {
|
|
158
|
+
revision: number;
|
|
159
|
+
mode?: "legacy" | "restricted";
|
|
160
|
+
approvers?: ContactPerson[];
|
|
161
|
+
roomTools?: Pick<ContactRoomTools, "publicRead" | "allowedMcpTools">;
|
|
162
|
+
/** Replaces the contact table, with an explicit optimistic revision check. */
|
|
163
|
+
grants?: Array<Pick<ContactGrant, "id" | "person" | "source" | "target" | "verbs" | "expiresAt" | "remainingUses">>;
|
|
164
|
+
}
|
|
165
|
+
export interface ContactTicketPage {
|
|
166
|
+
items: ContactTicket[];
|
|
167
|
+
nextCursor: string | null;
|
|
168
|
+
}
|
|
169
|
+
export interface ContactTicketDecision {
|
|
170
|
+
revision: number;
|
|
171
|
+
decision: "approve-once" | "decline";
|
|
172
|
+
/** Separate, explicit opt-in; never inferred from clicking Approve once. */
|
|
173
|
+
grant?: {
|
|
174
|
+
expiresAt: string;
|
|
175
|
+
remainingUses: number | null;
|
|
176
|
+
/** Explicit subset of this ticket’s server-owned originating people; absent keeps the legacy single-person contract. */
|
|
177
|
+
personKeys?: string[];
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
export interface ContactHeldResult {
|
|
181
|
+
sent: false;
|
|
182
|
+
held: true;
|
|
183
|
+
authorization_id: string;
|
|
184
|
+
authorization_state: ContactTicketState;
|
|
185
|
+
message: string;
|
|
186
|
+
}
|
|
187
|
+
export interface ContactBadge {
|
|
188
|
+
id: string;
|
|
189
|
+
state: ContactTicketState;
|
|
190
|
+
}
|
|
191
|
+
/** SSE `contact-auth`: clients refresh their scoped list and affected detail. */
|
|
192
|
+
export interface ContactAuthEvent {
|
|
193
|
+
instance: string;
|
|
194
|
+
ticketId?: string;
|
|
195
|
+
revision: number;
|
|
196
|
+
}
|
|
197
|
+
/** AgEnD tool ceiling, separate from room-configured public-read and MCP tools. */
|
|
198
|
+
export declare const CLASSIC_RESTRICTED_TOOLS: readonly string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** AgEnD tool ceiling, separate from room-configured public-read and MCP tools. */
|
|
2
|
+
export const CLASSIC_RESTRICTED_TOOLS = Object.freeze([
|
|
3
|
+
"reply", "react", "edit_message", "download_attachment", "close_poll",
|
|
4
|
+
"list_instances", "describe_instance", "list_teams", "delivery_status",
|
|
5
|
+
"send_to_instance", "delegate_task", "request_information", "broadcast", "report_result",
|
|
6
|
+
]);
|
|
7
|
+
//# sourceMappingURL=contact-auth-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-auth-types.js","sourceRoot":"","sources":["../src/contact-auth-types.ts"],"names":[],"mappings":"AAgKA,mFAAmF;AACnF,MAAM,CAAC,MAAM,wBAAwB,GAAsB,MAAM,CAAC,MAAM,CAAC;IACvE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,YAAY;IACrE,gBAAgB,EAAE,mBAAmB,EAAE,YAAY,EAAE,iBAAiB;IACtE,kBAAkB,EAAE,eAAe,EAAE,qBAAqB,EAAE,WAAW,EAAE,eAAe;CACzF,CAAC,CAAC"}
|