@songsid/agend 2.4.0-alpha.4 → 2.4.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-cli-instructions.md +4 -1
- package/dist/agent-cli.js +14 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.d.ts +3 -1
- package/dist/agent-endpoint.js +15 -3
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-token-header.d.ts +1 -1
- package/dist/agent-token-header.js +1 -1
- package/dist/agent-whats-new.js +1 -1
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/app-message-origin.d.ts +2 -0
- package/dist/app-message-origin.js +3 -0
- package/dist/app-message-origin.js.map +1 -0
- package/dist/auth-api.d.ts +8 -0
- package/dist/auth-api.js +40 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/authority-state.d.ts +7 -0
- package/dist/authority/authority-state.js +17 -2
- package/dist/authority/authority-state.js.map +1 -1
- package/dist/authority/web-authority.d.ts +11 -1
- package/dist/authority/web-authority.js +11 -1
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/agy-model-switch.d.ts +22 -0
- package/dist/backend/agy-model-switch.js +62 -0
- package/dist/backend/agy-model-switch.js.map +1 -0
- package/dist/backend/antigravity.d.ts +9 -2
- package/dist/backend/antigravity.js +84 -9
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-code.js +20 -5
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/cli-env-probe.js +1 -1
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend/cli-runtime-switch.d.ts +90 -0
- package/dist/backend/cli-runtime-switch.js +273 -0
- package/dist/backend/cli-runtime-switch.js.map +1 -0
- package/dist/backend/codex-footer-hints.d.ts +1 -0
- package/dist/backend/codex-footer-hints.js +15 -0
- package/dist/backend/codex-footer-hints.js.map +1 -1
- package/dist/backend/codex-model-switch.d.ts +41 -0
- package/dist/backend/codex-model-switch.js +170 -0
- package/dist/backend/codex-model-switch.js.map +1 -0
- package/dist/backend/codex.d.ts +6 -4
- package/dist/backend/codex.js +26 -9
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.js +1 -1
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/grok-model-switch.d.ts +16 -0
- package/dist/backend/grok-model-switch.js +45 -0
- package/dist/backend/grok-model-switch.js.map +1 -0
- package/dist/backend/grok.js +1 -1
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.js +4 -4
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/muse.d.ts +2 -0
- package/dist/backend/muse.js +7 -3
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/native-pane.js +1 -1
- package/dist/backend/native-pane.js.map +1 -1
- package/dist/backend/types.d.ts +2 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +22 -0
- package/dist/backend-availability.js +71 -2
- package/dist/backend-availability.js.map +1 -1
- package/dist/backend-signin-guide.js +1 -1
- package/dist/backend-signin-guide.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/discord.d.ts +10 -0
- package/dist/channel/adapters/discord.js +35 -0
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +2 -0
- package/dist/channel/adapters/telegram.js +3 -0
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-server.js +10 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.js +9 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/tool-router.js +9 -2
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/channel/types.d.ts +10 -0
- package/dist/classic-channel-manager.d.ts +1 -1
- package/dist/classic-channel-manager.js +1 -1
- package/dist/cli-audited.js +14 -13
- package/dist/cli-audited.js.map +1 -1
- package/dist/cli-capability.d.ts +3 -0
- package/dist/cli-capability.js.map +1 -1
- package/dist/cli-registry-check.js +1 -1
- package/dist/cli-registry-check.js.map +1 -1
- package/dist/cli-registry.d.ts +1 -0
- package/dist/cli-spec-antigravity.d.ts +1 -0
- package/dist/cli-spec-antigravity.js +3 -1
- package/dist/cli-spec-antigravity.js.map +1 -1
- package/dist/cli.js +8 -0
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +18 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/connect/control.d.ts +20 -0
- package/dist/connect/control.js +236 -0
- package/dist/connect/control.js.map +1 -0
- package/dist/connect/install.d.ts +13 -0
- package/dist/connect/install.js +12 -0
- package/dist/connect/install.js.map +1 -0
- package/dist/connect/mcp.d.ts +9 -0
- package/dist/connect/mcp.js +10 -0
- package/dist/connect/mcp.js.map +1 -0
- package/dist/connect/protocol.d.ts +38 -0
- package/dist/connect/protocol.js +36 -0
- package/dist/connect/protocol.js.map +1 -0
- package/dist/connect/service.d.ts +19 -0
- package/dist/connect/service.js +79 -0
- package/dist/connect/service.js.map +1 -0
- package/dist/connect/stdio-entry.d.ts +1 -0
- package/dist/connect/stdio-entry.js +6 -0
- package/dist/connect/stdio-entry.js.map +1 -0
- package/dist/connect/stdio.d.ts +5 -0
- package/dist/connect/stdio.js +33 -0
- package/dist/connect/stdio.js.map +1 -0
- package/dist/daemon.d.ts +64 -2
- package/dist/daemon.js +397 -31
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +2 -0
- package/dist/delivery-consumed-watch.js +4 -1
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/dispatcher-liveness.d.ts +51 -1
- package/dist/dispatcher-liveness.js +92 -2
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/event-log.d.ts +1 -1
- package/dist/event-log.js +1 -1
- package/dist/fleet-manager.d.ts +222 -6
- package/dist/fleet-manager.js +1271 -100
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.js +4 -2
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +19 -3
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +10 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +18 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +331 -29
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +118 -26
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +2 -0
- package/dist/hub/admin-dashboard.d.ts +85 -0
- package/dist/hub/admin-dashboard.js +177 -0
- package/dist/hub/admin-dashboard.js.map +1 -0
- package/dist/hub/attachments/store.d.ts +2 -0
- package/dist/hub/attachments/store.js +6 -0
- package/dist/hub/attachments/store.js.map +1 -1
- package/dist/hub/audit/index.d.ts +2 -0
- package/dist/hub/audit/index.js +8 -0
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/buttons.js +3 -1
- package/dist/hub/buttons.js.map +1 -1
- package/dist/hub/catalog.d.ts +8 -5
- package/dist/hub/catalog.js +53 -20
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +13 -0
- package/dist/hub/client.js +85 -11
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +22 -0
- package/dist/hub/compose/member.js +233 -18
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +14 -0
- package/dist/hub/compose/server.js +110 -11
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/display-name.d.ts +10 -0
- package/dist/hub/display-name.js +35 -0
- package/dist/hub/display-name.js.map +1 -0
- package/dist/hub/execution/service.d.ts +1 -0
- package/dist/hub/execution/service.js +1 -1
- package/dist/hub/execution/service.js.map +1 -1
- package/dist/hub/fleet-info.d.ts +12 -0
- package/dist/hub/fleet-info.js +14 -0
- package/dist/hub/fleet-info.js.map +1 -0
- package/dist/hub/fleet-update-model.d.ts +100 -0
- package/dist/hub/fleet-update-model.js +15 -0
- package/dist/hub/fleet-update-model.js.map +1 -0
- package/dist/hub/fleet-updates.d.ts +46 -0
- package/dist/hub/fleet-updates.js +282 -0
- package/dist/hub/fleet-updates.js.map +1 -0
- package/dist/hub/fleet-versions.d.ts +28 -0
- package/dist/hub/fleet-versions.js +80 -0
- package/dist/hub/fleet-versions.js.map +1 -0
- package/dist/hub/grant-access.js +23 -3
- package/dist/hub/grant-access.js.map +1 -1
- package/dist/hub/grant-search.js +13 -1
- package/dist/hub/grant-search.js.map +1 -1
- package/dist/hub/group-policy/admin-api.d.ts +1 -0
- package/dist/hub/group-policy/admin-api.js +10 -1
- package/dist/hub/group-policy/admin-api.js.map +1 -1
- package/dist/hub/group-policy/admin-control.d.ts +1 -0
- package/dist/hub/group-policy/admin-control.js +13 -4
- package/dist/hub/group-policy/admin-control.js.map +1 -1
- package/dist/hub/group-policy/admin-dto.d.ts +39 -1
- package/dist/hub/group-policy/admin-dto.js.map +1 -1
- package/dist/hub/group-policy/admin-facts.d.ts +4 -2
- package/dist/hub/group-policy/admin-facts.js +17 -2
- package/dist/hub/group-policy/admin-facts.js.map +1 -1
- package/dist/hub/group-policy/admin-impact.d.ts +36 -6
- package/dist/hub/group-policy/admin-impact.js +21 -7
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.d.ts +2 -0
- package/dist/hub/group-policy/admin-inventory.js +13 -4
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/admin-search.d.ts +2 -1
- package/dist/hub/group-policy/admin-search.js +56 -7
- package/dist/hub/group-policy/admin-search.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +2 -0
- package/dist/hub/group-policy/authorization.js +7 -2
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.d.ts +4 -1
- package/dist/hub/group-policy/impact-inventory.js +41 -4
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/model.d.ts +52 -1
- package/dist/hub/group-policy/model.js +20 -7
- package/dist/hub/group-policy/model.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +2 -0
- package/dist/hub/group-policy/resources.js +12 -1
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.js +22 -3
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/group-policy/team-subjects.d.ts +16 -0
- package/dist/hub/group-policy/team-subjects.js +32 -0
- package/dist/hub/group-policy/team-subjects.js.map +1 -0
- package/dist/hub/http/compose.d.ts +2 -0
- package/dist/hub/http/compose.js +437 -32
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.js +27 -0
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +15 -0
- package/dist/hub/http/schema.js +21 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/join/client.js +75 -42
- package/dist/hub/join/client.js.map +1 -1
- package/dist/hub/join/service.d.ts +1 -1
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/join/store.d.ts +5 -0
- package/dist/hub/join/store.js +12 -2
- package/dist/hub/join/store.js.map +1 -1
- package/dist/hub/mcp/auth-schema.d.ts +7 -0
- package/dist/hub/mcp/auth-schema.js +31 -0
- package/dist/hub/mcp/auth-schema.js.map +1 -0
- package/dist/hub/mcp/auth.d.ts +89 -0
- package/dist/hub/mcp/auth.js +374 -0
- package/dist/hub/mcp/auth.js.map +1 -0
- package/dist/hub/mcp/catalog.d.ts +44 -0
- package/dist/hub/mcp/catalog.js +31 -0
- package/dist/hub/mcp/catalog.js.map +1 -0
- package/dist/hub/mcp/door-schema.d.ts +7 -0
- package/dist/hub/mcp/door-schema.js +20 -0
- package/dist/hub/mcp/door-schema.js.map +1 -0
- package/dist/hub/mcp/http.d.ts +25 -0
- package/dist/hub/mcp/http.js +259 -0
- package/dist/hub/mcp/http.js.map +1 -0
- package/dist/hub/mcp/policy.d.ts +65 -0
- package/dist/hub/mcp/policy.js +153 -0
- package/dist/hub/mcp/policy.js.map +1 -0
- package/dist/hub/mcp/server.d.ts +3 -0
- package/dist/hub/mcp/server.js +32 -0
- package/dist/hub/mcp/server.js.map +1 -0
- package/dist/hub/mcp/tools.d.ts +31 -0
- package/dist/hub/mcp/tools.js +176 -0
- package/dist/hub/mcp/tools.js.map +1 -0
- package/dist/hub/member/display-name.d.ts +9 -0
- package/dist/hub/member/display-name.js +71 -0
- package/dist/hub/member/display-name.js.map +1 -0
- package/dist/hub/member/exposure-api.d.ts +6 -0
- package/dist/hub/member/exposure-api.js +13 -6
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/exposures.d.ts +4 -0
- package/dist/hub/member/exposures.js +20 -0
- package/dist/hub/member/exposures.js.map +1 -1
- package/dist/hub/member/pairing-api.js +3 -2
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/member/recommendations.d.ts +37 -0
- package/dist/hub/member/recommendations.js +129 -0
- package/dist/hub/member/recommendations.js.map +1 -0
- package/dist/hub/member/room-ask.d.ts +65 -5
- package/dist/hub/member/room-ask.js +269 -24
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-mention-feedback.d.ts +44 -0
- package/dist/hub/member/room-mention-feedback.js +121 -0
- package/dist/hub/member/room-mention-feedback.js.map +1 -0
- package/dist/hub/member/room-notification.d.ts +9 -0
- package/dist/hub/member/room-notification.js +2 -0
- package/dist/hub/member/room-notification.js.map +1 -0
- package/dist/hub/member/room-post-answers.d.ts +46 -0
- package/dist/hub/member/room-post-answers.js +152 -0
- package/dist/hub/member/room-post-answers.js.map +1 -0
- package/dist/hub/member/room-post-receipt.d.ts +21 -0
- package/dist/hub/member/room-post-receipt.js +49 -0
- package/dist/hub/member/room-post-receipt.js.map +1 -0
- package/dist/hub/member/room-post.d.ts +103 -0
- package/dist/hub/member/room-post.js +231 -0
- package/dist/hub/member/room-post.js.map +1 -0
- package/dist/hub/member/updates.d.ts +92 -0
- package/dist/hub/member/updates.js +316 -0
- package/dist/hub/member/updates.js.map +1 -0
- package/dist/hub/pairing.d.ts +15 -1
- package/dist/hub/pairing.js +33 -2
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/person-prefs.d.ts +22 -0
- package/dist/hub/person-prefs.js +34 -0
- package/dist/hub/person-prefs.js.map +1 -0
- package/dist/hub/personal/owner-host.d.ts +140 -0
- package/dist/hub/personal/owner-host.js +287 -0
- package/dist/hub/personal/owner-host.js.map +1 -0
- package/dist/hub/personal/refusals.d.ts +11 -0
- package/dist/hub/personal/refusals.js +33 -0
- package/dist/hub/personal/refusals.js.map +1 -0
- package/dist/hub/personal/runtime-host.d.ts +26 -0
- package/dist/hub/personal/runtime-host.js +51 -0
- package/dist/hub/personal/runtime-host.js.map +1 -0
- package/dist/hub/personal/schema.d.ts +4 -0
- package/dist/hub/personal/schema.js +54 -0
- package/dist/hub/personal/schema.js.map +1 -0
- package/dist/hub/personal/turns.d.ts +39 -0
- package/dist/hub/personal/turns.js +221 -0
- package/dist/hub/personal/turns.js.map +1 -0
- package/dist/hub/personal/types.d.ts +42 -0
- package/dist/hub/personal/types.js +2 -0
- package/dist/hub/personal/types.js.map +1 -0
- package/dist/hub/policy.d.ts +1 -1
- package/dist/hub/policy.js +2 -0
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +701 -1
- package/dist/hub/protocol.js +103 -14
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/published-version.d.ts +3 -0
- package/dist/hub/published-version.js +35 -0
- package/dist/hub/published-version.js.map +1 -0
- package/dist/hub/quota.js +3 -1
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/recommendation-model.d.ts +36 -0
- package/dist/hub/recommendation-model.js +9 -0
- package/dist/hub/recommendation-model.js.map +1 -0
- package/dist/hub/recommendations.d.ts +58 -0
- package/dist/hub/recommendations.js +211 -0
- package/dist/hub/recommendations.js.map +1 -0
- package/dist/hub/representative.d.ts +5 -0
- package/dist/hub/representative.js +6 -1
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/roles/admin-control.d.ts +29 -0
- package/dist/hub/roles/admin-control.js +187 -0
- package/dist/hub/roles/admin-control.js.map +1 -0
- package/dist/hub/roles/admin-types.d.ts +72 -0
- package/dist/hub/roles/admin-types.js +2 -0
- package/dist/hub/roles/admin-types.js.map +1 -0
- package/dist/hub/roles/allowed-list-control.d.ts +34 -0
- package/dist/hub/roles/allowed-list-control.js +179 -0
- package/dist/hub/roles/allowed-list-control.js.map +1 -0
- package/dist/hub/roles/allowed-list.d.ts +8 -0
- package/dist/hub/roles/allowed-list.js +49 -0
- package/dist/hub/roles/allowed-list.js.map +1 -0
- package/dist/hub/roles/audit-details.d.ts +144 -0
- package/dist/hub/roles/audit-details.js +26 -0
- package/dist/hub/roles/audit-details.js.map +1 -0
- package/dist/hub/roles/authority.d.ts +12 -0
- package/dist/hub/roles/authority.js +39 -3
- package/dist/hub/roles/authority.js.map +1 -1
- package/dist/hub/roles/change.d.ts +3 -1
- package/dist/hub/roles/change.js +7 -2
- package/dist/hub/roles/change.js.map +1 -1
- package/dist/hub/roles/clock.d.ts +3 -0
- package/dist/hub/roles/clock.js +1 -1
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/convert.js +1 -1
- package/dist/hub/roles/convert.js.map +1 -1
- package/dist/hub/roles/cutover-inventory.d.ts +2 -0
- package/dist/hub/roles/cutover-inventory.js +8 -1
- package/dist/hub/roles/cutover-inventory.js.map +1 -1
- package/dist/hub/roles/cutover.d.ts +2 -2
- package/dist/hub/roles/cutover.js +3 -4
- package/dist/hub/roles/cutover.js.map +1 -1
- package/dist/hub/roles/delegation.d.ts +4 -1
- package/dist/hub/roles/delegation.js +7 -2
- package/dist/hub/roles/delegation.js.map +1 -1
- package/dist/hub/roles/evaluate.d.ts +2 -1
- package/dist/hub/roles/evaluate.js +14 -0
- package/dist/hub/roles/evaluate.js.map +1 -1
- package/dist/hub/roles/expiry-effects.d.ts +8 -0
- package/dist/hub/roles/expiry-effects.js +50 -0
- package/dist/hub/roles/expiry-effects.js.map +1 -0
- package/dist/hub/roles/migrations.d.ts +7 -0
- package/dist/hub/roles/migrations.js +44 -0
- package/dist/hub/roles/migrations.js.map +1 -0
- package/dist/hub/roles/model.d.ts +25 -0
- package/dist/hub/roles/model.js +9 -3
- package/dist/hub/roles/model.js.map +1 -1
- package/dist/hub/roles/overview.d.ts +8 -0
- package/dist/hub/roles/overview.js +15 -0
- package/dist/hub/roles/overview.js.map +1 -0
- package/dist/hub/roles/resource-effects.d.ts +17 -0
- package/dist/hub/roles/resource-effects.js +62 -0
- package/dist/hub/roles/resource-effects.js.map +1 -0
- package/dist/hub/roles/review.d.ts +16 -0
- package/dist/hub/roles/review.js +42 -0
- package/dist/hub/roles/review.js.map +1 -0
- package/dist/hub/roles/writer.d.ts +14 -3
- package/dist/hub/roles/writer.js +64 -16
- package/dist/hub/roles/writer.js.map +1 -1
- package/dist/hub/room-context-model.d.ts +43 -0
- package/dist/hub/room-context-model.js +12 -0
- package/dist/hub/room-context-model.js.map +1 -0
- package/dist/hub/room-mention-feedback-model.d.ts +12 -0
- package/dist/hub/room-mention-feedback-model.js +12 -0
- package/dist/hub/room-mention-feedback-model.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +44 -10
- package/dist/hub/rooms/agents.js +277 -30
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/assistant.d.ts +1 -6
- package/dist/hub/rooms/assistant.js +7 -2
- package/dist/hub/rooms/assistant.js.map +1 -1
- package/dist/hub/rooms/automation.d.ts +24 -0
- package/dist/hub/rooms/automation.js +66 -0
- package/dist/hub/rooms/automation.js.map +1 -0
- package/dist/hub/rooms/buttons.d.ts +85 -0
- package/dist/hub/rooms/buttons.js +62 -0
- package/dist/hub/rooms/buttons.js.map +1 -0
- package/dist/hub/rooms/context-cursor.d.ts +18 -0
- package/dist/hub/rooms/context-cursor.js +61 -0
- package/dist/hub/rooms/context-cursor.js.map +1 -0
- package/dist/hub/rooms/context.d.ts +1 -1
- package/dist/hub/rooms/context.js +4 -4
- package/dist/hub/rooms/context.js.map +1 -1
- package/dist/hub/rooms/direct-view.d.ts +6 -2
- package/dist/hub/rooms/direct-view.js +3 -3
- package/dist/hub/rooms/direct-view.js.map +1 -1
- package/dist/hub/rooms/mentions.d.ts +15 -0
- package/dist/hub/rooms/mentions.js +43 -0
- package/dist/hub/rooms/mentions.js.map +1 -0
- package/dist/hub/rooms/post-replies.d.ts +23 -0
- package/dist/hub/rooms/post-replies.js +114 -0
- package/dist/hub/rooms/post-replies.js.map +1 -0
- package/dist/hub/rooms/schema.d.ts +9 -0
- package/dist/hub/rooms/schema.js +43 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +163 -4
- package/dist/hub/rooms/service.js +796 -26
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +29 -3
- package/dist/hub/rooms.d.ts +12 -2
- package/dist/hub/rooms.js +88 -18
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +1 -1
- package/dist/hub/runtime.js +17 -4
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +8 -1
- package/dist/hub/server.js +93 -7
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +2 -1
- package/dist/hub/session-directory-transition.js +10 -3
- package/dist/hub/session-directory-transition.js.map +1 -1
- package/dist/hub/sessions.d.ts +1 -1
- package/dist/hub/sessions.js +26 -4
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-commit.d.ts +32 -1
- package/dist/hub/settings-commit.js +11 -4
- package/dist/hub/settings-commit.js.map +1 -1
- package/dist/hub/settings-directory-ca.js +1 -1
- package/dist/hub/settings-directory-ca.js.map +1 -1
- package/dist/hub/settings-directory-control.js +7 -7
- package/dist/hub/settings-directory-control.js.map +1 -1
- package/dist/hub/settings-directory-http.d.ts +2 -0
- package/dist/hub/settings-directory-http.js +21 -6
- package/dist/hub/settings-directory-http.js.map +1 -1
- package/dist/hub/settings-directory-proof.d.ts +5 -1
- package/dist/hub/settings-directory-proof.js +49 -10
- package/dist/hub/settings-directory-proof.js.map +1 -1
- package/dist/hub/settings-directory-recovery.js +2 -1
- package/dist/hub/settings-directory-recovery.js.map +1 -1
- package/dist/hub/settings-directory-save.d.ts +2 -0
- package/dist/hub/settings-directory-save.js +9 -6
- package/dist/hub/settings-directory-save.js.map +1 -1
- package/dist/hub/settings-member-address-decision.js +3 -1
- package/dist/hub/settings-member-address-decision.js.map +1 -1
- package/dist/hub/settings-member-address-http.js +3 -2
- package/dist/hub/settings-member-address-http.js.map +1 -1
- package/dist/hub/settings-member-address-policy.d.ts +3 -2
- package/dist/hub/settings-member-address-policy.js +3 -1
- package/dist/hub/settings-member-address-policy.js.map +1 -1
- package/dist/hub/settings-web-address-decision.js +3 -1
- package/dist/hub/settings-web-address-decision.js.map +1 -1
- package/dist/hub/settings-web-address-http.js +3 -2
- package/dist/hub/settings-web-address-http.js.map +1 -1
- package/dist/hub/settings-web-address-policy.d.ts +3 -2
- package/dist/hub/settings-web-address-policy.js +3 -1
- package/dist/hub/settings-web-address-policy.js.map +1 -1
- package/dist/hub/sharing.js +2 -2
- package/dist/hub/sharing.js.map +1 -1
- package/dist/hub/socket.d.ts +1 -0
- package/dist/hub/socket.js +39 -2
- package/dist/hub/socket.js.map +1 -1
- package/dist/hub/teams/grant-schema.d.ts +2 -0
- package/dist/hub/teams/grant-schema.js +13 -0
- package/dist/hub/teams/grant-schema.js.map +1 -0
- package/dist/hub/teams/index.d.ts +12 -0
- package/dist/hub/teams/index.js +348 -0
- package/dist/hub/teams/index.js.map +1 -0
- package/dist/hub/teams/store.d.ts +38 -0
- package/dist/hub/teams/store.js +80 -0
- package/dist/hub/teams/store.js.map +1 -0
- package/dist/hub/teams/types.d.ts +76 -2
- package/dist/hub/types.d.ts +162 -5
- package/dist/hub-classic-private.d.ts +19 -0
- package/dist/hub-classic-private.js +64 -0
- package/dist/hub-classic-private.js.map +1 -0
- package/dist/hub-contact-windows.d.ts +11 -0
- package/dist/hub-contact-windows.js +56 -0
- package/dist/hub-contact-windows.js.map +1 -0
- package/dist/hub-pairing-summary.d.ts +1 -1
- package/dist/hub-pilot-trust-settings.d.ts +1 -1
- package/dist/hub-pilot-trust-settings.js +2 -2
- package/dist/hub-pilot-trust-settings.js.map +1 -1
- package/dist/hub-room-conversation.d.ts +14 -0
- package/dist/hub-room-conversation.js +60 -0
- package/dist/hub-room-conversation.js.map +1 -0
- package/dist/hub-update-notice.d.ts +12 -0
- package/dist/hub-update-notice.js +35 -0
- package/dist/hub-update-notice.js.map +1 -0
- package/dist/human-delivery-receipts.js +8 -0
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instance-config-impact.js +3 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instructions.js +3 -0
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +139 -24
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +19 -2
- package/dist/login-controller.js +26 -8
- package/dist/login-controller.js.map +1 -1
- package/dist/native-mcp.js +7 -5
- package/dist/native-mcp.js.map +1 -1
- package/dist/native-model-catalog.d.ts +15 -0
- package/dist/native-model-catalog.js +43 -3
- package/dist/native-model-catalog.js.map +1 -1
- package/dist/native-pane-lifecycle.js +3 -2
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/native-pane-tools.js +3 -0
- package/dist/native-pane-tools.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +14 -4
- package/dist/outbound-handlers.js +54 -1
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +17 -0
- package/dist/outbound-schemas.js +14 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +2 -0
- package/dist/public-web-gateway.js +152 -4
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/queued-handoffs.d.ts +16 -4
- package/dist/queued-handoffs.js +18 -1
- package/dist/queued-handoffs.js.map +1 -1
- package/dist/quickstart-api.d.ts +0 -1
- package/dist/quickstart-api.js +8 -1
- package/dist/quickstart-api.js.map +1 -1
- package/dist/reply-dedup.js +3 -1
- package/dist/reply-dedup.js.map +1 -1
- package/dist/reply-preview-files.d.ts +38 -0
- package/dist/reply-preview-files.js +142 -0
- package/dist/reply-preview-files.js.map +1 -0
- package/dist/reply-preview-spec.d.ts +18 -0
- package/dist/reply-preview-spec.js +27 -0
- package/dist/reply-preview-spec.js.map +1 -0
- package/dist/runtime-api.js +10 -2
- package/dist/runtime-api.js.map +1 -1
- package/dist/runtime-build-info.js +1 -0
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli-install.js +13 -10
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/runtime-cli.js +31 -5
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.d.ts +5 -0
- package/dist/runtime-client-store.js +28 -0
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +4 -0
- package/dist/runtime-client.js +33 -10
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +4 -2
- package/dist/runtime-coordinator.js +33 -6
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-install.d.ts +6 -1
- package/dist/runtime-install.js +12 -4
- package/dist/runtime-install.js.map +1 -1
- package/dist/runtime-pane-native.js +3 -1
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/runtime-personal-answer-only-probe.d.ts +3 -0
- package/dist/runtime-personal-answer-only-probe.js +134 -0
- package/dist/runtime-personal-answer-only-probe.js.map +1 -0
- package/dist/runtime-personal-answer-only.d.ts +16 -0
- package/dist/runtime-personal-answer-only.js +54 -0
- package/dist/runtime-personal-answer-only.js.map +1 -0
- package/dist/runtime-personal-answer.d.ts +30 -0
- package/dist/runtime-personal-answer.js +124 -0
- package/dist/runtime-personal-answer.js.map +1 -0
- package/dist/runtime-personal-preflight.d.ts +8 -0
- package/dist/runtime-personal-preflight.js +103 -0
- package/dist/runtime-personal-preflight.js.map +1 -0
- package/dist/runtime-personal-profile.d.ts +40 -0
- package/dist/runtime-personal-profile.js +81 -0
- package/dist/runtime-personal-profile.js.map +1 -0
- package/dist/runtime-personal-protocol.d.ts +10 -0
- package/dist/runtime-personal-protocol.js +15 -0
- package/dist/runtime-personal-protocol.js.map +1 -0
- package/dist/runtime-personal-stage.d.ts +37 -0
- package/dist/runtime-personal-stage.js +167 -0
- package/dist/runtime-personal-stage.js.map +1 -0
- package/dist/runtime-protocol.d.ts +2 -0
- package/dist/settings-api.d.ts +15 -0
- package/dist/settings-api.js +210 -76
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +32 -5
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +13 -2
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.js +18 -44
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/setup-form.js +10 -0
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-i18n.js +2 -2
- package/dist/setup-i18n.js.map +1 -1
- package/dist/subagent-records.js +53 -11
- package/dist/subagent-records.js.map +1 -1
- package/dist/subagent-service.js +3 -1
- package/dist/subagent-service.js.map +1 -1
- package/dist/tmux-manager.d.ts +2 -0
- package/dist/tmux-manager.js +2 -0
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tool-permissions.js +3 -0
- package/dist/tool-permissions.js.map +1 -1
- package/dist/tool-progress.d.ts +9 -0
- package/dist/tool-progress.js +141 -32
- package/dist/tool-progress.js.map +1 -1
- package/dist/transcript-needles.d.ts +4 -2
- package/dist/transcript-needles.js +35 -4
- package/dist/transcript-needles.js.map +1 -1
- package/dist/tunnel/lease.d.ts +14 -0
- package/dist/tunnel/lease.js +23 -0
- package/dist/tunnel/lease.js.map +1 -1
- package/dist/turn-reply-guard.d.ts +2 -2
- package/dist/turn-reply-guard.js +3 -3
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/types.d.ts +12 -2
- package/dist/ui/backend-signin.js +91 -22
- package/dist/ui/chat-activity-groups.js +41 -8
- package/dist/ui/chat-activity.js +5 -3
- package/dist/ui/chat-mentions.js +13 -0
- package/dist/ui/chat-msg-actions.js +3 -222
- package/dist/ui/chat-pins.js +106 -0
- package/dist/ui/chat-popout-header.js +2 -2
- package/dist/ui/chat-store.js +143 -7
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/chat-workspace.js +3 -3
- package/dist/ui/fleet-canvas.js +14 -5
- package/dist/ui/fleet-office-carousel.d.ts +14 -0
- package/dist/ui/fleet-office-carousel.js +95 -0
- package/dist/ui/fleet-office-editor.js +6 -1
- package/dist/ui/fleet-office-model.js +2 -1
- package/dist/ui/fleet-office-skin.js +1 -1
- package/dist/ui/fleet-office-store.js +14 -2
- package/dist/ui/fleet-office-zones.js +50 -9
- package/dist/ui/fleet-office.js +203 -24
- package/dist/ui/fleet-tasks.js +1 -1
- package/dist/ui/host-install.js +5 -2
- package/dist/ui/hub-admin-overview.js +189 -0
- package/dist/ui/hub-admin-rooms.js +1 -1
- package/dist/ui/hub-agent-copy.js +6 -2
- package/dist/ui/hub-ai-apps-strings.js +6 -0
- package/dist/ui/hub-ai-apps.js +83 -0
- package/dist/ui/hub-chat-strings.js +7 -0
- package/dist/ui/hub-client.js +89 -10
- package/dist/ui/hub-directory-editor-strings.js +2 -2
- package/dist/ui/hub-directory-editor.js +1 -0
- package/dist/ui/hub-fleet-versions.js +393 -0
- package/dist/ui/hub-grant-picker.js +7 -32
- package/dist/ui/hub-group-policy.js +26 -13
- package/dist/ui/hub-group-strings.js +29 -20
- package/dist/ui/hub-join-steps.js +27 -15
- package/dist/ui/hub-owner-strings.js +2 -2
- package/dist/ui/hub-personal-agent-strings.js +246 -0
- package/dist/ui/hub-personal-agent.js +117 -0
- package/dist/ui/hub-policy-subjects.js +35 -0
- package/dist/ui/hub-quick-pairing.js +7 -2
- package/dist/ui/hub-role-audit.js +39 -0
- package/dist/ui/hub-role-forms.js +99 -0
- package/dist/ui/hub-role-notices.js +11 -0
- package/dist/ui/hub-role-view.js +86 -0
- package/dist/ui/hub-roles-strings.js +439 -0
- package/dist/ui/hub-roles.js +83 -0
- package/dist/ui/hub-room-agent-strings.js +28 -0
- package/dist/ui/hub-room-composer.js +30 -11
- package/dist/ui/hub-room-favorites.js +63 -5
- package/dist/ui/hub-room-list.js +4 -3
- package/dist/ui/hub-room-members-strings.js +2 -2
- package/dist/ui/hub-room-members.js +7 -4
- package/dist/ui/hub-room-notify.js +161 -0
- package/dist/ui/hub-room-search.js +126 -0
- package/dist/ui/hub-room-settings.js +6 -0
- package/dist/ui/hub-room-source-strings.js +17 -0
- package/dist/ui/hub-room-source.js +34 -0
- package/dist/ui/hub-room-strings.js +49 -1
- package/dist/ui/hub-room-thread.js +300 -49
- package/dist/ui/hub-room-unread.js +2 -1
- package/dist/ui/hub-strings.js +10 -0
- package/dist/ui/hub-subject-picker.js +58 -0
- package/dist/ui/hub-switcher.js +2 -2
- package/dist/ui/hub-teams-strings.js +38 -0
- package/dist/ui/hub-teams.js +197 -0
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/hub-welcome.js +122 -75
- package/dist/ui/image-annotate.js +2 -283
- package/dist/ui/image-lightbox.js +2 -176
- package/dist/ui/image-zoom.js +2 -242
- package/dist/ui/model-picker.js +4 -1
- package/dist/ui/notice-hub-update.js +94 -0
- package/dist/ui/office-share-dialog.js +2 -2
- package/dist/ui/panel-chat.js +327 -28
- package/dist/ui/panel-details.js +3 -1
- package/dist/ui/panel-fleet.js +28 -7
- package/dist/ui/panel-hub.js +316 -105
- package/dist/ui/panel-log.js +4 -4
- package/dist/ui/panel-notices.js +3 -1
- package/dist/ui/panel-settings.js +45 -34
- package/dist/ui/preview-panel.js +3 -1
- package/dist/ui/reply-file-preview.js +64 -0
- package/dist/ui/runtime-commands.d.ts +2 -2
- package/dist/ui/runtime-commands.js +7 -4
- package/dist/ui/settings-access-overview.js +3 -3
- package/dist/ui/settings-appearance.js +7 -10
- package/dist/ui/settings-archive-files.js +109 -0
- package/dist/ui/settings-build-version.js +2 -2
- package/dist/ui/settings-catalog.js +22 -0
- package/dist/ui/settings-connector-strings.js +23 -0
- package/dist/ui/settings-connector.js +39 -0
- package/dist/ui/settings-guests-entries.js +16 -0
- package/dist/ui/settings-guests.js +57 -15
- package/dist/ui/settings-hub-connection.js +4 -5
- package/dist/ui/settings-hub-member-address.js +21 -6
- package/dist/ui/settings-hub-membership.js +6 -7
- package/dist/ui/settings-hub-section.js +4 -6
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-hub-updates.js +67 -0
- package/dist/ui/settings-hub-web-address.js +21 -5
- package/dist/ui/settings-hub.js +30 -4
- package/dist/ui/settings-layout.js +15 -13
- package/dist/ui/settings-registry.js +18 -3
- package/dist/ui/settings-shared-strings.js +2 -0
- package/dist/ui/settings-strings.js +13 -2
- package/dist/ui/settings-update.js +11 -5
- package/dist/ui/settings-web-authority.js +7 -5
- package/dist/ui/shared/access-overview.css +1 -1
- package/dist/ui/shared/accounts-keepalive.css +1 -1
- package/dist/ui/shared/accounts.css +1 -1
- package/dist/ui/shared/agent-sheet.js +116 -0
- package/dist/ui/shared/agent-widget.js +1 -2
- package/dist/ui/shared/app-i18n.js +4 -0
- package/dist/ui/shared/app-nav.js +9 -5
- package/dist/ui/shared/app-prefs.js +9 -3
- package/dist/ui/shared/app-route.js +4 -2
- package/dist/ui/shared/app-shell.js +178 -23
- package/dist/ui/shared/app-store.js +1 -1
- package/dist/ui/shared/app-stream.js +6 -2
- package/dist/ui/shared/app-swipe.js +3 -1
- package/dist/ui/shared/app-themes.js +3 -5
- package/dist/ui/shared/app-update.js +90 -8
- package/dist/ui/shared/app.css +472 -203
- package/dist/ui/shared/app.js +1 -1
- package/dist/ui/shared/chat-composer.js +29 -5
- package/dist/ui/shared/chat-msg-actions.js +231 -0
- package/dist/ui/shared/chat-strings.js +19 -4
- package/dist/ui/shared/chat-thread.js +121 -17
- package/dist/ui/shared/chat-work-bar.css +118 -0
- package/dist/ui/shared/connector-prompt.d.ts +3 -0
- package/dist/ui/shared/connector-prompt.js +20 -0
- package/dist/ui/shared/hub-ai-apps.css +12 -0
- package/dist/ui/shared/hub-chat.css +63 -4
- package/dist/ui/shared/hub-groups.css +19 -15
- package/dist/ui/shared/hub-owner.css +118 -3
- package/dist/ui/shared/hub-roles.css +99 -0
- package/dist/ui/shared/hub-rooms-u2.css +34 -0
- package/dist/ui/shared/hub-signin.css +2 -0
- package/dist/ui/shared/hub-teams.css +31 -0
- package/dist/ui/shared/hub.css +23 -5
- package/dist/ui/shared/image-annotate.css +22 -3
- package/dist/ui/shared/image-annotate.js +415 -0
- package/dist/ui/shared/image-lightbox.js +218 -0
- package/dist/ui/shared/image-zoom.js +316 -0
- package/dist/ui/shared/instance-nav.js +120 -15
- package/dist/ui/shared/loading.css +1 -1
- package/dist/ui/shared/model-picker.css +32 -4
- package/dist/ui/shared/owner-css.js +1 -1
- package/dist/ui/shared/page-head.js +3 -2
- package/dist/ui/shared/panel-view.js +7 -1
- package/dist/ui/shared/preview-panel-actions.js +1 -1
- package/dist/ui/shared/preview-panel.js +6 -2
- package/dist/ui/shared/reply-previews.css +4 -0
- package/dist/ui/shared/runtime-install.css +5 -0
- package/dist/ui/shared/settings-connector.css +7 -0
- package/dist/ui/shared/signin.js +27 -12
- package/dist/ui/shared/task-board.css +2 -2
- package/dist/ui/shared/theme.js +52 -0
- package/dist/ui/shared/tokens.css +27 -10
- package/dist/ui/shared/ui-icons.js +2 -0
- package/dist/ui/shared/ui-toast.js +4 -4
- package/dist/ui/shared/usage-dialog.js +113 -16
- package/dist/ui/shared/view-strings.js +28 -4
- package/dist/ui/shared/web-authorize.js +3 -3
- package/dist/ui/signin.html +4 -2
- package/dist/ui/structured-signin.js +64 -12
- package/dist/ui/web-terminal/terminal.css +1 -1
- package/dist/ui/workspace-panel.js +4 -3
- package/dist/update-dispatch.d.ts +8 -1
- package/dist/update-dispatch.js +16 -1
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-idle.d.ts +65 -0
- package/dist/update-idle.js +190 -0
- package/dist/update-idle.js.map +1 -0
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +9 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/usage/agent-output.js +1 -0
- package/dist/usage/agent-output.js.map +1 -1
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +2 -2
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/i18n.d.ts +1 -1
- package/dist/usage/i18n.js +2 -1
- package/dist/usage/i18n.js.map +1 -1
- package/dist/usage/profile-timeline.d.ts +2 -0
- package/dist/usage/profile-timeline.js +4 -0
- package/dist/usage/profile-timeline.js.map +1 -1
- package/dist/usage/providers.d.ts +4 -1
- package/dist/usage/providers.js +31 -16
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-history.d.ts +1 -1
- package/dist/usage/usage-api.d.ts +1 -1
- package/dist/usage/usage-api.js +4 -4
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/view-api.js +1 -1
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +9 -0
- package/dist/web-api.js +434 -188
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +5 -1
- package/dist/web-backend-login.js +8 -2
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-archive.d.ts +147 -0
- package/dist/web-chat-archive.js +530 -0
- package/dist/web-chat-archive.js.map +1 -0
- package/dist/web-chat-history.d.ts +76 -0
- package/dist/web-chat-history.js +145 -1
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-commands.d.ts +4 -3
- package/dist/web-commands.js +3 -2
- package/dist/web-commands.js.map +1 -1
- package/dist/web-guest-access.d.ts +3 -0
- package/dist/web-guest-access.js +6 -2
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-icons.js +3 -3
- package/dist/web-icons.js.map +1 -1
- package/dist/web-login.d.ts +7 -0
- package/dist/web-login.js +8 -1
- package/dist/web-login.js.map +1 -1
- package/dist/web-mentions.d.ts +2 -0
- package/dist/web-mentions.js +20 -0
- package/dist/web-mentions.js.map +1 -1
- package/dist/web-notices.d.ts +3 -0
- package/dist/web-notices.js +17 -2
- package/dist/web-notices.js.map +1 -1
- package/dist/web-office-store.d.ts +2 -0
- package/dist/web-office-store.js +15 -3
- package/dist/web-office-store.js.map +1 -1
- package/dist/web-pin-store.d.ts +58 -0
- package/dist/web-pin-store.js +170 -0
- package/dist/web-pin-store.js.map +1 -0
- package/dist/web-prefs.js +5 -1
- package/dist/web-prefs.js.map +1 -1
- package/dist/web-session-authorization.d.ts +24 -0
- package/dist/web-session-authorization.js +32 -0
- package/dist/web-session-authorization.js.map +1 -1
- package/dist/web-session.d.ts +6 -4
- package/dist/web-session.js +5 -3
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +24 -3
- package/dist/web-settings-patch.js +57 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +1 -1
- package/dist/web-shell-routes.js +1 -1
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-theme.js +2 -2
- package/dist/web-update.d.ts +15 -1
- package/dist/web-upload.d.ts +36 -0
- package/dist/web-upload.js +105 -5
- package/dist/web-upload.js.map +1 -1
- package/dist/windows-cli-api.d.ts +10 -7
- package/dist/windows-cli-api.js +13 -12
- package/dist/windows-cli-api.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +10 -0
- package/dist/windows-cli-worker.js +109 -14
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +10 -1
- package/dist/windows-cli.js +47 -13
- package/dist/windows-cli.js.map +1 -1
- package/package.json +1 -1
- package/templates/runtime-install/install.ps1 +24 -4
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
// #2333: zoom and pan for the chat image lightbox. The math is pure (a view box, the image's natural size, a scale and
|
|
2
|
+
// an offset) and unit-tested; `createZoom` applies it to one <img> in one stage as a CSSOM transform — translate then
|
|
3
|
+
// scale from the top-left corner, so the browser never re-decodes the picture, and no style attribute is written
|
|
4
|
+
// (#1300: the CSSOM is not governed by the page's style-src).
|
|
5
|
+
//
|
|
6
|
+
// Gestures: wheel and ctrl/⌘+wheel (a trackpad pinch arrives as ctrl+wheel) zoom around the cursor; once the image is
|
|
7
|
+
// larger than the view a plain wheel scrolls it instead, so a tall sheet reads like a page. A mouse click on the image
|
|
8
|
+
// toggles fit ↔ 100% at that point; a drag pans. Touch: two fingers pinch (and pan), one finger pans, a double tap
|
|
9
|
+
// toggles fit ↔ 100%. A gesture that moved is never also a click (the lightbox closes on a click on the dark area).
|
|
10
|
+
//
|
|
11
|
+
// M-3210 (the user, phone): one finger on a picture that fits (not zoomed in) swipes, as a phone's photo viewer does —
|
|
12
|
+
// sideways to the previous or next picture (`onSwipe(±1)`), up or down to close (`onDismiss`); the picture follows the
|
|
13
|
+
// finger, and a pull reports how far it went (`onPull(0…1)`: the lightbox fades its backdrop). A short, slow one springs
|
|
14
|
+
// back; past the first or the last picture (`canSwipe(±1)` false) it gives a little and springs back. A zoomed-in picture
|
|
15
|
+
// pans as before, a second finger turns a swipe into a pinch, and a mouse or a pen never swipes (the desk has ← → Esc).
|
|
16
|
+
|
|
17
|
+
/** The largest zoom: 8× the picture's own pixels. */
|
|
18
|
+
export const MAX_SCALE = 8;
|
|
19
|
+
/** One step of +/−, the keys or the toolbar. */
|
|
20
|
+
export const STEP = 1.25;
|
|
21
|
+
/** A pointer that moved less than this (CSS px) clicked or tapped; more, it dragged. */
|
|
22
|
+
export const SLOP = 4;
|
|
23
|
+
/** A swipe: sideways past this share of the view's width, or up/down past this share of its height — or a flick (faster
|
|
24
|
+
* than FLICK px/ms over more than FLICK_PX) — steps or closes; less springs back. */
|
|
25
|
+
export const SWIPE_X = 0.22, SWIPE_Y = 0.14, FLICK = 0.5, FLICK_PX = 30;
|
|
26
|
+
/** Two taps within this long and this close are a double tap. */
|
|
27
|
+
export const DOUBLE_TAP_MS = 300;
|
|
28
|
+
export const DOUBLE_TAP_PX = 24;
|
|
29
|
+
|
|
30
|
+
/** The whole picture in the view, never enlarged. view = { x, y, w, h } (stage coordinates); img = { w, h } natural. */
|
|
31
|
+
export function fitScale(view, img) {
|
|
32
|
+
return Math.min(1, view.w / img.w, view.h / img.h);
|
|
33
|
+
}
|
|
34
|
+
/** The picture's width across the view, never enlarged: a tall sheet then scrolls. */
|
|
35
|
+
export function fitWidthScale(view, img) {
|
|
36
|
+
return Math.min(1, view.w / img.w);
|
|
37
|
+
}
|
|
38
|
+
/** The scales a gesture may reach: down to fit (or 100%, for a picture smaller than the view), up to MAX_SCALE. */
|
|
39
|
+
export function scaleLimits(view, img) {
|
|
40
|
+
return { min: fitScale(view, img), max: Math.max(MAX_SCALE, fitScale(view, img)) };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Keep the picture in view: an axis it does not fill is centred; an axis it overflows has no gap at either edge.
|
|
45
|
+
* z = { s, tx, ty } (tx, ty: where the picture's top-left corner is, in stage coordinates). Returns a new z.
|
|
46
|
+
*/
|
|
47
|
+
export function clampPan(z, view, img) {
|
|
48
|
+
const axis = (t, size, start, len) => size <= len ? start + (len - size) / 2 : Math.min(start, Math.max(start + len - size, t));
|
|
49
|
+
return { s: z.s, tx: axis(z.tx, img.w * z.s, view.x, view.w), ty: axis(z.ty, img.h * z.s, view.y, view.h) };
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Scale to `s` (within the limits) keeping the picture point under (px, py) where it is. */
|
|
53
|
+
export function zoomAt(z, s, px, py, view, img) {
|
|
54
|
+
const { min, max } = scaleLimits(view, img);
|
|
55
|
+
const to = Math.min(max, Math.max(min, s));
|
|
56
|
+
const k = to / z.s;
|
|
57
|
+
return clampPan({ s: to, tx: px - (px - z.tx) * k, ty: py - (py - z.ty) * k }, view, img);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** M-3267: the picture pixel under a stage point (the inverse of imageToStage), at any zoom and pan. */
|
|
61
|
+
export function stageToImage(z, x, y) {
|
|
62
|
+
return [(x - z.tx) / z.s, (y - z.ty) / z.s];
|
|
63
|
+
}
|
|
64
|
+
/** M-3267: where a picture pixel is on the stage. */
|
|
65
|
+
export function imageToStage(z, x, y) {
|
|
66
|
+
return [z.tx + x * z.s, z.ty + y * z.s];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* M-3267: a two-finger pinch from `start` (the view when it began, fingers at p0 and p1) to fingers at q0 and q1: the
|
|
70
|
+
* scale grows as the fingers spread, and the picture point under their first midpoint follows their midpoint. Within
|
|
71
|
+
* the limits, and clamped like any pan.
|
|
72
|
+
*/
|
|
73
|
+
export function pinchView(start, p0, p1, q0, q1, view, img) {
|
|
74
|
+
const d0 = Math.hypot(p1[0] - p0[0], p1[1] - p0[1]), d1 = Math.hypot(q1[0] - q0[0], q1[1] - q0[1]);
|
|
75
|
+
const { min, max } = scaleLimits(view, img);
|
|
76
|
+
const s = Math.min(max, Math.max(min, d0 > 1 && d1 > 1 ? start.s * (d1 / d0) : start.s));
|
|
77
|
+
const [ix, iy] = stageToImage(start, (p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2);
|
|
78
|
+
const mx = (q0[0] + q1[0]) / 2, my = (q0[1] + q1[1]) / 2;
|
|
79
|
+
return clampPan({ s, tx: mx - ix * s, ty: my - iy * s }, view, img);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** Fit: the whole picture, centred. */
|
|
83
|
+
export function fitView(view, img) {
|
|
84
|
+
return clampPan({ s: fitScale(view, img), tx: 0, ty: 0 }, view, img);
|
|
85
|
+
}
|
|
86
|
+
/** Fit width: the picture across the view, from its top. */
|
|
87
|
+
export function fitWidthView(view, img) {
|
|
88
|
+
return clampPan({ s: fitWidthScale(view, img), tx: 0, ty: view.y }, view, img);
|
|
89
|
+
}
|
|
90
|
+
/** Whether the picture is larger than the view on either axis (then a plain wheel scrolls it, and a drag pans it). */
|
|
91
|
+
export function overflows(z, view, img) {
|
|
92
|
+
return img.w * z.s > view.w + 0.5 || img.h * z.s > view.h + 0.5;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const now = () => (typeof performance !== "undefined" ? performance.now() : Date.now());
|
|
96
|
+
/** Wheel distance in CSS px (a line is 16, a page the view's height). */
|
|
97
|
+
function wheelPx(e, view) {
|
|
98
|
+
const unit = e.deltaMode === 1 ? 16 : e.deltaMode === 2 ? view.h : 1;
|
|
99
|
+
return { dx: (e.deltaX || 0) * unit, dy: (e.deltaY || 0) * unit };
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Drive one picture in one stage. `onChange({ scale, fit, mode })` after every change (mode: "fit" | "width" | "free").
|
|
104
|
+
* Returns { reset, fit, fitWidth, actual, zoomBy, toggle, destroy }. Nothing happens until the picture has loaded.
|
|
105
|
+
*/
|
|
106
|
+
export function createZoom({ stage, img, onChange, onSwipe = null, canSwipe = null, onDismiss = null, onPull = null }) {
|
|
107
|
+
let nat = null; // { w, h } once loaded
|
|
108
|
+
let z = { s: 1, tx: 0, ty: 0 };
|
|
109
|
+
let mode = "fit";
|
|
110
|
+
const pointers = new Map(); // pointerId → { x, y }
|
|
111
|
+
let gesture = null; // { kind: "drag" | "pinch" | "swipe" | "pull", ... }
|
|
112
|
+
let snapTimer = 0; // a swipe springing back (the picture eases to where it is)
|
|
113
|
+
let moved = false; // the gesture now ending moved: its click is not a click
|
|
114
|
+
let lastTap = null; // { t, x, y } of the last touch tap
|
|
115
|
+
let lastType = "mouse"; // the pointer type of the last press: a touch tap's click never toggles (double tap does);
|
|
116
|
+
// a mouse or a pen click does, and neither runs the double-tap logic
|
|
117
|
+
|
|
118
|
+
const view = () => {
|
|
119
|
+
const r = stage.getBoundingClientRect();
|
|
120
|
+
const cs = typeof getComputedStyle === "function" ? getComputedStyle(stage) : null;
|
|
121
|
+
const px = (k) => (cs ? parseFloat(cs[k]) || 0 : 0);
|
|
122
|
+
const x = px("paddingLeft"), y = px("paddingTop");
|
|
123
|
+
return { x, y, w: Math.max(1, r.width - x - px("paddingRight")), h: Math.max(1, r.height - y - px("paddingBottom")) };
|
|
124
|
+
};
|
|
125
|
+
const at = (e) => { const r = stage.getBoundingClientRect(); return { x: e.clientX - r.left, y: e.clientY - r.top }; };
|
|
126
|
+
// A pointer: where it is in the stage (zoom and pinch points) and on the screen (cx, cy: how far a finger went). M-3210:
|
|
127
|
+
// a drag, swipe or pull is measured on the screen — the stage itself moves while the next picture slides in (200 ms),
|
|
128
|
+
// and a second swipe started then was measured against the moving stage: a slow 35 px swipe read as 135 px and stepped.
|
|
129
|
+
const pt = (e) => ({ ...at(e), cx: e.clientX, cy: e.clientY });
|
|
130
|
+
const apply = () => {
|
|
131
|
+
img.style.transform = `translate(${z.tx}px, ${z.ty}px) scale(${z.s})`;
|
|
132
|
+
stage.classList.toggle("lb-zoomed", !!nat && overflows(z, view(), nat));
|
|
133
|
+
if (onChange) onChange({ scale: z.s, fit: nat ? fitScale(view(), nat) : 1, mode });
|
|
134
|
+
};
|
|
135
|
+
const set = (next, m = "free") => { if (!nat) return; z = next; mode = m; apply(); };
|
|
136
|
+
// A swipe in progress: the picture drawn dx/dy off where it is (z itself unchanged).
|
|
137
|
+
const drawOff = (dx, dy) => { img.style.transform = `translate(${z.tx + dx}px, ${z.ty + dy}px) scale(${z.s})`; };
|
|
138
|
+
const snapBack = () => {
|
|
139
|
+
img.classList.add("lb-snap");
|
|
140
|
+
apply();
|
|
141
|
+
if (onPull) onPull(0);
|
|
142
|
+
if (snapTimer && typeof clearTimeout === "function") clearTimeout(snapTimer);
|
|
143
|
+
snapTimer = typeof setTimeout === "function" ? setTimeout(() => { snapTimer = 0; img.classList.remove("lb-snap"); }, 220) : 0;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
const api = {
|
|
147
|
+
/** A new picture (or the first): read its size and fit it. */
|
|
148
|
+
reset() {
|
|
149
|
+
nat = img.naturalWidth > 0 && img.naturalHeight > 0 ? { w: img.naturalWidth, h: img.naturalHeight } : null;
|
|
150
|
+
img.classList.toggle("lb-ready", !!nat);
|
|
151
|
+
img.classList.remove("lb-err");
|
|
152
|
+
if (nat) set(fitView(view(), nat), "fit");
|
|
153
|
+
},
|
|
154
|
+
fit() { if (nat) set(fitView(view(), nat), "fit"); },
|
|
155
|
+
fitWidth() { if (nat) set(fitWidthView(view(), nat), "width"); },
|
|
156
|
+
/** 100% at a point (default: the middle of the view). */
|
|
157
|
+
actual(px, py) {
|
|
158
|
+
if (!nat) return;
|
|
159
|
+
const v = view();
|
|
160
|
+
set(zoomAt(z, 1, px ?? v.x + v.w / 2, py ?? v.y + v.h / 2, v, nat));
|
|
161
|
+
},
|
|
162
|
+
zoomBy(factor, px, py) {
|
|
163
|
+
if (!nat) return;
|
|
164
|
+
const v = view();
|
|
165
|
+
set(zoomAt(z, z.s * factor, px ?? v.x + v.w / 2, py ?? v.y + v.h / 2, v, nat));
|
|
166
|
+
},
|
|
167
|
+
/** Fit ↔ 100%: anything but fit goes back to fit. */
|
|
168
|
+
toggle(px, py) {
|
|
169
|
+
if (!nat) return;
|
|
170
|
+
if (mode === "fit" && Math.abs(z.s - 1) > 1e-6) api.actual(px, py); else api.fit();
|
|
171
|
+
},
|
|
172
|
+
destroy() {
|
|
173
|
+
if (snapTimer && typeof clearTimeout === "function") clearTimeout(snapTimer);
|
|
174
|
+
stage.removeEventListener("wheel", onWheel);
|
|
175
|
+
stage.removeEventListener("pointerdown", onDown);
|
|
176
|
+
stage.removeEventListener("pointermove", onMove);
|
|
177
|
+
stage.removeEventListener("pointerup", onUp);
|
|
178
|
+
stage.removeEventListener("pointercancel", onUp);
|
|
179
|
+
stage.removeEventListener("click", onClick, true);
|
|
180
|
+
img.removeEventListener("load", api.reset);
|
|
181
|
+
img.removeEventListener("error", onError);
|
|
182
|
+
if (typeof window !== "undefined") window.removeEventListener("resize", onResize);
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
function onWheel(e) {
|
|
187
|
+
if (!nat) return;
|
|
188
|
+
e.preventDefault();
|
|
189
|
+
const v = view();
|
|
190
|
+
const { dx, dy } = wheelPx(e, v);
|
|
191
|
+
if (e.ctrlKey || e.metaKey || !overflows(z, v, nat)) {
|
|
192
|
+
const p = at(e);
|
|
193
|
+
// A pinch on a trackpad sends small ctrl+wheel steps; a wheel notch is ~100 px.
|
|
194
|
+
set(zoomAt(z, z.s * Math.exp(-dy * (e.ctrlKey ? 0.01 : 0.002)), p.x, p.y, v, nat));
|
|
195
|
+
} else {
|
|
196
|
+
// Shift+wheel on a mouse scrolls sideways.
|
|
197
|
+
const sx = e.shiftKey && !dx ? dy : dx, sy = e.shiftKey && !dx ? 0 : dy;
|
|
198
|
+
set(clampPan({ s: z.s, tx: z.tx - sx, ty: z.ty - sy }, v, nat), mode === "width" ? "width" : "free");
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function onDown(e) {
|
|
202
|
+
if (!nat || (e.pointerType === "mouse" && e.button !== 0)) return;
|
|
203
|
+
lastType = e.pointerType || "mouse";
|
|
204
|
+
pointers.set(e.pointerId, pt(e));
|
|
205
|
+
// No pointer capture yet: it would retarget the click to the stage, and a click on the picture is not one on the
|
|
206
|
+
// dark area. Captured only once the pointer moves (capture()).
|
|
207
|
+
if (pointers.size === 1) { moved = false; gesture = { kind: "drag", from: pt(e), z0: z, t0: now(), swipes: e.pointerType === "touch" && !!(onSwipe || onDismiss) }; }
|
|
208
|
+
else if (pointers.size === 2) {
|
|
209
|
+
// A swipe that gets a second finger: a pinch, from where the picture is.
|
|
210
|
+
if (gesture && (gesture.kind === "swipe" || gesture.kind === "pull")) { apply(); if (onPull) onPull(0); }
|
|
211
|
+
const [a, b] = [...pointers.values()];
|
|
212
|
+
gesture = { kind: "pinch", d0: Math.hypot(b.x - a.x, b.y - a.y) || 1, m0: { x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 }, z0: z };
|
|
213
|
+
moved = true; // two fingers: never a tap
|
|
214
|
+
for (const id of pointers.keys()) capture(id);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function onMove(e) {
|
|
218
|
+
if (!gesture || !pointers.has(e.pointerId)) return;
|
|
219
|
+
pointers.set(e.pointerId, pt(e));
|
|
220
|
+
const v = view();
|
|
221
|
+
if (gesture.kind === "pinch" && pointers.size >= 2) {
|
|
222
|
+
const [a, b] = [...pointers.values()];
|
|
223
|
+
const m = { x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 };
|
|
224
|
+
const { z0, m0, d0 } = gesture;
|
|
225
|
+
const s = z0.s * (Math.hypot(b.x - a.x, b.y - a.y) / d0);
|
|
226
|
+
// The picture point under the fingers' first midpoint follows the midpoint (zoom and pan in one).
|
|
227
|
+
const zoomed = zoomAt(z0, s, m0.x, m0.y, v, nat);
|
|
228
|
+
set(clampPan({ s: zoomed.s, tx: zoomed.tx + (m.x - m0.x), ty: zoomed.ty + (m.y - m0.y) }, v, nat));
|
|
229
|
+
} else if (gesture.kind === "drag") {
|
|
230
|
+
const p = pointers.get(e.pointerId);
|
|
231
|
+
const dx = p.cx - gesture.from.cx, dy = p.cy - gesture.from.cy;
|
|
232
|
+
if (!moved && Math.hypot(dx, dy) < SLOP) return;
|
|
233
|
+
if (!moved) capture(e.pointerId);
|
|
234
|
+
moved = true;
|
|
235
|
+
if (overflows(gesture.z0, v, nat)) set(clampPan({ s: gesture.z0.s, tx: gesture.z0.tx + dx, ty: gesture.z0.ty + dy }, v, nat), mode === "width" ? "width" : "free");
|
|
236
|
+
else if (gesture.swipes) {
|
|
237
|
+
// A picture that fits, under a finger: its first clear direction decides — sideways steps, up or down closes.
|
|
238
|
+
gesture = { ...gesture, kind: Math.abs(dx) > Math.abs(dy) ? "swipe" : "pull" };
|
|
239
|
+
onMove(e);
|
|
240
|
+
}
|
|
241
|
+
} else if (gesture.kind === "swipe") {
|
|
242
|
+
const dx = pointers.get(e.pointerId).cx - gesture.from.cx;
|
|
243
|
+
const dir = dx < 0 ? 1 : -1; // to the left: the next picture
|
|
244
|
+
drawOff(onSwipe && (!canSwipe || canSwipe(dir)) ? dx : dx * 0.3, 0);
|
|
245
|
+
} else if (gesture.kind === "pull") {
|
|
246
|
+
const dy = pointers.get(e.pointerId).cy - gesture.from.cy;
|
|
247
|
+
drawOff(0, dy);
|
|
248
|
+
if (onPull) onPull(Math.min(1, Math.abs(dy) / (v.h * 0.5)));
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function onUp(e) {
|
|
252
|
+
if (!pointers.has(e.pointerId)) return;
|
|
253
|
+
const p = pointers.get(e.pointerId);
|
|
254
|
+
pointers.delete(e.pointerId);
|
|
255
|
+
if (pointers.size === 1 && gesture && gesture.kind === "pinch") {
|
|
256
|
+
// One finger left after a pinch: it pans on from here.
|
|
257
|
+
const [rest] = [...pointers.values()];
|
|
258
|
+
gesture = { kind: "drag", from: rest, z0: z };
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
if (pointers.size > 0) return;
|
|
262
|
+
if (gesture && (gesture.kind === "swipe" || gesture.kind === "pull")) {
|
|
263
|
+
if (e.type === "pointercancel") { gesture = null; snapBack(); return; } // the browser took the touch back
|
|
264
|
+
const g = gesture, v = view(), dt = Math.max(1, now() - g.t0);
|
|
265
|
+
const d = g.kind === "swipe" ? p.cx - g.from.cx : p.cy - g.from.cy, span = g.kind === "swipe" ? v.w * SWIPE_X : v.h * SWIPE_Y;
|
|
266
|
+
const far = Math.abs(d) > span || (Math.abs(d) > FLICK_PX && Math.abs(d) / dt > FLICK);
|
|
267
|
+
gesture = null;
|
|
268
|
+
const dir = d < 0 ? 1 : -1;
|
|
269
|
+
if (far && g.kind === "swipe" && onSwipe && (!canSwipe || canSwipe(dir))) { onSwipe(dir); return; }
|
|
270
|
+
if (far && g.kind === "pull" && onDismiss) { onDismiss(); return; }
|
|
271
|
+
snapBack();
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
const tapped = !moved && gesture && gesture.kind === "drag";
|
|
275
|
+
gesture = null;
|
|
276
|
+
// Only a finger double-taps: a mouse or a pen clicks (onClick toggles), so a pen tap must not also count here.
|
|
277
|
+
if (!tapped || e.pointerType !== "touch") return;
|
|
278
|
+
// A touch tap: a second one soon and near is a double tap — fit ↔ 100% there.
|
|
279
|
+
const t = now();
|
|
280
|
+
if (lastTap && t - lastTap.t < DOUBLE_TAP_MS && Math.hypot(p.x - lastTap.x, p.y - lastTap.y) < DOUBLE_TAP_PX) {
|
|
281
|
+
lastTap = null;
|
|
282
|
+
moved = true; // its click neither closes nor toggles again
|
|
283
|
+
api.toggle(p.x, p.y);
|
|
284
|
+
} else lastTap = { t, x: p.x, y: p.y };
|
|
285
|
+
}
|
|
286
|
+
/** A drag or pinch keeps its pointers even off the stage. */
|
|
287
|
+
function capture(id) {
|
|
288
|
+
if (stage.setPointerCapture) { try { stage.setPointerCapture(id); } catch { /* already gone */ } }
|
|
289
|
+
}
|
|
290
|
+
// Capture phase: before the lightbox's own click (which closes on the dark area) can see it. A click that ended a
|
|
291
|
+
// drag or a double tap is swallowed; a mouse click on the picture toggles fit ↔ 100% there. A touch tap's click on
|
|
292
|
+
// the picture does nothing (a single tap waits for a double tap); on the dark area it still closes.
|
|
293
|
+
function onClick(e) {
|
|
294
|
+
if (moved) { moved = false; e.stopPropagation(); e.preventDefault(); return; }
|
|
295
|
+
if (e.target === img && nat && lastType !== "touch") {
|
|
296
|
+
const p = at(e);
|
|
297
|
+
e.stopPropagation();
|
|
298
|
+
api.toggle(p.x, p.y);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
// A picture that does not load is shown as the browser shows a broken one, where the old lightbox put it.
|
|
302
|
+
const onError = () => { nat = null; img.classList.add("lb-err"); img.classList.remove("lb-ready"); if (onChange) onChange(null); };
|
|
303
|
+
const onResize = () => { if (!nat) return; if (mode === "fit") api.fit(); else if (mode === "width") api.fitWidth(); else set(clampPan(z, view(), nat)); };
|
|
304
|
+
|
|
305
|
+
stage.addEventListener("wheel", onWheel, { passive: false });
|
|
306
|
+
stage.addEventListener("pointerdown", onDown);
|
|
307
|
+
stage.addEventListener("pointermove", onMove);
|
|
308
|
+
stage.addEventListener("pointerup", onUp);
|
|
309
|
+
stage.addEventListener("pointercancel", onUp);
|
|
310
|
+
stage.addEventListener("click", onClick, true);
|
|
311
|
+
img.addEventListener("load", api.reset);
|
|
312
|
+
img.addEventListener("error", onError);
|
|
313
|
+
if (typeof window !== "undefined") window.addEventListener("resize", onResize);
|
|
314
|
+
if (img.complete) api.reset();
|
|
315
|
+
return api;
|
|
316
|
+
}
|
|
@@ -334,6 +334,49 @@ export function labelOf(it) {
|
|
|
334
334
|
return d || nameOf(it);
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
+
// M-3129: a synced density choice; the same row links, groups and menus stay mounted.
|
|
338
|
+
// M-3252 (the user, 11-16): the phone's drawer and the desktop's sidebar keep their own — nav.density is the desktop
|
|
339
|
+
// sidebar's (the one value both had until now), nav.densityPhone the drawer's (a window under 900 px: the layout where the
|
|
340
|
+
// sidebar is a drawer, app-shell's narrow()). Both still follow the person between devices. The user's defaults: the
|
|
341
|
+
// desktop 精簡 (compact), the phone 詳細 (detailed). The split keeps a value already chosen as the desktop's; the phone
|
|
342
|
+
// starts at 詳細 until one is chosen there. The list's ⋯ (自訂) and Settings → This device show and change the one for the
|
|
343
|
+
// layout in force.
|
|
344
|
+
const DENSITY_KEY = "agend_nav_density", PHONE_DENSITY_KEY = "agend_nav_density_phone";
|
|
345
|
+
const DRAWER_MEDIA = "(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)";
|
|
346
|
+
const drawerLayout = () => { try { return typeof matchMedia === "function" && matchMedia(DRAWER_MEDIA).matches; } catch { return false; } };
|
|
347
|
+
const chosen = (v) => (v === "compact" || v === "detailed" ? v : null);
|
|
348
|
+
function choiceOf(key, ls) { const p = prefInForce(key); return chosen(p ? p.value : stored(ls)); }
|
|
349
|
+
function readSidebarDensity() {
|
|
350
|
+
return drawerLayout() ? (choiceOf("nav.densityPhone", PHONE_DENSITY_KEY) ?? "detailed") : (choiceOf("nav.density", DENSITY_KEY) ?? "compact");
|
|
351
|
+
}
|
|
352
|
+
const densityNow = () => ({ value: readSidebarDensity(), layout: drawerLayout() ? "phone" : "desk" });
|
|
353
|
+
export const sidebarDensityStore = createStore(densityNow());
|
|
354
|
+
/** The layout's own value again (a window that crossed 900 px; another device's change). */
|
|
355
|
+
export const refreshDensity = () => { const n = densityNow(), c = sidebarDensityStore.get(); if (n.value !== c.value || n.layout !== c.layout) sidebarDensityStore.set(n); };
|
|
356
|
+
export function setSidebarDensity(value) {
|
|
357
|
+
const density = value === "compact" ? "compact" : "detailed", phone = drawerLayout();
|
|
358
|
+
savePref(phone ? "nav.densityPhone" : "nav.density", density);
|
|
359
|
+
sidebarDensityStore.set({ value: density, layout: phone ? "phone" : "desk" });
|
|
360
|
+
}
|
|
361
|
+
onPrefsChanged((keys) => { if (keys.has("nav.density") || keys.has("nav.densityPhone")) refreshDensity(); });
|
|
362
|
+
// A window that crosses 900 px (a tablet turned, a desktop window narrowed) shows that layout's own.
|
|
363
|
+
try { const mq = typeof matchMedia === "function" ? matchMedia(DRAWER_MEDIA) : null; if (mq && typeof mq.addEventListener === "function") mq.addEventListener("change", refreshDensity); } catch { /* no media queries */ }
|
|
364
|
+
|
|
365
|
+
// M-3212 (the user, 11-16): the phone's drawer — 滿版, the screen's width (the default since M-3211), or 窄版, 300 px with
|
|
366
|
+
// the page beside it (as before). This browser's own choice (localStorage, not a synced pref: a phone and a tablet may
|
|
367
|
+
// want different ones); a desk never shows the drawer, so it changes nothing there. Another tab's change follows.
|
|
368
|
+
const PHONE_DRAWER_KEY = "agend_phone_drawer";
|
|
369
|
+
const readPhoneDrawer = () => (stored(PHONE_DRAWER_KEY) === "narrow" ? "narrow" : "full");
|
|
370
|
+
export const phoneDrawerStore = createStore({ value: readPhoneDrawer() });
|
|
371
|
+
export function setPhoneDrawer(value) {
|
|
372
|
+
const v = value === "narrow" ? "narrow" : "full";
|
|
373
|
+
phoneDrawerStore.set({ value: v });
|
|
374
|
+
try { if (v === "narrow") localStorage.setItem(PHONE_DRAWER_KEY, v); else localStorage.removeItem(PHONE_DRAWER_KEY); } catch { /* storage off: this page only */ }
|
|
375
|
+
}
|
|
376
|
+
if (typeof window !== "undefined" && typeof window.addEventListener === "function") {
|
|
377
|
+
window.addEventListener("storage", (e) => { if (!e || e.key === PHONE_DRAWER_KEY || e.key === null) phoneDrawerStore.set({ value: readPhoneDrawer() }); });
|
|
378
|
+
}
|
|
379
|
+
|
|
337
380
|
// ── #1722: both names — which one leads is a synced preference (#1665 "names.primary", default the nickname) ──
|
|
338
381
|
const NAMES_KEY = "agend_names_primary";
|
|
339
382
|
function readNamesPrimary() {
|
|
@@ -349,6 +392,18 @@ export function setNamesPrimary(value) {
|
|
|
349
392
|
savePref("names.primary", primary);
|
|
350
393
|
}
|
|
351
394
|
onPrefsChanged((keys) => { if (keys.has("names.primary")) namesStore.set({ primary: readNamesPrimary() }); });
|
|
395
|
+
// One compact-name choice for both layouts. Unset preserves the existing leading-name behavior, including native rows.
|
|
396
|
+
function readCompactName() {
|
|
397
|
+
const p = prefInForce("nav.compactName"), value = p ? p.value : stored("agend_nav_compact_name");
|
|
398
|
+
return value === "nickname" || value === "instance" ? value : null;
|
|
399
|
+
}
|
|
400
|
+
export const compactNameStore = createStore({ value: readCompactName() });
|
|
401
|
+
export function setCompactName(value) {
|
|
402
|
+
const name = value === "instance" ? "instance" : "nickname";
|
|
403
|
+
compactNameStore.set({ value: name });
|
|
404
|
+
savePref("nav.compactName", name);
|
|
405
|
+
}
|
|
406
|
+
onPrefsChanged((keys) => { if (keys.has("nav.compactName")) compactNameStore.set({ value: readCompactName() }); });
|
|
352
407
|
/**
|
|
353
408
|
* An instance's two names as the web shows them: the one leading (`primary`) and the other (`secondary`), or "" when
|
|
354
409
|
* there is no other — no nickname, or a nickname that is the instance name itself (one line).
|
|
@@ -418,6 +473,12 @@ export function InstanceAvatar({ it, state, cli = false }) {
|
|
|
418
473
|
? html`<span class="av-cli" aria-hidden="true" title=${backendLabel(it.backend)}>${CLI_MONOGRAM[it.backend] || "·"}</span>` : null}</span>`;
|
|
419
474
|
}
|
|
420
475
|
|
|
476
|
+
function InstanceStatusDot({ state }) {
|
|
477
|
+
const [cls] = DOT[state] || DOT.stopped;
|
|
478
|
+
const label = dotLabel(state);
|
|
479
|
+
return html`<span class=${`inst-status dot ${cls}`} role="img" aria-label=${label} title=${label}></span>`;
|
|
480
|
+
}
|
|
481
|
+
|
|
421
482
|
// ── The list ──
|
|
422
483
|
|
|
423
484
|
const statusText = (facet) => (facet === "needs" ? t("app.needsYou") : facet === "starting" ? t("app.statusStarting") : facet === "working" ? t("app.statusWorking") : facet === "idle" ? t("app.statusIdle")
|
|
@@ -458,9 +519,22 @@ function byRecentReply(age) {
|
|
|
458
519
|
const RECENT_GROUP = "\u0000recent";
|
|
459
520
|
|
|
460
521
|
/** #2179: the sort button and its menu — how the list sorts, said on the button. */
|
|
461
|
-
function SortMenu({ sort }) {
|
|
522
|
+
function SortMenu({ sort, phone = false }) {
|
|
462
523
|
const [open, setOpen] = useState(false);
|
|
463
524
|
const box = useRef(null);
|
|
525
|
+
const popup = useRef(null);
|
|
526
|
+
useLayoutEffect(() => {
|
|
527
|
+
if (!open || !popup.current || !window.innerHeight) return undefined;
|
|
528
|
+
const fit = () => {
|
|
529
|
+
const menu = popup.current;
|
|
530
|
+
if (!menu) return;
|
|
531
|
+
const clip = menu.closest(".side-section")?.getBoundingClientRect();
|
|
532
|
+
const bottom = Math.min(window.innerHeight, clip?.bottom ?? window.innerHeight);
|
|
533
|
+
menu.style.maxHeight = `${Math.max(0, bottom - menu.getBoundingClientRect().top - 8)}px`;
|
|
534
|
+
};
|
|
535
|
+
fit(); window.addEventListener("resize", fit); window.addEventListener("scroll", fit, true);
|
|
536
|
+
return () => { window.removeEventListener("resize", fit); window.removeEventListener("scroll", fit, true); };
|
|
537
|
+
}, [open]);
|
|
464
538
|
useLayoutEffect(() => {
|
|
465
539
|
if (!open) return undefined;
|
|
466
540
|
const doc = box.current && box.current.ownerDocument;
|
|
@@ -472,18 +546,41 @@ function SortMenu({ sort }) {
|
|
|
472
546
|
return () => { doc.removeEventListener("pointerdown", away, true); doc.removeEventListener("keydown", esc, true); };
|
|
473
547
|
}, [open]);
|
|
474
548
|
const recent = sort.mode === "recent";
|
|
549
|
+
// M-3164: the list's density, the same synced choice as Settings (nav.density, M-3129): either place changes it at once, for both.
|
|
550
|
+
// M-3252: the one for the layout in force (the drawer's on a phone, the sidebar's on a desktop).
|
|
551
|
+
const density = useStore(sidebarDensityStore).value;
|
|
552
|
+
const leadingName = useStore(namesStore).primary;
|
|
553
|
+
const compactName = useStore(compactNameStore).value ?? leadingName;
|
|
554
|
+
const drawer = useStore(phoneDrawerStore).value; // M-3212
|
|
555
|
+
const drawerRadio = (value, label) => html`<label class="nav-sort-opt"><input type="radio" name="nav-sort-drawer" value=${value}
|
|
556
|
+
checked=${drawer === value} onChange=${() => setPhoneDrawer(value)} /><span>${label}</span></label>`;
|
|
557
|
+
const densityRadio = (value, label) => html`<label class="nav-sort-opt"><input type="radio" name="nav-sort-density" value=${value}
|
|
558
|
+
checked=${density === value} onChange=${() => setSidebarDensity(value)} /><span>${label}</span></label>`;
|
|
475
559
|
const radio = (group, value, label, hint) => html`<label class="nav-sort-opt"><input type="radio" name=${`nav-sort-${group}`} value=${value}
|
|
476
560
|
checked=${sort[group] === value} onChange=${() => setNavSort({ [group]: value })} /><span>${label}${hint ? html`<span class="nav-sort-hint">${hint}</span>` : null}</span></label>`;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
561
|
+
// M-3212: `phone` — the same menu from an icon beside the phone drawer's filter (its list header, with the chip, is hidden there).
|
|
562
|
+
return html`<div class=${`nav-sort${phone ? " nav-sort-phone" : ""}`} ref=${box}>
|
|
563
|
+
${phone ? html`<button type="button" class=${`icon-btn nav-sort-btn${recent ? " on" : ""}`} aria-haspopup="dialog" aria-expanded=${open ? "true" : "false"}
|
|
564
|
+
aria-label=${`${tn("sortTitle")}: ${tn(recent ? "sortRecent" : "sortCustom")}`} title=${tn("sortTitle")} onClick=${() => setOpen(!open)}><${Icon} name="sort" /></button>`
|
|
565
|
+
: html`<button type="button" class=${`chip-btn nav-sort-btn${recent ? " on" : ""}`} aria-haspopup="dialog" aria-expanded=${open ? "true" : "false"}
|
|
566
|
+
title=${tn("sortTitle")} onClick=${() => setOpen(!open)}><${Icon} name="sort" size=${12} /><span>${tn(recent ? "sortRecent" : "sortCustom")}</span></button>`}
|
|
567
|
+
${open ? html`<div ref=${popup} class="nav-sort-menu" role="dialog" aria-label=${tn("sortTitle")}>
|
|
481
568
|
<fieldset><legend>${tn("sortTitle")}</legend>
|
|
482
569
|
${radio("mode", "custom", tn("sortCustom"), tn("sortCustomHint"))}
|
|
483
570
|
${radio("mode", "recent", tn("sortRecent"), tn("sortRecentHint"))}</fieldset>
|
|
484
571
|
<fieldset><legend>${tn("sortFavs")}</legend>
|
|
485
572
|
${radio("favs", "fixed", tn("sortFavsFixed"), "")}
|
|
486
573
|
${radio("favs", "recent", tn("sortFavsRecent"), "")}</fieldset>
|
|
574
|
+
<fieldset><legend>${tn("sortDisplay")}</legend>
|
|
575
|
+
${densityRadio("detailed", tn("sortDisplayDetailed"))}
|
|
576
|
+
${densityRadio("compact", tn("sortDisplayCompact"))}
|
|
577
|
+
<fieldset class="nav-sort-sub"><legend>${t("app.compactName")}</legend>
|
|
578
|
+
${["nickname", "instance"].map(value => html`<label class="nav-sort-opt"><input type="radio" name="nav-sort-compact-name" value=${value}
|
|
579
|
+
checked=${compactName === value} onChange=${() => setCompactName(value)} /><span>${t(value === "nickname" ? "app.compactNickname" : "app.compactInstance")}</span></label>`)}</fieldset>
|
|
580
|
+
${/* M-3212: a phone's only (app.css hides it from 900 px): the drawer's width, this browser's own. */ ""}
|
|
581
|
+
<fieldset class="nav-sort-sub nav-sort-drawer"><legend>${tn("sortPhoneDrawer")}</legend>
|
|
582
|
+
${drawerRadio("full", tn("sortPhoneDrawerFull"))}
|
|
583
|
+
${drawerRadio("narrow", tn("sortPhoneDrawerNarrow"))}</fieldset></fieldset>
|
|
487
584
|
</div>` : null}
|
|
488
585
|
</div>`;
|
|
489
586
|
}
|
|
@@ -494,11 +591,13 @@ function SortMenu({ sort }) {
|
|
|
494
591
|
* `exec` / `awaiting`: live state by name (empty for the anonymous reader). `onPick`: a row was clicked (the drawer
|
|
495
592
|
* closes).
|
|
496
593
|
*/
|
|
497
|
-
export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting = {}, viewOnly = false, onPick }) {
|
|
594
|
+
export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting = {}, viewOnly = false, onPick, onNew = null }) {
|
|
498
595
|
const nav = useStore(navStore);
|
|
499
596
|
const workspace = useStore(appStore).chatWorkspace;
|
|
500
597
|
const styledMenus = typeof getComputedStyle === "function" && getComputedStyle(document.documentElement).getPropertyValue?.("--agent-menu-version")?.trim() === "1";
|
|
501
598
|
const names = useStore(namesStore); // #1722: which name leads
|
|
599
|
+
const compact = useStore(sidebarDensityStore).value === "compact";
|
|
600
|
+
const compactName = useStore(compactNameStore).value;
|
|
502
601
|
useIdentityColors(); // #1958: repaint when the host's colour settings or the themes switch change
|
|
503
602
|
const filterRef = useRef(null);
|
|
504
603
|
const list = useRef(null);
|
|
@@ -639,8 +738,8 @@ export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting =
|
|
|
639
738
|
const row = (name, g, i, count) => {
|
|
640
739
|
const it = byName.get(name);
|
|
641
740
|
// #1722: both names, the preferred one first; one line when there is no other.
|
|
642
|
-
const preferred = namesOf(it, names.primary);
|
|
643
|
-
const label = it.runtime === "windows" ? it.display_name || preferred.primary : preferred.primary;
|
|
741
|
+
const preferred = namesOf(it, compact && compactName ? compactName : names.primary);
|
|
742
|
+
const label = compact && compactName ? preferred.primary : it.runtime === "windows" ? it.display_name || preferred.primary : preferred.primary;
|
|
644
743
|
const secondary = it.runtime === "windows" ? backendLabel(it.backend) : preferred.secondary;
|
|
645
744
|
const facet = facetOf(name);
|
|
646
745
|
const waiting = own(awaiting, name) ? awaiting[name] : null;
|
|
@@ -672,16 +771,18 @@ export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting =
|
|
|
672
771
|
onSelect: () => { if (!shown.active && !favsSorted) { focusRow.current = name; moveFavorite(name, 1, known); } } },
|
|
673
772
|
] : []),
|
|
674
773
|
].filter(Boolean);
|
|
675
|
-
return html`<li key=${name} data-agent-row=${name} class=${`v-li${two ? " two-line" : ""}`}><a class=${`inst v-inst${on ? " active" : ""}${starred ? " inst-favorite" : ""}${fade > 0 ? " replied" : ""}${mins != null && mins < 1 ? " just" : ""} ${identityClasses(id)}`}
|
|
774
|
+
return html`<li key=${name} data-agent-row=${name} class=${`v-li${!compact && two ? " two-line" : ""}`}><a class=${`inst v-inst${on ? " active" : ""}${starred ? " inst-favorite" : ""}${fade > 0 ? " replied" : ""}${mins != null && mins < 1 ? " just" : ""} ${identityClasses(id)}`}
|
|
676
775
|
ref=${(el) => { paintIdentity(el, id); paintReply(el, fade); }} href=${rowPath(name)} title=${instanceTooltip(it)}
|
|
776
|
+
aria-label=${compact ? [...new Set([label, name, labelOf(it)])].join(" · ") : undefined}
|
|
677
777
|
aria-current=${on ? "page" : undefined} onClick=${onPick} ...${dragProps({ type: "instance", name, group: g }, !fav)}>
|
|
678
|
-
|
|
778
|
+
${compact ? html`<${InstanceStatusDot} state=${dotState(it, own(exec, name) ? exec[name] : null, waiting)} />`
|
|
779
|
+
: html`<${InstanceAvatar} it=${it} state=${dotState(it, own(exec, name) ? exec[name] : null, waiting)} cli=${true} />`}
|
|
679
780
|
<span class="inst-text"><span class="inst-line"><span class="inst-name" title=${label}>${label}</span>
|
|
680
|
-
|
|
681
|
-
${two ? html`<span class="inst-line inst-line2"
|
|
781
|
+
${!compact ? html`<span class="v-meta">${it.runtime === "windows" ? "Windows" : it.context_pct != null ? `${Math.round(it.context_pct)}%` : ""}</span>` : null}</span>
|
|
782
|
+
${two ? html`<span class="inst-line inst-line2">${!compact ? html`<span class="inst-alt" title=${secondary || undefined}>${secondary || ""}</span>` : null}
|
|
682
783
|
${mins != null ? html`<span class=${`inst-when${fade > 0 ? " fresh" : ""}`} title=${tn("replyTitle", { time: new Date(Date.parse(it.last_reply)).toLocaleString() })}>${replyText(mins)}</span>` : null}</span>` : null}
|
|
683
|
-
${it.machine_id ? html`<span class=${`inst-machine${it.machine_status !== "online" ? " offline" : ""}`} title=${tn("tooltipMachine",{value:machineName(it.machine_id,it.machine_name)})}><span class="inst-machine-name">${machineName(it.machine_id,it.machine_name)}</span>${it.machine_status !== "online" ? html`<span class="inst-machine-status">${tn(it.machine_status === "revoked" ? "machineRevoked" : "machineOffline")}</span>` : null}</span>` : null}
|
|
684
|
-
${facet === "needs" ? html`<span class="inst-sub"><span class="badge-await" title=${waiting || t("app.approxNote")}>${t("app.needsYou")}</span></span>` : null}
|
|
784
|
+
${!compact && it.machine_id ? html`<span class=${`inst-machine${it.machine_status !== "online" ? " offline" : ""}`} title=${tn("tooltipMachine",{value:machineName(it.machine_id,it.machine_name)})}><span class="inst-machine-name">${machineName(it.machine_id,it.machine_name)}</span>${it.machine_status !== "online" ? html`<span class="inst-machine-status">${tn(it.machine_status === "revoked" ? "machineRevoked" : "machineOffline")}</span>` : null}</span>` : null}
|
|
785
|
+
${!compact && facet === "needs" ? html`<span class="inst-sub"><span class="badge-await" title=${waiting || t("app.approxNote")}>${t("app.needsYou")}</span></span>` : null}
|
|
685
786
|
<span class="sr-only">${tn("tooltipBackend", { value: backendLabel(it.backend) })}</span></span>
|
|
686
787
|
</a>${menuItems.length ? html`<${Menu} cls=${`inst-workspace inst-row-menu agent-menu${starred ? " is-favorite" : ""}`} fit=${true} topLayer=${true}
|
|
687
788
|
ownerKey=${name} label=${t("agentRow.actions", label)} items=${menuItems}
|
|
@@ -692,7 +793,7 @@ export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting =
|
|
|
692
793
|
const facetSet = f.status.length > 0 || f.cli.length > 0;
|
|
693
794
|
const stacked = (!viewOnly && facetOpen.status) || (facetOpen.cli && backends.length > 1);
|
|
694
795
|
// The list scrolls; the filter under it stays in view (#999), so it sits outside the scrolling section.
|
|
695
|
-
return html`<div class=${`view-roster inst-nav${editing && canStar ? " fav-editing" : ""}`}>
|
|
796
|
+
return html`<div class=${`view-roster inst-nav${compact ? " compact" : ""}${editing && canStar ? " fav-editing" : ""}`}>
|
|
696
797
|
<div data-trust="navigation" class="side-section" id="instanceList" ref=${list}>
|
|
697
798
|
<div class="inst-head"><h2 class="side-label">${tn("instancesLabel")}</h2>
|
|
698
799
|
${canStar && items.length ? html`<${SortMenu} sort=${nav.sort} />`
|
|
@@ -734,6 +835,10 @@ export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting =
|
|
|
734
835
|
${f.q ? html`<button type="button" class="icon-btn v-filter-clear" aria-label=${tn("filterClear")} title=${tn("filterClear")}
|
|
735
836
|
onClick=${() => { recordEdit(filterRef.current); setNavFilter({ q: "" }); filterRef.current && filterRef.current.focus(); }}><${Icon} name="close" size=${14} /></button>` : null}
|
|
736
837
|
</label>
|
|
838
|
+
${/* M-3212: 自訂 on a phone — beside the filter (app.css shows it in the phone drawer only). */ canStar && items.length ? html`<${SortMenu} sort=${nav.sort} phone=${true} />` : null}
|
|
839
|
+
${/* M-3217 (the user, beta.6, a Fleet in a Hub): + on a phone is in the filter's own row (app.css shows it in the phone
|
|
840
|
+
drawer only). It was placed at a fixed height under the brand, so the Hub switch's row put it on top of the switch. */
|
|
841
|
+
onNew ? html`<button type="button" class="icon-btn v-filter-new" aria-label=${t("app.newAgent")} title=${t("app.newAgent")} onClick=${onNew}><${Icon} name="plus" /></button>` : null}
|
|
737
842
|
<div class=${`nav-facets${stacked ? "" : " compact"}`}>
|
|
738
843
|
<div class="nav-facet-groups">
|
|
739
844
|
${viewOnly ? null : chips("status", STATUS_FACETS, tn("filterStatus"), statusText)}
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
.sk-signin .sk-line:first-child { width: 70%; height: 26px; }
|
|
34
34
|
.sk-signin .sk-line:nth-child(3) { width: 100%; height: 48px; }
|
|
35
35
|
.sk-signin .sk-line:nth-child(4) { width: 100%; height: 42px; border-radius: 99px; }
|
|
36
|
-
@media (max-width: 899px) { .sk-boot-side { display: none; } }
|
|
36
|
+
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) { .sk-boot-side { display: none; } }
|
|
37
37
|
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; opacity: 1; } }
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/* A /model option with an effort: on a phone its row shows the effort and a "›" to the effort list (below); elsewhere only the model button. */
|
|
12
12
|
.cmd-choice { display: contents; }
|
|
13
13
|
.cmd-effort-go { display: none; }
|
|
14
|
-
@media (max-width: 899px) {
|
|
14
|
+
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
|
|
15
15
|
.model-refresh .btn, .cmd-card .btn, .cmd-card .icon-btn { min-height: var(--tap); min-width: var(--tap); }
|
|
16
16
|
.chat-model-entry { display: none; }
|
|
17
17
|
.model-entry-row { display: flex; flex-wrap: wrap; padding: var(--s-1) var(--s-2); border-bottom: 1px solid var(--border); }
|
|
@@ -26,8 +26,36 @@
|
|
|
26
26
|
.cmd-card.cmd-model .cmd-choice > .btn:first-child { flex: 1; min-width: 0; justify-content: flex-start; text-align: start; }
|
|
27
27
|
.cmd-card.cmd-model .cmd-effort-go { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-2); white-space: nowrap; }
|
|
28
28
|
.cmd-card .cmd-sub { display: flex; margin-bottom: var(--s-1); }
|
|
29
|
-
/*
|
|
30
|
-
|
|
29
|
+
/* M-3115 (phone v2): 最新 is a small round button floating at the thread's bottom right, with its own shadow — not a
|
|
30
|
+
row of its own across the screen. Its words are its name; no count on it (the user: no unread counts for now). */
|
|
31
31
|
.p-chat .jump-dock:empty { display: none; }
|
|
32
|
-
.p-chat .jump-latest {
|
|
32
|
+
.p-chat .jump-latest { left: auto; right: var(--s-3); transform: none; width: var(--tap); height: var(--tap); min-height: var(--tap); padding: 0; justify-content: center; }
|
|
33
|
+
.p-chat .jump-latest .jump-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
33
34
|
}
|
|
35
|
+
/* M-3166 PR 3 (the user's OK of round 2): /model as a menu — under the model control on a desk, a bottom sheet on a phone.
|
|
36
|
+
One row per model (its name, one line, ✓ on the current one), "More models" in place, the effort as one segmented row. */
|
|
37
|
+
.model-menu { display: flex; flex-direction: column; gap: 2px; }
|
|
38
|
+
.model-menu-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-1) var(--s-2) var(--s-1) var(--s-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); }
|
|
39
|
+
.model-menu-row { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
|
|
40
|
+
.model-menu-row:hover:not(:disabled), .model-menu-row:focus-visible { background: var(--surface-2); outline: none; }
|
|
41
|
+
.model-menu-row:disabled { opacity: 0.5; cursor: default; }
|
|
42
|
+
.model-menu-row > .icon { margin-inline-start: auto; flex: none; color: var(--accent); }
|
|
43
|
+
.model-menu-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
44
|
+
.model-menu-text b { font-weight: var(--fw-semibold); }
|
|
45
|
+
.model-menu-text small { color: var(--text-2); font-size: var(--fs-xs); overflow-wrap: anywhere; }
|
|
46
|
+
.model-menu-more { display: flex; align-items: center; min-height: 40px; padding: var(--s-2) var(--s-3); border: 0; background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); text-align: start; cursor: pointer; }
|
|
47
|
+
.model-menu-label { padding: var(--s-2) var(--s-3) var(--s-1); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); border-top: 1px solid var(--border); margin-top: var(--s-1); }
|
|
48
|
+
.model-menu-seg { display: flex; gap: 2px; padding: 2px; margin: 0 var(--s-3) var(--s-2); border-radius: var(--r-md); background: var(--surface-2); }
|
|
49
|
+
.model-menu-seg button { flex: 1; min-height: 32px; border: 0; border-radius: calc(var(--r-md) - 2px); background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
|
|
50
|
+
.model-menu-seg button.on { background: var(--surface); color: var(--text); font-weight: var(--fw-semibold); box-shadow: var(--shadow-1); }
|
|
51
|
+
.model-menu-loading { padding: var(--s-3); margin: 0; }
|
|
52
|
+
.model-menu-signin { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2) var(--s-3); }
|
|
53
|
+
.model-menu-scrim { position: fixed; inset: 0; z-index: 90; }
|
|
54
|
+
.model-menu-pop { position: fixed; z-index: 91; width: 320px; max-height: calc(100vh - 16px); overflow-y: auto; padding: var(--s-1); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-2), 0 0 0 1px var(--border); }
|
|
55
|
+
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
|
|
56
|
+
.model-menu-row { min-height: 56px; }
|
|
57
|
+
.model-menu-more { min-height: var(--tap); }
|
|
58
|
+
.model-menu-seg { margin: 0 0 var(--s-2); }
|
|
59
|
+
.model-menu-seg button { min-height: var(--tap); }
|
|
60
|
+
}
|
|
61
|
+
.model-menu-error { margin: 0; padding: var(--s-2) var(--s-3); }
|
|
@@ -42,7 +42,7 @@ export function ownerCssActive() { return active; }
|
|
|
42
42
|
|
|
43
43
|
function eligiblePage() {
|
|
44
44
|
const b = document.body && document.body.dataset;
|
|
45
|
-
return !!b && b.mode === "full"
|
|
45
|
+
return !!b && b.mode === "full"; // M-3278 (decision 7933bf90): the public link's admin page too (the server marks a guest's off)
|
|
46
46
|
}
|
|
47
47
|
function wanted() {
|
|
48
48
|
if (!eligiblePage() || safe || !active || ownerCssOffHere()) return false;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// Drawing only: the words are the caller's (Settings' SettingsPageHead passes its own).
|
|
4
4
|
import { html } from "./app-html.js";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// M-3108: an optional `tag` beside the title (the Hub's "Preview") and a `note` line under the lead.
|
|
7
|
+
export function PageHead({ title, scope, lead, tag, note, children }) {
|
|
8
|
+
return html`<header class="s-page-head"><div><div class="s-page-title"><h2>${title}</h2>${tag ? html`<span class="tag warn s-page-tag">${tag}</span>` : null}<span class="s-scope">${scope}</span></div><p class="s-page-lead">${lead}</p>${note ? html`<p class="note s-page-note">${note}</p>` : null}</div>${children ? html`<div class="s-page-actions">${children}</div>` : null}</header>`;
|
|
8
9
|
}
|