@songsid/agend 2.4.0-alpha.2 → 2.4.0-alpha.4
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/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 +15 -9
- 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 +9 -7
- 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 +11 -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.d.ts +8 -0
- package/dist/backend/claude-code.js +11 -4
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex.js +7 -3
- package/dist/backend/codex.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/grok.d.ts +19 -0
- package/dist/backend/grok.js +112 -1
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/types.d.ts +10 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +6 -0
- package/dist/backend-availability.js +11 -0
- package/dist/backend-availability.js.map +1 -1
- package/dist/browser-backend-signins.d.ts +9 -1
- package/dist/browser-backend-signins.js +9 -5
- 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/child-process.d.ts +1 -0
- package/dist/child-process.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/claude-model-observation.d.ts +71 -0
- package/dist/claude-model-observation.js +169 -0
- package/dist/claude-model-observation.js.map +1 -0
- 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/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/cross-instance-envelope.d.ts +4 -1
- package/dist/cross-instance-envelope.js +12 -7
- package/dist/cross-instance-envelope.js.map +1 -1
- package/dist/daemon.d.ts +24 -2
- package/dist/daemon.js +265 -37
- 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/delivery-consumed-watch.d.ts +24 -0
- package/dist/delivery-consumed-watch.js +21 -10
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +5 -1
- package/dist/delivery-outbox.js +5 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-manager.d.ts +31 -2
- package/dist/fleet-manager.js +238 -56
- 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 +48 -7
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +23 -6
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +18 -8
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +16 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +518 -0
- package/dist/general-knowledge/skills/multi-channel/SKILL.md +1 -1
- package/dist/general-knowledge/skills/scheduling/SKILL.md +1 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +199 -40
- 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/grok-delivery-proof.d.ts +24 -0
- package/dist/grok-delivery-proof.js +124 -0
- package/dist/grok-delivery-proof.js.map +1 -0
- package/dist/hub/assistant/admin-types.d.ts +43 -0
- package/dist/hub/assistant/admin-types.js +2 -0
- package/dist/hub/assistant/admin-types.js.map +1 -0
- package/dist/hub/assistant/claude-host.d.ts +17 -0
- package/dist/hub/assistant/claude-host.js +300 -0
- package/dist/hub/assistant/claude-host.js.map +1 -0
- package/dist/hub/assistant/context.d.ts +3 -0
- package/dist/hub/assistant/context.js +7 -0
- package/dist/hub/assistant/context.js.map +1 -0
- package/dist/hub/assistant/fleet-host.d.ts +19 -0
- package/dist/hub/assistant/fleet-host.js +28 -0
- package/dist/hub/assistant/fleet-host.js.map +1 -0
- package/dist/hub/assistant/runner.d.ts +64 -0
- package/dist/hub/assistant/runner.js +239 -0
- package/dist/hub/assistant/runner.js.map +1 -0
- package/dist/hub/assistant/service.d.ts +51 -0
- package/dist/hub/assistant/service.js +143 -0
- package/dist/hub/assistant/service.js.map +1 -0
- package/dist/hub/assistant/store.d.ts +3 -0
- package/dist/hub/assistant/store.js +65 -0
- package/dist/hub/assistant/store.js.map +1 -0
- package/dist/hub/assistant/types.d.ts +60 -0
- package/dist/hub/assistant/types.js +2 -0
- package/dist/hub/assistant/types.js.map +1 -0
- 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 +13 -6
- package/dist/hub/catalog.js +127 -35
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +16 -0
- package/dist/hub/client.js +52 -9
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +8 -1
- package/dist/hub/compose/member.js +238 -57
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +17 -1
- package/dist/hub/compose/server.js +76 -13
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/directory/admission.d.ts +15 -0
- package/dist/hub/directory/admission.js +56 -0
- package/dist/hub/directory/admission.js.map +1 -0
- package/dist/hub/directory/directory.d.ts +1 -1
- package/dist/hub/directory/directory.js +114 -0
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/types.d.ts +27 -0
- package/dist/hub/directory/types.js.map +1 -1
- package/dist/hub/enrolment-code.d.ts +1 -1
- package/dist/hub/enrolment-code.js +4 -4
- package/dist/hub/enrolment-code.js.map +1 -1
- 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-control.d.ts +1 -0
- package/dist/hub/group-policy/admin-control.js +4 -2
- package/dist/hub/group-policy/admin-control.js.map +1 -1
- package/dist/hub/group-policy/admin-facts.d.ts +1 -0
- package/dist/hub/group-policy/admin-facts.js +2 -1
- package/dist/hub/group-policy/admin-facts.js.map +1 -1
- package/dist/hub/group-policy/admin-impact.d.ts +2 -0
- package/dist/hub/group-policy/admin-impact.js +10 -2
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.js +1 -1
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/admin-read.d.ts +1 -0
- package/dist/hub/group-policy/admin-read.js +3 -2
- package/dist/hub/group-policy/admin-read.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +5 -2
- package/dist/hub/group-policy/authorization.js +73 -32
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/errors.d.ts +9 -0
- package/dist/hub/group-policy/errors.js +13 -0
- package/dist/hub/group-policy/errors.js.map +1 -0
- package/dist/hub/group-policy/impact-inventory.js +20 -4
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +4 -5
- package/dist/hub/group-policy/resources.js +26 -19
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.d.ts +21 -12
- package/dist/hub/group-policy/store.js +99 -109
- 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.d.ts +1 -0
- package/dist/hub/http/compose.js +463 -20
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.d.ts +24 -5
- package/dist/hub/http/core.js +181 -54
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +26 -0
- package/dist/hub/http/schema.js +19 -0
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/init/member-certificate.d.ts +1 -0
- package/dist/hub/init/member-certificate.js +39 -0
- package/dist/hub/init/member-certificate.js.map +1 -0
- package/dist/hub/init/plan-digest.js +1 -0
- package/dist/hub/init/plan-digest.js.map +1 -1
- package/dist/hub/invitations.d.ts +96 -0
- package/dist/hub/invitations.js +292 -0
- package/dist/hub/invitations.js.map +1 -0
- package/dist/hub/join/certificate-trust.d.ts +13 -0
- package/dist/hub/join/certificate-trust.js +41 -0
- package/dist/hub/join/certificate-trust.js.map +1 -0
- package/dist/hub/join/certificate.d.ts +11 -0
- package/dist/hub/join/certificate.js +67 -0
- package/dist/hub/join/certificate.js.map +1 -0
- package/dist/hub/join/client.d.ts +5 -0
- package/dist/hub/join/client.js +30 -3
- package/dist/hub/join/client.js.map +1 -1
- package/dist/hub/join/http.js +5 -3
- package/dist/hub/join/http.js.map +1 -1
- package/dist/hub/join/local.d.ts +37 -1
- package/dist/hub/join/local.js +142 -14
- package/dist/hub/join/local.js.map +1 -1
- package/dist/hub/join/service.d.ts +19 -0
- package/dist/hub/join/service.js +46 -35
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/join/trust.d.ts +9 -0
- package/dist/hub/join/trust.js +35 -0
- package/dist/hub/join/trust.js.map +1 -1
- package/dist/hub/member/pairing-api.js +12 -1
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/member/room-ask.d.ts +137 -0
- package/dist/hub/member/room-ask.js +358 -0
- package/dist/hub/member/room-ask.js.map +1 -0
- package/dist/hub/member-journal.d.ts +18 -1
- package/dist/hub/member-journal.js +76 -3
- package/dist/hub/member-journal.js.map +1 -1
- package/dist/hub/member-origin.d.ts +177 -0
- package/dist/hub/member-origin.js +314 -0
- package/dist/hub/member-origin.js.map +1 -0
- package/dist/hub/pairing-notices.d.ts +1 -0
- package/dist/hub/pairing-notices.js +2 -1
- package/dist/hub/pairing-notices.js.map +1 -1
- package/dist/hub/pairing.d.ts +11 -0
- package/dist/hub/pairing.js +69 -21
- 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 +172 -0
- package/dist/hub/protocol.js +25 -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/clock.d.ts +18 -0
- package/dist/hub/roles/clock.js +58 -0
- package/dist/hub/roles/clock.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-marker.d.ts +57 -0
- package/dist/hub/roles/cutover-marker.js +26 -0
- package/dist/hub/roles/cutover-marker.js.map +1 -0
- package/dist/hub/roles/cutover.d.ts +32 -0
- package/dist/hub/roles/cutover.js +170 -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 +33 -0
- package/dist/hub/roles/read.js +55 -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/admin.d.ts +45 -0
- package/dist/hub/rooms/admin.js +105 -0
- package/dist/hub/rooms/admin.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +74 -0
- package/dist/hub/rooms/agents.js +333 -0
- package/dist/hub/rooms/agents.js.map +1 -0
- package/dist/hub/rooms/assistant.d.ts +44 -0
- package/dist/hub/rooms/assistant.js +179 -0
- package/dist/hub/rooms/assistant.js.map +1 -0
- package/dist/hub/rooms/context.d.ts +10 -0
- package/dist/hub/rooms/context.js +24 -0
- package/dist/hub/rooms/context.js.map +1 -0
- package/dist/hub/rooms/direct-view.d.ts +39 -0
- package/dist/hub/rooms/direct-view.js +38 -0
- package/dist/hub/rooms/direct-view.js.map +1 -0
- package/dist/hub/rooms/directory.d.ts +35 -0
- package/dist/hub/rooms/directory.js +98 -0
- package/dist/hub/rooms/directory.js.map +1 -0
- package/dist/hub/rooms/schema.d.ts +11 -0
- package/dist/hub/rooms/schema.js +73 -0
- package/dist/hub/rooms/schema.js.map +1 -0
- package/dist/hub/rooms/service.d.ts +449 -0
- package/dist/hub/rooms/service.js +581 -0
- package/dist/hub/rooms/service.js.map +1 -0
- package/dist/hub/rooms/types.d.ts +79 -0
- package/dist/hub/rooms/types.js +2 -0
- package/dist/hub/rooms/types.js.map +1 -0
- package/dist/hub/rooms.d.ts +15 -1
- package/dist/hub/rooms.js +76 -31
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +8 -0
- package/dist/hub/runtime.js +57 -3
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +28 -0
- package/dist/hub/server.js +66 -6
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/sessions.js +6 -2
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-commit.d.ts +6 -1
- package/dist/hub/settings-commit.js +15 -0
- package/dist/hub/settings-commit.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.d.ts +5 -0
- package/dist/hub/settings-directory-recovery.js +14 -4
- package/dist/hub/settings-directory-recovery.js.map +1 -1
- package/dist/hub/settings-member-address-control.d.ts +84 -0
- package/dist/hub/settings-member-address-control.js +150 -0
- package/dist/hub/settings-member-address-control.js.map +1 -0
- package/dist/hub/settings-member-address-decision.d.ts +229 -0
- package/dist/hub/settings-member-address-decision.js +318 -0
- package/dist/hub/settings-member-address-decision.js.map +1 -0
- package/dist/hub/settings-member-address-http.d.ts +9 -0
- package/dist/hub/settings-member-address-http.js +78 -0
- package/dist/hub/settings-member-address-http.js.map +1 -0
- package/dist/hub/settings-member-address-network.d.ts +2 -0
- package/dist/hub/settings-member-address-network.js +22 -0
- package/dist/hub/settings-member-address-network.js.map +1 -0
- package/dist/hub/settings-member-address-notices.d.ts +22 -0
- package/dist/hub/settings-member-address-notices.js +21 -0
- package/dist/hub/settings-member-address-notices.js.map +1 -0
- package/dist/hub/settings-member-address-policy.d.ts +21 -0
- package/dist/hub/settings-member-address-policy.js +34 -0
- package/dist/hub/settings-member-address-policy.js.map +1 -0
- package/dist/hub/settings-member-address.d.ts +64 -0
- package/dist/hub/settings-member-address.js +239 -0
- package/dist/hub/settings-member-address.js.map +1 -0
- 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/socket.d.ts +2 -0
- package/dist/hub/socket.js +2 -0
- package/dist/hub/socket.js.map +1 -1
- package/dist/hub/store.js +6 -2
- package/dist/hub/store.js.map +1 -1
- package/dist/hub/teams/types.d.ts +41 -0
- package/dist/hub/teams/types.js +2 -0
- package/dist/hub/teams/types.js.map +1 -0
- package/dist/hub/tls.d.ts +47 -0
- package/dist/hub/tls.js +23 -6
- package/dist/hub/tls.js.map +1 -1
- package/dist/hub/types.d.ts +68 -4
- package/dist/hub/validation.d.ts +1 -1
- package/dist/hub/validation.js +2 -2
- package/dist/hub/validation.js.map +1 -1
- package/dist/hub/web-origin.d.ts +93 -0
- package/dist/hub/web-origin.js +174 -0
- package/dist/hub/web-origin.js.map +1 -0
- package/dist/hub-pilot-trust-settings.d.ts +4 -0
- package/dist/hub-pilot-trust-settings.js +13 -0
- package/dist/hub-pilot-trust-settings.js.map +1 -0
- package/dist/human-delivery-receipts.d.ts +4 -2
- package/dist/human-delivery-receipts.js +20 -13
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/inbound-presentation.d.ts +28 -0
- package/dist/inbound-presentation.js +48 -0
- package/dist/inbound-presentation.js.map +1 -0
- package/dist/instance-lifecycle.d.ts +13 -1
- package/dist/instance-lifecycle.js +33 -10
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +10 -2
- package/dist/instructions.js +32 -7
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +20 -6
- package/dist/locale.js.map +1 -1
- package/dist/log-service.d.ts +3 -0
- package/dist/log-service.js +39 -22
- package/dist/log-service.js.map +1 -1
- package/dist/log-steps.d.ts +56 -1
- package/dist/log-steps.js +318 -56
- package/dist/log-steps.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/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/needs-you-hub.js +6 -2
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +5 -1
- package/dist/needs-you.js +4 -8
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +1 -0
- package/dist/outbound-handlers.js +25 -19
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +19 -0
- package/dist/outbound-schemas.js +23 -4
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/profile-signins.d.ts +5 -0
- package/dist/profile-signins.js +1 -0
- package/dist/profile-signins.js.map +1 -1
- package/dist/queued-handoffs.d.ts +3 -1
- package/dist/queued-handoffs.js +1 -1
- package/dist/queued-handoffs.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-transcript-source.d.ts +2 -0
- package/dist/runtime-transcript-source.js +23 -1
- package/dist/runtime-transcript-source.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 +1 -0
- package/dist/settings-api.js +15 -8
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +3 -0
- package/dist/settings-baseline.js +2 -2
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-effect.d.ts +3 -0
- package/dist/settings-effect.js +12 -2
- 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-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/topic-commands.js +2 -1
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-jsonl.d.ts +24 -0
- package/dist/transcript-jsonl.js +72 -22
- package/dist/transcript-jsonl.js.map +1 -1
- package/dist/transcript-monitor.d.ts +5 -1
- package/dist/transcript-monitor.js +65 -3
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-needles.d.ts +1 -1
- package/dist/transcript-needles.js +1 -1
- package/dist/transcript-records.d.ts +2 -1
- package/dist/transcript-records.js.map +1 -1
- package/dist/transcript-sources.d.ts +4 -0
- package/dist/transcript-sources.js +2 -0
- package/dist/transcript-sources.js.map +1 -1
- package/dist/ui/accounts-keepalive.js +15 -6
- package/dist/ui/accounts-manage.js +25 -5
- package/dist/ui/accounts-view.js +28 -24
- package/dist/ui/agent-details-settings.js +10 -1
- package/dist/ui/agent-proposals.js +22 -2
- package/dist/ui/agent-runtime-settings.js +3 -3
- package/dist/ui/backend-signin.js +4 -4
- package/dist/ui/chat-activity.js +2 -2
- package/dist/ui/cli-caps.js +7 -7
- package/dist/ui/credential-profile-select.js +32 -19
- package/dist/ui/fleet-canvas.js +5 -2
- package/dist/ui/fleet-office-card.js +4 -2
- package/dist/ui/fleet-org.js +2 -0
- package/dist/ui/hub-admin-rooms-strings.js +28 -0
- package/dist/ui/hub-admin-rooms.js +77 -0
- package/dist/ui/hub-assistant-admin-strings.js +26 -0
- package/dist/ui/hub-assistant-admin.js +85 -0
- package/dist/ui/hub-chat-store.js +8 -4
- package/dist/ui/hub-client.js +224 -33
- package/dist/ui/hub-enrolment-code.js +1 -1
- package/dist/ui/hub-grant-picker.js +100 -0
- package/dist/ui/hub-group-search.js +2 -2
- package/dist/ui/hub-invitations-strings.js +30 -0
- package/dist/ui/hub-invitations.js +108 -0
- package/dist/ui/hub-join-one-strings.js +4 -2
- package/dist/ui/hub-join-steps.js +5 -2
- package/dist/ui/hub-pairing-form-strings.js +48 -0
- package/dist/ui/hub-pilot-trust-strings.js +27 -0
- package/dist/ui/hub-pilot-trust.js +41 -0
- package/dist/ui/hub-room-composer.js +113 -0
- package/dist/ui/hub-room-favorites.js +90 -0
- package/dist/ui/hub-room-list.js +152 -0
- package/dist/ui/hub-room-members-strings.js +12 -0
- package/dist/ui/hub-room-members.js +104 -0
- package/dist/ui/hub-room-new-strings.js +46 -0
- package/dist/ui/hub-room-new.js +135 -0
- package/dist/ui/hub-room-presence.js +123 -0
- package/dist/ui/hub-room-settings-strings.js +26 -0
- package/dist/ui/hub-room-settings.js +134 -0
- package/dist/ui/hub-room-strings.js +222 -0
- package/dist/ui/hub-room-thread.js +262 -0
- package/dist/ui/hub-room-unread.js +51 -0
- package/dist/ui/hub-room-working.js +29 -0
- package/dist/ui/log-row.js +14 -5
- package/dist/ui/machine-signin.js +47 -14
- package/dist/ui/panel-details.js +6 -1
- package/dist/ui/panel-fleet.js +2 -2
- package/dist/ui/panel-hub.js +145 -59
- package/dist/ui/panel-needs.js +2 -0
- package/dist/ui/panel-settings.js +2 -2
- package/dist/ui/settings-hub-company-join.js +32 -11
- package/dist/ui/settings-hub-connection.js +9 -3
- package/dist/ui/settings-hub-member-address.js +205 -0
- package/dist/ui/settings-hub-section.js +4 -0
- package/dist/ui/settings-hub-web-address.js +233 -0
- package/dist/ui/settings-hub.js +16 -4
- 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-i18n.js +2 -2
- package/dist/ui/shared/app-needs.js +3 -0
- package/dist/ui/shared/app-shell.js +4 -1
- package/dist/ui/shared/app.css +43 -5
- package/dist/ui/shared/chat-render.js +10 -0
- package/dist/ui/shared/chat-thread.js +14 -5
- package/dist/ui/shared/hub-chat.css +17 -0
- package/dist/ui/shared/hub-grant-picker.css +4 -0
- package/dist/ui/shared/hub-rooms-u2.css +42 -0
- package/dist/ui/shared/hub-sharing.css +4 -0
- package/dist/ui/shared/model-observation.js +16 -0
- package/dist/ui/shared/stale-tab.css +6 -0
- package/dist/ui/shared/stale-tab.js +50 -0
- package/dist/ui/shared/view-strings.js +2 -2
- package/dist/ui/structured-signin.js +19 -6
- 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 +4 -0
- package/dist/web-api.js +32 -13
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +4 -1
- package/dist/web-backend-login.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
|
@@ -24,6 +24,7 @@ register("accountsManage", {
|
|
|
24
24
|
added: "Account “{0}” added.", addedHostSignIn: "Account “{0}” added. Send /login in chat, or ask General.",
|
|
25
25
|
remove: "Remove", removeTitle: "Remove the {0} account “{1}”?",
|
|
26
26
|
removeLead: "This deletes the account's folder on this host: its connection.", removeLeadClaude: "This deletes the account's folder on this host: its connection and its own copies of conversations.",
|
|
27
|
+
removeLeadFolder: "This deletes the account's folder on this host: its connection and its own conversations.",
|
|
27
28
|
removeAfter: "Agents can't use it afterwards.", sep: " ",
|
|
28
29
|
inUse: "Still used by — move each to another account first:", inUseAgent: "Agent {0}", inUseRoom: "ClassicBot room {0}", inUseDefault: "The fleet default for {0} agents",
|
|
29
30
|
move: "Move…", roomHow: "In that room's settings: Runtime & model → Account.",
|
|
@@ -39,6 +40,10 @@ register("accountsManage", {
|
|
|
39
40
|
stopUsers: "Using it now — they stop working until it's connected again:", nobody: "No agent, ClassicBot room or fleet default uses it.",
|
|
40
41
|
signOutGo: "Disconnect", switchGo: "Disconnect and reconnect", signingOut: "Disconnecting…", signedOut: "Disconnected.",
|
|
41
42
|
keychainLeft: "Disconnected, but a Keychain item for this account is still on this Mac. Remove it in Keychain Access.",
|
|
43
|
+
signOutLeadFiles: "{0} has no logout command, so AgEnD deletes this account's connection file on the host, then checks with {0} that it is disconnected. Its conversations stay.",
|
|
44
|
+
switchLeadFiles: "{0} has no logout command, so AgEnD deletes this account's connection file, then opens Connect for the account you want. Agents using it restart on the new account once you've connected.",
|
|
45
|
+
err_still_signed_in: "The connection file was deleted, but {0} still says it is connected: it keeps this connection somewhere AgEnD does not delete (the system's keyring). Disconnect inside {0} (its /logout).",
|
|
46
|
+
signedOutUnverified: "Disconnected. {0} did not answer the check afterwards, so that is not confirmed.",
|
|
42
47
|
removedKeychainLeft: "Account “{0}” removed, but a Keychain item for it is still on this Mac. Remove it in Keychain Access.",
|
|
43
48
|
err_unsupported: "This CLI can't be disconnected from here.", err_signout_failed: "{0}'s disconnect did not succeed. Try again here.",
|
|
44
49
|
defName: "default connection", acctName: "account “{0}”",
|
|
@@ -47,6 +52,10 @@ register("accountsManage", {
|
|
|
47
52
|
removeLeadMachine: "This deletes the account's folder on {0}: its connection and its own copies of conversations. That computer's Runtime does it, and records it.",
|
|
48
53
|
inUseMachineDefault: "This computer's default account for agents (change it on that computer: agend-runtime profile default NAME)",
|
|
49
54
|
signOutLeadMachine: "AgEnD asks {0}'s Runtime to run {1}'s own logout command for this account. Its conversations stay.",
|
|
55
|
+
removeLeadMachineFolder: "This deletes the account's folder on {0}: its connection and its own conversations. That computer's Runtime does it, and records it.",
|
|
56
|
+
signOutLeadMachineFiles: "AgEnD asks {0}'s Runtime to delete this account's connection file on that computer, then to check with {1} that it is disconnected. Its conversations stay.",
|
|
57
|
+
signOutLeadMachineOwn: "This disconnects {1} on {0}: the Windows user's own {1} connection there, which every agent on that computer that does not name an account uses. AgEnD asks that computer's Runtime to remove it, then checks with {1} that it is disconnected. Connect again from here to use it.",
|
|
58
|
+
signOutTitleOwn: "Disconnect {0} on {1}?",
|
|
50
59
|
err_machine_unknown: "That computer is not paired any more.", err_machine_offline: "That computer is offline. Start its Runtime, then try again.",
|
|
51
60
|
err_machine_unsupported: "That computer's Runtime is too old for this. Update the Runtime on it, then try again.",
|
|
52
61
|
err_machine_accounts_off: "The owner of that computer has not allowed this. On that computer run: agend-runtime remote-setup accounts on",
|
|
@@ -66,6 +75,7 @@ register("accountsManage", {
|
|
|
66
75
|
added: "已新增帳號「{0}」。", addedHostSignIn: "已新增帳號「{0}」。請在聊天傳 /login,或請 General。",
|
|
67
76
|
remove: "移除", removeTitle: "要移除 {0} 帳號「{1}」嗎?",
|
|
68
77
|
removeLead: "這會刪除這台主機上該帳號的資料夾:它的連接。", removeLeadClaude: "這會刪除這台主機上該帳號的資料夾:它的連接,以及它自己的對話副本。",
|
|
78
|
+
removeLeadFolder: "這會刪除這台主機上該帳號的資料夾:它的連接,以及它自己的對話。",
|
|
69
79
|
removeAfter: "之後 Agent 就不能使用它。", sep: "",
|
|
70
80
|
inUse: "仍在使用中,請先把每一項移到其他帳號:", inUseAgent: "Agent {0}", inUseRoom: "ClassicBot 房間 {0}", inUseDefault: "{0} Agent 的 Fleet 預設帳號",
|
|
71
81
|
move: "移動…", roomHow: "在該房間的設定裡:Runtime 與模型 → 帳號。",
|
|
@@ -81,6 +91,10 @@ register("accountsManage", {
|
|
|
81
91
|
stopUsers: "目前使用中——在重新連接前它們都無法運作:", nobody: "沒有 Agent、ClassicBot 房間或 Fleet 預設在使用它。",
|
|
82
92
|
signOutGo: "撤銷連接", switchGo: "撤銷並重新連接", signingOut: "正在撤銷連接…", signedOut: "已撤銷連接。",
|
|
83
93
|
keychainLeft: "已撤銷連接,但這台 Mac 上仍有這個帳號的鑰匙圈項目。請在「鑰匙圈存取」中刪除。",
|
|
94
|
+
signOutLeadFiles: "{0} 沒有登出指令,所以 AgEnD 會刪除主機上這個帳號的連接檔,再用 {0} 確認已經撤銷連接。它的對話會保留。",
|
|
95
|
+
switchLeadFiles: "{0} 沒有登出指令,所以 AgEnD 會刪除這個帳號的連接檔,然後開啟「連接」讓你連接想用的帳號。連接好後,使用它的 Agent 會以新帳號重新啟動。",
|
|
96
|
+
err_still_signed_in: "連接檔已刪除,但 {0} 仍顯示已連接:它把這個連接存在 AgEnD 不會刪除的地方(系統鑰匙圈)。請在 {0} 裡自己登出(/logout)。",
|
|
97
|
+
signedOutUnverified: "已撤銷連接。之後 {0} 沒有回應檢查,所以尚未確認。",
|
|
84
98
|
removedKeychainLeft: "已移除帳號「{0}」,但這台 Mac 上仍有它的鑰匙圈項目。請在「鑰匙圈存取」中刪除。",
|
|
85
99
|
err_unsupported: "這個 CLI 無法在這裡撤銷連接。", err_signout_failed: "{0} 的撤銷連接沒有成功。請在這裡再試一次。",
|
|
86
100
|
defName: "預設連接", acctName: "帳號「{0}」",
|
|
@@ -89,6 +103,10 @@ register("accountsManage", {
|
|
|
89
103
|
removeLeadMachine: "這會刪除 {0} 上該帳號的資料夾:它的連接,以及它自己的對話副本。由那台電腦的 Runtime 執行並記錄。",
|
|
90
104
|
inUseMachineDefault: "這台電腦給 Agent 用的預設帳號(請在那台電腦上更改:agend-runtime profile default NAME)",
|
|
91
105
|
signOutLeadMachine: "AgEnD 會請 {0} 的 Runtime 用 {1} 自己的登出指令撤銷這個帳號的連接。它的對話會保留。",
|
|
106
|
+
removeLeadMachineFolder: "這會刪除 {0} 上該帳號的資料夾:它的連接,以及它自己的對話。由那台電腦的 Runtime 執行並記錄。",
|
|
107
|
+
signOutLeadMachineFiles: "AgEnD 會請 {0} 的 Runtime 刪除那台電腦上這個帳號的連接檔,再用 {1} 確認已經撤銷連接。它的對話會保留。",
|
|
108
|
+
signOutLeadMachineOwn: "這會撤銷 {0} 上的 {1} 連接:那台電腦上 Windows 使用者自己的 {1} 連接,電腦上所有沒有指定帳號的 Agent 都用它。AgEnD 會請那台電腦的 Runtime 移除它,再用 {1} 確認已經撤銷連接。要再使用請從這裡重新連接。",
|
|
109
|
+
signOutTitleOwn: "要撤銷 {1} 上的 {0} 連接嗎?",
|
|
92
110
|
err_machine_unknown: "那台電腦已不再配對。", err_machine_offline: "那台電腦離線了。請先啟動它的 Runtime,再試一次。",
|
|
93
111
|
err_machine_unsupported: "那台電腦的 Runtime 太舊,無法這樣做。請先更新它的 Runtime,再試一次。",
|
|
94
112
|
err_machine_accounts_off: "那台電腦的擁有者尚未允許這件事。請在那台電腦上執行:agend-runtime remote-setup accounts on",
|
|
@@ -199,7 +217,7 @@ export function RemoveAccountDialog({ cli, row, label, onClose, onMove, onRemove
|
|
|
199
217
|
return html`<${Dialog} title=${tm("removeTitle", label, row.profile)} onClose=${onClose} busy=${busy} actions=${html`<button type="button" class="btn" disabled=${busy} onClick=${onClose}>${tm("cancel")}</button>
|
|
200
218
|
${errCode === "signing_in" && !machine ? html`<button type="button" class="btn" disabled=${busy || inUse || typed !== row.profile} onClick=${cancelAndRemove}>${tm("cancelAndRemove")}</button>` : null}
|
|
201
219
|
<button type="button" class="btn btn-danger" disabled=${busy || inUse || typed !== row.profile} onClick=${go}>${busy ? tm("removing") : tm("removeGo")}</button>`}>
|
|
202
|
-
<p>${machine ? tm("removeLeadMachine", machine.name) : cli.backend === "claude-code" ? tm("removeLeadClaude") : tm("removeLead")}${tm("sep")}${tm("removeAfter")}</p>
|
|
220
|
+
<p>${machine ? tm(CLI_CAPS[cli.backend] && CLI_CAPS[cli.backend].accountIsFolder ? "removeLeadMachineFolder" : "removeLeadMachine", machine.name) : cli.backend === "claude-code" ? tm("removeLeadClaude") : CLI_CAPS[cli.backend] && CLI_CAPS[cli.backend].accountIsFolder ? tm("removeLeadFolder") : tm("removeLead")}${tm("sep")}${tm("removeAfter")}</p>
|
|
203
221
|
${inUse ? html`<div class="s-account-inuse" role="status"><p><strong>${tm("inUse")}</strong></p><ul>
|
|
204
222
|
${users.agents.map((name) => html`<li><span>${tm("inUseAgent", name)}</span>${moveBtn({ kind: "agent", name })}</li>`)}
|
|
205
223
|
${users.fleetDefault ? html`<li><span>${machine ? tm("inUseMachineDefault") : tm("inUseDefault", label)}</span>${machine ? null : moveBtn({ kind: "default" })}</li>` : null}
|
|
@@ -224,21 +242,23 @@ export function SignOutDialog({ cli, row, label, mode = "signout", onClose, onMo
|
|
|
224
242
|
const any = users.agents.length > 0 || users.classic.length > 0 || users.fleetDefault;
|
|
225
243
|
const which = row.profile ? tm("acctName", row.profile) : tm("defName");
|
|
226
244
|
const machine = row.scope && row.scope.kind === "machine" ? row.scope : null; // #3190 Part 3c: an account on a paired computer
|
|
245
|
+
const files = !!(CLI_CAPS[cli.backend] && CLI_CAPS[cli.backend].signOutFiles); // AGEND-119: a CLI with no logout command is signed out by removing its sign-in file (AGEND-124: on a computer too)
|
|
246
|
+
const own = !!machine && !row.profile; // AGEND-124: the computer's OWN login of a CLI (Antigravity), signed out through that computer's Runtime
|
|
227
247
|
const go = async () => {
|
|
228
248
|
if (busy) return;
|
|
229
249
|
setBusy(true); setErr("");
|
|
230
250
|
const r = await send("POST", `/ui/accounts/${encodeURIComponent(cli.backend)}/signout`, { profile: row.profile || null, confirm: true, ...(machine ? { machine: machine.id } : {}) });
|
|
231
251
|
if (!live.current) return;
|
|
232
252
|
setBusy(false);
|
|
233
|
-
if (!r.ok) { setErr(r.error === "failed" ? tm("err_signout_failed", label) : errText(r)); return; }
|
|
234
|
-
toast(r.keychainLeft ? tm("keychainLeft") : tm("signedOut"), !r.keychainLeft);
|
|
253
|
+
if (!r.ok) { setErr(r.error === "failed" ? tm("err_signout_failed", label) : r.error === "still_signed_in" ? tm("err_still_signed_in", label) : errText(r)); return; }
|
|
254
|
+
toast(r.keychainLeft ? tm("keychainLeft") : r.unverified ? tm("signedOutUnverified", label) : tm("signedOut"), !r.keychainLeft && !r.unverified);
|
|
235
255
|
onClose(); onDone(r);
|
|
236
256
|
};
|
|
237
257
|
const moveBtn = (user) => html`<button type="button" class="btn btn-sm" disabled=${busy} onClick=${() => { onClose(); onMove(user); }}>${tm("move")}</button>`;
|
|
238
|
-
return html`<${Dialog} title=${mode === "switch" ? tm("switchTitle", label) : tm("signOutTitle", label, which)} onClose=${onClose} busy=${busy}
|
|
258
|
+
return html`<${Dialog} title=${mode === "switch" ? tm("switchTitle", label) : own ? tm("signOutTitleOwn", label, machine.name) : tm("signOutTitle", label, which)} onClose=${onClose} busy=${busy}
|
|
239
259
|
actions=${html`<button type="button" class="btn" disabled=${busy} onClick=${onClose}>${tm("cancel")}</button>
|
|
240
260
|
<button type="button" class=${mode === "switch" ? "btn btn-primary" : "btn btn-danger"} disabled=${busy} onClick=${go}>${busy ? tm("signingOut") : mode === "switch" ? tm("switchGo") : tm("signOutGo")}</button>`}>
|
|
241
|
-
<p>${mode === "switch" ? tm("switchLead", label) : machine ? tm("signOutLeadMachine", machine.name, label) : tm("signOutLead", label)}</p>
|
|
261
|
+
<p>${mode === "switch" ? tm(files ? "switchLeadFiles" : "switchLead", label) : own ? tm("signOutLeadMachineOwn", machine.name, label) : machine ? tm(files ? "signOutLeadMachineFiles" : "signOutLeadMachine", machine.name, label) : tm(files ? "signOutLeadFiles" : "signOutLead", label)}</p>
|
|
242
262
|
${any ? html`<div class="s-account-inuse" role="status"><p><strong>${tm("stopUsers")}</strong></p><ul>
|
|
243
263
|
${users.agents.map((name) => html`<li><span>${tm("inUseAgent", name)}</span>${mode === "switch" ? null : moveBtn({ kind: "agent", name })}</li>`)}
|
|
244
264
|
${users.fleetDefault && row.profile ? html`<li><span>${machine ? tm("inUseMachineDefault") : tm("inUseDefault", label)}</span>${machine ? null : moveBtn({ kind: "default" })}</li>` : null}
|
package/dist/ui/accounts-view.js
CHANGED
|
@@ -20,6 +20,7 @@ import { ErrorState, Skeleton } from "/assets/ui-states.js";
|
|
|
20
20
|
import { CompactMeter } from "/assets/usage-meter.js"; // #3321: the Usage panel's meter, not a second one (its own module: a tab that kept an older usage-dialog.js still links)
|
|
21
21
|
import { CliProductMark, cliLabel } from "./cli-picker.js";
|
|
22
22
|
import { identityText } from "./account-identity.js";
|
|
23
|
+
import { UsageBlock } from "./usage-pool.js"; // AGEND-113: every pool and window an account reports, as the server sends them
|
|
23
24
|
import { openSignIn, refreshSignIn, signInStore } from "./backend-signin.js";
|
|
24
25
|
import { capsOf } from "./cli-caps.js";
|
|
25
26
|
import { toast } from "/assets/ui-toast.js";
|
|
@@ -46,6 +47,7 @@ register("accounts", {
|
|
|
46
47
|
signIn: "Connect", signInAgain: "Reconnect", hostCommand: "Connect from chat", hostCommandHint: "This row cannot be connected from the dashboard. Send /login in chat, or ask General.",
|
|
47
48
|
moveHere: "Move agents here", moveTitle: "Move to {0}", moveLead: "Choose the {0} agents and ClassicBot rooms that should use {1}. Each restarts on it when you Save:",
|
|
48
49
|
moveRooms: "ClassicBot rooms",
|
|
50
|
+
updateHint: "{0} needs a newer version before it can be connected from here. Update it on the host:",
|
|
49
51
|
carry_claude: "Claude Code carries its conversation over.", carry_codex: "Codex keeps its conversation.", carry_kiro: "Kiro starts a new conversation, with a handover.",
|
|
50
52
|
moveNone: "Every {0} agent and ClassicBot room already uses this account.", moveStage: "Stage", cancel: "Cancel", current: "now: {0}",
|
|
51
53
|
fleetDefault: "Fleet default for {0} agents", fleetDefaultHint: "Agents that don't choose an account use this one.",
|
|
@@ -62,6 +64,9 @@ register("accounts", {
|
|
|
62
64
|
acctLabel: "Account", acctInherit: "Fleet default ({0})", acctInheritDefault: "Fleet default (default connection)", acctNotSignedIn: "{0} — not connected",
|
|
63
65
|
acctHint: "Changing the account restarts the agent. A disconnected account can't be chosen: connect it under Accounts first.",
|
|
64
66
|
acctHintCreate: "The new agent connects with this account from its first start. A disconnected account can't be chosen: connect it under Accounts first.",
|
|
67
|
+
why_cli_old: "{1} on {0} is too old to connect from here (it needs {2} or newer). Update it on that computer.",
|
|
68
|
+
why_cli_missing: "{1} is not installed on {0}.",
|
|
69
|
+
machineOneLogin: "This is the Windows user's one default {1} connection on {0}. Connecting here replaces it; named accounts (+ Add account) are separate and are not affected.",
|
|
65
70
|
acctDefaultBlocked: "This fleet's default for {0} is “{1}”, so an agent follows it unless it names another account.",
|
|
66
71
|
usedPopTitle: "Agents using this account — choose one to open its settings",
|
|
67
72
|
},
|
|
@@ -76,6 +81,7 @@ register("accounts", {
|
|
|
76
81
|
signIn: "連接", signInAgain: "重新連接", hostCommand: "從聊天連接", hostCommandHint: "這一列無法從儀表板連接。請在聊天傳 /login,或請 General。",
|
|
77
82
|
moveHere: "移入 Agent", moveTitle: "移到 {0}", moveLead: "選擇要改用 {1} 的 {0} Agent 與 ClassicBot 房間。按「儲存」後,各自會以它重新啟動:",
|
|
78
83
|
moveRooms: "ClassicBot 房間",
|
|
84
|
+
updateHint: "{0} 需要更新到較新的版本,才能從這裡連接。請在主機上更新:",
|
|
79
85
|
carry_claude: "Claude Code 會帶著對話過去。", carry_codex: "Codex 保留原本的對話。", carry_kiro: "Kiro 會開新對話並附上交接。",
|
|
80
86
|
moveNone: "所有 {0} Agent 與 ClassicBot 房間都已經使用這個帳號。", moveStage: "加入待儲存", cancel: "取消", current: "目前:{0}",
|
|
81
87
|
fleetDefault: "{0} Agent 的 Fleet 預設帳號", fleetDefaultHint: "沒有指定帳號的 Agent 會使用這個。",
|
|
@@ -92,6 +98,9 @@ register("accounts", {
|
|
|
92
98
|
acctLabel: "帳號", acctInherit: "Fleet 預設({0})", acctInheritDefault: "Fleet 預設(預設連接)", acctNotSignedIn: "{0}——尚未連接",
|
|
93
99
|
acctHint: "更換帳號會重新啟動 Agent。尚未連接的帳號不能選,請先在「帳號」連接。",
|
|
94
100
|
acctHintCreate: "新 Agent 從第一次啟動就會使用這個帳號。尚未連接的帳號不能選,請先在「帳號」連接。",
|
|
101
|
+
why_cli_old: "{0} 上的 {1} 版本太舊,無法從這裡連接(需要 {2} 或更新)。請在那台電腦上更新它。",
|
|
102
|
+
why_cli_missing: "{0} 上沒有安裝 {1}。",
|
|
103
|
+
machineOneLogin: "這是 {0} 上 Windows 使用者的唯一一個預設 {1} 連接。在這裡連接會取代它;具名帳號(「+新增帳號」)是分開的,不受影響。",
|
|
95
104
|
acctDefaultBlocked: "這個 Fleet 的 {0} 預設帳號是「{1}」,Agent 除非指定其他帳號,否則會使用它。",
|
|
96
105
|
usedPopTitle: "使用此帳號的 Agent(點擊跳轉設定)",
|
|
97
106
|
},
|
|
@@ -99,7 +108,7 @@ register("accounts", {
|
|
|
99
108
|
const tx = (k, ...v) => t(`accounts.${k}`, ...v);
|
|
100
109
|
/** The reasons that apply to a whole computer (the heading says them once); the others belong to one row. A code a newer server sends that this page does not know is shown as it is. */
|
|
101
110
|
const MACHINE_LEVEL = new Set(["offline", "runtime_old", "accounts_off", "switch_unreadable", "not_installed"]);
|
|
102
|
-
const reasonText = (code, name) => { const key = `why_${code}`, text = tx(key, name); return text === `accounts.${key}` ? String(code) : text; };
|
|
111
|
+
const reasonText = (code, name, ...more) => { const key = `why_${code}`, text = tx(key, name, ...more); return text === `accounts.${key}` ? String(code) : text; };
|
|
103
112
|
/** This view's stylesheet, linked once (a tab opened before an upgrade has an app.css without these rules). */
|
|
104
113
|
function linkAccountsCss(doc = typeof document !== "undefined" ? document : null) {
|
|
105
114
|
try {
|
|
@@ -162,14 +171,10 @@ const winLabel = (u, fallback = "") => {
|
|
|
162
171
|
return d >= 6 && d <= 8 ? tx("winWeek") : tx("winDays", d);
|
|
163
172
|
};
|
|
164
173
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* given in the meter's shape.
|
|
174
|
+
* A window's short name for the usage block's meter ("5h", "本週", "30d", "—"): by its length when the CLI gives one, else by its kind; one number with no window is a dash. The meter itself
|
|
175
|
+
* is the Usage panel's (usage-pool.js).
|
|
168
176
|
*/
|
|
169
|
-
|
|
170
|
-
const name = winLabel(u, kind === "weekly" ? tx("winWeek") : "");
|
|
171
|
-
return html`<${CompactMeter} m=${{ used: Number(u.percent) || 0, windowMs: u.windowMs, resetsAt: u.resetsAt, label: name }} tag=${name} />`;
|
|
172
|
-
}
|
|
177
|
+
const usageTag = (w) => (w.kind === "unwindowed" ? "—" : winLabel(w, w.kind === "weekly" ? tx("winWeek") : w.kind === "monthly" ? tx("winDays", 30) : ""));
|
|
173
178
|
|
|
174
179
|
/**
|
|
175
180
|
* The fleet default's `backend_options` after choosing `profile` (null: none) for `backend`: the whole map, because the
|
|
@@ -232,12 +237,12 @@ export function AccountsView({ instances, stageAgent, stageDefault, openAgent, r
|
|
|
232
237
|
// AGEND-203: the login window is one PER BACKEND (login-window-lock.ts) — a sign-in or install on one AI holds only that AI's buttons. `busyBackends` names them; the rest stay pressable:
|
|
233
238
|
// - the terminal sign-in (`login`, also another tab's) and the structured one (`active`, also another tab's) hold the backend they run on;
|
|
234
239
|
// - an install or update holds its backend's sign-in buttons, and every Install/Update button (one installer on the host: InstallButton/VersionLine read hostInstallStore themselves);
|
|
235
|
-
// - a computer's account sign-in (the open dialog) is Claude Code's.
|
|
240
|
+
// - a computer's account sign-in (the open dialog) holds the backend the dialog is for (Claude Code's, or Antigravity's).
|
|
236
241
|
// Not here, on purpose: the terminal sign-in is one at a time too, so a second terminal AI (Grok while another is running) is refused by the server (`busy`), which the dialog's cancel flow handles.
|
|
237
242
|
const busyBackends = new Set();
|
|
238
243
|
if (login && login.phase === "running" && login.backend) busyBackends.add(login.backend);
|
|
239
244
|
if (active && active.phase !== "done" && !(active.phase === "failed" && active.reason) && active.backend) busyBackends.add(active.backend);
|
|
240
|
-
if (machineActive) busyBackends.add("claude-code");
|
|
245
|
+
if (machineActive) busyBackends.add(machineLogin.backend || "claude-code"); // AGEND-250: the dialog's own backend (a store from an older tab has none: Claude Code, as before)
|
|
241
246
|
if (install.starting) busyBackends.add(install.starting);
|
|
242
247
|
if (install.run && install.run.phase === "running" && install.run.backend) busyBackends.add(install.run.backend);
|
|
243
248
|
const running = (backend) => busyBackends.has(backend);
|
|
@@ -256,7 +261,7 @@ export function AccountsView({ instances, stageAgent, stageDefault, openAgent, r
|
|
|
256
261
|
onSignOut=${begin((row, mode) => setSigningOut({ cli, row, mode }))} />`)}
|
|
257
262
|
${move ? html`<${MoveDialog} cli=${move.cli} row=${move.row} instances=${instances} stageAgent=${stageAgent} rooms=${rooms} stageClassic=${stageClassic} onClose=${() => setMove(null)} />` : null}
|
|
258
263
|
${adding ? html`<${AddAccountDialog} cli=${adding.machine ? adding.cli : adding} machine=${adding.machine || null} label=${cliLabel((adding.machine ? adding.cli : adding).backend)} onClose=${() => setAdding(null)}
|
|
259
|
-
onAdded=${(name) => { const mine = ++interaction.current, a = adding; void (a.machine ? machineAdded(a.machine, name, () => mounted.current && interaction.current === mine) : accountAdded(a.backend, name, () => mounted.current && interaction.current === mine)); }} />` : null}
|
|
264
|
+
onAdded=${(name) => { const mine = ++interaction.current, a = adding; void (a.machine ? machineAdded(a.machine, name, () => mounted.current && interaction.current === mine, a.cli.backend) : accountAdded(a.backend, name, () => mounted.current && interaction.current === mine)); }} />` : null}
|
|
260
265
|
${signingOut ? html`<${SignOutDialog} cli=${signingOut.cli} row=${signingOut.row} mode=${signingOut.mode} label=${cliLabel(signingOut.cli.backend)}
|
|
261
266
|
onClose=${() => setSigningOut(null)} onMove=${(user) => moveUser(signingOut.cli.backend, user, openAgent, openRoom)}
|
|
262
267
|
onDone=${() => { const s = signingOut, mine = ++interaction.current; void signedOut(s, () => mounted.current && interaction.current === mine); }} />` : null}
|
|
@@ -282,10 +287,10 @@ async function accountAdded(backend, name, current) {
|
|
|
282
287
|
* #3190 Part 3c: after + Add account on a computer: the server only checked the name (the folder is made by that computer's Runtime when the first sign-in starts), so
|
|
283
288
|
* Sign in opens at once for the new name — while this is still the person's current interaction and no other dialog is open.
|
|
284
289
|
*/
|
|
285
|
-
async function machineAdded(machine, name, current) {
|
|
290
|
+
async function machineAdded(machine, name, current, backend) {
|
|
286
291
|
await refreshAccounts({ fresh: true });
|
|
287
292
|
if (!current() || shellStore.get().dialog) return;
|
|
288
|
-
openMachineSignIn({ machine, profile: name });
|
|
293
|
+
openMachineSignIn({ machine, profile: name, ...(backend ? { backend } : {}) });
|
|
289
294
|
}
|
|
290
295
|
/**
|
|
291
296
|
* #3212 PR 3: after Sign out — the view and the sign-ins read again (reads begun after it); Switch account then opens
|
|
@@ -365,7 +370,7 @@ function MachineSection({ cli, m, running, openAgent, onAdd, onSignIn, onSignOut
|
|
|
365
370
|
return html`<div class="s-account-machine" data-machine=${m.scope.id}>
|
|
366
371
|
<div class="s-account-machine-head"><strong>${tx("machine", m.scope.name)}</strong>
|
|
367
372
|
<span class=${`tag s-auth-state is-${online ? "usable" : "unknown"}`}>${online ? tx("machineOnline") : tx("machineOffline")}</span>
|
|
368
|
-
${cli.profiles && !level && typeof onAdd === "function" ? html`<button type="button" class="btn btn-sm s-account-add" disabled=${running} onClick=${() => onAdd(m.scope)}>${manageWords.add()}</button>` : null}</div>
|
|
373
|
+
${cli.profiles && cli.machineProfiles !== false && !level && !m.rows.some((r) => r.scope.namedAccounts === false) && typeof onAdd === "function" ? html`<button type="button" class="btn btn-sm s-account-add" disabled=${running} onClick=${() => onAdd(m.scope)}>${manageWords.add()}</button>` : null}</div>
|
|
369
374
|
${level ? html`<p class="note s-account-why" role="status">${reasonText(level, m.scope.name)}</p>` : null}
|
|
370
375
|
${m.rows.map((row) => html`<${Row} key=${`m:${m.scope.id}:${row.profile || ""}`} cli=${cli} row=${row} running=${running} openAgent=${openAgent} onSignIn=${onSignIn} onSignOut=${onSignOut} onRemove=${onRemove} />`)}
|
|
371
376
|
</div>`;
|
|
@@ -388,7 +393,8 @@ function Row({ cli, row, onMove, onRemove, onSignIn = openSignIn, onSignOut, ope
|
|
|
388
393
|
// #3212 PR 3: a signed-in account of a CLI whose own logout the dashboard runs; Switch account on the default sign-in.
|
|
389
394
|
// #3190 Part 3c: a computer's row is changed only where its Runtime allows it (`signIn`); never its default (the Windows user's own sign-in), never Move or Switch.
|
|
390
395
|
const machine = row.scope && row.scope.kind === "machine" ? row.scope : null;
|
|
391
|
-
|
|
396
|
+
// AGEND-124: the computer's OWN login of a CLI whose Runtime signs it out (Antigravity: `signOutOwn`) is signed out from here too; Claude Code's never is.
|
|
397
|
+
const manageable = !machine || (row.signIn && (!!row.profile || row.signOutOwn === true));
|
|
392
398
|
const canSignOut = manageable && typeof onSignOut === "function" && row.state === "usable" && SIGN_OUT_CLIS.has(row.backend);
|
|
393
399
|
const who = identityText(row.identity);
|
|
394
400
|
// AGEND-133 (#3521): a CLI that is not installed on the host gets Install on its default row (the server looks up the command; the page sends the CLI's id).
|
|
@@ -396,11 +402,10 @@ function Row({ cli, row, onMove, onRemove, onSignIn = openSignIn, onSignOut, ope
|
|
|
396
402
|
const installState = useStore(hostInstallStore);
|
|
397
403
|
const installRun = !machine && !row.profile ? runFor(installState, row.backend) : null;
|
|
398
404
|
const installingNow = !!installRun && installRun.phase === "running";
|
|
399
|
-
//
|
|
400
|
-
const
|
|
401
|
-
const
|
|
402
|
-
|
|
403
|
-
// Four layers in one box: the title bar (name, state, default tag · the buttons), the meta bar (who, used by), the usage block (5h and the week) and Keep sign-in alive as the box's foot.
|
|
405
|
+
// Every pool and every window the account reports, as the server gives them (accounts-view.ts `accountUsage`); the page lays them out, it does not pick.
|
|
406
|
+
const usageGroups = Array.isArray(row.usageGroups) ? row.usageGroups.filter((g) => g && Array.isArray(g.windows) && g.windows.length) : [];
|
|
407
|
+
const why = machine && machine.readOnlyReason && !MACHINE_LEVEL.has(machine.readOnlyReason) ? reasonText(machine.readOnlyReason, machine.name, cliLabel(row.backend), (capsOf(row.backend) && capsOf(row.backend).structuredMinVersion) || "") : "";
|
|
408
|
+
// Four layers in one box: the title bar (name, state, default tag · the buttons), the meta bar (who, used by), the usage block (every pool and window it reports) and Keep connection alive as the box's foot.
|
|
404
409
|
return html`<div class="s-row s-account-row" data-account=${row.profile || "default"}>
|
|
405
410
|
<div class="s-account-title-bar">
|
|
406
411
|
<div class="s-account-title-left"><strong>${rowName(row)}</strong>
|
|
@@ -420,12 +425,11 @@ function Row({ cli, row, onMove, onRemove, onSignIn = openSignIn, onSignOut, ope
|
|
|
420
425
|
<${UsedBy} row=${row} label=${usedText(row)} openAgent=${openAgent} />
|
|
421
426
|
${machine ? html`<small class="s-account-usage is-none" title=${tx("machineNoUsageHint")}>${tx("machineNoUsage")}</small>` : null}
|
|
422
427
|
</div>
|
|
423
|
-
${
|
|
424
|
-
${windows.map(([kind, w]) => html`<${UsageWindow} key=${kind} u=${w} kind=${kind} />`)}
|
|
425
|
-
${stale ? html`<small class="s-usage-stale">${tx("winStale")}</small>` : null}
|
|
426
|
-
</div>` : null}
|
|
428
|
+
${usageGroups.length ? html`<${UsageBlock} groups=${usageGroups} stale=${row.usageStale === true} staleInfo=${row.usageStaleInfo} tagOf=${usageTag} label=${tx("usageLabel")} staleText=${tx("winStale")} />` : null}
|
|
427
429
|
${why ? html`<p class="note s-account-why">${why}</p>` : null}
|
|
428
430
|
${canInstall && !installRun ? html`<p class="note s-account-why">${hostInstallText("notInstalled")}</p>` : null}
|
|
431
|
+
${machine && capsOf(row.backend) && capsOf(row.backend).runtimeDefaultLogin && !row.profile && row.signIn && !readOnly ? html`<p class="note s-account-why">${tx("machineOneLogin", machine.name, cliLabel(row.backend))}</p>` : null}
|
|
432
|
+
${!readOnly && !machine && !row.signIn && row.update && row.state !== "too_old" ? html`<p class="note s-account-why">${tx("updateHint", cliLabel(row.backend))} <code>${row.update}</code></p>` : null}
|
|
429
433
|
${!machine && !row.profile && !readOnly ? html`<${VersionLine} row=${row} label=${cliLabel(row.backend)} blocked=${running} />` : null}
|
|
430
434
|
${!machine && !row.profile ? html`<${HostInstallRun} backend=${row.backend} label=${cliLabel(row.backend)} />` : null}
|
|
431
435
|
${!readOnly && !row.signIn && row.hostCommand ? html`<details class="s-host-cli-help"><summary>${machine ? tx("machineCommand") : tx("hostCommand")}</summary><p class="note">${machine ? tx("machineCommandHint", machine.name) : tx("hostCommandHint")}</p>${machine ? html`<p class="s-host-cli-command"><code>${row.hostCommand}</code></p>` : null}</details>` : null}
|
|
@@ -16,6 +16,7 @@ import { detailsPath } from "/assets/app-route.js";
|
|
|
16
16
|
import { Icon } from "/assets/ui-icons.js";
|
|
17
17
|
import { toast } from "/assets/ui-toast.js";
|
|
18
18
|
import { Skeleton, ErrorState } from "/assets/ui-states.js";
|
|
19
|
+
import { StaleTabPrompt, isStaleModuleError } from "/assets/stale-tab.js";
|
|
19
20
|
import { PageHead } from "/assets/page-head.js";
|
|
20
21
|
import "./settings-strings.js";
|
|
21
22
|
import "./settings-shared-strings.js";
|
|
@@ -128,7 +129,14 @@ export function useAgentSettings({ name, lease, enabled, navKey }) {
|
|
|
128
129
|
}, [lease]);
|
|
129
130
|
|
|
130
131
|
const reload = async () => {
|
|
131
|
-
|
|
132
|
+
let m;
|
|
133
|
+
try { m = await loadSettingsModule(); } catch (err) {
|
|
134
|
+
// #3822: the Settings module did not load. Forget the attempt (a later one loads afresh) and say so in place —
|
|
135
|
+
// never a skeleton that waits for ever. A tab older than AgEnD (the module would not link) is told to reload.
|
|
136
|
+
settingsModule = null;
|
|
137
|
+
if (lease.current()) setData((prev) => (prev && !prev.error ? prev : { error: true, stale: isStaleModuleError(err) }));
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
132
140
|
const mine = ++gen.current;
|
|
133
141
|
const next = await m.loadAll(lease);
|
|
134
142
|
if (!next || mine !== gen.current || !lease.current()) return;
|
|
@@ -303,6 +311,7 @@ export function AgentSettingsPanels({ name, kind, cat, sess, onDirty }) {
|
|
|
303
311
|
const del = staged.get(kind === "classic" ? "" : `agent:${name}`);
|
|
304
312
|
const deleting = !!del && del.request && del.request.method === "DELETE";
|
|
305
313
|
if (!data) return html`<${Skeleton} lines=${6} label=${pt("loading")} />`;
|
|
314
|
+
if (data.error && data.stale) return html`<${StaleTabPrompt} />`;
|
|
306
315
|
if (data.error || !ctx) return html`<${ErrorState} message=${pt("loadFailed")} onRetry=${sess.reload} />`;
|
|
307
316
|
const insts = (ctx.fleet && ctx.fleet.instances) || {};
|
|
308
317
|
const own = (o, k) => !!o && Object.prototype.hasOwnProperty.call(o, k);
|
|
@@ -16,6 +16,10 @@ let installed = false, reading = null, again = false;
|
|
|
16
16
|
// that failed (the network, a 5xx, an answer that is not a list) leaves `loaded` behind, so the next status frame (the
|
|
17
17
|
// same revision included) or the bounded retry reads again; never a revision taken as read before a read succeeded.
|
|
18
18
|
let observed = null, loaded = null, retries = 0, retryTimer = null;
|
|
19
|
+
// M-2505 (#1580's rule): a page that leaves (pagehide) keeps no timer behind it — a retry waiting then (or one a read
|
|
20
|
+
// still out would start) is held, not run, and one restored from the back-forward cache (pageshow, persisted) reads at
|
|
21
|
+
// once. Before this, the retry outlived the page: a test's fixture had removed fetch when it fired (alpha CI 42210637320).
|
|
22
|
+
let away = false, heldRetry = false, listening = false;
|
|
19
23
|
const RETRY_MS = 5000, RETRY_MAX = 5;
|
|
20
24
|
|
|
21
25
|
/** Read the list again (one read at a time; a change meanwhile reads once more). Resolves true when it was read. */
|
|
@@ -34,7 +38,10 @@ export function refreshProposals() {
|
|
|
34
38
|
.catch(() => {
|
|
35
39
|
// Not read: try again a few times on its own (a page whose stream sends no more status frames), and at any status
|
|
36
40
|
// frame meanwhile (its revision is still ahead of `loaded`).
|
|
37
|
-
if (retries < RETRY_MAX && !retryTimer) {
|
|
41
|
+
if (retries < RETRY_MAX && !retryTimer) {
|
|
42
|
+
if (away) heldRetry = true;
|
|
43
|
+
else { retries++; retryTimer = setTimeout(() => { retryTimer = null; void refreshProposals(); }, RETRY_MS); }
|
|
44
|
+
}
|
|
38
45
|
return false;
|
|
39
46
|
})
|
|
40
47
|
.finally(() => {
|
|
@@ -55,6 +62,19 @@ export function refreshProposals() {
|
|
|
55
62
|
export function installProposals() {
|
|
56
63
|
if (installed) return;
|
|
57
64
|
installed = true;
|
|
65
|
+
const win = typeof window !== "undefined" ? window : null;
|
|
66
|
+
if (!listening && win && typeof win.addEventListener === "function") { // once per page (reset re-installs)
|
|
67
|
+
listening = true;
|
|
68
|
+
win.addEventListener("pagehide", () => {
|
|
69
|
+
away = true;
|
|
70
|
+
if (retryTimer) { clearTimeout(retryTimer); retryTimer = null; heldRetry = true; }
|
|
71
|
+
});
|
|
72
|
+
win.addEventListener("pageshow", (e) => {
|
|
73
|
+
if (!e || !e.persisted || !away) return;
|
|
74
|
+
away = false;
|
|
75
|
+
if (heldRetry) { heldRetry = false; void refreshProposals(); }
|
|
76
|
+
});
|
|
77
|
+
}
|
|
58
78
|
const on = appStore.get().streamOn;
|
|
59
79
|
if (typeof on === "function") {
|
|
60
80
|
on("agent_proposals", () => { void refreshProposals(); });
|
|
@@ -85,6 +105,6 @@ export async function decideProposal(id, decision) {
|
|
|
85
105
|
|
|
86
106
|
/** For tests: as on a fresh page. */
|
|
87
107
|
export function resetProposals() {
|
|
88
|
-
installed = false; reading = null; again = false; observed = null; loaded = null; retries = 0;
|
|
108
|
+
installed = false; reading = null; again = false; observed = null; loaded = null; retries = 0; away = false; heldRetry = false;
|
|
89
109
|
if (retryTimer) { clearTimeout(retryTimer); retryTimer = null; }
|
|
90
110
|
}
|
|
@@ -7,7 +7,7 @@ import {sectionPath} from "/assets/app-route.js";
|
|
|
7
7
|
import {Dialog} from "/assets/ui-dialog.js";
|
|
8
8
|
import {CliPicker,CliProductMark,cliLabel} from "./cli-picker.js";
|
|
9
9
|
import {RuntimePicker,tr} from "./agent-runtime.js";
|
|
10
|
-
import {ClaudeAccountSelect} from "./credential-profile-select.js";
|
|
10
|
+
import {ClaudeAccountSelect, accountCli} from "./credential-profile-select.js";
|
|
11
11
|
import {useRuntimeCatalog,runtimeCliChoices} from "./runtime-catalog.js";
|
|
12
12
|
import {useWindowsCliCatalog} from "./windows-cli-catalog.js";
|
|
13
13
|
import {useBackendRows} from "./settings-catalog.js";
|
|
@@ -51,7 +51,7 @@ export function AgentRuntimeChangeDialog({name,inst,onClose,onChanged,idPrefix="
|
|
|
51
51
|
const submit=async()=>{
|
|
52
52
|
if(claim.current||uncertain||!source||!f.fresh||!targetReady||(!allowedRead&&f.access==="read-only"))return;
|
|
53
53
|
claim.current=true;setBusy(true);setError("");
|
|
54
|
-
const body={requestId:crypto.randomUUID(),expectedRevision:source.revision,runtime:f.runtime,...(f.machineId?{machineId:f.machineId}:{}),backend:f.backend,model:f.model.trim(),directory:f.directory.trim(),sandbox:f.access,adapter:windows?f.adapter:"exec",startNewConversation:true,...(windows&&f.machineId&&f.backend
|
|
54
|
+
const body={requestId:crypto.randomUUID(),expectedRevision:source.revision,runtime:f.runtime,...(f.machineId?{machineId:f.machineId}:{}),backend:f.backend,model:f.model.trim(),directory:f.directory.trim(),sandbox:f.access,adapter:windows?f.adapter:"exec",startNewConversation:true,...(windows&&f.machineId&&accountCli(f.backend)&&f.credentialProfile?{credentialProfile:f.credentialProfile}:{})};
|
|
55
55
|
try{const response=await lease.fetch(`/ui/instances/${encodeURIComponent(name)}/runtime`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(body)}),value=await response.json();if(!lease.current())return;
|
|
56
56
|
if(!response.ok||value?.ok!==true)throw Error(value.error||text("failed"));onChanged?.();onClose();
|
|
57
57
|
}catch(e){if(lease.current()){setError(e.message);setUncertain(true);}}
|
|
@@ -60,7 +60,7 @@ export function AgentRuntimeChangeDialog({name,inst,onClose,onChanged,idPrefix="
|
|
|
60
60
|
const close=()=>{if(!claim.current)onClose();};
|
|
61
61
|
return html`<${Dialog} title=${text("title")} cls="agent-runtime-change-dialog" busy=${busy} onClose=${close} wide=${true} actions=${html`<button type="button" class="btn" disabled=${busy} onClick=${close}>${text("cancel")}</button>${step===2?html`<button type="button" class="btn" disabled=${busy||uncertain} onClick=${()=>setStep(1)}>${text("back")}</button>`:null}<button type="button" class="btn btn-primary" disabled=${busy||uncertain||!source||!targetReady||(step===2&&(!f.fresh||!allowedRead&&f.access==="read-only"))} onClick=${step===1?()=>setStep(2):submit}>${text(step===1?"next":"apply")}</button>`}>
|
|
62
62
|
<div class="form agent-runtime-change" aria-busy=${busy}><p>${text("lead")}</p>${!source&&!error?html`<${Skeleton} variant="rows" lines=${3} label=${text("loading")} />`:null}
|
|
63
|
-
${source&&step===1?html`<${RuntimePicker} value=${f.runtime} onChange=${runtime=>choose(runtime)} windowsEnabled=${windowsCli===true} machineId=${f.machineId} machines=${machines} onMachineChange=${id=>choose("windows",id)} onRefresh=${machinesState.refresh} loaded=${!!machinesState.data && !machinesState.error}/><div class="field"><label>${tr("backend")}</label><${CliPicker} value=${f.backend} choices=${choices} label=${tr("backend")} onChange=${backend=>setForm(old=>({...old,backend,model:"",credentialProfile:backend===
|
|
63
|
+
${source&&step===1?html`<${RuntimePicker} value=${f.runtime} onChange=${runtime=>choose(runtime)} windowsEnabled=${windowsCli===true} machineId=${f.machineId} machines=${machines} onMachineChange=${id=>choose("windows",id)} onRefresh=${machinesState.refresh} loaded=${!!machinesState.data && !machinesState.error}/><div class="field"><label>${tr("backend")}</label><${CliPicker} value=${f.backend} choices=${choices} label=${tr("backend")} onChange=${backend=>setForm(old=>({...old,backend,model:"",credentialProfile:backend===old.backend&&accountCli(backend)?old.credentialProfile:"",fresh:false}))}/></div>${removedBackendReplacement(f.backend)?html`<p class="note" role="status">${text("removed",f.backend,removedBackendReplacement(f.backend))}</p>`:null}${!choices.length?html`<p class="note">${text("noCli")}</p>`:null}`:null}
|
|
64
64
|
${source&&step===2?html`<h3>${text("configure")}</h3><p><strong>${machine?.name||(windows?tr("windows"):tr("wsl"))}</strong> · ${cliLabel(f.backend)}</p><label class="field"><span>${tr("directory")}</span><input value=${f.directory} disabled=${busy||uncertain} onInput=${event=>set("directory",event.target.value)}/></label><p class="note">${text("directoryHint")}</p><div class="field"><label for=${`${idPrefix}runtime-change-model`}>${t("settings.model")}</label><${ModelSelect} id=${`${idPrefix}runtime-change-model`} disabled=${busy||uncertain} value=${f.model} onChange=${value=>set("model",value)} backend=${f.backend} instance=${!windows&&source.runtime==="wsl"&&source.backend===f.backend?name:undefined} runtime=${f.runtime} machineId=${f.machineId} profile=${f.credentialProfile} inherit=${t("settings.modelCliDefault")}/></div>
|
|
65
65
|
${windows?html`<label class="field"><span>${tr("access")}</span><select value=${f.access} disabled=${busy||uncertain} onChange=${event=>set("access",event.target.value)}><option value="read-only" disabled=${!allowedRead}>${tr("read")}</option><option value="workspace-write">${tr("write")}</option></select></label>${!allowedRead?html`<p class="note" role="status">${tr("noReadOnly")}</p>`:null}<label class="field"><span>${tr("adapter")}</span><select value=${f.adapter} disabled=${busy||uncertain} onChange=${event=>set("adapter",event.target.value)}><option value="exec">${tr("adapterExec")}</option><option value="pane" disabled=${!["codex","claude-code"].includes(f.backend)}>${tr("adapterPane")}</option></select></label>${f.machineId?html`<${ClaudeAccountSelect} id=${`${idPrefix}runtime-change-claude-account`} machine=${machine} backend=${f.backend} value=${f.credentialProfile} onChange=${value=>set("credentialProfile",value)} disabled=${busy||uncertain||machine?.status!=="online"} changeNote=${true}/>`:null}`:null}
|
|
66
66
|
<p class="note">${text("freshHint")}</p><p class="note">${text("stopped")}</p><label class="check"><input type="checkbox" checked=${f.fresh} disabled=${busy||uncertain} onChange=${event=>set("fresh",event.target.checked)}/><span>${text("fresh")}</span></label>`:null}
|
|
@@ -252,7 +252,7 @@ export function BrowserSignInDialog({ backend, profile, backends, onClose }) {
|
|
|
252
252
|
let cards, last = "";
|
|
253
253
|
// Ridge #3321 S01: "Sign in again" asks in the dashboard's own confirmation (its title names the CLI), not the browser's.
|
|
254
254
|
const ask = (message, cli) => confirmDialog({ title: t("signin.reloginTitle", cli), message, confirmLabel: t("signin.reloginGo") });
|
|
255
|
-
cards = mountStructuredSignIns(root.current, { endpoint, lang, ask, dashboard: true, ...(single ? { dialog: true, focus: backend } : {}), started: id => { run.current = id; },
|
|
255
|
+
cards = mountStructuredSignIns(root.current, { endpoint, lang, ask, dashboard: true, codeHint: b => !!capsOf(b)?.codeHint, ...(single ? { dialog: true, focus: backend } : {}), started: id => { run.current = id; },
|
|
256
256
|
// The dialog was closed while its start was still in flight and the server made the run after all: nobody sees it, so it is ended here — by its id, so no other run is touched.
|
|
257
257
|
abandoned: id => { if (profile || single) void post(endpoint, { operation: "cancel", id }).then(() => refreshSignIn()); }, changed: next => {
|
|
258
258
|
if (!profile) {
|
|
@@ -283,13 +283,13 @@ export function BrowserSignInDialog({ backend, profile, backends, onClose }) {
|
|
|
283
283
|
showDialog(SignInDialog, { backend: chosen, ...(profile && chosen === backend ? { profile } : {}) });
|
|
284
284
|
};
|
|
285
285
|
const actions = html`<div class="signin-browser-actions">
|
|
286
|
-
${backends ? backends.filter(b => b
|
|
286
|
+
${backends ? backends.filter(b => capsOf(b)?.chatSignIn).map(b => html`<button type="button" class="btn" onClick=${() => fallback(b)}>${b} · ${tn("consoleFallback")}</button>`) : null}
|
|
287
287
|
<button type="button" class="btn" onClick=${close}>${tn("close")}</button></div>`;
|
|
288
288
|
const account = backend ? `${cliLabel(backend)} · ${profile || tn("defaultAccount")}` : "";
|
|
289
289
|
return html`<${Dialog} title=${backends ? tn("listTitle") : tn("title", account)} onClose=${close} actions=${actions}>
|
|
290
290
|
<div class="signin-browser" ref=${root}></div>
|
|
291
|
-
${single ? html`<p class="note"><button type="button" class="btn btn-sm btn-ghost" onClick=${() => fallback(backend)}>${tn("consoleFallback")}</button></p>` : null}
|
|
292
|
-
${single ? html`<p class="note" data-signin-console-note>${tn("consoleFallbackNote")}</p>` : null}
|
|
291
|
+
${single && capsOf(backend)?.chatSignIn ? html`<p class="note"><button type="button" class="btn btn-sm btn-ghost" onClick=${() => fallback(backend)}>${tn("consoleFallback")}</button></p>` : null}
|
|
292
|
+
${single && capsOf(backend)?.chatSignIn ? html`<p class="note" data-signin-console-note>${tn("consoleFallbackNote")}</p>` : null}
|
|
293
293
|
</${Dialog}>`;
|
|
294
294
|
}
|
|
295
295
|
|
package/dist/ui/chat-activity.js
CHANGED
|
@@ -228,8 +228,8 @@ export function composeActivity(name, rows, now = Date.now(), opts = {}) {
|
|
|
228
228
|
const s = memory.get(name);
|
|
229
229
|
if (!s || s.info.level === "off") return rows;
|
|
230
230
|
const busy = opts.busy === true;
|
|
231
|
-
// a backend whose steps are not shown in the chat (the server said `supported: false`:
|
|
232
|
-
//
|
|
231
|
+
// a backend whose steps are not shown in the chat (the server said `supported: false`: muse, opencode, kiro — a backend with
|
|
232
|
+
// no transcript parser), or a transcript with no step yet, still has the "Working…" line while the agent is working.
|
|
233
233
|
// It comes from the page's busy state alone — nothing is read from a transcript or the pane. Not busy, or the first answer not
|
|
234
234
|
// in yet (`supported` null): nothing.
|
|
235
235
|
if (s.info.supported === false || (s.info.supported !== null && !s.dead && !s.steps.length)) return busy ? statusRows(rows, opts.since, s.info.supported === false, s.phase) : rows;
|
package/dist/ui/cli-caps.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// GENERATED by `npx tsx scripts/gen-cli-caps.mts` from src/cli-registry.ts. Do not edit it: tests/cli-registry-ui-caps.test.ts fails while it differs from the registry.
|
|
2
2
|
// What the dashboard's scripts may ask about a CLI (see src/cli-caps-module.ts). Booleans and words only; nothing here runs anything.
|
|
3
3
|
export const CLI_CAPS = Object.freeze({
|
|
4
|
-
"claude-code": Object.freeze({ signOut: true, namedAccounts: true, carry: "carries", structuredSignIn: true, structuredNamedSignIn: true, firstRunSignIn: "browser", runtimeInstall: true, runtimeUpdate: true, runtimeUpdateLatest: false, runtimeName: "Claude Code" }),
|
|
5
|
-
"codex": Object.freeze({ signOut: true, namedAccounts: true, carry: "keeps", structuredSignIn: true, structuredNamedSignIn: false, firstRunSignIn: "browser", runtimeInstall: true, runtimeUpdate: true, runtimeUpdateLatest: false, runtimeName: "Codex" }),
|
|
6
|
-
"kiro-cli": Object.freeze({ signOut: true, namedAccounts: true, carry: "handover", structuredSignIn: true, structuredNamedSignIn: false, firstRunSignIn: "browser", runtimeInstall: false, runtimeUpdate: false, runtimeUpdateLatest: false, runtimeName: null }),
|
|
7
|
-
"antigravity": Object.freeze({ signOut:
|
|
8
|
-
"grok": Object.freeze({ signOut: false, namedAccounts: false, carry: null, structuredSignIn: false, structuredNamedSignIn: false, firstRunSignIn: null, runtimeInstall: false, runtimeUpdate: false, runtimeUpdateLatest: false, runtimeName: null }),
|
|
9
|
-
"muse": Object.freeze({ signOut: false, namedAccounts: false, carry: null, structuredSignIn: false, structuredNamedSignIn: false, firstRunSignIn: null, runtimeInstall: false, runtimeUpdate: false, runtimeUpdateLatest: false, runtimeName: null }),
|
|
10
|
-
"opencode": Object.freeze({ signOut: false, namedAccounts: false, carry: null, structuredSignIn: false, structuredNamedSignIn: false, firstRunSignIn: null, runtimeInstall: true, runtimeUpdate: true, runtimeUpdateLatest: false, runtimeName: "OpenCode" }),
|
|
4
|
+
"claude-code": Object.freeze({ signOut: true, signOutFiles: false, namedAccounts: true, accountIsFolder: false, carry: "carries", structuredSignIn: true, structuredNamedSignIn: true, firstRunSignIn: "browser", runtimeInstall: true, runtimeUpdate: true, runtimeUpdateLatest: false, runtimeName: "Claude Code", runtimeDefaultLogin: false, runtimeNamedAccounts: true, codeHint: false, structuredMinVersion: null, chatSignIn: true }),
|
|
5
|
+
"codex": Object.freeze({ signOut: true, signOutFiles: false, namedAccounts: true, accountIsFolder: false, carry: "keeps", structuredSignIn: true, structuredNamedSignIn: false, firstRunSignIn: "browser", runtimeInstall: true, runtimeUpdate: true, runtimeUpdateLatest: false, runtimeName: "Codex", runtimeDefaultLogin: false, runtimeNamedAccounts: false, codeHint: false, structuredMinVersion: null, chatSignIn: true }),
|
|
6
|
+
"kiro-cli": Object.freeze({ signOut: true, signOutFiles: false, namedAccounts: true, accountIsFolder: false, carry: "handover", structuredSignIn: true, structuredNamedSignIn: false, firstRunSignIn: "browser", runtimeInstall: false, runtimeUpdate: false, runtimeUpdateLatest: false, runtimeName: null, runtimeDefaultLogin: false, runtimeNamedAccounts: false, codeHint: false, structuredMinVersion: null, chatSignIn: true }),
|
|
7
|
+
"antigravity": Object.freeze({ signOut: true, signOutFiles: true, namedAccounts: true, accountIsFolder: true, carry: "handover", structuredSignIn: true, structuredNamedSignIn: true, firstRunSignIn: "console", runtimeInstall: true, runtimeUpdate: true, runtimeUpdateLatest: true, runtimeName: "Antigravity", runtimeDefaultLogin: true, runtimeNamedAccounts: true, codeHint: true, structuredMinVersion: "1.5.0", chatSignIn: false }),
|
|
8
|
+
"grok": Object.freeze({ signOut: false, signOutFiles: false, namedAccounts: false, accountIsFolder: false, carry: null, structuredSignIn: false, structuredNamedSignIn: false, firstRunSignIn: null, runtimeInstall: false, runtimeUpdate: false, runtimeUpdateLatest: false, runtimeName: null, runtimeDefaultLogin: false, runtimeNamedAccounts: false, codeHint: false, structuredMinVersion: null, chatSignIn: true }),
|
|
9
|
+
"muse": Object.freeze({ signOut: false, signOutFiles: false, namedAccounts: false, accountIsFolder: false, carry: null, structuredSignIn: false, structuredNamedSignIn: false, firstRunSignIn: null, runtimeInstall: false, runtimeUpdate: false, runtimeUpdateLatest: false, runtimeName: null, runtimeDefaultLogin: false, runtimeNamedAccounts: false, codeHint: false, structuredMinVersion: null, chatSignIn: false }),
|
|
10
|
+
"opencode": Object.freeze({ signOut: false, signOutFiles: false, namedAccounts: false, accountIsFolder: false, carry: null, structuredSignIn: false, structuredNamedSignIn: false, firstRunSignIn: null, runtimeInstall: true, runtimeUpdate: true, runtimeUpdateLatest: false, runtimeName: "OpenCode", runtimeDefaultLogin: false, runtimeNamedAccounts: false, codeHint: false, structuredMinVersion: null, chatSignIn: false }),
|
|
11
11
|
});
|
|
12
12
|
/** The CLIs the first-run page offers a sign-in for, in its order. */
|
|
13
13
|
export const FIRST_RUN_BACKENDS = Object.freeze(["kiro-cli", "claude-code", "codex", "antigravity"]);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { html } from "/assets/app-html.js";
|
|
2
2
|
import { register, t } from "/assets/app-i18n.js";
|
|
3
3
|
import { identityText } from "./account-identity.js";
|
|
4
|
+
import { capsOf } from "./cli-caps.js";
|
|
5
|
+
import { cliLabel } from "./cli-picker.js";
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
|
-
* Claude accounts on a paired Windows computer ("credential profiles"). AgEnD only ever shows and sends a profile NAME; the sign-in itself
|
|
8
|
+
* Claude (and, AGEND-124, Antigravity) accounts on a paired Windows computer ("credential profiles"). AgEnD only ever shows and sends a profile NAME; the sign-in itself
|
|
7
9
|
* stays on that computer, and a Runtime reports nothing but each name and whether it is signed in. No path, e-mail or token is read here.
|
|
8
10
|
*/
|
|
9
11
|
register("claudeAccount", {
|
|
@@ -11,28 +13,39 @@ register("claudeAccount", {
|
|
|
11
13
|
old:"Update the Runtime on that computer to choose a Claude account for this agent.",
|
|
12
14
|
empty:"No Claude accounts reported yet. On that computer run agend-runtime login claude-code NAME, then choose Detect again in that computer's CLI diagnostics (Settings → Runtime).",
|
|
13
15
|
hint:"The account is chosen by name; its connection stays on that computer. A name that does not exist or is not connected there is refused, never replaced by another account.",
|
|
14
|
-
changeNote:"Changing the account starts a new conversation."
|
|
16
|
+
changeNote:"Changing the account starts a new conversation.",
|
|
17
|
+
labelOther:"{0} account", noneOther:"This computer's own {0} connection", oldOther:"Update the Runtime on that computer to choose a {0} account for this agent.",
|
|
18
|
+
emptyOther:"No {0} accounts reported yet. Add one in Settings → Agent → Accounts, under that computer's name." },
|
|
15
19
|
"zh-TW": { label:"Claude 帳號", none:"這台電腦的預設連接", default:"預設", signedOut:"尚未連接", unchecked:"未確認", notReported:"未回報",
|
|
16
20
|
old:"請更新那台電腦上的 Runtime,才能為這個 Agent 選擇 Claude 帳號。",
|
|
17
21
|
empty:"尚未回報任何 Claude 帳號。請在那台電腦執行 agend-runtime login claude-code 名稱,再到設定 → Runtime,在該電腦的「CLI 診斷」按「重新偵測」。",
|
|
18
22
|
hint:"帳號以名稱選擇,連接資料只保留在那台電腦。不存在或尚未連接的名稱會被拒絕,不會改用其他帳號。",
|
|
19
|
-
changeNote:"更換帳號會開始新的對話。"
|
|
23
|
+
changeNote:"更換帳號會開始新的對話。",
|
|
24
|
+
labelOther:"{0} 帳號", noneOther:"這台電腦自己的 {0} 連接", oldOther:"請更新那台電腦上的 Runtime,才能為這個 Agent 選擇 {0} 帳號。",
|
|
25
|
+
emptyOther:"尚未回報任何 {0} 帳號。請到設定 → Agent → 帳號,在該電腦的名稱下新增。" },
|
|
20
26
|
});
|
|
21
27
|
export const accountText = (key, ...values) => t(`claudeAccount.${key}`, ...values);
|
|
22
28
|
|
|
23
|
-
/**
|
|
24
|
-
export
|
|
25
|
-
|
|
29
|
+
/** The CLIs whose accounts an agent on a computer can choose (the registry's `runtime.namedAccounts`, as cli-caps.js renders it), and what each is called here. */
|
|
30
|
+
export const accountCli = backend => !!(capsOf(backend) && capsOf(backend).runtimeNamedAccounts);
|
|
31
|
+
const productOf = backend => backend === "claude-code" ? "Claude" : cliLabel(backend);
|
|
32
|
+
/** What a computer reports: whether its Runtime can choose an account (`backend`: of this CLI, default Claude Code), each account's name and signed-in yes/no, and its default name. */
|
|
33
|
+
export function credentialProfileView(machine, backend = "claude-code") {
|
|
34
|
+
const caps = machine?.runtimeInfo?.capabilities;
|
|
35
|
+
// Claude Code's come with `credential-profiles`; any other CLI's also need the capability of its own (`accounts-<id>`): an older Runtime would run the agent on the Windows user's own login.
|
|
36
|
+
const capable = caps?.includes("credential-profiles") === true && (backend === "claude-code" || caps.includes(`accounts-${backend}`));
|
|
26
37
|
const report = machine?.inventory?.credentialProfiles;
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
const own = backend === "claude-code" ? report?.profiles : report?.byCli?.[backend];
|
|
39
|
+
const profiles = Array.isArray(own) ? own.filter(row => row && typeof row.name === "string") : [];
|
|
40
|
+
// The default sign-in's own account, for the "default sign-in" choice: the identity of the REQUESTED CLI on that computer, as its last detection saw it (AGEND-250, #3771 review P2-7: the computer's
|
|
41
|
+
// Claude identity must never label an Antigravity choice; a CLI that reports no identity shows none).
|
|
42
|
+
const ownCli = Array.isArray(machine?.inventory?.clis) ? machine.inventory.clis.find(cli => cli?.id === backend) : undefined;
|
|
43
|
+
const defaultName = backend === "claude-code" && typeof report?.default === "string" ? report.default : "";
|
|
44
|
+
return { capable, profiles, defaultName, machineIdentity: identityText(profiles.find(row => row.name === defaultName)?.identity ?? ownCli?.identity) };
|
|
32
45
|
}
|
|
33
46
|
export const credentialProfileState = loggedIn => loggedIn === true ? "signedIn" : loggedIn === false ? "signedOut" : "unchecked";
|
|
34
|
-
/** The choice exists
|
|
35
|
-
export const offersClaudeAccount = (machine, backend) => !!machine && backend
|
|
47
|
+
/** The choice exists for Claude Code and Antigravity (a CLI with named accounts on a computer) on a paired computer. */
|
|
48
|
+
export const offersClaudeAccount = (machine, backend) => !!machine && accountCli(backend);
|
|
36
49
|
|
|
37
50
|
/**
|
|
38
51
|
* `value` is the chosen name ("" = the computer's own sign-in). A signed-out account is listed but cannot be chosen; one that is
|
|
@@ -40,15 +53,15 @@ export const offersClaudeAccount = (machine, backend) => !!machine && backend ==
|
|
|
40
53
|
*/
|
|
41
54
|
export function ClaudeAccountSelect({ machine, backend, value, onChange, id, disabled = false, changeNote = false }) {
|
|
42
55
|
if (!offersClaudeAccount(machine, backend)) return null;
|
|
43
|
-
const view = credentialProfileView(machine), known = view.profiles.some(row => row.name === value);
|
|
44
|
-
const locked = disabled || !view.capable;
|
|
45
|
-
return html`<div class="claude-account-field"><label class="field"><span>${accountText("label")}</span>
|
|
56
|
+
const view = credentialProfileView(machine, backend), known = view.profiles.some(row => row.name === value);
|
|
57
|
+
const locked = disabled || !view.capable, claude = backend === "claude-code", product = productOf(backend);
|
|
58
|
+
return html`<div class="claude-account-field"><label class="field"><span>${claude ? accountText("label") : accountText("labelOther", product)}</span>
|
|
46
59
|
<select id=${id} value=${value || ""} disabled=${locked} onChange=${event => onChange(event.target.value)}>
|
|
47
|
-
<option value="">${accountText("none")}${view.machineIdentity ? ` · ${view.machineIdentity}` : ""}</option>
|
|
60
|
+
<option value="">${claude ? accountText("none") : accountText("noneOther", product)}${view.machineIdentity ? ` · ${view.machineIdentity}` : ""}</option>
|
|
48
61
|
${view.profiles.map(row => html`<option key=${row.name} value=${row.name} disabled=${row.loggedIn === false}>${row.name}${row.identity ? ` · ${identityText(row.identity)}` : ""}${row.loggedIn === false ? ` · ${accountText("signedOut")}` : row.loggedIn === null ? ` · ${accountText("unchecked")}` : ""}${row.name === view.defaultName ? ` · ${accountText("default")}` : ""}</option>`)}
|
|
49
62
|
${value && !known ? html`<option key=${value} value=${value}>${value} · ${accountText("notReported")}</option>` : null}
|
|
50
63
|
</select></label>
|
|
51
|
-
${!view.capable ? html`<p class="note claude-account-old" role="status">${accountText("old")}</p>`
|
|
52
|
-
: !view.profiles.length ? html`<p class="note claude-account-empty">${accountText("empty")}</p>` : html`<p class="note">${accountText("hint")}</p>`}
|
|
64
|
+
${!view.capable ? html`<p class="note claude-account-old" role="status">${claude ? accountText("old") : accountText("oldOther", product)}</p>`
|
|
65
|
+
: !view.profiles.length ? html`<p class="note claude-account-empty">${claude ? accountText("empty") : accountText("emptyOther", product)}</p>` : html`<p class="note">${accountText("hint")}</p>`}
|
|
53
66
|
${changeNote ? html`<p class="note claude-account-change">${accountText("changeNote")}</p>` : null}</div>`;
|
|
54
67
|
}
|
package/dist/ui/fleet-canvas.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { modelSwitchText, modelName, observationLabel } from "/assets/model-observation.js";
|
|
1
2
|
// #1918: Fleet → Org chart as a canvas — the same structure as the list (fleet-org.js: General, the teams fleet.yaml
|
|
2
3
|
// defines, their members, the instances in no team), drawn as cards in team boxes you can pan, zoom and pinch. No
|
|
3
4
|
// library: SVG with attributes and classes (never a style attribute, #1300); the view's transform is an SVG attribute
|
|
@@ -117,17 +118,19 @@ function Card({ c, lead, cls, onOpen }) {
|
|
|
117
118
|
const n = c.node, it = n.i;
|
|
118
119
|
const { primary, sub, full } = nodeText(n);
|
|
119
120
|
const id = it ? identityOf(it) : null;
|
|
120
|
-
const
|
|
121
|
+
const switched = it?.model_observation?.active;
|
|
122
|
+
const cy = c.h / 2 - (switched ? 8 : 0);
|
|
121
123
|
return html`<g class=${`oc-node st-${n.state}${lead ? " lead" : ""}${cls ? ` ${cls}` : ""} ${identityClasses(id)}`} ref=${(el) => paintIdentity(el, id)}
|
|
122
124
|
transform=${`translate(${c.x} ${c.y})`} data-name=${n.name} data-key=${c.key} tabindex="0" role=${it ? "link" : "img"}
|
|
123
125
|
aria-label=${it ? `${full}. ${tc("openChat")}` : full} onClick=${it ? () => onOpen(n.name) : undefined}>
|
|
124
|
-
<title>${full}</title>
|
|
126
|
+
<title>${full}${switched ? ` · ${modelSwitchText(switched)}` : ""}</title>
|
|
125
127
|
<rect class="oc-card" width=${c.w} height=${c.h} rx="10" />
|
|
126
128
|
<rect class="oc-idbar" x="0" y="8" width="4" height=${c.h - 16} rx="2" />
|
|
127
129
|
<${Face} it=${it} name=${n.name} cx=${26} cy=${cy} r=${16} />
|
|
128
130
|
<circle class=${`oc-dot st-${n.state}`} cx=${38} cy=${cy + 12} r=${5} />
|
|
129
131
|
<text class="oc-name" x=${50} y=${cy - 4}>${clip(primary, lead ? 20 : 15)}</text>
|
|
130
132
|
<text class="oc-sub" x=${50} y=${cy + 13}><tspan class=${`oc-st st-${n.state}`}>${clip(sub, lead ? 27 : 20)}</tspan></text>
|
|
133
|
+
${switched ? html`<text class="oc-sub" x="8" y=${c.h - 6}><title>${modelSwitchText(switched)}</title>${clip(modelSwitchText(switched), lead ? 34 : 26)}</text>` : null}
|
|
131
134
|
</g>`;
|
|
132
135
|
}
|
|
133
136
|
|