@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
|
@@ -56,26 +56,26 @@ const DEFS = [
|
|
|
56
56
|
["create_schedule", schemas.CreateScheduleArgs,
|
|
57
57
|
"Create a recurring cron schedule or a one-shot ISO datetime schedule. When triggered, sends a message to the target instance."],
|
|
58
58
|
["list_schedules", schemas.ListSchedulesArgs,
|
|
59
|
-
"List
|
|
59
|
+
"List schedule titles/status/timing,20 per page; follow next_cursor with the same filters. Optionally filter by target. detail:true returns full records/messages without paging."],
|
|
60
60
|
["update_schedule", schemas.UpdateScheduleArgs,
|
|
61
61
|
"Update an existing schedule. Only include fields you want to change."],
|
|
62
62
|
["delete_schedule", schemas.DeleteScheduleArgs,
|
|
63
63
|
"Delete a schedule by ID."],
|
|
64
64
|
["task", schemas.TaskBoardArgs,
|
|
65
|
-
"Manage fleet task board. Actions: create (new task), list (
|
|
66
|
-
+ "Board cards — main tasks M-n (an outcome; the person confirms the ones they handed out) and their sub tasks S-n (your steps): mine (your work, including what was sent back and why: start here after a reset), get (the card as text, with its comments), projects (each with its id), create_project (name, description; changing or archiving a project is a person's), move (to a status; blocked/cancelled need a reason, finishing needs a result), create with project or parent, update with board fields (state, log, comment, check…) or project (a main task's project id, or null to take it out; you may move a main task you can edit; sub tasks follow), move_project (ids + project: several main tasks, each moved or refused on its own). Answers are text. Open a main task for multi-step work you are asked for; split a big one into sub tasks (create with parent, depends_on for order). Keep state current (done / next / watch out). One card in progress at a time: finish it or block it (with the question) before the next; with many, follow mine's order. Finish: a sub task → done, a main task → review (one nobody else confirms — your own — goes straight to done); sent back → read why (get), fix, resubmit. Opening a card for someone else makes you its dispatcher (or name one: dispatcher); a blocked card you handed out comes to you: ask the person, then move it back to claimed with the decision as the comment. A [Task board] notice is news on your cards: act on them with this tool."],
|
|
65
|
+
"Manage fleet task board. Actions: create (new task), list (paged compact rows by default, follow next_cursor with the same filters; detail:true for legacy full records; pass filter_status to include done/cancelled, verbose=true for full records; only legacy detail/verbose lists cap an unfiltered result at100; filters lift that cap), get (compact title/status/version by default; detail:true for goal/checklist/comments before work), claim (assign to self), done (mark complete, works from open or claimed — a card that waits for confirmation goes to review instead: the person confirms the cards they handed out, the dispatcher an agent's card, finishing it from review with done), update (change status/priority/assignee). Ids accept an 8-hex prefix or a card number (M-3). Write actions return {id, status, updated_at} (an update also the saved value of each field it named) and the board's notes (a reason it was sent back, a comment you had not seen) when there are any. A field an action does not take is refused by name, and nothing is changed. "
|
|
66
|
+
+ "Board cards — main tasks M-n (an outcome; the person confirms the ones they handed out) and their sub tasks S-n (your steps): mine (your work, including what was sent back and why: start here after a reset), get (detail:true for the full card as text, with its comments), projects (each with its id), create_project (name, description; changing or archiving a project is a person's), move (to a status; blocked/cancelled need a reason, finishing needs a result), create with project or parent, update with board fields (state, log, comment, check…) or project (a main task's project id, or null to take it out; you may move a main task you can edit; sub tasks follow), move_project (ids + project: several main tasks, each moved or refused on its own). Answers are text. Open a main task for multi-step work you are asked for; split a big one into sub tasks (create with parent, depends_on for order). Keep state current (done / next / watch out). One card in progress at a time: finish it or block it (with the question) before the next; with many, follow mine's order. Finish: a sub task → done, a main task → review (one nobody else confirms — your own — goes straight to done); sent back → read why (get), fix, resubmit. Opening a card for someone else makes you its dispatcher (or name one: dispatcher); a blocked card you handed out comes to you: ask the person, then move it back to claimed with the decision as the comment. A [Task board] notice is news on your cards: act on them with this tool."],
|
|
67
67
|
["post_decision", schemas.PostDecisionArgs,
|
|
68
68
|
"Record a decision. scope='team' is visible to every member of a team, wherever they work — use it for your team's workflow rules, review policies and conventions; it is the default when you are in a team (pass team to choose when you are in several). scope='project' is visible only to instances in this exact working directory (the default when you are in no team). scope='fleet' is visible to EVERY instance on the fleet — only for rules every team follows; on a fleet with several teams, ask whether the other teams need it before posting it there."],
|
|
69
69
|
["close_poll", schemas.ClosePollArgs,
|
|
70
70
|
"Close one of your open polls now, before its deadline (for example when everyone has answered). It returns how many people voted; the per-option results arrive later as one `[poll results]` message, as when it times out."],
|
|
71
71
|
["list_decisions", schemas.ListDecisionsArgs,
|
|
72
|
-
"List active decisions: every fleet-scoped one, your teams' (scope='team'), and this working directory's (scope='project'), in that order. Titles by default (id, title, scope, date, tags);
|
|
72
|
+
"List active decisions: every fleet-scoped one, your teams' (scope='team'), and this working directory's (scope='project'), in that order. Titles by default (id, title, scope, date, tags), paged20 at a time; follow next_cursor with the same filters. Use id plus detail:true for one full rule, detail:true (legacy full:true) for all full records. Archived ones only with include_archived."],
|
|
73
73
|
["update_decision", schemas.UpdateDecisionArgs,
|
|
74
74
|
"Update or archive an existing decision."],
|
|
75
75
|
["broadcast", schemas.BroadcastArgs,
|
|
76
|
-
"Send a message to multiple instances at once. Priority: team > targets > tags > all running."],
|
|
76
|
+
"Send a message to multiple instances at once. Priority: team > targets > tags > all running. Compact ack: sent count, queued, actual per-recipient delivery_ids and any failed targets. detail:true returns the legacy full ack."],
|
|
77
77
|
["send_to_instance", schemas.SendToInstanceArgs,
|
|
78
|
-
"Send a message to another instance. Use steer=true only for a mid-turn supplement to work you just sent. Returns {sent, queued, correlation_id} at once — acceptance, not delivery; a durable send
|
|
78
|
+
"Send a message to another instance. Use steer=true only for a mid-turn supplement to work you just sent. Returns {sent, queued, correlation_id} at once — acceptance, not delivery; a durable send returns delivery_id for delivery_status. Compact by default; detail:true includes operation_id and all legacy metadata. forwards explicitly grants this receiver read-only delivery_status on up to 16 delivered rows you can read; each hop needs forwards, and an ID in the message text grants nothing."],
|
|
79
79
|
["request_information", schemas.RequestInformationArgs,
|
|
80
80
|
"Ask another instance a question and expect a reply. Wrapper around send_to_instance with request_kind=query and requires_reply=true."],
|
|
81
81
|
["delegate_task", schemas.DelegateTaskArgs,
|
|
@@ -83,7 +83,7 @@ const DEFS = [
|
|
|
83
83
|
["report_result", schemas.ReportResultArgs,
|
|
84
84
|
"Report results back to an instance that delegated a task or asked a question. Wrapper around send_to_instance with request_kind=report."],
|
|
85
85
|
["delivery_status", schemas.DeliveryStatusArgs,
|
|
86
|
-
"Read the status of a previously accepted delivery by delivery_id, operation_id, correlation_id, or message_id (human verification uses verification_id / agend-human-id, not the platform message_id). You can read your source/target rows and explicitly forwarded references; knowing an ID grants nothing. Not found also covers hidden/expired rows.
|
|
86
|
+
"Read the status of a previously accepted delivery by delivery_id, operation_id, correlation_id, or message_id (human verification uses verification_id / agend-human-id, not the platform message_id). You can read your source/target rows and explicitly forwarded references; knowing an ID grants nothing. Not found also covers hidden/expired rows. Default: compact state/authority/proof/origin/hashes and secret-redacted excerpt. detail:true returns full original content and metadata (required for authorization and merge-gate evidence). content_includes checks an exact value on an authorised message_id without echoing it; presence alone is not consent. native acceptance is not consumption. Uncertain means it may already have arrived: confirm it, and resend only if it later shows failed."],
|
|
87
87
|
["create_team", schemas.CreateTeamArgs,
|
|
88
88
|
"Create a named group of instances for targeted broadcasting. Teams persist across restarts."],
|
|
89
89
|
["delete_team", schemas.DeleteTeamArgs,
|
|
@@ -117,11 +117,11 @@ const DEFS = [
|
|
|
117
117
|
["reconcile_kiro_instance", schemas.ReconcileKiroInstanceArgs,
|
|
118
118
|
"Request a fleet admin Confirm in General for one STOPPED TUI instance: keep its original carried session and archive the explicitly named newer session intact. No V2 files are deleted or moved. Only after the user chose these exact IDs. Optional rollback_receipt restores the prior held identity without starting anything; archives remain readable."],
|
|
119
119
|
["get_usage", schemas.GetUsageArgs,
|
|
120
|
-
"Get AI subscription usage for the CLI backends logged in on this machine (Claude/Codex/Muse/Grok/Kiro/Antigravity).
|
|
120
|
+
"Get AI subscription usage for the CLI backends logged in on this machine (Claude/Codex/Muse/Grok/Kiro/Antigravity). Compact account rows with plan, used percentages/reset times, reported binding windows, cache/stale hints and Codex resets/credits. detail:true returns full JSON including capacity and localization metadata. Use it to notice you are close to a limit and warn the user."],
|
|
121
121
|
["get_cache_report", schemas.GetCacheReportArgs,
|
|
122
122
|
"Read the prompt-cache expiry report (the web dashboard's Fleet → cache), per instance: the TTL as written and the 5m/1h write mix, the effective TTL and gap-miss rate, requests, gaps past the TTL, expired-then-rewritten requests and tokens, expiry cost, the keep-warm simulation and its recommendation (including switch_to_1h: set backend_options.claude-code.prompt_cache_ttl: \"1h\"), whether figures are estimates or priced, and coverage (no_data, credit_billed, unsupported, shared). Read-only and from the last scan — it never reads transcripts itself; `scanning` says whether the scan has caught up. General, coordinators and full-profile instances read every row plus a fleet summary; any other instance reads only its own row."],
|
|
123
123
|
["get_usage_report", schemas.GetUsageReportArgs,
|
|
124
|
-
"Read the usage report (the web dashboard's Fleet → Usage): per instance (or backend, model, credential profile, team), input / output / reasoning / cache read / cache write tokens (output excludes reasoning; reasoning is what a CLI reports as such: Codex, Grok, Muse, OpenCode, Antigravity), requests, delivered messages, and each row's amount. Every amount is the API-equivalent at list price — NOT money spent (subscriptions are not billed per token): say \"API-equivalent\", never \"spent\" or \"cost\". Marks to repeat in words: cost_reported (no list price for the model: the amount is what the CLI reported: Grok, or OpenCode's provider), estimated / includes_estimates (Kiro records no token counts: its tokens are estimated from text size — say \"estimated\", and give totals.amountEstimated apart from the measured rest), cache_write_not_reported (Codex and Muse record no cache writes), not_priced (its tokens are shown, not its amount), source_unknown (read before profiles were recorded); speed (
|
|
124
|
+
"Read the usage report (the web dashboard's Fleet → Usage): per instance (or backend, model, credential profile, team), input / output / reasoning / cache read / cache write tokens (output excludes reasoning; reasoning is what a CLI reports as such: Codex, Grok, Muse, OpenCode, Antigravity), requests, delivered messages, and each row's amount. Every amount is the API-equivalent at list price — NOT money spent (subscriptions are not billed per token): say \"API-equivalent\", never \"spent\" or \"cost\". Marks to repeat in words: cost_reported (no list price for the model: the amount is what the CLI reported: Grok, or OpenCode's provider), estimated / includes_estimates (Kiro records no token counts: its tokens are estimated from text size — say \"estimated\", and give totals.amountEstimated apart from the measured rest), cache_write_not_reported (Codex and Muse record no cache writes), not_priced (its tokens are shown, not its amount), source_unknown (read before profiles were recorded); detail:true includes speed (rows and totals: output tokens per second after the first token, timedRequests, coverage, and p10/p90 from 30 timed responses; null when no response was timed — Claude Code responses opening with a thinking block, Codex from its item clocks); notMeasured lists instances whose backend AgEnD cannot measure, with the reason — never a $0 row. Days are in the fleet's timezone at hour granularity. Default: one shared basis, no repeated per-row basis or speed stats; detail:true returns the full legacy tool JSON. Read-only and from the last scan. General, coordinators and full-profile instances read every row; any other instance reads only its own."],
|
|
125
125
|
["list_models", schemas.ListModelsArgs,
|
|
126
126
|
"List the models a backend actually offers, before naming one in create_instance or update_instance_config. Pass instance_name to read the catalog through an existing instance's own config — an instance on a custom provider can offer a different set than the account. `scope` tells you which you got. An empty list is not a failure: model names are passed through to the CLI."],
|
|
127
127
|
["get_instance_logs", schemas.GetInstanceLogsArgs,
|
|
@@ -129,7 +129,7 @@ const DEFS = [
|
|
|
129
129
|
["get_fleet_config", schemas.GetFleetConfigArgs,
|
|
130
130
|
"Read fleet configuration. scope='defaults' for fleet defaults, scope='instance' + name for a specific instance."],
|
|
131
131
|
["update_instance_config", schemas.UpdateInstanceConfigArgs,
|
|
132
|
-
"Update a specific instance's config (backend, model, auto_pause_after, display_name, description, backend_options). Saves to fleet.yaml. General alone may also set another portable/local agent’s tool_set directly, without confirmation; self-targets are refused. skipPermissions is refused for everyone. backend_options merges per backend; null or \"\" drops a key; a change restarts the instance."],
|
|
132
|
+
"Update a specific instance's config (backend, model, auto_pause_after, display_name, description, backend_options). Saves to fleet.yaml. General alone may also set another portable/local agent’s tool_set directly, without confirmation; self-targets are refused. skipPermissions is refused for everyone. backend_options merges per backend; null or \"\" drops a key; a change restarts the instance. A ClassicBot room takes only backend_options.<backend>.credential_profile (classicBot.yaml); the answer names the profile it relaunched on."],
|
|
133
133
|
["update_fleet_defaults", schemas.UpdateFleetDefaultsArgs,
|
|
134
134
|
"Update fleet-wide defaults (backend, model, auto_pause_after, max_cross_instance_message_bytes). Saves to fleet.yaml."],
|
|
135
135
|
["create_instance", schemas.CreateInstanceToolArgs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tools.js","sourceRoot":"","sources":["../../src/channel/mcp-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;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AC,kBAAkB;QAC5C,qFAAqF,CAAC;IACxF,CAAC,qBAAqB,EAAE,OAAO,CAAC,sBAAsB;QACpD,6EAA6E,CAAC;IAChF,CAAC,kBAAkB,EAAE,OAAO,CAAC,mBAAmB;QAC9C,mEAAmE,CAAC;CACvE,CAAC;AAEF,kFAAkF;AAClF,MAAM,CAAC,MAAM,qBAAqB,GAAiC,IAAI,GAAG,CACxE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAC7C,CAAC;AAEF,6EAA6E;AAC7E,oEAAoE;AACpE,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,IAAI;KACrC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,UAAU,IAAI,EAAE,EAAE,SAAS,CAAC,CAAC;KACzF,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAE1B,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAc,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IACzE,IAAI;IACJ,WAAW;IACX,WAAW,EAAE,iBAAiB,CAAC,MAAM,CAAC;CACvC,CAAC,CAAC,CAAC;AAEJ;;;;;GAKG"}
|
|
@@ -58,3 +58,4 @@ export declare function identityOf(status: ClaudeAuthStatus): AccountIdentity |
|
|
|
58
58
|
* has an e-mail and a plan; an API key (`authMethod: "api_key"`) is marked as such and has neither.
|
|
59
59
|
*/
|
|
60
60
|
export declare function parseClaudeAuthStatus(text: unknown): ClaudeAuthStatus;
|
|
61
|
+
export declare function parseAntigravityToken(text: unknown): AccountIdentity | undefined;
|
|
@@ -162,4 +162,29 @@ export function parseClaudeAuthStatus(text) {
|
|
|
162
162
|
const maskedEmail = cleanEmail(row.email), plan = planOf(row.subscriptionType);
|
|
163
163
|
return { loggedIn: true, ...(maskedEmail ? { maskedEmail } : {}), ...(plan ? { plan } : {}) };
|
|
164
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* AGEND-113: which Google account an Antigravity (`agy`) sign-in is, from the text of its own token file (`antigravity-oauth-token`), as the WHOLE e-mail address (`maskedEmail` is the field's historical name; the way Claude's is carried), never a masked one on the Accounts page.
|
|
167
|
+
*
|
|
168
|
+
* Only the one field `id_token_email` is looked at: nothing else of the file (the access, refresh or ID token, their expiry, the auth method) is read into the answer, returned,
|
|
169
|
+
* stored or logged, and no plan is claimed (Antigravity's plans are not the closed list above; the usage panel names them). The address is checked inside this function, before it is
|
|
170
|
+
* returned, by the same private `cleanEmail` as Claude's (whole address, no `*`); a missing, empty, non-ASCII, multi-`@` or over-long address, text that is not a JSON object, or text over 64 KiB gives no identity.
|
|
171
|
+
* It proves nothing about whether the login still works: the caller shows it only for a sign-in that is already known to be signed in.
|
|
172
|
+
*/
|
|
173
|
+
/** The one key of agy's token file this module reads (not a key of `claude auth status`: the test that pins the status parser's keys must not count it). */
|
|
174
|
+
const AGY_EMAIL_KEY = "id_token_email";
|
|
175
|
+
export function parseAntigravityToken(text) {
|
|
176
|
+
if (typeof text !== "string" || text.length > 64 * 1024)
|
|
177
|
+
return undefined;
|
|
178
|
+
let file;
|
|
179
|
+
try {
|
|
180
|
+
file = JSON.parse(text);
|
|
181
|
+
}
|
|
182
|
+
catch {
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
185
|
+
if (!file || typeof file !== "object" || Array.isArray(file))
|
|
186
|
+
return undefined;
|
|
187
|
+
const maskedEmail = cleanEmail(file[AGY_EMAIL_KEY]);
|
|
188
|
+
return maskedEmail ? { maskedEmail } : undefined;
|
|
189
|
+
}
|
|
165
190
|
//# sourceMappingURL=claude-auth-status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-auth-status.js","sourceRoot":"","sources":["../src/claude-auth-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,mHAAmH;AACnH,MAAM,CAAC,MAAM,2BAA2B,GAAG,kBAAkB,CAAC;AAC9D,6JAA6J;AAC7J,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,CAAU,CAAC,CAAC;AAiBrG;;;GAGG;AACH,MAAM,UAAU,GAAG,+EAA+E,CAAC;AACnG,gKAAgK;AAChK,MAAM,YAAY,GAAG,4EAA4E,CAAC;AAClG,MAAM,UAAU,GAAG,GAAG,CAAC;AACvB,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,YAAY,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AAEhE,6KAA6K;AAC7K,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,UAAU,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AACtJ,CAAC;AACD,MAAM,UAAU,SAAS,CAAC,KAAc,IAAmB,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,KAA2B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAE9I;;;;GAIG;AACH,SAAS,UAAU,CAAC,KAAc;IAChC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,I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AC,KAAK,CAAC,IAAI,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC;QAAC,OAAO,SAAS,CAAC;IAAC,CAAC;IAC5D,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC;IAC/E,MAAM,WAAW,GAAG,UAAU,CAAE,IAAmC,CAAC,aAAa,CAAC,CAAC,CAAC;IACpF,OAAO,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACnD,CAAC"}
|
package/dist/cli-capability.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export declare const isYes: <T extends object>(cap: Cap<T>) => cap is Yes<T>;
|
|
|
59
59
|
/** How the conversation of an agent moved between two accounts of this CLI carries over (the Accounts page's note on a Move). */
|
|
60
60
|
export type CarryKind = "carries" | "keeps" | "handover";
|
|
61
61
|
export type ChatLoginMode = "device-code" | "paste-code" | "menu" | "declined" | "install-only";
|
|
62
|
-
export type CredentialHomeKind = "relocate-home" | "redirect-files";
|
|
62
|
+
export type CredentialHomeKind = "relocate-home" | "redirect-files" | "launch-argument";
|
|
63
63
|
export type NativePermission = "os-sandbox" | "read-tools" | "native-policy";
|
|
64
64
|
export type NativePromptTransport = "stdin-text" | "stdin-json" | "file";
|
|
65
65
|
/** What the Windows Runtime knows of a CLI it can run (the former `NativeProviderDescriptor`, windows-cli-providers.ts). */
|
|
@@ -115,10 +115,23 @@ export interface HostCapabilities {
|
|
|
115
115
|
readonly dashboardSignIn: Cap<{
|
|
116
116
|
named: boolean;
|
|
117
117
|
}>;
|
|
118
|
-
/**
|
|
118
|
+
/**
|
|
119
|
+
* The structured sign-in (Sign in → open the page → paste the code): the exact command it launches, and its place in the lists.
|
|
120
|
+
* `ends`: how the driver knows it is over: `success-line` (the CLI prints one, or the process ends and the auth check passes) or `exit-code` (the CLI prints no success line:
|
|
121
|
+
* signed in only when the command ended with exit 0 AND the auth check passes; a failed command is never "signed in" because an older login is still there).
|
|
122
|
+
* `screen`: its prompts are read by the `login-flow` patterns, or by its `own` closed table (structured-signin.ts SCREEN_READERS). `minVersion`: the oldest CLI that has the command.
|
|
123
|
+
* `answer`: what the CLI's own prompt accepts: the `code`, or the code or the page's address (`code-or-address`). AgEnD's box takes the code only (a pasted address is refused), so a
|
|
124
|
+
* CLI that also accepts an address gets a line under the box saying to paste the code alone.
|
|
125
|
+
* `named`: a NAMED account is signed in with these controls too (the login was checked to land in the account's own folder, which `host.namedAccounts` names). It is not implied by having named accounts:
|
|
126
|
+
* what these controls launch for an account is only what was checked.
|
|
127
|
+
*/
|
|
119
128
|
readonly structuredSignIn: Cap<{
|
|
120
129
|
argv: readonly string[];
|
|
121
130
|
rank: number;
|
|
131
|
+
ends: "success-line" | "exit-code";
|
|
132
|
+
screen: "login-flow" | "own";
|
|
133
|
+
answer: "code" | "code-or-address";
|
|
134
|
+
minVersion?: string;
|
|
122
135
|
named: boolean;
|
|
123
136
|
}>;
|
|
124
137
|
/** The first-run page offers it: as browser controls, or only as the console command. */
|
|
@@ -130,20 +143,35 @@ export interface HostCapabilities {
|
|
|
130
143
|
readonly authCheck: Cap<{
|
|
131
144
|
argv: readonly string[];
|
|
132
145
|
}>;
|
|
133
|
-
/**
|
|
146
|
+
/**
|
|
147
|
+
* Which account the sign-in is (the whole e-mail address, and a plan where the CLI says one), read locally and never from a credential: `status-command` is the CLI's own status answer;
|
|
148
|
+
* `token-file` is the one field of the CLI's own token file that names the account (`field`; nothing else of the file is read, kept or logged).
|
|
149
|
+
*/
|
|
134
150
|
readonly identity: Cap<{
|
|
135
151
|
source: "status-command";
|
|
152
|
+
} | {
|
|
153
|
+
source: "token-file";
|
|
154
|
+
field: string;
|
|
136
155
|
}>;
|
|
137
|
-
/**
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
156
|
+
/**
|
|
157
|
+
* Several sign-ins side by side (credential profiles): how the CLI is told which account it runs as, and how a Move is worded.
|
|
158
|
+
* - `relocate-home` / `redirect-files`: a variable (`env`) moves the CLI's home, or a file or two of it, to the account's folder.
|
|
159
|
+
* - `launch-argument` (AGEND-119, Antigravity): the CLI takes the account's folder as an argument (`arg`, a path relative to the CLI's own home), keeps the sign-in in one file there (`store`),
|
|
160
|
+
* and is started with `pin` in its environment: variables that make it keep that sign-in in the file, never in the system's keyring or credential manager, where one folder's sign-in would
|
|
161
|
+
* be every folder's. The account is only isolated when the CLI honours `pin`, which is why a sign-in first checks (an empty folder must answer "signed out") and never starts otherwise.
|
|
162
|
+
*/
|
|
163
|
+
readonly namedAccounts: Cap<NamedAccountFacts & {
|
|
141
164
|
carry: CarryKind;
|
|
142
165
|
}>;
|
|
143
|
-
/**
|
|
166
|
+
/**
|
|
167
|
+
* Sign out from the dashboard: the CLI's own logout (`binary`, `args`), or — for a CLI that has none — the account's sign-in files, which AgEnD removes itself (`remove`: names inside the
|
|
168
|
+
* account's folder). Either way the answer is then checked with the CLI's own status probe, so a sign-out that did not sign it out is reported as that.
|
|
169
|
+
*/
|
|
144
170
|
readonly signOut: Cap<{
|
|
145
171
|
binary: string;
|
|
146
172
|
args: readonly string[];
|
|
173
|
+
} | {
|
|
174
|
+
remove: readonly string[];
|
|
147
175
|
}>;
|
|
148
176
|
/** "Keep sign-in alive". */
|
|
149
177
|
readonly keepAlive: Cap;
|
|
@@ -151,14 +179,46 @@ export interface HostCapabilities {
|
|
|
151
179
|
readonly accountCard: Cap<{
|
|
152
180
|
rank: number;
|
|
153
181
|
}>;
|
|
154
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* The usage panel's row for it: its provider id and name, its place, and whether a named account has a row of its own (`profileRows`: one used by an agent; `hostRows`: every account on this host, used by an agent or
|
|
184
|
+
* not — a subscription at its limit is the one a person stops using, so it must not vanish because nothing runs on it), and the SHAPE of the limits the CLI reports.
|
|
185
|
+
* - `pools`: the account has one set of limits (`single`), or the CLI names several pools in its own answer and each has limits of its own (`several`: Antigravity's Gemini, Claude & others,
|
|
186
|
+
* Gemini 4 Argon). A pool the CLI names is shown whatever it is called; this says only whether to expect them.
|
|
187
|
+
* - `windows`: the kinds of window a pool's limit can have, as the CLI reports them: `session` (under two days: the 5h), `weekly`, `monthly`, and `unwindowed` (one number with no window of
|
|
188
|
+
* its own, as agy gives a pool it only knows from per-model data). An Accounts row shows every pool and every window the account reports, in the usage panel's own order, so a
|
|
189
|
+
* window is never hidden; this is what a CLI is expected to report, and tests/cli-registry-usage-shape.test.ts fails when a real payload carries a kind that is not listed here.
|
|
190
|
+
*/
|
|
155
191
|
readonly usage: Cap<{
|
|
156
192
|
providerId: string;
|
|
157
193
|
name: string;
|
|
158
194
|
rank: number;
|
|
159
195
|
profileRows: boolean;
|
|
196
|
+
hostRows: boolean;
|
|
197
|
+
pools: "single" | "several";
|
|
198
|
+
windows: readonly UsageWindowKind[];
|
|
160
199
|
}>;
|
|
161
200
|
}
|
|
201
|
+
/** The kinds of window a usage limit can have (see `host.usage.windows`). */
|
|
202
|
+
export declare const USAGE_WINDOW_KINDS: readonly ["session", "weekly", "monthly", "unwindowed"];
|
|
203
|
+
export type UsageWindowKind = typeof USAGE_WINDOW_KINDS[number];
|
|
204
|
+
/** How a named account is told apart (see `host.namedAccounts`). */
|
|
205
|
+
export type NamedAccountFacts = {
|
|
206
|
+
readonly env: string;
|
|
207
|
+
readonly home: "relocate-home" | "redirect-files";
|
|
208
|
+
} | {
|
|
209
|
+
readonly home: "launch-argument";
|
|
210
|
+
readonly arg: string;
|
|
211
|
+
readonly store: string;
|
|
212
|
+
readonly pin: Readonly<Record<string, string>>;
|
|
213
|
+
};
|
|
214
|
+
/** How a named account on a computer is told apart (see `runtime.namedAccounts`). */
|
|
215
|
+
export type RuntimeNamedAccountFacts = {
|
|
216
|
+
readonly env: string;
|
|
217
|
+
} | {
|
|
218
|
+
readonly arg: string;
|
|
219
|
+
readonly store: string;
|
|
220
|
+
readonly pin: Readonly<Record<string, string>>;
|
|
221
|
+
};
|
|
162
222
|
/** Every capability a CLI has on a paired Windows computer, as its Runtime reports and does it. */
|
|
163
223
|
/**
|
|
164
224
|
* What a Runtime install's pinned version vouches for: `audited` — the pin is a release AgEnD has audited (the upstream rule for npm CLIs: "the audited version, not latest"); `integrity` — it is
|
|
@@ -183,22 +243,47 @@ export interface RuntimeCapabilities {
|
|
|
183
243
|
readonly update: Cap<{
|
|
184
244
|
kind: "pinned" | "latest-unaudited";
|
|
185
245
|
}>;
|
|
186
|
-
/**
|
|
246
|
+
/**
|
|
247
|
+
* The dashboard signs it in on that computer: the exact command, and whose login it is: a `named` profile this Runtime created (nothing else is touched), or `none`: the
|
|
248
|
+
* computer's OWN login (a CLI that keeps one login per Windows user and has no profile folder; signing in REPLACES it, which is why only a CLI whose spec says `none` or `both` may, and the
|
|
249
|
+
* computer's owner must have turned `accounts` on), or `both` (AGEND-124, Antigravity: the computer's own login AND named accounts, each with its own rules). A `none` or `both` is announced
|
|
250
|
+
* to the server by a capability of its own (`signin-<id>`, runtimeSignInCapability).
|
|
251
|
+
*/
|
|
187
252
|
readonly signIn: Cap<{
|
|
188
253
|
argv: readonly string[];
|
|
189
|
-
profile: "named";
|
|
254
|
+
profile: "named" | "none" | "both";
|
|
190
255
|
}>;
|
|
191
|
-
/**
|
|
192
|
-
|
|
193
|
-
|
|
256
|
+
/**
|
|
257
|
+
* Named accounts on that computer: how the CLI is pointed at the profile's folder. `env`: the variable that does it (Claude Code). `arg`/`store`/`pin` (AGEND-124, Antigravity): the same launch-argument
|
|
258
|
+
* facts as `host.namedAccounts` (a path relative to the CLI's own home, the file the sign-in is kept in, and the variables that keep it there: never in the Credential Manager, where one folder's sign-in would
|
|
259
|
+
* be every folder's). They must be the host's, word for word (cli-registry-check.ts).
|
|
260
|
+
*/
|
|
261
|
+
readonly namedAccounts: Cap<RuntimeNamedAccountFacts>;
|
|
262
|
+
/**
|
|
263
|
+
* Sign out from the dashboard on that computer: the CLI's own logout (`binary`, `args`, run under the profile's folder), or — for a CLI that has none (Antigravity) — the files AgEnD's Runtime removes itself
|
|
264
|
+
* (`remove`: names inside a named account's folder) and, for the computer's own login, the Credential Manager entry (`credential`) the CLI keeps it in. Either way the answer is then checked with the CLI's own
|
|
265
|
+
* status probe, so a sign-out that did not take effect is reported as that.
|
|
266
|
+
*/
|
|
267
|
+
readonly signOut: Cap<{
|
|
268
|
+
binary: string;
|
|
269
|
+
args: readonly string[];
|
|
270
|
+
} | {
|
|
271
|
+
remove: readonly string[];
|
|
272
|
+
credential: string;
|
|
194
273
|
}>;
|
|
195
|
-
/** The Accounts page shows that computer's accounts of this CLI. */
|
|
196
|
-
readonly accountRows: Cap
|
|
197
|
-
|
|
274
|
+
/** The Accounts page shows that computer's accounts of this CLI; `defaultRow`: the computer's own login is `read-only` there (a named account is added instead), or can be signed in (`sign-in`). */
|
|
275
|
+
readonly accountRows: Cap<{
|
|
276
|
+
defaultRow: "read-only" | "sign-in";
|
|
277
|
+
}>;
|
|
278
|
+
/**
|
|
279
|
+
* The status probe for a sign-in (never a login). `own-command`: a command of the CLI's own, run for that (`runtime.provider`'s auth probe). `model-listing`: the CLI has none, so its
|
|
280
|
+
* answer is the model listing the Runtime already asks for (`argv` is `runtime.provider.modelProbe`, and the answer is read by its exit code and its words: no extra process).
|
|
281
|
+
*/
|
|
198
282
|
readonly authStatus: Cap<{
|
|
199
283
|
argv: readonly string[];
|
|
284
|
+
source: "own-command" | "model-listing";
|
|
200
285
|
}>;
|
|
201
|
-
/** The Runtime reports which account it is (
|
|
286
|
+
/** The Runtime reports which account it is (the whole e-mail address). */
|
|
202
287
|
readonly identity: Cap;
|
|
203
288
|
/** The Runtime reports the account's usage. */
|
|
204
289
|
readonly usage: Cap;
|
|
@@ -210,7 +295,7 @@ export interface CliSpec {
|
|
|
210
295
|
}
|
|
211
296
|
/** `host.install`, `runtime.signIn`, …: every capability's address, in the order the specs and the gap report list them. */
|
|
212
297
|
export declare const HOST_CAPABILITIES: readonly ["install", "update", "chatLogin", "dashboardSignIn", "structuredSignIn", "firstRunSignIn", "authCheck", "identity", "namedAccounts", "signOut", "keepAlive", "accountCard", "usage"];
|
|
213
|
-
export declare const RUNTIME_CAPABILITIES: readonly ["provider", "install", "update", "signIn", "namedAccounts", "accountRows", "authStatus", "identity", "usage"];
|
|
298
|
+
export declare const RUNTIME_CAPABILITIES: readonly ["provider", "install", "update", "signIn", "namedAccounts", "signOut", "accountRows", "authStatus", "identity", "usage"];
|
|
214
299
|
export type CapabilityPath = `host.${typeof HOST_CAPABILITIES[number]}` | `runtime.${typeof RUNTIME_CAPABILITIES[number]}`;
|
|
215
300
|
export declare const CAPABILITY_PATHS: readonly CapabilityPath[];
|
|
216
301
|
/** Freezes a spec all the way down: a table that can be read, not changed, by whoever imports it. */
|
package/dist/cli-capability.js
CHANGED
|
@@ -34,9 +34,11 @@ export const toVerify = (note) => ({ support: "no", why: "needs_verification", n
|
|
|
34
34
|
/** `no`: not built yet, and the issue that tracks it (`undecided` until the owner picks). */
|
|
35
35
|
export const notYetBuilt = (tracking, note) => ({ support: "no", why: "not_yet_built", note, tracking });
|
|
36
36
|
export const isYes = (cap) => cap.support === "yes";
|
|
37
|
+
/** The kinds of window a usage limit can have (see `host.usage.windows`). */
|
|
38
|
+
export const USAGE_WINDOW_KINDS = Object.freeze(["session", "weekly", "monthly", "unwindowed"]);
|
|
37
39
|
/** `host.install`, `runtime.signIn`, …: every capability's address, in the order the specs and the gap report list them. */
|
|
38
40
|
export const HOST_CAPABILITIES = Object.freeze(["install", "update", "chatLogin", "dashboardSignIn", "structuredSignIn", "firstRunSignIn", "authCheck", "identity", "namedAccounts", "signOut", "keepAlive", "accountCard", "usage"]);
|
|
39
|
-
export const RUNTIME_CAPABILITIES = Object.freeze(["provider", "install", "update", "signIn", "namedAccounts", "accountRows", "authStatus", "identity", "usage"]);
|
|
41
|
+
export const RUNTIME_CAPABILITIES = Object.freeze(["provider", "install", "update", "signIn", "namedAccounts", "signOut", "accountRows", "authStatus", "identity", "usage"]);
|
|
40
42
|
// Compile-time: the two lists above name every field of the interfaces (a capability added to an interface and not here fails the build).
|
|
41
43
|
const _hostListed = true;
|
|
42
44
|
const _runtimeListed = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-capability.js","sourceRoot":"","sources":["../src/cli-capability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,8JAA8J;AAC9J,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAU,CAAC,CAAC;AAG/H;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,oBAAoB,EAAE,eAAe,CAAU,CAAC,CAAC;AAIzI,MAAM,CAAC,MAAM,QAAQ,GAAG,sBAAsB,CAAC;AAY/C,MAAM,UAAU,GAAG,CAAC,KAAc,IAAiB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACjG,wCAAwC;AACxC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,IAAY,EAAM,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;AACzF,+DAA+D;AAC/D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAY,EAAM,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC;AACpG,yCAAyC;AACzC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAM,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAA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AAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,CAAwD,CAAC,CAAC;AAC7R,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,CAA2D,CAAC,CAAC;AACvO,0IAA0I;AAC1I,MAAM,WAAW,GAAuG,IAAI,CAAC;AAC7H,MAAM,cAAc,GAA6G,IAAI,CAAC;AACtI,KAAK,WAAW,CAAC;AAAC,KAAK,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,gBAAgB,GAA8B,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAW,CAAC,EAAE,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,EAAW,CAAC,CAAC,CAAC,CAAC;AAE3L,qGAAqG;AACrG,MAAM,UAAU,UAAU,CAAI,KAAQ;IACpC,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAClE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrB,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAe,CAAC;YAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -12,8 +12,12 @@ import { type CarryKind, type CliId } from "./cli-registry.js";
|
|
|
12
12
|
export interface UiCliCaps {
|
|
13
13
|
/** The dashboard can sign this CLI's account out (`host.signOut`). */
|
|
14
14
|
signOut: boolean;
|
|
15
|
+
/** It is signed out by AgEnD removing the account's sign-in file (the CLI has no logout command; `host.signOut.remove`), and then checking: the dialog says so instead of "the CLI's own logout". */
|
|
16
|
+
signOutFiles: boolean;
|
|
15
17
|
/** The CLI can have named accounts (`host.namedAccounts`), and how a Move between two of them words the conversation; null when it has none. */
|
|
16
18
|
namedAccounts: boolean;
|
|
19
|
+
/** An account is the CLI's whole app-data folder (`host.namedAccounts` as a launch argument): Remove deletes its conversations with its sign-in. */
|
|
20
|
+
accountIsFolder: boolean;
|
|
17
21
|
carry: CarryKind | null;
|
|
18
22
|
/** Browser controls for default accounts (`host.structuredSignIn`), and separately named accounts (`host.structuredSignIn.named`). */
|
|
19
23
|
structuredSignIn: boolean;
|
|
@@ -27,6 +31,16 @@ export interface UiCliCaps {
|
|
|
27
31
|
runtimeUpdate: boolean;
|
|
28
32
|
/** AGEND-153: that update is the named exception — it goes to the vendor's newest release, which AgEnD has not audited (`runtime.update.kind: "latest-unaudited"`); the page labels it so. */
|
|
29
33
|
runtimeUpdateLatest: boolean;
|
|
34
|
+
/** A Runtime signs it in as the COMPUTER'S OWN login (no profile; `runtime.signIn.profile === "none"`): the page asks before it changes that login. */
|
|
35
|
+
runtimeDefaultLogin: boolean;
|
|
36
|
+
/** A Runtime keeps NAMED accounts of it on a paired computer (`runtime.namedAccounts`; AGEND-124): an agent there can choose one, and the Accounts page adds, signs in and removes them under that computer's name. */
|
|
37
|
+
runtimeNamedAccounts: boolean;
|
|
38
|
+
/** The oldest CLI that has the structured sign-in's command (`host.structuredSignIn.minVersion`), for the words that say "too old"; null: any. */
|
|
39
|
+
structuredMinVersion: string | null;
|
|
40
|
+
/** `/login <name>` in chat runs a flow for it (`host.chatLogin`'s mode is not `declined` or `install-only`): the older dialog can sign it in, so a "console fallback" is offered. */
|
|
41
|
+
chatSignIn: boolean;
|
|
42
|
+
/** The CLI's own prompt also accepts the page's address, which AgEnD's code box refuses: the box says to paste the code alone (`host.structuredSignIn.answer`). */
|
|
43
|
+
codeHint: boolean;
|
|
30
44
|
}
|
|
31
45
|
export declare function uiCliCaps(): Record<CliId, UiCliCaps>;
|
|
32
46
|
/** The exact text of `src/ui/cli-caps.js`. Deterministic: same registry, same bytes. */
|
package/dist/cli-caps-module.js
CHANGED
|
@@ -7,13 +7,15 @@
|
|
|
7
7
|
* fails while it differs from what this function renders, and says how to regenerate it. (A file, not a request, so a page that has not finished loading
|
|
8
8
|
* cannot be missing it, and the setup page's server needs no new route. Authorization is not here: the server still checks every request itself.)
|
|
9
9
|
*/
|
|
10
|
-
import { CLI_IDS, hostFacts, hostIdsByRank, runtimeFacts } from "./cli-registry.js";
|
|
10
|
+
import { CLI_IDS, hostFacts, hostIdsByRank, isRuntimeDefaultLoginCli, runtimeFacts } from "./cli-registry.js";
|
|
11
11
|
export function uiCliCaps() {
|
|
12
12
|
return Object.fromEntries(CLI_IDS.map(id => {
|
|
13
13
|
const named = hostFacts(id, "namedAccounts"), structured = hostFacts(id, "structuredSignIn");
|
|
14
14
|
const caps = {
|
|
15
15
|
signOut: hostFacts(id, "signOut") !== null,
|
|
16
|
+
signOutFiles: hostFacts(id, "signOut") !== null && "remove" in hostFacts(id, "signOut"),
|
|
16
17
|
namedAccounts: named !== null,
|
|
18
|
+
accountIsFolder: named?.home === "launch-argument",
|
|
17
19
|
carry: named?.carry ?? null,
|
|
18
20
|
structuredSignIn: structured !== null,
|
|
19
21
|
structuredNamedSignIn: structured?.named === true,
|
|
@@ -22,6 +24,11 @@ export function uiCliCaps() {
|
|
|
22
24
|
runtimeUpdate: runtimeFacts(id, "update") !== null,
|
|
23
25
|
runtimeUpdateLatest: runtimeFacts(id, "update")?.kind === "latest-unaudited",
|
|
24
26
|
runtimeName: runtimeFacts(id, "install") ? runtimeFacts(id, "provider")?.name ?? null : null,
|
|
27
|
+
runtimeDefaultLogin: isRuntimeDefaultLoginCli(id),
|
|
28
|
+
runtimeNamedAccounts: runtimeFacts(id, "namedAccounts") !== null,
|
|
29
|
+
codeHint: structured?.answer === "code-or-address",
|
|
30
|
+
structuredMinVersion: structured?.minVersion ?? null,
|
|
31
|
+
chatSignIn: ["device-code", "paste-code", "menu"].includes(hostFacts(id, "chatLogin")?.mode ?? ""),
|
|
25
32
|
};
|
|
26
33
|
return [id, caps];
|
|
27
34
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-caps-module.js","sourceRoot":"","sources":["../src/cli-caps-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"cli-caps-module.js","sourceRoot":"","sources":["../src/cli-caps-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,wBAAwB,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAqC1I,MAAM,UAAU,SAAS;IACvB,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;QACzC,MAAM,KAAK,GAAG,SAAS,CAAC,EAAE,EAAE,eAAe,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;QAC7F,MAAM,IAAI,GAAc;YACtB,OAAO,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,KAAK,IAAI;YAC1C,YAAY,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,KAAK,IAAI,IAAI,QAAQ,IAAI,SAAS,CAAC,EAAE,EAAE,SAAS,CAAE;YACxF,aAAa,EAAE,KAAK,KAAK,IAAI;YAC7B,eAAe,EAAE,KAAK,EAAE,IAAI,KAAK,iBAAiB;YAClD,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,IAAI;YAC3B,gBAAgB,EAAE,UAAU,KAAK,IAAI;YACrC,qBAAqB,EAAE,UAAU,EAAE,KAAK,KAAK,IAAI;YACjD,cAAc,EA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