@songsid/agend 2.4.0-beta.1 → 2.4.0-beta.11
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/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 +55 -14
- 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-precaution.d.ts +7 -0
- package/dist/backend/codex-precaution.js +102 -0
- package/dist/backend/codex-precaution.js.map +1 -0
- package/dist/backend/codex.d.ts +7 -4
- package/dist/backend/codex.js +44 -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 +22 -7
- 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 +11 -1
- 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 +16 -15
- 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 +399 -33
- 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 +13 -1
- package/dist/event-log.js +41 -1
- package/dist/event-log.js.map +1 -1
- package/dist/fleet-manager.d.ts +239 -7
- package/dist/fleet-manager.js +1387 -103
- 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 +11 -1
- 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 +302 -29
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +127 -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/agent-catalog-model.d.ts +276 -0
- package/dist/hub/agent-catalog-model.js +49 -0
- package/dist/hub/agent-catalog-model.js.map +1 -0
- package/dist/hub/agent-catalog.d.ts +137 -0
- package/dist/hub/agent-catalog.js +118 -0
- package/dist/hub/agent-catalog.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/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 +11 -6
- package/dist/hub/catalog.js +38 -13
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +15 -0
- package/dist/hub/client.js +106 -12
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +28 -0
- package/dist/hub/compose/member.js +300 -27
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +17 -0
- package/dist/hub/compose/server.js +108 -14
- 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 +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 +4 -0
- package/dist/hub/http/compose.js +477 -40
- 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 +13 -0
- package/dist/hub/http/schema.js +30 -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/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 +28 -0
- package/dist/hub/member/agent-catalog.js +80 -0
- package/dist/hub/member/agent-catalog.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 +9 -3
- package/dist/hub/member/exposure-api.js +16 -9
- 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 +68 -5
- package/dist/hub/member/room-ask.js +273 -25
- 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 +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/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 +37 -0
- package/dist/hub/member/sharing.js +181 -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/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 +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 +1 -1
- package/dist/hub/policy.js +2 -0
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +927 -1
- package/dist/hub/protocol.js +106 -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 +45 -10
- package/dist/hub/rooms/agents.js +289 -31
- 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 +10 -2
- package/dist/hub/rooms/direct-view.js +4 -4
- 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 +195 -4
- package/dist/hub/rooms/service.js +812 -28
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +30 -3
- package/dist/hub/rooms.d.ts +13 -2
- package/dist/hub/rooms.js +97 -22
- 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 +115 -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/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 +171 -0
- package/dist/hub/sharing-requests.js +311 -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 +163 -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-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-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 +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 +195 -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/login-flows.js +1 -1
- package/dist/login-flows.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/needs-you.js +1 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +2 -2
- 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 +155 -5
- 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/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.js +1 -1
- 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/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 +16 -0
- package/dist/settings-api.js +294 -86
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +3 -0
- package/dist/settings-baseline.js +2 -2
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +33 -5
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.d.ts +3 -0
- package/dist/settings-effect.js +29 -3
- 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-card.js +8 -4
- 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-pack.d.ts +1 -0
- package/dist/ui/fleet-office-pack.js +6 -2
- package/dist/ui/fleet-office-play.js +84 -0
- package/dist/ui/fleet-office-skin.js +1 -1
- package/dist/ui/fleet-office-store.js +37 -2
- package/dist/ui/fleet-office-zones.js +55 -10
- package/dist/ui/fleet-office.js +281 -32
- 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-agent-intro.js +26 -0
- 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 +9 -2
- package/dist/ui/hub-client.js +87 -5
- 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 +26 -46
- package/dist/ui/hub-group-policy.js +26 -13
- package/dist/ui/hub-group-strings.js +26 -17
- 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 +18 -0
- package/dist/ui/hub-my-agents.js +141 -0
- package/dist/ui/hub-owner-strings.js +7 -7
- package/dist/ui/hub-personal-agent-strings.js +246 -0
- package/dist/ui/hub-personal-agent.js +118 -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 +45 -13
- package/dist/ui/hub-room-favorites.js +63 -5
- package/dist/ui/hub-room-list.js +5 -3
- package/dist/ui/hub-room-members-strings.js +2 -2
- package/dist/ui/hub-room-members.js +9 -5
- package/dist/ui/hub-room-new.js +1 -1
- 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 -3
- package/dist/ui/hub-room-thread.js +269 -42
- package/dist/ui/hub-room-unread.js +2 -1
- package/dist/ui/hub-strings.js +13 -5
- 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 +56 -28
- 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-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/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 +303 -103
- package/dist/ui/panel-log.js +4 -4
- package/dist/ui/panel-notices.js +4 -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 +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 +34 -6
- package/dist/ui/settings-layout.js +10 -12
- package/dist/ui/settings-registry.js +19 -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 +184 -23
- package/dist/ui/shared/app-store.js +7 -3
- 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 +469 -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 +120 -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 +61 -4
- package/dist/ui/shared/hub-groups.css +19 -15
- package/dist/ui/shared/hub-my-agents.css +35 -0
- 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.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/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 -17
- package/dist/ui/shared/view-strings.js +26 -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/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +1 -1
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/profile-timeline.d.ts +2 -0
- package/dist/usage/profile-timeline.js +4 -0
- package/dist/usage/profile-timeline.js.map +1 -1
- package/dist/usage/providers.js +6 -6
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-history.d.ts +1 -1
- package/dist/view-api.js +1 -1
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +13 -1
- package/dist/web-api.js +489 -189
- 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 +20 -0
- package/dist/web-notices.js +64 -8
- 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
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { HUB_MEMBER_SHARING_MIGRATION, HubMemberSharingJournal } from "../member/sharing-journal.js";
|
|
2
|
+
import { HubMemberSharing } from "../member/sharing.js";
|
|
3
|
+
import { HubMemberSharingLink } from "../member/sharing-link.js";
|
|
4
|
+
import { sharingNotice } from "../member/sharing-result.js";
|
|
5
|
+
import { HubMemberAgentCatalog, memberAgentCatalog, hubPageSharingEnabled } from "../member/agent-catalog.js";
|
|
6
|
+
import { HubRoomMentionFeedback, HUB_ROOM_MENTION_FEEDBACK_MIGRATION, verifyRoomMentionFeedback } from "../member/room-mention-feedback.js";
|
|
7
|
+
import { HUB_ROOM_MENTION_FEEDBACK_CAPABILITY } from "../room-mention-feedback-model.js";
|
|
1
8
|
/**
|
|
2
9
|
* S5b member factory (S-51 PR 2b; docs/design/hub-composition.md §5 "Member"). Called by S1's HubMount for an enabled
|
|
3
10
|
* hub_member, and only for a current, non-disconnected binding (S3c's pairing state). Builds, in order:
|
|
@@ -27,10 +34,17 @@ import { HubFileVersionFloor } from "../version-floor.js";
|
|
|
27
34
|
import { EMPTY_VIEW_SOURCE } from "./views.js";
|
|
28
35
|
import { HUB_REPRESENTATIVE_MIGRATION, HubRepresentativeExecution } from "../representative.js";
|
|
29
36
|
import { HUB_PROVIDER_SETUP_REASONS, hubProviderSetupReason } from "../execution/provider-setup.js";
|
|
37
|
+
import { HubMemberUpdates, HUB_MEMBER_UPDATES_MIGRATION } from "../member/updates.js";
|
|
38
|
+
import { IDLE_UPDATE_MIGRATION } from "../../update-idle.js";
|
|
39
|
+
import { createPublishedVersionLookup } from "../published-version.js";
|
|
40
|
+
import { HubMemberRecommendations, HUB_MEMBER_RECOMMENDATION_MIGRATION } from "../member/recommendations.js";
|
|
41
|
+
import { readHubDisplayName } from "../display-name.js";
|
|
42
|
+
import { refreshHubDisplayName } from "../member/display-name.js";
|
|
30
43
|
import { HubMemberFiles } from "../member/attachments.js";
|
|
31
44
|
import { createHubPairingNoticeInbox, HUB_PAIRING_INBOX_MIGRATION } from "../member/pairing-notices.js";
|
|
32
|
-
import { HUB_OPTIONAL_CAPABILITIES, HUB_ROOM_ASK_CAPABILITY } from "../protocol.js";
|
|
33
|
-
import { createRoomStatePublisher, HubRoomAskAdapter, HUB_ROOM_ASK_MIGRATION, verifyRoomAskJournal } from "../member/room-ask.js";
|
|
45
|
+
import { HUB_OPTIONAL_CAPABILITIES, HUB_ROOM_ASK_CAPABILITY, HUB_ROOM_POST_CAPABILITY, HUB_FLEET_UPDATE_CAPABILITY } from "../protocol.js";
|
|
46
|
+
import { createRoomStatePublisher, HubRoomAskAdapter, HUB_ROOM_ASK_MIGRATION, HUB_ROOM_CONTEXT_RECEIPTS_MIGRATION, verifyRoomAskJournal } from "../member/room-ask.js";
|
|
47
|
+
import { HubRoomPostAdapter, verifyRoomPostJournal } from "../member/room-post.js";
|
|
34
48
|
import { HubProtocolError } from "../validation.js";
|
|
35
49
|
/** The legacy location remains assigned to its first proven binding; later pairings get separate complete sets. */
|
|
36
50
|
export function memberSet(hubId, profile) {
|
|
@@ -219,7 +233,7 @@ function openMemberState(options) {
|
|
|
219
233
|
}
|
|
220
234
|
applyHubMigrations(db, [HUB_INSTANCE_MIGRATION, HUB_AUDIT_MIGRATION, HUB_MEMBER_JOURNAL_MIGRATION,
|
|
221
235
|
{ component: "s4-execution", version: 1, up: execution.migrateHubExecution }, exposureStore.HUB_EXPOSURE_MIGRATION,
|
|
222
|
-
HUB_REPRESENTATIVE_MIGRATION, HUB_PAIRING_INBOX_MIGRATION, HUB_ROOM_ASK_MIGRATION]);
|
|
236
|
+
HUB_REPRESENTATIVE_MIGRATION, HUB_PAIRING_INBOX_MIGRATION, HUB_ROOM_ASK_MIGRATION, HUB_ROOM_CONTEXT_RECEIPTS_MIGRATION, HUB_MEMBER_RECOMMENDATION_MIGRATION, IDLE_UPDATE_MIGRATION, HUB_MEMBER_UPDATES_MIGRATION, HUB_ROOM_MENTION_FEEDBACK_MIGRATION, HUB_MEMBER_SHARING_MIGRATION]);
|
|
223
237
|
bindHubInstance(db, hubId, state, now());
|
|
224
238
|
// P1 never initialized S4, so its absent meta row is valid only with the untouched zero floor.
|
|
225
239
|
const executionMeta = db.prepare("SELECT revision FROM hub_execution_meta WHERE singleton=1").get();
|
|
@@ -235,14 +249,21 @@ function openMemberState(options) {
|
|
|
235
249
|
}
|
|
236
250
|
const roomBinding = memberSet(hubId, profile).database;
|
|
237
251
|
const roomKey = Buffer.from(hkdfSync("sha256", readKey(home, set.keys[1]), Buffer.alloc(0), Buffer.from(JSON.stringify(["agend-hub-room-journal-key-v1", roomBinding])), 32));
|
|
252
|
+
const postKey = Buffer.from(hkdfSync("sha256", readKey(home, set.keys[1]), Buffer.alloc(0), Buffer.from(JSON.stringify(["agend-hub-room-post-key-v1", roomBinding])), 32));
|
|
253
|
+
const feedbackKey = Buffer.from(hkdfSync("sha256", readKey(home, set.keys[1]), Buffer.alloc(0), Buffer.from(JSON.stringify(["agend-hub-room-feedback-key-v1", roomBinding])), 32));
|
|
238
254
|
if (!db.transaction(() => {
|
|
239
255
|
// An unbound legacy set must authenticate room history before bindPairing can advance its durable floor.
|
|
240
256
|
const meta = db.prepare("SELECT binding FROM hub_member_meta WHERE singleton=1").get();
|
|
241
|
-
if (meta.binding === null)
|
|
257
|
+
if (meta.binding === null) {
|
|
258
|
+
verifyRoomPostJournal({ db, binding: roomBinding, encryptionKey: postKey });
|
|
242
259
|
verifyRoomAskJournal(db, { bindingKey: roomBinding, encryptionKey: roomKey });
|
|
260
|
+
verifyRoomMentionFeedback({ db, binding: roomBinding, encryptionKey: feedbackKey });
|
|
261
|
+
}
|
|
243
262
|
if (!journal.bindPairing(profile, exposures.list()))
|
|
244
263
|
return false;
|
|
264
|
+
verifyRoomPostJournal({ db, binding: roomBinding, encryptionKey: postKey });
|
|
245
265
|
verifyRoomAskJournal(db, { bindingKey: roomBinding, encryptionKey: roomKey });
|
|
266
|
+
verifyRoomMentionFeedback({ db, binding: roomBinding, encryptionKey: feedbackKey });
|
|
246
267
|
return true;
|
|
247
268
|
}).immediate()) {
|
|
248
269
|
if (set.database === scoped.database)
|
|
@@ -252,7 +273,7 @@ function openMemberState(options) {
|
|
|
252
273
|
if (!options.current())
|
|
253
274
|
throw new HubStateError("hub-member-pairing", "the pairing changed while opening its state");
|
|
254
275
|
selected = true;
|
|
255
|
-
return { db, journal, exposures, audit, roomKey, roomBinding };
|
|
276
|
+
return { db, journal, exposures, audit, roomKey, postKey, feedbackKey, roomBinding };
|
|
256
277
|
}
|
|
257
278
|
finally {
|
|
258
279
|
if (!selected)
|
|
@@ -325,6 +346,7 @@ export function createHubMemberFactory(options) {
|
|
|
325
346
|
throw err;
|
|
326
347
|
};
|
|
327
348
|
try {
|
|
349
|
+
const catalogEnabled = hubPageSharingEnabled(cfg);
|
|
328
350
|
// 0. Every slice present and a current binding, before any I/O.
|
|
329
351
|
if (!options.components.execution || !options.components.exposures) {
|
|
330
352
|
throw new HubStateError("hub-incomplete", "the Hub member side (S4 / S3c) is not in this build");
|
|
@@ -359,7 +381,7 @@ export function createHubMemberFactory(options) {
|
|
|
359
381
|
};
|
|
360
382
|
const profileCurrent = () => current() && options.boundHub() === hubId
|
|
361
383
|
&& new HubMemberProfileStore(options.home, hubId).profileDigest() === profileDigest;
|
|
362
|
-
const { db, journal, exposures, audit, roomKey, roomBinding } = openMemberState({ home: options.home, hubId, profile, execution,
|
|
384
|
+
const { db, journal, exposures, audit, roomKey, postKey, feedbackKey, roomBinding } = openMemberState({ home: options.home, hubId, profile, execution,
|
|
363
385
|
exposureStore: exposureMods.store, views, outbox: forwarding, now, current: profileCurrent });
|
|
364
386
|
teardown.add("the member database", () => db.close());
|
|
365
387
|
if (cfg.execution?.provider !== undefined) {
|
|
@@ -376,6 +398,30 @@ export function createHubMemberFactory(options) {
|
|
|
376
398
|
const binding = links.binding;
|
|
377
399
|
let client = null;
|
|
378
400
|
let online = null;
|
|
401
|
+
const hubName = () => readHubDisplayName(options.home, profile) || new URL(profile.hub.webOrigin).hostname;
|
|
402
|
+
let displayRequest = null, displayKick = null;
|
|
403
|
+
const stopDisplay = () => { if (displayKick)
|
|
404
|
+
clearImmediate(displayKick); displayKick = null; displayRequest?.abort(); displayRequest = null; };
|
|
405
|
+
const learnDisplay = (l) => {
|
|
406
|
+
stopDisplay();
|
|
407
|
+
const controller = displayRequest = new AbortController();
|
|
408
|
+
// The client completes ready in its microtask queue first. Optional metadata never delays startup/reconciliation.
|
|
409
|
+
displayKick = setImmediate(() => {
|
|
410
|
+
displayKick = null;
|
|
411
|
+
void refreshHubDisplayName({ home: options.home, profile, endpoint: l.endpoint,
|
|
412
|
+
current: () => live() && l.current() && profileCurrent(), signal: controller.signal }).then(changed => {
|
|
413
|
+
if (changed && live() && l.current() && profileCurrent()) {
|
|
414
|
+
options.recommendationChanged?.();
|
|
415
|
+
options.pokeAttention();
|
|
416
|
+
}
|
|
417
|
+
}).catch(() => { }).finally(() => { if (displayRequest === controller)
|
|
418
|
+
displayRequest = null; });
|
|
419
|
+
});
|
|
420
|
+
displayKick.unref();
|
|
421
|
+
};
|
|
422
|
+
teardown.add("Hub display metadata", stopDisplay);
|
|
423
|
+
// M-3125: one file handler for the 1:1 representative and the room asks (the inbox and the reply rule are the same).
|
|
424
|
+
const memberFiles = options.representative.files ? new HubMemberFiles(options.representative.files) : undefined;
|
|
379
425
|
const service = new HubRepresentativeExecution({
|
|
380
426
|
db,
|
|
381
427
|
journal,
|
|
@@ -385,7 +431,7 @@ export function createHubMemberFactory(options) {
|
|
|
385
431
|
authorize: (request) => (client ? client.authorize(request) : Promise.reject(new HubStateError("service-unavailable", "not connected"))),
|
|
386
432
|
link: () => (online && online.current() && links.link() === online ? online : null),
|
|
387
433
|
deliver: (input) => options.representative.deliver(input),
|
|
388
|
-
...(
|
|
434
|
+
...(memberFiles ? { files: memberFiles } : {}),
|
|
389
435
|
audit: (event, database) => audit.appendInTransaction({
|
|
390
436
|
id: randomBytes(16).toString("hex"),
|
|
391
437
|
sequence: 0,
|
|
@@ -407,8 +453,18 @@ export function createHubMemberFactory(options) {
|
|
|
407
453
|
service.recover();
|
|
408
454
|
outbox = service.restrictedOutbox();
|
|
409
455
|
const roomCurrent = () => live() && profileCurrent() && !terminalHold;
|
|
456
|
+
const feedback = new HubRoomMentionFeedback({ db, binding: roomBinding, encryptionKey: feedbackKey, locale: options.representative.locale,
|
|
457
|
+
current: source => {
|
|
458
|
+
if (!roomCurrent() || !online?.current() || !online.features.has(HUB_ROOM_MENTION_FEEDBACK_CAPABILITY))
|
|
459
|
+
return false;
|
|
460
|
+
const local = exposures.localExposure(source.exposureId);
|
|
461
|
+
return !!local && local.agent === source.agent && local.exposure.state === "published" && local.exposure.revision === source.revision && local.consentId === source.consentId
|
|
462
|
+
&& options.representative.agentToken(source.agent) === source.token && service.readiness(source.exposureId, source.revision).ok;
|
|
463
|
+
}, deliver: input => options.roomNotify?.(input) ?? Promise.resolve(false), held: id => options.log("warn", "Hub mention feedback delivery held", { notificationId: id }) });
|
|
464
|
+
const receiveFeedback = feedback.receive.bind(feedback);
|
|
410
465
|
const room = new HubRoomAskAdapter({ db, bindingKey: roomBinding, encryptionKey: roomKey, current: roomCurrent,
|
|
411
|
-
locale: options.representative.locale,
|
|
466
|
+
locale: options.representative.locale, generation: options.roomConversationGeneration, feedback: receiveFeedback,
|
|
467
|
+
maxCrossInstanceMessageBytes: options.maxCrossInstanceMessageBytes,
|
|
412
468
|
localExposure: id => {
|
|
413
469
|
if (!roomCurrent())
|
|
414
470
|
return null;
|
|
@@ -418,12 +474,29 @@ export function createHubMemberFactory(options) {
|
|
|
418
474
|
const consent = db.prepare("SELECT agent,token FROM hub_representative_consents WHERE consent_id=?").get(local.consentId);
|
|
419
475
|
if (!consent || consent.agent !== local.agent || options.representative.agentToken(local.agent) !== consent.token)
|
|
420
476
|
return null;
|
|
421
|
-
return { agent: local.agent, consentId: local.consentId, revision: local.exposure.revision, token: consent.token };
|
|
477
|
+
return { agent: local.agent, consentId: local.consentId, revision: local.exposure.revision, token: consent.token, contactLimit: local.contactLimit !== false };
|
|
422
478
|
},
|
|
423
|
-
deliver: input => options.representative.deliver(input) });
|
|
479
|
+
deliver: input => options.representative.deliver(input), ...(memberFiles ? { files: memberFiles } : {}) });
|
|
480
|
+
const posts = new HubRoomPostAdapter({ db, binding: roomBinding, encryptionKey: postKey, current: roomCurrent,
|
|
481
|
+
receipt: options.roomReceipt, feedback: receiveFeedback,
|
|
482
|
+
notify: options.roomNotify,
|
|
483
|
+
held: id => options.log("warn", "Hub room reply delivery held", { notificationId: id }),
|
|
484
|
+
changed: () => options.roomToolsChanged?.(),
|
|
485
|
+
local: agent => {
|
|
486
|
+
if (!roomCurrent())
|
|
487
|
+
return null;
|
|
488
|
+
const row = exposures.list().find(row => row.agent === agent), local = row?.committed;
|
|
489
|
+
if (!local || local.exposure.state !== "published")
|
|
490
|
+
return null;
|
|
491
|
+
const consent = db.prepare("SELECT agent,token FROM hub_representative_consents WHERE consent_id=?").get(local.consentId);
|
|
492
|
+
if (!consent || consent.agent !== agent || options.representative.agentToken(agent) !== consent.token)
|
|
493
|
+
return null;
|
|
494
|
+
return { exposureId: local.exposure.id, revision: local.exposure.revision, consentId: local.consentId, token: consent.token };
|
|
495
|
+
} });
|
|
496
|
+
const roomExposures = () => exposures.list().flatMap(row => row.committed?.exposure.state === "published"
|
|
497
|
+
? [{ exposureId: row.committed.exposure.id, agent: row.agent }] : []);
|
|
424
498
|
const roomState = createRoomStatePublisher({
|
|
425
|
-
exposures:
|
|
426
|
-
? [{ exposureId: row.committed.exposure.id, agent: row.agent }] : []),
|
|
499
|
+
exposures: roomExposures,
|
|
427
500
|
read: agent => options.representative.readState(agent),
|
|
428
501
|
});
|
|
429
502
|
const roomLinks = new WeakMap();
|
|
@@ -433,16 +506,42 @@ export function createHubMemberFactory(options) {
|
|
|
433
506
|
const version = l.revocationVersion;
|
|
434
507
|
view = { features: l.features,
|
|
435
508
|
current: () => roomCurrent() && online === l && links.link() === l && l.current() && l.revocationVersion === version,
|
|
436
|
-
|
|
437
|
-
|
|
509
|
+
contextState: async (payload) => {
|
|
510
|
+
const result = await l.exchange({ v: 1, type: "room.context-state", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload }, "room.context-state-result");
|
|
511
|
+
if (result.type !== "room.context-state-result")
|
|
512
|
+
throw new HubProtocolError("invalid");
|
|
513
|
+
return result.payload;
|
|
514
|
+
},
|
|
515
|
+
contextInput: async (payload) => {
|
|
516
|
+
const result = await l.exchange({ v: 1, type: "room.context-input", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload }, "room.context-input-result");
|
|
517
|
+
if (result.type !== "room.context-input-result")
|
|
518
|
+
throw new HubProtocolError("invalid");
|
|
519
|
+
return result.payload;
|
|
520
|
+
},
|
|
521
|
+
sendAnswer: payload => l.send({ v: 1, type: "room.answer", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload: { ...payload, ...(options.roomNotify && l.features.has(HUB_ROOM_MENTION_FEEDBACK_CAPABILITY) ? { mentionFeedback: true } : {}) } }),
|
|
522
|
+
// M-3125 (room files, roomFilesNegotiated): the 1:1 chat's own file frames, on this link.
|
|
523
|
+
fetchFile: async (id, offset) => {
|
|
524
|
+
const reply = await l.exchange({ v: 1, type: "attachment.get", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload: { id, offset } }, "attachment.chunk");
|
|
525
|
+
if (reply.type !== "attachment.chunk")
|
|
526
|
+
throw new HubProtocolError("invalid");
|
|
527
|
+
return reply.payload;
|
|
528
|
+
},
|
|
529
|
+
putFile: async (chunk) => {
|
|
530
|
+
const ack = await l.exchange({ v: 1, type: "attachment.put", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload: chunk }, "attachment.ack");
|
|
531
|
+
if (ack.type !== "attachment.ack" || ack.payload.id !== chunk.id || ack.payload.offset !== chunk.offset)
|
|
532
|
+
throw new HubProtocolError("uncertain");
|
|
533
|
+
},
|
|
534
|
+
sendState: payload => l.send({ v: 1, type: "agent.state", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload }),
|
|
535
|
+
sendReact: payload => l.send({ v: 1, type: "room.react", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload }) };
|
|
438
536
|
roomLinks.set(l, view);
|
|
439
537
|
}
|
|
440
538
|
return view;
|
|
441
539
|
};
|
|
442
540
|
let roomTimer = null;
|
|
443
541
|
const stopRooms = () => { if (roomTimer)
|
|
444
|
-
clearInterval(roomTimer); roomTimer = null; room.connected(null); roomState.connected(null); };
|
|
445
|
-
const refreshRooms = () => Promise.all([room.flush(), roomState.refresh()]).then(() => undefined);
|
|
542
|
+
clearInterval(roomTimer); roomTimer = null; room.connected(null); roomState.connected(null); posts.connected(null); };
|
|
543
|
+
const refreshRooms = () => { feedback.flush(); return Promise.all([room.flush(), roomState.refresh(), posts.flushAnswers(), room.refreshContexts(roomExposures())]).then(() => undefined); };
|
|
544
|
+
let postLink = null;
|
|
446
545
|
const startRooms = (l) => {
|
|
447
546
|
stopRooms();
|
|
448
547
|
if (!options.representative.readState || !l.features.has(HUB_ROOM_ASK_CAPABILITY) || !l.features.has("welcome-caps-v1"))
|
|
@@ -450,11 +549,38 @@ export function createHubMemberFactory(options) {
|
|
|
450
549
|
const view = roomLink(l);
|
|
451
550
|
room.connected(view);
|
|
452
551
|
roomState.connected(view);
|
|
552
|
+
if (options.attachAgentRooms && options.roomNotify)
|
|
553
|
+
posts.connected(postLink = { features: l.features, current: view.current,
|
|
554
|
+
list: async (exposureId) => {
|
|
555
|
+
const result = await l.exchange({ v: 1, type: "room.list", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload: { exposureId } }, "room.list-result");
|
|
556
|
+
if (result.type !== "room.list-result")
|
|
557
|
+
throw new HubProtocolError("invalid");
|
|
558
|
+
return result.payload;
|
|
559
|
+
},
|
|
560
|
+
post: async (payload) => {
|
|
561
|
+
const result = await l.exchange({ v: 1, type: "room.post", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload: { ...payload, ...(options.roomNotify && l.features.has(HUB_ROOM_MENTION_FEEDBACK_CAPABILITY) ? { mentionFeedback: true } : {}) } }, "room.post-result");
|
|
562
|
+
if (result.type !== "room.post-result")
|
|
563
|
+
throw new HubProtocolError("invalid");
|
|
564
|
+
return result.payload;
|
|
565
|
+
},
|
|
566
|
+
members: async (exposureId, room) => {
|
|
567
|
+
const result = await l.exchange({ v: 1, type: "room.members", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload: { exposureId, room } }, "room.members-result");
|
|
568
|
+
if (result.type !== "room.members-result")
|
|
569
|
+
throw new HubProtocolError("invalid");
|
|
570
|
+
return result.payload;
|
|
571
|
+
},
|
|
572
|
+
people: async (exposureId, q) => {
|
|
573
|
+
const result = await l.exchange({ v: 1, type: "people.search", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload: { exposureId, q } }, "people.search-result");
|
|
574
|
+
if (result.type !== "people.search-result")
|
|
575
|
+
throw new HubProtocolError("invalid");
|
|
576
|
+
return result.payload;
|
|
577
|
+
},
|
|
578
|
+
ack: id => l.send({ v: 1, type: "room.post-answer-ack", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload: { id } }), });
|
|
453
579
|
roomTimer = setInterval(() => { void refreshRooms().catch(() => { }); }, 5_000);
|
|
454
580
|
roomTimer.unref();
|
|
455
581
|
void refreshRooms().catch(() => { });
|
|
456
582
|
};
|
|
457
|
-
teardown.add("room asks and presence", () => { stopRooms(); roomState.close(); room.close(); });
|
|
583
|
+
teardown.add("room asks and presence", () => { stopRooms(); feedback.close(); posts.close(); roomState.close(); room.close(); });
|
|
458
584
|
// 6. S1 admission + client: #3116's handshake on (re)connect, S5's receive routing.
|
|
459
585
|
const sender = exposureMods.store.exposureSnapshotSender(exposures);
|
|
460
586
|
const quota = createQuotaPublisher({
|
|
@@ -477,6 +603,32 @@ export function createHubMemberFactory(options) {
|
|
|
477
603
|
hold: (messageId, reason) => options.log("warn", "Hub question held", { messageId, reason }),
|
|
478
604
|
now,
|
|
479
605
|
});
|
|
606
|
+
const reportedInfo = options.fleetInfo ? { ...options.fleetInfo } : undefined;
|
|
607
|
+
const reportUpdateConsent = () => {
|
|
608
|
+
if (!updates || !reportedInfo)
|
|
609
|
+
return;
|
|
610
|
+
reportedInfo.updatesAllowed = updates.consent().on;
|
|
611
|
+
const l = online;
|
|
612
|
+
// fleet-info-v1 is a Hub-only offer, absent from the member's intersection. send() checks its welcome proof.
|
|
613
|
+
if (l?.current() && l.features.has(HUB_FLEET_UPDATE_CAPABILITY))
|
|
614
|
+
void l.send({ v: 1, type: "fleet.info", requestId: randomUUID(), linkEpoch: l.linkEpoch, payload: { ...reportedInfo,
|
|
615
|
+
...(l.features.has("fleet-recommend-v1") ? { recommendations: true } : {}) } }).catch(() => { });
|
|
616
|
+
};
|
|
617
|
+
const updates = options.updates && reportedInfo ? new HubMemberUpdates({ ...options.updates, db, binding: profileDigest ?? roomBinding,
|
|
618
|
+
get hubName() { return hubName(); }, version: reportedInfo.version, current: () => live() && !terminalHold && profileCurrent(),
|
|
619
|
+
service: () => reportedInfo.runsAsService, now, lookup: options.versionRegistry ?? createPublishedVersionLookup(), changed: reportUpdateConsent }) : null;
|
|
620
|
+
if (updates && reportedInfo)
|
|
621
|
+
reportedInfo.updatesAllowed = updates.consent().on;
|
|
622
|
+
let updateTimer = null;
|
|
623
|
+
teardown.add("Fleet updates", () => { if (updateTimer)
|
|
624
|
+
clearInterval(updateTimer); updates?.close(); options.attachUpdates?.(null); });
|
|
625
|
+
const recommendations = options.fleetInfo ? new HubMemberRecommendations({ db, hubId,
|
|
626
|
+
get hubName() { return hubName(); }, version: options.fleetInfo.version, current: live, now,
|
|
627
|
+
lookup: options.versionRegistry, changed: options.recommendationChanged, log: options.log }) : null;
|
|
628
|
+
options.attachRecommendations?.(recommendations ? () => recommendations.view() : null);
|
|
629
|
+
if (recommendations?.view())
|
|
630
|
+
options.recommendationChanged?.();
|
|
631
|
+
teardown.add("version advice", () => { recommendations?.close(); options.attachRecommendations?.(null); options.recommendationChanged?.(); });
|
|
480
632
|
const notices = createHubPairingNoticeInbox({ db, audit, current: live, now,
|
|
481
633
|
changed: () => options.pokeAttention() });
|
|
482
634
|
options.attachPairingNotices?.(() => notices.list());
|
|
@@ -513,11 +665,62 @@ export function createHubMemberFactory(options) {
|
|
|
513
665
|
if ("ack" in out && l.current())
|
|
514
666
|
await l.send({ v: 1, type: "relocate.ack", requestId, linkEpoch: l.linkEpoch, payload: out.ack });
|
|
515
667
|
} });
|
|
668
|
+
const api = exposureMods.api.createHubMemberExposureApi({
|
|
669
|
+
store: exposures,
|
|
670
|
+
// P1 representative agent (docs/design/hub-representative-agent.md): the owner shares a configured agent.
|
|
671
|
+
agents: options.agents,
|
|
672
|
+
afterCommit: async () => { const result = await sender.afterCommit(); void refreshRooms().catch(() => { }); return result; },
|
|
673
|
+
refused: () => sender.isRefused(),
|
|
674
|
+
// S5's readiness: the agent's lifecycle token, recorded against the consent inside S3c's atomic publish.
|
|
675
|
+
readinessCandidate: (candidate) => service.readinessCandidate(candidate),
|
|
676
|
+
});
|
|
677
|
+
const catalogAgents = () => (options.catalogAgents?.() ?? []).map(agent => {
|
|
678
|
+
const exposure = exposures.list().find(row => row.agent === agent.instance)?.committed?.exposure;
|
|
679
|
+
return { ...agent, exposure: exposure ? { id: exposure.id, revision: exposure.revision, state: exposure.state } : null };
|
|
680
|
+
});
|
|
681
|
+
const sharingLive = () => live() && profileCurrent();
|
|
682
|
+
const sharingJournal = new HubMemberSharingJournal({ db, binding: roomBinding, owner: profile.owner, fleetId: profile.fleetId,
|
|
683
|
+
agentToken: options.representative.agentToken, current: sharingLive, now });
|
|
684
|
+
const sharing = options.catalogAgents && options.sharingNotice && options.attachSharing ? new HubMemberSharing({
|
|
685
|
+
journal: sharingJournal, store: exposures, api, current: sharingLive, now, enabled: () => catalogEnabled,
|
|
686
|
+
agents: catalogAgents, catalog: () => memberAgentCatalog(catalogEnabled, catalogEnabled ? catalogAgents() : [], true),
|
|
687
|
+
notice: record => options.sharingNotice(sharingNotice(record, hubName())),
|
|
688
|
+
snapshot: () => sender.afterCommit(),
|
|
689
|
+
}) : null;
|
|
690
|
+
const sharingLink = sharing ? new HubMemberSharingLink({ sharing, journal: sharingJournal, current: sharingLive,
|
|
691
|
+
failed: () => options.log("warn", "Hub sharing is not confirmed yet") }) : null;
|
|
692
|
+
const sharingController = sharing ? {
|
|
693
|
+
view: key => {
|
|
694
|
+
if (!sharingLive())
|
|
695
|
+
return null;
|
|
696
|
+
const record = sharingJournal.byNotice(key);
|
|
697
|
+
return record && record.noticeAt !== null ? sharingNotice(record, hubName()) : null;
|
|
698
|
+
},
|
|
699
|
+
undo: async (key, actor, authorized) => {
|
|
700
|
+
const record = await sharing.undo(key, actor, authorized);
|
|
701
|
+
void sharingLink?.flush();
|
|
702
|
+
return sharingNotice(record, hubName());
|
|
703
|
+
},
|
|
704
|
+
} : null;
|
|
705
|
+
teardown.add("Hub sharing requests", () => { sharingLink?.close(); options.attachSharing?.(null); });
|
|
706
|
+
const catalog = options.catalogAgents ? new HubMemberAgentCatalog({ current: live, enabled: catalogEnabled, agents: catalogAgents, requests: !!sharing,
|
|
707
|
+
failed: () => options.log("warn", "The owner agent catalog was not sent") }) : null;
|
|
708
|
+
teardown.add("owner agent catalog", () => catalog?.close());
|
|
516
709
|
client = new HubMemberClient({
|
|
710
|
+
allowOfflineStart: true,
|
|
711
|
+
log: options.log,
|
|
712
|
+
fleetInfo: reportedInfo,
|
|
713
|
+
receiveRecommendations: !!recommendations,
|
|
714
|
+
agentCatalog: !!catalog,
|
|
715
|
+
exposureRequests: !!sharing,
|
|
716
|
+
roomContext: !!options.roomConversationGeneration && !!options.attachRoomInputs,
|
|
717
|
+
roomMentionFeedback: !!options.roomNotify,
|
|
517
718
|
home: options.home,
|
|
518
719
|
hubId,
|
|
519
|
-
|
|
720
|
+
capabilities: [...HUB_OPTIONAL_CAPABILITIES, ...(updates ? [HUB_FLEET_UPDATE_CAPABILITY] : []),
|
|
721
|
+
...(options.representative.readState ? [HUB_ROOM_ASK_CAPABILITY, ...(options.attachAgentRooms && options.roomNotify ? [HUB_ROOM_POST_CAPABILITY] : [])] : [])],
|
|
520
722
|
memberOrigin: profile.hub.memberOrigin,
|
|
723
|
+
revocationFloor: () => journal.revocationVersion(),
|
|
521
724
|
// #3429 B: a pending relocation's `to` first, then the anchor; a relocation state that does not verify: none.
|
|
522
725
|
...(profileDigest ? { dial: () => relocations.dialOrder(profile, profileDigest) } : {}),
|
|
523
726
|
current: live,
|
|
@@ -541,15 +744,56 @@ export function createHubMemberFactory(options) {
|
|
|
541
744
|
}
|
|
542
745
|
if (l.current() && live()) {
|
|
543
746
|
online = l;
|
|
747
|
+
catalog?.connected(l);
|
|
748
|
+
sharingLink?.connected(l);
|
|
544
749
|
quota.start(l);
|
|
545
750
|
terminalHold = false;
|
|
546
751
|
reportLink("online");
|
|
752
|
+
updates?.connected(l);
|
|
547
753
|
startRooms(l);
|
|
548
754
|
// Questions admitted while offline (or before a restart, with no input yet) go out on this link.
|
|
549
755
|
service.pump();
|
|
756
|
+
learnDisplay(l);
|
|
550
757
|
}
|
|
551
758
|
},
|
|
552
759
|
receive: (frame, l) => {
|
|
760
|
+
if (frame.type === "exposure.request" && sharingLink) {
|
|
761
|
+
sharingLink.receive(frame.requestId, frame.payload, l);
|
|
762
|
+
return Promise.resolve();
|
|
763
|
+
}
|
|
764
|
+
if (frame.type === "agent.catalog-refresh" && catalog) {
|
|
765
|
+
if (l.current() && live())
|
|
766
|
+
return catalog.refresh(true);
|
|
767
|
+
return Promise.resolve();
|
|
768
|
+
}
|
|
769
|
+
if (updates && (frame.type === "fleet.update" || frame.type === "fleet.update-cancel" || frame.type === "fleet.update-status-ack")) {
|
|
770
|
+
try {
|
|
771
|
+
if (frame.type === "fleet.update")
|
|
772
|
+
updates.receive(frame.payload, l);
|
|
773
|
+
else if (frame.type === "fleet.update-cancel")
|
|
774
|
+
updates.cancel(frame.payload, l);
|
|
775
|
+
else
|
|
776
|
+
updates.acknowledge(frame.payload, l);
|
|
777
|
+
}
|
|
778
|
+
catch {
|
|
779
|
+
options.log("warn", "Hub update control was refused", { phase: "receive" });
|
|
780
|
+
}
|
|
781
|
+
return Promise.resolve();
|
|
782
|
+
}
|
|
783
|
+
if (frame.type === "fleet.recommendation" && recommendations) {
|
|
784
|
+
try {
|
|
785
|
+
recommendations.receive(frame.payload, l);
|
|
786
|
+
}
|
|
787
|
+
catch {
|
|
788
|
+
options.log("warn", "Hub version advice was refused", { phase: "receive" });
|
|
789
|
+
}
|
|
790
|
+
return Promise.resolve();
|
|
791
|
+
}
|
|
792
|
+
if (frame.type === "room.post-answer") {
|
|
793
|
+
if (postLink && roomLink(l).current())
|
|
794
|
+
posts.receiveAnswer(frame.payload, postLink);
|
|
795
|
+
return Promise.resolve();
|
|
796
|
+
}
|
|
553
797
|
if (frame.type === "room.ask") {
|
|
554
798
|
try {
|
|
555
799
|
room.accept(frame.payload, roomLink(l));
|
|
@@ -566,6 +810,12 @@ export function createHubMemberFactory(options) {
|
|
|
566
810
|
room.acknowledge(frame.payload, roomLink(l));
|
|
567
811
|
return Promise.resolve();
|
|
568
812
|
}
|
|
813
|
+
// M-3127: a reaction's result — a refusal is logged; nothing is retried (a gesture, not an answer).
|
|
814
|
+
if (frame.type === "room.react-result") {
|
|
815
|
+
if (!frame.payload.ok)
|
|
816
|
+
options.log("warn", "Hub room reaction not taken", { messageId: frame.payload.messageId, reason: frame.payload.code });
|
|
817
|
+
return Promise.resolve();
|
|
818
|
+
}
|
|
569
819
|
return receive(frame, l);
|
|
570
820
|
},
|
|
571
821
|
// M-2901: where the Hub's pages are now. Kept beside the pairing (never in it), only when it verifies against the
|
|
@@ -584,7 +834,11 @@ export function createHubMemberFactory(options) {
|
|
|
584
834
|
}
|
|
585
835
|
},
|
|
586
836
|
hold: (code) => {
|
|
837
|
+
catalog?.disconnected();
|
|
838
|
+
sharingLink?.disconnected();
|
|
839
|
+
stopDisplay();
|
|
587
840
|
stopRooms();
|
|
841
|
+
updates?.connected(null);
|
|
588
842
|
quota.stop();
|
|
589
843
|
const state = code === "revoked" ? "revoked" : code === "rejected" || code === "invalid" ? "rejected" : "offline";
|
|
590
844
|
terminalHold = state === "revoked" || state === "rejected";
|
|
@@ -594,15 +848,6 @@ export function createHubMemberFactory(options) {
|
|
|
594
848
|
now,
|
|
595
849
|
});
|
|
596
850
|
teardown.add("the Hub connection", () => client?.close());
|
|
597
|
-
const api = exposureMods.api.createHubMemberExposureApi({
|
|
598
|
-
store: exposures,
|
|
599
|
-
// P1 representative agent (docs/design/hub-representative-agent.md): the owner shares a configured agent.
|
|
600
|
-
agents: options.agents,
|
|
601
|
-
afterCommit: async () => { const result = await sender.afterCommit(); void refreshRooms().catch(() => { }); return result; },
|
|
602
|
-
refused: () => sender.isRefused(),
|
|
603
|
-
// S5's readiness: the agent's lifecycle token, recorded against the consent inside S3c's atomic publish.
|
|
604
|
-
readinessCandidate: (candidate) => service.readinessCandidate(candidate),
|
|
605
|
-
});
|
|
606
851
|
return {
|
|
607
852
|
async leave(expected) { return live() && await client.leave(expected); },
|
|
608
853
|
async start() {
|
|
@@ -610,25 +855,53 @@ export function createHubMemberFactory(options) {
|
|
|
610
855
|
throw new HubStateError("service-unavailable", "the Hub member was switched off while starting");
|
|
611
856
|
options.attachAttention(() => service.attentionItems());
|
|
612
857
|
options.attachExposures(api);
|
|
858
|
+
options.attachSharing?.(sharingController);
|
|
859
|
+
options.attachAgentRooms?.(posts);
|
|
613
860
|
options.representative.attachReports(input => room.report(input) ?? service.report(input), (cid, agent) => {
|
|
861
|
+
if (cid.startsWith("hub-room-post-answer-"))
|
|
862
|
+
posts.deliveryFailed(cid.slice("hub-room-post-answer-".length), agent);
|
|
863
|
+
if (cid.startsWith("hub-room-mention-feedback-"))
|
|
864
|
+
feedback.deliveryFailed(cid.slice("hub-room-mention-feedback-".length), agent);
|
|
614
865
|
room.deliveryFailed(cid, agent);
|
|
615
866
|
service.deliveryFailed(cid, agent);
|
|
616
867
|
});
|
|
868
|
+
options.representative.attachPrivateQuestions?.(agent => service.hasOpenQuestion(agent) || room.hasOpenQuestion(agent));
|
|
869
|
+
options.representative.attachReacts?.(input => room.react(input));
|
|
870
|
+
options.attachRoomInputs?.((cid, agent, generation) => room.inputHandoff(cid, agent, generation));
|
|
617
871
|
teardown.add("the fleet attachments", () => {
|
|
872
|
+
options.representative.attachReacts?.(null);
|
|
618
873
|
options.representative.attachReports(null, null);
|
|
874
|
+
options.representative.attachPrivateQuestions?.(null);
|
|
875
|
+
options.attachRoomInputs?.(null);
|
|
619
876
|
options.attachExposures(null);
|
|
877
|
+
options.attachSharing?.(null);
|
|
878
|
+
options.attachAgentRooms?.(null);
|
|
620
879
|
options.attachAttention(null);
|
|
621
880
|
});
|
|
881
|
+
options.attachUpdates?.(updates);
|
|
882
|
+
if (updates) {
|
|
883
|
+
await updates.start();
|
|
884
|
+
updateTimer = setInterval(() => { void updates.tick(); }, 5_000);
|
|
885
|
+
updateTimer.unref();
|
|
886
|
+
}
|
|
622
887
|
await client.start();
|
|
623
888
|
},
|
|
624
889
|
fence() {
|
|
625
890
|
fenced = true;
|
|
891
|
+
catalog?.close();
|
|
892
|
+
stopDisplay();
|
|
893
|
+
updates?.close();
|
|
894
|
+
options.attachUpdates?.(null);
|
|
626
895
|
stopRooms();
|
|
627
896
|
quota.stop();
|
|
628
897
|
links.fence();
|
|
629
898
|
client?.fence();
|
|
630
899
|
options.representative.attachReports(null, null);
|
|
900
|
+
options.representative.attachPrivateQuestions?.(null);
|
|
901
|
+
options.attachRoomInputs?.(null);
|
|
631
902
|
options.attachExposures(null);
|
|
903
|
+
options.attachSharing?.(null);
|
|
904
|
+
options.attachAgentRooms?.(null);
|
|
632
905
|
// Mount drains failed startup too. Keep its actionable rejection until a different pairing takes over.
|
|
633
906
|
if (!terminalHold)
|
|
634
907
|
reportLink("offline");
|