@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
package/dist/ui/fleet-tasks.js
CHANGED
|
@@ -25,10 +25,11 @@ import { CardMenu, cardAt, cardMenuItems, pageOrder, stepsOf } from "./fleet-tas
|
|
|
25
25
|
import { ListView, NO_REACH, SubList, TaskToolbar, doneShown, formatFilters, keepFilters, listRows, mainMatches, readDisplay, scrollReach, startFilters, writeDisplay } from "./fleet-task-view.js";
|
|
26
26
|
import { CreateMainDialog } from "./fleet-task-create.js";
|
|
27
27
|
import { InstancesDrawer } from "./fleet-task-work.js";
|
|
28
|
-
import { RunMark, inProgressBy, runOf, useRunContext } from "./fleet-task-run.js";
|
|
28
|
+
import { RunMark, inProgressBy, readyOpenBy, runOf, useRunContext } from "./fleet-task-run.js";
|
|
29
29
|
import { OwnerChip, otherWorkers, quietInfo } from "./fleet-task-owner.js";
|
|
30
30
|
import { InsightsDialog } from "./fleet-task-stats.js";
|
|
31
31
|
import { ToSort, sortCount } from "./fleet-task-sort.js";
|
|
32
|
+
import { UnreadStrip, UnreadMark, markFor, useUnreadCards } from "./fleet-task-unread.js";
|
|
32
33
|
import { ArchiveDialog, ArchivedLink, ArchivedTag, DONE_PAGE, newestDone, weekLabel } from "./fleet-task-archive.js";
|
|
33
34
|
|
|
34
35
|
const PROJECT_KEY = "agend_tasks_project";
|
|
@@ -146,6 +147,7 @@ export function TaskBoardTab({ lease }) {
|
|
|
146
147
|
try {
|
|
147
148
|
const u = new URL(globalThis.location.href);
|
|
148
149
|
if (id === null) u.searchParams.delete("card"); else u.searchParams.set("card", id);
|
|
150
|
+
if (/^#c\d+$/.test(u.hash)) u.hash = ""; // a comment's anchor (#c42) belongs to the card it was made for
|
|
149
151
|
const depth = id === null ? 0 : replace ? Math.max(1, depthNow()) : depthNow() + 1;
|
|
150
152
|
const state = id === null ? null : { ...(globalThis.history.state || {}), tbCard: depth };
|
|
151
153
|
if (replace || id === null) globalThis.history.replaceState(state, "", u); else globalThis.history.pushState(state, "", u);
|
|
@@ -300,7 +302,7 @@ export function TaskBoardTab({ lease }) {
|
|
|
300
302
|
return html`<div class="tb" onContextMenu=${onMenu}>
|
|
301
303
|
${writable ? null : html`<p class="tb-readonly" role="note"><${Icon} name="eye" size=${16} />${t("tasks.readOnly")}</p>`}
|
|
302
304
|
${writable && !openId ? html`<${BoardOffNote} names=${boardOff} />` : null}
|
|
303
|
-
${openId ? html`<${CardPage} key=${openId} id=${openId} tick=${tick} projects=${projects} cards=${cards} boardOff=${boardOff} doing=${inProgressBy(cards)} writable=${writable} place=${writable ? placeOf(cards, openId, reload) : null}
|
|
305
|
+
${openId ? html`<${CardPage} key=${openId} id=${openId} tick=${tick} projects=${projects} cards=${cards} boardOff=${boardOff} doing=${inProgressBy(cards)} ready=${readyOpenBy(cards)} writable=${writable} place=${writable ? placeOf(cards, openId, reload) : null}
|
|
304
306
|
steps=${stepsOf(trail, openId, cards)} where=${where} back=${t(display.view === "list" ? "taskcard.backList" : "taskcard.backBoard")}
|
|
305
307
|
onBack=${closeCard} onOpen=${openCard} onStep=${stepToCard} reloadBoard=${reload} />` : body}
|
|
306
308
|
${menuCard ? html`<${CardMenu} at=${{ x: menu.x, y: menu.y }} label=${t("taskmenu.label", menuCard.id)} onClose=${closeMenu}
|
|
@@ -343,6 +345,7 @@ function Home({ cards, projects, stats, writable, onOpenProject, onOpen, onDialo
|
|
|
343
345
|
<${InstancesButton} onClick=${onInstances} />
|
|
344
346
|
${writable ? html`<button type="button" class="btn btn-primary" onClick=${() => onDialog({ kind: "project", project: null })}><${Icon} name="plus" size=${16} />${t("tasks.newProject")}</button>` : null}</div>
|
|
345
347
|
</div>
|
|
348
|
+
<${UnreadStrip} cards=${cards} onOpen=${onOpen} />
|
|
346
349
|
<${Waiting} cards=${cards} writable=${writable} onOpen=${onOpen} reload=${reload} />
|
|
347
350
|
<${ToSort} cards=${cards} projects=${projects} writable=${writable} onOpen=${onOpen} onOpenNoProject=${() => onOpenProject(NO_PROJECT)} reload=${reload} />
|
|
348
351
|
${active.length || loose ? html`<div class="tb-projects">
|
|
@@ -490,6 +493,8 @@ function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filter
|
|
|
490
493
|
// What each instance with a card in progress is doing, and how many cards it has — one read of the store for
|
|
491
494
|
// the whole board; a tile or row says "running" only when it is the instance's one.
|
|
492
495
|
const runs = useRunContext(cards);
|
|
496
|
+
// What is new for this person (their cards someone answered, named them on or handed them): the marks and the strip.
|
|
497
|
+
const unread = useUnreadCards();
|
|
493
498
|
const live = cards.filter((c) => c.kind === "main" && projectKey(c) === key && c.status !== "cancelled");
|
|
494
499
|
// What the filters offer: this project's main tasks and their sub tasks.
|
|
495
500
|
const own = live.flatMap((c) => [c, ...(subsOf.get(c.id) || [])]);
|
|
@@ -514,7 +519,7 @@ function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filter
|
|
|
514
519
|
: matched.flatMap((c) => [c, ...(subsOf.get(c.id) || [])]));
|
|
515
520
|
const listBody = () => {
|
|
516
521
|
const rows = listRows(mains, subsOf, display, filters, now, query);
|
|
517
|
-
return rows.length === 0 ? empty() : html`<${ListView} rows=${rows} display=${display} subsOf=${subsOf} byId=${byId} flashed=${flashed} now=${now} runs=${runs}
|
|
522
|
+
return rows.length === 0 ? empty() : html`<${ListView} rows=${rows} display=${display} subsOf=${subsOf} byId=${byId} flashed=${flashed} now=${now} runs=${runs} unread=${unread}
|
|
518
523
|
expanded=${expanded} onToggleSubs=${toggleSubs} onOpen=${onOpen} onMore=${onMore} onOwner=${onOwner} cards=${cards} lead=${lead} writable=${writable} onDisplay=${onDisplay} scope=${String(key)} />${moreDone}`;
|
|
519
524
|
};
|
|
520
525
|
|
|
@@ -649,6 +654,7 @@ function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filter
|
|
|
649
654
|
${archived || !writable ? null : html`<button type="button" class="btn btn-primary" onClick=${onCreate}><${Icon} name="plus" size=${16} />${t("tasks.newMain")}</button>`}
|
|
650
655
|
</div>
|
|
651
656
|
</div>
|
|
657
|
+
<${UnreadStrip} cards=${cards} onOpen=${onOpen} />
|
|
652
658
|
<${TaskToolbar} cards=${own} display=${display} onDisplay=${onDisplay} filters=${filters} onFilters=${onFilters} query=${query} onQuery=${onQuery} archiving=${archiveDays > 0}
|
|
653
659
|
scroller=${display.view === "list" ? null : { reach, by: scrollColumns }} />
|
|
654
660
|
${display.view === "list" ? listBody() : mains.length === 0 && !drag ? empty()
|
|
@@ -669,7 +675,7 @@ function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filter
|
|
|
669
675
|
${status === "done" && archiveDays > 0 ? html`<p class="muted tb-done-week tb-done-week-line" title=${t("tasksArchive.weekTip")}>${weekLabel(stats)}</p>` : null}
|
|
670
676
|
${cellItems(list, drag ? drag.id : null, line, (card, dragging) => {
|
|
671
677
|
const lit = Math.max(flashed.get(card.id) || 0, ...(subsOf.get(card.id) || []).map((s) => flashed.get(s.id) || 0));
|
|
672
|
-
return html`<${Tile} key=${card.id} card=${card} dragging=${dragging} flash=${now - lit < 4000} subs=${subsOf.get(card.id)} runs=${runs} writable=${writable} cards=${cards} lead=${lead}
|
|
678
|
+
return html`<${Tile} key=${card.id} card=${card} dragging=${dragging} flash=${now - lit < 4000} subs=${subsOf.get(card.id)} runs=${runs} unread=${markFor(card, subsOf.get(card.id), unread)} writable=${writable} cards=${cards} lead=${lead}
|
|
673
679
|
expanded=${!!expanded[card.id]} onToggleSubs=${() => toggleSubs(card.id)}
|
|
674
680
|
onOpen=${onOpen} onMore=${onMore} onOwner=${onOwner} onKeyMove=${(e) => keyMove(card, e)}
|
|
675
681
|
onDragStart=${(e) => { e.dataTransfer.setData("text/plain", card.id); e.dataTransfer.effectAllowed = "move"; setDrag(card); }} onDragEnd=${end} />`;
|
|
@@ -713,7 +719,7 @@ function NowLine({ now, label = true }) {
|
|
|
713
719
|
* the counts. The tile is as tall as its content; a main task can open up its sub tasks. No coloured bar at its left edge.
|
|
714
720
|
* A card whose agent is running says so with the "Running" mark in its status line (and keeps its accent edge and tint).
|
|
715
721
|
*/
|
|
716
|
-
function Tile({ card, dragging, flash, subs = [], runs, expanded, writable, cards, lead, onToggleSubs, onOpen, onMore, onOwner, onKeyMove, onDragStart, onDragEnd }) {
|
|
722
|
+
function Tile({ card, dragging, flash, subs = [], runs, unread = null, expanded, writable, cards, lead, onToggleSubs, onOpen, onMore, onOwner, onKeyMove, onDragStart, onDragEnd }) {
|
|
717
723
|
const accepted = card.acceptance.filter((a) => a.done).length;
|
|
718
724
|
const progress = card.progress;
|
|
719
725
|
const hasSubs = !!progress && progress.total > 0;
|
|
@@ -731,11 +737,12 @@ function Tile({ card, dragging, flash, subs = [], runs, expanded, writable, card
|
|
|
731
737
|
const toggle = (e) => { e.stopPropagation(); onToggleSubs(); };
|
|
732
738
|
const toggleTitle = expanded ? t("tasks.hideSubs") : t("tasks.showSubs");
|
|
733
739
|
// The tile is a group, not a button: its title is the control (keyboard, screen readers); a click anywhere opens it.
|
|
734
|
-
return html`<div class=${`tb-tile st-${card.status}${dragging ? " dragging" : ""}${flash ? " flash" : ""}${running ? " running" : ""}`} data-tile=${card.id}
|
|
740
|
+
return html`<div class=${`tb-tile st-${card.status}${dragging ? " dragging" : ""}${flash ? " flash" : ""}${running ? " running" : ""}${unread ? " has-unread" : ""}`} data-tile=${card.id}
|
|
735
741
|
draggable=${writable} onDragStart=${writable ? onDragStart : undefined} onDragEnd=${writable ? onDragEnd : undefined}
|
|
736
742
|
onClick=${(e) => { if (e.target && e.target.closest && e.target.closest(".tb-owner-pop")) return; onOpen(card.id); }}>
|
|
737
743
|
<div class="tb-tile-top">
|
|
738
744
|
<span class="tb-code">${card.id}</span>
|
|
745
|
+
<${UnreadMark} unread=${unread} />
|
|
739
746
|
${card.priority === "urgent" || card.priority === "high" ? html`<span class=${`tb-tag p-${card.priority}`}>${t(card.priority === "urgent" ? "tasks.urgentTag" : "tasks.highTag")}</span>` : null}
|
|
740
747
|
<span class="tb-tile-tags">
|
|
741
748
|
${card.kind === "sub" && card.needsReview && card.status !== "done" ? html`<span class="tb-tag st-review" title=${t("tasks.needsReviewTitle")}>${t("tasks.needsReview")}</span>` : null}
|
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);
|
|
@@ -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
|
}
|
|
@@ -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
|
+
}
|
|
@@ -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";
|
|
@@ -457,6 +458,9 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
457
458
|
}, [store]);
|
|
458
459
|
// dev-claude2's room settings (hub-room-settings.js), opened from the header or the members panel.
|
|
459
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), () => {}); };
|
|
460
464
|
const openSettings = () => { import("./hub-room-settings.js").then((m) => { if (typeof m.RoomSettings === "function") setSettings(() => m.RoomSettings); }, () => {}); };
|
|
461
465
|
// Lumen (spec §3, §7): 「離開房間」 for everyone in a group room, through U2's leaveRoom (the last manager is told why not).
|
|
462
466
|
const [leaveError, setLeaveError] = useState("");
|
|
@@ -619,6 +623,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
619
623
|
narrow && officeOn && !inOffice ? { key: "office", label: hroom("tabOffice"), icon: "org", onSelect: () => onView("office") } : null,
|
|
620
624
|
// In the office a phone's options (hide paused, bedtime, dialogue, key, fit, fill) are one sheet, not rows over the scene.
|
|
621
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,
|
|
622
627
|
group && detail?.me?.role === "manager" ? { key: "settings", label: hroom("roomSettings"), icon: "settings", onSelect: openSettings } : null,
|
|
623
628
|
group && detail?.me ? { key: "leave", label: hroom("leaveRoom"), icon: "close", onSelect: () => { void leave(); } } : null,
|
|
624
629
|
pinCount ? { key: "pins", label: `${t("chat.pinsTitle")} · ${pinCount}`, icon: "pin", onSelect: () => setPinsOpen(true) } : null,
|
|
@@ -666,7 +671,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
666
671
|
const panel = Panel && detail ? html`<${Panel} client=${client} roomId=${roomId} detail=${detail}
|
|
667
672
|
onMention=${(m) => { setSheet(false); insertMention(m); }}
|
|
668
673
|
onOpenChat=${chatWith} focus=${focus}
|
|
669
|
-
onSettings=${() => { setSheet(false); openSettings(); }} />` : null;
|
|
674
|
+
onSettings=${() => { setSheet(false); openSettings(); }} onAddAgents=${() => { setSheet(false); openOwnAgents(); }} />` : null;
|
|
670
675
|
return html`<div class=${`hub-chat hub-room-page${showRail ? " with-rail" : ""}`} data-room=${roomId} data-width=${fullWidth ? "full" : undefined} ref=${split}>
|
|
671
676
|
<${LightboxHost} />
|
|
672
677
|
${pinsOpen ? html`<${RoomPinsDialog} pins=${store.pins()} onClose=${() => setPinsOpen(false)} onJump=${(p) => void showPin(p)} onUnpin=${(p) => void togglePin(p.messageId)} />` : null}
|
|
@@ -714,6 +719,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
714
719
|
keyOf=${msgKey} reveal=${(k) => threadRef.current && threadRef.current.reveal(k)} download=${downloadHtml} allow=${(commit) => setHubPreviewOptIn(true, commit)} />`}
|
|
715
720
|
${showRail ? html`<${RailFrame} trust="hub-context" label=${hroom("members")} title=${hroom("members")} closeLabel=${hroom("cancel")} onClose=${() => setRail(false)}>${panel}</${RailFrame}>` : null}
|
|
716
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}
|
|
717
723
|
${settings && detail ? html`<${settings} client=${client} roomId=${roomId} detail=${detail} assistant=${hasAssistant}
|
|
718
724
|
onClose=${() => setSettings(null)} onChanged=${() => { void store.refresh(); }} />` : null}
|
|
719
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";
|
|
@@ -168,6 +168,15 @@ const newer = (key, args, older) => { const s = hw(key, ...args); return s === `
|
|
|
168
168
|
const errText = (r) => hw(r.code === "conflict" || r.code === "stale" ? "errConflictHub" : r.code === "not-found" ? "errNotFound"
|
|
169
169
|
: r.code === "backpressure" ? "errBusyHub" : r.code === "revoked" || r.code === "denied" ? "errDenied" : r.code === "unreachable" ? "errUnreachableHub" : "errFailed");
|
|
170
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
|
+
|
|
171
180
|
export function HubPanel({ route }) {
|
|
172
181
|
const tab = TITLES[route && route.tab] ? route.tab : "ask";
|
|
173
182
|
const companyPage = tab === "ask" && (companyInfoRequest() || !!joinRequest());
|
|
@@ -1300,8 +1309,10 @@ function LazyDirectory({ session }) {
|
|
|
1300
1309
|
* when first shown; nothing while it loads or if this Hub does not serve it.
|
|
1301
1310
|
*/
|
|
1302
1311
|
function LazyRoomPart({ load, name, props = {} }) {
|
|
1303
|
-
const [
|
|
1304
|
-
|
|
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;
|
|
1305
1316
|
return C ? html`<${C} ...${props} />` : null;
|
|
1306
1317
|
}
|
|
1307
1318
|
const teamsLive = () => { const c = hubClient(); return typeof c.teamsLive === "function" && c.teamsLive() === true; };
|
package/dist/ui/panel-needs.js
CHANGED
|
@@ -34,6 +34,7 @@ import { GeneralLocation } from "./general-location.js";
|
|
|
34
34
|
import { runtimeUpdateText } from "./runtime-update-status.js";
|
|
35
35
|
import { ContactNeedsItem, ContactSuggestionsGroup, isRestrictedSuggestion } from "./contact-needs.js";
|
|
36
36
|
import { ContactVerifyNeed, contactVerifyCount, isContactVerify } from "./contact-verify-need.js";
|
|
37
|
+
import { RequestContextNeed } from "./request-context-control.js";
|
|
37
38
|
import { HostDirectoryNotices, hostDirectoryNoticesOffered } from "./hub-host-security-notices.js";
|
|
38
39
|
// M-3770 1.4: AgEnD's own update in Needs you — only a failure or "can't update here" (design §3.1).
|
|
39
40
|
import { UpdateNeedsItem, updateAttention } from "/assets/update-card-ui.js";
|
|
@@ -245,7 +246,7 @@ export function NeedsPanel({ navKey }) {
|
|
|
245
246
|
: !items.length && !asks.length && !decidedHere.length ? updateNeed ? null : hostDirectoryNoticesOffered() ? html`<p class="muted">${tn("otherEmpty")}</p>` : html`<${Empty} icon="check" title=${tn("empty")} hint=${tn(chatApp ? "emptyHint" : "emptyHintWeb")} />`
|
|
246
247
|
: groups.map((g) => html`<section key=${JSON.stringify([g.instance, g.items[0]?.type === "config",g.items[0]?.type === 'host', !!g.items[0]?.runtimeUpdate])} class="n-group" aria-label=${g.items[0]?.runtimeUpdate ? runtimeUpdateText("attention") : g.instance}>
|
|
247
248
|
<h2 class="n-group-head">${g.items[0]?.runtimeUpdate ? runtimeUpdateText("attention") : g.instance ? html`<a href=${chatPath(g.instance)} title=${g.instance}>${nameFor(g.instance)}</a>` : g.items[0]?.type==='host'?hostAlertText('title'):g.items[0]?.type === "config" ? t("app.settings") : tn(g.items.some(i => i.type === "backend") ? "fleetSignIns" : "noAssignee")}</h2>
|
|
248
|
-
${g.items.map((item) => item.type === "contact"
|
|
249
|
+
${g.items.map((item) => item.reason === "request_context_cutover" ? html`<${RequestContextNeed} key=${item.id} item=${item} />` : item.type === "contact"
|
|
249
250
|
// M-3339: a contact request or the restricted-mode suggestion — its own card (contact-needs.js; references only).
|
|
250
251
|
? html`<${ContactNeedsItem} key=${item.id} item=${item} />`
|
|
251
252
|
: html`<${NeedsItem} key=${item.id} item=${item} nowMs=${nowMs} owner=${owner} />`)}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HostMonitoringSettings } from "./settings-host-monitoring.js";
|
|
2
|
+
import { RequestContextSettings } from "./request-context-control.js";
|
|
2
3
|
import { SettingsBuildVersion } from "./settings-build-version.js";
|
|
3
4
|
// #1408 step 3: the Settings panel (/settings[/<section>]) — agents, connections, ClassicBot rooms, general defaults,
|
|
4
5
|
// the developer YAML. Behind the session gate (/ui/js/), loaded the first time it is opened.
|
|
@@ -465,7 +466,7 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
465
466
|
<div id="classicbot" class="s-anchor s-classic-area"><section class="card s-chat-classic"><h2 class="s-ap-group">ClassicBot</h2><${Classic} ctx=${ctx} search=${search} openDialog=${toDialog} /></section>
|
|
466
467
|
<details class="s-ui-disclosure s-classic-defaults"><summary>${layoutText("classicDefaults")}</summary><div class="s-disclosure-body"><${General} key=${formKey} ctx=${ctx} part="classic" /></div></details></div>`
|
|
467
468
|
: section === "web-dashboard" ? html`<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="dashboard" /><${AppearanceSection} ...${you} part="dashboard" />`
|
|
468
|
-
: section === "access" ? html`<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="access" />`
|
|
469
|
+
: section === "access" ? html`<${RequestContextSettings} /><${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="access" />`
|
|
469
470
|
// alpha.6 feedback (#2): the Hub cards have their own section (they were under Access & security, unfound by search).
|
|
470
471
|
: section === "hub" ? html`<${HubSection} hubHost=${!!ctx.fleet.hub?.hubId} hubOrigin=${ctx.fleet.hub?.webOrigin} />`
|
|
471
472
|
: html`<${UpdateSection} /><${AdvancedSettings} ctx=${ctx} staged=${staged} formKey=${formKey} draftEpoch=${draftEpoch} />`;
|
|
@@ -5,7 +5,7 @@ import { PanelHeader, setTitle } from "/assets/app-shell.js";
|
|
|
5
5
|
import { Icon } from "/assets/ui-icons.js";
|
|
6
6
|
import { CliPicker, CliProductMark, cliLabel } from "./cli-picker.js";
|
|
7
7
|
import { ModelSelect } from "./settings-dialogs.js";
|
|
8
|
-
import { useWindowsCliCatalog, WindowsCliDiscoveryStatus, WindowsCliHostIdentity } from "./windows-cli-catalog.js";
|
|
8
|
+
import { hasDetectionRecord, useWindowsCliCatalog, WindowsCliDiscoveryStatus, WindowsCliHostIdentity } from "./windows-cli-catalog.js";
|
|
9
9
|
import { dateTimeText, timeText } from "/assets/clock-text.js";
|
|
10
10
|
|
|
11
11
|
register("wincli", {
|
|
@@ -153,7 +153,7 @@ export function WindowsCliPanel({ navKey, embedded = false, machineId = "", mach
|
|
|
153
153
|
},[clis]);
|
|
154
154
|
return html`<div class=${embedded ? "p-windows-cli windows-cli-settings" : "panel p-windows-cli"}>${!embedded ? html`<${PanelHeader} title="Windows CLI" />` : null}
|
|
155
155
|
<div class=${embedded ? "windows-cli-settings-body" : "panel-body"}><div class="windows-cli-content">
|
|
156
|
-
<header class="windows-cli-intro"><div>${diagnostic ? html`<p>${discovery.data
|
|
156
|
+
<header class="windows-cli-intro"><div>${diagnostic ? html`<p>${hasDetectionRecord(discovery.data) ? t("wincli.lastDetection",dateTimeText(discovery.data.probedAt)) : tn("neverDetection")}</p>` : html`<span class="windows-cli-eyebrow"><${Icon} name="view" size=${14} />${tn("native")}</span><h2>${tn(machineId ? "remoteWorkspace" : "workspace")}</h2><p>${tn(machineId ? "remoteIntro" : "intro")}</p>`}</div>
|
|
157
157
|
<button type="button" class="btn windows-cli-probe" disabled=${probing || !online || !approved} onClick=${probe}><${Icon} name="restart" size=${16} cls=${probing ? "windows-cli-spin" : ""} />${tn(probing ? "probing" : "probe")}</button>
|
|
158
158
|
</header>
|
|
159
159
|
${!diagnostic ? html`<${WindowsCliHostIdentity} inventory=${discovery.data} machineId=${machineId} machine=${machine} />` : null}
|