@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-reply-guard.js","sourceRoot":"","sources":["../src/turn-reply-guard.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAA4B;IACjE,IAAI,IAAI,CAAC,aAAa;QAAE,OAAO,KAAK,CAAC;IACrC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC;IACjC,IAAI,MAAM,KAAK,cAAc,IAAI,MAAM,KAAK,UAAU;QAAE,OAAO,KAAK,CAAC;IACrE,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW;QAAE,OAAO,KAAK,CAAC;IAC5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AAC,gBAAgB;YAClE,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,IAAI,MAAM,CAAC,gBAAgB;YAC5E,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,IAAI,MAAM,CAAC,gBAAgB;YACxE,YAAY,EAAE,MAAM,CAAC,cAAc,GAAG,CAAC;YACvC,UAAU,EAAE,MAAM,CAAC,cAAc;SAClC,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,UAAkB;QAC9B,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,KAAK,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,UAAU;eACxF,IAAI,CAAC,MAAM,CAAC,eAAe;YAAE,OAAO,KAAK,CAAC;QAC/C,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,QAAQ,CAAC,UAAkB;QACzB,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,KAAK,UAAU;YAAE,OAAO,KAAK,CAAC;QACxE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC;YACH,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;QACtB,CAAC;QAAC,MAAM,CAAC,CAAC,qDAAqD,CAAC,CAAC;QACjE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CAAC;CACF"}
|
package/dist/types.d.ts
CHANGED
|
@@ -460,6 +460,15 @@ export interface WebConfig {
|
|
|
460
460
|
retention_days?: number;
|
|
461
461
|
public_link?: boolean;
|
|
462
462
|
};
|
|
463
|
+
/**
|
|
464
|
+
* M-3272: the web chat's archive past each agent's 500-message window (web-chat-archive.ts) — scrolled back to on the
|
|
465
|
+
* page. `retention_days` (0–3650; unset or 0: keep everything): whole months that ended before it are removed.
|
|
466
|
+
*/
|
|
467
|
+
/** M-3272: the web chat's archive; M-3281: `files_max_gb` — its kept files, every agent's together (GiB, default 5; 0 keeps none). */
|
|
468
|
+
chat_archive?: {
|
|
469
|
+
retention_days?: number;
|
|
470
|
+
files_max_gb?: number;
|
|
471
|
+
};
|
|
463
472
|
/**
|
|
464
473
|
* #2636: Office share links — the live Office view for people outside the fleet, read-only, on a quick tunnel of its
|
|
465
474
|
* own. `enabled` (default true): false offers no Share and ends every open share. `max_hours` (1–24, default 24): the
|
|
@@ -576,8 +585,9 @@ export interface WebVerifiedAuthorityConfig {
|
|
|
576
585
|
/** A session's authorization lasts this many hours after it was given, 1–48 (default 48). */
|
|
577
586
|
max_session_hours?: number;
|
|
578
587
|
/**
|
|
579
|
-
* #2453 (§0.2): sessions over the admin's own named tunnel (`web.public_link.hostname`) may be authorized too —
|
|
580
|
-
* default
|
|
588
|
+
* #2453 (§0.2): sessions over the admin's own named tunnel (`web.public_link.hostname`) may be authorized too — on by
|
|
589
|
+
* default since decision 7933bf90 (the user, 2026-11-17; off before), and `false` turns it off. Turning it back on is
|
|
590
|
+
* confirmed in a General or on the host (never by the asking session); off applies at once
|
|
581
591
|
* and every receipt from a named-link session reads as none. A quick tunnel is `quick_link`'s (§0.3).
|
|
582
592
|
*/
|
|
583
593
|
named_link?: boolean;
|
|
@@ -12,7 +12,8 @@ import { closeDialog, shellStore, showDialog } from "/assets/app-shell.js";
|
|
|
12
12
|
import { Dialog } from "/assets/ui-dialog.js";
|
|
13
13
|
import { confirmDialog } from "/assets/ui-confirm.js";
|
|
14
14
|
import { toast } from "/assets/ui-toast.js";
|
|
15
|
-
import { mountStructuredSignIns } from "./structured-signin.js";
|
|
15
|
+
import { mountStructuredSignIns, shortUrl } from "./structured-signin.js";
|
|
16
|
+
import { Icon } from "/assets/ui-icons.js";
|
|
16
17
|
import { CliProductMark, cliLabel } from "./cli-picker.js";
|
|
17
18
|
import { identityText } from "./account-identity.js";
|
|
18
19
|
import { FIRST_RUN_BACKENDS, capsOf } from "./cli-caps.js";
|
|
@@ -129,8 +130,53 @@ register("signin", {
|
|
|
129
130
|
profile: "{0} · 設定檔 {1}",
|
|
130
131
|
},
|
|
131
132
|
});
|
|
133
|
+
// M-3238 (the user): the device step as numbered steps with a big link and a big code, and the end as one headline and one
|
|
134
|
+
// plain line on which agents were reloaded (it was the chat's status lines, with their `backticks` and "instance").
|
|
135
|
+
register("signin", {
|
|
136
|
+
en: {
|
|
137
|
+
stepOpen: "Open sign-in page", deviceStepTitle: "Finish on the provider's official website", stepCode: "Enter this code on that page", stepPaste: "If the page gives you a code, paste it into the authorization terminal.",
|
|
138
|
+
stepTerminal: "Open the authorization terminal", stepAccess: "Enter this access code there. It works once, for {0} minutes.",
|
|
139
|
+
stepBack: "Come back here when you're done. This page updates by itself.", copyLink: "Copy link",
|
|
140
|
+
doneReloading: "Reloading the agents that use this account…",
|
|
141
|
+
doneReloaded: "Reloaded to use it: {0}.",
|
|
142
|
+
doneReloadedCaption: "Reloaded to use this account:",
|
|
143
|
+
donePendingCaption: "Still reloading (they come back on their own):",
|
|
144
|
+
doneNone: "No agent uses it yet, so nothing needed reloading.",
|
|
145
|
+
donePending: "Still reloading: {0}. They come back on their own.",
|
|
146
|
+
doneFailed: "The agents that use it could not be reloaded automatically. If one does not answer, restart it from Fleet.",
|
|
147
|
+
doneCleanup: "The sign-in program on this computer could not be confirmed closed.",
|
|
148
|
+
},
|
|
149
|
+
"zh-TW": {
|
|
150
|
+
stepOpen: "開啟登入頁面", deviceStepTitle: "前往官方網站完成授權", stepCode: "在那個頁面輸入這組授權碼", stepPaste: "如果頁面給你一組授權碼,請貼到授權終端機。",
|
|
151
|
+
stepTerminal: "開啟授權終端機", stepAccess: "在那裡輸入這個存取碼。只能用一次,{0} 分鐘內有效。",
|
|
152
|
+
stepBack: "完成後回到這裡,這個畫面會自動更新。", copyLink: "複製連結",
|
|
153
|
+
doneReloading: "正在重新載入使用這個帳號的 Agent…",
|
|
154
|
+
doneReloaded: "已重新載入,改用這個帳號:{0}。",
|
|
155
|
+
doneReloadedCaption: "已重新載入並改用這個帳號的 Agent:",
|
|
156
|
+
donePendingCaption: "還在重新載入(會自己恢復):",
|
|
157
|
+
doneNone: "目前沒有 Agent 使用它,不需要重新載入。",
|
|
158
|
+
donePending: "還在重新載入:{0}。它們會自己恢復。",
|
|
159
|
+
doneFailed: "無法自動重新載入使用它的 Agent。如果有 Agent 沒有回應,請到 Fleet 重新啟動它。",
|
|
160
|
+
doneCleanup: "無法確認這台電腦上的登入程式已關閉。",
|
|
161
|
+
},
|
|
162
|
+
});
|
|
132
163
|
const tn = (k, ...v) => t(`signin.${k}`, ...v);
|
|
133
|
-
const shownOf = (backend, profile) => (profile ? tn("profile", backend, profile) : backend);
|
|
164
|
+
const shownOf = (backend, profile) => (profile ? tn("profile", cliLabel(backend), profile) : cliLabel(backend));
|
|
165
|
+
/** An agent by the name the person sees (its display name). */
|
|
166
|
+
const agentLabel = (n) => { const it = (appStore.get().instances || []).find((i) => i && i.name === n); return (it && typeof it.display_name === "string" && it.display_name.trim()) || n; };
|
|
167
|
+
/**
|
|
168
|
+
* M-3238 (the user; Argon's review): after a good sign-in — a check banner with the headline, then what bringing its agents
|
|
169
|
+
* back did: the agents reloaded (or still reloading) as tags in one box, or one quiet line (reloading…, none, could not).
|
|
170
|
+
*/
|
|
171
|
+
function SignedIn({ login }) {
|
|
172
|
+
const r = login.recovery, back = r ? [...(r.woken || []), ...(r.restarted || [])] : [], pending = r ? r.pending || [] : [];
|
|
173
|
+
const list = !r || r.failed ? null : pending.length ? ["donePendingCaption", pending] : back.length ? ["doneReloadedCaption", back] : null;
|
|
174
|
+
return html`<div class="signin-done-banner" role="status"><${Icon} name="check" size=${18} /><span class="signin-headline">${tn("signedIn", shownOf(login.backend, login.profile))}</span></div>
|
|
175
|
+
${list ? html`<div class="signin-recovery-box" data-recovery="known"><span class="note">${tn(list[0])}</span>
|
|
176
|
+
<div class="chips">${list[1].map((n) => html`<span key=${n} class="tag" title=${n}>${agentLabel(n)}</span>`)}</div></div>`
|
|
177
|
+
: html`<p class=${r && r.failed ? "s-info signin-after" : "note signin-after"} data-recovery=${r ? "known" : "pending"}>${!r ? tn("doneReloading") : r.failed ? tn("doneFailed") : tn("doneNone")}</p>`}
|
|
178
|
+
${login.cleanupFailed ? html`<p class="s-info signin-after">${tn("doneCleanup")}</p>` : null}`;
|
|
179
|
+
}
|
|
134
180
|
|
|
135
181
|
/** What this page knows: the current sign-in as this session may see it, and Settings' list. */
|
|
136
182
|
export const signInStore = createStore({ loaded: false, login: null, targets: [], structured: null });
|
|
@@ -204,29 +250,42 @@ async function post(path, body) {
|
|
|
204
250
|
|
|
205
251
|
const errorText = (code) => (code === "confirm_expired" ? tn("expired") : code === "tunnel_not_offered" ? tn("notOffered")
|
|
206
252
|
: code === "sign_in_not_over_public_link" ? tn("notHere") : code === "sign_in_needs_a_local_admin" ? tn("notAdmin") : tn("failed"));
|
|
207
|
-
/**
|
|
208
|
-
|
|
253
|
+
/**
|
|
254
|
+
* #2233: Sign in was never offered on the public link's page. M-3278 (decision 7933bf90): it is for the link's admin session
|
|
255
|
+
* now, as on the local dashboard; a guest's page over the link still never shows it (the server refuses anyone but an admin).
|
|
256
|
+
*/
|
|
257
|
+
export const signInOffered = () => !(typeof document !== "undefined" && document.body && document.body.dataset.publicLink === "1" && document.body.dataset.tier === "guest");
|
|
209
258
|
const loopbackHost = (h) => h === "localhost" || h === "::1" || h === "[::1]" || /^127\./.test(h);
|
|
210
259
|
|
|
211
|
-
function
|
|
260
|
+
function CopyButton({ value, label, small = false }) {
|
|
212
261
|
const [copied, setCopied] = useState(false);
|
|
213
|
-
const copy = async () => { try { await navigator.clipboard.writeText(value); setCopied(true); } catch { toast(value); } };
|
|
214
|
-
return html`<
|
|
215
|
-
<button type="button" class="btn btn-sm" onClick=${copy}>${copied ? tn("copied") : tn("copy")}</button></div>`;
|
|
262
|
+
const copy = async () => { try { await navigator.clipboard.writeText(value); setCopied(true); setTimeout(() => setCopied(false), 1500); } catch { toast(value); } };
|
|
263
|
+
return html`<button type="button" class=${`btn${small ? " btn-sm" : ""} signin-copy`} onClick=${copy}><${Icon} name="copy" size=${14} /><span>${copied ? tn("copied") : label}</span></button>`;
|
|
216
264
|
}
|
|
217
265
|
|
|
266
|
+
|
|
218
267
|
/** The starter's view of a running sign-in: the device link and code, or the terminal and its access code. */
|
|
219
268
|
function Running({ login }) {
|
|
220
269
|
const { hint, terminal, accessCode } = login;
|
|
221
270
|
const away = terminal && terminal.loopback && typeof location !== "undefined" && !loopbackHost(location.hostname);
|
|
271
|
+
// M-3238 (the user; Argon's review): the step circles; a short primary 「開啟登入頁面」 beside Copy link, the page's address
|
|
272
|
+
// a quiet note under them; the code with Copy in one box; "come back here" a quiet status line — as the account dialog's
|
|
273
|
+
// cards draw it. The terminal the same way.
|
|
274
|
+
let url = null;
|
|
275
|
+
if (hint) { try { url = new URL(hint.url); } catch { url = null; } }
|
|
276
|
+
const step = (title, body) => html`<li><div class="signin-step-body"><span class="signin-step-title">${title}</span>${body}</div></li>`;
|
|
277
|
+
const codeBox = (label, value) => html`<div class="signin-code-box"><code class="signin-code" aria-label=${`${label} ${value}`}>${value}</code><${CopyButton} value=${value} label=${tn("copy")} small=${true} /></div>`;
|
|
222
278
|
return html`<div class="signin-run">
|
|
223
|
-
${hint ? html`<
|
|
224
|
-
${hint.linkable ? html`<
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
279
|
+
${hint ? html`<ol class="signin-steps">
|
|
280
|
+
${step(tn("deviceStepTitle"), hint.linkable && url ? html`<div class="signin-linkrow"><a data-trust="navigation" class="btn btn-primary signin-open" href=${hint.url} target="_blank" rel="noopener noreferrer">${tn("stepOpen")}<${Icon} name="external" size=${14} /></a><${CopyButton} value=${hint.url} label=${tn("copyLink")} /></div>
|
|
281
|
+
<span class="note mono signin-url">${url ? shortUrl(url) : hint.url}</span>`
|
|
282
|
+
: html`<div class="signin-code-box"><code class="signin-value">${hint.url}</code><${CopyButton} value=${hint.url} label=${tn("copyLink")} small=${true} /></div>`)}
|
|
283
|
+
${hint.code ? step(tn("stepCode"), codeBox(tn("code"), hint.code)) : step(tn("stepPaste"), null)}</ol>
|
|
284
|
+
${terminal ? null : html`<p class="s-info signin-back" role="status">${tn("stepBack")}</p>`}` : null}
|
|
285
|
+
${terminal ? html`<ol class="signin-steps">
|
|
286
|
+
${step(tn("stepTerminal"), html`<div class="signin-linkrow"><a data-trust="navigation" class="btn btn-primary signin-open" href=${terminal.url} target="_blank" rel="noopener noreferrer">${tn("openTerminal")}<${Icon} name="external" size=${14} /></a></div>`)}
|
|
287
|
+
${accessCode ? step(tn("stepAccess", terminal.ttlMinutes), codeBox(tn("accessCode"), accessCode)) : null}</ol>
|
|
288
|
+
<p class="s-info signin-back" role="status">${tn("stepBack")}</p>
|
|
230
289
|
${terminal.public ? html`<p class="signin-note">${tn("publicLink")}</p>` : null}
|
|
231
290
|
${away ? html`<p class="signin-note">${tn("loopback")}</p>` : null}` : null}
|
|
232
291
|
${!hint && !terminal ? html`<p class="signin-note">${tn("waitingHint")}</p>` : null}
|
|
@@ -243,7 +302,8 @@ function Running({ login }) {
|
|
|
243
302
|
* Shared pieces only: Dialog, `.btn`, `.note`, the in-app confirmation (ui-confirm.js).
|
|
244
303
|
*/
|
|
245
304
|
export function BrowserSignInDialog({ backend, profile, backends, onClose }) {
|
|
246
|
-
const root = useRef(null), close = onClose || closeDialog;
|
|
305
|
+
const root = useRef(null), close = onClose || closeDialog, cardsRef = useRef(null);
|
|
306
|
+
const [running, setRunning] = useState(false); // M-3238: a sign-in of this account runs: its Cancel is in the footer
|
|
247
307
|
// The id of the run THIS dialog started (a named account's): closing the dialog ends exactly that run — never one another session or another tab started.
|
|
248
308
|
const run = useRef(null);
|
|
249
309
|
const endpoint = profile ? profileSignInEndpoint(backend, profile) : "/ui/browser-backend-signins";
|
|
@@ -252,16 +312,18 @@ export function BrowserSignInDialog({ backend, profile, backends, onClose }) {
|
|
|
252
312
|
let cards, last = "";
|
|
253
313
|
// Ridge #3321 S01: "Sign in again" asks in the dashboard's own confirmation (its title names the CLI), not the browser's.
|
|
254
314
|
const ask = (message, cli) => confirmDialog({ title: t("signin.reloginTitle", cli), message, confirmLabel: t("signin.reloginGo") });
|
|
255
|
-
cards = mountStructuredSignIns(root.current, { endpoint, lang, ask, dashboard: true, codeHint: b => !!capsOf(b)?.codeHint, ...(single ? { dialog: true, focus: backend } : {}), started: id => { run.current = id; },
|
|
315
|
+
cards = mountStructuredSignIns(root.current, { endpoint, lang, ask, dashboard: true, codeHint: b => !!capsOf(b)?.codeHint, ...(single ? { dialog: true, focus: backend, footerCancel: true } : {}), started: id => { run.current = id; },
|
|
256
316
|
// The dialog was closed while its start was still in flight and the server made the run after all: nobody sees it, so it is ended here — by its id, so no other run is touched.
|
|
257
317
|
abandoned: id => { if (profile || single) void post(endpoint, { operation: "cancel", id }).then(() => refreshSignIn()); }, changed: next => {
|
|
258
318
|
if (!profile) {
|
|
259
319
|
if (backends) { if (backends.some(b => !next.selected.includes(b))) void cards.addBackends(backends); }
|
|
260
320
|
else if (!next.selected.includes(backend)) void cards.addBackend(backend);
|
|
261
321
|
}
|
|
322
|
+
if (single) { const l = next.login && next.login.backend === backend ? next.login : null; setRunning(!!l && l.phase !== "done" && !(l.phase === "failed" && l.reason)); }
|
|
262
323
|
const signature = JSON.stringify([next.login, next.pending]);
|
|
263
324
|
if (signature !== last) { last = signature; void refreshSignIn(); }
|
|
264
325
|
} });
|
|
326
|
+
cardsRef.current = cards;
|
|
265
327
|
const unlisten = onLang(() => cards.relabel());
|
|
266
328
|
return () => {
|
|
267
329
|
unlisten(); cards.dispose();
|
|
@@ -283,11 +345,12 @@ export function BrowserSignInDialog({ backend, profile, backends, onClose }) {
|
|
|
283
345
|
showDialog(SignInDialog, { backend: chosen, ...(profile && chosen === backend ? { profile } : {}) });
|
|
284
346
|
};
|
|
285
347
|
const actions = html`<div class="signin-browser-actions">
|
|
348
|
+
${single && running ? html`<button type="button" class="btn danger" onClick=${() => cardsRef.current && cardsRef.current.cancel()}>${tn("cancelSignIn")}</button><span class="dlg-spacer"></span>` : null}
|
|
286
349
|
${backends ? backends.filter(b => capsOf(b)?.chatSignIn).map(b => html`<button type="button" class="btn" onClick=${() => fallback(b)}>${b} · ${tn("consoleFallback")}</button>`) : null}
|
|
287
350
|
<button type="button" class="btn" onClick=${close}>${tn("close")}</button></div>`;
|
|
288
351
|
const account = backend ? `${cliLabel(backend)} · ${profile || tn("defaultAccount")}` : "";
|
|
289
352
|
return html`<${Dialog} title=${backends ? tn("listTitle") : tn("title", account)} onClose=${close} actions=${actions}>
|
|
290
|
-
<div class
|
|
353
|
+
<div class=${`signin-browser${single ? " is-single" : ""}`} ref=${root}></div>
|
|
291
354
|
${single && capsOf(backend)?.chatSignIn ? html`<p class="note"><button type="button" class="btn btn-sm btn-ghost" onClick=${() => fallback(backend)}>${tn("consoleFallback")}</button></p>` : null}
|
|
292
355
|
${single && capsOf(backend)?.chatSignIn ? html`<p class="note" data-signin-console-note>${tn("consoleFallbackNote")}</p>` : null}
|
|
293
356
|
</${Dialog}>`;
|
|
@@ -386,11 +449,17 @@ export function SignInDialog({ backend, profile, resume = false, onClose }) {
|
|
|
386
449
|
${login.phase === "running" ? html`<button type="button" class="btn btn-danger" disabled=${busy} onClick=${cancelRun}>${tn("cancelSignIn")}</button>` : null}`;
|
|
387
450
|
} else {
|
|
388
451
|
const lines = Array.isArray(login.lines) ? login.lines : [];
|
|
452
|
+
// M-3238: a good sign-in is one headline and one plain line on its agents (`recovery`); the chat's status lines are shown
|
|
453
|
+
// only for one that did not succeed (they say why), or from an older server that sends no `recovery`.
|
|
454
|
+
const structuredEnd = login.ok && Object.hasOwn(login, "recovery");
|
|
389
455
|
body = html`${login.phase === "running" ? html`<${Running} login=${login} />`
|
|
456
|
+
: structuredEnd ? html`<${SignedIn} login=${login} />`
|
|
390
457
|
: html`<p role="status" class=${login.ok ? "signin-ok" : "signin-message"}>${login.ok ? tn("signedIn", shownOf(login.backend, login.profile)) : tn("ended")}</p>`}
|
|
391
|
-
${lines.length ? html`<ul class="signin-lines">${lines.map((l, i) => html`<li key=${i}>${l}</li>`)}</ul>` : null}`;
|
|
392
|
-
|
|
393
|
-
|
|
458
|
+
${lines.length && !structuredEnd ? html`<ul class="signin-lines">${lines.map((l, i) => html`<li key=${i}>${l}</li>`)}</ul>` : null}`;
|
|
459
|
+
// M-3238 (Argon): Cancel connecting a quiet danger button on the footer's left, Close on its right; at the end, Close alone.
|
|
460
|
+
actions = login.phase === "running"
|
|
461
|
+
? html`<button type="button" class="btn danger" disabled=${busy} onClick=${cancelRun}>${tn("cancelSignIn")}</button><span class="dlg-spacer"></span><button type="button" class="btn" onClick=${close}>${tn("close")}</button>`
|
|
462
|
+
: html`<button type="button" class=${structuredEnd ? "btn btn-primary" : "btn"} onClick=${close}>${tn("close")}</button>`;
|
|
394
463
|
}
|
|
395
464
|
return html`<${Dialog} title=${tn("title", shown)} onClose=${close} busy=${busy} actions=${actions}>${body}</${Dialog}>`;
|
|
396
465
|
}
|
|
@@ -400,7 +469,7 @@ export function SignInLine() {
|
|
|
400
469
|
const { login, structured } = useStore(signInStore);
|
|
401
470
|
const active = structured?.login;
|
|
402
471
|
if ((!login || login.phase !== "running") && active && active.phase !== "done" && !(active.phase === "failed" && active.reason)) {
|
|
403
|
-
return html`<div data-trust="status" class="conn op-line signin-line" role="status"><span>${tn("browserRunning", active.backend)}</span>
|
|
472
|
+
return html`<div data-trust="status" class="conn op-line signin-line" role="status"><span>${tn("browserRunning", cliLabel(active.backend))}</span>
|
|
404
473
|
<button type="button" class="btn btn-sm" onClick=${() => openSignIn({ backend: active.backend })}>${tn("open")}</button></div>`;
|
|
405
474
|
}
|
|
406
475
|
if (!login || login.phase !== "running") return null;
|
|
@@ -27,7 +27,11 @@
|
|
|
27
27
|
// step has no group at all. Text after the last reply with substance stays in that reply's group (the same block as the
|
|
28
28
|
// turn's other steps), and only until its reply row arrives is it ever the live group.
|
|
29
29
|
// A page labels `text`, `time`, `turn` and `none` as inferred. A reply call seen a moment before its row arrives is
|
|
30
|
-
// `live`
|
|
30
|
+
// `live` so the group does not jump when the row comes.
|
|
31
|
+
// Where the live group sits (#3756): before the first agent row newer than its start (`from`) that no group claims — the
|
|
32
|
+
// reply row of this very turn can arrive (SSE) before the steps read that names it, and the block must not be drawn
|
|
33
|
+
// under it for one read and then jump above it. At the end when there is none, when a person's message newer than the
|
|
34
|
+
// start comes first (it may start another turn: the work is never hung on a later reply), and for rows with no time.
|
|
31
35
|
//
|
|
32
36
|
// Keys: `act:<turn>:<n>` (n: the segment's number in its turn) — the same key while a segment is live and after its
|
|
33
37
|
// reply arrives, so the page keeps the node (no remount, no scroll jump). A turn the transcript gave no id for is named
|
|
@@ -73,8 +77,12 @@ function turnsOf(steps) {
|
|
|
73
77
|
* @returns { groups: Group[], live: Group|null }
|
|
74
78
|
* Group = { key, turn, n, level, rowKey: string|null, items: Step[], trailing: Step[], ts: number, from, to (ms: when the
|
|
75
79
|
* work for the reply began — the turn's start, or the previous reply's call — and when it ended; `to` 0 while live), partial?: true,
|
|
76
|
-
* ended: the segment is complete (false: live), turnEnded: the turn is over — only then are `trailing` steps "never sent"
|
|
77
|
-
*
|
|
80
|
+
* ended: the segment is complete (false: live), turnEnded: the turn is over — only then are `trailing` steps "never sent",
|
|
81
|
+
* promptKey?: the live group's own prompt row (the key of its turn's user row, when the ledger has it), waitsFor?: the
|
|
82
|
+
* live group's reply call's id, when its result named one (its row is the only one it may go before); atEnd?: true —
|
|
83
|
+
* a live group composeRows always puts last (chat-activity.js' status-only "Working…" line) }
|
|
84
|
+
* `groups` are in thread order; `rowKey` is the row a group sits above (null: between rows by `ts`; the live group by
|
|
85
|
+
* composeRows' rule).
|
|
78
86
|
*/
|
|
79
87
|
export function groupSteps(rows, steps, opts = {}) {
|
|
80
88
|
const now = opts.now ?? Date.now();
|
|
@@ -85,6 +93,7 @@ export function groupSteps(rows, steps, opts = {}) {
|
|
|
85
93
|
const turns = turnsOf(steps);
|
|
86
94
|
const groups = [];
|
|
87
95
|
let live = null;
|
|
96
|
+
let livePrompt = null; // the newest turn's own prompt row (only it has a live group): composeRows, #3756
|
|
88
97
|
// Prism #3709 R4: the rows some reply call names by its explicit id. A call that names none yet (its result not seen) may
|
|
89
98
|
// still be matched by its words or its time — but never onto a row another call has proved to be its own.
|
|
90
99
|
const named = new Set();
|
|
@@ -127,6 +136,7 @@ export function groupSteps(rows, steps, opts = {}) {
|
|
|
127
136
|
const userRow = first && first.anchor && first.anchor.messageId
|
|
128
137
|
? users.find((r) => r.x.anchor === first.anchor.messageId) || null : null;
|
|
129
138
|
const tkey = turn.turn || `~${(first || turn.steps[0]).id}`;
|
|
139
|
+
if (lastTurn && userRow) livePrompt = rowKeyOf(userRow.x);
|
|
130
140
|
// Which agent rows can belong to this turn's replies by time: between its user row and the next user row; with no
|
|
131
141
|
// user row to go by, between the turn's first step and the next turn's first (rows keep their own clock).
|
|
132
142
|
const next = userRow ? users.find((r) => r.i > userRow.i) : null;
|
|
@@ -164,7 +174,7 @@ export function groupSteps(rows, steps, opts = {}) {
|
|
|
164
174
|
const awaiting = lastTurn && (sg.reply.status === "running" || (sg.reply.ts && now - sg.reply.ts < AWAIT_ROW_MS));
|
|
165
175
|
if (!awaiting) { groups.push({ ...base, level: "none", rowKey: null }); return; }
|
|
166
176
|
if (live) groups.push({ ...live, level: "none", ended: true });
|
|
167
|
-
live = { ...base, level: "live", rowKey: null, ended: false };
|
|
177
|
+
live = { ...base, level: "live", rowKey: null, ended: false, ...(sg.reply.anchor && sg.reply.anchor.messageId ? { waitsFor: sg.reply.anchor.messageId } : {}) };
|
|
168
178
|
});
|
|
169
179
|
if (!tail.length) {
|
|
170
180
|
// nothing shown yet, but the agent is working on this turn (the page says so: `busy`). Some CLIs write a
|
|
@@ -196,13 +206,15 @@ export function groupSteps(rows, steps, opts = {}) {
|
|
|
196
206
|
if (lastPlaced) { lastPlaced.trailing = tail; lastPlaced.to = tail[tail.length - 1].ts || lastPlaced.to; return; }
|
|
197
207
|
groups.push({ key: `act:${tkey}:${n}`, turn: turn.turn, n, level: "none", rowKey: null, items: tail, trailing: [], ts: tail[0].ts || 0, from, to: tail[tail.length - 1].ts || 0, ended: true, turnEnded: ended, ...(partial && !segs.length ? { partial: true } : {}) });
|
|
198
208
|
});
|
|
209
|
+
if (live && livePrompt) live.promptKey = livePrompt;
|
|
199
210
|
if (live && opts.busy) { live.busy = true; if (opts.phase) live.phase = opts.phase; } // the page knows the agent is working: this live group is shown even when it holds nothing to show yet; grok's phase (reasoning, a tool…) is what the live line says
|
|
200
211
|
return { groups, live };
|
|
201
212
|
}
|
|
202
213
|
|
|
203
214
|
/**
|
|
204
215
|
* The ledger rows with each group as a synthetic `{ role: "activity" }` row before the reply it belongs to; a group
|
|
205
|
-
* with no row (`none`, by its time) between the rows; the live group
|
|
216
|
+
* with no row (`none`, by its time) between the rows; the live group before the reply row it is waiting for (see the
|
|
217
|
+
* top: `liveRowIndex`), else last. The rows themselves are never changed.
|
|
206
218
|
*/
|
|
207
219
|
export function composeRows(rows, { groups, live }) {
|
|
208
220
|
const before = new Map();
|
|
@@ -213,13 +225,34 @@ export function composeRows(rows, { groups, live }) {
|
|
|
213
225
|
const act = (g) => ({ role: "activity", boot: "act", id: g.key, group: g, ts: g.ts ? new Date(g.ts).toISOString() : "" });
|
|
214
226
|
const out = [];
|
|
215
227
|
const looseLeft = loose.slice().sort((a, b) => a.ts - b.ts);
|
|
216
|
-
|
|
228
|
+
const liveAt = live ? liveRowIndex(rows, live, before) : -1;
|
|
229
|
+
rows.forEach((x, i) => {
|
|
217
230
|
const t = rowTs(x);
|
|
218
231
|
while (looseLeft.length && t && looseLeft[0].ts && looseLeft[0].ts < t) out.push(act(looseLeft.shift()));
|
|
219
232
|
for (const g of before.get(rowKeyOf(x)) || []) out.push(act(g));
|
|
233
|
+
if (i === liveAt) out.push(act(live));
|
|
220
234
|
out.push(x);
|
|
221
|
-
}
|
|
235
|
+
});
|
|
222
236
|
for (const g of looseLeft) out.push(act(g));
|
|
223
|
-
if (live) out.push(act(live));
|
|
237
|
+
if (live && liveAt < 0) out.push(act(live));
|
|
224
238
|
return out;
|
|
225
239
|
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* #3756: the row the live group goes before — the first agent row newer than the group's start that no group claims
|
|
243
|
+
* (a reply of this turn whose row came before the steps read that names it). -1 (the end): a person's message newer
|
|
244
|
+
* than the start comes first (other than the turn's own prompt), there is no such row, or the group has no start.
|
|
245
|
+
* Rows with no time are passed over. A reply call whose result named its row's id waits for that row only (R4: never a
|
|
246
|
+
* guess); while it is missing, the end. A group marked `atEnd` (the status-only "Working…" line) is always last.
|
|
247
|
+
*/
|
|
248
|
+
function liveRowIndex(rows, live, claimed) {
|
|
249
|
+
const from = live.from || live.ts || 0;
|
|
250
|
+
if (!from || live.atEnd) return -1;
|
|
251
|
+
for (let i = 0; i < rows.length; i++) {
|
|
252
|
+
const x = rows[i], t = rowTs(x);
|
|
253
|
+
if (t <= from) continue; // older, or no time (0)
|
|
254
|
+
if (x.role === "user" && rowKeyOf(x) !== live.promptKey) return -1;
|
|
255
|
+
if (x.role === "agent" && !claimed.has(rowKeyOf(x)) && (!live.waitsFor || x.anchor === live.waitsFor)) return i;
|
|
256
|
+
}
|
|
257
|
+
return -1;
|
|
258
|
+
}
|
package/dist/ui/chat-activity.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// mountActivity(node, …) a Preact island in a node of the chat's keyed DOM thread (chat-thread.js), updated in place
|
|
12
12
|
// — the same node for a live turn and for the reply it becomes (no remount, state kept).
|
|
13
13
|
//
|
|
14
|
-
// Nothing here runs unless this is an admin session on the
|
|
14
|
+
// Nothing here runs unless this is an admin session (M-3278: on any listener, the public link too) (<body data-chat-activity="1">; the server
|
|
15
15
|
// refuses anyone else), the agent's tool_progress is not off (the answer's `level`), and this browser has Show activity on
|
|
16
16
|
// (the ⋯ menu). The server decides what a step holds (tool_progress) and who gets thinking (an admin, switch on).
|
|
17
17
|
import { html, render, useEffect, useState } from "/assets/app-html.js";
|
|
@@ -100,7 +100,7 @@ export const activityPrefs = createStore({ on: !off(ACT_KEY), thinking: !off(THI
|
|
|
100
100
|
export const setActivityOn = (on) => { keep(ACT_KEY, on); activityPrefs.set((s) => ({ ...s, on })); };
|
|
101
101
|
export const setActivityThinking = (on) => { keep(THINK_KEY, on); activityPrefs.set((s) => ({ ...s, thinking: on })); };
|
|
102
102
|
/**
|
|
103
|
-
* The page may ask for the block when this is an admin session
|
|
103
|
+
* The page may ask for the block when this is an admin session (M-3278: the public link's too) (the server says so in the body, and
|
|
104
104
|
* refuses everyone else); each agent's tool_progress then decides whether it has one (its answer's `level`). Thinking is
|
|
105
105
|
* asked for only when `web.log_thinking` is on (the server still checks who asks).
|
|
106
106
|
*/
|
|
@@ -245,7 +245,9 @@ export function composeActivity(name, rows, now = Date.now(), opts = {}) {
|
|
|
245
245
|
function statusRows(rows, since, statusOnly, phase) {
|
|
246
246
|
let from = Number.isFinite(since) ? since : 0;
|
|
247
247
|
if (!from) { for (let i = rows.length - 1; i >= 0; i--) if (rows[i].role === "user") { const t = Date.parse(rows[i].ts); if (Number.isFinite(t)) from = t; break; } }
|
|
248
|
-
|
|
248
|
+
// atEnd: the "Working…" line stays under the newest row (#3756 moves a turn's live group above a reply that came
|
|
249
|
+
// before its steps; this line never becomes a reply's block, and the agent may still be working after a reply)
|
|
250
|
+
const live = { key: "act:status", turn: "status", n: 0, level: "live", rowKey: null, items: [], trailing: [], ts: from, from, to: 0, ended: false, turnEnded: false, busy: true, atEnd: true, ...(statusOnly ? { statusOnly: true } : {}), ...(phase ? { phase } : {}) };
|
|
249
251
|
return composeRows(rows, { groups: [], live });
|
|
250
252
|
}
|
|
251
253
|
|
package/dist/ui/chat-mentions.js
CHANGED
|
@@ -28,6 +28,19 @@ export function createMentionIndex(fetchImpl) {
|
|
|
28
28
|
name: (kind, id) => names.get(`${kind}:${id}`) ?? null,
|
|
29
29
|
/** Ask for the names of the mentions in these messages the page has not asked about yet. */
|
|
30
30
|
ensure(msgs) {
|
|
31
|
+
// Guests receive labels with permitted messages; only ids in that message may seed this page's index.
|
|
32
|
+
let added = false;
|
|
33
|
+
for (const x of msgs || []) {
|
|
34
|
+
if (!x || typeof x.text !== "string" || !x.mentionNames) continue;
|
|
35
|
+
for (const m of x.text.replace(/\u0000/g, "").matchAll(TOKEN)) {
|
|
36
|
+
const kind = KIND[m[1]], id = m[2], got = x.mentionNames[kind], key = `${kind}:${id}`;
|
|
37
|
+
if (!got || !Object.prototype.hasOwnProperty.call(got, id) || typeof got[id] !== "string" || !got[id].trim()) continue;
|
|
38
|
+
const value = got[id].trim().slice(0, 100);
|
|
39
|
+
if (names.get(key) !== value) { names.set(key, value); added = true; }
|
|
40
|
+
asked.add(key);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (added) for (const f of [...listeners]) f();
|
|
31
44
|
const want = idsIn(msgs);
|
|
32
45
|
for (let i = 0; i < want.length; i += MAX_IDS) {
|
|
33
46
|
const batch = want.slice(i, i + MAX_IDS);
|