@songsid/agend 2.3.5-alpha.7 → 2.3.5-alpha.9
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/accounts-profiles.d.ts +6 -0
- package/dist/accounts-profiles.js +16 -0
- package/dist/accounts-profiles.js.map +1 -1
- package/dist/accounts-view.d.ts +17 -0
- package/dist/accounts-view.js +33 -6
- package/dist/accounts-view.js.map +1 -1
- package/dist/agent-cli-instructions.md +1 -1
- package/dist/agent-cli.js +5 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-whats-new.js +5 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/apply-job.d.ts +5 -0
- package/dist/apply-job.js +10 -3
- package/dist/apply-job.js.map +1 -1
- package/dist/auth-api.d.ts +1 -1
- package/dist/auth-api.js +4 -2
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/company-join.d.ts +16 -0
- package/dist/authority/company-join.js +37 -0
- package/dist/authority/company-join.js.map +1 -0
- package/dist/authority/hub-initialization.d.ts +13 -0
- package/dist/authority/hub-initialization.js +30 -0
- package/dist/authority/hub-initialization.js.map +1 -0
- package/dist/backend/claude-code.d.ts +1 -0
- package/dist/backend/claude-code.js +13 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/types.d.ts +4 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +2 -2
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/claude-model-minimum.d.ts +7 -0
- package/dist/claude-model-minimum.js +16 -0
- package/dist/claude-model-minimum.js.map +1 -0
- package/dist/config-validator.js +2 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +43 -1
- package/dist/daemon.js +176 -27
- package/dist/daemon.js.map +1 -1
- package/dist/decision-list.d.ts +2 -0
- package/dist/decision-list.js +1 -1
- package/dist/decision-list.js.map +1 -1
- package/dist/fleet-manager.d.ts +75 -3
- package/dist/fleet-manager.js +462 -53
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +14 -3
- package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -1
- package/dist/general-knowledge/steering/core-rules.md +1 -1
- package/dist/hub/catalog.d.ts +1 -1
- package/dist/hub/catalog.js +151 -33
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.js +4 -0
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +6 -0
- package/dist/hub/compose/member.js +9 -1
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +55 -1
- package/dist/hub/compose/server.js +76 -10
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/directory/directory.d.ts +2 -0
- package/dist/hub/directory/directory.js +49 -4
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/types.d.ts +2 -0
- package/dist/hub/directory/types.js.map +1 -1
- package/dist/hub/enrollment-budget.d.ts +6 -0
- package/dist/hub/enrollment-budget.js +24 -0
- package/dist/hub/enrollment-budget.js.map +1 -0
- package/dist/hub/group-policy/admin-api.d.ts +30 -0
- package/dist/hub/group-policy/admin-api.js +83 -0
- package/dist/hub/group-policy/admin-api.js.map +1 -0
- package/dist/hub/group-policy/admin-control.d.ts +34 -0
- package/dist/hub/group-policy/admin-control.js +258 -0
- package/dist/hub/group-policy/admin-control.js.map +1 -0
- package/dist/hub/group-policy/admin-dto.d.ts +9 -1
- package/dist/hub/group-policy/admin-dto.js.map +1 -1
- package/dist/hub/group-policy/admin-facts.d.ts +17 -0
- package/dist/hub/group-policy/admin-facts.js +33 -0
- package/dist/hub/group-policy/admin-facts.js.map +1 -0
- package/dist/hub/group-policy/admin-impact.d.ts +51 -0
- package/dist/hub/group-policy/admin-impact.js +88 -0
- package/dist/hub/group-policy/admin-impact.js.map +1 -0
- package/dist/hub/group-policy/authorization.d.ts +22 -0
- package/dist/hub/group-policy/authorization.js +147 -2
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.d.ts +21 -0
- package/dist/hub/group-policy/impact-inventory.js +75 -0
- package/dist/hub/group-policy/impact-inventory.js.map +1 -0
- package/dist/hub/group-policy/resources.d.ts +13 -1
- package/dist/hub/group-policy/resources.js +92 -23
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.d.ts +11 -0
- package/dist/hub/group-policy/store.js +57 -2
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/group-policy/welcome.d.ts +36 -0
- package/dist/hub/group-policy/welcome.js +55 -0
- package/dist/hub/group-policy/welcome.js.map +1 -0
- package/dist/hub/http/compose.d.ts +2 -0
- package/dist/hub/http/compose.js +184 -8
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.d.ts +2 -0
- package/dist/hub/http/core.js +10 -1
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +10 -0
- package/dist/hub/http/schema.js +4 -0
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/init/browser-certificate.d.ts +6 -1
- package/dist/hub/init/browser-certificate.js +22 -1
- package/dist/hub/init/browser-certificate.js.map +1 -1
- package/dist/hub/init/initializer.d.ts +11 -1
- package/dist/hub/init/initializer.js +202 -83
- package/dist/hub/init/initializer.js.map +1 -1
- package/dist/hub/init/layout.js +1 -1
- package/dist/hub/init/layout.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/types.d.ts +32 -4
- package/dist/hub/init/types.js.map +1 -1
- package/dist/hub/init/web-audit-import.d.ts +12 -0
- package/dist/hub/init/web-audit-import.js +39 -0
- package/dist/hub/init/web-audit-import.js.map +1 -0
- package/dist/hub/init/web-audit.d.ts +30 -0
- package/dist/hub/init/web-audit.js +42 -0
- package/dist/hub/init/web-audit.js.map +1 -0
- package/dist/hub/init/web-error.d.ts +6 -0
- package/dist/hub/init/web-error.js +8 -0
- package/dist/hub/init/web-error.js.map +1 -0
- package/dist/hub/init/web-http.d.ts +9 -0
- package/dist/hub/init/web-http.js +103 -0
- package/dist/hub/init/web-http.js.map +1 -0
- package/dist/hub/init/web.d.ts +118 -0
- package/dist/hub/init/web.js +428 -0
- package/dist/hub/init/web.js.map +1 -0
- package/dist/hub/init/wizard.js +1 -3
- package/dist/hub/init/wizard.js.map +1 -1
- package/dist/hub/join/client.d.ts +35 -0
- package/dist/hub/join/client.js +112 -0
- package/dist/hub/join/client.js.map +1 -0
- package/dist/hub/join/descriptor.d.ts +45 -0
- package/dist/hub/join/descriptor.js +52 -0
- package/dist/hub/join/descriptor.js.map +1 -0
- package/dist/hub/join/fleet-authority.d.ts +2 -0
- package/dist/hub/join/fleet-authority.js +3 -0
- package/dist/hub/join/fleet-authority.js.map +1 -0
- package/dist/hub/join/http.d.ts +8 -0
- package/dist/hub/join/http.js +112 -0
- package/dist/hub/join/http.js.map +1 -0
- package/dist/hub/join/invitation.d.ts +28 -0
- package/dist/hub/join/invitation.js +28 -0
- package/dist/hub/join/invitation.js.map +1 -0
- package/dist/hub/join/local-journal.d.ts +84 -0
- package/dist/hub/join/local-journal.js +65 -0
- package/dist/hub/join/local-journal.js.map +1 -0
- package/dist/hub/join/local.d.ts +116 -0
- package/dist/hub/join/local.js +419 -0
- package/dist/hub/join/local.js.map +1 -0
- package/dist/hub/join/private.d.ts +3 -0
- package/dist/hub/join/private.js +46 -0
- package/dist/hub/join/private.js.map +1 -0
- package/dist/hub/join/protocol.d.ts +69 -0
- package/dist/hub/join/protocol.js +96 -0
- package/dist/hub/join/protocol.js.map +1 -0
- package/dist/hub/join/receipt.d.ts +42 -0
- package/dist/hub/join/receipt.js +75 -0
- package/dist/hub/join/receipt.js.map +1 -0
- package/dist/hub/join/service.d.ts +177 -0
- package/dist/hub/join/service.js +564 -0
- package/dist/hub/join/service.js.map +1 -0
- package/dist/hub/join/store.d.ts +97 -0
- package/dist/hub/join/store.js +87 -0
- package/dist/hub/join/store.js.map +1 -0
- package/dist/hub/join/trust.d.ts +13 -0
- package/dist/hub/join/trust.js +68 -0
- package/dist/hub/join/trust.js.map +1 -0
- package/dist/hub/member/pairing-api.d.ts +2 -0
- package/dist/hub/member/pairing-api.js +7 -1
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/member/pairing-notices.d.ts +18 -0
- package/dist/hub/member/pairing-notices.js +60 -0
- package/dist/hub/member/pairing-notices.js.map +1 -0
- package/dist/hub/pairing-notices.d.ts +47 -0
- package/dist/hub/pairing-notices.js +246 -0
- package/dist/hub/pairing-notices.js.map +1 -0
- package/dist/hub/pairing.d.ts +39 -1
- package/dist/hub/pairing.js +316 -16
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/protocol.d.ts +61 -0
- package/dist/hub/protocol.js +8 -1
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/room-read-pacer.d.ts +14 -0
- package/dist/hub/room-read-pacer.js +51 -0
- package/dist/hub/room-read-pacer.js.map +1 -0
- package/dist/hub/rooms.d.ts +7 -1
- package/dist/hub/rooms.js +25 -13
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +8 -1
- package/dist/hub/runtime.js +13 -0
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +3 -0
- package/dist/hub/server.js +18 -0
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +48 -0
- package/dist/hub/session-directory-transition.js +118 -0
- package/dist/hub/session-directory-transition.js.map +1 -0
- package/dist/hub/session-epoch.d.ts +16 -0
- package/dist/hub/session-epoch.js +50 -0
- package/dist/hub/session-epoch.js.map +1 -0
- package/dist/hub/sessions.d.ts +13 -0
- package/dist/hub/sessions.js +36 -16
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-api.d.ts +50 -0
- package/dist/hub/settings-api.js +92 -0
- package/dist/hub/settings-api.js.map +1 -0
- package/dist/hub/settings-commit.d.ts +95 -0
- package/dist/hub/settings-commit.js +490 -0
- package/dist/hub/settings-commit.js.map +1 -0
- package/dist/hub/settings-directory-decision.d.ts +433 -0
- package/dist/hub/settings-directory-decision.js +236 -0
- package/dist/hub/settings-directory-decision.js.map +1 -0
- package/dist/hub/settings-directory-proof.d.ts +77 -0
- package/dist/hub/settings-directory-proof.js +303 -0
- package/dist/hub/settings-directory-proof.js.map +1 -0
- package/dist/hub/store.d.ts +12 -2
- package/dist/hub/store.js +9 -5
- package/dist/hub/store.js.map +1 -1
- package/dist/hub/types.d.ts +15 -2
- package/dist/hub-host-settings.d.ts +48 -0
- package/dist/hub-host-settings.js +85 -0
- package/dist/hub-host-settings.js.map +1 -0
- package/dist/instance-lifecycle.d.ts +3 -0
- package/dist/instance-lifecycle.js +4 -0
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +54 -30
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +9 -1
- package/dist/login-controller.js +20 -1
- package/dist/login-controller.js.map +1 -1
- package/dist/login-flows.js +4 -2
- package/dist/login-flows.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.js +1 -1
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +2 -0
- package/dist/outbound-schemas.js +4 -2
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +1 -1
- package/dist/profile-signins.d.ts +107 -0
- package/dist/profile-signins.js +249 -0
- package/dist/profile-signins.js.map +1 -0
- package/dist/quickstart-api.js +2 -2
- package/dist/quickstart-api.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +5 -1
- package/dist/reply-buttons-controller.js +8 -4
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/reply-buttons.d.ts +6 -2
- package/dist/reply-buttons.js +7 -3
- package/dist/reply-buttons.js.map +1 -1
- package/dist/scheduler/db.d.ts +10 -0
- package/dist/scheduler/db.js +38 -11
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/types.d.ts +6 -1
- package/dist/settings-api.d.ts +9 -1
- package/dist/settings-api.js +200 -4
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-confirmation.d.ts +1 -1
- package/dist/settings-confirmation.js +1 -1
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.js +58 -0
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +3 -0
- package/dist/settings-http-confirmation.js +8 -5
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-request-capability.d.ts +5 -0
- package/dist/settings-request-capability.js +6 -1
- package/dist/settings-request-capability.js.map +1 -1
- package/dist/signin-keepalive.d.ts +2 -0
- package/dist/signin-keepalive.js +30 -2
- package/dist/signin-keepalive.js.map +1 -1
- package/dist/structured-signin-transport.d.ts +20 -2
- package/dist/structured-signin-transport.js +57 -6
- package/dist/structured-signin-transport.js.map +1 -1
- package/dist/team-membership.d.ts +7 -0
- package/dist/team-membership.js +10 -0
- package/dist/team-membership.js.map +1 -0
- package/dist/tmux-manager.d.ts +1 -1
- package/dist/tmux-manager.js +4 -1
- package/dist/tmux-manager.js.map +1 -1
- package/dist/topic-commands.js +1 -1
- package/dist/topic-commands.js.map +1 -1
- package/dist/ui/accounts-keepalive.js +10 -5
- package/dist/ui/accounts-manage.js +29 -11
- package/dist/ui/accounts-view.js +75 -28
- package/dist/ui/backend-signin.js +61 -16
- package/dist/ui/hub-attachments.js +3 -3
- package/dist/ui/hub-chat-strings.js +2 -0
- package/dist/ui/hub-client.js +50 -4
- package/dist/ui/hub-company-join-strings.js +74 -0
- package/dist/ui/hub-company-join.js +119 -0
- package/dist/ui/hub-group-policy.js +175 -0
- package/dist/ui/hub-group-strings.js +97 -0
- package/dist/ui/hub-owner-strings.js +12 -12
- package/dist/ui/hub-pairing-progress-strings.js +15 -0
- package/dist/ui/hub-quick-pairing.js +209 -0
- package/dist/ui/hub-quick-strings.js +43 -0
- package/dist/ui/hub-read-strings.js +7 -0
- package/dist/ui/hub-this-hub.js +112 -0
- package/dist/ui/hub-welcome.js +102 -0
- package/dist/ui/panel-hub.js +217 -28
- package/dist/ui/panel-needs.js +1 -1
- package/dist/ui/panel-settings.js +7 -4
- package/dist/ui/settings-apply.js +12 -5
- package/dist/ui/settings-devices.js +2 -2
- package/dist/ui/settings-dialogs.js +3 -1
- package/dist/ui/settings-hub-company-join.js +90 -0
- package/dist/ui/settings-hub-membership.js +20 -5
- package/dist/ui/settings-hub-preview.js +74 -0
- package/dist/ui/settings-hub-run.js +60 -0
- package/dist/ui/settings-hub-section.js +30 -3
- package/dist/ui/settings-hub.js +52 -11
- package/dist/ui/settings-registry.js +2 -0
- package/dist/ui/settings-restart-strings.js +17 -0
- package/dist/ui/settings-strings.js +6 -4
- package/dist/ui/shared/accounts-keepalive.css +11 -6
- package/dist/ui/shared/accounts.css +68 -18
- package/dist/ui/shared/app-i18n.js +4 -1
- package/dist/ui/shared/app-shell.js +39 -25
- package/dist/ui/shared/app.css +9 -8
- package/dist/ui/shared/chat-strings.js +13 -13
- package/dist/ui/shared/hub-chat.css +12 -0
- package/dist/ui/shared/hub-groups.css +28 -0
- package/dist/ui/shared/hub-owner.css +19 -1
- package/dist/ui/shared/hub.css +8 -1
- package/dist/ui/shared/setup-host-text.js +4 -1
- package/dist/ui/shared/signin.js +3 -1
- package/dist/ui/shared/usage-dialog.js +3 -72
- package/dist/ui/shared/usage-meter.js +84 -0
- package/dist/ui/shared/web-authorize.js +4 -4
- package/dist/ui/structured-signin.js +24 -6
- package/dist/update-dispatch.d.ts +32 -4
- package/dist/update-dispatch.js +146 -16
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +2 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/update-marker.d.ts +2 -0
- package/dist/update-marker.js.map +1 -1
- package/dist/view-api.d.ts +2 -8
- package/dist/view-api.js +3 -9
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +7 -1
- package/dist/web-api.js +91 -14
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +16 -2
- package/dist/web-backend-login.js +14 -0
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-notices.d.ts +9 -0
- package/dist/web-notices.js +19 -0
- package/dist/web-notices.js.map +1 -1
- package/dist/web-terminal.d.ts +7 -0
- package/dist/web-terminal.js +14 -2
- package/dist/web-terminal.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,78 @@
|
|
|
1
|
-
/* #3212: Settings → Agents → Accounts — linked by accounts-view.js (a page holding an older app.css still draws it).
|
|
1
|
+
/* #3212: Settings → Agents → Accounts — linked by accounts-view.js (a page holding an older app.css still draws it).
|
|
2
|
+
* Box layout: each CLI is a `.card`; each account is a box inside it (a status bar on its left edge) with three layers — the title bar (name, state,
|
|
3
|
+
* default tag · the buttons), the meta bar (who, used by), the usage block (5h and the week: two columns when wide, two stacked rows on a phone) and,
|
|
4
|
+
* for Keep sign-in alive, a foot.
|
|
5
|
+
* Colour is the theme's (tokens.css) and nothing else: this file has no colour of its own, so light and dark follow the page and the box looks like the
|
|
6
|
+
* settings cards around it. Layers are told apart by tone — the card is --surface, a box is --bg, the usage block is --surface again, the foot and a
|
|
7
|
+
* paired computer's tray are --surface-2 — not by lines. Shared pieces are used as they are: `.card`, `.s-row`, `.tag`, `.btn`, `Menu` (used by),
|
|
8
|
+
* `InfoTip` (the foot's ⓘ) and `CompactMeter` (the usage windows, app.css `.u-cm`).
|
|
9
|
+
* Nothing here is a layout the page waits on: the used-by list and the ⓘ words are layers over the box (position: absolute), so opening one never
|
|
10
|
+
* moves the box or the one below it. No inline styles are used (CSP style-src 'self'). */
|
|
2
11
|
.s-accounts { display: grid; gap: var(--s-3); }
|
|
3
|
-
|
|
12
|
+
|
|
13
|
+
/* One card per CLI (`.card`: --surface, --r-md). The section's own gap spaces the cards, so the card's bottom margin goes. overflow stays visible: the hints float out of it. */
|
|
14
|
+
.s-accounts .s-account-card { margin-bottom: 0; overflow: visible; }
|
|
4
15
|
.s-account-head { display: flex; align-items: center; gap: var(--s-2); }
|
|
5
|
-
.s-account-
|
|
6
|
-
.s-account-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.s
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
.s-account-head .s-account-add { margin-left: auto; }
|
|
17
|
+
.s-accounts .s-account-rows { display: grid; gap: var(--s-3); }
|
|
18
|
+
|
|
19
|
+
/* One box per account (`.s-row` on --bg). The left edge says the state: signed in, not signed in, or not known. overflow stays visible: the used-by list and the hints float out of it. */
|
|
20
|
+
/* The user's report on #3367 (house style #2330/#2332/#2489, decision 3536dae9): the state colour is the house straight
|
|
21
|
+
left bar — the `.lbar` shape from app.css (a 3px line, square, short of the corners) — never a border-left
|
|
22
|
+
curving into the row's rounded corners. Drawn here, on the row's own class, rather than by a class in the markup (#3407
|
|
23
|
+
review): this sheet loads apart from the shell and its markup, so a tab holding either older half still draws one bar
|
|
24
|
+
in its state's colour (older markup + this sheet: this bar; this markup is unchanged + an older sheet: the old edge),
|
|
25
|
+
never two. The 3px the bar takes is added to the row's padding. */
|
|
26
|
+
.s-accounts .s-account-row { display: block; position: relative; min-height: 0; padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-4) + 3px); background: var(--bg); overflow: visible; }
|
|
27
|
+
.s-accounts .s-account-row::before { content: ""; position: absolute; left: 0; top: var(--s-2); bottom: var(--s-2); width: 3px; background: var(--ok); pointer-events: none; }
|
|
28
|
+
.s-account-row:has(.s-auth-state.is-not_signed_in)::before { background: var(--warn); }
|
|
29
|
+
.s-account-row:has(.s-auth-state:is(.is-unknown, .is-not_installed, .is-too_old))::before { background: var(--text-3); }
|
|
30
|
+
.s-account-row details { margin-top: var(--s-3); }
|
|
31
|
+
|
|
32
|
+
/* Layer 1: the title bar — name, state, default tag on the left; the buttons (`.s-actions`) on the right. */
|
|
33
|
+
.s-account-title-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); }
|
|
34
|
+
.s-account-title-left { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
|
|
35
|
+
.s-account-title-left strong { font-size: var(--fs-md); line-height: 1.4; overflow-wrap: anywhere; }
|
|
36
|
+
.s-account-default-tag { background: var(--accent-dim); color: var(--accent); font-weight: var(--fw-semibold); }
|
|
37
|
+
.s-account-row .s-actions:empty { display: none; }
|
|
38
|
+
|
|
39
|
+
/* Layer 2: the meta bar — who it is, who uses it (`.tag` pills). */
|
|
40
|
+
.s-account-meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; margin-top: var(--s-3); }
|
|
41
|
+
.s-account-identity { font-family: var(--font-mono); color: var(--text); overflow-wrap: anywhere; }
|
|
42
|
+
.s-account-used { color: var(--text-3); }
|
|
43
|
+
/* Used by N agents: the `Menu`'s button, drawn as the pill beside it. Its list is `.menu-list` (app.css), opened from the pill's own edge. */
|
|
44
|
+
button.s-account-used { display: inline-flex; align-items: center; gap: var(--s-1); border: 0; cursor: pointer; }
|
|
45
|
+
.s-account-used.has-users { color: var(--accent); background: var(--accent-dim); font-weight: var(--fw-semibold); }
|
|
46
|
+
.s-account-used.has-users:hover { background: var(--surface-2); }
|
|
47
|
+
.s-account-used.has-users:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
48
|
+
.s-account-used-menu .menu-list { left: 0; right: auto; min-width: 240px; max-width: min(380px, calc(100vw - 96px)); max-height: 280px; overflow-y: auto; }
|
|
49
|
+
.s-account-used-menu .menu-list.menu-up { top: auto; bottom: calc(100% + var(--s-1)); }
|
|
50
|
+
.s-account-used-menu .menu-list.menu-compact { max-height: 180px; }
|
|
51
|
+
.s-account-used-menu .menu-list.menu-short { max-height: 96px; }
|
|
52
|
+
.s-account-used-menu .menu-item { font-family: var(--font-mono); overflow-wrap: anywhere; }
|
|
53
|
+
|
|
54
|
+
/* Layer 3: the usage block — the short window ("5h") and the week, each a `CompactMeter` (name · bar · percent · reset: fixed columns, so stacked rows line up).
|
|
55
|
+
* Wide: two columns side by side; narrow: two rows stacked. */
|
|
56
|
+
.s-account-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-1) var(--s-4); margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-sm); line-height: 1.4; }
|
|
57
|
+
.s-account-usage.is-none { display: none; } /* a computer reports no usage: the dash says nothing, so it is not drawn (the node stays) */
|
|
58
|
+
/* Stale (last known, not read again): greyed as the Usage panel greys it, and said once. */
|
|
59
|
+
.s-account-usage.is-stale .u-cm-pct { color: var(--text-3); }
|
|
60
|
+
.s-account-usage.is-stale .u-cm-fill { background: var(--text-3); }
|
|
61
|
+
.s-usage-stale { grid-column: 1 / -1; color: var(--text-3); font-size: var(--fs-xs); }
|
|
62
|
+
|
|
63
|
+
.s-account-default { margin: 0; }
|
|
64
|
+
.s-accounts .s-account-default { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--bg); }
|
|
14
65
|
.s-account-move { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
|
|
15
66
|
.s-account-move .check small { margin-left: var(--s-2); }
|
|
16
|
-
/* #3212 PR 2:
|
|
17
|
-
.s-account-head .s-account-add { margin-left: auto; }
|
|
18
|
-
.s-account-row .s-account-remove { color: var(--danger, var(--text-2)); }
|
|
67
|
+
/* #3212 PR 2: Remove's in-use list (a tab with an older copy of this file only loses the layout). */
|
|
19
68
|
.s-account-inuse ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
|
|
20
69
|
.s-account-inuse li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
|
|
21
70
|
.s-account-inuse li > span { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
|
|
22
71
|
.s-account-inuse li > small { flex-basis: 100%; }
|
|
23
|
-
/* #3190 Part 3c: a paired computer's accounts under its name
|
|
24
|
-
.s-account-machine { display: grid; gap: var(--s-
|
|
72
|
+
/* #3190 Part 3c: a paired computer's accounts under its name — a tray one tone deeper holding the same account boxes. */
|
|
73
|
+
.s-accounts .s-account-machine { display: grid; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: var(--surface-2); }
|
|
25
74
|
.s-account-machine-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
|
|
26
75
|
.s-account-machine-head .s-account-add { margin-left: auto; }
|
|
27
|
-
|
|
28
|
-
.s-account-
|
|
76
|
+
/* Why a row or a whole computer cannot be changed: a quiet note. */
|
|
77
|
+
.s-account-why { margin: var(--s-2) 0 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2); font-size: var(--fs-xs); overflow-wrap: anywhere; }
|
|
78
|
+
.s-account-machine > .s-account-why { margin: 0; background: var(--bg); }
|
|
@@ -101,6 +101,8 @@ register("app", {
|
|
|
101
101
|
opFailed: "Settings were not applied", openSettings: "Open Settings",
|
|
102
102
|
restartWaiting: "{0} saved change(s) take effect after AgEnD restarts", restartNow: "Restart now", restartLater: "Later",
|
|
103
103
|
restartConfirm: "Restart AgEnD now?\n\nEvery agent stops and starts again, work in progress is interrupted, and the panel is unreachable for up to a minute. A notice is posted to your chat channel.",
|
|
104
|
+
// S-92: a fleet with no chat connection — its restart is recorded in the dashboard's Notices instead.
|
|
105
|
+
restartConfirmWebOnly: "Restart AgEnD now?\n\nEvery agent stops and starts again, work in progress is interrupted, and the panel is unreachable for up to a minute. It is recorded in this dashboard's Notices.",
|
|
104
106
|
restartOnHost: "Restart AgEnD to use them.",
|
|
105
107
|
restartOnHostChat: "Send /restart in General to use them.",
|
|
106
108
|
restartRefused: "Restart refused: {0}",
|
|
@@ -149,6 +151,7 @@ register("app", {
|
|
|
149
151
|
opFailed: "設定沒有套用", openSettings: "開啟設定",
|
|
150
152
|
restartWaiting: "{0} 項已儲存的變更要在 AgEnD 重新啟動後才會生效", restartNow: "立即重新啟動", restartLater: "稍後",
|
|
151
153
|
restartConfirm: "現在重新啟動 AgEnD?\n\n所有 agent 都會停止再啟動,進行中的工作會被中斷,面板會有最多約一分鐘無法連線。聊天頻道會收到一則通知。",
|
|
154
|
+
restartConfirmWebOnly: "現在重新啟動 AgEnD?\n\n所有 agent 都會停止再啟動,進行中的工作會被中斷,面板會有最多約一分鐘無法連線。這次重新啟動會記錄在這個儀表板的通知中。",
|
|
152
155
|
restartOnHost: "請重新啟動 AgEnD 讓它們生效。",
|
|
153
156
|
restartOnHostChat: "請在 General 傳 /restart 讓它們生效。",
|
|
154
157
|
restartRefused: "重新啟動被拒絕:{0}",
|
|
@@ -158,6 +161,6 @@ register("app", {
|
|
|
158
161
|
search: "搜尋", searchTitle: "搜尋聊天、agent 之間的訊息與任務({0})",
|
|
159
162
|
confirmTitle: "請確認", confirmOk: "繼續", cancel: "取消",
|
|
160
163
|
sidePanelLeave: "不儲存就離開「{0}」?你在那裡的修改會遺失。", sidePanelDiscard: "捨棄修改",
|
|
161
|
-
needs_reason_kiro_choice: "Kiro 需要你決定", needs_reason_hang: "沒有回應", needs_reason_exited: "已結束", needs_reason_assist: "在終端機上等待", needs_reason_question: "正在問你問題", needs_reason_permission: "需要權限", needs_reason_dangerous_command: "危險指令待確認", needs_reason_login: "需要登入", needs_reason_dialog: "停在對話框", needs_reason_terminal_input: "可能在等輸入", needs_reason_auth_paused: "已暫停:需要登入", needs_reason_backend_signin: "後端需要登入", needs_reason_config_invalid: "設定檔需要處理", needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_config_fallback: "正在使用儲存的設定副本", config_history_edit: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。下次重新啟動會改用 {4} 儲存的有效副本。請修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_no_history: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。沒有可用的有效副本,下次重新啟動將無法自動恢復。請在重新啟動前修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_fallback: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 已使用 {4} 儲存的有效副本啟動。請修正 YAML 錯誤並重新載入設定。AgEnD 未更動磁碟上的檔案。", needs_reason_general_windows_offline: "General 所在的 Windows 電腦已離線", needs_reason_general_location_hold: "General 執行位置", needs_reason_native_pane_hold: "Windows
|
|
164
|
+
needs_reason_kiro_choice: "Kiro 需要你決定", needs_reason_hang: "沒有回應", needs_reason_exited: "已結束", needs_reason_assist: "在終端機上等待", needs_reason_question: "正在問你問題", needs_reason_permission: "需要權限", needs_reason_dangerous_command: "危險指令待確認", needs_reason_login: "需要登入", needs_reason_dialog: "停在對話框", needs_reason_terminal_input: "可能在等輸入", needs_reason_auth_paused: "已暫停:需要登入", needs_reason_backend_signin: "後端需要登入", needs_reason_config_invalid: "設定檔需要處理", needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_config_fallback: "正在使用儲存的設定副本", config_history_edit: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。下次重新啟動會改用 {4} 儲存的有效副本。請修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_no_history: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。沒有可用的有效副本,下次重新啟動將無法自動恢復。請在重新啟動前修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_fallback: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 已使用 {4} 儲存的有效副本啟動。請修正 YAML 錯誤並重新載入設定。AgEnD 未更動磁碟上的檔案。", needs_reason_general_windows_offline: "General 所在的 Windows 電腦已離線", needs_reason_general_location_hold: "General 執行位置", needs_reason_native_pane_hold: "Windows Agent 需要處理", needs_reason_crashed: "已崩潰", needs_reason_usage_limit: "用量已達上限 · 恢復時間未知", needs_reason_delivery_uncertain: "無法確認是否送達", needs_reason_delivery_failed: "傳送失敗", needs_reason_missed_offline: "AgEnD 離線時錯過", needs_reason_task_review: "等你確認", needs_reason_task_blocked: "卡住,在問你",
|
|
162
165
|
},
|
|
163
166
|
});
|
|
@@ -347,9 +347,10 @@ function hubMarks() {
|
|
|
347
347
|
return { hub: tokens.includes("hub"), member: tokens.includes("member") };
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
|
-
* The Hub workspace's sidebar
|
|
351
|
-
*
|
|
352
|
-
*
|
|
350
|
+
* The Hub workspace's sidebar — cid-hub-shell-parity (the user's approved mockup): the fleet dashboard's own, so the two
|
|
351
|
+
* read as one product (style guide rule 1). The brand is one line ("AgEnD Hub"; the Hub's name, when it has one, is its
|
|
352
|
+
* tooltip — never a second line, never repeated); the rows, the conversation list and the foot come from the Hub's lazy
|
|
353
|
+
* module (HubSide, HubFoot). An older Hub module without them gets its HubNav and session row, or the three page links.
|
|
353
354
|
*/
|
|
354
355
|
function HubSidebar({ route }) {
|
|
355
356
|
const name = String(document.body?.dataset?.hubName || "").trim();
|
|
@@ -358,28 +359,31 @@ function HubSidebar({ route }) {
|
|
|
358
359
|
aria-current=${tab === key ? "page" : undefined} onClick=${closeDrawer}><${Icon} name=${icon} /><span class="grow">${t(`hubShell.${key}`)}</span></a>`;
|
|
359
360
|
return html`<aside id="sidebar" class="sidebar" aria-label=${t("app.menu")}>
|
|
360
361
|
<div class="side-head" data-trust="navigation">
|
|
361
|
-
<a class="brand
|
|
362
|
-
<button type="button" class="icon-btn side-collapse" onClick=${toggleSidebar} aria-label=${narrow() ? t("app.closeMenu") : t("app.collapse")} title=${narrow() ? t("app.closeMenu") : t("app.collapse")} aria-controls="sidebar"><${Icon} name
|
|
362
|
+
<a class="brand" href="/ui/hub" title=${name || undefined} onClick=${closeDrawer}>${t("hubShell.brand")}</a>
|
|
363
|
+
<button type="button" class="icon-btn side-collapse" onClick=${toggleSidebar} aria-label=${narrow() ? t("app.closeMenu") : t("app.collapse")} title=${narrow() ? t("app.closeMenu") : t("app.collapse")} aria-controls="sidebar"><${Icon} name=${narrow() ? "close" : "sidebar"} /></button>
|
|
363
364
|
</div>
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
</nav>
|
|
367
|
-
<div class="side-foot" data-trust="navigation"><${HubSessionSlot} /></div>
|
|
365
|
+
<${HubSideSlot} fallback=${html`<nav data-trust="navigation" class="side-nav" aria-label=${t("app.menu")}>${row("ask", "/ui/hub", "chat")}${row("exposures", "/ui/hub/exposures", "globe")}${row("admin", "/ui/hub/admin", "key")}</nav>`} />
|
|
366
|
+
<div class="side-foot" data-trust="navigation"><${HubFootSlot} /></div>
|
|
368
367
|
<${SidebarResize} />
|
|
369
368
|
</aside>`;
|
|
370
369
|
}
|
|
371
|
-
/**
|
|
372
|
-
|
|
370
|
+
/** The Hub's lazy module (panel-hub.js) for the sidebar's parts — imported where it mounts (the browser keeps one copy). */
|
|
371
|
+
const loadHubModule = () => import("/ui/js/panel-hub.js");
|
|
372
|
+
/** The rows and conversation list (HubSide); an older module's HubNav inside the nav; `fallback` until it loads, or when it has neither. */
|
|
373
|
+
function HubSideSlot({ fallback }) {
|
|
373
374
|
const [mod, setMod] = useState(null);
|
|
374
375
|
const [none, setNone] = useState(false);
|
|
375
|
-
useEffect(() => { let live = true;
|
|
376
|
-
|
|
376
|
+
useEffect(() => { let live = true; loadHubModule().then((m) => { if (!live) return; if (m.HubSide || m.HubNav) setMod(() => m); else setNone(true); }, () => { if (live) setNone(true); }); return () => { live = false; }; }, []);
|
|
377
|
+
if (mod && mod.HubSide) return html`<${mod.HubSide} onPick=${closeDrawer} />`;
|
|
378
|
+
if (mod && mod.HubNav) return html`<nav data-trust="navigation" class="side-nav hub-side-nav" aria-label=${t("app.menu")}><${mod.HubNav} onPick=${closeDrawer} /></nav>`;
|
|
379
|
+
return none ? fallback : null;
|
|
377
380
|
}
|
|
378
|
-
/** The
|
|
379
|
-
function
|
|
381
|
+
/** The foot (HubFoot: Settings and the session row); an older module's session row. */
|
|
382
|
+
function HubFootSlot() {
|
|
380
383
|
const [mod, setMod] = useState(null);
|
|
381
|
-
useEffect(() => { let live = true;
|
|
382
|
-
|
|
384
|
+
useEffect(() => { let live = true; loadHubModule().then((m) => { if (live && (m.HubFoot || m.HubSessionMenu)) setMod(() => m); }, () => {}); return () => { live = false; }; }, []);
|
|
385
|
+
if (!mod) return null;
|
|
386
|
+
return mod.HubFoot ? html`<${mod.HubFoot} />` : html`<${mod.HubSessionMenu} />`;
|
|
383
387
|
}
|
|
384
388
|
/** A member fleet's "My fleet ↔ Hub" switcher: its module loads only on a member page, and shows only once paired. */
|
|
385
389
|
function HubSwitcherSlot() {
|
|
@@ -388,6 +392,15 @@ function HubSwitcherSlot() {
|
|
|
388
392
|
return mod ? html`<${mod} />` : null;
|
|
389
393
|
}
|
|
390
394
|
|
|
395
|
+
// Fleet-only lazy boundary: the Hub module graph never reaches member Settings or its private inbox.
|
|
396
|
+
function MemberPairingNoticesSlot() {
|
|
397
|
+
const [Component, setComponent] = useState(null);
|
|
398
|
+
useEffect(() => { let live = true; import("/ui/js/hub-quick-pairing.js").then(m => {
|
|
399
|
+
if (live && m.MemberPairingNotices) setComponent(() => m.MemberPairingNotices);
|
|
400
|
+
}, () => {}); return () => { live = false; }; }, []);
|
|
401
|
+
return Component ? html`<${Component} />` : null;
|
|
402
|
+
}
|
|
403
|
+
|
|
391
404
|
function Sidebar({ route, onNewInstance, viewOnly }) {
|
|
392
405
|
const app = useStore(appStore);
|
|
393
406
|
const shell = useStore(shellStore);
|
|
@@ -819,9 +832,9 @@ export async function refreshRestartPending() {
|
|
|
819
832
|
* Restart now asks first and is never automatic (the leader's default: a Save that restarted on its own once took 33
|
|
820
833
|
* agents down at once). Asked again whenever a Save or a restart settles. Left to the Save in hand while it runs or offers
|
|
821
834
|
* its own restart (Settings' card, or the line above in another panel). Over a temporary public link it says so and
|
|
822
|
-
* offers nothing. Restart now
|
|
823
|
-
*
|
|
824
|
-
*
|
|
835
|
+
* offers nothing. S-92 (#3326 D1): Restart now whenever the page can restart — with no Settings job behind it (a hand
|
|
836
|
+
* edit) too: the server makes the job (`restartRunner(null)`). The muted hint (#3363's words: chat fleets send /restart in
|
|
837
|
+
* General, web-only fleets are told to restart AgEnD, no command) is for a page that cannot restart.
|
|
825
838
|
*/
|
|
826
839
|
function RestartLine() {
|
|
827
840
|
const { restartPending: pending, settingsOp: op, restartRunner, connections } = useStore(appStore);
|
|
@@ -833,13 +846,13 @@ function RestartLine() {
|
|
|
833
846
|
if (op && op.job && op.job.targets && op.job.targets.some((r) => r.target === "fleet" && r.status === "restart-required")) return null;
|
|
834
847
|
const seen = `${pending.jobId}|${pending.keys.join(",")}`;
|
|
835
848
|
if (later === seen) return null;
|
|
836
|
-
const canRestart =
|
|
849
|
+
const canRestart = typeof restartRunner === "function";
|
|
837
850
|
// connections === 0 is web-only; null is unknown — do not name General.
|
|
838
|
-
const hint = !
|
|
839
|
-
? t(connections > 0 ? "app.restartOnHostChat" : "app.restartOnHost")
|
|
840
|
-
: null;
|
|
851
|
+
const hint = !canRestart ? t(connections > 0 ? "app.restartOnHostChat" : "app.restartOnHost") : null;
|
|
841
852
|
const restart = async () => {
|
|
842
|
-
|
|
853
|
+
// S-92: on a fleet with no chat connection the restart is announced in the dashboard's Notices, not a chat channel.
|
|
854
|
+
const message = t(connections === 0 ? "app.restartConfirmWebOnly" : "app.restartConfirm");
|
|
855
|
+
if (!(await confirmDialog({ title: t("app.restartNow"), message, confirmLabel: t("app.restartNow"), danger: true }))) return;
|
|
843
856
|
setBusy(true);
|
|
844
857
|
let res;
|
|
845
858
|
try { res = await restartRunner(pending.jobId); } catch { res = { ok: false }; }
|
|
@@ -1003,6 +1016,7 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
|
|
|
1003
1016
|
<main id="main" class="main" tabindex="-1" inert=${shell.drawer && narrow() ? true : undefined}>
|
|
1004
1017
|
<${ConnectionLine} />
|
|
1005
1018
|
<${StartupLine} />
|
|
1019
|
+
${viewOnly || guest || hub || !hubMarks().member || (nav.route?.panel === "settings" && nav.route.section === "hub") ? null : html`<${MemberPairingNoticesSlot} />`}
|
|
1006
1020
|
${viewOnly || guest || hub ? null : html`<${OperationLine} route=${nav.route} />`}
|
|
1007
1021
|
${viewOnly || guest || hub ? null : html`<${RestartLine} />`}
|
|
1008
1022
|
${viewOnly || guest || hub || !shell.banner ? null : html`<${shell.banner} />`}
|
package/dist/ui/shared/app.css
CHANGED
|
@@ -420,7 +420,7 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
|
|
|
420
420
|
.dlg-box { display: flex; flex-direction: column; max-height: 85vh; }
|
|
421
421
|
.dlg-box:focus { outline: none; } /* the open dialog's first stop (ui-dialog.js): no ring; Tab moves on with one */
|
|
422
422
|
.dlg-head { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-4) var(--s-3) var(--s-2) var(--s-5); }
|
|
423
|
-
.dlg-title { flex: 1; font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
|
|
423
|
+
.dlg-title { flex: 1; font-size: var(--fs-lg); font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
|
|
424
424
|
.dlg-body { padding: var(--s-2) var(--s-5) var(--s-4); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-3); }
|
|
425
425
|
.dlg-actions { display: flex; justify-content: flex-end; gap: var(--s-2); padding: var(--s-3) var(--s-5) var(--s-5); }
|
|
426
426
|
/* A drawer (ui-dialog.js `drawer`): on a desk, the right edge at full height, the page in view beside it. A phone keeps
|
|
@@ -550,12 +550,12 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
|
|
|
550
550
|
.s-setting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; min-width: 0; padding: 14px 0; }
|
|
551
551
|
.s-setting-row + .s-setting-row { border-top: 1px solid var(--border); }
|
|
552
552
|
.s-setting-row .note { margin: 5px 0 0; }
|
|
553
|
-
.p-settings input.s-ui-toggle { appearance: none; position: relative; display: inline-block; flex: none; width: 38px; height: 22px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--border-strong); border-radius: 20px; background: var(--surface-3, var(--surface-2)); cursor: pointer; }
|
|
554
|
-
.p-settings input.s-ui-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-3); transition: transform var(--t-fast); }
|
|
555
|
-
.p-settings input.s-ui-toggle:checked { background: var(--accent); border-color: var(--accent); }
|
|
556
|
-
.p-settings input.s-ui-toggle:checked::after { background: var(--on-accent, #fff); transform: translateX(16px); }
|
|
557
|
-
.p-settings input.s-ui-toggle:disabled { cursor: default; opacity: 0.55; }
|
|
558
|
-
.p-settings input.s-ui-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
|
|
553
|
+
.p-settings input.s-ui-toggle, .p-hub input.s-ui-toggle { appearance: none; position: relative; display: inline-block; flex: none; width: 38px; height: 22px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--border-strong); border-radius: 20px; background: var(--surface-3, var(--surface-2)); cursor: pointer; }
|
|
554
|
+
.p-settings input.s-ui-toggle::after, .p-hub input.s-ui-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-3); transition: transform var(--t-fast); }
|
|
555
|
+
.p-settings input.s-ui-toggle:checked, .p-hub input.s-ui-toggle:checked { background: var(--accent); border-color: var(--accent); }
|
|
556
|
+
.p-settings input.s-ui-toggle:checked::after, .p-hub input.s-ui-toggle:checked::after { background: var(--on-accent, #fff); transform: translateX(16px); }
|
|
557
|
+
.p-settings input.s-ui-toggle:disabled, .p-hub input.s-ui-toggle:disabled { cursor: default; opacity: 0.55; }
|
|
558
|
+
.p-settings input.s-ui-toggle:focus-visible, .p-hub input.s-ui-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
|
|
559
559
|
.s-classic-area { display: flex; flex-direction: column; gap: 16px; }
|
|
560
560
|
.s-classic-area > .s-ap-group { margin-bottom: 0; }
|
|
561
561
|
@media (max-width: 600px) {
|
|
@@ -1266,6 +1266,7 @@ img.amb-p { object-fit: contain; }
|
|
|
1266
1266
|
.dlg-actions .btn { flex: 1; min-height: var(--tap); }
|
|
1267
1267
|
.row-item .btn, .s-row .btn, .n-actions .btn { min-height: var(--tap); }
|
|
1268
1268
|
.s-row .icon-btn { min-width: var(--tap); min-height: var(--tap); }
|
|
1269
|
+
.p-settings .s-company-join :is(.field input, .btn) { min-height: var(--tap); }
|
|
1269
1270
|
.kv { flex-direction: column; align-items: flex-start; gap: 2px; }
|
|
1270
1271
|
}
|
|
1271
1272
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -1793,7 +1794,7 @@ textarea.s-yaml { white-space: pre; overflow-x: auto; }
|
|
|
1793
1794
|
.signin-browser-actions { display: flex; flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); min-width: 0; }
|
|
1794
1795
|
.signin-browser-actions .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
|
|
1795
1796
|
@media (pointer: coarse), (max-width: 899px) {
|
|
1796
|
-
.signin-browser :is(button, a), .signin-browser-actions .btn { min-height: var(--tap); }
|
|
1797
|
+
.signin-browser :is(button, a), .signin-browser-actions .btn, .signin-browser ~ .note .btn { min-height: var(--tap); }
|
|
1797
1798
|
}
|
|
1798
1799
|
@media (max-width: 899px) {
|
|
1799
1800
|
.grid2 { grid-template-columns: minmax(0, 1fr); }
|
|
@@ -176,15 +176,15 @@ register("chat", {
|
|
|
176
176
|
nativeBusy: "Windows CLI 正在執行其他任務,完成後即可傳送;輸入內容會保留。",
|
|
177
177
|
nativeBlocked: "上次 Windows 執行的結束狀態不明。請先確認相關程序已停止,再解除鎖定。",
|
|
178
178
|
nativeRecover: "已確認程序停止,解除鎖定",
|
|
179
|
-
paneHostUpgrade: "這台 Windows 的終端主機仍使用舊版轉接器。請先停止這台電腦的 Windows
|
|
180
|
-
paneCodexSessionUnconfirmed: "無法確認 Windows Codex
|
|
181
|
-
paneSessionUnconfirmed: "無法確認 Windows Claude
|
|
179
|
+
paneHostUpgrade: "這台 Windows 的終端主機仍使用舊版轉接器。請先停止這台電腦的 Windows Agent,重新啟動 Windows,再按「啟動」。已儲存的對話會保留。",
|
|
180
|
+
paneCodexSessionUnconfirmed: "無法確認 Windows Codex 已儲存的對話。這個 Agent 已停止,管理員可以開始新對話。",
|
|
181
|
+
paneSessionUnconfirmed: "無法確認 Windows Claude 已儲存的對話。這個 Agent 已停止,管理員可以開始新對話。",
|
|
182
182
|
paneNewConversation: "開始新對話",
|
|
183
183
|
paneNewConversationConfirm: "要為 {0} 開始新對話嗎?原本的對話識別碼會保留在收據中,也不會重送舊輸入。",
|
|
184
|
-
paneRecoveryNeeded: "無法確認上一個 Windows
|
|
184
|
+
paneRecoveryNeeded: "無法確認上一個 Windows 終端是否已結束。已儲存的對話會保留,也不會重送舊輸入。管理員可在停止這個 Agent 的 Windows 程序後復原。",
|
|
185
185
|
paneRecover: "復原已儲存的對話",
|
|
186
|
-
paneRecoverConfirm: "復原 {0}
|
|
187
|
-
paneProcessesStopped: "
|
|
186
|
+
paneRecoverConfirm: "復原 {0},不重送先前的輸入。請確認這個 Agent 在 Windows 上的所有程序都已停止,再按「啟動」接續已儲存的對話。",
|
|
187
|
+
paneProcessesStopped: "我已停止這個 Agent 在 Windows 上的所有程序。",
|
|
188
188
|
paneRecoverConfirmed: "已停止程序,復原對話",
|
|
189
189
|
nativeComposerHint: "Enter 送出 · Shift+Enter 換行",
|
|
190
190
|
nativeComposerHintTouch: "Return 換行 · 按「送出」傳送",
|
|
@@ -210,8 +210,8 @@ register("chat", {
|
|
|
210
210
|
|
|
211
211
|
cmdConfirm: "清空", cmdConfirmBackend: "切換並重新啟動", cmdRunning: "執行 /{0} 中…", cmdNotCommand: "這裡沒有這個指令——按 Enter 會當成一般訊息送出。", cmdNotGuests: "訪客在這裡不能使用這個指令。", cmdDismiss: "關閉", cmdCommands: "指令",
|
|
212
212
|
compactRunning: "壓縮中…", compactDone: "✅ 對話已壓縮", compactUnknown: "這個後端不會回報壓縮何時完成。",
|
|
213
|
-
compactTimeout: "{0}
|
|
214
|
-
compactLost: "
|
|
213
|
+
compactTimeout: "{0} 分鐘內沒有看到壓縮完成的紀錄,請到 Agent 自己的對話確認。",
|
|
214
|
+
compactLost: "無法再追蹤這次壓縮:指令沒有送到 Agent,或 Agent 已停止、換了後端。",
|
|
215
215
|
compactNotCompacted: "kiro 沒有壓縮對話:對話太短,或壓縮被中止了。",
|
|
216
216
|
cmdChoose: "選擇", cmdCurrent: "目前", cmdSignIn: "登入", cmdSignInTo: "登入 {0}", chipCompact: "壓縮", chipClear: "清空…", chipContext: "已用 {0}% 的 context",
|
|
217
217
|
chipModel: "模型:{0}——選擇其他", chipEffort: "推理強度:{0}——選擇其他",
|
|
@@ -237,7 +237,7 @@ register("chat", {
|
|
|
237
237
|
pvChanged: "預覽已停止——訊息內容變了。請再預覽一次。", pvTruncated: "內容被截斷——請 agent 改用 .html 檔案傳送。",
|
|
238
238
|
pvLoading: "正在讀取檔案…", pvAttOver: "這個檔案超過 50 MB,不提供預覽,請下載後開啟。",
|
|
239
239
|
pvLarge: "這個檔案比較大({0}),仍要預覽嗎?", pvAnyway: "仍要預覽",
|
|
240
|
-
pvAttGone: "
|
|
240
|
+
pvAttGone: "這裡已無法取得這個檔案(檔案已變更,或 Fleet 已重新啟動)。請 agent 再傳一次。",
|
|
241
241
|
pvAttFailed: "無法讀取這個檔案,請再試一次。",
|
|
242
242
|
pvBannerAck: "我知道了", pvBannerAckTitle: "隱藏這則提醒,直到下次登入",
|
|
243
243
|
attGone: "AgEnD 重新啟動後找不到這個檔案(已移動、刪除或變更)。請 agent 再傳一次。", attUnavailable: "無法取得", yesterdayAt: "昨天 {0}",
|
|
@@ -269,17 +269,17 @@ register("chat", {
|
|
|
269
269
|
pvWhyOptin: "還沒允許 HTML 預覽。可從這張卡片的 ⋯ 選單或「設定 → 偏好設定」允許。",
|
|
270
270
|
pvWhyOptinPanel: "還沒允許 HTML 預覽。",
|
|
271
271
|
pvWhyNever: "這台裝置在這個工作階段已關閉預覽。",
|
|
272
|
-
pvWhyOrigin: "預覽已關閉:這個頁面位於 {0}
|
|
272
|
+
pvWhyOrigin: "預覽已關閉:這個頁面位於 {0},但 Fleet 認為它位於 {1}(有會改寫 Host 的反向代理)。請讓外部 Host 原樣傳入,或設定 web.preview_origin。",
|
|
273
273
|
pvUnknownAddress: "未知的網址", pvWhyServer: "這裡無法使用預覽。",
|
|
274
274
|
pvHtmlOver: "這段 HTML 超過 50 MB,不提供預覽,請下載後開啟。",
|
|
275
275
|
pvNoAnswer: "無法預覽:預覽在 3 秒內沒有回應。如果先前的預覽卡住了,它可能還在執行——請在新分頁開啟儀表板。透過 SSH 使用時,也要轉送預覽的連接埠。",
|
|
276
276
|
pvStoppedAnswering: "預覽沒有回應,已將它關閉。", pvSwitchedOff: "這台裝置已關閉預覽。",
|
|
277
|
-
pvAnother: "另一個預覽已開始。", pvWrongBoot: "
|
|
277
|
+
pvAnother: "另一個預覽已開始。", pvWrongBoot: "無法預覽:預覽連接埠上回應的不是這個 Fleet。",
|
|
278
278
|
pvBanner: "預覽會在隔離的框架裡執行 agent 的 HTML。它無法使用你的登入,但可能把資料傳出去。只預覽你信任的內容。預覽可能讓這個分頁變慢或卡住。",
|
|
279
|
-
pvServer_fleetOff: "
|
|
279
|
+
pvServer_fleetOff: "這個 Fleet 已關閉預覽(web.preview: false)。", pvServer_unchecked: "無法確認這個網址。",
|
|
280
280
|
pvServer_noPort: "預覽沒有可用的連接埠:請設定 web.preview_port(health_port 已是最大的連接埠)。",
|
|
281
281
|
pvServer_notListed: "{0} 不提供預覽:請把這個網址(含連接埠)加入 web.allowed_hosts,並設定 web.preview_origin。",
|
|
282
|
-
pvServer_needOrigin: "
|
|
282
|
+
pvServer_needOrigin: "透過通道或反向代理開啟儀表板時,預覽需要設定 web.preview_origin。",
|
|
283
283
|
pvServer_needHttps: "以 https 開啟儀表板時,預覽需要 https 的 web.preview_origin。",
|
|
284
284
|
pvServer_sameOrigin: "預覽的來源不能和儀表板相同。",
|
|
285
285
|
pvServer_publicLink: "公開連結的預覽已關閉(web.preview_on_public_link: false)。要預覽,請在執行 AgEnD 的那台機器上開啟儀表板。",
|
|
@@ -84,3 +84,15 @@
|
|
|
84
84
|
|
|
85
85
|
/* An HTML block's Download needs the preview (#3226 E): not offered in the Hub's thread until then. */
|
|
86
86
|
.hub-scroller .pv-dl { display: none; }
|
|
87
|
+
/* cid-hub-shell-parity: the Hub's sidebar is the dashboard's own (side-row, side-new, side-label, side-foot, prefs-pop);
|
|
88
|
+
only what the Hub adds is here — its conversation filter, the list's count and empty line, and its foot's two parts. */
|
|
89
|
+
.hub-side-rooms .hub-rooms { padding: 0 var(--s-1); }
|
|
90
|
+
.hub-side-filter { display: flex; align-items: center; gap: var(--s-2); margin: 0 var(--s-2) var(--s-2); padding: 0 var(--s-2);
|
|
91
|
+
background: var(--surface); border-radius: var(--r-sm); color: var(--text-3); }
|
|
92
|
+
.hub-side-filter input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); padding: 7px 0; font: inherit; font-size: var(--fs-sm); outline: none; }
|
|
93
|
+
.hub-side-rooms .inst-head > .count { padding: var(--s-3) var(--s-3) var(--s-1); color: var(--text-3); font-size: var(--fs-xs); }
|
|
94
|
+
.side-foot > .hub-prefs { flex: 1; min-width: 0; }
|
|
95
|
+
.side-foot > .hub-session-row, .hub-session-row > .menu, .hub-session-row > .menu > .side-row { width: 100%; min-width: 0; }
|
|
96
|
+
/* The foot is the sidebar's bottom: its session menu opens upward (as the dashboard's), never below the screen. */
|
|
97
|
+
.hub-session-row .hub-session-menu .menu-list { top: auto; bottom: calc(100% + 6px); left: auto; right: 0; max-width: calc(var(--sidebar-w, 260px) - 2 * var(--s-2)); }
|
|
98
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* #3298 S-89: the Hub's signed-in welcome and Administration → Group permissions. Its own stylesheet (linked by
|
|
2
|
+
hub-group-strings.js) so a tab holding an older hub-chat.css or hub-owner.css still draws these pages. Built on the shared
|
|
3
|
+
card / s-row / field / btn / tag pieces; only the layout of the two entries and the group rows is here. */
|
|
4
|
+
.hub-home.has-welcome .hub-home-pick.hub-home-welcome { align-items: flex-start; justify-content: flex-start; overflow-y: auto; }
|
|
5
|
+
.hub-welcome-page { width: 100%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-3); }
|
|
6
|
+
.hub-welcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3); }
|
|
7
|
+
.hub-welcome-card { display: flex; flex-direction: column; gap: var(--s-2); min-height: 180px; }
|
|
8
|
+
.hub-welcome-card h3 { font-size: var(--fs-lg, 1.15rem); margin: 0; }
|
|
9
|
+
.hub-welcome-actions { margin-top: auto; display: flex; gap: var(--s-2); }
|
|
10
|
+
.hub-groups-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
|
|
11
|
+
.hub-welcome-card.is-off h3 { color: var(--text-2); }
|
|
12
|
+
.hub-welcome-fleets { margin: 0; padding-left: var(--s-4); }
|
|
13
|
+
@media (max-width: 899px) {
|
|
14
|
+
/* A phone shows the welcome first, then the chat list under it. */
|
|
15
|
+
.hub-home.has-welcome { flex-direction: column; overflow-y: auto; }
|
|
16
|
+
.hub-home.has-welcome .hub-home-pick.hub-home-welcome { display: block; flex: none; padding: var(--s-3); }
|
|
17
|
+
.hub-home.has-welcome .hub-home-list { flex: none; overflow: visible; }
|
|
18
|
+
}
|
|
19
|
+
/* A group's DN takes its own full line; its permissions, fleets and Remove wrap under it (hub-owner.css rows don't wrap). */
|
|
20
|
+
.hub-rows .s-row.hub-row.hub-group-row { flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
|
|
21
|
+
.hub-rows .s-row.hub-row.hub-group-row > .hub-row-text { flex: 1 1 100%; }
|
|
22
|
+
.hub-group-dn { overflow-wrap: anywhere; }
|
|
23
|
+
.hub-group-cap { display: inline-flex; align-items: center; gap: var(--s-1); white-space: nowrap; }
|
|
24
|
+
.hub-group-fleets { display: inline-flex; align-items: center; gap: var(--s-1); }
|
|
25
|
+
.hub-group-fleets input { width: 4.5em; }
|
|
26
|
+
.hub-groups-impact ul { margin: var(--s-1) 0 var(--s-2); padding-left: var(--s-4); }
|
|
27
|
+
/* A phone's Remove is a full touch target whichever line it wraps onto (Fable #3424 N1: its size followed the font). */
|
|
28
|
+
@media (max-width: 899px) { .hub-rows .s-row.hub-row.hub-group-row > .btn { min-height: var(--tap); min-width: var(--tap); } }
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
/* ── My shared agents and Administration (#3226 C): Settings' page layout ── */
|
|
4
4
|
.hub-page-body { padding: var(--s-4) max(var(--s-5), env(safe-area-inset-right)) var(--s-6) max(var(--s-5), env(safe-area-inset-left)); }
|
|
5
5
|
.hub-owner { width: 100%; max-width: 860px; min-width: 0; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-3); }
|
|
6
|
+
/* The page body is the gutter (the dashboard's: 20 px, 16 px on a phone); its column adds none — a .col's own padding
|
|
7
|
+
on top of it was a double gutter (Argon #11: 32 px on a phone). */
|
|
8
|
+
.hub-page-body > .col { padding: 0; }
|
|
6
9
|
.hub-crumb { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-2); font-size: var(--fs-sm); text-decoration: none; width: fit-content; }
|
|
7
10
|
.hub-rows { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-2); }
|
|
8
11
|
.hub-rows .s-row.hub-row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: nowrap; background: var(--surface-2); }
|
|
@@ -26,8 +29,23 @@
|
|
|
26
29
|
.hub-steps > li.now::before { background: var(--text); color: var(--bg); }
|
|
27
30
|
.hub-step-body > span { display: flex; flex-direction: column; gap: 2px; }
|
|
28
31
|
.hub-step-form { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; width: 100%; }
|
|
29
|
-
.hub-step-form .field { margin: 0; flex: 1; min-width:
|
|
32
|
+
.hub-step-form .field { margin: 0; flex: 1 1 14em; min-width: 14em; } /* a phone: the button wraps under the field, never squeezing it */
|
|
30
33
|
.hub-steps .hub-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; margin: 0; padding: 0; }
|
|
31
34
|
.hub-steps > li::before { align-self: flex-start; margin-top: 1px; }
|
|
32
35
|
.hub-steps .hub-offer > * { text-align: start; align-self: flex-start; justify-self: start; margin-left: 0; } /* hub.css's `.hub-steps small` auto margin would push a short line right */
|
|
33
36
|
@media (max-width: 899px) { .hub-page-body { padding: var(--s-3) var(--s-4) var(--s-6); } }
|
|
37
|
+
/* M-2682: Administration → This Hub — the name form, then what identifies this Hub (labels left; stacked on a phone). */
|
|
38
|
+
.hub-this-form .field { max-width: 32em; }
|
|
39
|
+
.hub-this-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
|
|
40
|
+
.hub-this-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-4); margin: var(--s-4) 0 0; }
|
|
41
|
+
.hub-this-facts dt { color: var(--text-2); }
|
|
42
|
+
.hub-this-facts dd { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); overflow-wrap: anywhere; }
|
|
43
|
+
@media (max-width: 899px) {
|
|
44
|
+
.hub-this-facts { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
|
|
45
|
+
.hub-this-facts dd { margin-bottom: var(--s-2); }
|
|
46
|
+
/* A phone's Administration: every button and text field is a full touch target, so one class combination keeps one height. */
|
|
47
|
+
.hub-admin .btn, .hub-admin .field input { min-height: var(--tap); }
|
|
48
|
+
}
|
|
49
|
+
.hub-page-lead { margin: 0; }
|
|
50
|
+
/* A phone's page-level controls are tap targets (--tap): the chats home's New chat row and a sub-page's crumb. */
|
|
51
|
+
@media (max-width: 600px) { .hub-home-list .side-new, .hub-crumb { min-height: var(--tap); } .hub-crumb { min-width: var(--tap); } }
|
package/dist/ui/shared/hub.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* AgEnD Hub P1, slice 3: the Hub pages' own stylesheet, linked by their lazy modules (hub-strings.js linkHubCss), so a
|
|
2
2
|
tab opened before an upgrade (an app.css without these rules) draws them the same. Never loaded while the Hub is off. */
|
|
3
|
-
.hub-brand-name { color: var(--text-2); font-weight: var(--fw-medium); }
|
|
4
3
|
.hub-switch { display: flex; gap: 2px; margin: 0 var(--s-3) var(--s-2); padding: 2px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
|
|
5
4
|
.hub-switch-item { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-height: 28px; padding: 0 var(--s-2);
|
|
6
5
|
border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
@@ -13,10 +12,14 @@ a.hub-switch-item:focus-visible { outline: 2px solid var(--focus); outline-offse
|
|
|
13
12
|
.hub-state { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
|
|
14
13
|
.hub-state h4 { margin: 0; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
|
|
15
14
|
.hub-origin code { overflow-wrap: anywhere; }
|
|
15
|
+
@media (max-width: 899px) {
|
|
16
|
+
.p-hub .hub-company-join > .check, .p-hub .hub-company-join > details > summary { min-height: var(--tap); }
|
|
17
|
+
}
|
|
16
18
|
.hub-fp { display: grid; gap: var(--s-1); }
|
|
17
19
|
.hub-fp-label { font-size: var(--fs-sm); color: var(--text-2); }
|
|
18
20
|
.hub-fp-groups { font-family: var(--font-mono); font-size: var(--fs-md); letter-spacing: .04em; word-spacing: .3em; overflow-wrap: anywhere; }
|
|
19
21
|
.hub-fp-full { font-family: var(--font-mono); font-size: var(--fs-xs); overflow-wrap: anywhere; color: var(--text-2); }
|
|
22
|
+
.hub-security-notices { flex: none; max-height: 38vh; overflow: auto; }
|
|
20
23
|
.hub-fp .btn-link { justify-self: start; }
|
|
21
24
|
.hub-steps-lead { margin: var(--s-1) 0 0; }
|
|
22
25
|
.hub-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
|
|
@@ -40,6 +43,10 @@ a.hub-switch-item:focus-visible { outline: 2px solid var(--focus); outline-offse
|
|
|
40
43
|
.hub-ask, .hub-mine, .hub-admin { display: grid; gap: var(--s-3); align-content: start; }
|
|
41
44
|
.hub-body > * { width: 100%; max-width: 860px; min-width: 0; }
|
|
42
45
|
.hub-body .card { margin-bottom: 0; }
|
|
46
|
+
/* The Notices page (the only place the security notices show, Argon #5): the card wears the page's own card frame (the
|
|
47
|
+
Settings layout's), the whole height of the page — no 38vh box scrolling inside it there. */
|
|
48
|
+
.hub-notices-col > .hub-security-notices { margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: 10px; box-shadow: none; max-height: none; overflow: visible; }
|
|
49
|
+
@media (max-width: 600px) { .hub-notices-col > .hub-security-notices { padding: 16px; } }
|
|
43
50
|
@media (max-width: 899px) { .hub-body { padding: var(--s-3) var(--s-4) var(--s-6); } }
|
|
44
51
|
.hub-signin { max-width: 420px; }
|
|
45
52
|
.hub-signin h2 { margin: 0 0 var(--s-1); }
|
|
@@ -50,7 +50,7 @@ export const HOST_MESSAGES = [
|
|
|
50
50
|
["unknown probe", "不支援的檢查"],
|
|
51
51
|
["fleet not loaded", "設定尚未載入"],
|
|
52
52
|
["another secret operation is still running", "另一個寫入 token 的操作還在進行中"],
|
|
53
|
-
["setup cleanup failed;
|
|
53
|
+
["setup cleanup failed; some saved changes may not have been undone. This page cannot repair the incomplete rollback", "設定的復原失敗;部分已儲存的變更可能未能撤銷。這個頁面無法修復未完成的復原"],
|
|
54
54
|
["setup was not committed", "設定沒有寫入"],
|
|
55
55
|
["Token verification is not permitted over a public link", "公開連結不能驗證 token"],
|
|
56
56
|
["This bot token is already being polled by the running fleet. Enter the group id by hand, or stop AgEnD first.", "執行中的 fleet 正在使用這個 bot token。請手動輸入群組 id,或先停止 AgEnD。"],
|
|
@@ -64,6 +64,8 @@ export const HOST_MESSAGES = [
|
|
|
64
64
|
/** What the host answers with a code instead of words (the confirmation gate, settings-effect.ts; the finish step). */
|
|
65
65
|
export const HOST_CODES = {
|
|
66
66
|
en: {
|
|
67
|
+
// Cached servers may still return this older message; its recovery copy follows the current page.
|
|
68
|
+
"setup cleanup failed; inspect configuration on the host": "setup cleanup failed; some saved changes may not have been undone. This page cannot repair the incomplete rollback",
|
|
67
69
|
invalid_quickstart: "This setup is not valid. Review it and try again.",
|
|
68
70
|
connection_exists: "That connection already exists — a new connection never replaces one.",
|
|
69
71
|
agent_conflict: "That agent name is taken, or that agent does not exist.",
|
|
@@ -76,6 +78,7 @@ export const HOST_CODES = {
|
|
|
76
78
|
signin_cleanup_failed: "The login process could not be confirmed closed. Close it on the host and restart setup before retrying.",
|
|
77
79
|
},
|
|
78
80
|
"zh-TW": {
|
|
81
|
+
"setup cleanup failed; inspect configuration on the host": "設定的復原失敗;部分已儲存的變更可能未能撤銷。這個頁面無法修復未完成的復原",
|
|
79
82
|
invalid_quickstart: "這份設定無效。請檢查後再試一次。",
|
|
80
83
|
connection_exists: "這個連線已存在 —— 新的連線不會取代既有的連線。",
|
|
81
84
|
agent_conflict: "這個 agent 名稱已被使用,或那個 agent 不存在。",
|
package/dist/ui/shared/signin.js
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
const $ = (id) => document.getElementById(id);
|
|
12
12
|
const T = {
|
|
13
13
|
en: {
|
|
14
|
+
signout_unsaved: "Signed out for now, but the change could not be saved: a restart may bring the session back. This page cannot repair session storage.",
|
|
14
15
|
checking: "Checking your session…", title: "Sign in to AgEnD", lead: "Enter your sign-in code.",
|
|
15
16
|
label: "One-time code", submit: "Sign in", working: "Signing in…",
|
|
16
17
|
hint: "No code? Send /web in General, then press a sign-in button to get one.",
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
dev_qr: "Or scan this QR code with a device that is already signed in as the owner. It holds this page's address and the code above, nothing else.",
|
|
47
48
|
},
|
|
48
49
|
"zh-TW": {
|
|
50
|
+
signout_unsaved: "暫時登出了,但變更沒能儲存:重新啟動後這個工作階段可能會回來。這個頁面無法修復工作階段的儲存問題。",
|
|
49
51
|
checking: "正在確認登入狀態…", title: "登入 AgEnD", lead: "輸入登入碼。",
|
|
50
52
|
label: "一次性登入碼", submit: "登入", working: "登入中…",
|
|
51
53
|
hint: "沒收到?在 General 傳 /web,再按登入按鈕取碼。",
|
|
@@ -197,7 +199,7 @@
|
|
|
197
199
|
// A sign-out the server could not make durable says so here, once (agend-auth.js signOut).
|
|
198
200
|
try {
|
|
199
201
|
const note = sessionStorage.getItem("agend_signout_note");
|
|
200
|
-
if (note) { sessionStorage.removeItem("agend_signout_note"); $("msg").textContent = note; }
|
|
202
|
+
if (note) { sessionStorage.removeItem("agend_signout_note"); $("msg").textContent = note.startsWith("Signed out for now, but the change could not be saved") ? t("signout_unsaved") : note; }
|
|
201
203
|
} catch { /* private mode */ }
|
|
202
204
|
$("code").focus();
|
|
203
205
|
offerResend();
|