@songsid/agend 2.4.0-alpha.1 → 2.4.0-alpha.3
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/README.md +1 -1
- package/README.zh-TW.md +1 -1
- package/dist/account-isolation.d.ts +6 -0
- package/dist/account-isolation.js +40 -0
- package/dist/account-isolation.js.map +1 -0
- package/dist/accounts-signout.d.ts +15 -2
- package/dist/accounts-signout.js +52 -4
- package/dist/accounts-signout.js.map +1 -1
- package/dist/accounts-view.d.ts +114 -27
- package/dist/accounts-view.js +123 -60
- package/dist/accounts-view.js.map +1 -1
- package/dist/agent-cli-instructions.md +9 -7
- package/dist/agent-cli.js +47 -20
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.js +23 -8
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-list-output.d.ts +23 -0
- package/dist/agent-list-output.js +53 -0
- package/dist/agent-list-output.js.map +1 -0
- package/dist/agent-runtime-change.js +4 -4
- package/dist/agent-runtime-change.js.map +1 -1
- package/dist/agent-whats-new.js +4 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/antigravity-first-run.d.ts +4 -0
- package/dist/antigravity-first-run.js +57 -0
- package/dist/antigravity-first-run.js.map +1 -0
- package/dist/antigravity-identity.d.ts +6 -0
- package/dist/antigravity-identity.js +27 -0
- package/dist/antigravity-identity.js.map +1 -0
- package/dist/antigravity-store.d.ts +22 -0
- package/dist/antigravity-store.js +79 -0
- package/dist/antigravity-store.js.map +1 -0
- package/dist/auth-api.js +7 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/agy-onboarding.d.ts +14 -0
- package/dist/backend/agy-onboarding.js +114 -0
- package/dist/backend/agy-onboarding.js.map +1 -0
- package/dist/backend/antigravity.d.ts +15 -0
- package/dist/backend/antigravity.js +44 -4
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-code.js +4 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +22 -3
- package/dist/backend/credential-profile.js +61 -9
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/types.d.ts +6 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +7 -1
- package/dist/backend-availability.js +39 -1
- package/dist/backend-availability.js.map +1 -1
- package/dist/browser-backend-signins.d.ts +16 -2
- package/dist/browser-backend-signins.js +17 -9
- package/dist/browser-backend-signins.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +10 -10
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/claude-auth-status.d.ts +1 -0
- package/dist/claude-auth-status.js +25 -0
- package/dist/claude-auth-status.js.map +1 -1
- package/dist/cli-capability.d.ts +104 -19
- package/dist/cli-capability.js +3 -1
- package/dist/cli-capability.js.map +1 -1
- package/dist/cli-caps-module.d.ts +14 -0
- package/dist/cli-caps-module.js +8 -1
- package/dist/cli-caps-module.js.map +1 -1
- package/dist/cli-registry-check.js +114 -18
- package/dist/cli-registry-check.js.map +1 -1
- package/dist/cli-registry.d.ts +116 -12
- package/dist/cli-registry.js +16 -1
- package/dist/cli-registry.js.map +1 -1
- package/dist/cli-spec-antigravity.d.ts +53 -11
- package/dist/cli-spec-antigravity.js +44 -13
- package/dist/cli-spec-antigravity.js.map +1 -1
- package/dist/cli-spec-claude-code.d.ts +14 -1
- package/dist/cli-spec-claude-code.js +5 -4
- package/dist/cli-spec-claude-code.js.map +1 -1
- package/dist/cli-spec-codex.d.ts +8 -0
- package/dist/cli-spec-codex.js +4 -3
- package/dist/cli-spec-codex.js.map +1 -1
- package/dist/cli-spec-grok.d.ts +4 -0
- package/dist/cli-spec-grok.js +2 -1
- package/dist/cli-spec-grok.js.map +1 -1
- package/dist/cli-spec-kiro-cli.d.ts +7 -0
- package/dist/cli-spec-kiro-cli.js +3 -2
- package/dist/cli-spec-kiro-cli.js.map +1 -1
- package/dist/cli-spec-muse.d.ts +4 -0
- package/dist/cli-spec-muse.js +2 -1
- package/dist/cli-spec-muse.js.map +1 -1
- package/dist/cli-spec-opencode.d.ts +1 -0
- package/dist/cli-spec-opencode.js +1 -0
- package/dist/cli-spec-opencode.js.map +1 -1
- package/dist/config-validator.js +47 -7
- package/dist/config-validator.js.map +1 -1
- package/dist/credential-store-proof.d.ts +6 -0
- package/dist/credential-store-proof.js +30 -0
- package/dist/credential-store-proof.js.map +1 -0
- package/dist/daemon.d.ts +3 -0
- package/dist/daemon.js +6 -2
- package/dist/daemon.js.map +1 -1
- package/dist/decision-list.d.ts +5 -4
- package/dist/decision-list.js +22 -8
- package/dist/decision-list.js.map +1 -1
- package/dist/fleet-manager.d.ts +53 -5
- package/dist/fleet-manager.js +301 -115
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.js +6 -6
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +32 -4
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +42 -6
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +14 -6
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +16 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +361 -0
- package/dist/general-knowledge/skills/scheduling/SKILL.md +1 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +184 -36
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +5 -1
- package/dist/general-role.d.ts +1 -1
- package/dist/general-role.js +1 -0
- package/dist/general-role.js.map +1 -1
- package/dist/hub/audit/index.js +12 -5
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/buttons.d.ts +3 -0
- package/dist/hub/buttons.js +11 -11
- package/dist/hub/buttons.js.map +1 -1
- package/dist/hub/catalog.d.ts +18 -5
- package/dist/hub/catalog.js +119 -36
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +6 -0
- package/dist/hub/client.js +6 -1
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +2 -0
- package/dist/hub/compose/member.js +26 -2
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +6 -0
- package/dist/hub/compose/server.js +11 -4
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/directory/directory.d.ts +1 -1
- package/dist/hub/directory/directory.js +51 -0
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/types.d.ts +14 -0
- package/dist/hub/directory/types.js.map +1 -1
- package/dist/hub/enrolment-code.d.ts +126 -0
- package/dist/hub/enrolment-code.js +266 -0
- package/dist/hub/enrolment-code.js.map +1 -0
- package/dist/hub/grant-access.d.ts +11 -0
- package/dist/hub/grant-access.js +113 -0
- package/dist/hub/grant-access.js.map +1 -0
- package/dist/hub/grant-search.d.ts +9 -0
- package/dist/hub/grant-search.js +92 -0
- package/dist/hub/grant-search.js.map +1 -0
- package/dist/hub/group-policy/admin-impact.d.ts +2 -0
- package/dist/hub/group-policy/admin-impact.js +14 -4
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.js +7 -7
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +20 -3
- package/dist/hub/group-policy/authorization.js +132 -27
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.js +23 -7
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +44 -6
- package/dist/hub/group-policy/resources.js +75 -30
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.d.ts +24 -3
- package/dist/hub/group-policy/store.js +136 -77
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/group-policy/welcome.js.map +1 -1
- package/dist/hub/http/compose.js +68 -16
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.d.ts +18 -0
- package/dist/hub/http/core.js +108 -7
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +8 -0
- package/dist/hub/http/schema.js +11 -0
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/init/text.js +2 -2
- package/dist/hub/init/text.js.map +1 -1
- package/dist/hub/init/web.d.ts +7 -0
- package/dist/hub/init/web.js +6 -1
- package/dist/hub/init/web.js.map +1 -1
- package/dist/hub/join/local.d.ts +32 -0
- package/dist/hub/join/local.js +98 -10
- package/dist/hub/join/local.js.map +1 -1
- package/dist/hub/join/receipt.d.ts +1 -0
- package/dist/hub/join/receipt.js +1 -1
- package/dist/hub/join/receipt.js.map +1 -1
- package/dist/hub/join/service.d.ts +94 -6
- package/dist/hub/join/service.js +214 -44
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/join/store.d.ts +2 -1
- package/dist/hub/join/store.js +7 -7
- package/dist/hub/join/store.js.map +1 -1
- package/dist/hub/member/exposure-api.d.ts +2 -0
- package/dist/hub/member/exposure-api.js +3 -2
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/exposures.d.ts +4 -0
- package/dist/hub/member/exposures.js +12 -2
- package/dist/hub/member/exposures.js.map +1 -1
- package/dist/hub/member/pairing-api.js +4 -1
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/member/pairing-notices.js +8 -6
- package/dist/hub/member/pairing-notices.js.map +1 -1
- package/dist/hub/pairing-notices.d.ts +5 -2
- package/dist/hub/pairing-notices.js +38 -13
- package/dist/hub/pairing-notices.js.map +1 -1
- package/dist/hub/pairing.d.ts +10 -2
- package/dist/hub/pairing.js +37 -16
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/policy.d.ts +1 -1
- package/dist/hub/policy.js +19 -6
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +60 -0
- package/dist/hub/protocol.js +9 -2
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/quota.d.ts +2 -1
- package/dist/hub/quota.js +2 -2
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/roles/authority.d.ts +45 -0
- package/dist/hub/roles/authority.js +199 -0
- package/dist/hub/roles/authority.js.map +1 -0
- package/dist/hub/roles/change.d.ts +18 -0
- package/dist/hub/roles/change.js +76 -0
- package/dist/hub/roles/change.js.map +1 -0
- package/dist/hub/roles/convert.d.ts +11 -0
- package/dist/hub/roles/convert.js +27 -0
- package/dist/hub/roles/convert.js.map +1 -0
- package/dist/hub/roles/cutover-inventory.d.ts +14 -0
- package/dist/hub/roles/cutover-inventory.js +42 -0
- package/dist/hub/roles/cutover-inventory.js.map +1 -0
- package/dist/hub/roles/cutover.d.ts +32 -0
- package/dist/hub/roles/cutover.js +184 -0
- package/dist/hub/roles/cutover.js.map +1 -0
- package/dist/hub/roles/delegation.d.ts +24 -0
- package/dist/hub/roles/delegation.js +111 -0
- package/dist/hub/roles/delegation.js.map +1 -0
- package/dist/hub/roles/evaluate.d.ts +50 -0
- package/dist/hub/roles/evaluate.js +96 -0
- package/dist/hub/roles/evaluate.js.map +1 -0
- package/dist/hub/roles/expiry.d.ts +46 -0
- package/dist/hub/roles/expiry.js +180 -0
- package/dist/hub/roles/expiry.js.map +1 -0
- package/dist/hub/roles/mode-effects.d.ts +5 -0
- package/dist/hub/roles/mode-effects.js +21 -0
- package/dist/hub/roles/mode-effects.js.map +1 -0
- package/dist/hub/roles/model.d.ts +171 -0
- package/dist/hub/roles/model.js +79 -0
- package/dist/hub/roles/model.js.map +1 -0
- package/dist/hub/roles/read.d.ts +29 -0
- package/dist/hub/roles/read.js +47 -0
- package/dist/hub/roles/read.js.map +1 -0
- package/dist/hub/roles/writer.d.ts +80 -0
- package/dist/hub/roles/writer.js +427 -0
- package/dist/hub/roles/writer.js.map +1 -0
- package/dist/hub/rooms.d.ts +8 -0
- package/dist/hub/rooms.js +47 -27
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/server.d.ts +3 -0
- package/dist/hub/server.js +18 -2
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/sessions.js +5 -1
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-directory-decision.d.ts +2 -2
- package/dist/hub/settings-directory-decision.js +7 -5
- package/dist/hub/settings-directory-decision.js.map +1 -1
- package/dist/hub/settings-directory-proof.js +3 -1
- package/dist/hub/settings-directory-proof.js.map +1 -1
- package/dist/hub/settings-directory-recovery.js +3 -3
- package/dist/hub/settings-directory-recovery.js.map +1 -1
- package/dist/hub/sharing.d.ts +10 -0
- package/dist/hub/sharing.js +74 -0
- package/dist/hub/sharing.js.map +1 -0
- package/dist/hub/store.js +6 -2
- package/dist/hub/store.js.map +1 -1
- package/dist/hub/types.d.ts +29 -5
- package/dist/hub/web-origin.d.ts +80 -0
- package/dist/hub/web-origin.js +163 -0
- package/dist/hub/web-origin.js.map +1 -0
- package/dist/hub-pairing-summary.js +1 -1
- package/dist/hub-pairing-summary.js.map +1 -1
- package/dist/human-delivery-receipts.js +2 -2
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instance-config-impact.js +4 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +13 -1
- package/dist/instance-lifecycle.js +36 -10
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +8 -2
- package/dist/instructions.js +28 -6
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +12 -8
- package/dist/locale.js.map +1 -1
- package/dist/log-service.d.ts +62 -6
- package/dist/log-service.js +135 -28
- package/dist/log-service.js.map +1 -1
- package/dist/log-steps-agy-grok.d.ts +74 -0
- package/dist/log-steps-agy-grok.js +440 -0
- package/dist/log-steps-agy-grok.js.map +1 -0
- package/dist/log-steps.d.ts +62 -3
- package/dist/log-steps.js +188 -22
- package/dist/log-steps.js.map +1 -1
- package/dist/log-transcript-paths.d.ts +29 -0
- package/dist/log-transcript-paths.js +109 -0
- package/dist/log-transcript-paths.js.map +1 -0
- package/dist/login-controller.d.ts +17 -3
- package/dist/login-controller.js +57 -5
- package/dist/login-controller.js.map +1 -1
- package/dist/login-flows.d.ts +24 -2
- package/dist/login-flows.js +53 -22
- package/dist/login-flows.js.map +1 -1
- package/dist/login-url.js +3 -0
- package/dist/login-url.js.map +1 -1
- package/dist/login-window-lock.d.ts +20 -8
- package/dist/login-window-lock.js +35 -16
- package/dist/login-window-lock.js.map +1 -1
- package/dist/machine-accounts.d.ts +42 -12
- package/dist/machine-accounts.js +144 -46
- package/dist/machine-accounts.js.map +1 -1
- package/dist/machine-signins.d.ts +35 -13
- package/dist/machine-signins.js +57 -27
- package/dist/machine-signins.js.map +1 -1
- package/dist/native-instance-input.js +4 -4
- package/dist/native-instance-input.js.map +1 -1
- package/dist/native-instance-registry.d.ts +3 -3
- package/dist/native-instance-registry.js +11 -10
- package/dist/native-instance-registry.js.map +1 -1
- package/dist/outbound-handlers.d.ts +14 -0
- package/dist/outbound-handlers.js +68 -20
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +18 -0
- package/dist/outbound-schemas.js +22 -4
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/profile-signins.d.ts +7 -0
- package/dist/profile-signins.js +2 -1
- package/dist/profile-signins.js.map +1 -1
- package/dist/runtime-build-info.js +6 -2
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli.js +33 -11
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client.d.ts +18 -2
- package/dist/runtime-client.js +84 -21
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-credential-profiles.d.ts +36 -4
- package/dist/runtime-credential-profiles.js +82 -16
- package/dist/runtime-credential-profiles.js.map +1 -1
- package/dist/runtime-profile-ownership.d.ts +2 -2
- package/dist/runtime-profile-ownership.js +3 -3
- package/dist/runtime-profile-ownership.js.map +1 -1
- package/dist/runtime-protocol.d.ts +5 -3
- package/dist/runtime-protocol.js +4 -0
- package/dist/runtime-protocol.js.map +1 -1
- package/dist/runtime-remote-accounts.d.ts +72 -5
- package/dist/runtime-remote-accounts.js +293 -52
- package/dist/runtime-remote-accounts.js.map +1 -1
- package/dist/runtime-remote-setup.d.ts +2 -2
- package/dist/runtime-remote-setup.js +2 -2
- package/dist/runtime-remote-setup.js.map +1 -1
- package/dist/runtime-signin-transport.d.ts +22 -4
- package/dist/runtime-signin-transport.js +50 -12
- package/dist/runtime-signin-transport.js.map +1 -1
- package/dist/runtime-signin.d.ts +42 -0
- package/dist/runtime-signin.js +105 -9
- package/dist/runtime-signin.js.map +1 -1
- package/dist/runtime-windows-bridge.js +6 -1
- package/dist/runtime-windows-bridge.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +1 -0
- package/dist/scheduler/task-board.js +10 -1
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/settings-api.d.ts +34 -0
- package/dist/settings-api.js +184 -6
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +38 -1
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +14 -0
- package/dist/settings-effect.js.map +1 -1
- package/dist/signin-keepalive.d.ts +31 -2
- package/dist/signin-keepalive.js +123 -12
- package/dist/signin-keepalive.js.map +1 -1
- package/dist/structured-signin-transport.d.ts +2 -2
- package/dist/structured-signin-transport.js +27 -6
- package/dist/structured-signin-transport.js.map +1 -1
- package/dist/structured-signin.d.ts +16 -2
- package/dist/structured-signin.js +59 -4
- package/dist/structured-signin.js.map +1 -1
- package/dist/task-board-tool.d.ts +0 -13
- package/dist/task-board-tool.js +42 -6
- package/dist/task-board-tool.js.map +1 -1
- package/dist/tool-progress.d.ts +7 -0
- package/dist/tool-progress.js +21 -9
- package/dist/tool-progress.js.map +1 -1
- package/dist/tool-receipt-output.d.ts +151 -0
- package/dist/tool-receipt-output.js +50 -0
- package/dist/tool-receipt-output.js.map +1 -0
- package/dist/types.d.ts +13 -0
- package/dist/ui/accounts-keepalive.js +15 -6
- package/dist/ui/accounts-manage.js +25 -5
- package/dist/ui/accounts-view.js +40 -26
- package/dist/ui/agent-details-settings.js +2 -2
- package/dist/ui/agent-page-strings.js +2 -2
- package/dist/ui/agent-proposals.js +22 -2
- package/dist/ui/agent-runtime-settings.js +3 -3
- package/dist/ui/backend-signin.js +49 -16
- package/dist/ui/chat-activity-groups.js +225 -0
- package/dist/ui/chat-activity.js +355 -0
- package/dist/ui/chat-popout-header.js +35 -0
- package/dist/ui/chat-popout-transport.js +80 -0
- package/dist/ui/chat-popout.js +63 -0
- package/dist/ui/chat-quote.js +3 -1
- package/dist/ui/chat-store.js +45 -4
- package/dist/ui/chat-workspace-gestures.js +177 -0
- package/dist/ui/chat-workspace-navigation.js +34 -10
- package/dist/ui/chat-workspace.js +96 -32
- package/dist/ui/cli-caps.js +7 -7
- package/dist/ui/credential-profile-select.js +32 -19
- package/dist/ui/host-install.js +2 -2
- package/dist/ui/hub-agent-copy.js +7 -7
- package/dist/ui/hub-chat-store.js +8 -4
- package/dist/ui/hub-chat-strings.js +3 -3
- package/dist/ui/hub-client.js +113 -18
- package/dist/ui/hub-company-join-strings.js +12 -10
- package/dist/ui/hub-company-join.js +52 -39
- package/dist/ui/hub-confirm-place.js +44 -0
- package/dist/ui/hub-directory-editor-strings.js +3 -3
- package/dist/ui/hub-directory-notice-strings.js +1 -1
- package/dist/ui/hub-enrolment-code-strings.js +44 -0
- package/dist/ui/hub-enrolment-code.js +159 -0
- package/dist/ui/hub-grant-picker.js +100 -0
- package/dist/ui/hub-group-search.js +82 -0
- package/dist/ui/hub-group-strings.js +8 -8
- package/dist/ui/hub-join-approval.js +31 -0
- package/dist/ui/hub-join-code-input.js +66 -0
- package/dist/ui/hub-join-one-strings.js +2 -2
- package/dist/ui/hub-join-queue.js +62 -0
- package/dist/ui/hub-join-steps.js +234 -0
- package/dist/ui/hub-joincode-flow-strings.js +22 -0
- package/dist/ui/hub-owner-strings.js +9 -9
- package/dist/ui/hub-pairing-progress-strings.js +1 -1
- package/dist/ui/hub-quick-pairing.js +8 -4
- package/dist/ui/hub-quick-strings.js +11 -11
- package/dist/ui/hub-share-refused.js +17 -0
- package/dist/ui/hub-strings.js +61 -61
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/hub-welcome.js +26 -5
- package/dist/ui/image-annotate.js +283 -0
- package/dist/ui/image-lightbox.js +26 -6
- package/dist/ui/log-row.js +327 -0
- package/dist/ui/machine-signin.js +47 -14
- package/dist/ui/panel-chat.js +151 -12
- package/dist/ui/panel-details.js +14 -6
- package/dist/ui/panel-fleet.js +2 -2
- package/dist/ui/panel-hub.js +94 -21
- package/dist/ui/panel-log.js +9 -154
- package/dist/ui/panel-settings.js +50 -13
- package/dist/ui/search-dialog.js +1 -0
- package/dist/ui/settings-access-overview.js +1 -1
- package/dist/ui/settings-hub-browser-certificate.js +3 -3
- package/dist/ui/settings-hub-company-join.js +42 -30
- package/dist/ui/settings-hub-connection.js +8 -5
- package/dist/ui/settings-hub-membership.js +3 -3
- package/dist/ui/settings-hub-section.js +3 -1
- package/dist/ui/settings-hub-setup-strings.js +6 -6
- package/dist/ui/settings-hub-setup.js +44 -6
- package/dist/ui/settings-hub-web-address.js +233 -0
- package/dist/ui/settings-hub.js +41 -10
- package/dist/ui/settings-layout.js +6 -4
- package/dist/ui/settings-public-session-strings.js +37 -0
- package/dist/ui/settings-registry.js +4 -0
- package/dist/ui/settings-strings.js +2 -2
- package/dist/ui/shared/accounts-keepalive.css +8 -0
- package/dist/ui/shared/accounts-usage-pool.css +10 -0
- package/dist/ui/shared/accounts.css +9 -0
- package/dist/ui/shared/app-shell.js +16 -10
- package/dist/ui/shared/app.css +233 -35
- package/dist/ui/shared/app.js +8 -1
- package/dist/ui/shared/chat-render.js +11 -2
- package/dist/ui/shared/chat-thread.js +20 -3
- package/dist/ui/shared/chat-work-bar.css +7 -0
- package/dist/ui/shared/chat-workspace-model.js +39 -9
- package/dist/ui/shared/hub-grant-picker.css +4 -0
- package/dist/ui/shared/hub-owner.css +8 -0
- package/dist/ui/shared/hub-sharing.css +4 -0
- package/dist/ui/shared/identity-color.js +9 -3
- package/dist/ui/shared/image-annotate.css +45 -0
- package/dist/ui/shared/instance-nav.js +59 -22
- package/dist/ui/shared/pane-geometry.js +29 -0
- package/dist/ui/shared/signin.js +2 -2
- package/dist/ui/shared/tokens.css +14 -0
- package/dist/ui/shared/ui-menu.js +22 -7
- package/dist/ui/shared/view-strings.js +2 -2
- package/dist/ui/signin.html +1 -1
- package/dist/ui/structured-signin.js +29 -9
- package/dist/ui/usage-pool.js +76 -0
- package/dist/usage/agent-output.d.ts +144 -0
- package/dist/usage/agent-output.js +75 -0
- package/dist/usage/agent-output.js.map +1 -0
- package/dist/usage/provider-alerts.d.ts +6 -0
- package/dist/usage/provider-alerts.js +6 -0
- package/dist/usage/provider-alerts.js.map +1 -1
- package/dist/usage/providers.d.ts +2 -2
- package/dist/usage/providers.js +60 -18
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.d.ts +12 -0
- package/dist/usage/usage-api.js +39 -0
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/web-api.d.ts +3 -0
- package/dist/web-api.js +61 -16
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +13 -4
- package/dist/web-backend-login.js +7 -4
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-history.d.ts +11 -0
- package/dist/web-chat-history.js +9 -1
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-guest-access.js +2 -2
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-session.d.ts +31 -3
- package/dist/web-session.js +25 -4
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +8 -2
- package/dist/web-settings-patch.js +22 -10
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/windows-cli-providers.js +5 -1
- package/dist/windows-cli-providers.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +33 -1
- package/dist/windows-cli-worker.js +150 -10
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +7 -1
- package/dist/windows-cli.js +19 -2
- package/dist/windows-cli.js.map +1 -1
- package/dist/workflow-templates/default.md +2 -2
- package/package.json +1 -1
package/dist/ui/panel-chat.js
CHANGED
|
@@ -130,9 +130,42 @@ export function linkWorkBarCss(doc = typeof document !== "undefined" ? document
|
|
|
130
130
|
}
|
|
131
131
|
linkWorkBarCss();
|
|
132
132
|
|
|
133
|
+
import { activityInfo, activityInfoStore, activityOffered, activityPrefs, composeActivity, mountActivity, observeActivity, setActivityOn, setActivityThinking } from "./chat-activity.js";
|
|
133
134
|
/** The composer's textarea (#2342: text put back into it is a step Ctrl+Z goes back from). */
|
|
134
135
|
const composers = new Map(); // agent → current mounted refs, never a retained thread's stale closure
|
|
135
136
|
const composerField = (name) => composers.get(name)?.input.current || null;
|
|
137
|
+
/**
|
|
138
|
+
* #3727 (M-2973): where the viewer's 「引用給 Agent」 can put a marked-up picture — this chat's composer (the new PNG as an
|
|
139
|
+
* attachment, and a reply to the message the picture is in), and in split chat the other pane's (the PNG, and a quote
|
|
140
|
+
* line naming the original, since a reply can only point into its own chat). Null when this chat has no composer to put
|
|
141
|
+
* it in (nothing to annotate for).
|
|
142
|
+
*/
|
|
143
|
+
function annotateFor(name, img) {
|
|
144
|
+
if (!store || typeof File !== "function") return null;
|
|
145
|
+
const key = img?.closest?.(".msg[data-key]")?.getAttribute("data-key") || "";
|
|
146
|
+
const message = (store.state.msgs[name] || []).find((x) => msgKey(x) === key) || null;
|
|
147
|
+
const field = () => composerField(name);
|
|
148
|
+
const targets = [{ key: "self", label: t("lbAnnotateQuote.self"), quote: (file, live = () => true) => {
|
|
149
|
+
if (!field() || !live()) return false;
|
|
150
|
+
store.addFiles(name, [file]);
|
|
151
|
+
if (message) store.startReply(name, message);
|
|
152
|
+
field()?.focus();
|
|
153
|
+
return true;
|
|
154
|
+
} }];
|
|
155
|
+
const other = (appStore.get().chatWorkspace?.quoteTargets?.(name) || [])[0];
|
|
156
|
+
if (other && other.name) {
|
|
157
|
+
// insertPaneQuote heads the quote with the source chat's name itself: this is only what the message said (or the
|
|
158
|
+
// picture's name, for a message with no words).
|
|
159
|
+
const what = String(message?.text || "").replace(/\s+/g, " ").trim().slice(0, 160) || img?.querySelector?.("img")?.getAttribute("alt") || "📷";
|
|
160
|
+
// Prism on #3735: the picture and its quote go in under the pane's one live check (insert's commit) — a pane
|
|
161
|
+
// replaced or retired meanwhile gets neither, and the editor stays open.
|
|
162
|
+
targets.push({ key: "other", label: t("lbAnnotateQuote.other", other.name),
|
|
163
|
+
quote: async (file, live = () => true) => (await other.insert(what, () => store.addFiles(other.name, [file]), live)) === true });
|
|
164
|
+
}
|
|
165
|
+
return { targets, notice: (text) => toast(text, false) };
|
|
166
|
+
}
|
|
167
|
+
// #3727: the two quote targets' words, here so a page with an older chat dictionary still has them.
|
|
168
|
+
register("lbAnnotateQuote", { en: { self: "Quote to agent", other: "Quote to {0}" }, "zh-TW": { self: "引用給 Agent", other: "引用到 {0}" } });
|
|
136
169
|
/** Cross-pane quote is plain draft text. It never copies a message id, executes a command or submits the composer. */
|
|
137
170
|
export function insertPaneQuote(name, source, text, current = () => true) {
|
|
138
171
|
const binding = composers.get(name), field = binding?.input.current;
|
|
@@ -159,12 +192,73 @@ export function insertPaneQuote(name, source, text, current = () => true) {
|
|
|
159
192
|
}
|
|
160
193
|
export const paneComposerReady = name => !!composerField(name);
|
|
161
194
|
|
|
195
|
+
/** A scoped pane can change width without changing text. Keep its existing 240px composer cap and IME ownership. */
|
|
196
|
+
function observeComposerWidth(field, current, composing) {
|
|
197
|
+
if (!field || typeof ResizeObserver !== "function") return () => {};
|
|
198
|
+
let alive = true, width = -1, deferred = false;
|
|
199
|
+
const resize = () => {
|
|
200
|
+
if (!alive || !current()) return;
|
|
201
|
+
const next = field.getBoundingClientRect().width;
|
|
202
|
+
if (next === width && !deferred) return;
|
|
203
|
+
if (composing()) { deferred = true; return; }
|
|
204
|
+
width = next; deferred = false;
|
|
205
|
+
field.style.height = "auto";
|
|
206
|
+
if (field.value) field.style.height = `${Math.min(field.scrollHeight, 240)}px`;
|
|
207
|
+
};
|
|
208
|
+
let frame = null;
|
|
209
|
+
const schedule = () => {
|
|
210
|
+
if (frame !== null || (field.getBoundingClientRect().width === width && !deferred)) return;
|
|
211
|
+
// Height writes happen outside ResizeObserver delivery, avoiding a self-generated resize loop.
|
|
212
|
+
frame = setTimeout(() => { frame = null; resize(); }, 0);
|
|
213
|
+
};
|
|
214
|
+
const ended = () => queueMicrotask(resize);
|
|
215
|
+
const observer = new ResizeObserver(schedule); observer.observe(field);
|
|
216
|
+
field.addEventListener("compositionend", ended); field.addEventListener("blur", ended); resize();
|
|
217
|
+
return () => { alive = false; clearTimeout(frame); observer.disconnect(); field.removeEventListener("compositionend", ended); field.removeEventListener("blur", ended); };
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
/** #3637: private, write-only local draft handoff; never send, upload or share an outgoing queue. */
|
|
222
|
+
export const popoutDraftVersion = 1;
|
|
223
|
+
export const popoutDraftReady = () => !!store && ["captureDraft", "draftCurrent", "clearCapturedDraft", "acceptDraft"].every(key => typeof store[key] === "function");
|
|
224
|
+
export function capturePaneDraft(name) {
|
|
225
|
+
const owner = store;
|
|
226
|
+
if (!popoutDraftReady() || guestPage() || composers.get(name)?.composing) return null;
|
|
227
|
+
const ticket = owner.captureDraft(name);
|
|
228
|
+
const sameField = () => !composers.get(name)?.composing && (!composerField(name) || composerField(name).value === ticket.payload.text);
|
|
229
|
+
if (!sameField()) return null;
|
|
230
|
+
return { payload: ticket.payload, current: () => store === owner && owner.draftCurrent(ticket) && sameField(),
|
|
231
|
+
clear: () => store === owner && owner.clearCapturedDraft(ticket) };
|
|
232
|
+
}
|
|
233
|
+
export function acceptPaneDraft(name, data) {
|
|
234
|
+
const field = composerField(name);
|
|
235
|
+
if (!popoutDraftReady() || guestPage() || composers.get(name)?.composing || !field || field.disabled || field.readOnly || field.isConnected === false) return false;
|
|
236
|
+
return store.acceptDraft(name, data);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
|
|
162
240
|
const R = () => globalThis.AgendChatRender;
|
|
163
241
|
const P = () => globalThis.AgendPreview;
|
|
164
242
|
|
|
165
243
|
/** The page's chat store (boot creates it). Exported for the tests. */
|
|
166
244
|
export let store = null;
|
|
167
245
|
|
|
246
|
+
/**
|
|
247
|
+
* AGEND-181/197: the thread's rows with the activity block put in — each turn's steps above the reply they produced, the
|
|
248
|
+
* turn in progress at the end — for an admin session, when this browser shows activity. Else the rows. (Which agents have
|
|
249
|
+
* anything: each one's tool_progress, the feed's answer.)
|
|
250
|
+
*/
|
|
251
|
+
const activityShown = () => activityOffered() && activityPrefs.get().on;
|
|
252
|
+
const agentBusy = (name) => R().isBusy(store.state.exec[name]);
|
|
253
|
+
/** Epoch ms the agent began working, by the working bar's own clock (a monotonic one), or null. */
|
|
254
|
+
const agentSince = (name) => { const t = store.state.workingSince[name]; return t == null ? null : Date.now() - (performance.now() - t); };
|
|
255
|
+
const rowsOf = (name) => (activityShown() ? composeActivity(name, store.threadRows(name), Date.now(), { busy: agentBusy(name), since: agentSince(name) }) : store.threadRows(name));
|
|
256
|
+
/** What a chat's activity blocks need to draw: its paths to shorten, and whether thinking is shown. */
|
|
257
|
+
const activityCtx = (name) => () => {
|
|
258
|
+
const info = activityInfo(name);
|
|
259
|
+
return { paths: info ? { cwd: info.cwd, home: info.home } : null, thinking: activityPrefs.get().thinking && !!info && info.thinking === true };
|
|
260
|
+
};
|
|
261
|
+
|
|
168
262
|
// ── Announcements: one polite, visually hidden line for the coarse events only (a reply arrived, the agent started,
|
|
169
263
|
// finished, or waits on you). Messages themselves are not read out as they arrive; the list is a log to browse.
|
|
170
264
|
let announceTimer = null;
|
|
@@ -342,12 +436,21 @@ function useResolvedMode(lease) {
|
|
|
342
436
|
|
|
343
437
|
function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
344
438
|
const pane = paneContext.usePane?.(), paneNow = useRef(pane); paneNow.current = pane;
|
|
345
|
-
const bindings = useRef({ input: { current: null }, box: { current: null } }).current;
|
|
439
|
+
const bindings = useRef({ input: { current: null }, box: { current: null }, composing: false }).current;
|
|
346
440
|
const ids = pane ? Object.fromEntries(["msgIn", "attachBtn", "stopBtn", "sendBtn", "cmdPalette"].map(key => [key, `pane-${pane.id}-${key}`])) : {};
|
|
347
441
|
useLayoutEffect(() => {
|
|
348
442
|
composers.set(name, bindings);
|
|
349
|
-
|
|
443
|
+
const field = bindings.input.current, start = () => { bindings.composing = true; }, end = () => { bindings.composing = false; };
|
|
444
|
+
field?.addEventListener("compositionstart", start); field?.addEventListener("compositionend", end); field?.addEventListener("blur", end);
|
|
445
|
+
return () => {
|
|
446
|
+
field?.removeEventListener("compositionstart", start); field?.removeEventListener("compositionend", end); field?.removeEventListener("blur", end);
|
|
447
|
+
if (composers.get(name) === bindings) composers.delete(name);
|
|
448
|
+
};
|
|
350
449
|
}, [name]);
|
|
450
|
+
useLayoutEffect(() => {
|
|
451
|
+
if (!pane && new URLSearchParams(location.search).get("presentation") !== "popout") return;
|
|
452
|
+
return observeComposerWidth(bindings.input.current, () => composers.get(name) === bindings, () => bindings.composing);
|
|
453
|
+
}, [name, !!pane]);
|
|
351
454
|
const attachmentsSupported = supportsInstanceFeature(inst,"attachments");
|
|
352
455
|
const names = useStore(namesStore); // #1722: which name leads (the title)
|
|
353
456
|
// #1629: this agent's theme, on this surface only; redrawn when the themes, the viewer's switch or the mode move.
|
|
@@ -370,6 +473,7 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
370
473
|
};
|
|
371
474
|
const [wrap, setWrap] = useState(codeWrap);
|
|
372
475
|
const wide = useStore(chatWide).on;
|
|
476
|
+
useStore(activityPrefs); useStore(activityInfoStore); // AGEND-181: the ⋯ menu's Show activity / Show thinking
|
|
373
477
|
const view = useRef(null), split = useRef(null), thread = useRef(null), bg = useRef(null), effectSurface = useRef(null);
|
|
374
478
|
useLayoutEffect(() => { applyTheme(view.current, theme, mode); }, [themeKey, mode]);
|
|
375
479
|
useLayoutEffect(() => {
|
|
@@ -436,6 +540,11 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
436
540
|
...themeMenuItems(name),
|
|
437
541
|
// #2117: its ambient — why it is not showing here (with the way to change that), and a person's Clear.
|
|
438
542
|
...ambientMenuItems(name, { publicLink: document.body.dataset.publicLink === "1", clear: clearAmbient }),
|
|
543
|
+
// AGEND-181: the activity timeline above each reply (this browser's choice), when the Log is on.
|
|
544
|
+
...(activityOffered() && activityInfo(name)?.level !== "off" ? [
|
|
545
|
+
{ key: "activity", checkbox: true, checked: activityPrefs.get().on, label: t("act.menuActivity"), onSelect: () => setActivityOn(!activityPrefs.get().on) },
|
|
546
|
+
...(activityInfo(name)?.thinking ? [{ key: "thinking", checkbox: true, checked: activityPrefs.get().thinking, disabled: !activityPrefs.get().on, label: t("act.menuThinking"), onSelect: () => setActivityThinking(!activityPrefs.get().thinking) }] : []),
|
|
547
|
+
] : []),
|
|
439
548
|
narrowScreen() ? null : { key: "fullWidth", checkbox: true, checked: wide, label: t("chat.fullWidth"), onSelect: () => setChatWide(!wide) },
|
|
440
549
|
{ key: "delete", label: t("chat.delete"), icon: "trash", danger: true, onSelect: () => setDialog("delete") },
|
|
441
550
|
];
|
|
@@ -456,9 +565,6 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
456
565
|
return html`<div class=${`panel p-chat${wrap ? " wrap-code" : ""}`} data-width=${wide ? "full" : undefined} ref=${view}>
|
|
457
566
|
<${PanelHeader} title=${inst.runtime === "windows" ? inst.display_name || name : headerName(namesOf(inst || { name }, names.primary))} sub=${sub}
|
|
458
567
|
pageControls=${{ CardMenu, card, navKey, usage: supportsInstanceFeature(inst,"usage") }} pageActions=${[
|
|
459
|
-
pane && !guest && supportsInstanceFeature(inst,"commands") ? { key: "pane-backend", label: `${mw("backend")}: ${backendLabel(inst.backend)}`, onSelect: () => inst.runtime === "windows" ? navigate(sectionPath("agents")) : pick("backend") } : null,
|
|
460
|
-
pane && !guest && supportsInstanceFeature(inst,"commands") ? { key: "pane-model", label: t("chat.chipModel", modelText(inst)), onSelect: () => pick("model") } : null,
|
|
461
|
-
pane && effortChip(inst) && supportsInstanceFeature(inst,"effort") ? { key: "pane-effort", label: t("chat.chipEffort", effortChip(inst)), onSelect: () => pick("effort") } : null,
|
|
462
568
|
...items]}
|
|
463
569
|
nav=${guest ? (guestTrusted() ? html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" guest=${true} />` : null) : html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" />`}><${CardMenu} card=${card} /><${HeaderTools} navKey=${navKey} usage=${supportsInstanceFeature(inst,"usage")} />${guest ? null : html`<${Menu} items=${items} label=${t("app.more")} />`}</${PanelHeader}>
|
|
464
570
|
<${ChatCard} key=${name} name=${name} card=${card} />
|
|
@@ -564,9 +670,10 @@ function threadEntry(name, doc) {
|
|
|
564
670
|
serverNow: () => Date.now() + store.state.clockSkew, // #1823: the deadline is the server's
|
|
565
671
|
panel: { shown: shownKey, open: (spec, o) => openPanel(spec, o), version: panelVersion, claim: claimPanel, claims: panelClaims, // #1481, #1704
|
|
566
672
|
openMarkdown: (spec) => openMarkdown(spec) }, // M-2448: a Markdown file in the side panel
|
|
567
|
-
openImage: openLightbox,
|
|
673
|
+
openImage: (links, img) => openLightbox(links, img, annotateFor(name, img)), // an image, full size, in the page (#3727: with 標註)
|
|
568
674
|
emojis: (id) => !!emojiIndex && emojiIndex.known(id), // #1630: the fleet's server emoji
|
|
569
675
|
mentions: (kind, id) => (mentionIndex ? mentionIndex.name(kind, id) : null), // #1682: mention names
|
|
676
|
+
activity: { mount: (node, group) => mountActivity(node, group, activityCtx(name)) }, // AGEND-181: the timeline's blocks
|
|
570
677
|
});
|
|
571
678
|
e.thread = thread;
|
|
572
679
|
return e;
|
|
@@ -577,12 +684,40 @@ function follow(name, thread) {
|
|
|
577
684
|
// #1682: the same for mention names — asked for the ids the messages carry; when names arrive, drawn again.
|
|
578
685
|
const wantEmojis = (msgs) => { if (emojiIndex && emojiIndex.wants(msgs)) emojiIndex.ensure(); if (mentionIndex) mentionIndex.ensure(msgs); };
|
|
579
686
|
const offs = [];
|
|
580
|
-
if (emojiIndex) offs.push(emojiIndex.subscribe(() => thread.render(
|
|
581
|
-
if (mentionIndex) offs.push(mentionIndex.subscribe(() => thread.render(
|
|
687
|
+
if (emojiIndex) offs.push(emojiIndex.subscribe(() => thread.render(rowsOf(name))));
|
|
688
|
+
if (mentionIndex) offs.push(mentionIndex.subscribe(() => thread.render(rowsOf(name))));
|
|
582
689
|
wantEmojis(store.state.msgs[name]);
|
|
690
|
+
// AGEND-181/197: the activity feed — this instance's steps while the chat is shown (the Log's own read, live by steps_tick,
|
|
691
|
+
// or by a poll when the stream has fallen back to polling); switched by this browser's Show activity / Show thinking.
|
|
692
|
+
// Nothing is read for anyone but an admin session on the local dashboard.
|
|
693
|
+
let feed = null;
|
|
694
|
+
const sync = () => {
|
|
695
|
+
if (activityShown() && !feed) {
|
|
696
|
+
feed = observeActivity(name, {
|
|
697
|
+
changed: () => thread.render(rowsOf(name)),
|
|
698
|
+
streamOn: appStore.get().streamOn,
|
|
699
|
+
polling: () => globalThis.document?.body?.dataset?.webTransport === "poll" || appStore.get().connection === "polling",
|
|
700
|
+
wantThinking: () => activityPrefs.get().thinking,
|
|
701
|
+
working: () => agentBusy(name),
|
|
702
|
+
});
|
|
703
|
+
feed.start();
|
|
704
|
+
} else if (!activityShown() && feed) { feed.stop(); feed = null; }
|
|
705
|
+
thread.render(rowsOf(name));
|
|
706
|
+
};
|
|
707
|
+
if (activityShown()) sync();
|
|
708
|
+
offs.push(activityPrefs.subscribe(sync));
|
|
709
|
+
offs.push(() => { if (feed) { feed.stop(); feed = null; } });
|
|
710
|
+
// the agent starting or stopping work redraws the live line (a turn with nothing to show yet is only a "Working…"
|
|
711
|
+
// line, and the reply row that ends it may come first); a status poll that changes nothing here draws nothing.
|
|
712
|
+
let wasBusy = agentBusy(name);
|
|
583
713
|
offs.push(store.subscribe((instance, kind) => {
|
|
714
|
+
// A fleet-wide status poll says `null`; an activity event, the instance.
|
|
715
|
+
if ((instance === null || instance === name) && wasBusy !== agentBusy(name)) {
|
|
716
|
+
wasBusy = !wasBusy;
|
|
717
|
+
if (feed) { thread.render(rowsOf(name)); feed.nudge(); }
|
|
718
|
+
}
|
|
584
719
|
if (instance !== name) return;
|
|
585
|
-
if (kind === "msgs") { thread.render(
|
|
720
|
+
if (kind === "msgs") { thread.render(rowsOf(name)); wantEmojis(store.state.msgs[name]); if (feed) feed.nudge(); } // a message came or went: read the steps now
|
|
586
721
|
else if (kind === "progress") thread.progress(); // an upload moved: its bar, in place
|
|
587
722
|
else if (kind === "sent") thread.jumpLatest();
|
|
588
723
|
}));
|
|
@@ -618,7 +753,7 @@ function Thread({ name, label = name, th, bindings }) {
|
|
|
618
753
|
thread.attach(sc);
|
|
619
754
|
th.current = thread;
|
|
620
755
|
// Up to date, at the reader's place (the bottom unless they had scrolled up); a kept one's cards say what they can do.
|
|
621
|
-
thread.render(
|
|
756
|
+
thread.render(rowsOf(name), { restore: store.state.scrollMemo[name] ?? null });
|
|
622
757
|
if (kept) thread.refreshCards();
|
|
623
758
|
const unfollow = follow(name, thread);
|
|
624
759
|
const onScroll = () => { store.state.scrollMemo[name] = thread.onScroll(); };
|
|
@@ -820,7 +955,11 @@ function PromptText({ p, action }) {
|
|
|
820
955
|
</form>`;
|
|
821
956
|
}
|
|
822
957
|
|
|
823
|
-
/**
|
|
958
|
+
/**
|
|
959
|
+
* "<name> is working… 0:42", "looks stuck", "Stopping…", or what it waits on at its terminal. Text only.
|
|
960
|
+
* #3724: the strip is always there — idle it keeps its height and shows nothing (no button), so a state change only changes
|
|
961
|
+
* what is inside it and never moves the thread or the composer (chat-work-bar.css fixes the height; long text stays one line).
|
|
962
|
+
*/
|
|
824
963
|
function WorkBar({ name, lease, exec, awaiting, workingLabel, ids }) {
|
|
825
964
|
const s = store.state;
|
|
826
965
|
const busy = R().isBusy(exec) ? exec : "";
|
|
@@ -831,7 +970,7 @@ function WorkBar({ name, lease, exec, awaiting, workingLabel, ids }) {
|
|
|
831
970
|
const h = lease.interval(() => tick(n => n + 1), 1000); // ticks only while it shows, cleared with the lease
|
|
832
971
|
return () => lease.clear(h);
|
|
833
972
|
}, [kind, lease]);
|
|
834
|
-
if (!kind) return
|
|
973
|
+
if (!kind) return html`<div class="work-bar idle" aria-hidden="true"></div>`;
|
|
835
974
|
// #1629: the agent's own working label (its theme), shown as text — only for "working", never for the other states.
|
|
836
975
|
const label = kind === "working" && workingLabel ? workingLabel
|
|
837
976
|
: t(kind === "stuck" ? "chat.stuck" : kind === "stopping" ? "chat.stopping" : kind === "awaiting" ? "chat.awaiting" : "chat.working", name);
|
package/dist/ui/panel-details.js
CHANGED
|
@@ -9,13 +9,13 @@ import { NativePaneRecovery } from "./native-pane-recovery.js";
|
|
|
9
9
|
// ⋯), pause / wake (Settings' agent row). Deletion stays where it already lives (Chat's ⋯, Settings).
|
|
10
10
|
// One read of /ui/instance/<name> when it opens (#1374: nothing recurring); the live status is the app's.
|
|
11
11
|
import { html, useEffect, useLayoutEffect, useRef, useState } from "/assets/app-html.js";
|
|
12
|
-
import { t } from "/assets/app-i18n.js";
|
|
12
|
+
import { register, t } from "/assets/app-i18n.js";
|
|
13
13
|
import { appStore, useStore } from "/assets/app-store.js";
|
|
14
14
|
import { useLease } from "/assets/app-ctx.js";
|
|
15
15
|
import * as paneContext from "/assets/app-ctx.js";
|
|
16
16
|
import { PanelHeader, setTitle, statusClass, statusLabel, openDrawer } from "/assets/app-shell.js";
|
|
17
17
|
import { navigate } from "/assets/app-nav.js";
|
|
18
|
-
import { detailsPath } from "/assets/app-route.js";
|
|
18
|
+
import { chatPath, detailsPath } from "/assets/app-route.js";
|
|
19
19
|
import { InstanceSwitch } from "/assets/instance-switch.js";
|
|
20
20
|
import { modelText } from "/assets/instance-nav.js";
|
|
21
21
|
import { HeaderTools } from "/assets/header-tools.js";
|
|
@@ -30,10 +30,13 @@ import "/assets/chat-strings.js";
|
|
|
30
30
|
import { api } from "./settings-confirm.js";
|
|
31
31
|
import { InstanceBoardWork } from "./fleet-task-work.js";
|
|
32
32
|
import { Icon } from "/assets/ui-icons.js";
|
|
33
|
-
import { AgentCategoryNav, AgentPageHead, AgentSettingsPanels, agentKind, categoryFromSearch,
|
|
33
|
+
import { AgentCategoryNav, AgentPageHead, AgentSettingsPanels, agentKind, categoryFromSearch, useAgentSettings } from "./agent-details-settings.js";
|
|
34
34
|
import "./agent-page-strings.js";
|
|
35
35
|
import { pt } from "./agent-page-strings.js";
|
|
36
36
|
|
|
37
|
+
// Local registration also works when this lazy page is paired with retained string modules.
|
|
38
|
+
register("agentNavigation", { en: { backToChat: "Back to chat" }, "zh-TW": { backToChat: "回到聊天" } });
|
|
39
|
+
|
|
37
40
|
export function DetailsPanel({ route, navKey }) {
|
|
38
41
|
const pane = paneContext.usePane?.();
|
|
39
42
|
const app = useStore(appStore);
|
|
@@ -171,6 +174,12 @@ function DetailsView({ name, inst, navKey, exec, awaiting }) {
|
|
|
171
174
|
<span class="ev">${a.event}</span> ${a.summary || ""}</div>`) : html`<p class="note">${t("chat.dNoActivity")}</p>`}</section>`;
|
|
172
175
|
}
|
|
173
176
|
const actions = items.filter((i) => i && ["start", "restart", "stop", "pause", "wake"].includes(i.key));
|
|
177
|
+
const backToChat = { path: chatPath(name), label: t("agentNavigation.backToChat") };
|
|
178
|
+
const followBack = (event) => {
|
|
179
|
+
if (!pane?.navigate || event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;
|
|
180
|
+
event.preventDefault(); pane.navigate(backToChat.path);
|
|
181
|
+
};
|
|
182
|
+
const backLink = () => html`<a class="icon-btn agent-back-chat" href=${backToChat.path} aria-label=${backToChat.label} title=${backToChat.label} onClick=${followBack}><${Icon} name="close" /></a>`;
|
|
174
183
|
const overview = html`<${NativePaneRecovery} name=${name} inst=${inst} lease=${lease} />${busy ? html`<p class="note" role="status">${t("chat.dWorking")}</p>` : null}<${IdentityCard} name=${name} card=${card} />
|
|
175
184
|
<${AgentWidget} slot="details" widget=${widgetFor(name, "details")} binds=${instanceBinds(inst, exec, awaiting)} />${content}
|
|
176
185
|
${actions.length ? html`<section class="card d-actions"><h3>${pt("actions")}</h3><div class="field-row">${actions.map((i) => html`<button key=${i.key} type="button" class="btn btn-sm" disabled=${i.disabled} onClick=${i.onSelect}>${i.label}</button>`)}</div>
|
|
@@ -178,10 +187,9 @@ function DetailsView({ name, inst, navKey, exec, awaiting }) {
|
|
|
178
187
|
const Pending = sess.mod && sess.mod.PendingBar, OpCard = sess.mod && sess.mod.OperationCard;
|
|
179
188
|
return html`<div data-effect-panel="details" class="panel p-details p-settings p-agent-page" data-view=${cat ? "section" : "index"}>
|
|
180
189
|
<${PanelHeader} title=${name} sub=${sub} pageControls=${{ navKey }} pageActions=${items} nav=${html`<${InstanceSwitch} name=${name} current="details" />`}><${HeaderTools} navKey=${navKey} /><${Menu} items=${items} label=${t("app.more")} /></${PanelHeader}>
|
|
181
|
-
<${AgentCategoryNav} name=${name} kind=${kind} cat=${shownCat} dirty=${dirty}
|
|
190
|
+
<${AgentCategoryNav} name=${name} kind=${kind} cat=${shownCat} dirty=${dirty}>${!cat ? html`<div class="only-narrow"><div class="s-row agent-settings-index-return"><h2>${pt("title")}</h2>${backLink()}</div></div>` : null}</${AgentCategoryNav}>
|
|
182
191
|
<div data-trust="panel-content" class="panel-body"><div class="col" ref=${body}>
|
|
183
|
-
<a class="s-back" href=${detailsPath(name)}><${Icon} name="back" size=${16} /><span>${t("app.details")}</span
|
|
184
|
-
<${AgentPageHead} name=${name} kind=${kind} cat=${shownCat} inst=${null} />
|
|
192
|
+
<div class="s-row agent-settings-heading"><a class="s-back" href=${detailsPath(name)}><${Icon} name="back" size=${16} /><span>${t("app.details")}</span></a><${AgentPageHead} name=${name} kind=${kind} cat=${shownCat} inst=${null} />${backLink()}</div>
|
|
185
193
|
${OpCard && sess.op ? html`<${OpCard} op=${sess.op} schema=${sess.data && sess.data.schema} />` : null}
|
|
186
194
|
<div class="s-section-layout" data-agent-category=${shownCat}>
|
|
187
195
|
<div class="ap-panel" id=${pane ? `pane-${pane.id}-ap-panel-overview` : "ap-panel-overview"} hidden=${shownCat !== "overview"}>${overview}</div>
|
package/dist/ui/panel-fleet.js
CHANGED
|
@@ -16,7 +16,7 @@ import { RuntimePicker, AgentDraftAssistant, NativeAgendToolsHint, tr } from "./
|
|
|
16
16
|
import { CliPicker, cliLabel as productLabel } from "./cli-picker.js";
|
|
17
17
|
import { useWindowsCliCatalog, WindowsCliDiscoveryStatus, detectionText } from "./windows-cli-catalog.js";
|
|
18
18
|
import { useRuntimeCatalog } from "./runtime-catalog.js";
|
|
19
|
-
import { ClaudeAccountSelect } from "./credential-profile-select.js";
|
|
19
|
+
import { ClaudeAccountSelect, accountCli } from "./credential-profile-select.js";
|
|
20
20
|
import { AccountSelect } from "./accounts-view.js"; // the same Account field as the agent dialog (a new module: never a stale named import)
|
|
21
21
|
import { capsOf } from "./cli-caps.js";
|
|
22
22
|
import { chatPath, fleetPath, FLEET_TABS, rememberFleetTab } from "/assets/app-route.js";
|
|
@@ -562,7 +562,7 @@ export function CreateInstanceDialog({ onClose }) {
|
|
|
562
562
|
if (windows) {
|
|
563
563
|
const name = f.topic.trim() || f.dir.trim().replace(/[\\/]+$/, "").split(/[\\/]/).pop();
|
|
564
564
|
if (!name) { toast(tr("required"),false); return null; }
|
|
565
|
-
return {runtime:"windows",...(nativeAdapter==="pane"?{native_adapter:"pane"}:{}),...(machineId ? {machineId} : {}),...(machineId && f.backend
|
|
565
|
+
return {runtime:"windows",...(nativeAdapter==="pane"?{native_adapter:"pane"}:{}),...(machineId ? {machineId} : {}),...(machineId && accountCli(f.backend) && credentialProfile ? {credentialProfile} : {}),topic_name:name,backend:f.backend,...(f.model.trim() ? {model:f.model.trim()} : {}),...(f.dir.trim() ? {directory:f.dir.trim()} : {}),description:f.desc.trim(),systemPrompt:f.prompt.trim(),sandbox};
|
|
566
566
|
}
|
|
567
567
|
if (!f.dir.trim() && !f.topic.trim()) { toast(t("fleet.topicRequired"), false); return null; }
|
|
568
568
|
const body = {};
|