@songsid/agend 2.4.0-beta.25 → 2.4.0-beta.27
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-endpoint.d.ts +1 -0
- package/dist/agent-endpoint.js +5 -0
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-file-read.js +1 -1
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-whats-new.js +4 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.js +3 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/kiro-auth-store.d.ts +15 -2
- package/dist/backend/kiro-auth-store.js +64 -0
- package/dist/backend/kiro-auth-store.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/discord.js +4 -4
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.js +3 -3
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/ipc-bridge.d.ts +7 -0
- package/dist/channel/ipc-bridge.js +45 -11
- package/dist/channel/ipc-bridge.js.map +1 -1
- package/dist/channel/mcp-server.js +3 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.js +6 -4
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/cli.js +35 -2
- package/dist/cli.js.map +1 -1
- package/dist/daemon.d.ts +64 -3
- package/dist/daemon.js +497 -102
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +107 -7
- package/dist/delivery-outbox.js +297 -9
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/detached-fleet-stop.d.ts +40 -0
- package/dist/detached-fleet-stop.js +126 -0
- package/dist/detached-fleet-stop.js.map +1 -0
- package/dist/fleet-lock.d.ts +21 -0
- package/dist/fleet-lock.js +61 -2
- package/dist/fleet-lock.js.map +1 -1
- package/dist/fleet-manager.d.ts +502 -5
- package/dist/fleet-manager.js +2845 -228
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +39 -3
- package/dist/fleet-windows-runtime.js +208 -30
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +6 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +17 -2
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +3 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +102 -25
- package/dist/hub/admin-dashboard.js +1 -1
- package/dist/hub/admin-dashboard.js.map +1 -1
- package/dist/hub/agent-catalog.d.ts +1 -1
- package/dist/hub/agent-catalog.js +4 -3
- package/dist/hub/agent-catalog.js.map +1 -1
- package/dist/hub/agent-intro.d.ts +1 -1
- package/dist/hub/agent-intro.js +1 -1
- package/dist/hub/agent-intro.js.map +1 -1
- package/dist/hub/agent-pictures.d.ts +1 -1
- package/dist/hub/agent-pictures.js +4 -3
- package/dist/hub/agent-pictures.js.map +1 -1
- package/dist/hub/catalog.d.ts +2 -2
- package/dist/hub/catalog.js +16 -13
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.js +16 -2
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.js +14 -2
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +1 -0
- package/dist/hub/compose/server.js +6 -3
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/fleet-updates.d.ts +2 -2
- package/dist/hub/fleet-updates.js +7 -5
- package/dist/hub/fleet-updates.js.map +1 -1
- package/dist/hub/fleet-versions.d.ts +1 -1
- package/dist/hub/fleet-versions.js +3 -2
- package/dist/hub/fleet-versions.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +1 -1
- package/dist/hub/http/compose.js +59 -31
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/deps.d.ts +1 -0
- package/dist/hub/http/schema.js +4 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/join/service.d.ts +6 -0
- package/dist/hub/join/service.js +10 -0
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/member/room-ask.d.ts +7 -8
- package/dist/hub/member/room-ask.js +54 -13
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-post.d.ts +4 -0
- package/dist/hub/member/room-post.js +26 -1
- package/dist/hub/member/room-post.js.map +1 -1
- package/dist/hub/member/room-reaction-acks.d.ts +12 -0
- package/dist/hub/member/room-reaction-acks.js +44 -0
- package/dist/hub/member/room-reaction-acks.js.map +1 -0
- package/dist/hub/protocol.d.ts +62 -0
- package/dist/hub/protocol.js +5 -4
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/quota.d.ts +2 -2
- package/dist/hub/quota.js +6 -4
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/read-statement.d.ts +6 -0
- package/dist/hub/read-statement.js +33 -0
- package/dist/hub/read-statement.js.map +1 -0
- package/dist/hub/recommendations.d.ts +1 -1
- package/dist/hub/recommendations.js +3 -2
- package/dist/hub/recommendations.js.map +1 -1
- package/dist/hub/representative.d.ts +2 -0
- package/dist/hub/representative.js +8 -4
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/roles/audit-details.d.ts +2 -0
- package/dist/hub/roles/audit-details.js +1 -1
- package/dist/hub/roles/audit-details.js.map +1 -1
- package/dist/hub/roles/authority.d.ts +8 -3
- package/dist/hub/roles/authority.js +144 -102
- package/dist/hub/roles/authority.js.map +1 -1
- package/dist/hub/roles/clock.js +6 -5
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/delegation.js +2 -2
- package/dist/hub/roles/delegation.js.map +1 -1
- package/dist/hub/roles/model.d.ts +5 -2
- package/dist/hub/roles/model.js +5 -4
- package/dist/hub/roles/model.js.map +1 -1
- package/dist/hub/roles/read.d.ts +2 -0
- package/dist/hub/roles/read.js +27 -6
- package/dist/hub/roles/read.js.map +1 -1
- package/dist/hub/roles/review.js +2 -2
- package/dist/hub/roles/review.js.map +1 -1
- package/dist/hub/room-history-model.d.ts +87 -0
- package/dist/hub/room-history-model.js +14 -0
- package/dist/hub/room-history-model.js.map +1 -0
- package/dist/hub/room-react-ack-model.d.ts +2 -0
- package/dist/hub/room-react-ack-model.js +3 -0
- package/dist/hub/room-react-ack-model.js.map +1 -0
- package/dist/hub/rooms/admin.d.ts +6 -0
- package/dist/hub/rooms/admin.js +33 -0
- package/dist/hub/rooms/admin.js.map +1 -1
- package/dist/hub/rooms/agents.d.ts +3 -1
- package/dist/hub/rooms/agents.js +47 -5
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/history.d.ts +8 -0
- package/dist/hub/rooms/history.js +31 -0
- package/dist/hub/rooms/history.js.map +1 -0
- package/dist/hub/rooms/schema.d.ts +2 -0
- package/dist/hub/rooms/schema.js +4 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +40 -20
- package/dist/hub/rooms/service.js +181 -50
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +2 -0
- package/dist/hub/server.js +15 -3
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-epoch.js +2 -1
- package/dist/hub/session-epoch.js.map +1 -1
- package/dist/hub/settings-directory-decision.js +3 -2
- package/dist/hub/settings-directory-decision.js.map +1 -1
- package/dist/hub/settings-member-address-decision.js +2 -1
- package/dist/hub/settings-member-address-decision.js.map +1 -1
- package/dist/hub/settings-web-address-decision.js +2 -1
- package/dist/hub/settings-web-address-decision.js.map +1 -1
- package/dist/hub/store.d.ts +1 -0
- package/dist/hub/store.js +12 -4
- package/dist/hub/store.js.map +1 -1
- package/dist/hub/types.d.ts +4 -2
- package/dist/hub-agent-incarnation-record.d.ts +24 -0
- package/dist/hub-agent-incarnation-record.js +46 -0
- package/dist/hub-agent-incarnation-record.js.map +1 -0
- package/dist/human-delivery-receipts.d.ts +16 -4
- package/dist/human-delivery-receipts.js +26 -5
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +9 -3
- package/dist/instance-lifecycle.js +27 -10
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/local-pane-endpoint.d.ts +14 -0
- package/dist/local-pane-endpoint.js +32 -0
- package/dist/local-pane-endpoint.js.map +1 -1
- package/dist/locale.js +54 -6
- package/dist/locale.js.map +1 -1
- package/dist/native-agent-admission.js +9 -0
- package/dist/native-agent-admission.js.map +1 -1
- package/dist/native-exec-context.d.ts +11 -0
- package/dist/native-exec-context.js +18 -0
- package/dist/native-exec-context.js.map +1 -0
- package/dist/native-exec-input.d.ts +56 -0
- package/dist/native-exec-input.js +89 -0
- package/dist/native-exec-input.js.map +1 -0
- package/dist/native-mcp.d.ts +9 -1
- package/dist/native-mcp.js +29 -7
- package/dist/native-mcp.js.map +1 -1
- package/dist/native-pane-lifecycle.d.ts +3 -0
- package/dist/native-pane-lifecycle.js +2 -0
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/native-pane-manager.d.ts +18 -0
- package/dist/native-pane-manager.js +85 -8
- package/dist/native-pane-manager.js.map +1 -1
- package/dist/needs-you.d.ts +2 -1
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +1 -0
- package/dist/outbound-handlers.js +9 -3
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +5 -0
- package/dist/outbound-schemas.js +2 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +5 -1
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/recover.cjs +213 -26
- package/dist/reply-buttons-controller.d.ts +1 -0
- package/dist/reply-buttons-controller.js +1 -1
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/request-contact-gate.d.ts +2 -0
- package/dist/request-contact-gate.js +8 -3
- package/dist/request-contact-gate.js.map +1 -1
- package/dist/request-contact-native.js +4 -0
- package/dist/request-contact-native.js.map +1 -1
- package/dist/request-context-activation.d.ts +29 -0
- package/dist/request-context-activation.js +74 -0
- package/dist/request-context-activation.js.map +1 -0
- package/dist/request-context-admission.d.ts +22 -0
- package/dist/request-context-admission.js +12 -0
- package/dist/request-context-admission.js.map +1 -0
- package/dist/request-context-boot.d.ts +35 -0
- package/dist/request-context-boot.js +97 -0
- package/dist/request-context-boot.js.map +1 -0
- package/dist/request-context-call.d.ts +2 -0
- package/dist/request-context-call.js.map +1 -1
- package/dist/request-context-continuation.d.ts +6 -0
- package/dist/request-context-continuation.js +24 -0
- package/dist/request-context-continuation.js.map +1 -0
- package/dist/request-context-control-api.d.ts +101 -0
- package/dist/request-context-control-api.js +177 -0
- package/dist/request-context-control-api.js.map +1 -0
- package/dist/request-context-control-copy.d.ts +3 -0
- package/dist/request-context-control-copy.js +7 -0
- package/dist/request-context-control-copy.js.map +1 -0
- package/dist/request-context-controller.d.ts +44 -0
- package/dist/request-context-controller.js +129 -0
- package/dist/request-context-controller.js.map +1 -0
- package/dist/request-context-delivery-resolver.d.ts +13 -0
- package/dist/request-context-delivery-resolver.js +30 -0
- package/dist/request-context-delivery-resolver.js.map +1 -0
- package/dist/request-context-drain.d.ts +13 -0
- package/dist/request-context-drain.js +79 -6
- package/dist/request-context-drain.js.map +1 -1
- package/dist/request-context-enable-offer.d.ts +13 -0
- package/dist/request-context-enable-offer.js +31 -0
- package/dist/request-context-enable-offer.js.map +1 -0
- package/dist/request-context-exec-owner.d.ts +39 -0
- package/dist/request-context-exec-owner.js +128 -0
- package/dist/request-context-exec-owner.js.map +1 -0
- package/dist/request-context-go-back-view.d.ts +1 -0
- package/dist/request-context-go-back-view.js +17 -0
- package/dist/request-context-go-back-view.js.map +1 -0
- package/dist/request-context-helper-readiness.d.ts +14 -0
- package/dist/request-context-helper-readiness.js +23 -0
- package/dist/request-context-helper-readiness.js.map +1 -0
- package/dist/request-context-helper.d.ts +20 -0
- package/dist/request-context-helper.js +41 -0
- package/dist/request-context-helper.js.map +1 -0
- package/dist/request-context-hub-resolver.d.ts +29 -0
- package/dist/request-context-hub-resolver.js +90 -0
- package/dist/request-context-hub-resolver.js.map +1 -0
- package/dist/request-context-human-resolver.d.ts +20 -0
- package/dist/request-context-human-resolver.js +77 -0
- package/dist/request-context-human-resolver.js.map +1 -0
- package/dist/request-context-human.d.ts +106 -0
- package/dist/request-context-human.js +153 -0
- package/dist/request-context-human.js.map +1 -0
- package/dist/request-context-inputs.d.ts +21 -0
- package/dist/request-context-inputs.js +63 -0
- package/dist/request-context-inputs.js.map +1 -0
- package/dist/request-context-installation.d.ts +117 -0
- package/dist/request-context-installation.js +328 -0
- package/dist/request-context-installation.js.map +1 -0
- package/dist/request-context-knowledge.d.ts +5 -0
- package/dist/request-context-knowledge.js +32 -0
- package/dist/request-context-knowledge.js.map +1 -0
- package/dist/request-context-native-human.d.ts +20 -0
- package/dist/request-context-native-human.js +91 -0
- package/dist/request-context-native-human.js.map +1 -0
- package/dist/request-context-native-output.d.ts +15 -0
- package/dist/request-context-native-output.js +46 -0
- package/dist/request-context-native-output.js.map +1 -0
- package/dist/request-context-native-result.d.ts +15 -0
- package/dist/request-context-native-result.js +46 -0
- package/dist/request-context-native-result.js.map +1 -0
- package/dist/request-context-off.d.ts +22 -0
- package/dist/request-context-off.js +77 -0
- package/dist/request-context-off.js.map +1 -0
- package/dist/request-context-outside-label.d.ts +5 -0
- package/dist/request-context-outside-label.js +28 -0
- package/dist/request-context-outside-label.js.map +1 -0
- package/dist/request-context-pane.d.ts +8 -0
- package/dist/request-context-pane.js +19 -0
- package/dist/request-context-pane.js.map +1 -1
- package/dist/request-context-pending-work.d.ts +11 -0
- package/dist/request-context-pending-work.js +43 -0
- package/dist/request-context-pending-work.js.map +1 -0
- package/dist/request-context-policy.d.ts +17 -1
- package/dist/request-context-policy.js +84 -6
- package/dist/request-context-policy.js.map +1 -1
- package/dist/request-context-readiness.d.ts +49 -0
- package/dist/request-context-readiness.js +64 -0
- package/dist/request-context-readiness.js.map +1 -0
- package/dist/request-context-recovery.d.ts +6 -2
- package/dist/request-context-recovery.js +25 -0
- package/dist/request-context-recovery.js.map +1 -1
- package/dist/request-context-relay.d.ts +2 -2
- package/dist/request-context-relay.js +10 -10
- package/dist/request-context-relay.js.map +1 -1
- package/dist/request-context-retirement.d.ts +19 -0
- package/dist/request-context-retirement.js +16 -0
- package/dist/request-context-retirement.js.map +1 -0
- package/dist/request-context-start.d.ts +15 -0
- package/dist/request-context-start.js +2 -0
- package/dist/request-context-start.js.map +1 -0
- package/dist/request-context-turns.d.ts +1 -1
- package/dist/request-context-turns.js +3 -2
- package/dist/request-context-turns.js.map +1 -1
- package/dist/request-context-unproved-label.d.ts +4 -0
- package/dist/request-context-unproved-label.js +25 -0
- package/dist/request-context-unproved-label.js.map +1 -0
- package/dist/request-context-update-guard.d.ts +15 -0
- package/dist/request-context-update-guard.js +54 -0
- package/dist/request-context-update-guard.js.map +1 -0
- package/dist/request-context-work.d.ts +50 -0
- package/dist/request-context-work.js +178 -0
- package/dist/request-context-work.js.map +1 -0
- package/dist/request-hub-context.d.ts +1 -0
- package/dist/request-hub-output.d.ts +2 -0
- package/dist/request-hub-output.js +12 -0
- package/dist/request-hub-output.js.map +1 -1
- package/dist/retained-human-control.d.ts +11 -0
- package/dist/retained-human-control.js +11 -0
- package/dist/retained-human-control.js.map +1 -0
- package/dist/runtime-build-info.js +1 -1
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli.js +1 -1
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.js +7 -1
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.js +15 -3
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +23 -0
- package/dist/runtime-coordinator.js +103 -4
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-pane-mcp.d.ts +9 -0
- package/dist/runtime-pane-mcp.js +22 -2
- package/dist/runtime-pane-mcp.js.map +1 -1
- package/dist/runtime-protocol.d.ts +2 -0
- package/dist/runtime-protocol.js.map +1 -1
- package/dist/runtime-update-controller.js +1 -1
- package/dist/runtime-update-controller.js.map +1 -1
- package/dist/runtime-windows-bridge.d.ts +8 -0
- package/dist/runtime-windows-bridge.js +50 -3
- package/dist/runtime-windows-bridge.js.map +1 -1
- package/dist/scheduler/scheduler.d.ts +9 -0
- package/dist/scheduler/scheduler.js +26 -0
- package/dist/scheduler/scheduler.js.map +1 -1
- package/dist/scheduler/scheduler.test.js +17 -0
- package/dist/scheduler/scheduler.test.js.map +1 -1
- package/dist/service-install-handover.d.ts +52 -0
- package/dist/service-install-handover.js +50 -0
- package/dist/service-install-handover.js.map +1 -0
- package/dist/service-installer.d.ts +12 -0
- package/dist/service-installer.js +24 -10
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +2 -0
- package/dist/settings-api.js +76 -0
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +1 -0
- package/dist/settings-baseline.js +5 -4
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +13 -0
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +2 -0
- package/dist/settings-confirmation.js +6 -0
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +2 -0
- package/dist/settings-effect.js +55 -2
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +3 -0
- package/dist/settings-http-confirmation.js +29 -0
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-route-lifetime.d.ts +3 -1
- package/dist/settings-route-lifetime.js +15 -5
- package/dist/settings-route-lifetime.js.map +1 -1
- package/dist/settings-transaction.d.ts +3 -2
- package/dist/settings-transaction.js.map +1 -1
- package/dist/tips.js +1 -1
- package/dist/tips.js.map +1 -1
- package/dist/tool-permissions.js +3 -3
- package/dist/tool-permissions.js.map +1 -1
- package/dist/tool-receipt-output.d.ts +6 -6
- package/dist/turn-reply-guard.d.ts +16 -1
- package/dist/turn-reply-guard.js +20 -2
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/ui/app.html +2 -2
- package/dist/ui/contact-auth-strings.js +13 -8
- package/dist/ui/contact-authorizations.js +19 -1
- package/dist/ui/contact-grant-editor.js +71 -11
- package/dist/ui/contact-needs.js +27 -8
- package/dist/ui/contact-permissions.js +34 -9
- package/dist/ui/contact-tool-groups.js +1 -1
- package/dist/ui/fleet-office-pack.d.ts +2 -2
- package/dist/ui/fleet-office-pack.js +25 -8
- package/dist/ui/fleet-office-vehicles.js +28 -11
- package/dist/ui/fleet-office-zones.js +2 -2
- package/dist/ui/fleet-office.js +25 -5
- package/dist/ui/hub-admin-rooms-strings.js +6 -2
- package/dist/ui/hub-admin-rooms.js +3 -1
- package/dist/ui/hub-client.js +3 -0
- package/dist/ui/hub-group-search.js +2 -2
- package/dist/ui/hub-notify-keep.js +49 -0
- package/dist/ui/hub-role-view.js +1 -1
- package/dist/ui/hub-roles-strings.js +14 -10
- package/dist/ui/hub-roles.js +1 -1
- package/dist/ui/hub-room-members.js +4 -2
- package/dist/ui/hub-room-notify.js +2 -1
- package/dist/ui/hub-room-settings-strings.js +8 -0
- package/dist/ui/hub-room-settings.js +32 -0
- package/dist/ui/hub-room-strings.js +3 -3
- package/dist/ui/hub-room-thread.js +16 -5
- package/dist/ui/icons/hub-apple-touch-icon.png +0 -0
- package/dist/ui/icons/hub-favicon.ico +0 -0
- package/dist/ui/icons/hub-favicon.svg +10 -0
- package/dist/ui/icons/hub-icon-192.png +0 -0
- package/dist/ui/icons/hub-icon-512.png +0 -0
- package/dist/ui/icons/hub-icon-maskable-192.png +0 -0
- package/dist/ui/icons/hub-icon-maskable-512.png +0 -0
- package/dist/ui/icons/hub-maskable.svg +12 -0
- package/dist/ui/panel-hub.js +17 -5
- package/dist/ui/panel-needs.js +15 -6
- package/dist/ui/panel-settings.js +2 -1
- package/dist/ui/request-contact-card.js +287 -0
- package/dist/ui/request-contact-client.js +83 -0
- package/dist/ui/request-contact-page.js +78 -0
- package/dist/ui/request-context-control.js +171 -0
- package/dist/ui/settings-registry.js +2 -0
- package/dist/ui/settings-update.js +15 -1
- package/dist/ui/shared/app-install.js +123 -0
- package/dist/ui/shared/app-shell.js +17 -5
- package/dist/ui/shared/app-stream.js +1 -0
- package/dist/ui/shared/app-update.js +17 -2
- package/dist/ui/shared/app.css +136 -8
- package/dist/ui/shared/app.js +19 -2
- package/dist/ui/shared/hub-chat.css +6 -0
- package/dist/ui/shared/ui-confirm.js +4 -3
- package/dist/ui/shared/ui-icons.js +2 -0
- package/dist/ui/shared/ui-states.js +6 -0
- package/dist/ui/shared/update-card-ui.js +586 -0
- package/dist/ui/shared/view-strings.js +18 -0
- package/dist/ui/shared/web-authorize.js +1 -1
- package/dist/update-abandon.d.ts +26 -0
- package/dist/update-abandon.js +111 -0
- package/dist/update-abandon.js.map +1 -0
- package/dist/update-card.d.ts +1 -1
- package/dist/update-card.js +7 -7
- package/dist/update-card.js.map +1 -1
- package/dist/update-fix.d.ts +66 -0
- package/dist/update-fix.js +67 -0
- package/dist/update-fix.js.map +1 -0
- package/dist/update-forward.d.ts +5 -19
- package/dist/update-forward.js +19 -75
- package/dist/update-forward.js.map +1 -1
- package/dist/update-goback.d.ts +90 -0
- package/dist/update-goback.js +270 -0
- package/dist/update-goback.js.map +1 -0
- package/dist/update-journal.d.ts +8 -0
- package/dist/update-journal.js +8 -2
- package/dist/update-journal.js.map +1 -1
- package/dist/update-package-restore.d.ts +11 -2
- package/dist/update-package-restore.js +16 -5
- package/dist/update-package-restore.js.map +1 -1
- package/dist/update-quiescence.d.ts +38 -9
- package/dist/update-quiescence.js +50 -10
- package/dist/update-quiescence.js.map +1 -1
- package/dist/update-readiness.d.ts +2 -0
- package/dist/update-readiness.js +5 -1
- package/dist/update-readiness.js.map +1 -1
- package/dist/update-recovery/recover.js +10 -0
- package/dist/update-recovery/recover.js.map +1 -1
- package/dist/update-recovery/runner.d.ts +4 -0
- package/dist/update-recovery/runner.js +38 -5
- package/dist/update-recovery/runner.js.map +1 -1
- package/dist/update-restore.d.ts +7 -1
- package/dist/update-restore.js +10 -5
- package/dist/update-restore.js.map +1 -1
- package/dist/update-retained.d.ts +28 -1
- package/dist/update-retained.js +28 -3
- package/dist/update-retained.js.map +1 -1
- package/dist/update-settings.d.ts +27 -0
- package/dist/update-settings.js +40 -0
- package/dist/update-settings.js.map +1 -1
- package/dist/update-snapshot-scope.js +2 -0
- package/dist/update-snapshot-scope.js.map +1 -1
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +9 -0
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/providers.d.ts +3 -11
- package/dist/usage/providers.js +93 -131
- package/dist/usage/providers.js.map +1 -1
- package/dist/web-api.d.ts +4 -0
- package/dist/web-api.js +50 -7
- package/dist/web-api.js.map +1 -1
- package/dist/web-chat-history.d.ts +2 -0
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-icons.d.ts +20 -3
- package/dist/web-icons.js +76 -7
- package/dist/web-icons.js.map +1 -1
- package/dist/web-mentions.d.ts +27 -8
- package/dist/web-mentions.js +108 -1
- package/dist/web-mentions.js.map +1 -1
- package/dist/web-office-acts.js +3 -0
- package/dist/web-office-acts.js.map +1 -1
- package/dist/web-update.d.ts +9 -0
- package/dist/windows-agents.d.ts +24 -2
- package/dist/windows-agents.js +110 -4
- package/dist/windows-agents.js.map +1 -1
- package/dist/windows-cli-worker.js +9 -1
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +15 -0
- package/dist/windows-cli.js +54 -6
- package/dist/windows-cli.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Hub rooms, Administration → Rooms (docs/design/hub-rooms-ux.md section 11), for the Hub administrator:
|
|
2
|
-
// - 「誰可以開房間」: people and teams who may start rooms besides the administrators (
|
|
2
|
+
// - 「誰可以開房間」: people and teams who may start rooms besides the administrators (roles are an independent grant);
|
|
3
3
|
// saved as soon as it changes; everyone can always start a one-to-one chat.
|
|
4
4
|
// - 「所有房間」: every group room's name, people, agents, managers, last activity and status, never its content. Each
|
|
5
5
|
// row's menu: 加入自己成為房間管理 (the room then shows a line saying so) and 封存 (after a confirmation).
|
|
@@ -54,9 +54,11 @@ export function AdminRooms({ client = hubClient() } = {}) {
|
|
|
54
54
|
${error ? html`<p class="note" role="alert">${error}</p>` : null}
|
|
55
55
|
${note ? html`<p class="note" role="status">${note}</p>` : null}
|
|
56
56
|
<section class="form hub-admin-creators"><h3>${hroom("whoCanCreate")}</h3>
|
|
57
|
+
<p class="note">${ha("roleCreators")}</p>
|
|
57
58
|
<${RoomPicker} client=${client} id="hubRoomCreators" kinds=${["person", "team"]} label=${hroom("addPeopleOrTeams")} placeholder=${hroom("addPeopleOrTeams")}
|
|
58
59
|
picked=${creators} onChange=${(next) => { if (!busy) void saveCreators(next); }} />
|
|
59
60
|
${creators.length ? null : html`<p class="note">${ha("adminOnly")}</p>`}
|
|
61
|
+
<p class="note">${ha("independentGrants")}</p>
|
|
60
62
|
<p class="note">${hroom("everyoneDirect")}</p>
|
|
61
63
|
</section>
|
|
62
64
|
<section class="hub-admin-all-rooms"><h3>${hroom("allRooms")}</h3>
|
package/dist/ui/hub-client.js
CHANGED
|
@@ -554,6 +554,9 @@ export function createHubWebClient({ fetchImpl = (...a) => fetch(...a), readTime
|
|
|
554
554
|
// Track U2 (dev-claude2): pickers, roles, invitations, leave, the agent's rooms, admin rooms.
|
|
555
555
|
// Leaving is removeRoomMember(roomId, <my id>) (409 last-manager); `me.assistant` comes with roomList()'s answer.
|
|
556
556
|
/** The new-room and add-member pickers → { ok, candidates: [{ kind: "person" | "team" | "group" | "agent", id, name, people?, owner?: { name }, mine? }] }. */
|
|
557
|
+
roomOwnAgentCandidates(roomId, q) {
|
|
558
|
+
return call("GET", `/hub/v1/rooms/${id(roomId)}/own-agent-candidates?${new URLSearchParams({ q: String(q ?? "") })}`);
|
|
559
|
+
},
|
|
557
560
|
roomCandidates(q, kind, signal) {
|
|
558
561
|
const s = new URLSearchParams({ q: String(q ?? "") });
|
|
559
562
|
if (kind) s.set("kind", kind);
|
|
@@ -15,13 +15,13 @@ export const groupSearchV1 = true;
|
|
|
15
15
|
export const groupSearchIdV1 = true;
|
|
16
16
|
register("hubGroupSearch", {
|
|
17
17
|
en: {
|
|
18
|
-
label: "Find
|
|
18
|
+
label: "Find an AD group", placeholder: "Start of the AD group's name, e.g. eng", hint: "Type at least 2 characters.",
|
|
19
19
|
searching: "Searching…", none: "No group starts with “{0}”.", more: "More groups match. Type more of the name.",
|
|
20
20
|
limited: "Too many searches. Try again in {0} seconds.", unknown: "The directory could not be searched just now. Try again, or add the group by its distinguished name.",
|
|
21
21
|
invalid: "Use 2 to 64 characters.", add: "Add {0}", addShort: "Add", added: "Added",
|
|
22
22
|
},
|
|
23
23
|
"zh-TW": {
|
|
24
|
-
label: "
|
|
24
|
+
label: "尋找 AD 群組", placeholder: "AD 群組名稱的開頭,例如 eng", hint: "請至少輸入 2 個字。",
|
|
25
25
|
searching: "搜尋中…", none: "沒有以「{0}」開頭的群組。", more: "還有更多群組符合。請多輸入幾個字。",
|
|
26
26
|
limited: "搜尋太多次了。請 {0} 秒後再試。", unknown: "目前無法搜尋目錄。請再試一次,或用辨別名稱新增群組。",
|
|
27
27
|
invalid: "請輸入 2 到 64 個字。", add: "新增 {0}", addShort: "新增", added: "已新增",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// S-257 step 1 (M-3828): turn Hub notifications on, and the first time they go on on this device, say what keeps them
|
|
2
|
+
// coming once every Hub window is closed — the installed app left running, or started at sign-in (S-255).
|
|
3
|
+
// Its own module and its own strings (Prism #4548): a tab that still holds an older hub-room-notify.js or
|
|
4
|
+
// hub-room-strings.js (cached by URL) loads this new file fresh, so nothing here depends on what those files export.
|
|
5
|
+
import { setNotify } from "/assets/app-needs.js";
|
|
6
|
+
import { installStore } from "/assets/app-install.js";
|
|
7
|
+
import { confirmDialog } from "/assets/ui-confirm.js";
|
|
8
|
+
import { register, t } from "/assets/app-i18n.js";
|
|
9
|
+
|
|
10
|
+
register("hubkeep", {
|
|
11
|
+
en: {
|
|
12
|
+
title: "Keep notifications coming",
|
|
13
|
+
tab: "Notifications arrive while a Hub tab is open, even in the background; closing every Hub tab stops them. To keep them coming, install the Hub as an app (the button beside the bell) and leave it running, minimized is fine. In Edge or Chrome, the app's settings also offer \"Start app when you sign in\".",
|
|
14
|
+
app: "Notifications arrive while this app is open, even minimized; quitting it stops them. Leave it running. In Edge or Chrome, the app's settings offer \"Start app when you sign in\", so it is there after a restart.",
|
|
15
|
+
noInstall: "Notifications arrive while a Hub tab is open, even in the background; closing every Hub tab stops them. Keep a Hub tab open. This Hub can't be installed as an app yet: its address doesn't have a certificate this browser trusts yet (the button beside the bell says more).",
|
|
16
|
+
ok: "OK",
|
|
17
|
+
},
|
|
18
|
+
"zh-TW": {
|
|
19
|
+
title: "持續收到通知",
|
|
20
|
+
tab: "Hub 分頁開著時(在背景也可以)會收到通知;關掉所有 Hub 分頁後就不會再通知。想一直收到,可以把 Hub 安裝成應用程式(鈴鐺旁的按鈕)並讓它保持開著,縮到最小也可以。在 Edge 或 Chrome 的應用程式設定中,也可以開啟「登入時啟動應用程式」。",
|
|
21
|
+
app: "這個應用程式開著時(縮到最小也可以)會收到通知;把它關掉就不會再通知。請讓它保持開著。在 Edge 或 Chrome 的應用程式設定中,可以開啟「登入時啟動應用程式」,重新開機後也會自動開啟。",
|
|
22
|
+
noInstall: "Hub 分頁開著時(在背景也可以)會收到通知;關掉所有 Hub 分頁後就不會再通知。請讓一個 Hub 分頁保持開著。這個 Hub 目前還不能安裝成應用程式:它的網址還沒有這個瀏覽器信任的憑證(鈴鐺旁的按鈕有說明)。",
|
|
23
|
+
ok: "知道了",
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
const tk = (k) => t(`hubkeep.${k}`);
|
|
27
|
+
|
|
28
|
+
const KEEP_HINT_KEY = "agend_hub_notify_kept";
|
|
29
|
+
/** Shown on this page already (when the browser's storage refuses, it is still shown once per page). */
|
|
30
|
+
let shownHere = false;
|
|
31
|
+
/** Tests only (a new page starts with nothing shown); nothing in the app calls it. */
|
|
32
|
+
export function forgetKeepHint() { shownHere = false; }
|
|
33
|
+
function firstTime() {
|
|
34
|
+
if (shownHere) return false;
|
|
35
|
+
shownHere = true;
|
|
36
|
+
try { if (localStorage.getItem(KEEP_HINT_KEY) === "1") return false; localStorage.setItem(KEEP_HINT_KEY, "1"); } catch { /* this page only */ }
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Notify on or off (app-needs.js setNotify); the first "on" on this device also says how to keep notifications coming. */
|
|
41
|
+
export async function setHubNotify(on) {
|
|
42
|
+
const state = await setNotify(on);
|
|
43
|
+
if (!on || state !== "on" || !firstTime()) return state;
|
|
44
|
+
// In the app: leave it running. A Hub that can't be installed here (an untrusted certificate, plain http): keep a tab.
|
|
45
|
+
const where = installStore.get().state;
|
|
46
|
+
const words = where === "installed" ? "app" : where === "untrusted" || where === "insecure" ? "noInstall" : "tab";
|
|
47
|
+
void confirmDialog({ title: tk("title"), message: tk(words), confirmLabel: tk("ok"), notice: true });
|
|
48
|
+
return state;
|
|
49
|
+
}
|
package/dist/ui/hub-role-view.js
CHANGED
|
@@ -3,7 +3,7 @@ import {hr} from "./hub-roles-strings.js";
|
|
|
3
3
|
import { dateTimeText } from "/assets/clock-text.js";
|
|
4
4
|
export const personKey=p=>`${p?.realm}/${p?.objectId}`;
|
|
5
5
|
export const management=["fleets.manage","join.manage","roles.assign","audit.view","hub.admin"];
|
|
6
|
-
export const permissionGroups=[{key:"usingHub",permissions:["ask_agents","publish_agents","pair_fleet"]},{key:"theirTeam",permissions:["team.view","team.usage"]},{key:"runningHub",permissions:["fleets.manage","join.manage","roles.assign","audit.view"]}];
|
|
6
|
+
export const permissionGroups=[{key:"usingHub",permissions:["ask_agents","publish_agents","pair_fleet","rooms.create"]},{key:"theirTeam",permissions:["team.view","team.usage"]},{key:"runningHub",permissions:["fleets.manage","join.manage","roles.assign","audit.view"]}];
|
|
7
7
|
const builtinNames={admin:"Administrator",manager:"Manager",member:"Member"};
|
|
8
8
|
export function roleName(role,view){
|
|
9
9
|
if(!role)return hr("unknownRole");
|
|
@@ -40,7 +40,7 @@ register("hubRole",{
|
|
|
40
40
|
"start": "Starts (optional)",
|
|
41
41
|
"expiry": "Expires (optional)",
|
|
42
42
|
"override": "Fleet limit override (optional)",
|
|
43
|
-
"personOnly": "A role with these can be given to people only, not to groups.",
|
|
43
|
+
"personOnly": "A role with these can be given to people only, not to AD groups.",
|
|
44
44
|
"groupCost": "Whoever manages this AD group can change who receives the role.",
|
|
45
45
|
"firstAdmin": "First administrator",
|
|
46
46
|
"firstAdminHelp": "Configured on the Hub host; cannot be removed here.",
|
|
@@ -80,6 +80,7 @@ register("hubRole",{
|
|
|
80
80
|
"ask_agents": "Chat with agents",
|
|
81
81
|
"publish_agents": "Share agents",
|
|
82
82
|
"pair_fleet": "Connect Fleets",
|
|
83
|
+
"rooms.create": "Create rooms",
|
|
83
84
|
"team.view": "View team roster",
|
|
84
85
|
"team.usage": "View team usage",
|
|
85
86
|
"team.approve_join": "Approve Fleet connection requests",
|
|
@@ -98,13 +99,13 @@ register("hubRole",{
|
|
|
98
99
|
"assignedTo": "Assigned to",
|
|
99
100
|
"nobodyAssigned": "Nobody yet",
|
|
100
101
|
"peopleCount": "{0} people",
|
|
101
|
-
"groupCount": "{0} groups",
|
|
102
|
+
"groupCount": "{0} AD groups",
|
|
102
103
|
"builtin": "Built-in",
|
|
103
104
|
"assignNamed": "Assign {0}",
|
|
104
|
-
"assignPeople": "Assign people or groups",
|
|
105
|
+
"assignPeople": "Assign people or AD groups",
|
|
105
106
|
"backRoles": "Back to Roles",
|
|
106
107
|
"editPermissions": "Edit permissions",
|
|
107
|
-
"adminFixed": "Built-in
|
|
108
|
+
"adminFixed": "Built-in Hub administration permissions. Creating rooms is granted separately.",
|
|
108
109
|
"usingHub": "Using the Hub",
|
|
109
110
|
"theirTeam": "Their team",
|
|
110
111
|
"runningHub": "Running the Hub",
|
|
@@ -194,6 +195,7 @@ register("hubRole",{
|
|
|
194
195
|
"description_ask_agents": "Ask the agents they are allowed to ask.",
|
|
195
196
|
"description_publish_agents": "Share their own agents and choose who may ask them.",
|
|
196
197
|
"description_pair_fleet": "Connect their own Fleet, up to the Fleet limit.",
|
|
198
|
+
"description_rooms.create": "Create group rooms. Removing this permission does not change existing rooms or their managers.",
|
|
197
199
|
"description_team.view": "See who is on their team and who has joined.",
|
|
198
200
|
"description_team.usage": "See their team’s question counts. Never what was asked.",
|
|
199
201
|
"description_fleets.manage": "See every connected Fleet and disconnect one.",
|
|
@@ -202,7 +204,7 @@ register("hubRole",{
|
|
|
202
204
|
"description_audit.view": "See who did what in this Hub. Actions only, never conversations.",
|
|
203
205
|
"description_hub.admin": "Edit roles and Hub settings, including the allowed list and the recommended version.",
|
|
204
206
|
"peopleCountOne": "1 person",
|
|
205
|
-
"groupCountOne": "1 group",
|
|
207
|
+
"groupCountOne": "1 AD group",
|
|
206
208
|
"losingPeopleOne": "1 person loses something they can do now",
|
|
207
209
|
"pausingResourcesOne": "1 shared agent or Fleet will be paused",
|
|
208
210
|
"unverifiedPeopleOne": "1 person could not be checked in AD",
|
|
@@ -254,7 +256,7 @@ register("hubRole",{
|
|
|
254
256
|
"start": "開始時間(選填)",
|
|
255
257
|
"expiry": "到期時間(選填)",
|
|
256
258
|
"override": "Fleet 台數上限(選填)",
|
|
257
|
-
"personOnly": "
|
|
259
|
+
"personOnly": "含有這些權限的角色只能指派給個人,不能指派給 AD 群組。",
|
|
258
260
|
"groupCost": "管理這個 AD 群組的人,可以變更誰取得這個角色。",
|
|
259
261
|
"firstAdmin": "第一位管理員",
|
|
260
262
|
"firstAdminHelp": "由 Hub 主機設定,不能在這裡移除。",
|
|
@@ -294,6 +296,7 @@ register("hubRole",{
|
|
|
294
296
|
"ask_agents": "和 Agent 對話",
|
|
295
297
|
"publish_agents": "分享 Agent",
|
|
296
298
|
"pair_fleet": "連接 Fleet",
|
|
299
|
+
"rooms.create": "開房間",
|
|
297
300
|
"team.view": "查看團隊名單",
|
|
298
301
|
"team.usage": "查看團隊用量",
|
|
299
302
|
"team.approve_join": "核准連接申請",
|
|
@@ -312,13 +315,13 @@ register("hubRole",{
|
|
|
312
315
|
"assignedTo": "已指派給",
|
|
313
316
|
"nobodyAssigned": "還沒有人",
|
|
314
317
|
"peopleCount": "{0} 人",
|
|
315
|
-
"groupCount": "{0}
|
|
318
|
+
"groupCount": "{0} 個 AD 群組",
|
|
316
319
|
"builtin": "內建",
|
|
317
320
|
"assignNamed": "指派「{0}」",
|
|
318
|
-
"assignPeople": "
|
|
321
|
+
"assignPeople": "指派人員或 AD 群組",
|
|
319
322
|
"backRoles": "返回角色清單",
|
|
320
323
|
"editPermissions": "編輯權限",
|
|
321
|
-
"adminFixed": "
|
|
324
|
+
"adminFixed": "內建的 Hub 管理權限;開房間權限另外授予。",
|
|
322
325
|
"usingHub": "使用 Hub",
|
|
323
326
|
"theirTeam": "所屬團隊",
|
|
324
327
|
"runningHub": "管理 Hub",
|
|
@@ -408,6 +411,7 @@ register("hubRole",{
|
|
|
408
411
|
"description_ask_agents": "向可以問的 Agent 提問。",
|
|
409
412
|
"description_publish_agents": "分享自己的 Agent,並決定誰可以問。",
|
|
410
413
|
"description_pair_fleet": "連接自己的 Fleet,數量不超過上限。",
|
|
414
|
+
"description_rooms.create": "開群組房間。移除此權限不會變更既有房間或房間管理。",
|
|
411
415
|
"description_team.view": "查看團隊有哪些人,以及誰已經加入。",
|
|
412
416
|
"description_team.usage": "查看團隊的提問次數,看不到提問內容。",
|
|
413
417
|
"description_fleets.manage": "查看所有已連接的 Fleet,並可中斷連接。",
|
|
@@ -416,7 +420,7 @@ register("hubRole",{
|
|
|
416
420
|
"description_audit.view": "查看誰在這個 Hub 做了什麼;只有動作,沒有對話內容。",
|
|
417
421
|
"description_hub.admin": "編輯角色與 Hub 設定,包含允許清單與建議版本。",
|
|
418
422
|
"peopleCountOne": "1 人",
|
|
419
|
-
"groupCountOne": "1
|
|
423
|
+
"groupCountOne": "1 個 AD 群組",
|
|
420
424
|
"losingPeopleOne": "1 人會失去目前可以做的事",
|
|
421
425
|
"pausingResourcesOne": "1 個分享的 Agent 或 Fleet 會暫停",
|
|
422
426
|
"unverifiedPeopleOne": "1 人無法在 AD 確認",
|
package/dist/ui/hub-roles.js
CHANGED
|
@@ -36,7 +36,7 @@ function RolePage({view,role,busy,canEdit,canAssign,onBack,onAssign,onEdit,onDel
|
|
|
36
36
|
const count=assignedSubjects(view,role.id).length;
|
|
37
37
|
return html`<section class="hub-role-detail"><button type="button" class="btn btn-sm" disabled=${busy} onClick=${onBack}>‹ ${hr("roles")}</button><div class="hub-card-head"><h2>${roleName(role,view)} <span class="tag">${hr(["custom","carried-over"].includes(role.kind)?role.kind==="custom"?"custom":"carried":"builtin")}</span></h2>
|
|
38
38
|
${editable&&role.kind==="custom"?html`<details class="hub-role-menu"><summary>${hr("more")}</summary><button type="button" class="btn danger" disabled=${busy} onClick=${onDelete}>${hr("delete")}</button></details>`:null}</div><p>${roleDescription(role,view)}</p><p class="note">${hr("quota")}: ${role.defaultMaxFleets}</p>
|
|
39
|
-
<${Tabs} label=${roleName(role,view)} items=${[{key:"people",label:hr("people")+" · "+count},{key:"permissions",label:hr("permissions")+" · "+hr("permissionCount",role.permissions.length,
|
|
39
|
+
<${Tabs} label=${roleName(role,view)} items=${[{key:"people",label:hr("people")+" · "+count},{key:"permissions",label:hr("permissions")+" · "+hr("permissionCount",role.permissions.length,view.permissions.length)}]} value=${tab} disabled=${busy} onChange=${setTab}/>
|
|
40
40
|
${tab==="people"?html`<${People} key=${role.id} view=${view} roleId=${role.id} busy=${busy} onOpen=${onPerson} onAssign=${canAssign?onAssign:null}/>`:html`<section class="card"><div class="hub-card-head"><h3>${hr("permissions")}</h3>${editable?html`<button type="button" class="btn" disabled=${busy} onClick=${onEdit}>${hr("editPermissions")}</button>`:null}</div>
|
|
41
41
|
${role.kind==="admin"?html`<p class="s-info">${hr("adminFixed")}</p>`:null}${role.kind==="carried-over"?html`<p class="note">${hr("inherited")}</p>`:null}<${PermissionSections} permissions=${role.permissions} readOnly=${true} administrator=${role.kind==="admin"}/></section>`}</section>`;
|
|
42
42
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hs } from "./hub-room-settings-strings.js";
|
|
1
2
|
import {rp} from "./hub-room-purpose.js";
|
|
2
3
|
import { hi } from "./hub-agent-intro.js";
|
|
3
4
|
// Hub rooms, the right-hand members panel (docs/design/hub-rooms-ux.md section 5): the people, the agents in presence
|
|
@@ -119,7 +120,7 @@ export function ownerAgent(name) {
|
|
|
119
120
|
* - onSettings();
|
|
120
121
|
* - compact (M1): true / false for that list whatever the size; absent, a room over COMPACT_OVER gets the compact one.
|
|
121
122
|
*/
|
|
122
|
-
export function RoomMembersPanel({ client = hubClient(), roomId, detail, onMention, onOpenChat, onSettings, compact: force = undefined, focus = null } = {}) {
|
|
123
|
+
export function RoomMembersPanel({ client = hubClient(), roomId, detail, onMention, onOpenChat, onSettings, onAddAgents, compact: force = undefined, focus = null } = {}) {
|
|
123
124
|
const [presence, setPresence] = useState({}), [open, setOpen] = useState(null), [expanded, setExpanded] = useState(false);
|
|
124
125
|
// M-3565: `focus` ({ id, n }: a message's agent name pressed): that agent's card open, its owner's group unfolded, in view.
|
|
125
126
|
useEffect(() => {
|
|
@@ -206,13 +207,14 @@ export function RoomMembersPanel({ client = hubClient(), roomId, detail, onMenti
|
|
|
206
207
|
${compact ? compactList() : html`<section><h4>${heads.member}</h4>
|
|
207
208
|
<ul>${people.map(person)}</ul>
|
|
208
209
|
</section>
|
|
209
|
-
${agents.length ? null : html`<section class="hub-room-no-agents"><h4>${hm("agents")}</h4><p class="note">${hm("noAgents")}</p></section>`}
|
|
210
|
+
${agents.length ? null : html`<section class="hub-room-no-agents"><h4>${hm("agents")}</h4><p class="note">${!manager && detail.settings?.membersCanAddOwnAgents === true ? hs("noAgentsMember") : hm("noAgents")}</p></section>`}
|
|
210
211
|
${agents.length ? html`<section><h4>${heads.agent}</h4>
|
|
211
212
|
<ul>${shown.map(agentItem)}</ul>
|
|
212
213
|
${fold.rest ? html`<button type="button" class="btn btn-link hub-members-more" onClick=${() => setExpanded(!expanded)}>${expanded ? hm("fewer") : hroom("moreN", fold.rest)}</button>` : null}
|
|
213
214
|
</section>` : null}`}
|
|
214
215
|
${assistant ? html`<section><ul><li class="hub-member hub-member-assistant">${row({ ...assistant, name: hroom("roomAssistant") })}</li></ul></section>` : null}
|
|
215
216
|
<section class="hub-room-who"><h4>${hroom("whoSees")}</h4><p class="note">${hroom("whoSeesRoom")}</p></section>
|
|
217
|
+
${!manager && detail.settings?.membersCanAddOwnAgents === true && detail.room?.archived !== true && typeof client.roomOwnAgentCandidates === "function" ? html`<button type="button" class="btn btn-link hub-room-own-agents-link" onClick=${() => onAddAgents?.()}>${hs("addOwnAgents")}</button>` : null}
|
|
216
218
|
${manager ? html`<button type="button" class="btn btn-link hub-room-settings-link" onClick=${() => onSettings?.()}>${hroom("roomSettings")}</button>` : null}
|
|
217
219
|
</aside>`;
|
|
218
220
|
}
|
|
@@ -4,6 +4,7 @@ import { notifyOn, notifySupport, notifyStore, refreshNotify, setNotify } from "
|
|
|
4
4
|
import { html, useEffect } from "/assets/app-html.js";
|
|
5
5
|
import { useStore } from "/assets/app-store.js";
|
|
6
6
|
import { Icon } from "/assets/ui-icons.js";
|
|
7
|
+
import { setHubNotify } from "./hub-notify-keep.js";
|
|
7
8
|
import { counts, shouldNotify } from "./hub-room-unread.js";
|
|
8
9
|
import { hroom } from "./hub-room-strings.js";
|
|
9
10
|
|
|
@@ -157,5 +158,5 @@ export function HubNotifyToggle() {
|
|
|
157
158
|
return html`<span class="icon-btn hub-notify" aria-disabled="true" title=${title} aria-label=${title}><${Icon} name="bell" size=${16} /></span>`;
|
|
158
159
|
}
|
|
159
160
|
return html`<button type="button" class="icon-btn hub-notify" aria-pressed=${on ? "true" : "false"} aria-label=${label} title=${title}
|
|
160
|
-
disabled=${asking} onClick=${() => { void
|
|
161
|
+
disabled=${asking} onClick=${() => { void setHubNotify(!on); }}><${Icon} name="bell" size=${16} /></button>`;
|
|
161
162
|
}
|
|
@@ -11,6 +11,10 @@ register("hubRoomSettings", {
|
|
|
11
11
|
rowMenu: "More for {0}",
|
|
12
12
|
save: "Save",
|
|
13
13
|
saveFailed: "That was not saved. Try again.",
|
|
14
|
+
membersOwnAgents: "Members can add their own agents",
|
|
15
|
+
membersOwnAgentsHint: "Members can add agents they own and have shared on this Hub. Room managers can remove them. For another owner’s agent, ask a room manager to use Ask its owner.",
|
|
16
|
+
noAgentsMember: "No agents yet. Add an agent you own, or ask a room manager to add or invite one.",
|
|
17
|
+
addOwnAgents: "Add your agents", ownAgentsHint: "Choose an agent you own and have shared on this Hub. Everyone in this room can ask it here.",
|
|
14
18
|
assistantSwitch: "Room assistant",
|
|
15
19
|
},
|
|
16
20
|
"zh-TW": {
|
|
@@ -20,6 +24,10 @@ register("hubRoomSettings", {
|
|
|
20
24
|
rowMenu: "{0} 的更多動作",
|
|
21
25
|
save: "儲存",
|
|
22
26
|
saveFailed: "沒有儲存,請再試一次。",
|
|
27
|
+
membersOwnAgents: "成員可以加入自己擁有的 Agent",
|
|
28
|
+
membersOwnAgentsHint: "成員可以加入自己擁有、且已分享到這個 Hub 的 Agent。房間管理員可以移除。其他人擁有的 Agent,請房間管理員使用「請擁有者加入」。",
|
|
29
|
+
noAgentsMember: "還沒有 Agent。可以加入自己擁有的 Agent,或請房間管理員加入或邀請。",
|
|
30
|
+
addOwnAgents: "加入自己的 Agent", ownAgentsHint: "選擇自己擁有、且已分享到這個 Hub 的 Agent。房間裡的每個人都能在這裡向它提問。",
|
|
23
31
|
assistantSwitch: "房間助理",
|
|
24
32
|
},
|
|
25
33
|
});
|
|
@@ -84,6 +84,8 @@ export function RoomSettings({ client = hubClient(), roomId, detail, onClose, on
|
|
|
84
84
|
const purposeSupported=client.roomPurposeV1===true&&typeof room.purpose==="string"&&detail?.me?.role==="manager";
|
|
85
85
|
const [name, setName] = useState(room.name ?? ""), [busy, setBusy] = useState(false), [error, setError] = useState("");
|
|
86
86
|
const [allMention, setAllMention] = useState(settings.allMention !== false), [history, setHistory] = useState(settings.historyForNew === "all" ? "all" : "since-join");
|
|
87
|
+
const [memberAgents, setMemberAgents] = useState(settings.membersCanAddOwnAgents === true);
|
|
88
|
+
useEffect(() => setMemberAgents(settings.membersCanAddOwnAgents === true), [detail]);
|
|
87
89
|
const [aiApps,setAiApps]=useState(settings.aiApps!==false);
|
|
88
90
|
const [aiAppsScope]=useState(()=>client.aiAppsScope?.());
|
|
89
91
|
const [offered, setOffered] = useState(assistant === true), [addPeople, setAddPeople] = useState([]), [addAgents, setAddAgents] = useState([]), [peopleNote, setPeopleNote] = useState("");
|
|
@@ -170,6 +172,8 @@ export function RoomSettings({ client = hubClient(), roomId, detail, onClose, on
|
|
|
170
172
|
${purposeSupported?html`<form class="form hub-room-purpose-form" onSubmit=${e=>{e.preventDefault();savePurpose();}}><${RoomPurposeField} id="hubRoomSettingsPurpose" value=${purpose} onValue=${setPurpose} disabled=${busy} /><div class="field-row"><button type="submit" class="btn" disabled=${busy||purposeCount(purpose)>200||purpose===(room.purpose??"")}>${hs("save")}</button></div></form>`:null}
|
|
171
173
|
<label class="check"><input id="hubRoomAllMention" class="s-ui-toggle" type="checkbox" role="switch" checked=${allMention} disabled=${busy}
|
|
172
174
|
onChange=${(e) => { const v = e.target.checked; setAllMention(v); void act(() => client.updateRoom(roomId, { allMention: v }), () => setAllMention(!v)); }} /><span>${hroom("membersCanAll")}</span></label>
|
|
175
|
+
${typeof settings.membersCanAddOwnAgents === "boolean" ? html`<div class="field"><label class="check"><input id="hubRoomMemberAgents" class="s-ui-toggle" type="checkbox" role="switch" checked=${memberAgents} disabled=${busy}
|
|
176
|
+
onChange=${e => { const v = e.target.checked; setMemberAgents(v); void act(() => client.updateRoom(roomId, { membersCanAddOwnAgents: v }), () => setMemberAgents(!v)); }} /><span>${hs("membersOwnAgents")}</span></label><p class="note">${hs("membersOwnAgentsHint")}</p></div>` : null}
|
|
173
177
|
${typeof settings.aiApps==="boolean"&&typeof client.setRoomAiApps==="function"?html`<label class="check"><input id="hubRoomAiApps" class="s-ui-toggle" type="checkbox" role="switch" checked=${aiApps} disabled=${busy}
|
|
174
178
|
onChange=${e=>{const value=e.target.checked;setAiApps(value);void act(()=>client.setRoomAiApps(aiAppsScope,roomId,value),()=>setAiApps(!value));}}/><span>${ha("roomSwitch")}</span></label>`:null}
|
|
175
179
|
<fieldset class="field"><legend>${hroom("newMembersSee")}</legend>
|
|
@@ -207,3 +211,31 @@ export function RoomSettings({ client = hubClient(), roomId, detail, onClose, on
|
|
|
207
211
|
${askOwner && ownerRequestsLive ? html`<${OwnerAgentRequestDialog} key=${roomId} client=${client} roomId=${roomId} roomName=${room.name}
|
|
208
212
|
onClose=${() => setAskOwner(false)} onSent=${() => onChanged?.()} />` : null}`;
|
|
209
213
|
}
|
|
214
|
+
|
|
215
|
+
/** Members never enter the manager settings dialog; their picker is scoped to this room and their own exposures. */
|
|
216
|
+
export function OwnRoomAgents({ client, roomId, detail, onClose, onChanged }) {
|
|
217
|
+
const [picked, setPicked] = useState([]), [busy, setBusy] = useState(false), [error, setError] = useState("");
|
|
218
|
+
const live = useRef(true), inFlight = useRef(false);
|
|
219
|
+
useEffect(() => () => { live.current = false; }, []);
|
|
220
|
+
const allowed = detail?.settings?.membersCanAddOwnAgents === true && detail?.room?.archived !== true;
|
|
221
|
+
const scoped = { roomCandidates: (q) => client.roomOwnAgentCandidates(roomId, q) };
|
|
222
|
+
const add = async next => {
|
|
223
|
+
setPicked([]);
|
|
224
|
+
if (!allowed || inFlight.current) return;
|
|
225
|
+
const item = next[0];
|
|
226
|
+
if (!item || item.kind !== "agent" || item.mine !== true) return;
|
|
227
|
+
inFlight.current = true; setBusy(true); setError("");
|
|
228
|
+
let result;
|
|
229
|
+
try { result = await client.addRoomMember(roomId, { kind: "agent", id: item.id }); } catch { result = null; }
|
|
230
|
+
if (!live.current) return;
|
|
231
|
+
inFlight.current = false; setBusy(false);
|
|
232
|
+
if (result?.ok) { onChanged?.(); onClose?.(); }
|
|
233
|
+
else setError(hs("saveFailed"));
|
|
234
|
+
};
|
|
235
|
+
return html`<${Dialog} title=${hs("addOwnAgents")} onClose=${onClose}>
|
|
236
|
+
<p class="note">${hs("ownAgentsHint")}</p>
|
|
237
|
+
${error ? html`<p role="alert">${error}</p>` : null}
|
|
238
|
+
${allowed && !busy ? html`<${RoomPicker} id="hubRoomOwnAgents" client=${scoped} kinds=${["agent"]} label=${hs("addOwnAgents")} placeholder=${hroom("addAgents")} picked=${picked} onChange=${add}
|
|
239
|
+
exclude=${(detail?.members ?? []).filter(m => m.kind === "agent").map(m => `agent:${m.id}`)} />` : null}
|
|
240
|
+
</${Dialog}>`;
|
|
241
|
+
}
|
|
@@ -142,7 +142,7 @@ register("hubRoom", {
|
|
|
142
142
|
assistantNotEnabled: "The room assistant is not enabled yet.",
|
|
143
143
|
assistantEnableHint: "Sign in an AI account in AgEnD on this computer, then come back and turn it on.",
|
|
144
144
|
// §11 admin → rooms
|
|
145
|
-
whoCanCreate: "Who can
|
|
145
|
+
whoCanCreate: "Who can create rooms", addPeopleOrTeams: "Add people or teams",
|
|
146
146
|
everyoneDirect: "Everyone can start a one-to-one chat.",
|
|
147
147
|
allRooms: "All rooms", active: "Active", archived: "Archived",
|
|
148
148
|
noContent: "Room content is not visible here.",
|
|
@@ -150,7 +150,7 @@ register("hubRoom", {
|
|
|
150
150
|
// §12 unread: unreadN is the list-row count tooltip; mentionedYou is the row's @ mark.
|
|
151
151
|
unreadPrefix: "({0})", unreadN: "{0} unread", mentionMark: "@", mentionedYou: "Mentioned you",
|
|
152
152
|
// §12 desktop notification (opt-in, like the Fleet's Notify me): the header toggle and one ping per kind.
|
|
153
|
-
notifyTitle: "Notify me on this device", notifyOn: "Notifications are on while a Hub tab is open.",
|
|
153
|
+
notifyTitle: "Notify me on this device", notifyOn: "Notifications are on while a Hub tab or the AgEnD app is open, even in the background.",
|
|
154
154
|
notifyOff: "Get a desktop notification when someone @mentions you, an agent answers, or a new invitation arrives.",
|
|
155
155
|
notifyDenied: "This browser blocked notifications. Allow them in the site settings to turn this on.",
|
|
156
156
|
notifyUnavailable: "This browser cannot show notifications here.",
|
|
@@ -295,7 +295,7 @@ register("hubRoom", {
|
|
|
295
295
|
noContent: "這裡看不到任何房間的內容。",
|
|
296
296
|
joinAsManager: "加入自己成為房間管理",
|
|
297
297
|
unreadPrefix: "({0})", unreadN: "{0} 則未讀", mentionMark: "@", mentionedYou: "有人 @ 你",
|
|
298
|
-
notifyTitle: "在這個裝置上通知我", notifyOn: "Hub
|
|
298
|
+
notifyTitle: "在這個裝置上通知我", notifyOn: "Hub 分頁或 AgEnD 應用程式開著時(在背景也可以)會收到通知。",
|
|
299
299
|
notifyOff: "有人 @ 你、Agent 回答或有新邀請時,收到桌面通知。",
|
|
300
300
|
notifyDenied: "這個瀏覽器封鎖了通知。請在網站設定中允許,才能開啟。",
|
|
301
301
|
notifyUnavailable: "這個瀏覽器在這裡無法顯示通知。",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hs as roomSettingsText } from "./hub-room-settings-strings.js";
|
|
1
2
|
import {RoomPurposeCard} from "./hub-room-purpose.js";
|
|
2
3
|
import { hi } from "./hub-agent-intro.js";
|
|
3
4
|
import {hp} from "./hub-personal-agent-strings.js";
|
|
@@ -27,8 +28,10 @@ import {ha} from "./hub-ai-apps-strings.js";
|
|
|
27
28
|
import { RoomComposer } from "./hub-room-composer.js";
|
|
28
29
|
import { TextSizeButton, TEXT_SIZES, setTextSize, textSizeStore } from "/assets/header-tools.js";
|
|
29
30
|
import { useStore } from "/assets/app-store.js";
|
|
30
|
-
import { notifyStore, notifySupport
|
|
31
|
+
import { notifyStore, notifySupport } from "/assets/app-needs.js";
|
|
31
32
|
import { HubNotifyToggle } from "./hub-room-notify.js";
|
|
33
|
+
import { setHubNotify } from "./hub-notify-keep.js";
|
|
34
|
+
import { InstallAppButton, installLabel, installOffered, installStore, runInstall } from "/assets/app-install.js";
|
|
32
35
|
import { createHubButtonActions } from "./hub-button-actions.js";
|
|
33
36
|
import { linkRoomsU2Css } from "./hub-room-new-strings.js";
|
|
34
37
|
import { directStatus, workingLine } from "./hub-room-working.js";
|
|
@@ -182,6 +185,7 @@ export function toThreadMessages(messages, { meId, ids, direct = false, expanded
|
|
|
182
185
|
const num = (id) => { if (!ids.has(id)) ids.set(id, ids.size * 2 + 2); return ids.get(id); };
|
|
183
186
|
for (const m of ordered) {
|
|
184
187
|
if (!m || typeof m.id !== "string") continue;
|
|
188
|
+
if (m.answerTo && m.acknowledgedByReaction === true) continue;
|
|
185
189
|
const author = m.author || {}, kind = author.kind;
|
|
186
190
|
// An answer still to come (queued, or being worked on: the working bar says who) is never an empty bubble.
|
|
187
191
|
if (m.answerTo && !m.text && (m.stage === "queued" || m.stage === "working")) continue;
|
|
@@ -454,6 +458,9 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
454
458
|
}, [store]);
|
|
455
459
|
// dev-claude2's room settings (hub-room-settings.js), opened from the header or the members panel.
|
|
456
460
|
const [settings, setSettings] = useState(null);
|
|
461
|
+
const [ownAgents, setOwnAgents] = useState(null);
|
|
462
|
+
useEffect(() => setOwnAgents(null), [roomId]);
|
|
463
|
+
const openOwnAgents = () => { import("./hub-room-settings.js").then(m => setOwnAgents(() => m.OwnRoomAgents), () => {}); };
|
|
457
464
|
const openSettings = () => { import("./hub-room-settings.js").then((m) => { if (typeof m.RoomSettings === "function") setSettings(() => m.RoomSettings); }, () => {}); };
|
|
458
465
|
// Lumen (spec §3, §7): 「離開房間」 for everyone in a group room, through U2's leaveRoom (the last manager is told why not).
|
|
459
466
|
const [leaveError, setLeaveError] = useState("");
|
|
@@ -602,7 +609,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
602
609
|
}
|
|
603
610
|
// M-3311 (3): the header's menu — a group room's Room settings and Leave, and on a desk the Fleet chat's 「全寬」 for any room.
|
|
604
611
|
const [fullWidth, setFullWidth] = useState(hubChatWide);
|
|
605
|
-
const textSize = useStore(textSizeStore), notify = useStore(notifyStore), narrow = useNarrowScreen();
|
|
612
|
+
const textSize = useStore(textSizeStore), notify = useStore(notifyStore), install = useStore(installStore), narrow = useNarrowScreen();
|
|
606
613
|
const [muteBusy,setMuteBusy]=useState(false);
|
|
607
614
|
async function toggleDirectMute(){
|
|
608
615
|
if(muteBusy)return;setMuteBusy(true);
|
|
@@ -616,6 +623,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
616
623
|
narrow && officeOn && !inOffice ? { key: "office", label: hroom("tabOffice"), icon: "org", onSelect: () => onView("office") } : null,
|
|
617
624
|
// In the office a phone's options (hide paused, bedtime, dialogue, key, fit, fill) are one sheet, not rows over the scene.
|
|
618
625
|
narrow && inOffice ? { key: "officeMore", label: hroom("officeOptions"), icon: "settings", onSelect: () => setOfficeMore(true) } : null,
|
|
626
|
+
group && detail?.me?.role === "member" && detail?.settings?.membersCanAddOwnAgents === true && room.archived !== true && typeof client.roomOwnAgentCandidates === "function" ? { key: "ownAgents", label: roomSettingsText("addOwnAgents"), icon: "plus", onSelect: openOwnAgents } : null,
|
|
619
627
|
group && detail?.me?.role === "manager" ? { key: "settings", label: hroom("roomSettings"), icon: "settings", onSelect: openSettings } : null,
|
|
620
628
|
group && detail?.me ? { key: "leave", label: hroom("leaveRoom"), icon: "close", onSelect: () => { void leave(); } } : null,
|
|
621
629
|
pinCount ? { key: "pins", label: `${t("chat.pinsTitle")} · ${pinCount}`, icon: "pin", onSelect: () => setPinsOpen(true) } : null,
|
|
@@ -624,7 +632,9 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
624
632
|
// move into ⋯ there (hub-chat.css hides the two buttons at the same width).
|
|
625
633
|
...(narrow ? [
|
|
626
634
|
{ key: "textSize", label: t("app.textSize", t(`app.textSize_${textSize.size}`)), icon: "type", onSelect: () => setTextSize(TEXT_SIZES[(TEXT_SIZES.indexOf(textSize.size) + 1) % TEXT_SIZES.length]) },
|
|
627
|
-
...(notifySupport() === "ok" ? [{ key: "notify", checkbox: true, checked: notify.state === "on", disabled: notify.asking, label: hroom("notifyTitle"), onSelect: () => { void
|
|
635
|
+
...(notifySupport() === "ok" ? [{ key: "notify", checkbox: true, checked: notify.state === "on", disabled: notify.asking, label: hroom("notifyTitle"), onSelect: () => { void setHubNotify(notify.state !== "on"); } }] : []),
|
|
636
|
+
// S-255: Install as an app sits by the bell, so on a phone it moves into ⋯ with it.
|
|
637
|
+
...(installOffered(install.state) ? [{ key: "install", label: installLabel(), icon: "install", onSelect: () => runInstall(install.state) }] : []),
|
|
628
638
|
] : []),
|
|
629
639
|
].filter(Boolean);
|
|
630
640
|
const line2 = narrow && inOffice ? hroom("tabOffice") : group ? `${countsLine(room.people, room.agents)}${hasAssistant ? ` · ${hroom("roomAssistant")}` : ""}`
|
|
@@ -661,7 +671,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
661
671
|
const panel = Panel && detail ? html`<${Panel} client=${client} roomId=${roomId} detail=${detail}
|
|
662
672
|
onMention=${(m) => { setSheet(false); insertMention(m); }}
|
|
663
673
|
onOpenChat=${chatWith} focus=${focus}
|
|
664
|
-
onSettings=${() => { setSheet(false); openSettings(); }} />` : null;
|
|
674
|
+
onSettings=${() => { setSheet(false); openSettings(); }} onAddAgents=${() => { setSheet(false); openOwnAgents(); }} />` : null;
|
|
665
675
|
return html`<div class=${`hub-chat hub-room-page${showRail ? " with-rail" : ""}`} data-room=${roomId} data-width=${fullWidth ? "full" : undefined} ref=${split}>
|
|
666
676
|
<${LightboxHost} />
|
|
667
677
|
${pinsOpen ? html`<${RoomPinsDialog} pins=${store.pins()} onClose=${() => setPinsOpen(false)} onJump=${(p) => void showPin(p)} onUnpin=${(p) => void togglePin(p.messageId)} />` : null}
|
|
@@ -679,7 +689,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
679
689
|
const label = hroom(v === "chat" ? "tabChat" : "tabOffice"), on = (v === "office") === inOffice;
|
|
680
690
|
return html`<a key=${v} class=${`seg-item${on ? " active" : ""}`} href=${officeHref(v)} aria-current=${on ? "page" : undefined} data-label=${label}
|
|
681
691
|
onClick=${(e) => { if (e.metaKey || e.ctrlKey || e.shiftKey || e.button > 0) return; e.preventDefault(); onView(v); }}>${label}</a>`; })}</nav>` : null}
|
|
682
|
-
<span class="hub-head-tools"><${RoomPinsButton} count=${pinCount} onOpen=${() => setPinsOpen(true)} /><${TextSizeButton} /><${HubNotifyToggle} /></span>
|
|
692
|
+
<span class="hub-head-tools"><${RoomPinsButton} count=${pinCount} onOpen=${() => setPinsOpen(true)} /><${TextSizeButton} /><${InstallAppButton} /><${HubNotifyToggle} /></span>
|
|
683
693
|
${group && Panel ? html`<button type="button" class="icon-btn hub-room-rail-toggle" aria-pressed=${(wide ? showRail : sheet) ? "true" : "false"} title=${hroom("members")} aria-label=${hroom("members")}
|
|
684
694
|
onClick=${() => { if (!wide) { setSheet(true); return; } if (panelOpen && !inOffice) { closePanel(); setRail(true); return; } setRail(!rail); }}><${Icon} name="team" size=${18} /></button>` : null}
|
|
685
695
|
${menuItems.length ? html`<${Menu} cls="hub-room-menu" label=${hroom("menu")} fit=${true} ownerKey=${roomId} items=${menuItems} />` : null}
|
|
@@ -709,6 +719,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
709
719
|
keyOf=${msgKey} reveal=${(k) => threadRef.current && threadRef.current.reveal(k)} download=${downloadHtml} allow=${(commit) => setHubPreviewOptIn(true, commit)} />`}
|
|
710
720
|
${showRail ? html`<${RailFrame} trust="hub-context" label=${hroom("members")} title=${hroom("members")} closeLabel=${hroom("cancel")} onClose=${() => setRail(false)}>${panel}</${RailFrame}>` : null}
|
|
711
721
|
${!wide && sheet && panel && group ? html`<${Dialog} title=${hroom("members")} label=${hroom("members")} onClose=${() => setSheet(false)}><div class="hub-rail-sheet">${panel}</div></${Dialog}>` : null}
|
|
722
|
+
${ownAgents && detail ? html`<${ownAgents} key=${roomId} client=${client} roomId=${roomId} detail=${detail} onClose=${() => setOwnAgents(null)} onChanged=${() => { void store.refresh(); }} />` : null}
|
|
712
723
|
${settings && detail ? html`<${settings} client=${client} roomId=${roomId} detail=${detail} assistant=${hasAssistant}
|
|
713
724
|
onClose=${() => setSettings(null)} onChanged=${() => { void store.refresh(); }} />` : null}
|
|
714
725
|
</div>`;
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
|
|
2
|
+
<title>AgEnD Hub — Ag</title>
|
|
3
|
+
<rect x="1" y="1" width="62" height="62" rx="12" fill="#1d5fae" stroke="#0f3d75" stroke-width="2"/>
|
|
4
|
+
<g fill="none" stroke="#cfe8ff" stroke-width="1.6" stroke-linecap="round"><path d="M51 7.5 57.5 11 51 14.5Z"/></g>
|
|
5
|
+
<g fill="#cfe8ff"><circle cx="51" cy="7.5" r="2.2"/><circle cx="57.5" cy="11" r="2.2"/><circle cx="51" cy="14.5" r="2.2"/></g>
|
|
6
|
+
<g transform="translate(0 -2)"><g fill="#e5eaf0" fill-rule="evenodd">
|
|
7
|
+
<path d="M8.5 43 17 18h6l8.5 25H26l-2-6h-8l-2 6Zm9-10.5h5l-2.5-8Z"/>
|
|
8
|
+
<path transform="translate(2 0)" d="M49.5 27v18.8c0 5-3.1 7.2-8.2 7.2h-6.8v-4.8H41c2.6 0 3.7-.9 3.7-3.2v-3.3c-1.3 1.5-3.1 2.3-5.6 2.3-5.8 0-9-3.7-9-8.9 0-5.1 3.2-8.9 9-8.9 2.5 0 4.3.8 5.6 2.3V27Zm-9.7 3.8c-3 0-4.6 1.8-4.6 4.3s1.6 4.3 4.6 4.3 4.6-1.8 4.6-4.3-1.6-4.3-4.6-4.3Z"/>
|
|
9
|
+
</g></g>
|
|
10
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
|
|
2
|
+
<title>AgEnD Hub — Ag (maskable: full bleed, the mark inside the 80% safe zone)</title>
|
|
3
|
+
<rect width="64" height="64" fill="#1d5fae"/>
|
|
4
|
+
<g transform="translate(32 32) scale(0.72) translate(-32 -32)">
|
|
5
|
+
<g fill="none" stroke="#cfe8ff" stroke-width="1.6" stroke-linecap="round"><path d="M51 7.5 57.5 11 51 14.5Z"/></g>
|
|
6
|
+
<g fill="#cfe8ff"><circle cx="51" cy="7.5" r="2.2"/><circle cx="57.5" cy="11" r="2.2"/><circle cx="51" cy="14.5" r="2.2"/></g>
|
|
7
|
+
<g transform="translate(0 -2)"><g fill="#e5eaf0" fill-rule="evenodd">
|
|
8
|
+
<path d="M8.5 43 17 18h6l8.5 25H26l-2-6h-8l-2 6Zm9-10.5h5l-2.5-8Z"/>
|
|
9
|
+
<path transform="translate(2 0)" d="M49.5 27v18.8c0 5-3.1 7.2-8.2 7.2h-6.8v-4.8H41c2.6 0 3.7-.9 3.7-3.2v-3.3c-1.3 1.5-3.1 2.3-5.6 2.3-5.8 0-9-3.7-9-8.9 0-5.1 3.2-8.9 9-8.9 2.5 0 4.3.8 5.6 2.3V27Zm-9.7 3.8c-3 0-4.6 1.8-4.6 4.3s1.6 4.3 4.6 4.3 4.6-1.8 4.6-4.3-1.6-4.3-4.6-4.3Z"/>
|
|
10
|
+
</g></g>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|
package/dist/ui/panel-hub.js
CHANGED
|
@@ -19,7 +19,7 @@ import { DevicePrefs, PanelHeader, closeDrawer, isMacLike, searchShortcut, setTi
|
|
|
19
19
|
import { lang, register, t } from "/assets/app-i18n.js";
|
|
20
20
|
import { createStore, useStore } from "/assets/app-store.js";
|
|
21
21
|
import { navigate, navStore } from "/assets/app-nav.js";
|
|
22
|
-
import { Empty, ErrorState, Skeleton } from "/assets/ui-states.js";
|
|
22
|
+
import { Empty, ErrorState, Skeleton, SessionLoading } from "/assets/ui-states.js";
|
|
23
23
|
import { Icon } from "/assets/ui-icons.js";
|
|
24
24
|
import { useJumpIdle } from "/assets/jump-idle.js";
|
|
25
25
|
import { confirmDialog } from "/assets/ui-confirm.js";
|
|
@@ -47,6 +47,7 @@ const { useRoomStar } = roomFavorites;
|
|
|
47
47
|
import { HubRoomPage } from "./hub-room-thread.js";
|
|
48
48
|
import { TextSizeButton } from "/assets/header-tools.js";
|
|
49
49
|
import { HubNotifyToggle, clearHubMeId, noteHubMeId, rememberedMeId, startHubRoomNotifier } from "./hub-room-notify.js";
|
|
50
|
+
import { InstallAppButton } from "/assets/app-install.js";
|
|
50
51
|
import { hroom } from "./hub-room-strings.js";
|
|
51
52
|
import { ha as hApps } from "./hub-ai-apps-strings.js";
|
|
52
53
|
import { hr } from "./hub-read-strings.js";
|
|
@@ -167,6 +168,15 @@ const newer = (key, args, older) => { const s = hw(key, ...args); return s === `
|
|
|
167
168
|
const errText = (r) => hw(r.code === "conflict" || r.code === "stale" ? "errConflictHub" : r.code === "not-found" ? "errNotFound"
|
|
168
169
|
: r.code === "backpressure" ? "errBusyHub" : r.code === "revoked" || r.code === "denied" ? "errDenied" : r.code === "unreachable" ? "errUnreachableHub" : "errFailed");
|
|
169
170
|
|
|
171
|
+
/** The entry mounts no workspace chrome until the shared session read settles. */
|
|
172
|
+
export function HubWorkspace({ children }) {
|
|
173
|
+
const s = useSession();
|
|
174
|
+
const nav = useStore(navStore);
|
|
175
|
+
if (s === undefined) return html`<${SessionLoading} />`;
|
|
176
|
+
if (s === null) return html`<${HubPanel} route=${nav.route} />`;
|
|
177
|
+
return children;
|
|
178
|
+
}
|
|
179
|
+
|
|
170
180
|
export function HubPanel({ route }) {
|
|
171
181
|
const tab = TITLES[route && route.tab] ? route.tab : "ask";
|
|
172
182
|
const companyPage = tab === "ask" && (companyInfoRequest() || !!joinRequest());
|
|
@@ -213,7 +223,7 @@ export function HubPanel({ route }) {
|
|
|
213
223
|
props=${{client:hubClient(),person:s.displayName,request:new URLSearchParams(location.search).get("request")||""}}/></div></div></div>`;
|
|
214
224
|
// Security notices stay on their own page. The bound join branch above never renders the chat or notices page.
|
|
215
225
|
if (s && tab === "ask" && view === "notices" && noticesOffered(s)) return html`<div data-effect-panel="hub" class="panel p-hub p-hub-notices">
|
|
216
|
-
<${PanelHeader} title=${hc("noticesTitle")}><span class="hub-head-tools"><${HubNotifyToggle} /></span></${PanelHeader}><div data-trust="panel-content" class="panel-body hub-page-body">
|
|
226
|
+
<${PanelHeader} title=${hc("noticesTitle")}><span class="hub-head-tools"><${InstallAppButton} /><${HubNotifyToggle} /></span></${PanelHeader}><div data-trust="panel-content" class="panel-body hub-page-body">
|
|
217
227
|
<div class="col hub-owner hub-notices-col"><p class="s-page-lead hub-page-lead">${roleNoticesOffered(s, hubClient()) ? roleNoticeLead() : directoryNoticesOffered(s, hubClient()) ? dn("pageLead") : hc("noticesLead")}</p>
|
|
218
228
|
${pairingNoticesOffered(s) ? html`<${PairingNotices} admin=${!!s.admin} empty=${introNoticeOffered(s,hubClient()) || directoryNoticesOffered(s, hubClient()) || roleNoticesOffered(s, hubClient()) ? null : html`<${Empty} icon="bell" title=${hc("noNotices")} />`} />` : null}
|
|
219
229
|
${introNoticeOffered(s,hubClient())?html`<${IntroNotice} client=${hubClient()} />`:null}${directoryNoticesOffered(s, hubClient()) ? html`<${DirectoryNotices} client=${hubClient()} />` : null}${roleNoticesOffered(s, hubClient()) ? html`<${RoleNotices} client=${hubClient()} />` : null}</div></div></div>`;
|
|
@@ -669,7 +679,7 @@ function HubChats() {
|
|
|
669
679
|
if (opening && (!rs.loaded || recentRoom(rs.rooms))) return html`<${PanelHeader} title=${hc("chats")} /><div class="hub-home"><div class="hub-home-pick center"><${Skeleton} variant="rows" lines=${4} /></div></div>`;
|
|
670
680
|
// On a phone the launcher takes the page on 新對話 and when there is nothing to list; otherwise the list does.
|
|
671
681
|
const alone = launch || (rs.loaded && !rs.error && !rs.rooms.length);
|
|
672
|
-
return html`<${PanelHeader} title=${launch ? hc("newChat") : hc("chats")}
|
|
682
|
+
return html`<${PanelHeader} title=${launch ? hc("newChat") : hc("chats")}><span class="hub-head-tools"><${InstallAppButton} /></span></${PanelHeader}>
|
|
673
683
|
${/* M-3137 (versions spec §2.3): the signed-in person whose own Fleet is behind is told here, once per sign-in. */ ""}
|
|
674
684
|
<${OlderFleetBanner} client=${hubClient()} signIn=${s?.csrf || ""} />
|
|
675
685
|
<div class=${`hub-home${alone ? " is-launch" : ""}`}>
|
|
@@ -1299,8 +1309,10 @@ function LazyDirectory({ session }) {
|
|
|
1299
1309
|
* when first shown; nothing while it loads or if this Hub does not serve it.
|
|
1300
1310
|
*/
|
|
1301
1311
|
function LazyRoomPart({ load, name, props = {} }) {
|
|
1302
|
-
const [
|
|
1303
|
-
|
|
1312
|
+
const [loaded, setLoaded] = useState(null);
|
|
1313
|
+
// Inline loaders change identity on render; the requested component name identifies the page.
|
|
1314
|
+
useEffect(() => { let live = true; load().then((m) => { if (live && typeof m[name] === "function") setLoaded({ name, Component: m[name] }); }, () => {}); return () => { live = false; }; }, [name]);
|
|
1315
|
+
const C = loaded?.name === name ? loaded.Component : null;
|
|
1304
1316
|
return C ? html`<${C} ...${props} />` : null;
|
|
1305
1317
|
}
|
|
1306
1318
|
const teamsLive = () => { const c = hubClient(); return typeof c.teamsLive === "function" && c.teamsLive() === true; };
|