@songsid/agend 2.4.0-alpha.4 → 2.4.0-beta.10
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/agent-cli-instructions.md +4 -1
- package/dist/agent-cli.js +14 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.d.ts +3 -1
- package/dist/agent-endpoint.js +15 -3
- package/dist/agent-endpoint.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 +1 -1
- 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/auth-api.d.ts +8 -0
- package/dist/auth-api.js +40 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/authority-state.d.ts +7 -0
- package/dist/authority/authority-state.js +17 -2
- package/dist/authority/authority-state.js.map +1 -1
- package/dist/authority/web-authority.d.ts +11 -1
- package/dist/authority/web-authority.js +11 -1
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/agy-model-switch.d.ts +22 -0
- package/dist/backend/agy-model-switch.js +62 -0
- package/dist/backend/agy-model-switch.js.map +1 -0
- package/dist/backend/antigravity.d.ts +9 -2
- package/dist/backend/antigravity.js +84 -9
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-code.js +20 -5
- package/dist/backend/claude-code.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.d.ts +6 -4
- package/dist/backend/codex.js +26 -9
- 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 +1 -1
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.js +4 -4
- 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 +2 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +22 -0
- package/dist/backend-availability.js +71 -2
- package/dist/backend-availability.js.map +1 -1
- package/dist/backend-signin-guide.js +1 -1
- package/dist/backend-signin-guide.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 +3 -0
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-server.js +10 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.js +9 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/tool-router.js +9 -2
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/channel/types.d.ts +10 -0
- package/dist/classic-channel-manager.d.ts +1 -1
- package/dist/classic-channel-manager.js +1 -1
- package/dist/cli-audited.js +14 -13
- 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/config-validator.js +18 -1
- package/dist/config-validator.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/daemon.d.ts +64 -2
- package/dist/daemon.js +397 -31
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +2 -0
- package/dist/delivery-consumed-watch.js +4 -1
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/dispatcher-liveness.d.ts +51 -1
- package/dist/dispatcher-liveness.js +92 -2
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/event-log.d.ts +1 -1
- package/dist/event-log.js +1 -1
- package/dist/fleet-manager.d.ts +222 -6
- package/dist/fleet-manager.js +1271 -100
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.js +4 -2
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +19 -3
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +10 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +18 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +331 -29
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +118 -26
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +2 -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/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 +2 -0
- package/dist/hub/audit/index.js +8 -0
- 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 +8 -5
- package/dist/hub/catalog.js +53 -20
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +13 -0
- package/dist/hub/client.js +85 -11
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +22 -0
- package/dist/hub/compose/member.js +233 -18
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +14 -0
- package/dist/hub/compose/server.js +110 -11
- package/dist/hub/compose/server.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 +1 -0
- package/dist/hub/execution/service.js +1 -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/grant-access.js +23 -3
- package/dist/hub/grant-access.js.map +1 -1
- package/dist/hub/grant-search.js +13 -1
- package/dist/hub/grant-search.js.map +1 -1
- 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 +41 -4
- 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 +2 -0
- package/dist/hub/http/compose.js +437 -32
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.js +27 -0
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +15 -0
- package/dist/hub/http/schema.js +21 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/join/client.js +75 -42
- package/dist/hub/join/client.js.map +1 -1
- package/dist/hub/join/service.d.ts +1 -1
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/join/store.d.ts +5 -0
- package/dist/hub/join/store.js +12 -2
- package/dist/hub/join/store.js.map +1 -1
- 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 +176 -0
- package/dist/hub/mcp/tools.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 +6 -0
- package/dist/hub/member/exposure-api.js +13 -6
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/exposures.d.ts +4 -0
- package/dist/hub/member/exposures.js +20 -0
- 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 +65 -5
- package/dist/hub/member/room-ask.js +269 -24
- package/dist/hub/member/room-ask.js.map +1 -1
- 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 +103 -0
- package/dist/hub/member/room-post.js +231 -0
- package/dist/hub/member/room-post.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/person-prefs.d.ts +22 -0
- package/dist/hub/person-prefs.js +34 -0
- package/dist/hub/person-prefs.js.map +1 -0
- package/dist/hub/personal/owner-host.d.ts +140 -0
- package/dist/hub/personal/owner-host.js +287 -0
- package/dist/hub/personal/owner-host.js.map +1 -0
- package/dist/hub/personal/refusals.d.ts +11 -0
- package/dist/hub/personal/refusals.js +33 -0
- package/dist/hub/personal/refusals.js.map +1 -0
- package/dist/hub/personal/runtime-host.d.ts +26 -0
- package/dist/hub/personal/runtime-host.js +51 -0
- package/dist/hub/personal/runtime-host.js.map +1 -0
- package/dist/hub/personal/schema.d.ts +4 -0
- package/dist/hub/personal/schema.js +54 -0
- package/dist/hub/personal/schema.js.map +1 -0
- package/dist/hub/personal/turns.d.ts +39 -0
- package/dist/hub/personal/turns.js +221 -0
- package/dist/hub/personal/turns.js.map +1 -0
- package/dist/hub/personal/types.d.ts +42 -0
- package/dist/hub/personal/types.js +2 -0
- package/dist/hub/personal/types.js.map +1 -0
- package/dist/hub/policy.d.ts +1 -1
- package/dist/hub/policy.js +2 -0
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +701 -1
- package/dist/hub/protocol.js +103 -14
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/published-version.d.ts +3 -0
- package/dist/hub/published-version.js +35 -0
- package/dist/hub/published-version.js.map +1 -0
- package/dist/hub/quota.js +3 -1
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/recommendation-model.d.ts +36 -0
- package/dist/hub/recommendation-model.js +9 -0
- package/dist/hub/recommendation-model.js.map +1 -0
- package/dist/hub/recommendations.d.ts +58 -0
- package/dist/hub/recommendations.js +211 -0
- package/dist/hub/recommendations.js.map +1 -0
- package/dist/hub/representative.d.ts +5 -0
- package/dist/hub/representative.js +6 -1
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/roles/admin-control.d.ts +29 -0
- package/dist/hub/roles/admin-control.js +187 -0
- package/dist/hub/roles/admin-control.js.map +1 -0
- package/dist/hub/roles/admin-types.d.ts +72 -0
- package/dist/hub/roles/admin-types.js +2 -0
- package/dist/hub/roles/admin-types.js.map +1 -0
- package/dist/hub/roles/allowed-list-control.d.ts +34 -0
- package/dist/hub/roles/allowed-list-control.js +179 -0
- package/dist/hub/roles/allowed-list-control.js.map +1 -0
- package/dist/hub/roles/allowed-list.d.ts +8 -0
- package/dist/hub/roles/allowed-list.js +49 -0
- package/dist/hub/roles/allowed-list.js.map +1 -0
- package/dist/hub/roles/audit-details.d.ts +144 -0
- package/dist/hub/roles/audit-details.js +26 -0
- package/dist/hub/roles/audit-details.js.map +1 -0
- package/dist/hub/roles/authority.d.ts +12 -0
- package/dist/hub/roles/authority.js +39 -3
- package/dist/hub/roles/authority.js.map +1 -1
- package/dist/hub/roles/change.d.ts +3 -1
- package/dist/hub/roles/change.js +7 -2
- package/dist/hub/roles/change.js.map +1 -1
- package/dist/hub/roles/clock.d.ts +3 -0
- package/dist/hub/roles/clock.js +1 -1
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/convert.js +1 -1
- package/dist/hub/roles/convert.js.map +1 -1
- package/dist/hub/roles/cutover-inventory.d.ts +2 -0
- package/dist/hub/roles/cutover-inventory.js +8 -1
- package/dist/hub/roles/cutover-inventory.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-context-model.d.ts +43 -0
- package/dist/hub/room-context-model.js +12 -0
- package/dist/hub/room-context-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 +44 -10
- package/dist/hub/rooms/agents.js +277 -30
- 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/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 +6 -2
- package/dist/hub/rooms/direct-view.js +3 -3
- package/dist/hub/rooms/direct-view.js.map +1 -1
- 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/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/schema.d.ts +9 -0
- package/dist/hub/rooms/schema.js +43 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +163 -4
- package/dist/hub/rooms/service.js +796 -26
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +29 -3
- package/dist/hub/rooms.d.ts +12 -2
- package/dist/hub/rooms.js +88 -18
- 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 +93 -7
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +2 -1
- package/dist/hub/session-directory-transition.js +10 -3
- package/dist/hub/session-directory-transition.js.map +1 -1
- package/dist/hub/sessions.d.ts +1 -1
- package/dist/hub/sessions.js +26 -4
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-commit.d.ts +32 -1
- package/dist/hub/settings-commit.js +11 -4
- package/dist/hub/settings-commit.js.map +1 -1
- package/dist/hub/settings-directory-ca.js +1 -1
- package/dist/hub/settings-directory-ca.js.map +1 -1
- package/dist/hub/settings-directory-control.js +7 -7
- package/dist/hub/settings-directory-control.js.map +1 -1
- package/dist/hub/settings-directory-http.d.ts +2 -0
- package/dist/hub/settings-directory-http.js +21 -6
- package/dist/hub/settings-directory-http.js.map +1 -1
- package/dist/hub/settings-directory-proof.d.ts +5 -1
- package/dist/hub/settings-directory-proof.js +49 -10
- package/dist/hub/settings-directory-proof.js.map +1 -1
- package/dist/hub/settings-directory-recovery.js +2 -1
- package/dist/hub/settings-directory-recovery.js.map +1 -1
- package/dist/hub/settings-directory-save.d.ts +2 -0
- package/dist/hub/settings-directory-save.js +9 -6
- package/dist/hub/settings-directory-save.js.map +1 -1
- package/dist/hub/settings-member-address-decision.js +3 -1
- package/dist/hub/settings-member-address-decision.js.map +1 -1
- package/dist/hub/settings-member-address-http.js +3 -2
- package/dist/hub/settings-member-address-http.js.map +1 -1
- package/dist/hub/settings-member-address-policy.d.ts +3 -2
- package/dist/hub/settings-member-address-policy.js +3 -1
- package/dist/hub/settings-member-address-policy.js.map +1 -1
- package/dist/hub/settings-web-address-decision.js +3 -1
- package/dist/hub/settings-web-address-decision.js.map +1 -1
- package/dist/hub/settings-web-address-http.js +3 -2
- package/dist/hub/settings-web-address-http.js.map +1 -1
- package/dist/hub/settings-web-address-policy.d.ts +3 -2
- package/dist/hub/settings-web-address-policy.js +3 -1
- package/dist/hub/settings-web-address-policy.js.map +1 -1
- 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/grant-schema.d.ts +2 -0
- package/dist/hub/teams/grant-schema.js +13 -0
- package/dist/hub/teams/grant-schema.js.map +1 -0
- package/dist/hub/teams/index.d.ts +12 -0
- package/dist/hub/teams/index.js +348 -0
- package/dist/hub/teams/index.js.map +1 -0
- package/dist/hub/teams/store.d.ts +38 -0
- package/dist/hub/teams/store.js +80 -0
- package/dist/hub/teams/store.js.map +1 -0
- package/dist/hub/teams/types.d.ts +76 -2
- package/dist/hub/types.d.ts +162 -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-pairing-summary.d.ts +1 -1
- package/dist/hub-pilot-trust-settings.d.ts +1 -1
- package/dist/hub-pilot-trust-settings.js +2 -2
- package/dist/hub-pilot-trust-settings.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-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 +3 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instructions.js +3 -0
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +139 -24
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +19 -2
- package/dist/login-controller.js +26 -8
- package/dist/login-controller.js.map +1 -1
- package/dist/native-mcp.js +7 -5
- 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/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +14 -4
- package/dist/outbound-handlers.js +54 -1
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +17 -0
- package/dist/outbound-schemas.js +14 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +2 -0
- package/dist/public-web-gateway.js +152 -4
- package/dist/public-web-gateway.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/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/runtime-api.js +10 -2
- package/dist/runtime-api.js.map +1 -1
- package/dist/runtime-build-info.js +1 -0
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli-install.js +13 -10
- 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-native.js +3 -1
- 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/settings-api.d.ts +15 -0
- package/dist/settings-api.js +210 -76
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +32 -5
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +13 -2
- 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/setup-form.js +10 -0
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-i18n.js +2 -2
- package/dist/setup-i18n.js.map +1 -1
- package/dist/subagent-records.js +53 -11
- package/dist/subagent-records.js.map +1 -1
- package/dist/subagent-service.js +3 -1
- package/dist/subagent-service.js.map +1 -1
- package/dist/tmux-manager.d.ts +2 -0
- package/dist/tmux-manager.js +2 -0
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tool-permissions.js +3 -0
- package/dist/tool-permissions.js.map +1 -1
- package/dist/tool-progress.d.ts +9 -0
- package/dist/tool-progress.js +141 -32
- package/dist/tool-progress.js.map +1 -1
- package/dist/transcript-needles.d.ts +4 -2
- package/dist/transcript-needles.js +35 -4
- package/dist/transcript-needles.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 +12 -2
- package/dist/ui/backend-signin.js +91 -22
- package/dist/ui/chat-activity-groups.js +41 -8
- package/dist/ui/chat-activity.js +5 -3
- 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-store.js +143 -7
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/chat-workspace.js +3 -3
- package/dist/ui/fleet-canvas.js +14 -5
- package/dist/ui/fleet-office-carousel.d.ts +14 -0
- package/dist/ui/fleet-office-carousel.js +95 -0
- package/dist/ui/fleet-office-editor.js +6 -1
- package/dist/ui/fleet-office-model.js +2 -1
- package/dist/ui/fleet-office-skin.js +1 -1
- package/dist/ui/fleet-office-store.js +14 -2
- package/dist/ui/fleet-office-zones.js +50 -9
- package/dist/ui/fleet-office.js +203 -24
- package/dist/ui/fleet-tasks.js +1 -1
- package/dist/ui/host-install.js +5 -2
- 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 +6 -2
- package/dist/ui/hub-ai-apps-strings.js +6 -0
- package/dist/ui/hub-ai-apps.js +83 -0
- package/dist/ui/hub-chat-strings.js +7 -0
- package/dist/ui/hub-client.js +89 -10
- 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 +7 -32
- package/dist/ui/hub-group-policy.js +26 -13
- package/dist/ui/hub-group-strings.js +29 -20
- package/dist/ui/hub-join-steps.js +27 -15
- package/dist/ui/hub-owner-strings.js +2 -2
- package/dist/ui/hub-personal-agent-strings.js +246 -0
- package/dist/ui/hub-personal-agent.js +117 -0
- package/dist/ui/hub-policy-subjects.js +35 -0
- package/dist/ui/hub-quick-pairing.js +7 -2
- 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 +439 -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 +30 -11
- package/dist/ui/hub-room-favorites.js +63 -5
- package/dist/ui/hub-room-list.js +4 -3
- package/dist/ui/hub-room-members-strings.js +2 -2
- package/dist/ui/hub-room-members.js +7 -4
- package/dist/ui/hub-room-notify.js +161 -0
- package/dist/ui/hub-room-search.js +126 -0
- package/dist/ui/hub-room-settings.js +6 -0
- package/dist/ui/hub-room-source-strings.js +17 -0
- package/dist/ui/hub-room-source.js +34 -0
- package/dist/ui/hub-room-strings.js +49 -1
- package/dist/ui/hub-room-thread.js +300 -49
- package/dist/ui/hub-room-unread.js +2 -1
- package/dist/ui/hub-strings.js +10 -0
- package/dist/ui/hub-subject-picker.js +58 -0
- package/dist/ui/hub-switcher.js +2 -2
- package/dist/ui/hub-teams-strings.js +38 -0
- package/dist/ui/hub-teams.js +197 -0
- 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/model-picker.js +4 -1
- package/dist/ui/notice-hub-update.js +94 -0
- package/dist/ui/office-share-dialog.js +2 -2
- package/dist/ui/panel-chat.js +327 -28
- package/dist/ui/panel-details.js +3 -1
- package/dist/ui/panel-fleet.js +28 -7
- package/dist/ui/panel-hub.js +316 -105
- package/dist/ui/panel-log.js +4 -4
- package/dist/ui/panel-notices.js +3 -1
- package/dist/ui/panel-settings.js +45 -34
- package/dist/ui/preview-panel.js +3 -1
- package/dist/ui/reply-file-preview.js +64 -0
- package/dist/ui/runtime-commands.d.ts +2 -2
- package/dist/ui/runtime-commands.js +7 -4
- package/dist/ui/settings-access-overview.js +3 -3
- package/dist/ui/settings-appearance.js +7 -10
- package/dist/ui/settings-archive-files.js +109 -0
- package/dist/ui/settings-build-version.js +2 -2
- package/dist/ui/settings-catalog.js +22 -0
- package/dist/ui/settings-connector-strings.js +23 -0
- package/dist/ui/settings-connector.js +39 -0
- package/dist/ui/settings-guests-entries.js +16 -0
- package/dist/ui/settings-guests.js +57 -15
- package/dist/ui/settings-hub-connection.js +4 -5
- package/dist/ui/settings-hub-member-address.js +21 -6
- package/dist/ui/settings-hub-membership.js +6 -7
- package/dist/ui/settings-hub-section.js +4 -6
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-hub-updates.js +67 -0
- package/dist/ui/settings-hub-web-address.js +21 -5
- package/dist/ui/settings-hub.js +30 -4
- package/dist/ui/settings-layout.js +15 -13
- package/dist/ui/settings-registry.js +18 -3
- package/dist/ui/settings-shared-strings.js +2 -0
- package/dist/ui/settings-strings.js +13 -2
- 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 +1 -1
- package/dist/ui/shared/agent-sheet.js +116 -0
- package/dist/ui/shared/agent-widget.js +1 -2
- package/dist/ui/shared/app-i18n.js +4 -0
- 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 +4 -2
- package/dist/ui/shared/app-shell.js +178 -23
- package/dist/ui/shared/app-store.js +1 -1
- package/dist/ui/shared/app-stream.js +6 -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 +472 -203
- package/dist/ui/shared/app.js +1 -1
- package/dist/ui/shared/chat-composer.js +29 -5
- package/dist/ui/shared/chat-msg-actions.js +231 -0
- package/dist/ui/shared/chat-strings.js +19 -4
- package/dist/ui/shared/chat-thread.js +121 -17
- package/dist/ui/shared/chat-work-bar.css +118 -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 +63 -4
- package/dist/ui/shared/hub-groups.css +19 -15
- package/dist/ui/shared/hub-owner.css +118 -3
- package/dist/ui/shared/hub-roles.css +99 -0
- package/dist/ui/shared/hub-rooms-u2.css +34 -0
- package/dist/ui/shared/hub-signin.css +2 -0
- package/dist/ui/shared/hub-teams.css +31 -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 +415 -0
- package/dist/ui/shared/image-lightbox.js +218 -0
- package/dist/ui/shared/image-zoom.js +316 -0
- package/dist/ui/shared/instance-nav.js +120 -15
- package/dist/ui/shared/loading.css +1 -1
- package/dist/ui/shared/model-picker.css +32 -4
- package/dist/ui/shared/owner-css.js +1 -1
- package/dist/ui/shared/page-head.js +3 -2
- 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 +6 -2
- package/dist/ui/shared/reply-previews.css +4 -0
- package/dist/ui/shared/runtime-install.css +5 -0
- package/dist/ui/shared/settings-connector.css +7 -0
- package/dist/ui/shared/signin.js +27 -12
- package/dist/ui/shared/task-board.css +2 -2
- package/dist/ui/shared/theme.js +52 -0
- package/dist/ui/shared/tokens.css +27 -10
- package/dist/ui/shared/ui-icons.js +2 -0
- package/dist/ui/shared/ui-toast.js +4 -4
- package/dist/ui/shared/usage-dialog.js +113 -16
- 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/web-terminal/terminal.css +1 -1
- package/dist/ui/workspace-panel.js +4 -3
- 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/agent-output.js +1 -0
- package/dist/usage/agent-output.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/i18n.d.ts +1 -1
- package/dist/usage/i18n.js +2 -1
- package/dist/usage/i18n.js.map +1 -1
- package/dist/usage/profile-timeline.d.ts +2 -0
- package/dist/usage/profile-timeline.js +4 -0
- package/dist/usage/profile-timeline.js.map +1 -1
- package/dist/usage/providers.d.ts +4 -1
- package/dist/usage/providers.js +31 -16
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-history.d.ts +1 -1
- package/dist/usage/usage-api.d.ts +1 -1
- package/dist/usage/usage-api.js +4 -4
- 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/web-api.d.ts +9 -0
- package/dist/web-api.js +434 -188
- package/dist/web-api.js.map +1 -1
- 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 +76 -0
- package/dist/web-chat-history.js +145 -1
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-commands.d.ts +4 -3
- package/dist/web-commands.js +3 -2
- package/dist/web-commands.js.map +1 -1
- package/dist/web-guest-access.d.ts +3 -0
- package/dist/web-guest-access.js +6 -2
- package/dist/web-guest-access.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 +3 -0
- package/dist/web-notices.js +17 -2
- package/dist/web-notices.js.map +1 -1
- package/dist/web-office-store.d.ts +2 -0
- package/dist/web-office-store.js +15 -3
- package/dist/web-office-store.js.map +1 -1
- package/dist/web-pin-store.d.ts +58 -0
- package/dist/web-pin-store.js +170 -0
- package/dist/web-pin-store.js.map +1 -0
- package/dist/web-prefs.js +5 -1
- package/dist/web-prefs.js.map +1 -1
- package/dist/web-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 +6 -4
- package/dist/web-session.js +5 -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 +1 -1
- package/dist/web-shell-routes.js +1 -1
- package/dist/web-shell-routes.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 +36 -0
- 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/package.json +1 -1
- package/templates/runtime-install/install.ps1 +24 -4
package/dist/hub/types.d.ts
CHANGED
|
@@ -18,6 +18,12 @@ export interface HubFrame<T extends string, P> {
|
|
|
18
18
|
linkEpoch: Epoch;
|
|
19
19
|
payload: P;
|
|
20
20
|
}
|
|
21
|
+
export interface HubFleetInfo {
|
|
22
|
+
version: string;
|
|
23
|
+
runsAsService: boolean;
|
|
24
|
+
recommendations?: true;
|
|
25
|
+
updatesAllowed?: boolean;
|
|
26
|
+
}
|
|
21
27
|
export interface HubHello {
|
|
22
28
|
supportedVersions: readonly number[];
|
|
23
29
|
capabilities: readonly string[];
|
|
@@ -55,7 +61,7 @@ export interface HubAttachmentChunk {
|
|
|
55
61
|
}
|
|
56
62
|
export interface HubExposureSnapshot {
|
|
57
63
|
revision: Epoch;
|
|
58
|
-
exposures: readonly
|
|
64
|
+
exposures: readonly HubFleetExposure[];
|
|
59
65
|
}
|
|
60
66
|
/** quota-band-v1: member-derived, coarse and ephemeral. Exact usage never crosses the link. */
|
|
61
67
|
export interface HubQuota {
|
|
@@ -107,6 +113,8 @@ export interface HubRoomAsk {
|
|
|
107
113
|
};
|
|
108
114
|
text: string;
|
|
109
115
|
context: readonly HubRoomContextRow[];
|
|
116
|
+
attachments?: HubAttachmentRef[];
|
|
117
|
+
contextState?: import("./room-context-model.js").HubRoomContextState;
|
|
110
118
|
}
|
|
111
119
|
export interface HubRoomAnswer {
|
|
112
120
|
messageId: MessageId;
|
|
@@ -114,11 +122,135 @@ export interface HubRoomAnswer {
|
|
|
114
122
|
exposureId: ExposureId;
|
|
115
123
|
answerId: string;
|
|
116
124
|
text: string;
|
|
125
|
+
/** M-3127: room-answer-buttons-v1 links only; bound into the answer digest like its text. */
|
|
126
|
+
buttons?: HubAnswerButtons;
|
|
127
|
+
attachments?: HubAttachmentRef[];
|
|
128
|
+
mentionFeedback?: true;
|
|
117
129
|
}
|
|
118
130
|
export interface HubRoomAnswerAck {
|
|
119
131
|
messageId: MessageId;
|
|
120
132
|
answerId: string;
|
|
133
|
+
mentionRefusals?: import("./room-mention-feedback-model.js").HubRoomMentionFeedback;
|
|
134
|
+
}
|
|
135
|
+
/** M-3127 (agent reactions, on room-answer-buttons-v1): the agent's reaction to the room question it was asked ("" takes it back). */
|
|
136
|
+
export interface HubRoomReact {
|
|
137
|
+
messageId: MessageId;
|
|
138
|
+
roomId: RoomId;
|
|
139
|
+
exposureId: ExposureId;
|
|
140
|
+
emoji: string;
|
|
141
|
+
}
|
|
142
|
+
export interface HubRoomReactResult {
|
|
143
|
+
messageId: MessageId;
|
|
144
|
+
ok: boolean;
|
|
145
|
+
code?: "invalid" | "denied" | "not-found" | "archived" | "revoked";
|
|
146
|
+
}
|
|
147
|
+
/** Proactive group-room messages are scoped by the authenticated link and its own published exposure. */
|
|
148
|
+
export type HubRoomPostRefusalCode = "invalid" | "denied" | "revoked" | "not-found" | "archived" | "ambiguous-room" | "rate-limited" | "conflict" | "unavailable" | "stale" | "backpressure";
|
|
149
|
+
export interface HubRoomListRequest {
|
|
150
|
+
exposureId: ExposureId;
|
|
151
|
+
}
|
|
152
|
+
export type HubRoomListResult = {
|
|
153
|
+
ok: true;
|
|
154
|
+
exposureId: ExposureId;
|
|
155
|
+
rooms: readonly {
|
|
156
|
+
id: RoomId;
|
|
157
|
+
name: string;
|
|
158
|
+
}[];
|
|
159
|
+
truncated?: boolean;
|
|
160
|
+
} | {
|
|
161
|
+
ok: false;
|
|
162
|
+
exposureId: ExposureId;
|
|
163
|
+
code: HubRoomPostRefusalCode;
|
|
164
|
+
retryAt?: Millis;
|
|
165
|
+
};
|
|
166
|
+
export interface HubRoomPost {
|
|
167
|
+
exposureId: ExposureId;
|
|
168
|
+
room: string;
|
|
169
|
+
text: string;
|
|
170
|
+
idempotencyKey: string;
|
|
171
|
+
onBehalfOf?: {
|
|
172
|
+
receiptId: string;
|
|
173
|
+
};
|
|
174
|
+
mentionFeedback?: true;
|
|
175
|
+
}
|
|
176
|
+
export interface HubRoomMembersRequest {
|
|
177
|
+
exposureId: ExposureId;
|
|
178
|
+
room: string;
|
|
121
179
|
}
|
|
180
|
+
export type HubRoomMembersResult = {
|
|
181
|
+
ok: true;
|
|
182
|
+
roomId: RoomId;
|
|
183
|
+
members: readonly {
|
|
184
|
+
id: string;
|
|
185
|
+
kind: "person" | "agent" | "assistant";
|
|
186
|
+
name: string;
|
|
187
|
+
presence: string;
|
|
188
|
+
owner?: {
|
|
189
|
+
name: string;
|
|
190
|
+
};
|
|
191
|
+
presenceReason?: string;
|
|
192
|
+
presenceNote?: string;
|
|
193
|
+
}[];
|
|
194
|
+
} | {
|
|
195
|
+
ok: false;
|
|
196
|
+
code: HubRoomPostRefusalCode;
|
|
197
|
+
retryAt?: Millis;
|
|
198
|
+
rooms?: readonly {
|
|
199
|
+
id: RoomId;
|
|
200
|
+
name: string;
|
|
201
|
+
}[];
|
|
202
|
+
};
|
|
203
|
+
export interface HubPeopleSearch {
|
|
204
|
+
exposureId: ExposureId;
|
|
205
|
+
q: string;
|
|
206
|
+
}
|
|
207
|
+
export type HubPeopleSearchResult = {
|
|
208
|
+
ok: true;
|
|
209
|
+
people: readonly {
|
|
210
|
+
id: string;
|
|
211
|
+
name: string;
|
|
212
|
+
login: string;
|
|
213
|
+
}[];
|
|
214
|
+
truncated: boolean;
|
|
215
|
+
} | {
|
|
216
|
+
ok: false;
|
|
217
|
+
code: HubRoomPostRefusalCode;
|
|
218
|
+
retryAt?: Millis;
|
|
219
|
+
};
|
|
220
|
+
export interface HubRoomPostAnswer {
|
|
221
|
+
id: string;
|
|
222
|
+
idempotencyKey: string;
|
|
223
|
+
postId: MessageId;
|
|
224
|
+
roomId: RoomId;
|
|
225
|
+
exposureId: ExposureId;
|
|
226
|
+
message: {
|
|
227
|
+
id: MessageId;
|
|
228
|
+
author: {
|
|
229
|
+
name: string;
|
|
230
|
+
};
|
|
231
|
+
text: string;
|
|
232
|
+
at: Millis;
|
|
233
|
+
};
|
|
234
|
+
receiptId?: string;
|
|
235
|
+
}
|
|
236
|
+
export interface HubRoomPostAnswerAck {
|
|
237
|
+
id: string;
|
|
238
|
+
}
|
|
239
|
+
export type HubRoomPostResult = {
|
|
240
|
+
ok: true;
|
|
241
|
+
roomId: RoomId;
|
|
242
|
+
messageId: MessageId;
|
|
243
|
+
at: Millis;
|
|
244
|
+
mentionRefusals?: import("./room-mention-feedback-model.js").HubRoomMentionFeedback;
|
|
245
|
+
} | {
|
|
246
|
+
ok: false;
|
|
247
|
+
code: HubRoomPostRefusalCode;
|
|
248
|
+
retryAt?: Millis;
|
|
249
|
+
rooms?: readonly {
|
|
250
|
+
id: RoomId;
|
|
251
|
+
name: string;
|
|
252
|
+
}[];
|
|
253
|
+
};
|
|
122
254
|
export type HubAgentStateReason = "quota" | "auth" | "approval" | "update" | "operator" | "idle" | "capacity" | "error" | "stopped" | "crashed" | "stuck" | "unknown";
|
|
123
255
|
export interface HubAgentState {
|
|
124
256
|
exposureId: ExposureId;
|
|
@@ -209,7 +341,7 @@ export interface HubRevocation {
|
|
|
209
341
|
scope: HubRevocationScope;
|
|
210
342
|
reasonCode: string;
|
|
211
343
|
}
|
|
212
|
-
export type HubMemberFrame = HubFrame<"room.answer", HubRoomAnswer> | HubFrame<"agent.state", HubAgentState> | HubFrame<"hello", HubHello> | HubFrame<"member.leave", Record<string, never>> | HubFrame<"exposure.snapshot", HubExposureSnapshot> | HubFrame<"receipt", HubReceipt> | HubFrame<"answer", HubAnswer> | HubFrame<"reconcile", HubReconcile> | HubFrame<"authorize.request", HubAuthorizationRequest> | HubFrame<"error", HubProtocolError> | HubFrame<"attachment.get", {
|
|
344
|
+
export type HubMemberFrame = HubFrame<"room.context-state", import("./room-context-model.js").HubRoomContextRequest> | HubFrame<"room.context-input", import("./room-context-model.js").HubRoomContextInput> | HubFrame<"room.list", HubRoomListRequest> | HubFrame<"room.post", HubRoomPost> | HubFrame<"room.members", HubRoomMembersRequest> | HubFrame<"people.search", HubPeopleSearch> | HubFrame<"room.post-answer-ack", HubRoomPostAnswerAck> | HubFrame<"room.answer", HubRoomAnswer> | HubFrame<"agent.state", HubAgentState> | HubFrame<"room.react", HubRoomReact> | HubFrame<"hello", HubHello> | HubFrame<"fleet.update-status", import("./fleet-update-model.js").FleetUpdateStatus> | HubFrame<"fleet.info", HubFleetInfo> | HubFrame<"fleet.recommendation-ack", import("./recommendation-model.js").HubRecommendationAck> | HubFrame<"member.leave", Record<string, never>> | HubFrame<"exposure.snapshot", HubExposureSnapshot> | HubFrame<"receipt", HubReceipt> | HubFrame<"answer", HubAnswer> | HubFrame<"reconcile", HubReconcile> | HubFrame<"authorize.request", HubAuthorizationRequest> | HubFrame<"error", HubProtocolError> | HubFrame<"attachment.get", {
|
|
213
345
|
id: string;
|
|
214
346
|
offset: number;
|
|
215
347
|
}> | HubFrame<"attachment.put", HubAttachmentChunk> | HubFrame<"exposure.quota", HubExposureQuota> | HubFrame<"pairing.notice-ack", {
|
|
@@ -241,7 +373,10 @@ export interface HubRelocation {
|
|
|
241
373
|
revision: Epoch;
|
|
242
374
|
signature: string;
|
|
243
375
|
}
|
|
244
|
-
export type HubServerFrame = HubFrame<"room.
|
|
376
|
+
export type HubServerFrame = HubFrame<"room.context-state-result", import("./room-context-model.js").HubRoomContextResult> | HubFrame<"room.context-input-result", import("./room-context-model.js").HubRoomContextInputResult> | HubFrame<"room.list-result", HubRoomListResult> | HubFrame<"room.post-result", HubRoomPostResult> | HubFrame<"room.members-result", HubRoomMembersResult> | HubFrame<"people.search-result", HubPeopleSearchResult> | HubFrame<"room.post-answer", HubRoomPostAnswer> | HubFrame<"room.ask", HubRoomAsk> | HubFrame<"room.answer-ack", HubRoomAnswerAck> | HubFrame<"room.react-result", HubRoomReactResult> | HubFrame<"welcome", HubWelcome> | HubFrame<"fleet.update", import("./fleet-update-model.js").FleetUpdateRequest> | HubFrame<"fleet.update-cancel", {
|
|
377
|
+
id: string;
|
|
378
|
+
version: string;
|
|
379
|
+
}> | HubFrame<"fleet.update-status-ack", import("./fleet-update-model.js").FleetUpdateStatusAck> | HubFrame<"fleet.recommendation", import("./recommendation-model.js").HubRecommendation> | HubFrame<"question", HubQuestion> | HubFrame<"receipt", HubReceipt> | HubFrame<"reconcile", HubReconcileReply> | HubFrame<"authorize.result", HubAuthorizationResult> | HubFrame<"revoke", HubRevocation> | HubFrame<"error", HubProtocolError> | HubFrame<"attachment.chunk", HubAttachmentChunk> | HubFrame<"attachment.ack", {
|
|
245
380
|
id: string;
|
|
246
381
|
offset: number;
|
|
247
382
|
}> | HubFrame<"pairing.notice", HubPairingNotice & {
|
|
@@ -300,19 +435,33 @@ export interface HubFleet {
|
|
|
300
435
|
status: "pending" | "online" | "offline" | "revoked" | "frozen";
|
|
301
436
|
approvedAt?: Millis;
|
|
302
437
|
}
|
|
303
|
-
|
|
438
|
+
interface HubExposureCommon {
|
|
304
439
|
id: ExposureId;
|
|
305
|
-
fleetId: FleetId;
|
|
306
440
|
owner: PersonKey;
|
|
307
441
|
displayName: string;
|
|
308
442
|
revision: Epoch;
|
|
309
443
|
state: "published" | "withdrawn" | "frozen" | "paused";
|
|
310
444
|
/** Hub browser projection only; member snapshots cannot set a Hub-owned pause or its epoch. */
|
|
311
445
|
sharingEpoch?: Epoch;
|
|
446
|
+
}
|
|
447
|
+
export interface HubFleetExposure extends HubExposureCommon {
|
|
448
|
+
kind?: "fleet";
|
|
449
|
+
fleetId: FleetId;
|
|
312
450
|
dataViewId: string;
|
|
313
451
|
allowedTools: readonly string[];
|
|
314
452
|
policyDigest: Sha256;
|
|
315
453
|
}
|
|
454
|
+
export interface HubPersonalExposure extends HubExposureCommon {
|
|
455
|
+
kind: "personal";
|
|
456
|
+
personalAgentId: string;
|
|
457
|
+
/** Owner opted in; part of this immutable exposure revision. */
|
|
458
|
+
answerOnly?: true;
|
|
459
|
+
fleetId: null;
|
|
460
|
+
dataViewId: null;
|
|
461
|
+
allowedTools: readonly [];
|
|
462
|
+
policyDigest: null;
|
|
463
|
+
}
|
|
464
|
+
export type HubExposure = HubFleetExposure | HubPersonalExposure;
|
|
316
465
|
export interface HubGrant {
|
|
317
466
|
id: GrantId;
|
|
318
467
|
revision: Epoch;
|
|
@@ -327,6 +476,9 @@ export interface HubGrant {
|
|
|
327
476
|
} | {
|
|
328
477
|
kind: "group";
|
|
329
478
|
group: PersonKey;
|
|
479
|
+
} | {
|
|
480
|
+
kind: "team";
|
|
481
|
+
teamId: string;
|
|
330
482
|
};
|
|
331
483
|
/** Presentation only; the immutable subject key, never this label, determines access. */
|
|
332
484
|
subjectLabel?: string;
|
|
@@ -396,6 +548,11 @@ export type HubActor = {
|
|
|
396
548
|
};
|
|
397
549
|
export interface HubRequestContext {
|
|
398
550
|
readonly requestId: string;
|
|
551
|
+
/** Verified company-person app grant, constructed by the Hub OAuth door, never from request JSON. */
|
|
552
|
+
readonly application?: {
|
|
553
|
+
readonly id: string;
|
|
554
|
+
readonly name: string;
|
|
555
|
+
};
|
|
399
556
|
/** Synchronous session/lifetime fence for a permit immediately before its effect; never directory authority. */
|
|
400
557
|
isCurrent?(): boolean;
|
|
401
558
|
/** Exact synchronous identity/session fence, not a directory or permission proof. */
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface PrivateTurn {
|
|
2
|
+
agent: string;
|
|
3
|
+
correlationId: string;
|
|
4
|
+
token: string;
|
|
5
|
+
since: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class HubClassicPrivateTurns {
|
|
8
|
+
private readonly file;
|
|
9
|
+
private readonly now;
|
|
10
|
+
private rows;
|
|
11
|
+
constructor(file: string, now?: () => number);
|
|
12
|
+
private load;
|
|
13
|
+
blocked(agent: string): boolean;
|
|
14
|
+
read(agent: string): Readonly<PrivateTurn> | null;
|
|
15
|
+
begin(agent: string, correlationId: string): void;
|
|
16
|
+
/** A current room-person input, accepted after fresh idle and completed Hub work, may reopen output. */
|
|
17
|
+
resume(agent: string, token: string): boolean;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/** A Classic room's private Hub turn survives report ACK, expiry and restart. Never stores question/answer content. */
|
|
2
|
+
import { randomUUID } from "node:crypto";
|
|
3
|
+
import { lstatSync, readFileSync } from "node:fs";
|
|
4
|
+
import { atomicWriteFileSync } from "./atomic-write.js";
|
|
5
|
+
export class HubClassicPrivateTurns {
|
|
6
|
+
file;
|
|
7
|
+
now;
|
|
8
|
+
rows = null;
|
|
9
|
+
constructor(file, now = Date.now) {
|
|
10
|
+
this.file = file;
|
|
11
|
+
this.now = now;
|
|
12
|
+
}
|
|
13
|
+
load() {
|
|
14
|
+
if (this.rows)
|
|
15
|
+
return this.rows;
|
|
16
|
+
try {
|
|
17
|
+
const st = lstatSync(this.file);
|
|
18
|
+
if (!st.isFile() || st.isSymbolicLink() || st.size > 1024 * 1024)
|
|
19
|
+
throw Error("Invalid private Hub turns");
|
|
20
|
+
const rows = JSON.parse(readFileSync(this.file, "utf8"));
|
|
21
|
+
if (!Array.isArray(rows) || rows.length > 4096 || !rows.every(r => r && typeof r.agent === "string"
|
|
22
|
+
&& typeof r.correlationId === "string" && typeof r.token === "string" && Number.isSafeInteger(r.since) && r.since >= 0)) {
|
|
23
|
+
throw Error("Invalid private Hub turns");
|
|
24
|
+
}
|
|
25
|
+
this.rows = rows;
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
if (error.code !== "ENOENT")
|
|
29
|
+
throw error;
|
|
30
|
+
this.rows = [];
|
|
31
|
+
}
|
|
32
|
+
return this.rows;
|
|
33
|
+
}
|
|
34
|
+
blocked(agent) {
|
|
35
|
+
try {
|
|
36
|
+
return this.load().some(r => r.agent === agent);
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
read(agent) { return this.load().find(r => r.agent === agent) ?? null; }
|
|
43
|
+
begin(agent, correlationId) {
|
|
44
|
+
const rows = this.load();
|
|
45
|
+
if (rows.some(r => r.agent === agent && r.correlationId === correlationId))
|
|
46
|
+
return;
|
|
47
|
+
const next = rows.filter(r => r.agent !== agent);
|
|
48
|
+
if (next.length >= 4096)
|
|
49
|
+
throw Error("Too many private Hub turns");
|
|
50
|
+
next.push({ agent, correlationId, token: randomUUID(), since: this.now() });
|
|
51
|
+
atomicWriteFileSync(this.file, JSON.stringify(next), { mode: 0o600 });
|
|
52
|
+
this.rows = next;
|
|
53
|
+
}
|
|
54
|
+
/** A current room-person input, accepted after fresh idle and completed Hub work, may reopen output. */
|
|
55
|
+
resume(agent, token) {
|
|
56
|
+
if (this.read(agent)?.token !== token)
|
|
57
|
+
return false;
|
|
58
|
+
const next = this.load().filter(r => r.agent !== agent);
|
|
59
|
+
atomicWriteFileSync(this.file, JSON.stringify(next), { mode: 0o600 });
|
|
60
|
+
this.rows = next;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=hub-classic-private.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hub-classic-private.js","sourceRoot":"","sources":["../src/hub-classic-private.ts"],"names":[],"mappings":"AAAA,uHAAuH;AACvH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAIxD,MAAM,OAAO,sBAAsB;IAEJ,IAAI;IAA2B,GAAG;IADvD,IAAI,GAAyB,IAAI,CAAC;IAC1C,YAA6B,IAAY,EAAmB,GAAG,GAAiB,IAAI,CAAC,GAAG;oBAA3D,IAAI;mBAA2B,GAAG;IAA4B,CAAC;IAEpF,IAAI;QACV,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC,IAAI,CAAC;QAChC,IAAI,CAAC;YACH,MAAM,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI;gBAAE,MAAM,KAAK,CAAC,2BAA2B,CAAC,CAAC;YAC3G,MAAM,IAA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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const HUB_CONTACT_WINDOW_MS: number;
|
|
2
|
+
export declare class HubContactWindows {
|
|
3
|
+
private readonly file;
|
|
4
|
+
private readonly now;
|
|
5
|
+
private rows;
|
|
6
|
+
constructor(file: string, now?: () => number);
|
|
7
|
+
private load;
|
|
8
|
+
restricted(agent: string): boolean;
|
|
9
|
+
begin(agent: string, correlationId: string): void;
|
|
10
|
+
answered(agent: string, correlationId: string): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/** Fleet-owned contact windows survive Hub disconnect/disable and Fleet restart. No question text is retained. */
|
|
2
|
+
import { lstatSync, readFileSync } from "node:fs";
|
|
3
|
+
import { atomicWriteFileSync } from "./atomic-write.js";
|
|
4
|
+
export const HUB_CONTACT_WINDOW_MS = 30 * 60_000;
|
|
5
|
+
export class HubContactWindows {
|
|
6
|
+
file;
|
|
7
|
+
now;
|
|
8
|
+
rows = null;
|
|
9
|
+
constructor(file, now = Date.now) {
|
|
10
|
+
this.file = file;
|
|
11
|
+
this.now = now;
|
|
12
|
+
}
|
|
13
|
+
load() {
|
|
14
|
+
if (this.rows)
|
|
15
|
+
return this.rows;
|
|
16
|
+
try {
|
|
17
|
+
const st = lstatSync(this.file);
|
|
18
|
+
if (!st.isFile() || st.isSymbolicLink() || st.size > 1024 * 1024)
|
|
19
|
+
throw Error("Invalid Hub contact windows");
|
|
20
|
+
const rows = JSON.parse(readFileSync(this.file, "utf8"));
|
|
21
|
+
if (!Array.isArray(rows) || rows.length > 4096 || !rows.every(r => r && typeof r.agent === "string" && typeof r.correlationId === "string" && Number.isSafeInteger(r.expiresAt)))
|
|
22
|
+
throw Error("Invalid Hub contact windows");
|
|
23
|
+
this.rows = rows;
|
|
24
|
+
}
|
|
25
|
+
catch (e) {
|
|
26
|
+
if (e.code !== "ENOENT")
|
|
27
|
+
throw e;
|
|
28
|
+
this.rows = [];
|
|
29
|
+
}
|
|
30
|
+
return this.rows;
|
|
31
|
+
}
|
|
32
|
+
restricted(agent) {
|
|
33
|
+
try {
|
|
34
|
+
return this.load().some(r => r.agent === agent && r.expiresAt > this.now());
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return true;
|
|
38
|
+
} // Unreadable state cannot grant contact permission.
|
|
39
|
+
}
|
|
40
|
+
begin(agent, correlationId) {
|
|
41
|
+
const rows = this.load().filter(r => r.expiresAt > this.now());
|
|
42
|
+
if (rows.some(r => r.agent === agent && r.correlationId === correlationId))
|
|
43
|
+
return; // retries do not extend a window
|
|
44
|
+
if (rows.length >= 4096)
|
|
45
|
+
throw Error("Too many Hub contact windows");
|
|
46
|
+
rows.push({ agent, correlationId, expiresAt: this.now() + HUB_CONTACT_WINDOW_MS });
|
|
47
|
+
atomicWriteFileSync(this.file, JSON.stringify(rows), { mode: 0o600 });
|
|
48
|
+
this.rows = rows;
|
|
49
|
+
}
|
|
50
|
+
answered(agent, correlationId) {
|
|
51
|
+
const rows = this.load().filter(r => r.expiresAt > this.now() && !(r.agent === agent && r.correlationId === correlationId));
|
|
52
|
+
atomicWriteFileSync(this.file, JSON.stringify(rows), { mode: 0o600 });
|
|
53
|
+
this.rows = rows;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=hub-contact-windows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hub-contact-windows.js","sourceRoot":"","sources":["../src/hub-contact-windows.ts"],"names":[],"mappings":"AAAA,kHAAkH;AAClH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,GAAG,MAAM,CAAC;AAEjD,MAAM,OAAO,iBAAiB;IAEC,IAAI;IAA2B,GAAG;IADvD,IAAI,GAAoB,IAAI,CAAC;IACrC,YAA6B,IAAY,EAAmB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mB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAC1F,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** The installed release decides the default; source checkout/branch names never enable trust. */
|
|
1
|
+
/** The installed release decides the default: on for -alpha and -beta prereleases, off for stable (leader, 2.4.0-beta.1); source checkout/branch names never enable trust. */
|
|
2
2
|
export declare function hubPilotTrustSettings(raw: unknown, version: string | null): {
|
|
3
3
|
enabled: boolean;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** The installed release decides the default; source checkout/branch names never enable trust. */
|
|
1
|
+
/** The installed release decides the default: on for -alpha and -beta prereleases, off for stable (leader, 2.4.0-beta.1); source checkout/branch names never enable trust. */
|
|
2
2
|
export function hubPilotTrustSettings(raw, version) {
|
|
3
3
|
if (!raw || typeof raw !== "object" || Array.isArray(raw))
|
|
4
4
|
throw Error("invalid_hub_pilot_trust");
|
|
@@ -8,6 +8,6 @@ export function hubPilotTrustSettings(raw, version) {
|
|
|
8
8
|
const value = member && Object.hasOwn(member, "pilot_trust") ? member.pilot_trust : undefined;
|
|
9
9
|
if (value !== undefined && typeof value !== "boolean")
|
|
10
10
|
throw Error("invalid_hub_pilot_trust");
|
|
11
|
-
return { enabled: value ?? /^\d+\.\d+\.\d+-alpha(?:\.|$)/.test(version ?? "") };
|
|
11
|
+
return { enabled: value ?? /^\d+\.\d+\.\d+-(?:alpha|beta)(?:\.|$)/.test(version ?? "") };
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=hub-pilot-trust-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hub-pilot-trust-settings.js","sourceRoot":"","sources":["../src/hub-pilot-trust-settings.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"hub-pilot-trust-settings.js","sourceRoot":"","sources":["../src/hub-pilot-trust-settings.ts"],"names":[],"mappings":"AAAA,8KAA8K;AAC9K,MAAM,UAAU,qBAAqB,CAAC,GAAY,EAAE,OAAsB;IACxE,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAAE,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClG,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,CAAE,GAA+B,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1G,IAAI,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAAE,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACrI,MAAM,KAAK,GAAG,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAE,MAAkC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3H,IAAI,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,SAAS;QAAE,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC9F,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,uCAAuC,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,CAAC;AAC3F,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** An internal consumed-watch marker, never a human receipt or caller-supplied authority. */
|
|
2
|
+
export declare function roomContextInputMarker(meta: Record<string, string>): string | null;
|
|
3
|
+
export declare class RoomConversationGeneration {
|
|
4
|
+
private readonly directory;
|
|
5
|
+
private value;
|
|
6
|
+
private session;
|
|
7
|
+
constructor(directory: string);
|
|
8
|
+
private get path();
|
|
9
|
+
current(): string | null;
|
|
10
|
+
start(reattached: boolean): void;
|
|
11
|
+
reset(): void;
|
|
12
|
+
observeSession(session: string | null): void;
|
|
13
|
+
private write;
|
|
14
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** Fleet-owned conversation identity. No Hub imports: disabled Fleets keep Hub runtime loading lazy. */
|
|
2
|
+
import { randomUUID } from "node:crypto";
|
|
3
|
+
import { readFileSync, writeFileSync, renameSync, statSync } from "node:fs";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { HUB_REPORT_TARGET } from "./hub-report-target.js";
|
|
6
|
+
const ID = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/;
|
|
7
|
+
/** An internal consumed-watch marker, never a human receipt or caller-supplied authority. */
|
|
8
|
+
export function roomContextInputMarker(meta) {
|
|
9
|
+
return meta.from_instance === HUB_REPORT_TARGET && ID.test(meta.hub_room_context_generation ?? "")
|
|
10
|
+
&& /^hub-room-[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/.test(meta.correlation_id ?? "")
|
|
11
|
+
? `[agend-room-input:${meta.correlation_id}]` : null;
|
|
12
|
+
}
|
|
13
|
+
export class RoomConversationGeneration {
|
|
14
|
+
directory;
|
|
15
|
+
value = null;
|
|
16
|
+
session = null;
|
|
17
|
+
constructor(directory) {
|
|
18
|
+
this.directory = directory;
|
|
19
|
+
}
|
|
20
|
+
get path() { return join(this.directory, "hub-room-conversation.json"); }
|
|
21
|
+
current() { return this.value; }
|
|
22
|
+
start(reattached) {
|
|
23
|
+
this.value = null;
|
|
24
|
+
this.session = null;
|
|
25
|
+
if (reattached)
|
|
26
|
+
try {
|
|
27
|
+
if (statSync(this.path).size > 1024)
|
|
28
|
+
throw Error("Invalid conversation generation");
|
|
29
|
+
const saved = JSON.parse(readFileSync(this.path, "utf8"));
|
|
30
|
+
if (saved.v !== 1 || !ID.test(saved.generation) || saved.session !== null && (typeof saved.session !== "string" || saved.session.length > 256))
|
|
31
|
+
throw Error("Invalid conversation generation");
|
|
32
|
+
this.value = saved.generation;
|
|
33
|
+
this.session = saved.session;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
catch { /* Unconfirmed retained state starts a full window, never a delta. */ }
|
|
37
|
+
this.reset();
|
|
38
|
+
}
|
|
39
|
+
reset() {
|
|
40
|
+
this.value = null;
|
|
41
|
+
this.session = null;
|
|
42
|
+
const generation = randomUUID();
|
|
43
|
+
this.write(generation, null);
|
|
44
|
+
this.value = generation;
|
|
45
|
+
}
|
|
46
|
+
observeSession(session) {
|
|
47
|
+
if (!this.value || !session || session.length > 256 || /[\u0000-\u001f\u007f]/.test(session) || session === this.session)
|
|
48
|
+
return;
|
|
49
|
+
if (this.session !== null)
|
|
50
|
+
this.reset();
|
|
51
|
+
this.write(this.value, session);
|
|
52
|
+
this.session = session;
|
|
53
|
+
}
|
|
54
|
+
write(generation, session) {
|
|
55
|
+
const temporary = `${this.path}.${randomUUID()}.tmp`;
|
|
56
|
+
writeFileSync(temporary, JSON.stringify({ v: 1, generation, session }), { mode: 0o600 });
|
|
57
|
+
renameSync(temporary, this.path);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=hub-room-conversation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hub-room-conversation.js","sourceRoot":"","sources":["../src/hub-room-conversation.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,MAAM,EAAE,GAAC,+CAA+C,CAAC;AACzD,6FAA6F;AAC7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AU,CAAC,SAAS,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjH,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HubRecommendedUpdate } from "./hub/recommendation-model.js";
|
|
2
|
+
export declare const HUB_UPDATE_NOTICE_FILE = "hub-update-notice.json";
|
|
3
|
+
export declare const HUB_UPDATE_REMIND_MS: number;
|
|
4
|
+
export interface HubNoticeState {
|
|
5
|
+
key: string;
|
|
6
|
+
at: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function hubNoticeKey(advice: Pick<HubRecommendedUpdate, "hubId" | "revision" | "version">): string;
|
|
9
|
+
/** Whether to post now: advice newer than what runs, and either not yet told or told at least 7 days ago. */
|
|
10
|
+
export declare function hubNoticeDue(state: HubNoticeState | null, advice: HubRecommendedUpdate | null, current: string | null, now: number, newer: (a: string, b: string) => boolean): boolean;
|
|
11
|
+
export declare function readHubNoticeState(path: string): HubNoticeState | null;
|
|
12
|
+
export declare function writeHubNoticeState(path: string, state: HubNoticeState): void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* M-3140 (docs/design/hub-fleet-versions.md §3.3, chat): when a Hub's recommended version first applies to this Fleet, one
|
|
3
|
+
* message in General with Update now; while the Fleet is still behind, a reminder 7 days later and every 7 days after —
|
|
4
|
+
* never daily (a daily nag is how notices get muted). A new recommendation (another Hub, revision or version) is new: told
|
|
5
|
+
* at once. Kept in one small file in the data directory, so a restart neither repeats nor forgets it.
|
|
6
|
+
*/
|
|
7
|
+
import { readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
8
|
+
export const HUB_UPDATE_NOTICE_FILE = "hub-update-notice.json";
|
|
9
|
+
export const HUB_UPDATE_REMIND_MS = 7 * 24 * 60 * 60 * 1000;
|
|
10
|
+
export function hubNoticeKey(advice) {
|
|
11
|
+
return `${advice.hubId}:${advice.revision}:${advice.version}`;
|
|
12
|
+
}
|
|
13
|
+
/** Whether to post now: advice newer than what runs, and either not yet told or told at least 7 days ago. */
|
|
14
|
+
export function hubNoticeDue(state, advice, current, now, newer) {
|
|
15
|
+
if (!advice || !current || !newer(advice.version, current))
|
|
16
|
+
return false;
|
|
17
|
+
if (!state || state.key !== hubNoticeKey(advice))
|
|
18
|
+
return true;
|
|
19
|
+
return now - state.at >= HUB_UPDATE_REMIND_MS;
|
|
20
|
+
}
|
|
21
|
+
export function readHubNoticeState(path) {
|
|
22
|
+
try {
|
|
23
|
+
const v = JSON.parse(readFileSync(path, "utf8"));
|
|
24
|
+
return typeof v.key === "string" && typeof v.at === "number" && Number.isFinite(v.at) ? { key: v.key, at: v.at } : null;
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export function writeHubNoticeState(path, state) {
|
|
31
|
+
const tmp = `${path}.${process.pid}.tmp`;
|
|
32
|
+
writeFileSync(tmp, JSON.stringify(state), { mode: 0o600 });
|
|
33
|
+
renameSync(tmp, path);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=hub-update-notice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hub-update-notice.js","sourceRoot":"","sources":["../src/hub-update-notice.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGlE,MAAM,CAAC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAC/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAI5D,MAAM,UAAU,YAAY,CAAC,MAAoE;IAC/F,OAAO,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;AAChE,CAAC;AAED,6GAA6G;AAC7G,MAAM,UAAU,YAAY,CAAC,KAA4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|
|
2
|
+
import { APP_MESSAGE_RULE } from "./app-message-origin.js";
|
|
2
3
|
import { escapeInboundBody, escapeInboundField, humanReceiptMarker } from "./inbound-presentation.js";
|
|
3
4
|
import { t } from "./locale.js";
|
|
4
5
|
import { renderCrossInstanceHandoffMetadata } from "./cross-instance-envelope.js";
|
|
@@ -222,6 +223,13 @@ export function steerInboundEnvelope(inbound) {
|
|
|
222
223
|
export const BTW_INBOUND_PREFIX = "[BTW — side question from the user. Answer it separately without changing or interrupting the CURRENT work.]\n";
|
|
223
224
|
/** One formatter for human wire bytes and their immutable evidence snapshot. */
|
|
224
225
|
export function formatHumanInboundMessage(content, meta, mode, presentation = {}) {
|
|
226
|
+
// Receiptless app traffic gets a self-contained compact origin even on an older daemon conversation. Never
|
|
227
|
+
// accept human/peer authority markers, a claimed caller name, or a web-verified suffix from this origin.
|
|
228
|
+
if (meta.source === "app")
|
|
229
|
+
return "[user:Local app@app#local-connector]\n[App origin: " + APP_MESSAGE_RULE + "]\n"
|
|
230
|
+
+ escapeInboundBody(content) + renderCrossInstanceHandoffMetadata({ message_id: meta.message_id ?? "" }, "")
|
|
231
|
+
+ (mode === "cli" ? '\n(Answer with agend-agent reply "…"; terminal text does not reach them.)'
|
|
232
|
+
: "\n(Answer with the reply tool; terminal text does not reach them.)");
|
|
225
233
|
const compact = presentation.dialect !== "legacy";
|
|
226
234
|
const safe = compact || presentation.escape === true;
|
|
227
235
|
// #1920: a guest's web message says so — recognition only (authority none). #1939 S3: "(verified)" when its receipt
|