@songsid/agend 2.4.0-beta.26 → 2.4.0-beta.28
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 +2 -1
- package/dist/agent-cli.js +6 -0
- package/dist/agent-cli.js.map +1 -1
- 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-whats-new.js +4 -0
- package/dist/agent-whats-new.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/claude-turn-boundaries.d.ts +15 -0
- package/dist/claude-turn-boundaries.js +88 -0
- package/dist/claude-turn-boundaries.js.map +1 -0
- package/dist/cli.js +35 -2
- package/dist/cli.js.map +1 -1
- package/dist/contact-auth-service.js +3 -0
- package/dist/contact-auth-service.js.map +1 -1
- package/dist/contact-auth-store.d.ts +16 -0
- package/dist/contact-auth-store.js +61 -1
- package/dist/contact-auth-store.js.map +1 -1
- package/dist/daemon.d.ts +76 -4
- package/dist/daemon.js +621 -115
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +145 -7
- package/dist/delivery-outbox.js +373 -8
- 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 +5 -0
- package/dist/fleet-lock.js +21 -2
- package/dist/fleet-lock.js.map +1 -1
- package/dist/fleet-manager.d.ts +499 -5
- package/dist/fleet-manager.js +2917 -217
- 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/concepts/SKILL.md +5 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +5 -1
- package/dist/general-knowledge/skills/task-board/SKILL.md +14 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +96 -26
- 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 +9 -2
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.js +8 -1
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.js +4 -2
- 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/http/compose.js +57 -30
- package/dist/hub/http/compose.js.map +1 -1
- 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.js +2 -0
- 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/protocol.d.ts +58 -0
- package/dist/hub/protocol.js +3 -2
- 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/clock.d.ts +1 -1
- package/dist/hub/roles/clock.js +9 -7
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/read.d.ts +4 -0
- package/dist/hub/roles/read.js +37 -7
- package/dist/hub/roles/read.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/rooms/agents.d.ts +1 -1
- package/dist/hub/rooms/agents.js +3 -2
- 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 +35 -19
- package/dist/hub/rooms/service.js +105 -26
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/server.js +10 -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 +14 -7
- package/dist/hub/settings-directory-decision.js.map +1 -1
- package/dist/hub/settings-member-address-decision.js +3 -2
- 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 +5 -0
- package/dist/hub/store.js +28 -5
- package/dist/hub/store.js.map +1 -1
- package/dist/hub/types.d.ts +2 -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 +68 -4
- 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 +8 -0
- package/dist/outbound-schemas.js +6 -2
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +3 -1
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/recover.cjs +1 -0
- 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-context-activation.d.ts +29 -0
- package/dist/request-context-activation.js +85 -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 +3 -0
- package/dist/request-context-call.js.map +1 -1
- package/dist/request-context-compatibility.js +10 -2
- package/dist/request-context-compatibility.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 +119 -0
- package/dist/request-context-control-api.js +179 -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-projection.d.ts +8 -0
- package/dist/request-context-drain-projection.js +40 -0
- package/dist/request-context-drain-projection.js.map +1 -0
- package/dist/request-context-drain.d.ts +22 -0
- package/dist/request-context-drain.js +139 -7
- 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 +112 -0
- package/dist/request-context-human.js +176 -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-migration.d.ts +11 -0
- package/dist/request-context-migration.js +16 -3
- package/dist/request-context-migration.js.map +1 -1
- 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-reply-pending.d.ts +16 -0
- package/dist/request-context-reply-pending.js +77 -0
- package/dist/request-context-reply-pending.js.map +1 -0
- package/dist/request-context-resolution.d.ts +35 -0
- package/dist/request-context-resolution.js +86 -0
- package/dist/request-context-resolution.js.map +1 -0
- package/dist/request-context-retirement.d.ts +21 -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/db.js +9 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-text.d.ts +3 -6
- package/dist/scheduler/task-board-text.js +15 -10
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board-unread.d.ts +90 -0
- package/dist/scheduler/task-board-unread.js +192 -0
- package/dist/scheduler/task-board-unread.js.map +1 -0
- package/dist/scheduler/task-board.d.ts +324 -6
- package/dist/scheduler/task-board.js +786 -47
- package/dist/scheduler/task-board.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 +4 -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-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 +59 -1
- 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/task-board-tool.js +24 -3
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-board-waker.d.ts +53 -2
- package/dist/task-board-waker.js +183 -12
- package/dist/task-board-waker.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/transcript-monitor.d.ts +6 -1
- package/dist/transcript-monitor.js +59 -4
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-turns.d.ts +3 -0
- package/dist/transcript-turns.js +5 -0
- package/dist/transcript-turns.js.map +1 -1
- 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 +6 -6
- 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 +25 -8
- package/dist/ui/contact-tool-groups.js +1 -1
- package/dist/ui/fleet-task-activity.js +164 -24
- package/dist/ui/fleet-task-card.js +77 -13
- package/dist/ui/fleet-task-common.js +14 -0
- package/dist/ui/fleet-task-flow.js +353 -0
- package/dist/ui/fleet-task-md.js +1 -1
- package/dist/ui/fleet-task-run.js +98 -22
- package/dist/ui/fleet-task-thread.js +245 -0
- package/dist/ui/fleet-task-unread.js +100 -0
- package/dist/ui/fleet-task-view.js +6 -5
- package/dist/ui/fleet-task-wake.js +140 -0
- package/dist/ui/fleet-tasks.js +13 -6
- package/dist/ui/hub-client.js +3 -0
- package/dist/ui/hub-room-members.js +4 -2
- package/dist/ui/hub-room-settings-strings.js +8 -0
- package/dist/ui/hub-room-settings.js +32 -0
- package/dist/ui/hub-room-thread.js +7 -1
- 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 +14 -3
- package/dist/ui/panel-needs.js +2 -1
- package/dist/ui/panel-settings.js +2 -1
- package/dist/ui/panel-windows-cli.js +2 -2
- 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 +209 -0
- package/dist/ui/settings-registry.js +2 -0
- package/dist/ui/settings-update.js +3 -2
- package/dist/ui/shared/access-overview.css +1 -1
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-install.js +2 -2
- package/dist/ui/shared/app-shell.js +17 -4
- package/dist/ui/shared/app-stream.js +4 -1
- package/dist/ui/shared/app-update.js +2 -1
- package/dist/ui/shared/app.css +101 -10
- package/dist/ui/shared/app.js +19 -2
- package/dist/ui/shared/task-board.css +164 -0
- package/dist/ui/shared/ui-icons.js +3 -0
- package/dist/ui/shared/ui-states.js +6 -0
- package/dist/ui/shared/update-card-ui.js +178 -11
- package/dist/ui/shared/view-strings.js +18 -0
- package/dist/ui/shared/web-authorize.js +1 -1
- package/dist/ui/task-unread.js +70 -0
- package/dist/ui/windows-cli-catalog.js +33 -6
- 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-goback.js +15 -3
- package/dist/update-goback.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-snapshot-scope.js +1 -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 +49 -1
- package/dist/web-api.js +234 -13
- 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 +9 -3
- package/dist/web-icons.js +62 -5
- package/dist/web-icons.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-api.js +4 -2
- package/dist/windows-cli-api.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 +55 -1
- package/dist/windows-cli.js +147 -17
- package/dist/windows-cli.js.map +1 -1
- package/dist/windows-shortcuts.d.ts +3 -22
- package/dist/windows-shortcuts.js +5 -45
- package/dist/windows-shortcuts.js.map +1 -1
- package/dist/workflow-templates/default.md +3 -2
- package/dist/wsl-host.d.ts +52 -0
- package/dist/wsl-host.js +97 -0
- package/dist/wsl-host.js.map +1 -0
- package/package.json +1 -1
|
@@ -16,9 +16,13 @@ import { detailsPath } from "/assets/app-route.js";
|
|
|
16
16
|
import { labelOf } from "/assets/instance-nav.js";
|
|
17
17
|
import { ContactGrantEditor } from "./contact-grant-editor.js";
|
|
18
18
|
import { InfoTip } from "/assets/info-tip.js";
|
|
19
|
+
import { AuthorizeChip } from "/assets/web-authorize.js";
|
|
19
20
|
import { ca } from "./contact-auth-strings.js";
|
|
20
21
|
import { decideTicket, getTicket, listTickets, personKey, shortTicketId } from "./contact-auth-client.js";
|
|
21
22
|
import { dateTimeText } from "/assets/clock-text.js";
|
|
23
|
+
// M-3736 J (S-228): once the same-card host is installed, the page is its one card (request-contact-page.js).
|
|
24
|
+
import { sameCardState, sameCardUnknownCode } from "./request-contact-client.js";
|
|
25
|
+
import { RequestContactAuthorizations, SameCardUnknown } from "./request-contact-page.js";
|
|
22
26
|
|
|
23
27
|
// The Fleet tab's own label (panel-fleet.js reads fleet.<tab>).
|
|
24
28
|
register("fleet", { en: { authorizations: "Authorizations" }, "zh-TW": { authorizations: "授權" } });
|
|
@@ -93,7 +97,20 @@ export function TicketCard({ ticket, onChange, onPerson, focus = false }) {
|
|
|
93
97
|
|
|
94
98
|
const ticketFromSearch = () => { try { const v = new URLSearchParams(location.search).get("ticket"); return v && /^[A-Za-z0-9_-]{1,64}$/.test(v) ? v : null; } catch { return null; } };
|
|
95
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Fleet → Authorizations: the same-card page where its host is installed, today's where it is not (404). Not known (a
|
|
102
|
+
* refusal or a failure): why, and Try again — never today's less-scoped page instead.
|
|
103
|
+
*/
|
|
96
104
|
export function ContactAuthorizations() {
|
|
105
|
+
const [host, setHost] = useState(null);
|
|
106
|
+
const ask = () => { setHost(null); void sameCardState().then((s) => setHost(s)); };
|
|
107
|
+
useEffect(() => { let live = true; void sameCardState().then((s) => { if (live) setHost(s); }); return () => { live = false; }; }, []);
|
|
108
|
+
if (host === null) return html`<div class="contact-auth-page"><${Skeleton} variant="cards" lines=${2} label=${ca("loading")} /></div>`;
|
|
109
|
+
return host === "on" ? html`<${RequestContactAuthorizations} />` : host === "off" ? html`<${LegacyContactAuthorizations} />`
|
|
110
|
+
: html`<div class="contact-auth-page"><${SameCardUnknown} code=${sameCardUnknownCode()} onRetry=${ask} /></div>`;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function LegacyContactAuthorizations() {
|
|
97
114
|
const { instances } = useStore(appStore);
|
|
98
115
|
const [status, setStatus] = useState("pending");
|
|
99
116
|
const [agent, setAgent] = useState("");
|
|
@@ -132,7 +149,8 @@ export function ContactAuthorizations() {
|
|
|
132
149
|
</div>
|
|
133
150
|
${focus ? html`<${TicketCard} ticket=${focus} focus=${true} onChange=${replace} onPerson=${setPerson} />` : null}
|
|
134
151
|
${page.loading ? html`<${Skeleton} variant="cards" lines=${2} label=${ca("loading")} />`
|
|
135
|
-
: page.error && !page.items.length ? (page.error === "verification-required" ? html`<
|
|
152
|
+
: page.error && !page.items.length ? (page.error === "verification-required" ? html`<div class="contact-verify"><p class="note">${ca("verifyFirst")}</p><${AuthorizeChip} />
|
|
153
|
+
<button type="button" class="btn btn-sm" onClick=${() => void read()}>${ca("retry")}</button></div>`
|
|
136
154
|
: page.error === "forbidden" ? html`<p class="note">${ca("forbidden")}</p>` : html`<${ErrorState} message=${ca(page.error === "unavailable" ? "unavailable" : "loadFailed")} onRetry=${() => void read()} />`)
|
|
137
155
|
: !list.length && !focus ? html`<${Empty} icon="key" title=${ca(status === "pending" ? "emptyPending" : "empty")} hint=${ca("emptyHint")} action=${status === "pending" ? html`<button type="button" class="btn btn-sm" onClick=${() => setStatus("all")}>${ca("viewAll")}</button>` : null} />`
|
|
138
156
|
: html`<div class="contact-ticket-list">${list.map((tk) => html`<${TicketCard} key=${tk.id} ticket=${tk} onChange=${replace} onPerson=${setPerson} />`)}</div>`}
|
|
@@ -1,13 +1,70 @@
|
|
|
1
1
|
// Shared, explicit contact-only scope editor. Identity/room/target are frozen from the ticket or existing row.
|
|
2
2
|
import { html, useState } from "/assets/app-html.js";
|
|
3
3
|
import { Dialog } from "/assets/ui-dialog.js";
|
|
4
|
-
import { ca, contactPlatformLabel, contactPersonLabel
|
|
4
|
+
import { ca, contactPlatformLabel, contactPersonLabel } from "./contact-auth-strings.js";
|
|
5
|
+
import { lang, register, t } from "/assets/app-i18n.js";
|
|
6
|
+
import { dateTimeText } from "/assets/clock-text.js";
|
|
5
7
|
import { personKey } from "./contact-auth-client.js";
|
|
6
8
|
export const CONTACT_VERBS = ["send_to_instance", "delegate_task", "request_information", "broadcast", "report_result"];
|
|
9
|
+
|
|
10
|
+
// M-3783: this editor's own words, in its own namespace (#4581 review): a tab that still holds an older
|
|
11
|
+
// contact-auth-strings.js reads them all the same, and an older editor keeps the shared, unchanged grantBoundary.
|
|
12
|
+
register("cgrant", {
|
|
13
|
+
en: {
|
|
14
|
+
boundary: "Until it expires, these people's requests of this type are forwarded to this agent without asking.",
|
|
15
|
+
moreTitle: "What this allows",
|
|
16
|
+
boundaryMore: "Only from this source to this agent, for this request type. It only decides whether a message is forwarded; what the receiving agent does with it still follows that agent's own permissions. To undo it, remove the rule in the agent's Permissions.",
|
|
17
|
+
allOrigins: "Several people's words are in this conversation: tick each person the rule is for.",
|
|
18
|
+
allOriginsMore: "A later request skips approval only when every person whose words it carries has a matching rule.",
|
|
19
|
+
},
|
|
20
|
+
"zh-TW": {
|
|
21
|
+
boundary: "到期前,這些人的這類請求會直接轉交給這個 Agent,不再詢問。",
|
|
22
|
+
moreTitle: "這會允許什麼",
|
|
23
|
+
boundaryMore: "只限從這個來源發給這個 Agent、這個請求類型。這只決定訊息能不能轉交;接收的 Agent 收到後要做什麼,仍照它自己的權限。要撤銷,到這個 Agent 的「權限」移除規則。",
|
|
24
|
+
allOrigins: "這個對話裡有多人的話:請勾選這條規則適用的每個人。",
|
|
25
|
+
allOriginsMore: "之後的請求,只有在它帶有的每個人都有符合的規則時,才會直接轉交。",
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
const cg = (key) => t(`cgrant.${key}`);
|
|
29
|
+
/**
|
|
30
|
+
* The expiry the selects describe, as one line: the long date and a 24-hour time in both languages, as the hour select
|
|
31
|
+
* (00–23) shows it, never "上午8:18" (#4581 follow-up). The editor's own format: it doesn't depend on the page's lang
|
|
32
|
+
* attribute, which the shared clock helpers read.
|
|
33
|
+
*/
|
|
34
|
+
const untilText = (v) => {
|
|
35
|
+
const d = new Date(v);
|
|
36
|
+
return Number.isFinite(d.getTime()) ? d.toLocaleString(lang() === "zh-TW" ? "zh-TW" : "en", { year: "numeric", month: "long", day: "numeric", hour: "2-digit", minute: "2-digit", hourCycle: "h23" }) : "";
|
|
37
|
+
};
|
|
7
38
|
const localTime = date => new Date(date.getTime() - date.getTimezoneOffset() * 60000).toISOString().slice(0, 16);
|
|
8
39
|
const afterDays = days => localTime(new Date(Date.now() + days * 86400000));
|
|
9
|
-
|
|
10
|
-
|
|
40
|
+
const pad2 = n => String(n).padStart(2, "0");
|
|
41
|
+
const ymd = d => `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())}`;
|
|
42
|
+
/**
|
|
43
|
+
* The expiry as a day and a 24-hour time from selects (#4497 capture check; M-3730: no native date/time input, whose
|
|
44
|
+
* format follows the browser, not the page — 12/03/2026, 07:40 AM on a zh-TW page). `value` is local "YYYY-MM-DDTHH:MM".
|
|
45
|
+
*/
|
|
46
|
+
function UntilPicker({ value, disabled, onChange }) {
|
|
47
|
+
const [day = "", hm = ""] = String(value || "").split("T");
|
|
48
|
+
const [hh = "00", mm = "00"] = hm.split(":");
|
|
49
|
+
const start = new Date(); start.setHours(0, 0, 0, 0);
|
|
50
|
+
const days = Array.from({ length: 91 }, (_, i) => { const d = new Date(start); d.setDate(start.getDate() + i); return ymd(d); });
|
|
51
|
+
if (day && !days.includes(day)) days.push(day);
|
|
52
|
+
days.sort();
|
|
53
|
+
const zh = lang() === "zh-TW";
|
|
54
|
+
const dayLabel = v => { const [y, m, d] = v.split("-").map(Number); return dateTimeText(new Date(y, m - 1, d), { weekday: "short", year: "numeric", month: "short", day: "numeric" }, zh ? "zh-TW" : "en"); };
|
|
55
|
+
const minutes = ["00", "15", "30", "45"]; if (!minutes.includes(mm)) minutes.push(mm); minutes.sort();
|
|
56
|
+
const set = (d, h, m) => onChange(`${d}T${h}:${m}`);
|
|
57
|
+
return html`<span class="contact-until">
|
|
58
|
+
<select class="input" aria-label=${ca("untilDay")} value=${day} disabled=${disabled} onChange=${e => set(e.currentTarget.value, hh, mm)}>${days.map(v => html`<option value=${v}>${dayLabel(v)}</option>`)}</select>
|
|
59
|
+
<span class="contact-until-time"><select class="input" aria-label=${ca("untilHour")} value=${hh} disabled=${disabled} onChange=${e => set(day, e.currentTarget.value, mm)}>${Array.from({ length: 24 }, (_, i) => pad2(i)).map(v => html`<option value=${v}>${v}</option>`)}</select>
|
|
60
|
+
<span aria-hidden="true">:</span>
|
|
61
|
+
<select class="input" aria-label=${ca("untilMinute")} value=${mm} disabled=${disabled} onChange=${e => set(day, hh, e.currentTarget.value)}>${minutes.map(v => html`<option value=${v}>${v}</option>`)}</select></span>
|
|
62
|
+
</span>`;
|
|
63
|
+
}
|
|
64
|
+
// `keyOf` (M-3736 J): how a person is selected — the same-card contract's server-owned candidate key; by default the
|
|
65
|
+
// person's own [platform, userId] key, as before.
|
|
66
|
+
export function ContactGrantEditor({ people, source, target, verb, grant = null, onSave, onClose, keyOf = personKey, title = "" }) {
|
|
67
|
+
const [selected, setSelected] = useState(() => grant ? [personKey(grant.person)] : people.length === 1 ? [keyOf(people[0])] : []);
|
|
11
68
|
const [preset, setPreset] = useState(grant ? "custom" : "7");
|
|
12
69
|
const [until, setUntil] = useState(() => grant ? localTime(new Date(grant.expiresAt)) : afterDays(7));
|
|
13
70
|
const [uses, setUses] = useState(grant?.remainingUses == null ? "" : String(grant.remainingUses));
|
|
@@ -26,24 +83,27 @@ export function ContactGrantEditor({ people, source, target, verb, grant = null,
|
|
|
26
83
|
finally { setBusy(false); }
|
|
27
84
|
};
|
|
28
85
|
const toggle = (values, value, checked) => checked ? [...values, value] : values.filter(v => v !== value);
|
|
29
|
-
return html`<${Dialog} title=${ca(grant ? "grantEdit" : people.length === 1 ? "allowPersonTitle" : "allowPeopleTitle")} busy=${busy} cls="contact-grant-dialog" onClose=${onClose}
|
|
86
|
+
return html`<${Dialog} title=${title || ca(grant ? "grantEdit" : people.length === 1 ? "allowPersonTitle" : "allowPeopleTitle")} busy=${busy} cls="contact-grant-dialog" onClose=${onClose}
|
|
30
87
|
actions=${html`<button type="button" class="btn" disabled=${busy} onClick=${onClose}>${ca("cancel")}</button><button type="button" class="btn btn-primary" disabled=${busy || !valid} onClick=${save}>${ca(busy ? "saving" : grant ? "grantSave" : "allowAndApprove")}</button>`}>
|
|
31
88
|
<p>${ca("grantRoute", source, target)}</p>
|
|
89
|
+
<p class="note contact-grant-boundary">${cg("boundary")}</p>
|
|
90
|
+
<details class="contact-grant-more"><summary>${cg("moreTitle")}</summary><p class="note">${cg("boundaryMore")}</p>
|
|
91
|
+
${!grant && people.length > 1 ? html`<p class="note">${cg("allOriginsMore")}</p>` : null}</details>
|
|
32
92
|
<section class="s-group" aria-label=${ca("grantPeople")}><h3>${ca("grantPeople")}</h3><div class="s-checks">
|
|
33
|
-
${people.map(person => html`<label class="check"><input type="checkbox" checked=${selected.includes(
|
|
34
|
-
onChange=${e => setSelected(toggle(selected,
|
|
93
|
+
${people.map(person => html`<label class="check"><input type="checkbox" checked=${selected.includes(keyOf(person))} disabled=${busy || !!grant}
|
|
94
|
+
onChange=${e => setSelected(toggle(selected, keyOf(person), e.currentTarget.checked))} /><span>${contactPersonLabel(person)} · ${contactPlatformLabel(person.platform)}</span></label>`)}
|
|
35
95
|
</div></section>
|
|
36
|
-
${!grant &&
|
|
96
|
+
${!grant && !selected.length ? html`<p class="note contact-grant-pick">${ca("grantPickSomeone")}</p>` : null}
|
|
97
|
+
${!grant && people.length > 1 ? html`<p class="note">${cg("allOrigins")}</p>` : null}
|
|
37
98
|
${grant ? html`<section class="s-group" aria-label=${ca("grantTypes")}><h3>${ca("grantTypes")}</h3><div class="s-checks">${CONTACT_VERBS.map(v => html`<label class="check"><input type="checkbox" checked=${verbs.includes(v)} disabled=${busy}
|
|
38
99
|
onChange=${e => setVerbs(toggle(verbs, v, e.currentTarget.checked))} /><span>${ca(`verb_${v}`)}</span></label>`)}</div></section>` : html`<p>${ca("grantType", ca(`verb_${verb}`))}</p>`}
|
|
39
|
-
<div class="
|
|
100
|
+
<div class="contact-grant-when"><label class="field"><span>${ca("grantDuration")}</span><select class="input" value=${preset} disabled=${busy} onChange=${e => { const value = e.currentTarget.value; setPreset(value); if (value !== "custom") setUntil(afterDays(Number(value))); }}>
|
|
40
101
|
${[1, 7, 30].map(n => html`<option value=${String(n)}>${n === 1 ? ca("grantOneDay") : ca("grantDays", n)}</option>`)}<option value="custom">${ca("grantCustom")}</option></select></label>
|
|
41
|
-
<
|
|
42
|
-
${validUntil ? html`<p class="note contact-grant-expiry">${ca("grantExpires",
|
|
102
|
+
<div class="field"><span>${ca("alsoAllowUntil")}</span><${UntilPicker} value=${until} disabled=${busy} onChange=${v => { setPreset("custom"); setUntil(v); }} /></div></div>
|
|
103
|
+
${validUntil ? html`<p class="note contact-grant-expiry">${ca("grantExpires", untilText(until))}</p>` : null}
|
|
43
104
|
<p class="note">${ca("grantZone", Intl.DateTimeFormat().resolvedOptions().timeZone)}</p>
|
|
44
105
|
<details open=${grant?.remainingUses === 0}><summary>${ca("grantAdvanced")}</summary><label class="field"><span>${ca("alsoAllowUses")}</span><input class="input" type="number" min="1" max="10000" inputmode="numeric" value=${uses} disabled=${busy} onInput=${e => setUses(e.currentTarget.value)} /></label></details>
|
|
45
106
|
${!validUntil ? html`<p class="err">${ca("grantFutureExpiry")}</p>` : !validUses ? html`<p class="err">${ca("grantValidUses")}</p>` : null}
|
|
46
|
-
<p class="note">${ca("grantBoundary")}</p>
|
|
47
107
|
${grant ? html`<p class="note">${ca("grantEditScope")}</p>` : null}
|
|
48
108
|
${error ? html`<p class="err" role="alert">${error}</p>` : null}
|
|
49
109
|
</${Dialog}>`;
|
package/dist/ui/contact-needs.js
CHANGED
|
@@ -18,23 +18,43 @@ import { ca } from "./contact-auth-strings.js";
|
|
|
18
18
|
import { getPermissions, getTicket, putPermissions, dismissSuggestion } from "./contact-auth-client.js";
|
|
19
19
|
import { TicketCard } from "./contact-authorizations.js";
|
|
20
20
|
import { notCovered, wouldDisableMore, wouldDisableText } from "./contact-permissions.js";
|
|
21
|
+
// M-3736 J (S-228): where the same-card host is installed, a request's item is its one card (Sentinel, #4492: the item is
|
|
22
|
+
// an ordinary contact_request for every recognized managing admin, verified or not; no count-only line).
|
|
23
|
+
import { getCard, RC_ID, sameCardState } from "./request-contact-client.js";
|
|
24
|
+
import { RequestContactCard } from "./request-contact-card.js";
|
|
21
25
|
|
|
22
26
|
const ID = /^[A-Za-z0-9_-]{1,64}$/;
|
|
23
27
|
|
|
24
28
|
function RequestNeed({ item }) {
|
|
25
29
|
const ref = item.contactTicket || {};
|
|
26
30
|
const [tk, setTk] = useState(null);
|
|
31
|
+
const [host, setHost] = useState(null), [rc, setRc] = useState(null);
|
|
27
32
|
// M-3680: the agents by the names the page shows them (the request card below does the same).
|
|
28
33
|
const { instances } = useStore(appStore);
|
|
29
34
|
const agent = (name) => (name ? labelOf((instances || []).find((i) => i.name === name) || { name }) : "");
|
|
30
35
|
useEffect(() => {
|
|
31
36
|
let live = true;
|
|
32
|
-
|
|
37
|
+
// Today's scoped ticket read only where the host is known to be off; installed → the one card; not known → neither.
|
|
38
|
+
void sameCardState().then((s) => {
|
|
39
|
+
if (!live) return;
|
|
40
|
+
setHost(s);
|
|
41
|
+
if (s === "on" && RC_ID.test(String(ref.id || ""))) void getCard(ref.id).then((r) => { if (live && r.ok) setRc(r.data); });
|
|
42
|
+
else if (s === "off" && ID.test(String(ref.id || ""))) void getTicket(ref.id).then((r) => { if (live && r.ok) setTk(r.data); });
|
|
43
|
+
});
|
|
33
44
|
return () => { live = false; };
|
|
34
45
|
}, [ref.id]);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
46
|
+
const open = ID.test(String(ref.id || "")) ? `/ui/fleet/authorizations?ticket=${encodeURIComponent(ref.id)}` : null;
|
|
47
|
+
// The same-card host: the item IS the one card (its own standard Needs-you layout, with Open in Authorizations).
|
|
48
|
+
if (host === "on" && rc) return html`<${RequestContactCard} card=${rc} onChange=${setRc} openHref=${open} />`;
|
|
49
|
+
return html`<${NeedShell} reason=${item.reason}><div class="n-title"><strong>${ca("needsTitle", agent(ref.source), agent(ref.target))}</strong></div>
|
|
50
|
+
${host === "off" && tk ? html`<${TicketCard} ticket=${tk} onChange=${setTk} />` : null}
|
|
51
|
+
<div class="n-actions">${open ? html`<a class="btn btn-sm btn-ghost" href=${open}>${ca("needsOpen")}</a>` : null}</div></${NeedShell}>`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** A contact item's standard Needs-you frame (the key icon, then its body). */
|
|
55
|
+
function NeedShell({ reason, children }) {
|
|
56
|
+
return html`<article data-trust="permission" class="n-item contact-need" data-reason=${reason}>
|
|
57
|
+
<span class="n-icon"><${Icon} name="key" size=${18} /></span><div class="n-body">${children}</div></article>`;
|
|
38
58
|
}
|
|
39
59
|
|
|
40
60
|
function SuggestionNeed({ item }) {
|
|
@@ -98,8 +118,7 @@ export function ContactSuggestionsGroup({ items }) {
|
|
|
98
118
|
|
|
99
119
|
/** One contact item of Needs you (item.type "contact"); null for a reason this page doesn't know. */
|
|
100
120
|
export function ContactNeedsItem({ item }) {
|
|
101
|
-
|
|
102
|
-
if (
|
|
103
|
-
return html
|
|
104
|
-
<span class="n-icon"><${Icon} name="key" size=${18} /></span><div class="n-body">${body}</div></article>`;
|
|
121
|
+
if (item.reason === "contact_request") return html`<${RequestNeed} item=${item} />`; // its own frame (or the one card)
|
|
122
|
+
if (item.reason !== "contact_restricted_suggestion") return null;
|
|
123
|
+
return html`<${NeedShell} reason=${item.reason}><${SuggestionNeed} item=${item} /></${NeedShell}>`;
|
|
105
124
|
}
|
|
@@ -20,6 +20,17 @@ import { ContactGrantEditor } from "./contact-grant-editor.js";
|
|
|
20
20
|
import { REASONS } from "./contact-authorizations.js";
|
|
21
21
|
import { groupWouldDisable } from "./contact-tool-groups.js";
|
|
22
22
|
import { dateTimeText } from "/assets/clock-text.js";
|
|
23
|
+
import { register, t } from "/assets/app-i18n.js";
|
|
24
|
+
import { AuthorizeChip } from "/assets/web-authorize.js";
|
|
25
|
+
// M-3736 J (S-228, design #4456 §6): once the same-card host is installed, Clear retained origin is no longer a way out —
|
|
26
|
+
// each request is judged on its own card — so its button and the notes that point to it go; what it did stays as history.
|
|
27
|
+
import { sameCardState } from "./request-contact-client.js";
|
|
28
|
+
|
|
29
|
+
register("rcperm", {
|
|
30
|
+
en: { originHistory: "Retained origin (history)", originHistoryNote: "Contact requests are now judged one request at a time, on their own card. What this agent retained, and any earlier clearing, stays here as history." },
|
|
31
|
+
"zh-TW": { originHistory: "保留的來源(歷史)", originHistoryNote: "聯絡申請現在逐筆在各自的卡片上判斷。這個 Agent 先前保留的來源,以及之前的清除紀錄,會留在這裡作為歷史。" },
|
|
32
|
+
});
|
|
33
|
+
const tq = (k) => t(`rcperm.${k}`);
|
|
23
34
|
|
|
24
35
|
const when = (iso) => { const d = new Date(iso); return Number.isFinite(d.getTime()) ? dateTimeText(d, { dateStyle: "medium", timeStyle: "short" }, []) : ""; };
|
|
25
36
|
/** A3's guard reason codes (ContactGuardStatus.reason), each said in words (contact-auth-strings.js guardReason_<code>). */
|
|
@@ -110,10 +121,16 @@ export function ContactPermissionsPanel({ name }) {
|
|
|
110
121
|
const [mcpDraft, setMcpDraft] = useState("");
|
|
111
122
|
const [pick, setPick] = useState("");
|
|
112
123
|
const [editing, setEditing] = useState(null), [grantFilter, setGrantFilter] = useState("");
|
|
124
|
+
// Clear retained origin is offered only where the host is known to be off (404); installed or not known, it isn't.
|
|
125
|
+
const [host, setHost] = useState(null);
|
|
126
|
+
useEffect(() => { let live = true; void sameCardState().then((s) => { if (live) setHost(s); }); return () => { live = false; }; }, []);
|
|
127
|
+
const sameCard = host === "on", clearOffered = host === "off";
|
|
113
128
|
const p = perm.data;
|
|
114
129
|
useEffect(() => { setEditing(null); }, [name, p?.revision]);
|
|
115
130
|
if (!p && perm.loading !== false && !perm.error) return html`<${Skeleton} lines=${5} label=${ca("loading")} />`;
|
|
116
|
-
|
|
131
|
+
// M-3864 R6: the way to authorize, or why this browser can't be and where to fix that (a code sign-in: /web from the chat).
|
|
132
|
+
if (!p) return perm.error === "verification-required" ? html`<div class="contact-verify"><p class="note">${ca("verifyFirst")}</p><${AuthorizeChip} />
|
|
133
|
+
<button type="button" class="btn btn-sm" onClick=${() => void perm.read()}>${ca("retry")}</button></div>`
|
|
117
134
|
: perm.error === "forbidden" ? html`<p class="note contact-forbidden">${ca("forbidden")}</p>`
|
|
118
135
|
: html`<${ErrorState} message=${ca(perm.error === "unavailable" ? "unavailable" : "loadFailed")} onRetry=${() => void perm.read()} />`;
|
|
119
136
|
// Who may change what (the server says; Sentinel's seam): the source room's admins its mode and tools (canSetMode); the
|
|
@@ -140,7 +157,7 @@ export function ContactPermissionsPanel({ name }) {
|
|
|
140
157
|
if (ok) await write({ mode });
|
|
141
158
|
};
|
|
142
159
|
const clearRetainedOrigin = async () => {
|
|
143
|
-
if (busy || !p.originState?.canClear) return;
|
|
160
|
+
if (busy || !p.originState?.canClear || !clearOffered) return;
|
|
144
161
|
setBusy(true);
|
|
145
162
|
const confirmed = await confirmDialog({ title: ca("originClear"), message: ca(p.classicRoom ? "originClearConfirm" : "originClearConfirmAgent"),
|
|
146
163
|
confirmLabel: ca("originClear"), danger: true });
|
|
@@ -164,7 +181,7 @@ export function ContactPermissionsPanel({ name }) {
|
|
|
164
181
|
const shownGrants = p.grants.filter(gr => (gr.person.label || gr.person.userId).toLocaleLowerCase().includes(grantFilter.toLocaleLowerCase()));
|
|
165
182
|
return html`<div class="contact-perm" aria-busy=${busy ? "true" : undefined}>
|
|
166
183
|
${p.originRestriction?.active && REASONS.has(p.originRestriction.reason) ? html`<p class="feedback warning contact-origin-restriction" role="status" data-reason=${p.originRestriction.reason}>
|
|
167
|
-
${ca(`reason_${p.originRestriction.reason}`)} ${ca("resetNote")}</p>` : null}
|
|
184
|
+
${ca(`reason_${p.originRestriction.reason}`)}${clearOffered ? html` ${ca("resetNote")}` : ""}</p>` : null}
|
|
168
185
|
${!canManage && !canMode ? html`<p class="s-info contact-readonly"><span aria-hidden="true">ⓘ</span><span>${ca("readOnly")}</span></p>` : null}
|
|
169
186
|
${p.classicRoom ? html`<section class="card contact-mode" data-mode=${p.mode}>
|
|
170
187
|
<h3>${ca("modeTitle")}</h3>
|
|
@@ -237,18 +254,18 @@ export function ContactPermissionsPanel({ name }) {
|
|
|
237
254
|
</section>
|
|
238
255
|
${editing && editing.revision === p.revision && canManage ? html`<${ContactGrantEditor} key=${`${name}:${p.revision}:${editing.grant.id}`} grant=${editing.grant} people=${[editing.grant.person]} source=${agentLabel(editing.grant.source)} target=${agentLabel(editing.grant.target)}
|
|
239
256
|
onClose=${() => setEditing(null)} onSave=${choice => grantsWrite(p.grants.map(row => row.id === editing.grant.id ? { ...row, expiresAt: choice.expiresAt, remainingUses: choice.remainingUses, verbs: choice.verbs } : row))} />` : null}
|
|
240
|
-
${p.originState ? html`<section class
|
|
241
|
-
<h3>${ca("originTitle")}</h3>
|
|
257
|
+
${p.originState ? html`<section class=${`card contact-origin${sameCard ? " contact-origin-history" : ""}`}>
|
|
258
|
+
<h3>${sameCard ? tq("originHistory") : ca("originTitle")}</h3>
|
|
242
259
|
<p class="contact-origin-state"><strong>${ca(`originKind_${p.originState.kind}`)}</strong></p>
|
|
243
|
-
<p class="note">${ca("originRetainedNote")}</p>
|
|
260
|
+
<p class="note">${sameCard ? tq("originHistoryNote") : ca("originRetainedNote")}</p>
|
|
244
261
|
<p>${ca("originPeople")}</p>
|
|
245
262
|
${p.originState.people.length ? html`<ul class="contact-list contact-origin-people">${p.originState.people.map((person) => html`<li key=${`${person.platform}:${person.adapterId}:${person.userId}`}>
|
|
246
263
|
<strong>${personLabel(person)}</strong> <span class="muted">${person.platform} · ${person.adapterId} · ${person.userId}</span></li>`)}</ul>` : html`<p class="note">${ca("originPeopleNone")}</p>`}
|
|
247
264
|
<p class="contact-origin-chain">${ca("originChain")}: ${p.originState.chain.length ? p.originState.chain.join(" → ") : ca("originChainNone")}</p>
|
|
248
265
|
<p class="note">${ca(p.originState.receiptCount === 1 ? "originReceipt" : "originReceipts", p.originState.receiptCount)}</p>
|
|
249
266
|
${p.originState.lastCleared ? html`<p class="contact-origin-last">${ca("originLastCleared", personLabel(p.originState.lastCleared.actor), when(p.originState.lastCleared.at))}</p>` : null}
|
|
250
|
-
${p.originState.canClear ? html`<button type="button" class="btn btn-sm btn-danger contact-origin-clear" disabled=${busy} onClick=${() => void clearRetainedOrigin()}>${ca("originClear")}</button>` : null}
|
|
251
|
-
${!p.originState.canClear && p.originState.kind !== "none" ? html`<p class="note contact-origin-who">${clearWho(p.eligibleApprovers)}</p>` : null}
|
|
267
|
+
${p.originState.canClear && clearOffered ? html`<button type="button" class="btn btn-sm btn-danger contact-origin-clear" disabled=${busy} onClick=${() => void clearRetainedOrigin()}>${ca("originClear")}</button>` : null}
|
|
268
|
+
${clearOffered && !p.originState.canClear && p.originState.kind !== "none" ? html`<p class="note contact-origin-who">${clearWho(p.eligibleApprovers)}</p>` : null}
|
|
252
269
|
</section>` : null}
|
|
253
270
|
<section class="card contact-history">
|
|
254
271
|
<h3>${ca("historyTitle")}</h3>
|
|
@@ -22,7 +22,7 @@ export const TOOL_GROUPS = Object.freeze([
|
|
|
22
22
|
"preview_web_appearance", "set_web_widget", "remove_web_widget", "set_web_ambient", "clear_web_ambient", "office_view", "office_set",
|
|
23
23
|
"office_set_style", "office_pack_check", "office_pack_list", "office_pack_upload", "office_pack_delete", "office_pack_restore"] },
|
|
24
24
|
{ id: "repos", tools: ["checkout_repo", "release_repo", "deploy_template", "teardown_deployment", "list_deployments"] },
|
|
25
|
-
{ id: "hub", tools: ["hub_room_list", "hub_room_post", "hub_room_members", "hub_people_search", "hub_set_intro"] },
|
|
25
|
+
{ id: "hub", tools: ["hub_room_list", "hub_room_post", "hub_room_members", "hub_room_history", "hub_people_search", "hub_set_intro"] },
|
|
26
26
|
].map((g) => Object.freeze({ id: g.id, tools: Object.freeze(g.tools) })));
|
|
27
27
|
|
|
28
28
|
const GROUP_OF = new Map(TOOL_GROUPS.flatMap((g) => g.tools.map((tool) => [tool, g.id])));
|