@songsid/agend 2.4.0-alpha.4 → 2.4.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-cli-instructions.md +4 -1
- package/dist/agent-cli.js +14 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.d.ts +3 -1
- package/dist/agent-endpoint.js +15 -3
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-token-header.d.ts +1 -1
- package/dist/agent-token-header.js +1 -1
- package/dist/agent-whats-new.js +1 -1
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/app-message-origin.d.ts +2 -0
- package/dist/app-message-origin.js +3 -0
- package/dist/app-message-origin.js.map +1 -0
- package/dist/auth-api.d.ts +8 -0
- package/dist/auth-api.js +40 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/authority-state.d.ts +7 -0
- package/dist/authority/authority-state.js +17 -2
- package/dist/authority/authority-state.js.map +1 -1
- package/dist/authority/web-authority.d.ts +11 -1
- package/dist/authority/web-authority.js +11 -1
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/agy-model-switch.d.ts +22 -0
- package/dist/backend/agy-model-switch.js +62 -0
- package/dist/backend/agy-model-switch.js.map +1 -0
- package/dist/backend/antigravity.d.ts +9 -2
- package/dist/backend/antigravity.js +84 -9
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-code.js +20 -5
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/cli-env-probe.js +1 -1
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend/cli-runtime-switch.d.ts +90 -0
- package/dist/backend/cli-runtime-switch.js +273 -0
- package/dist/backend/cli-runtime-switch.js.map +1 -0
- package/dist/backend/codex-footer-hints.d.ts +1 -0
- package/dist/backend/codex-footer-hints.js +15 -0
- package/dist/backend/codex-footer-hints.js.map +1 -1
- package/dist/backend/codex-model-switch.d.ts +41 -0
- package/dist/backend/codex-model-switch.js +170 -0
- package/dist/backend/codex-model-switch.js.map +1 -0
- package/dist/backend/codex.d.ts +6 -4
- package/dist/backend/codex.js +26 -9
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.js +1 -1
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/grok-model-switch.d.ts +16 -0
- package/dist/backend/grok-model-switch.js +45 -0
- package/dist/backend/grok-model-switch.js.map +1 -0
- package/dist/backend/grok.js +1 -1
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.js +4 -4
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/muse.d.ts +2 -0
- package/dist/backend/muse.js +7 -3
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/native-pane.js +1 -1
- package/dist/backend/native-pane.js.map +1 -1
- package/dist/backend/types.d.ts +2 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +22 -0
- package/dist/backend-availability.js +71 -2
- package/dist/backend-availability.js.map +1 -1
- package/dist/backend-signin-guide.js +1 -1
- package/dist/backend-signin-guide.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/discord.d.ts +10 -0
- package/dist/channel/adapters/discord.js +35 -0
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +2 -0
- package/dist/channel/adapters/telegram.js +3 -0
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-server.js +10 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.js +9 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/tool-router.js +9 -2
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/channel/types.d.ts +10 -0
- package/dist/classic-channel-manager.d.ts +1 -1
- package/dist/classic-channel-manager.js +1 -1
- package/dist/cli-audited.js +14 -13
- package/dist/cli-audited.js.map +1 -1
- package/dist/cli-capability.d.ts +3 -0
- package/dist/cli-capability.js.map +1 -1
- package/dist/cli-registry-check.js +1 -1
- package/dist/cli-registry-check.js.map +1 -1
- package/dist/cli-registry.d.ts +1 -0
- package/dist/cli-spec-antigravity.d.ts +1 -0
- package/dist/cli-spec-antigravity.js +3 -1
- package/dist/cli-spec-antigravity.js.map +1 -1
- package/dist/cli.js +8 -0
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +18 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/connect/control.d.ts +20 -0
- package/dist/connect/control.js +236 -0
- package/dist/connect/control.js.map +1 -0
- package/dist/connect/install.d.ts +13 -0
- package/dist/connect/install.js +12 -0
- package/dist/connect/install.js.map +1 -0
- package/dist/connect/mcp.d.ts +9 -0
- package/dist/connect/mcp.js +10 -0
- package/dist/connect/mcp.js.map +1 -0
- package/dist/connect/protocol.d.ts +38 -0
- package/dist/connect/protocol.js +36 -0
- package/dist/connect/protocol.js.map +1 -0
- package/dist/connect/service.d.ts +19 -0
- package/dist/connect/service.js +79 -0
- package/dist/connect/service.js.map +1 -0
- package/dist/connect/stdio-entry.d.ts +1 -0
- package/dist/connect/stdio-entry.js +6 -0
- package/dist/connect/stdio-entry.js.map +1 -0
- package/dist/connect/stdio.d.ts +5 -0
- package/dist/connect/stdio.js +33 -0
- package/dist/connect/stdio.js.map +1 -0
- package/dist/daemon.d.ts +64 -2
- package/dist/daemon.js +397 -31
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +2 -0
- package/dist/delivery-consumed-watch.js +4 -1
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/dispatcher-liveness.d.ts +51 -1
- package/dist/dispatcher-liveness.js +92 -2
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/event-log.d.ts +1 -1
- package/dist/event-log.js +1 -1
- package/dist/fleet-manager.d.ts +222 -6
- package/dist/fleet-manager.js +1271 -100
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.js +4 -2
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +19 -3
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +10 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +18 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +331 -29
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +118 -26
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +2 -0
- package/dist/hub/admin-dashboard.d.ts +85 -0
- package/dist/hub/admin-dashboard.js +177 -0
- package/dist/hub/admin-dashboard.js.map +1 -0
- package/dist/hub/attachments/store.d.ts +2 -0
- package/dist/hub/attachments/store.js +6 -0
- package/dist/hub/attachments/store.js.map +1 -1
- package/dist/hub/audit/index.d.ts +2 -0
- package/dist/hub/audit/index.js +8 -0
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/buttons.js +3 -1
- package/dist/hub/buttons.js.map +1 -1
- package/dist/hub/catalog.d.ts +8 -5
- package/dist/hub/catalog.js +53 -20
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +13 -0
- package/dist/hub/client.js +85 -11
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +22 -0
- package/dist/hub/compose/member.js +233 -18
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +14 -0
- package/dist/hub/compose/server.js +110 -11
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/display-name.d.ts +10 -0
- package/dist/hub/display-name.js +35 -0
- package/dist/hub/display-name.js.map +1 -0
- package/dist/hub/execution/service.d.ts +1 -0
- package/dist/hub/execution/service.js +1 -1
- package/dist/hub/execution/service.js.map +1 -1
- package/dist/hub/fleet-info.d.ts +12 -0
- package/dist/hub/fleet-info.js +14 -0
- package/dist/hub/fleet-info.js.map +1 -0
- package/dist/hub/fleet-update-model.d.ts +100 -0
- package/dist/hub/fleet-update-model.js +15 -0
- package/dist/hub/fleet-update-model.js.map +1 -0
- package/dist/hub/fleet-updates.d.ts +46 -0
- package/dist/hub/fleet-updates.js +282 -0
- package/dist/hub/fleet-updates.js.map +1 -0
- package/dist/hub/fleet-versions.d.ts +28 -0
- package/dist/hub/fleet-versions.js +80 -0
- package/dist/hub/fleet-versions.js.map +1 -0
- package/dist/hub/grant-access.js +23 -3
- package/dist/hub/grant-access.js.map +1 -1
- package/dist/hub/grant-search.js +13 -1
- package/dist/hub/grant-search.js.map +1 -1
- package/dist/hub/group-policy/admin-api.d.ts +1 -0
- package/dist/hub/group-policy/admin-api.js +10 -1
- package/dist/hub/group-policy/admin-api.js.map +1 -1
- package/dist/hub/group-policy/admin-control.d.ts +1 -0
- package/dist/hub/group-policy/admin-control.js +13 -4
- package/dist/hub/group-policy/admin-control.js.map +1 -1
- package/dist/hub/group-policy/admin-dto.d.ts +39 -1
- package/dist/hub/group-policy/admin-dto.js.map +1 -1
- package/dist/hub/group-policy/admin-facts.d.ts +4 -2
- package/dist/hub/group-policy/admin-facts.js +17 -2
- package/dist/hub/group-policy/admin-facts.js.map +1 -1
- package/dist/hub/group-policy/admin-impact.d.ts +36 -6
- package/dist/hub/group-policy/admin-impact.js +21 -7
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.d.ts +2 -0
- package/dist/hub/group-policy/admin-inventory.js +13 -4
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/admin-search.d.ts +2 -1
- package/dist/hub/group-policy/admin-search.js +56 -7
- package/dist/hub/group-policy/admin-search.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +2 -0
- package/dist/hub/group-policy/authorization.js +7 -2
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.d.ts +4 -1
- package/dist/hub/group-policy/impact-inventory.js +41 -4
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/model.d.ts +52 -1
- package/dist/hub/group-policy/model.js +20 -7
- package/dist/hub/group-policy/model.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +2 -0
- package/dist/hub/group-policy/resources.js +12 -1
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.js +22 -3
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/group-policy/team-subjects.d.ts +16 -0
- package/dist/hub/group-policy/team-subjects.js +32 -0
- package/dist/hub/group-policy/team-subjects.js.map +1 -0
- package/dist/hub/http/compose.d.ts +2 -0
- package/dist/hub/http/compose.js +437 -32
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.js +27 -0
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +15 -0
- package/dist/hub/http/schema.js +21 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/join/client.js +75 -42
- package/dist/hub/join/client.js.map +1 -1
- package/dist/hub/join/service.d.ts +1 -1
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/join/store.d.ts +5 -0
- package/dist/hub/join/store.js +12 -2
- package/dist/hub/join/store.js.map +1 -1
- package/dist/hub/mcp/auth-schema.d.ts +7 -0
- package/dist/hub/mcp/auth-schema.js +31 -0
- package/dist/hub/mcp/auth-schema.js.map +1 -0
- package/dist/hub/mcp/auth.d.ts +89 -0
- package/dist/hub/mcp/auth.js +374 -0
- package/dist/hub/mcp/auth.js.map +1 -0
- package/dist/hub/mcp/catalog.d.ts +44 -0
- package/dist/hub/mcp/catalog.js +31 -0
- package/dist/hub/mcp/catalog.js.map +1 -0
- package/dist/hub/mcp/door-schema.d.ts +7 -0
- package/dist/hub/mcp/door-schema.js +20 -0
- package/dist/hub/mcp/door-schema.js.map +1 -0
- package/dist/hub/mcp/http.d.ts +25 -0
- package/dist/hub/mcp/http.js +259 -0
- package/dist/hub/mcp/http.js.map +1 -0
- package/dist/hub/mcp/policy.d.ts +65 -0
- package/dist/hub/mcp/policy.js +153 -0
- package/dist/hub/mcp/policy.js.map +1 -0
- package/dist/hub/mcp/server.d.ts +3 -0
- package/dist/hub/mcp/server.js +32 -0
- package/dist/hub/mcp/server.js.map +1 -0
- package/dist/hub/mcp/tools.d.ts +31 -0
- package/dist/hub/mcp/tools.js +176 -0
- package/dist/hub/mcp/tools.js.map +1 -0
- package/dist/hub/member/display-name.d.ts +9 -0
- package/dist/hub/member/display-name.js +71 -0
- package/dist/hub/member/display-name.js.map +1 -0
- package/dist/hub/member/exposure-api.d.ts +6 -0
- package/dist/hub/member/exposure-api.js +13 -6
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/exposures.d.ts +4 -0
- package/dist/hub/member/exposures.js +20 -0
- package/dist/hub/member/exposures.js.map +1 -1
- package/dist/hub/member/pairing-api.js +3 -2
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/member/recommendations.d.ts +37 -0
- package/dist/hub/member/recommendations.js +129 -0
- package/dist/hub/member/recommendations.js.map +1 -0
- package/dist/hub/member/room-ask.d.ts +65 -5
- package/dist/hub/member/room-ask.js +269 -24
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-mention-feedback.d.ts +44 -0
- package/dist/hub/member/room-mention-feedback.js +121 -0
- package/dist/hub/member/room-mention-feedback.js.map +1 -0
- package/dist/hub/member/room-notification.d.ts +9 -0
- package/dist/hub/member/room-notification.js +2 -0
- package/dist/hub/member/room-notification.js.map +1 -0
- package/dist/hub/member/room-post-answers.d.ts +46 -0
- package/dist/hub/member/room-post-answers.js +152 -0
- package/dist/hub/member/room-post-answers.js.map +1 -0
- package/dist/hub/member/room-post-receipt.d.ts +21 -0
- package/dist/hub/member/room-post-receipt.js +49 -0
- package/dist/hub/member/room-post-receipt.js.map +1 -0
- package/dist/hub/member/room-post.d.ts +103 -0
- package/dist/hub/member/room-post.js +231 -0
- package/dist/hub/member/room-post.js.map +1 -0
- package/dist/hub/member/updates.d.ts +92 -0
- package/dist/hub/member/updates.js +316 -0
- package/dist/hub/member/updates.js.map +1 -0
- package/dist/hub/pairing.d.ts +15 -1
- package/dist/hub/pairing.js +33 -2
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/person-prefs.d.ts +22 -0
- package/dist/hub/person-prefs.js +34 -0
- package/dist/hub/person-prefs.js.map +1 -0
- package/dist/hub/personal/owner-host.d.ts +140 -0
- package/dist/hub/personal/owner-host.js +287 -0
- package/dist/hub/personal/owner-host.js.map +1 -0
- package/dist/hub/personal/refusals.d.ts +11 -0
- package/dist/hub/personal/refusals.js +33 -0
- package/dist/hub/personal/refusals.js.map +1 -0
- package/dist/hub/personal/runtime-host.d.ts +26 -0
- package/dist/hub/personal/runtime-host.js +51 -0
- package/dist/hub/personal/runtime-host.js.map +1 -0
- package/dist/hub/personal/schema.d.ts +4 -0
- package/dist/hub/personal/schema.js +54 -0
- package/dist/hub/personal/schema.js.map +1 -0
- package/dist/hub/personal/turns.d.ts +39 -0
- package/dist/hub/personal/turns.js +221 -0
- package/dist/hub/personal/turns.js.map +1 -0
- package/dist/hub/personal/types.d.ts +42 -0
- package/dist/hub/personal/types.js +2 -0
- package/dist/hub/personal/types.js.map +1 -0
- package/dist/hub/policy.d.ts +1 -1
- package/dist/hub/policy.js +2 -0
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +701 -1
- package/dist/hub/protocol.js +103 -14
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/published-version.d.ts +3 -0
- package/dist/hub/published-version.js +35 -0
- package/dist/hub/published-version.js.map +1 -0
- package/dist/hub/quota.js +3 -1
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/recommendation-model.d.ts +36 -0
- package/dist/hub/recommendation-model.js +9 -0
- package/dist/hub/recommendation-model.js.map +1 -0
- package/dist/hub/recommendations.d.ts +58 -0
- package/dist/hub/recommendations.js +211 -0
- package/dist/hub/recommendations.js.map +1 -0
- package/dist/hub/representative.d.ts +5 -0
- package/dist/hub/representative.js +6 -1
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/roles/admin-control.d.ts +29 -0
- package/dist/hub/roles/admin-control.js +187 -0
- package/dist/hub/roles/admin-control.js.map +1 -0
- package/dist/hub/roles/admin-types.d.ts +72 -0
- package/dist/hub/roles/admin-types.js +2 -0
- package/dist/hub/roles/admin-types.js.map +1 -0
- package/dist/hub/roles/allowed-list-control.d.ts +34 -0
- package/dist/hub/roles/allowed-list-control.js +179 -0
- package/dist/hub/roles/allowed-list-control.js.map +1 -0
- package/dist/hub/roles/allowed-list.d.ts +8 -0
- package/dist/hub/roles/allowed-list.js +49 -0
- package/dist/hub/roles/allowed-list.js.map +1 -0
- package/dist/hub/roles/audit-details.d.ts +144 -0
- package/dist/hub/roles/audit-details.js +26 -0
- package/dist/hub/roles/audit-details.js.map +1 -0
- package/dist/hub/roles/authority.d.ts +12 -0
- package/dist/hub/roles/authority.js +39 -3
- package/dist/hub/roles/authority.js.map +1 -1
- package/dist/hub/roles/change.d.ts +3 -1
- package/dist/hub/roles/change.js +7 -2
- package/dist/hub/roles/change.js.map +1 -1
- package/dist/hub/roles/clock.d.ts +3 -0
- package/dist/hub/roles/clock.js +1 -1
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/convert.js +1 -1
- package/dist/hub/roles/convert.js.map +1 -1
- package/dist/hub/roles/cutover-inventory.d.ts +2 -0
- package/dist/hub/roles/cutover-inventory.js +8 -1
- package/dist/hub/roles/cutover-inventory.js.map +1 -1
- package/dist/hub/roles/cutover.d.ts +2 -2
- package/dist/hub/roles/cutover.js +3 -4
- package/dist/hub/roles/cutover.js.map +1 -1
- package/dist/hub/roles/delegation.d.ts +4 -1
- package/dist/hub/roles/delegation.js +7 -2
- package/dist/hub/roles/delegation.js.map +1 -1
- package/dist/hub/roles/evaluate.d.ts +2 -1
- package/dist/hub/roles/evaluate.js +14 -0
- package/dist/hub/roles/evaluate.js.map +1 -1
- package/dist/hub/roles/expiry-effects.d.ts +8 -0
- package/dist/hub/roles/expiry-effects.js +50 -0
- package/dist/hub/roles/expiry-effects.js.map +1 -0
- package/dist/hub/roles/migrations.d.ts +7 -0
- package/dist/hub/roles/migrations.js +44 -0
- package/dist/hub/roles/migrations.js.map +1 -0
- package/dist/hub/roles/model.d.ts +25 -0
- package/dist/hub/roles/model.js +9 -3
- package/dist/hub/roles/model.js.map +1 -1
- package/dist/hub/roles/overview.d.ts +8 -0
- package/dist/hub/roles/overview.js +15 -0
- package/dist/hub/roles/overview.js.map +1 -0
- package/dist/hub/roles/resource-effects.d.ts +17 -0
- package/dist/hub/roles/resource-effects.js +62 -0
- package/dist/hub/roles/resource-effects.js.map +1 -0
- package/dist/hub/roles/review.d.ts +16 -0
- package/dist/hub/roles/review.js +42 -0
- package/dist/hub/roles/review.js.map +1 -0
- package/dist/hub/roles/writer.d.ts +14 -3
- package/dist/hub/roles/writer.js +64 -16
- package/dist/hub/roles/writer.js.map +1 -1
- package/dist/hub/room-context-model.d.ts +43 -0
- package/dist/hub/room-context-model.js +12 -0
- package/dist/hub/room-context-model.js.map +1 -0
- package/dist/hub/room-mention-feedback-model.d.ts +12 -0
- package/dist/hub/room-mention-feedback-model.js +12 -0
- package/dist/hub/room-mention-feedback-model.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +44 -10
- package/dist/hub/rooms/agents.js +277 -30
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/assistant.d.ts +1 -6
- package/dist/hub/rooms/assistant.js +7 -2
- package/dist/hub/rooms/assistant.js.map +1 -1
- package/dist/hub/rooms/automation.d.ts +24 -0
- package/dist/hub/rooms/automation.js +66 -0
- package/dist/hub/rooms/automation.js.map +1 -0
- package/dist/hub/rooms/buttons.d.ts +85 -0
- package/dist/hub/rooms/buttons.js +62 -0
- package/dist/hub/rooms/buttons.js.map +1 -0
- package/dist/hub/rooms/context-cursor.d.ts +18 -0
- package/dist/hub/rooms/context-cursor.js +61 -0
- package/dist/hub/rooms/context-cursor.js.map +1 -0
- package/dist/hub/rooms/context.d.ts +1 -1
- package/dist/hub/rooms/context.js +4 -4
- package/dist/hub/rooms/context.js.map +1 -1
- package/dist/hub/rooms/direct-view.d.ts +6 -2
- package/dist/hub/rooms/direct-view.js +3 -3
- package/dist/hub/rooms/direct-view.js.map +1 -1
- package/dist/hub/rooms/mentions.d.ts +15 -0
- package/dist/hub/rooms/mentions.js +43 -0
- package/dist/hub/rooms/mentions.js.map +1 -0
- package/dist/hub/rooms/post-replies.d.ts +23 -0
- package/dist/hub/rooms/post-replies.js +114 -0
- package/dist/hub/rooms/post-replies.js.map +1 -0
- package/dist/hub/rooms/schema.d.ts +9 -0
- package/dist/hub/rooms/schema.js +43 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +163 -4
- package/dist/hub/rooms/service.js +796 -26
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +29 -3
- package/dist/hub/rooms.d.ts +12 -2
- package/dist/hub/rooms.js +88 -18
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +1 -1
- package/dist/hub/runtime.js +17 -4
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +8 -1
- package/dist/hub/server.js +93 -7
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +2 -1
- package/dist/hub/session-directory-transition.js +10 -3
- package/dist/hub/session-directory-transition.js.map +1 -1
- package/dist/hub/sessions.d.ts +1 -1
- package/dist/hub/sessions.js +26 -4
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-commit.d.ts +32 -1
- package/dist/hub/settings-commit.js +11 -4
- package/dist/hub/settings-commit.js.map +1 -1
- package/dist/hub/settings-directory-ca.js +1 -1
- package/dist/hub/settings-directory-ca.js.map +1 -1
- package/dist/hub/settings-directory-control.js +7 -7
- package/dist/hub/settings-directory-control.js.map +1 -1
- package/dist/hub/settings-directory-http.d.ts +2 -0
- package/dist/hub/settings-directory-http.js +21 -6
- package/dist/hub/settings-directory-http.js.map +1 -1
- package/dist/hub/settings-directory-proof.d.ts +5 -1
- package/dist/hub/settings-directory-proof.js +49 -10
- package/dist/hub/settings-directory-proof.js.map +1 -1
- package/dist/hub/settings-directory-recovery.js +2 -1
- package/dist/hub/settings-directory-recovery.js.map +1 -1
- package/dist/hub/settings-directory-save.d.ts +2 -0
- package/dist/hub/settings-directory-save.js +9 -6
- package/dist/hub/settings-directory-save.js.map +1 -1
- package/dist/hub/settings-member-address-decision.js +3 -1
- package/dist/hub/settings-member-address-decision.js.map +1 -1
- package/dist/hub/settings-member-address-http.js +3 -2
- package/dist/hub/settings-member-address-http.js.map +1 -1
- package/dist/hub/settings-member-address-policy.d.ts +3 -2
- package/dist/hub/settings-member-address-policy.js +3 -1
- package/dist/hub/settings-member-address-policy.js.map +1 -1
- package/dist/hub/settings-web-address-decision.js +3 -1
- package/dist/hub/settings-web-address-decision.js.map +1 -1
- package/dist/hub/settings-web-address-http.js +3 -2
- package/dist/hub/settings-web-address-http.js.map +1 -1
- package/dist/hub/settings-web-address-policy.d.ts +3 -2
- package/dist/hub/settings-web-address-policy.js +3 -1
- package/dist/hub/settings-web-address-policy.js.map +1 -1
- package/dist/hub/sharing.js +2 -2
- package/dist/hub/sharing.js.map +1 -1
- package/dist/hub/socket.d.ts +1 -0
- package/dist/hub/socket.js +39 -2
- package/dist/hub/socket.js.map +1 -1
- package/dist/hub/teams/grant-schema.d.ts +2 -0
- package/dist/hub/teams/grant-schema.js +13 -0
- package/dist/hub/teams/grant-schema.js.map +1 -0
- package/dist/hub/teams/index.d.ts +12 -0
- package/dist/hub/teams/index.js +348 -0
- package/dist/hub/teams/index.js.map +1 -0
- package/dist/hub/teams/store.d.ts +38 -0
- package/dist/hub/teams/store.js +80 -0
- package/dist/hub/teams/store.js.map +1 -0
- package/dist/hub/teams/types.d.ts +76 -2
- package/dist/hub/types.d.ts +162 -5
- package/dist/hub-classic-private.d.ts +19 -0
- package/dist/hub-classic-private.js +64 -0
- package/dist/hub-classic-private.js.map +1 -0
- package/dist/hub-contact-windows.d.ts +11 -0
- package/dist/hub-contact-windows.js +56 -0
- package/dist/hub-contact-windows.js.map +1 -0
- package/dist/hub-pairing-summary.d.ts +1 -1
- package/dist/hub-pilot-trust-settings.d.ts +1 -1
- package/dist/hub-pilot-trust-settings.js +2 -2
- package/dist/hub-pilot-trust-settings.js.map +1 -1
- package/dist/hub-room-conversation.d.ts +14 -0
- package/dist/hub-room-conversation.js +60 -0
- package/dist/hub-room-conversation.js.map +1 -0
- package/dist/hub-update-notice.d.ts +12 -0
- package/dist/hub-update-notice.js +35 -0
- package/dist/hub-update-notice.js.map +1 -0
- package/dist/human-delivery-receipts.js +8 -0
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instance-config-impact.js +3 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instructions.js +3 -0
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +139 -24
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +19 -2
- package/dist/login-controller.js +26 -8
- package/dist/login-controller.js.map +1 -1
- package/dist/native-mcp.js +7 -5
- package/dist/native-mcp.js.map +1 -1
- package/dist/native-model-catalog.d.ts +15 -0
- package/dist/native-model-catalog.js +43 -3
- package/dist/native-model-catalog.js.map +1 -1
- package/dist/native-pane-lifecycle.js +3 -2
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/native-pane-tools.js +3 -0
- package/dist/native-pane-tools.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +14 -4
- package/dist/outbound-handlers.js +54 -1
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +17 -0
- package/dist/outbound-schemas.js +14 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +2 -0
- package/dist/public-web-gateway.js +152 -4
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/queued-handoffs.d.ts +16 -4
- package/dist/queued-handoffs.js +18 -1
- package/dist/queued-handoffs.js.map +1 -1
- package/dist/quickstart-api.d.ts +0 -1
- package/dist/quickstart-api.js +8 -1
- package/dist/quickstart-api.js.map +1 -1
- package/dist/reply-dedup.js +3 -1
- package/dist/reply-dedup.js.map +1 -1
- package/dist/reply-preview-files.d.ts +38 -0
- package/dist/reply-preview-files.js +142 -0
- package/dist/reply-preview-files.js.map +1 -0
- package/dist/reply-preview-spec.d.ts +18 -0
- package/dist/reply-preview-spec.js +27 -0
- package/dist/reply-preview-spec.js.map +1 -0
- package/dist/runtime-api.js +10 -2
- package/dist/runtime-api.js.map +1 -1
- package/dist/runtime-build-info.js +1 -0
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli-install.js +13 -10
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/runtime-cli.js +31 -5
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.d.ts +5 -0
- package/dist/runtime-client-store.js +28 -0
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +4 -0
- package/dist/runtime-client.js +33 -10
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +4 -2
- package/dist/runtime-coordinator.js +33 -6
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-install.d.ts +6 -1
- package/dist/runtime-install.js +12 -4
- package/dist/runtime-install.js.map +1 -1
- package/dist/runtime-pane-native.js +3 -1
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/runtime-personal-answer-only-probe.d.ts +3 -0
- package/dist/runtime-personal-answer-only-probe.js +134 -0
- package/dist/runtime-personal-answer-only-probe.js.map +1 -0
- package/dist/runtime-personal-answer-only.d.ts +16 -0
- package/dist/runtime-personal-answer-only.js +54 -0
- package/dist/runtime-personal-answer-only.js.map +1 -0
- package/dist/runtime-personal-answer.d.ts +30 -0
- package/dist/runtime-personal-answer.js +124 -0
- package/dist/runtime-personal-answer.js.map +1 -0
- package/dist/runtime-personal-preflight.d.ts +8 -0
- package/dist/runtime-personal-preflight.js +103 -0
- package/dist/runtime-personal-preflight.js.map +1 -0
- package/dist/runtime-personal-profile.d.ts +40 -0
- package/dist/runtime-personal-profile.js +81 -0
- package/dist/runtime-personal-profile.js.map +1 -0
- package/dist/runtime-personal-protocol.d.ts +10 -0
- package/dist/runtime-personal-protocol.js +15 -0
- package/dist/runtime-personal-protocol.js.map +1 -0
- package/dist/runtime-personal-stage.d.ts +37 -0
- package/dist/runtime-personal-stage.js +167 -0
- package/dist/runtime-personal-stage.js.map +1 -0
- package/dist/runtime-protocol.d.ts +2 -0
- package/dist/settings-api.d.ts +15 -0
- package/dist/settings-api.js +210 -76
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +32 -5
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +13 -2
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.js +18 -44
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/setup-form.js +10 -0
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-i18n.js +2 -2
- package/dist/setup-i18n.js.map +1 -1
- package/dist/subagent-records.js +53 -11
- package/dist/subagent-records.js.map +1 -1
- package/dist/subagent-service.js +3 -1
- package/dist/subagent-service.js.map +1 -1
- package/dist/tmux-manager.d.ts +2 -0
- package/dist/tmux-manager.js +2 -0
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tool-permissions.js +3 -0
- package/dist/tool-permissions.js.map +1 -1
- package/dist/tool-progress.d.ts +9 -0
- package/dist/tool-progress.js +141 -32
- package/dist/tool-progress.js.map +1 -1
- package/dist/transcript-needles.d.ts +4 -2
- package/dist/transcript-needles.js +35 -4
- package/dist/transcript-needles.js.map +1 -1
- package/dist/tunnel/lease.d.ts +14 -0
- package/dist/tunnel/lease.js +23 -0
- package/dist/tunnel/lease.js.map +1 -1
- package/dist/turn-reply-guard.d.ts +2 -2
- package/dist/turn-reply-guard.js +3 -3
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/types.d.ts +12 -2
- package/dist/ui/backend-signin.js +91 -22
- package/dist/ui/chat-activity-groups.js +41 -8
- package/dist/ui/chat-activity.js +5 -3
- package/dist/ui/chat-mentions.js +13 -0
- package/dist/ui/chat-msg-actions.js +3 -222
- package/dist/ui/chat-pins.js +106 -0
- package/dist/ui/chat-popout-header.js +2 -2
- package/dist/ui/chat-store.js +143 -7
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/chat-workspace.js +3 -3
- package/dist/ui/fleet-canvas.js +14 -5
- package/dist/ui/fleet-office-carousel.d.ts +14 -0
- package/dist/ui/fleet-office-carousel.js +95 -0
- package/dist/ui/fleet-office-editor.js +6 -1
- package/dist/ui/fleet-office-model.js +2 -1
- package/dist/ui/fleet-office-skin.js +1 -1
- package/dist/ui/fleet-office-store.js +14 -2
- package/dist/ui/fleet-office-zones.js +50 -9
- package/dist/ui/fleet-office.js +203 -24
- package/dist/ui/fleet-tasks.js +1 -1
- package/dist/ui/host-install.js +5 -2
- package/dist/ui/hub-admin-overview.js +189 -0
- package/dist/ui/hub-admin-rooms.js +1 -1
- package/dist/ui/hub-agent-copy.js +6 -2
- package/dist/ui/hub-ai-apps-strings.js +6 -0
- package/dist/ui/hub-ai-apps.js +83 -0
- package/dist/ui/hub-chat-strings.js +7 -0
- package/dist/ui/hub-client.js +89 -10
- package/dist/ui/hub-directory-editor-strings.js +2 -2
- package/dist/ui/hub-directory-editor.js +1 -0
- package/dist/ui/hub-fleet-versions.js +393 -0
- package/dist/ui/hub-grant-picker.js +7 -32
- package/dist/ui/hub-group-policy.js +26 -13
- package/dist/ui/hub-group-strings.js +29 -20
- package/dist/ui/hub-join-steps.js +27 -15
- package/dist/ui/hub-owner-strings.js +2 -2
- package/dist/ui/hub-personal-agent-strings.js +246 -0
- package/dist/ui/hub-personal-agent.js +117 -0
- package/dist/ui/hub-policy-subjects.js +35 -0
- package/dist/ui/hub-quick-pairing.js +7 -2
- package/dist/ui/hub-role-audit.js +39 -0
- package/dist/ui/hub-role-forms.js +99 -0
- package/dist/ui/hub-role-notices.js +11 -0
- package/dist/ui/hub-role-view.js +86 -0
- package/dist/ui/hub-roles-strings.js +439 -0
- package/dist/ui/hub-roles.js +83 -0
- package/dist/ui/hub-room-agent-strings.js +28 -0
- package/dist/ui/hub-room-composer.js +30 -11
- package/dist/ui/hub-room-favorites.js +63 -5
- package/dist/ui/hub-room-list.js +4 -3
- package/dist/ui/hub-room-members-strings.js +2 -2
- package/dist/ui/hub-room-members.js +7 -4
- package/dist/ui/hub-room-notify.js +161 -0
- package/dist/ui/hub-room-search.js +126 -0
- package/dist/ui/hub-room-settings.js +6 -0
- package/dist/ui/hub-room-source-strings.js +17 -0
- package/dist/ui/hub-room-source.js +34 -0
- package/dist/ui/hub-room-strings.js +49 -1
- package/dist/ui/hub-room-thread.js +300 -49
- package/dist/ui/hub-room-unread.js +2 -1
- package/dist/ui/hub-strings.js +10 -0
- package/dist/ui/hub-subject-picker.js +58 -0
- package/dist/ui/hub-switcher.js +2 -2
- package/dist/ui/hub-teams-strings.js +38 -0
- package/dist/ui/hub-teams.js +197 -0
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/hub-welcome.js +122 -75
- package/dist/ui/image-annotate.js +2 -283
- package/dist/ui/image-lightbox.js +2 -176
- package/dist/ui/image-zoom.js +2 -242
- package/dist/ui/model-picker.js +4 -1
- package/dist/ui/notice-hub-update.js +94 -0
- package/dist/ui/office-share-dialog.js +2 -2
- package/dist/ui/panel-chat.js +327 -28
- package/dist/ui/panel-details.js +3 -1
- package/dist/ui/panel-fleet.js +28 -7
- package/dist/ui/panel-hub.js +316 -105
- package/dist/ui/panel-log.js +4 -4
- package/dist/ui/panel-notices.js +3 -1
- package/dist/ui/panel-settings.js +45 -34
- package/dist/ui/preview-panel.js +3 -1
- package/dist/ui/reply-file-preview.js +64 -0
- package/dist/ui/runtime-commands.d.ts +2 -2
- package/dist/ui/runtime-commands.js +7 -4
- package/dist/ui/settings-access-overview.js +3 -3
- package/dist/ui/settings-appearance.js +7 -10
- package/dist/ui/settings-archive-files.js +109 -0
- package/dist/ui/settings-build-version.js +2 -2
- package/dist/ui/settings-catalog.js +22 -0
- package/dist/ui/settings-connector-strings.js +23 -0
- package/dist/ui/settings-connector.js +39 -0
- package/dist/ui/settings-guests-entries.js +16 -0
- package/dist/ui/settings-guests.js +57 -15
- package/dist/ui/settings-hub-connection.js +4 -5
- package/dist/ui/settings-hub-member-address.js +21 -6
- package/dist/ui/settings-hub-membership.js +6 -7
- package/dist/ui/settings-hub-section.js +4 -6
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-hub-updates.js +67 -0
- package/dist/ui/settings-hub-web-address.js +21 -5
- package/dist/ui/settings-hub.js +30 -4
- package/dist/ui/settings-layout.js +15 -13
- package/dist/ui/settings-registry.js +18 -3
- package/dist/ui/settings-shared-strings.js +2 -0
- package/dist/ui/settings-strings.js +13 -2
- package/dist/ui/settings-update.js +11 -5
- package/dist/ui/settings-web-authority.js +7 -5
- package/dist/ui/shared/access-overview.css +1 -1
- package/dist/ui/shared/accounts-keepalive.css +1 -1
- package/dist/ui/shared/accounts.css +1 -1
- package/dist/ui/shared/agent-sheet.js +116 -0
- package/dist/ui/shared/agent-widget.js +1 -2
- package/dist/ui/shared/app-i18n.js +4 -0
- package/dist/ui/shared/app-nav.js +9 -5
- package/dist/ui/shared/app-prefs.js +9 -3
- package/dist/ui/shared/app-route.js +4 -2
- package/dist/ui/shared/app-shell.js +178 -23
- package/dist/ui/shared/app-store.js +1 -1
- package/dist/ui/shared/app-stream.js +6 -2
- package/dist/ui/shared/app-swipe.js +3 -1
- package/dist/ui/shared/app-themes.js +3 -5
- package/dist/ui/shared/app-update.js +90 -8
- package/dist/ui/shared/app.css +472 -203
- package/dist/ui/shared/app.js +1 -1
- package/dist/ui/shared/chat-composer.js +29 -5
- package/dist/ui/shared/chat-msg-actions.js +231 -0
- package/dist/ui/shared/chat-strings.js +19 -4
- package/dist/ui/shared/chat-thread.js +121 -17
- package/dist/ui/shared/chat-work-bar.css +118 -0
- package/dist/ui/shared/connector-prompt.d.ts +3 -0
- package/dist/ui/shared/connector-prompt.js +20 -0
- package/dist/ui/shared/hub-ai-apps.css +12 -0
- package/dist/ui/shared/hub-chat.css +63 -4
- package/dist/ui/shared/hub-groups.css +19 -15
- package/dist/ui/shared/hub-owner.css +118 -3
- package/dist/ui/shared/hub-roles.css +99 -0
- package/dist/ui/shared/hub-rooms-u2.css +34 -0
- package/dist/ui/shared/hub-signin.css +2 -0
- package/dist/ui/shared/hub-teams.css +31 -0
- package/dist/ui/shared/hub.css +23 -5
- package/dist/ui/shared/image-annotate.css +22 -3
- package/dist/ui/shared/image-annotate.js +415 -0
- package/dist/ui/shared/image-lightbox.js +218 -0
- package/dist/ui/shared/image-zoom.js +316 -0
- package/dist/ui/shared/instance-nav.js +120 -15
- package/dist/ui/shared/loading.css +1 -1
- package/dist/ui/shared/model-picker.css +32 -4
- package/dist/ui/shared/owner-css.js +1 -1
- package/dist/ui/shared/page-head.js +3 -2
- package/dist/ui/shared/panel-view.js +7 -1
- package/dist/ui/shared/preview-panel-actions.js +1 -1
- package/dist/ui/shared/preview-panel.js +6 -2
- package/dist/ui/shared/reply-previews.css +4 -0
- package/dist/ui/shared/runtime-install.css +5 -0
- package/dist/ui/shared/settings-connector.css +7 -0
- package/dist/ui/shared/signin.js +27 -12
- package/dist/ui/shared/task-board.css +2 -2
- package/dist/ui/shared/theme.js +52 -0
- package/dist/ui/shared/tokens.css +27 -10
- package/dist/ui/shared/ui-icons.js +2 -0
- package/dist/ui/shared/ui-toast.js +4 -4
- package/dist/ui/shared/usage-dialog.js +113 -16
- package/dist/ui/shared/view-strings.js +28 -4
- package/dist/ui/shared/web-authorize.js +3 -3
- package/dist/ui/signin.html +4 -2
- package/dist/ui/structured-signin.js +64 -12
- package/dist/ui/web-terminal/terminal.css +1 -1
- package/dist/ui/workspace-panel.js +4 -3
- package/dist/update-dispatch.d.ts +8 -1
- package/dist/update-dispatch.js +16 -1
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-idle.d.ts +65 -0
- package/dist/update-idle.js +190 -0
- package/dist/update-idle.js.map +1 -0
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +9 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/usage/agent-output.js +1 -0
- package/dist/usage/agent-output.js.map +1 -1
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +2 -2
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/i18n.d.ts +1 -1
- package/dist/usage/i18n.js +2 -1
- package/dist/usage/i18n.js.map +1 -1
- package/dist/usage/profile-timeline.d.ts +2 -0
- package/dist/usage/profile-timeline.js +4 -0
- package/dist/usage/profile-timeline.js.map +1 -1
- package/dist/usage/providers.d.ts +4 -1
- package/dist/usage/providers.js +31 -16
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-history.d.ts +1 -1
- package/dist/usage/usage-api.d.ts +1 -1
- package/dist/usage/usage-api.js +4 -4
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/view-api.js +1 -1
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +9 -0
- package/dist/web-api.js +434 -188
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +5 -1
- package/dist/web-backend-login.js +8 -2
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-archive.d.ts +147 -0
- package/dist/web-chat-archive.js +530 -0
- package/dist/web-chat-archive.js.map +1 -0
- package/dist/web-chat-history.d.ts +76 -0
- package/dist/web-chat-history.js +145 -1
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-commands.d.ts +4 -3
- package/dist/web-commands.js +3 -2
- package/dist/web-commands.js.map +1 -1
- package/dist/web-guest-access.d.ts +3 -0
- package/dist/web-guest-access.js +6 -2
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-icons.js +3 -3
- package/dist/web-icons.js.map +1 -1
- package/dist/web-login.d.ts +7 -0
- package/dist/web-login.js +8 -1
- package/dist/web-login.js.map +1 -1
- package/dist/web-mentions.d.ts +2 -0
- package/dist/web-mentions.js +20 -0
- package/dist/web-mentions.js.map +1 -1
- package/dist/web-notices.d.ts +3 -0
- package/dist/web-notices.js +17 -2
- package/dist/web-notices.js.map +1 -1
- package/dist/web-office-store.d.ts +2 -0
- package/dist/web-office-store.js +15 -3
- package/dist/web-office-store.js.map +1 -1
- package/dist/web-pin-store.d.ts +58 -0
- package/dist/web-pin-store.js +170 -0
- package/dist/web-pin-store.js.map +1 -0
- package/dist/web-prefs.js +5 -1
- package/dist/web-prefs.js.map +1 -1
- package/dist/web-session-authorization.d.ts +24 -0
- package/dist/web-session-authorization.js +32 -0
- package/dist/web-session-authorization.js.map +1 -1
- package/dist/web-session.d.ts +6 -4
- package/dist/web-session.js +5 -3
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +24 -3
- package/dist/web-settings-patch.js +57 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +1 -1
- package/dist/web-shell-routes.js +1 -1
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-theme.js +2 -2
- package/dist/web-update.d.ts +15 -1
- package/dist/web-upload.d.ts +36 -0
- package/dist/web-upload.js +105 -5
- package/dist/web-upload.js.map +1 -1
- package/dist/windows-cli-api.d.ts +10 -7
- package/dist/windows-cli-api.js +13 -12
- package/dist/windows-cli-api.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +10 -0
- package/dist/windows-cli-worker.js +109 -14
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +10 -1
- package/dist/windows-cli.js +47 -13
- package/dist/windows-cli.js.map +1 -1
- package/package.json +1 -1
- package/templates/runtime-install/install.ps1 +24 -4
package/dist/ui/panel-log.js
CHANGED
|
@@ -20,6 +20,7 @@ import { useLease } from "/assets/app-ctx.js";
|
|
|
20
20
|
import * as paneContext from "/assets/app-ctx.js";
|
|
21
21
|
import { PanelHeader, setTitle, statusClass, statusLabel, openDrawer } from "/assets/app-shell.js";
|
|
22
22
|
import { InstanceSwitch } from "/assets/instance-switch.js";
|
|
23
|
+
import { AgentSheetButton, usePhone } from "/assets/agent-sheet.js";
|
|
23
24
|
import { HeaderSlot, HeaderTools } from "/assets/header-tools.js";
|
|
24
25
|
import { Empty, ErrorState, Skeleton } from "/assets/ui-states.js";
|
|
25
26
|
import { toast } from "/assets/ui-toast.js";
|
|
@@ -119,6 +120,7 @@ export function LogPanel({ route, navKey }) {
|
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
function LogView({ name, inst, navKey, exec, awaiting }) {
|
|
123
|
+
const phone = usePhone(); // M-3166 PR 5: a phone's header is "← name ● ⋯" (the ⋯ sheet holds the rest)
|
|
122
124
|
const lease = useLease(`log:${name}`);
|
|
123
125
|
const [state, setState] = useState({ phase: "loading" }); // loading | off | on | failed
|
|
124
126
|
const [steps, setSteps] = useState([]);
|
|
@@ -133,7 +135,6 @@ function LogView({ name, inst, navKey, exec, awaiting }) {
|
|
|
133
135
|
const cursor = useRef({ key: null, after: null, skip: false, before: null, ev: 0, trimmed: false, epoch: 0 });
|
|
134
136
|
const reading = useRef(false), again = useRef(false);
|
|
135
137
|
const scroller = useRef(null), pinned = useRef(true);
|
|
136
|
-
const overPublicLink = globalThis.document?.body?.dataset?.publicLink === "1";
|
|
137
138
|
const polling = globalThis.document?.body?.dataset?.webTransport === "poll";
|
|
138
139
|
|
|
139
140
|
const q = (params) => `/ui/steps?${new URLSearchParams({ instance: name, ...params })}`;
|
|
@@ -264,8 +265,7 @@ function LogView({ name, inst, navKey, exec, awaiting }) {
|
|
|
264
265
|
else if (state.phase === "loading") content = html`<${Skeleton} lines=${6} />`;
|
|
265
266
|
else if (state.phase === "off") {
|
|
266
267
|
content = html`<div class="log-off center"><${Empty} icon="tasks" title=${tl("offTitle")} hint=${tl("offBody")}
|
|
267
|
-
action=${
|
|
268
|
-
: html`<button type="button" class="btn btn-primary log-enable" disabled=${enabling} onClick=${enable}>${enabling ? tl("enabling") : tl("enable")}</button>`} /></div>`;
|
|
268
|
+
action=${html`<button type="button" class="btn btn-primary log-enable" disabled=${enabling} onClick=${enable}>${enabling ? tl("enabling") : tl("enable")}</button>`} /></div>`;
|
|
269
269
|
} else {
|
|
270
270
|
const why = info && info.reason ? (info.reason === "unsupported" ? tl("unsupported", info.backend)
|
|
271
271
|
: KIRO_REASONS.has(info.reason) ? tl("kiroWhy", tl(info.reason))
|
|
@@ -284,7 +284,7 @@ function LogView({ name, inst, navKey, exec, awaiting }) {
|
|
|
284
284
|
${["all", "tools", "errors"].map((k) => html`<button key=${k} type="button" class=${`chip-btn${filter === k ? " on" : ""}`} aria-pressed=${filter === k ? "true" : "false"} onClick=${() => setFilter(k)}>${tl(k)}</button>`)}
|
|
285
285
|
<span class="grow"></span><span class="log-live" title=${tl("live")}><span class="dot running" aria-hidden="true"></span>${tl("live")}</span></div>` : null;
|
|
286
286
|
return html`<div data-effect-panel="log" class="panel p-log">
|
|
287
|
-
<${PanelHeader} title=${name} sub=${sub} pageControls=${{ navKey }} nav=${html`<${InstanceSwitch} name=${name} current="log" />`}><${HeaderTools} navKey=${navKey} /><${HeaderSlot}
|
|
287
|
+
<${PanelHeader} title=${name} sub=${sub} pageControls=${{ navKey }} nav=${html`<${InstanceSwitch} name=${name} current="log" />`}><${HeaderTools} navKey=${navKey} /><${HeaderSlot} />${phone ? html`<${AgentSheetButton} name=${name} inst=${inst} current="log" navKey=${navKey} />` : null}</${PanelHeader}>
|
|
288
288
|
${tools}
|
|
289
289
|
<div data-trust="panel-content" class="panel-body log-body" ref=${scroller} onScroll=${onScroll}><div class="col log-col">${content}</div></div>
|
|
290
290
|
</div>`;
|
package/dist/ui/panel-notices.js
CHANGED
|
@@ -10,6 +10,7 @@ import { PanelHeader, setTitle } from "/assets/app-shell.js";
|
|
|
10
10
|
import { chatPath } from "/assets/app-route.js";
|
|
11
11
|
import { Empty, ErrorState, Skeleton } from "/assets/ui-states.js";
|
|
12
12
|
import { Icon } from "/assets/ui-icons.js";
|
|
13
|
+
import { HubUpdateNotice, useHubUpdateActions } from "./notice-hub-update.js";
|
|
13
14
|
|
|
14
15
|
register("notices", {
|
|
15
16
|
en: {
|
|
@@ -77,6 +78,7 @@ export function NoticesPanel({ navKey }) {
|
|
|
77
78
|
useEffect(() => { markShown(); }, [newest]);
|
|
78
79
|
useEffect(() => { if (typeof document !== "undefined") lease.on(document, "visibilitychange", markShown); }, [lease]);
|
|
79
80
|
const known = new Set((instances || []).map((i) => i && i.name));
|
|
81
|
+
const hubActions = useHubUpdateActions();
|
|
80
82
|
const nowMs = Date.now();
|
|
81
83
|
return html`<div data-effect-panel="notices" class="panel p-notices">
|
|
82
84
|
<${PanelHeader} title=${tn("title")} />
|
|
@@ -90,7 +92,7 @@ export function NoticesPanel({ navKey }) {
|
|
|
90
92
|
<div class="n-title"><strong>${tn(`kind_${n.kind}`)}${n.instance ? ` · ${n.instance}` : ""}</strong>
|
|
91
93
|
${n.id > seenAtOpen ? html`<span class="notice-new">${tn("unread")}</span>` : null}
|
|
92
94
|
<span class="n-age" title=${new Date(n.at).toLocaleString()}>${noticeAge(n.at, nowMs)}</span></div>
|
|
93
|
-
|
|
95
|
+
${n.hubUpdate ? html`<${HubUpdateNotice} notice=${n} actions=${hubActions} />` : html`<p class="n-detail notice-text">${n.text}</p>`}
|
|
94
96
|
${n.instance && known.has(n.instance) ? html`<div class="n-actions"><a class="btn btn-sm btn-ghost" href=${chatPath(n.instance)}>${tn("open")}</a></div>` : null}
|
|
95
97
|
</div>
|
|
96
98
|
</article>`)}
|
|
@@ -32,6 +32,7 @@ import "./settings-restart-strings.js"; // S-92: the restart words for a fleet
|
|
|
32
32
|
import "./settings-public-session-strings.js"; // #3708: the public link's session limits (a file of its own: an open tab may hold the older string files)
|
|
33
33
|
import "./settings-access-strings.js"; // the words Access & security added (settings.webLoginQr…): an older settings-strings.js from a tab that visited Fleet first lacks them (#3061)
|
|
34
34
|
import { UpdatePillMark, UpdateSection } from "./settings-update.js";
|
|
35
|
+
import { ArchiveFilesSetting } from "./settings-archive-files.js"; // M-3281: the archived chat files' size limit
|
|
35
36
|
import { api, attach, confirmedWrite, newKey } from "./settings-confirm.js";
|
|
36
37
|
import { dismissOperation, operationActive, restartFleet, startOperation, takeLeftover } from "./settings-apply.js";
|
|
37
38
|
import {
|
|
@@ -77,6 +78,7 @@ import { AgentFilters, agentFilterText, agentRuntime, agentRuntimeOffline, agent
|
|
|
77
78
|
import { useRuntimeCatalog } from "./runtime-catalog.js";
|
|
78
79
|
import { ShortcutsHelpRow } from "./settings-shortcuts.js";
|
|
79
80
|
import { GeneralLocation } from "./general-location.js";
|
|
81
|
+
import { SettingsConnector } from "./settings-connector.js";
|
|
80
82
|
|
|
81
83
|
const tn = (k, ...v) => k === "sec_notifications" ? quotaNoticeText().title : t(`settings.${k}`, ...v);
|
|
82
84
|
/**
|
|
@@ -93,7 +95,7 @@ const APPLY_ERRORS = new Set(["unsupported_sensitive_effect", "confirmation_diff
|
|
|
93
95
|
"request_no_longer_current", "too_many_pending_changes", "fleet_unavailable", "invalid_settings_effect", "settings_confirmation_unavailable", "failed"]);
|
|
94
96
|
// #2726: a code or words of the setup host (the wizard's commit) in the page's language; anything else as it came.
|
|
95
97
|
export const applyErrorText = (code) => (APPLY_ERRORS.has(code) ? tn(`applyError_${code}`) : tn("applyErrorOther", hostText(String(code), lang())));
|
|
96
|
-
const ICONS = { preferences: "user", look: "palette", agents: "bot", notifications: "sliders", runtimes: "view", "agent-defaults": "sliders", chat: "chat", "web-dashboard": "globe", access: "key", hub: "plug", advanced: "code" };
|
|
98
|
+
const ICONS = { preferences: "user", look: "palette", agents: "bot", notifications: "sliders", runtimes: "view", accounts: "idcard", "agent-defaults": "sliders", chat: "chat", "web-dashboard": "globe", access: "key", hub: "plug", advanced: "code" };
|
|
97
99
|
|
|
98
100
|
/** GET under the panel's lease → { ok, status, body }. */
|
|
99
101
|
async function read(lease, path) {
|
|
@@ -407,14 +409,9 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
407
409
|
const toDialog = (d) => setDialog({ ...d, key: navKey });
|
|
408
410
|
const you = { key: `you:${draftEpoch}`, stage, unstage, staged, schema: data && data.schema };
|
|
409
411
|
const formKey = data && !data.error ? `${data.loadedAt}:${draftEpoch}` : "";
|
|
410
|
-
//
|
|
411
|
-
//
|
|
412
|
-
const
|
|
413
|
-
: section === "look" ? html`<${AppearanceSection} ...${you} part="look" />`
|
|
414
|
-
: section === "runtimes" ? html`<${RuntimesPanel} navKey=${navKey} />`
|
|
415
|
-
: !data ? html`<${Skeleton} lines=${6} />`
|
|
416
|
-
: data.error ? html`<${ErrorState} message=${tn("configLoadFailed")} onRetry=${reload} />`
|
|
417
|
-
: section === "agents" ? html`<${YamlLock} staged=${staged}><${Agents} ctx=${ctx} search=${search} clearSearch=${() => setSearch("")} openDialog=${toDialog} /></${YamlLock}><details class="s-ui-disclosure s-ai-accounts"><summary><span>${layoutText("aiAccounts")}</span><small>${layoutText("aiAccountsSummary")}</small></summary><div class="s-disclosure-body s-auth-body">
|
|
412
|
+
// AGEND-288: AI accounts and provider API keys are host credentials, not an agent's own settings: their own section. A tab whose shell is from before
|
|
413
|
+
// that section (its app-route.js has no "accounts") keeps them under Agents, as before.
|
|
414
|
+
const accountsCard = () => html`<section class="card s-ai-accounts"><div class="s-disclosure-body s-auth-body">
|
|
418
415
|
<div class="s-auth-scope"><${Icon} name="view" size=${18} /><div><strong>${layoutText("aiHostScope")}</strong><p>${layoutText("aiAccountsHint")}</p><a href=${settingsPath("runtimes")}>${layoutText("aiWindowsLink")}<span aria-hidden="true">→</span></a></div></div>
|
|
419
416
|
<${AccountsView} instances=${ctx.fleet.instances || {}} stageAgent=${ctx.stageAgent}
|
|
420
417
|
rooms=${(ctx.classic && ctx.classic.channels) || {}} stageClassic=${ctx.stageClassic}
|
|
@@ -427,17 +424,26 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
427
424
|
ctx.stage("defaults:account", { label: tn("updateDefaults"), count: 1, impact: defaultsImpact(ctx.schema, "backend_options"),
|
|
428
425
|
request: { method: "PUT", url: "/api/settings/fleet/defaults", body: { backend_options: opts } } });
|
|
429
426
|
}} />${ctx.providerOk ? html`<${ProviderKeys} ctx=${ctx} />` : html`<section class="s-auth-section s-api-unavailable"><header class="s-auth-section-head"><div><h3>${layoutText("apiKeysTitle")}</h3><p>${layoutText("apiKeysHint")}</p></div><span class="s-auth-state">${layoutText("apiKeysUnavailableState")}</span></header><p class="note">${layoutText("apiKeysUnavailable")}</p></section>`}
|
|
430
|
-
</div></
|
|
427
|
+
</div></section>`;
|
|
428
|
+
// #2347 regrouping: each card where the person looks for it (the IA in #2347 §3); a form split across sections (the
|
|
429
|
+
// defaults, Web) is one form with one draft, shown a part at a time.
|
|
430
|
+
const sectionBody = section === "preferences" ? html`<${DeviceSection} key=${you.key} />`
|
|
431
|
+
: section === "look" ? html`<${AppearanceSection} ...${you} part="look" />`
|
|
432
|
+
: section === "runtimes" ? html`<${RuntimesPanel} navKey=${navKey} />`
|
|
433
|
+
: !data ? html`<${Skeleton} lines=${6} />`
|
|
434
|
+
: data.error ? html`<${ErrorState} message=${tn("configLoadFailed")} onRetry=${reload} />`
|
|
435
|
+
: section === "agents" ? html`<${YamlLock} staged=${staged}><${Agents} ctx=${ctx} search=${search} clearSearch=${() => setSearch("")} openDialog=${toDialog} /></${YamlLock}>${SETTINGS_SECTIONS.includes("accounts") ? html`<p class="note s-agents-accounts-link">${layoutText("agentsAccountsNote")} <a href=${settingsPath("accounts")}>${layoutText("agentsAccountsLink")}<span aria-hidden="true">→</span></a></p>` : accountsCard()}`
|
|
436
|
+
: section === "accounts" ? accountsCard()
|
|
431
437
|
: section === "agent-defaults" ? html`<${GeneralLocation} /><${YamlLock} staged=${staged}><${General} key=${formKey} ctx=${ctx} part="fleet" />${!SETTINGS_SECTIONS.includes("notifications") ? html`<${QuotaNoticeSettings} key=${`quota:${formKey}`} ctx=${ctx} />` : null}</${YamlLock}>`
|
|
432
438
|
: section === "notifications" ? html`<${YamlLock} staged=${staged}><${QuotaNoticeSettings} key=${formKey} ctx=${ctx} /></${YamlLock}>`
|
|
433
|
-
: section === "chat" ? html`<${YamlLock} staged=${staged}><${Bots} ctx=${ctx} search=${search} openDialog=${toDialog} /></${YamlLock}>
|
|
439
|
+
: section === "chat" ? html`<${SettingsConnector} /><${YamlLock} staged=${staged}><${Bots} ctx=${ctx} search=${search} openDialog=${toDialog} /></${YamlLock}>
|
|
434
440
|
<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="chat" />
|
|
435
441
|
<div id="classicbot" class="s-anchor s-classic-area"><section class="card s-chat-classic"><h2 class="s-ap-group">ClassicBot</h2><${Classic} ctx=${ctx} search=${search} openDialog=${toDialog} /></section>
|
|
436
442
|
<details class="s-ui-disclosure s-classic-defaults"><summary>${layoutText("classicDefaults")}</summary><div class="s-disclosure-body"><${General} key=${formKey} ctx=${ctx} part="classic" /></div></details></div>`
|
|
437
443
|
: section === "web-dashboard" ? html`<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="dashboard" /><${AppearanceSection} ...${you} part="dashboard" />`
|
|
438
444
|
: section === "access" ? html`<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="access" />`
|
|
439
445
|
// alpha.6 feedback (#2): the Hub cards have their own section (they were under Access & security, unfound by search).
|
|
440
|
-
: section === "hub" ? html`<${HubSection}
|
|
446
|
+
: section === "hub" ? html`<${HubSection} hubHost=${!!ctx.fleet.hub?.hubId} hubOrigin=${ctx.fleet.hub?.webOrigin} />`
|
|
441
447
|
: html`<${UpdateSection} /><${AdvancedSettings} ctx=${ctx} staged=${staged} formKey=${formKey} draftEpoch=${draftEpoch} />`;
|
|
442
448
|
// #2347 §6: the setting a search result opened — brought into view once its section is drawn (its data may still be
|
|
443
449
|
// on its way), focused, and flashed for 2 s.
|
|
@@ -512,11 +518,11 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
512
518
|
const close = () => setDialog(null);
|
|
513
519
|
const searchable = section === "agents" || section === "chat";
|
|
514
520
|
// #2347 §7: on a phone, Settings itself (/settings) is the list of sections with search on top; a section opens on its
|
|
515
|
-
// own
|
|
521
|
+
// own, the header's ← back to it (M-3245: was a "‹ Settings" bar under a ☰). A wider screen always shows the list beside the section (the CSS decides).
|
|
516
522
|
// Which one is shown is the root's data-view: its class stays exactly the effects producer's ("panel p-settings", #1629).
|
|
517
523
|
const atList = typeof location !== "undefined" && location.pathname === "/settings";
|
|
518
524
|
return html`<div data-effect-panel="settings" class="panel p-settings" data-view=${atList ? "index" : "section"}>
|
|
519
|
-
<${PanelHeader} title=${tn("title")} sub=${data ? html`<${SettingsBuildVersion} version=${data.version} build=${data.build} /><${UpdatePillMark} />` : null}>
|
|
525
|
+
<${PanelHeader} title=${tn("title")} back=${atList ? null : { href: settingsPath(), label: tn("backToSettings") }} sub=${data ? html`<${SettingsBuildVersion} version=${data.version} build=${data.build} /><${UpdatePillMark} />` : null}>
|
|
520
526
|
<button type="button" class="btn btn-ghost btn-sm" disabled=${!ctx || yamlStaged(staged)} title=${ctx && yamlStaged(staged) ? tn("yamlUnsaved") : undefined} onClick=${openWizard}><${Icon} name="wand" size=${16} /><span class="hide-narrow">${tn("wizardButton")}</span></button>
|
|
521
527
|
<button type="button" class="icon-btn" aria-label=${tn("helpButton")} title=${tn("helpButton")} onClick=${() => setDialog({ kind: "help", key: navKey })}><${Icon} name="info" /></button>
|
|
522
528
|
</${PanelHeader}>
|
|
@@ -525,7 +531,6 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
525
531
|
${g.sections.map((k) => html`<a key=${k} href=${sectionPath(k)} class=${`seg-item${k === section ? " active" : ""}`} title=${tn(`sec_${k}`)}
|
|
526
532
|
aria-current=${k === section ? "page" : undefined}><${Icon} name=${ICONS[k]} size=${16} /><span>${tn(`sec_${k}`)}</span></a>`)}</div>`)}</div></nav>
|
|
527
533
|
<div data-trust="panel-content" class="panel-body"><div class="col" data-settings-section=${section}>
|
|
528
|
-
<a class="s-back" href=${settingsPath()}><${Icon} name="back" size=${16} /><span>${tn("title")}</span><span class="s-back-here">${tn(`sec_${section}`)}</span></a>
|
|
529
534
|
${section !== "runtimes" ? html`<${SettingsPageHead} section=${section}>${section === "agents" && ctx ? html`<button type="button" id="newAgentBtn" class="btn btn-primary" disabled=${yamlStaged(staged)} onClick=${() => toDialog({ kind: "create" })}><${Icon} name="plus" size=${16} />${tn("newAgent")}</button>` : null}</${SettingsPageHead}>` : null}
|
|
530
535
|
${searchable ? html`<div class="s-toolbar"><label class="s-search"><${Icon} name="search" size=${14} /><span class="sr-only">${tn("searchAll")}</span>
|
|
531
536
|
<input type="search" value=${search} placeholder=${tn("searchAll")} onInput=${(e) => setSearch(e.target.value)} /></label></div>` : null}
|
|
@@ -668,15 +673,14 @@ export function DeviceSection() {
|
|
|
668
673
|
};
|
|
669
674
|
setTimeout(go, 0);
|
|
670
675
|
};
|
|
671
|
-
const publicLink = typeof document !== "undefined" && document.body && document.body.dataset.publicLink === "1";
|
|
672
676
|
return html`<div class="s-pref-stack">
|
|
673
677
|
<section class="card s-device s-pref-personal"><h3>${tn("prefsProfileGroup")}</h3>
|
|
674
678
|
<${ProfileCard} embedded=${true} />
|
|
675
679
|
<div class="s-pref-name-format"><${DevicePrefs} labels=${true} fields=${["names"]} /></div>
|
|
676
680
|
</section>
|
|
677
|
-
<section class="card s-device s-synced s-pref-content"><div class="s-pref-group-head"><h3>${tn("prefsContentGroup")}</h3><span class="s-scope" title=${
|
|
678
|
-
|
|
679
|
-
<${DevicePrefs} labels=${true} fields=${["language"]} />
|
|
681
|
+
<section class="card s-device s-synced s-pref-content"><div class="s-pref-group-head"><h3>${tn("prefsContentGroup")}</h3><span class="s-scope" title=${tn("syncedLead")}>${tn("prefsAccountScope")}</span></div>
|
|
682
|
+
|
|
683
|
+
<${DevicePrefs} labels=${true} fields=${["language", "density", "compactName"]} />
|
|
680
684
|
${P() ? html`<label class="check s-pref-preview"><span>${t("chat.previews")}</span><input id="pref-previews" class="s-ui-toggle" type="checkbox" checked=${on} onChange=${(e) => { const want = e.target.checked; setPreviewOptIn(want).then(setOn); }} /><small>${layoutText("previewsPersonalHint")}</small></label>` : null}
|
|
681
685
|
</section>
|
|
682
686
|
<section class="card s-device s-local s-pref-help"><h3>${tn("prefsHelpGroup")}</h3>
|
|
@@ -925,7 +929,6 @@ function ConnectionRetry({ id, ctx }) {
|
|
|
925
929
|
}
|
|
926
930
|
|
|
927
931
|
function Bots({ ctx, search, openDialog }) {
|
|
928
|
-
const overPublicLink = globalThis.document?.body?.dataset?.publicLink === "1";
|
|
929
932
|
const all = channelsOf(ctx.fleet);
|
|
930
933
|
const needle = search.trim().toLowerCase();
|
|
931
934
|
const rows = all.map((ch, i) => ({ ch, i })).filter(({ ch }) => !needle || [ch.id, ch.type, ch.group_id, ch.bot_token_env].some((v) => String(v ?? "").toLowerCase().includes(needle)));
|
|
@@ -954,7 +957,7 @@ function Bots({ ctx, search, openDialog }) {
|
|
|
954
957
|
<span class="s-actions">
|
|
955
958
|
<span class=${`tag${token ? "" : " warn"}`}>${token ? tn("tokenConfigured") : tn("tokenMissing")}</span>
|
|
956
959
|
<span class=${`s-state ${state.cls}`} title=${stateText}>${stateText}</span>
|
|
957
|
-
<span class="s-conn-buttons">${
|
|
960
|
+
<span class="s-conn-buttons">${ctx.fleetUp && meta.status !== "connected" ? html`<${ConnectionRetry} id=${channelId(ch, i)} ctx=${ctx} />` : null}
|
|
958
961
|
<button type="button" class="btn btn-sm" onClick=${() => openDialog({ kind: "bot", id: channelId(ch, i) })}>${tn("settingsButton")}</button></span></span>
|
|
959
962
|
</div>`;
|
|
960
963
|
})}</div>`}</section>`;
|
|
@@ -1238,7 +1241,7 @@ function General({ ctx, part = "all" }) {
|
|
|
1238
1241
|
*/
|
|
1239
1242
|
export const WEB_READ_ONLY = [
|
|
1240
1243
|
"web.allowed_hosts", "web.view_access", "web.preview", "web.preview_port", "web.preview_origin", "web.preview_on_public_link",
|
|
1241
|
-
"web.usage_panel", "web.search", "web.provider_secrets", "web.upload_max_file_mb", "web.upload_max_total_mb", "web_terminal.bind", "web_terminal.tunnel",
|
|
1244
|
+
"web.usage_panel", "web.search", "web.provider_secrets", "web.upload_max_file_mb", "web.upload_max_total_mb", "web.chat_archive", "web_terminal.bind", "web_terminal.tunnel",
|
|
1242
1245
|
];
|
|
1243
1246
|
/**
|
|
1244
1247
|
* #2347 §10: what each of them is when fleet.yaml leaves it out, as the host applies it (null: nothing — none is used).
|
|
@@ -1252,6 +1255,8 @@ export function webReadOnlyDefault(path, fleet) {
|
|
|
1252
1255
|
// #2518: web.search unset is no age limit (the 300,000-row cap still applies); its line says so itself.
|
|
1253
1256
|
"web.preview_origin": null, "web.preview_on_public_link": true, "web.usage_panel": true, "web.search": null, "web.provider_secrets": false,
|
|
1254
1257
|
"web.upload_max_file_mb": uploadMbInEffect(fleet.web).file, "web.upload_max_total_mb": 100, "web_terminal.bind": "127.0.0.1", "web_terminal.tunnel": null,
|
|
1258
|
+
// M-3272 / M-3281: the chat archive — messages with no age limit; their files within 5 GiB, every agent's together.
|
|
1259
|
+
"web.chat_archive": { retention_days: 0, files_max_gb: 5 },
|
|
1255
1260
|
}[path];
|
|
1256
1261
|
}
|
|
1257
1262
|
/**
|
|
@@ -1268,15 +1273,15 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1268
1273
|
const [accessTab, setAccessTab] = useSettingsTabs("access", "overview");
|
|
1269
1274
|
const web = ctx.fleet.web || {}, local = (web.session && web.session.local) || {}, term = ctx.fleet.web_terminal || {};
|
|
1270
1275
|
const plSession = (web.session && web.session.public_link) || {}; // #3708
|
|
1271
|
-
//
|
|
1272
|
-
//
|
|
1273
|
-
const overPublicLink =
|
|
1276
|
+
// M-3278 (decision 7933bf90): over the public link an admin edits these as anywhere (Guests and Web authority included);
|
|
1277
|
+
// the tunnel token and the Hub too (part 4).
|
|
1278
|
+
const overPublicLink = false;
|
|
1274
1279
|
const original = useMemo(() => ({
|
|
1275
1280
|
notify: noticeMode(web.notify_login),
|
|
1276
1281
|
echo: web.echo_to_channel ?? true,
|
|
1277
1282
|
log: web.log_tab === true, // #1218: off by default
|
|
1278
1283
|
thinking: web.log_thinking === true, // AGEND-197: off by default
|
|
1279
|
-
usagePub: web.usage_report_on_public_link
|
|
1284
|
+
usagePub: web.usage_report_on_public_link !== false, // #2122; M-3278: on by default
|
|
1280
1285
|
levels: web.office_levels !== false, // #2661: on by default
|
|
1281
1286
|
cdn: web.preview_cdn === true, // #2911 (7): off by default
|
|
1282
1287
|
loginQr: web.login_qr === true, // #3061 (P2b): off by default
|
|
@@ -1412,6 +1417,13 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1412
1417
|
if (days === 0) return tn("searchRetentionZero");
|
|
1413
1418
|
return String(days);
|
|
1414
1419
|
}
|
|
1420
|
+
if (top === "web" && key === "chat_archive") {
|
|
1421
|
+
// M-3281: what applies — as the host reads it (web-chat-archive.ts): unset or 0 days keeps every month; files 5 GiB.
|
|
1422
|
+
const a = web.chat_archive && typeof web.chat_archive === "object" ? web.chat_archive : {};
|
|
1423
|
+
const days = Number.isInteger(a.retention_days) && a.retention_days > 0 ? a.retention_days : 0;
|
|
1424
|
+
const gb = typeof a.files_max_gb === "number" && Number.isFinite(a.files_max_gb) && a.files_max_gb >= 0 ? a.files_max_gb : 5;
|
|
1425
|
+
return tn("chatArchiveInEffect", days ? tn("chatArchiveDays", days) : tn("chatArchiveForever"), String(gb));
|
|
1426
|
+
}
|
|
1415
1427
|
const v = (top === "web" ? web : term)[key];
|
|
1416
1428
|
// An upload limit that is not what applies (out of range, or a file above the whole message's) says what does.
|
|
1417
1429
|
const upload = top === "web" ? { upload_max_file_mb: uploads.file, upload_max_total_mb: uploads.total }[key] : undefined;
|
|
@@ -1447,7 +1459,7 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1447
1459
|
openTab=${(tab, anchor) => { setAccessTab(tab); if (anchor) setTimeout(() => globalThis.document?.getElementById(anchor)?.scrollIntoView({ block: "start" }), 50); }} />
|
|
1448
1460
|
</${SettingsTabPanel}>
|
|
1449
1461
|
<${SettingsTabPanel} group="access" id="login" active=${accessTab === "login"}>
|
|
1450
|
-
<div class="s-access-
|
|
1462
|
+
<div class="s-access-stack">
|
|
1451
1463
|
${/* #3008: a web-only fleet's connections from outside — changed on this computer only, shown (read-only) elsewhere. */ ""}
|
|
1452
1464
|
<${OutsideCard} />
|
|
1453
1465
|
${/* Refs #3061 (P2a): sign a new device in with its 8-character code — approved here by the verified owner. */ ""}
|
|
@@ -1484,7 +1496,7 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1484
1496
|
</section>`)}
|
|
1485
1497
|
${!overPublicLink ? html`<${WebAuthorityCard} ctx=${ctx} staged=${staged} />` : null}
|
|
1486
1498
|
${/* A tab whose shell is from before Settings → Hub (its app-route.js has no "hub"): the Hub cards stay here. */ ""}
|
|
1487
|
-
${!SETTINGS_SECTIONS.includes("hub") ? html`<${HubSection}
|
|
1499
|
+
${!SETTINGS_SECTIONS.includes("hub") ? html`<${HubSection} hubHost=${!!ctx.fleet.hub?.hubId} hubOrigin=${ctx.fleet.hub?.webOrigin} />` : null}
|
|
1488
1500
|
<details class="drawer s-terminal-disclosure"><summary>${tn("webTerminalTitle")}</summary><div class="drawer-body">${lock(html`<section class="card s-access-terminal"><h3>${tn("webTerminalTitle")}</h3>
|
|
1489
1501
|
<p class="note">${tn("webTerminalHint")}</p>
|
|
1490
1502
|
<label class=${fc("check", "termOn")}><input id="webTerminalEnabled" type="checkbox" checked=${f.termOn} onChange=${(e) => set("termOn")(e.target.checked)} /><span>${tn("webTerminalEnabled")}</span><${Impact} schema=${schema} field="web_terminal.enabled" /></label>
|
|
@@ -1494,11 +1506,7 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1494
1506
|
${value(f.termTtl) === null ? html`<${InEffect} text=${tn("minutesValue", 10)} />` : null}</div>
|
|
1495
1507
|
</div>
|
|
1496
1508
|
</section>`)}</div></details>
|
|
1497
|
-
</div
|
|
1498
|
-
<button type="button" onClick=${() => setAccessTab("guests")}><${Icon} name="user" size=${18} /><span><strong>${layoutText("accessGuests")}</strong><small>${layoutText("revRelatedGuests")}</small></span><${Icon} name="chevron" size=${16} /></button>
|
|
1499
|
-
<button type="button" onClick=${() => setAccessTab("sharing")}><${Icon} name="globe" size=${18} /><span><strong>${layoutText("accessSharing")}</strong><small>${layoutText("revRelatedSharing")}</small></span><${Icon} name="chevron" size=${16} /></button>
|
|
1500
|
-
${!overPublicLink && SETTINGS_SECTIONS.includes("hub") ? html`<button type="button" onClick=${() => navigate(sectionPath("hub"))}><${Icon} name="plug" size=${18} /><span><strong>${hubSectionText("relatedTitle")}</strong><small>${hubSectionText("relatedHint")}</small></span><${Icon} name="chevron" size=${16} /></button>` : null}
|
|
1501
|
-
</aside></div>
|
|
1509
|
+
</div>
|
|
1502
1510
|
</${SettingsTabPanel}>
|
|
1503
1511
|
<${SettingsTabPanel} group="access" id="guests" active=${accessTab === "guests"}>
|
|
1504
1512
|
${!overPublicLink ? html`<${GuestsCard} ctx=${ctx} staged=${staged} />` : html`<p class="note">${tn("webPublicRefused")}</p>`}
|
|
@@ -1522,8 +1530,10 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1522
1530
|
${named || f.autoOpen ? html`<label class=${fc("check", "autoOpen")}><input id="publicAutoOpen" type="checkbox" checked=${f.autoOpen} onChange=${(e) => set("autoOpen")(e.target.checked)} /><span>${tn("publicAutoOpen")}</span><${Impact} schema=${schema} field="web.public_link.auto_open" /></label>
|
|
1523
1531
|
<p class="note">${tn("publicAutoOpenHint")}</p><${Feedback} error=${errors.autoOpen} />` : null}
|
|
1524
1532
|
|
|
1525
|
-
|
|
1533
|
+
<div class="s-public-credentials"><${PublicTunnelToken} /></div>
|
|
1526
1534
|
</section>`)}
|
|
1535
|
+
${/* M-3278 (decision 7933bf90): the fixed link's token over the public link too, for its admin — outside the locked fields. */ ""}
|
|
1536
|
+
${overPublicLink ? html`<section class="card s-public-entry"><div class="s-public-credentials"><${PublicTunnelToken} /></div></section>` : null}
|
|
1527
1537
|
<div class="s-sharing-list"><h3>${layoutText("revReadOnlySharing")}</h3><p class="note">${layoutText("revSharingOrigin")}</p><${OfficeSharesCard} /><${PageSharesCard} /></div>
|
|
1528
1538
|
</div>
|
|
1529
1539
|
</${SettingsTabPanel}>` : null}
|
|
@@ -1538,6 +1548,7 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1538
1548
|
${toggleRow("cdn", "webPreviewCdn", "webPreviewCdn", "webPreviewCdnHint", "web.preview_cdn")}
|
|
1539
1549
|
</section>`) : null}
|
|
1540
1550
|
${has("dashboard") && !overPublicLink ? html`<${LevelTitlesCard} />` : null}
|
|
1551
|
+
${has("dashboard") ? html`<${ArchiveFilesSetting} />` : null}
|
|
1541
1552
|
${has("readonly") ? html`<div class="s-effective-view"><p class="s-effective-notice"><${Icon} name="info" size=${18} />${layoutText("revEffectiveHint")}</p>
|
|
1542
1553
|
<section class="card s-web-readonly"><h3 class="sr-only">${tn("webReadOnlyTitle")}</h3>
|
|
1543
1554
|
<div class="s-ro-columns" aria-hidden="true"><span>${layoutText("effectiveKey")}</span><span>${layoutText("effectiveValue")}</span><span>${layoutText("effectiveSource")}</span></div>
|
package/dist/ui/preview-panel.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { ReplyFilePanel } from "./reply-file-preview.js";
|
|
1
2
|
// Hub E (#3226): the side panel moved to /assets/preview-panel.js (src/ui/shared/), shared by the fleet and the Hub. This
|
|
2
3
|
// is the fleet's: the same module (one instance), re-exported, plus the two pieces only the fleet shows — Files & changes
|
|
3
4
|
// (workspace-panel.js) and a page's Share (page-share-dialog.js) — registered with the core here. A tab opened before the
|
|
4
5
|
// move still imports this path, so it registers them too.
|
|
5
|
-
import { setWorkspaceView } from "/assets/preview-panel.js";
|
|
6
|
+
import { setReplyFileView, setWorkspaceView } from "/assets/preview-panel.js";
|
|
6
7
|
import { setShareButton } from "/assets/preview-panel-actions.js";
|
|
7
8
|
import { WorkspacePanel } from "./workspace-panel.js";
|
|
8
9
|
import { PageShareButton } from "./page-share-dialog.js";
|
|
9
10
|
setWorkspaceView(WorkspacePanel);
|
|
11
|
+
setReplyFileView(ReplyFilePanel);
|
|
10
12
|
setShareButton(PageShareButton);
|
|
11
13
|
export * from "/assets/preview-panel.js";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Fleet-only file previews. Inert references: no file is fetched until an admin clicks.
|
|
2
|
+
import { html, useEffect, useState } from "/assets/app-html.js";
|
|
3
|
+
import { register, t } from "/assets/app-i18n.js";
|
|
4
|
+
import { Icon } from "/assets/ui-icons.js";
|
|
5
|
+
import { Skeleton } from "/assets/ui-states.js";
|
|
6
|
+
import { WorkspaceFileViewer, linkWorkspaceCss } from "./workspace-panel.js";
|
|
7
|
+
import { openReplyPreviewImage } from "/assets/image-lightbox.js";
|
|
8
|
+
import { openReplyFile, openMarkdown, panelStore, closePanel } from "/assets/preview-panel.js";
|
|
9
|
+
register("replyPreview", {
|
|
10
|
+
en: { button: "Preview {0}", title: "File preview", loading: "Loading file", unoffered: "File previews are not available for this agent.", missing: "This file is no longer in the agent's working folder.", denied: "This preview needs an administrator session and a file inside this agent's working folder.", changed: "The session or working folder changed. Open the preview again.", failed: "The file could not be loaded. Try opening the preview again.", remote: "Previews of files on a paired Windows computer aren't available yet.", lines: "Requested lines: {0}–{1}", readonly: "Read only · current file in this agent's working folder", pdf: "PDF preview" },
|
|
11
|
+
"zh-TW": { button: "預覽 {0}", title: "檔案預覽", loading: "正在載入檔案", unoffered: "這個 Agent 無法提供檔案預覽。", missing: "這個檔案已不在 Agent 的工作資料夾裡。", denied: "需要管理員登入,且檔案必須在這個 Agent 的工作資料夾裡,才能預覽。", changed: "登入或工作資料夾已變更,請重新開啟預覽。", failed: "無法載入檔案,請重新開啟預覽再試一次。", remote: "目前還無法預覽已配對 Windows 電腦上的檔案。", lines: "指定行數:{0}–{1}", readonly: "唯讀 · 這個 Agent 工作資料夾裡的目前檔案", pdf: "PDF 預覽" },
|
|
12
|
+
});
|
|
13
|
+
function linkReplyCss() {
|
|
14
|
+
if (typeof document === "undefined" || document.querySelector('link[data-reply-preview-css]')) return;
|
|
15
|
+
const link = document.createElement("link"); link.rel = "stylesheet"; link.href = "/assets/reply-previews.css"; link.dataset.replyPreviewCss = "1"; document.head.append(link);
|
|
16
|
+
}
|
|
17
|
+
linkReplyCss();
|
|
18
|
+
export const replyPreviewLabel = p => t("replyPreview.button", p.path + (p.line ? `:${p.line}${p.endLine && p.endLine !== p.line ? `–${p.endLine}` : ""}` : ""));
|
|
19
|
+
export const replyPreviewUrl = (instance, path, op = "meta") => `/ui/reply-preview?${new URLSearchParams({ instance, path, op })}`;
|
|
20
|
+
export function previewReplyFile(instance, spec, opener, msgKey) {
|
|
21
|
+
openReplyFile({ key: `reply-file:${instance}:${Date.now()}:${Math.random()}`, instance, spec, opener, msgKey });
|
|
22
|
+
}
|
|
23
|
+
const reason = code => t("replyPreview." + (code === "workspace_not_offered" ? "unoffered" : code === "not_found" ? "missing" : code === "preview_remote_unavailable" ? "remote" : code === "preview_changed" ? "changed" : ["outside", "hidden", "symlink", "preview_needs_admin"].includes(code) ? "denied" : "failed"));
|
|
24
|
+
export function ReplyFilePanel({ open, panel, fs, enterFs, leaveFs, onKey, close }) {
|
|
25
|
+
const [state, setState] = useState({ loading: true });
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
linkWorkspaceCss();
|
|
28
|
+
linkReplyCss();
|
|
29
|
+
let live = true; const abort = new AbortController();
|
|
30
|
+
setState({ loading: true });
|
|
31
|
+
const current = () => live && panelStore.get().open?.key === open.key;
|
|
32
|
+
(async () => {
|
|
33
|
+
try {
|
|
34
|
+
const response = await fetch(replyPreviewUrl(open.instance, open.spec.path), { credentials: "same-origin", cache: "no-store", signal: abort.signal });
|
|
35
|
+
const body = await response.json(); if (!current()) return;
|
|
36
|
+
if (!response.ok) { setState({ error: reason(body.error) }); return; }
|
|
37
|
+
if (body.kind === "image") {
|
|
38
|
+
// The click is still current. The regular image viewer owns Escape, zoom and focus return.
|
|
39
|
+
closePanel(); openReplyPreviewImage(replyPreviewUrl(open.instance, open.spec.path, "raw"), open.spec.path, open.opener); return;
|
|
40
|
+
}
|
|
41
|
+
if (body.kind === "text" && /\.(md|markdown)$/i.test(open.spec.path) && !open.spec.line) {
|
|
42
|
+
openMarkdown({ key: open.key + ":md", instance: open.instance, msgKey: open.msgKey, text: body.text, att: { name: open.spec.path }, sender: open.instance }); return;
|
|
43
|
+
}
|
|
44
|
+
setState({ body });
|
|
45
|
+
} catch { if (current()) setState({ error: reason("failed") }); }
|
|
46
|
+
})();
|
|
47
|
+
return () => { live = false; abort.abort(); };
|
|
48
|
+
}, [open.key]);
|
|
49
|
+
const spec = open.spec;
|
|
50
|
+
return html`<aside data-trust="preview" class=${`pv-panel ws-panel reply-file-panel${fs ? ` pv-fs pv-fs-${fs}` : ""}`} ref=${panel} aria-label=${t("replyPreview.title")} onKeyDown=${onKey}>
|
|
51
|
+
<div class="pv-panel-head">
|
|
52
|
+
<div class="pv-panel-title"><strong>${t("replyPreview.title")}</strong><span class="pv-source">${open.instance}</span></div>
|
|
53
|
+
<button type="button" class="icon-btn only-wide" aria-label=${t(fs ? "chat.pvFsExit" : "chat.pvFs")} onClick=${() => fs ? leaveFs() : enterFs()}><${Icon} name=${fs ? "fullscreenexit" : "fullscreen"} size=${16} /></button>
|
|
54
|
+
<button type="button" class="icon-btn pv-panel-close" aria-label=${t("chat.pvClose")} onClick=${close}><${Icon} name="close" size=${18} /></button>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="pv-note ws-readonly">${t("replyPreview.readonly")}</div>
|
|
57
|
+
<div class="pv-panel-body show-code ws-body">
|
|
58
|
+
${state.loading ? html`<${Skeleton} lines=${10} label=${t("replyPreview.loading")} />` : state.error ? html`<div class="pv-note" role="alert">${state.error}</div>`
|
|
59
|
+
: state.body?.kind === "pdf" ? html`<code class="ws-path">${spec.path}</code><iframe data-reply-pdf title=${t("replyPreview.pdf")} src=${replyPreviewUrl(open.instance, spec.path, "raw")}></iframe>`
|
|
60
|
+
: state.body ? html`<${WorkspaceFileViewer} file=${{ path: spec.path, state: "ready", body: state.body, ...(spec.line ? { hl: { kind: "read", from: spec.line, to: spec.endLine || spec.line } } : {}) }}
|
|
61
|
+
highlightLabel=${t("replyPreview.lines", spec.line, spec.endLine || spec.line)} scroll=${el => el.scrollIntoView({ block: "center" })} />` : null}
|
|
62
|
+
</div>
|
|
63
|
+
</aside>`;
|
|
64
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function safeRuntimeOrigin(server: unknown): string;
|
|
2
2
|
export function runtimeConnectCommand(server: unknown): string;
|
|
3
|
-
export function runtimeInstallCommand(server: unknown, scriptSha256: unknown): string;
|
|
4
|
-
export function runtimeEnrollCommand(server: unknown, scriptSha256: unknown, token: unknown, fingerprint: unknown): string;
|
|
3
|
+
export function runtimeInstallCommand(server: unknown, scriptSha256: unknown, mode?: "personal"): string;
|
|
4
|
+
export function runtimeEnrollCommand(server: unknown, scriptSha256: unknown, token: unknown, fingerprint: unknown, mode?: "personal"): string;
|
|
5
5
|
export function runtimeInstallOnlyCommand(server: unknown, scriptSha256: unknown): string;
|
|
6
6
|
export function runtimeWindowsConnectCommand(server: unknown): string;
|
|
@@ -49,15 +49,18 @@ export function runtimeConnectCommand(server) {
|
|
|
49
49
|
* window; anywhere else (a redirected stdin or stdout, -NonInteractive, an AI agent, CI) it only installs and prints the connect command.
|
|
50
50
|
* Nothing about that decision is in this command, so the hash pin covers all of it. The pairing code is never part of a command.
|
|
51
51
|
*/
|
|
52
|
-
export function runtimeInstallCommand(server, scriptSha256) {
|
|
52
|
+
export function runtimeInstallCommand(server, scriptSha256, mode = "") {
|
|
53
53
|
const origin = safeRuntimeOrigin(server);
|
|
54
54
|
if (!origin || typeof scriptSha256 !== "string" || !/^[a-f0-9]{64}$/.test(scriptSha256)) return "";
|
|
55
|
+
const failed = mode === "personal"
|
|
56
|
+
? "An error about a certificate or trust means this computer doesn't trust this Hub yet. Ask your Hub administrator. Don't change security settings to get past it. If this was not a certificate error, get a new command and try again."
|
|
57
|
+
: "install.ps1 could not be verified against the hash on the AgEnD page (a certificate or download error above is the usual cause: trust this AgEnD certificate, or use the ZIP; otherwise reload the page and copy the command again)";
|
|
55
58
|
return `[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072; `
|
|
56
59
|
+ `$agend = '${origin}'; $s = $null; $h = $null; `
|
|
57
60
|
+ `$s = (iwr "$agend/runtime/install.ps1" -UseBasicParsing).Content; `
|
|
58
61
|
+ `$h = (-join ([Security.Cryptography.SHA256]::Create().ComputeHash([Text.Encoding]::UTF8.GetBytes($s)) | % { $_.ToString('x2') })); `
|
|
59
62
|
+ `if ($s -and $h -eq '${scriptSha256}') { iex $s } `
|
|
60
|
-
+ `else { Write-Host '
|
|
63
|
+
+ `else { Write-Host '${failed.replaceAll("'", "''")}' -ForegroundColor Red; throw 'install.ps1 was not run' }`;
|
|
61
64
|
}
|
|
62
65
|
/**
|
|
63
66
|
* The install command with a ONE-TIME enrollment token inside: pasted on ANY computer, or handed to an AI agent running there, it installs the
|
|
@@ -67,8 +70,8 @@ export function runtimeInstallCommand(server, scriptSha256) {
|
|
|
67
70
|
* its standard input; it is never a command-line argument. The token works once, for 15 minutes, and is revoked from this page; anyone who gets this text
|
|
68
71
|
* while it is valid can connect THEIR computer as your Runtime, so treat it like a password: do not paste it into chats or tickets.
|
|
69
72
|
*/
|
|
70
|
-
export function runtimeEnrollCommand(server, scriptSha256, token, fingerprint) {
|
|
71
|
-
const body = runtimeInstallCommand(server, scriptSha256);
|
|
73
|
+
export function runtimeEnrollCommand(server, scriptSha256, token, fingerprint, mode = "") {
|
|
74
|
+
const body = runtimeInstallCommand(server, scriptSha256, mode);
|
|
72
75
|
if (!body || typeof token !== "string" || !ENROLL_TOKEN.test(token) || typeof fingerprint !== "string" || !SERVER_FINGERPRINT.test(fingerprint)) return "";
|
|
73
76
|
// `$LASTEXITCODE` is reset first (a stale value from an earlier command must not look like a failure) and checked last: `powershell -Command` returns 1 only when
|
|
74
77
|
// its last statement failed, so an AI agent or CI step sees a non-zero exit status when the install or the connection did not succeed. Silent and harmless at a prompt.
|
|
@@ -33,7 +33,7 @@ register("accessov", {
|
|
|
33
33
|
on: "On", goOwner: "Owner verification settings", twoStepNone: "Without it, changes from other devices are confirmed with Apply now.",
|
|
34
34
|
otherTitle: "Other connections", otherLead: "Disconnect or remove each one on its own page.",
|
|
35
35
|
hub: "Hub", hubHint: "Your team's Hub and the agents shared there", windows: "Windows computers", windowsHint: "Windows computers connected to run agents",
|
|
36
|
-
|
|
36
|
+
hubOn: "Connected", paired: "{0} connected",
|
|
37
37
|
},
|
|
38
38
|
"zh-TW": {
|
|
39
39
|
tab: "總覽", devicesTitle: "已登入的裝置", devicesCount: "{0} 個登入", more: "另外 {0} 個,到「裝置與登入」查看", manageDevices: "裝置與登入", manageGuests: "訪客",
|
|
@@ -52,7 +52,7 @@ register("accessov", {
|
|
|
52
52
|
on: "開啟", goOwner: "擁有者驗證設定", twoStepNone: "未設定時,其他裝置上的變更以「立即套用」確認。",
|
|
53
53
|
otherTitle: "其他連線", otherLead: "到各自的頁面中斷或移除。",
|
|
54
54
|
hub: "Hub", hubHint: "你的團隊 Hub,以及在那裡分享的 Agent", windows: "Windows 電腦", windowsHint: "連上這裡、用來執行 Agent 的 Windows 電腦",
|
|
55
|
-
|
|
55
|
+
hubOn: "已連接", paired: "已連上 {0} 台",
|
|
56
56
|
},
|
|
57
57
|
});
|
|
58
58
|
const to = (k, ...a) => t(`accessov.${k}`, ...a);
|
|
@@ -171,7 +171,7 @@ export function AccessOverview({ web = {}, hub, openTab, overPublicLink, active
|
|
|
171
171
|
</div>
|
|
172
172
|
<section class="s-ov-other" id="ovOther"><h3>${to("otherTitle")}</h3><p class="note">${to("otherLead")}</p>
|
|
173
173
|
<div class="s-ov-tiles">
|
|
174
|
-
${[["plug", "hub", "hubHint", "hub", hub ? to("hubOn") : null], ["code", "windows", "windowsHint", "runtimes", machines ? to("paired", machines) : null]
|
|
174
|
+
${[["plug", "hub", "hubHint", "hub", hub ? to("hubOn") : null], ["code", "windows", "windowsHint", "runtimes", machines ? to("paired", machines) : null]].map(([icon, k, hint, sec, state]) => html`
|
|
175
175
|
<button type="button" class="s-ov-tile" data-ov-go=${sec} onClick=${() => navigate(sectionPath(sec))}><${Icon} name=${icon} size=${18} />
|
|
176
176
|
<span><strong>${to(k)}</strong><small>${to(hint)}</small>${state ? html`<small class="s-ov-state">${state}</small>` : null}</span><${Icon} name="chevron" size=${16} /></button>`)}
|
|
177
177
|
</div>
|
|
@@ -77,15 +77,13 @@ function refusal(body) {
|
|
|
77
77
|
*/
|
|
78
78
|
export function AppearanceSection(props = {}) {
|
|
79
79
|
const part = props.part || "look";
|
|
80
|
-
const publicLink = typeof document !== "undefined" && document.body && document.body.dataset.publicLink === "1";
|
|
81
80
|
// #2347 regrouping: Look (the person's own), this device's switches (in Preferences) and the host-wide cards (in Web
|
|
82
|
-
// dashboard) are drawn where each belongs.
|
|
83
|
-
|
|
84
|
-
<${ThemeModeCard} publicLink=${true} />
|
|
85
|
-
<section class="card s-appearance"><h3>${tn("cssTitle")}</h3><p class="sub">${tn("cssPublicLink")}</p></section>
|
|
86
|
-
</div></div>` : null;
|
|
81
|
+
// dashboard) are drawn where each belongs. M-3278 (decision 7933bf90): the public link's page draws the full Look, as the
|
|
82
|
+
// local dashboard does (it had only the theme choice and a note); its admin session's changes are answered as locally.
|
|
87
83
|
if (part === "device") return html`<${MotionCard} ...${props} /><${DeviceCard} ...${props} />`;
|
|
88
|
-
|
|
84
|
+
// The card upload limits (Settings → Appearance's fleet setting) are not changed over the public link: the server refuses it.
|
|
85
|
+
const overLink = typeof document !== "undefined" && document.body && document.body.dataset.publicLink === "1";
|
|
86
|
+
if (part === "dashboard") return overLink ? html`<${AppIconCard} />` : html`<${AppIconCard} /><details class="s-look-disclosure s-dashboard-limits"><summary><${Icon} name="sliders" size=${17} /><span>${tn("cardLimitsTitle")}</span><${Icon} name="chevron" size=${16} /></summary><div class="s-look-disclosure-body"><${CardLimitsCard} /></div></details>`;
|
|
89
87
|
return html`<div class="s-look-workspace">
|
|
90
88
|
<div class="s-look-basics">
|
|
91
89
|
<div class="s-look-main">
|
|
@@ -108,8 +106,8 @@ export function AppearanceSection(props = {}) {
|
|
|
108
106
|
</div>`;
|
|
109
107
|
}
|
|
110
108
|
|
|
111
|
-
/** Theme remains a normal personal preference
|
|
112
|
-
function ThemeModeCard(
|
|
109
|
+
/** Theme remains a normal personal preference. */
|
|
110
|
+
function ThemeModeCard() {
|
|
113
111
|
const [theme, setTheme] = useState(typeof AgendTheme !== "undefined" ? AgendTheme.get() : "system");
|
|
114
112
|
useEffect(() => (typeof AgendTheme !== "undefined" && typeof AgendTheme.onChange === "function" ? AgendTheme.onChange(setTheme) : undefined), []);
|
|
115
113
|
const choose = (value) => { setTheme(value); if (typeof AgendTheme !== "undefined") AgendTheme.set(value); savePref("theme", value); };
|
|
@@ -122,7 +120,6 @@ function ThemeModeCard({ publicLink = false }) {
|
|
|
122
120
|
</label>`)}
|
|
123
121
|
</div></fieldset>
|
|
124
122
|
<${SettingsContentWidth} />
|
|
125
|
-
${publicLink ? html`<p class="sub">${tn("syncedPublicLink")}</p>` : null}
|
|
126
123
|
</section>`;
|
|
127
124
|
}
|
|
128
125
|
|