@songsid/agend 2.3.5-alpha.6 → 2.3.5-alpha.8
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-view.d.ts +17 -0
- package/dist/accounts-view.js +33 -6
- package/dist/accounts-view.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 +15 -2
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/web-authority.d.ts +13 -0
- package/dist/authority/web-authority.js +12 -0
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/claude-code.js +47 -9
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/kiro.js +1 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/access-manager.d.ts +1 -6
- package/dist/channel/access-manager.js +4 -94
- package/dist/channel/access-manager.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +0 -2
- package/dist/channel/adapters/discord.js +0 -8
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +0 -3
- package/dist/channel/adapters/telegram.js +1 -30
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/types.d.ts +0 -2
- package/dist/cli.js +1 -19
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +2 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/fleet-manager.d.ts +84 -3
- package/dist/fleet-manager.js +494 -51
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +22 -7
- package/dist/general-knowledge/steering/core-rules.md +7 -5
- package/dist/hub/buttons.js +4 -2
- package/dist/hub/buttons.js.map +1 -1
- package/dist/hub/catalog.d.ts +2 -2
- package/dist/hub/catalog.js +233 -48
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.js +2 -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 +11 -1
- package/dist/hub/compose/server.js +70 -3
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/directory/directory.d.ts +1 -1
- package/dist/hub/directory/directory.js +32 -23
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/index.d.ts +1 -1
- package/dist/hub/directory/types.d.ts +8 -2
- package/dist/hub/directory/types.js.map +1 -1
- 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-context.d.ts +23 -0
- package/dist/hub/group-policy/admin-context.js +52 -0
- package/dist/hub/group-policy/admin-context.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 +243 -0
- package/dist/hub/group-policy/admin-dto.js +55 -0
- package/dist/hub/group-policy/admin-dto.js.map +1 -0
- 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/admin-inventory.d.ts +24 -0
- package/dist/hub/group-policy/admin-inventory.js +72 -0
- package/dist/hub/group-policy/admin-inventory.js.map +1 -0
- package/dist/hub/group-policy/admin-read.d.ts +21 -0
- package/dist/hub/group-policy/admin-read.js +90 -0
- package/dist/hub/group-policy/admin-read.js.map +1 -0
- package/dist/hub/group-policy/authorization.d.ts +60 -0
- package/dist/hub/group-policy/authorization.js +292 -0
- package/dist/hub/group-policy/authorization.js.map +1 -0
- 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 +22 -2
- package/dist/hub/group-policy/resources.js +119 -25
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.d.ts +19 -2
- package/dist/hub/group-policy/store.js +66 -5
- 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 +133 -12
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.d.ts +23 -3
- package/dist/hub/http/core.js +138 -5
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +10 -0
- package/dist/hub/member/pairing-api.d.ts +2 -0
- package/dist/hub/member/pairing-api.js +1 -0
- 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 +58 -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 +241 -0
- package/dist/hub/pairing-notices.js.map +1 -0
- package/dist/hub/pairing.d.ts +33 -1
- package/dist/hub/pairing.js +315 -15
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/policy.d.ts +3 -1
- package/dist/hub/policy.js +13 -6
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +32 -0
- package/dist/hub/protocol.js +6 -1
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/rooms.d.ts +1 -0
- package/dist/hub/rooms.js +76 -26
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +4 -1
- package/dist/hub/runtime.js +11 -0
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.js +4 -0
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/sessions.js +2 -1
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/store.d.ts +10 -1
- package/dist/hub/store.js +7 -4
- package/dist/hub/store.js.map +1 -1
- package/dist/hub/types.d.ts +15 -2
- package/dist/locale.js +48 -36
- 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/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/runtime-api.js +10 -2
- package/dist/runtime-api.js.map +1 -1
- package/dist/settings-api.d.ts +2 -1
- package/dist/settings-api.js +7 -5
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.d.ts +10 -0
- package/dist/settings-change.js +17 -1
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +25 -1
- package/dist/settings-confirmation.js +11 -3
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.js +18 -6
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +21 -0
- package/dist/settings-http-confirmation.js +74 -3
- package/dist/settings-http-confirmation.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.js +3 -1
- package/dist/structured-signin.js.map +1 -1
- package/dist/tips.js +4 -4
- package/dist/tips.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/dist/ui/accounts-keepalive.js +14 -8
- package/dist/ui/accounts-manage.js +31 -13
- package/dist/ui/accounts-view.js +93 -35
- package/dist/ui/backend-signin.js +22 -4
- package/dist/ui/general-location.js +28 -14
- package/dist/ui/hub-chat-store.js +2 -1
- package/dist/ui/hub-client.js +43 -3
- package/dist/ui/hub-grant-strings.js +13 -0
- package/dist/ui/hub-group-policy.js +170 -0
- package/dist/ui/hub-group-strings.js +97 -0
- package/dist/ui/hub-owner-strings.js +6 -2
- package/dist/ui/hub-pairing-progress-strings.js +15 -0
- package/dist/ui/hub-quick-pairing.js +202 -0
- package/dist/ui/hub-quick-strings.js +43 -0
- package/dist/ui/hub-read-strings.js +7 -0
- package/dist/ui/hub-strings.js +4 -2
- package/dist/ui/hub-welcome.js +99 -0
- package/dist/ui/panel-hub.js +115 -33
- package/dist/ui/panel-log.js +2 -2
- package/dist/ui/panel-runtimes.js +14 -6
- package/dist/ui/panel-settings.js +12 -21
- package/dist/ui/runtime-cli-install.js +24 -4
- package/dist/ui/settings-apply.js +12 -5
- package/dist/ui/settings-confirm.js +28 -0
- package/dist/ui/settings-devices.js +8 -12
- package/dist/ui/settings-dialogs.js +3 -1
- package/dist/ui/settings-hub-membership.js +24 -10
- package/dist/ui/settings-hub-section.js +60 -0
- package/dist/ui/settings-hub.js +58 -13
- package/dist/ui/settings-layout.js +6 -2
- package/dist/ui/settings-named-test.js +2 -2
- package/dist/ui/settings-outside.js +1 -1
- package/dist/ui/settings-quota-notice.js +8 -6
- package/dist/ui/settings-registry.js +3 -0
- package/dist/ui/settings-restart-strings.js +17 -0
- package/dist/ui/settings-strings.js +12 -10
- package/dist/ui/shared/accounts-keepalive.css +11 -6
- package/dist/ui/shared/accounts.css +68 -18
- package/dist/ui/shared/app-i18n.js +7 -2
- package/dist/ui/shared/app-route.js +1 -1
- package/dist/ui/shared/app-shell.js +114 -7
- package/dist/ui/shared/app.css +16 -0
- package/dist/ui/shared/chat-strings.js +8 -8
- package/dist/ui/shared/hub-groups.css +26 -0
- package/dist/ui/shared/hub-owner.css +2 -2
- package/dist/ui/shared/hub-signin.css +24 -0
- package/dist/ui/shared/hub.css +1 -0
- 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/view-strings.js +4 -4
- package/dist/ui/shared/web-authorize.js +4 -4
- package/dist/ui/structured-signin.js +16 -8
- package/dist/update-marker.d.ts +2 -0
- package/dist/update-marker.js.map +1 -1
- package/dist/usage/providers.d.ts +1 -0
- package/dist/usage/providers.js +13 -9
- package/dist/usage/providers.js.map +1 -1
- package/dist/web-api.d.ts +10 -1
- package/dist/web-api.js +40 -11
- 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-remote-access.d.ts +6 -0
- package/dist/web-remote-access.js +10 -1
- package/dist/web-remote-access.js.map +1 -1
- package/dist/web-shell-routes.d.ts +1 -1
- package/dist/web-shell-routes.js +1 -1
- package/dist/web-shell-routes.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/dist/windows-cli-api.d.ts +8 -0
- package/dist/windows-cli-api.js +10 -0
- package/dist/windows-cli-api.js.map +1 -1
- package/package.json +2 -1
|
@@ -16,6 +16,8 @@ register("settingsLayout", {
|
|
|
16
16
|
"lead_web-dashboard": "Manage fleet-wide dashboard features, branding and resource limits.",
|
|
17
17
|
lead_access: "Manage sign-in, web authority, guests and sharing.",
|
|
18
18
|
lead_advanced: "Inspect and edit fleet configuration, with effective values kept separate.",
|
|
19
|
+
lead_hub: "Connect this fleet to a team Hub, compare its fingerprint, and choose which agents to share there.",
|
|
20
|
+
lead_notifications: "Choose when account usage reminders are sent, and to whom.",
|
|
19
21
|
editor: "Configuration editor", effective: "Effective settings (read only)",
|
|
20
22
|
aiAccounts: "AI accounts and keys", aiAccountsHint: "Sign-ins and supported provider keys on the AgEnD host. Windows CLI status is shown under Runtime.",
|
|
21
23
|
classicDefaults: "ClassicBot defaults and access",
|
|
@@ -30,6 +32,8 @@ register("settingsLayout", {
|
|
|
30
32
|
"lead_web-dashboard": "管理整個 Fleet 的網頁功能、品牌與資源限制。",
|
|
31
33
|
lead_access: "管理登入、網頁授權、訪客與對外分享。",
|
|
32
34
|
lead_advanced: "檢視與編輯 Fleet 設定,並區分目前生效的唯讀內容。",
|
|
35
|
+
lead_hub: "將這個 Fleet 連線至團隊 Hub、比對指紋,並選擇要在那裡分享的 Agent。",
|
|
36
|
+
lead_notifications: "設定帳號用量提醒的時機與傳送對象。",
|
|
33
37
|
editor: "設定編輯器", effective: "生效設定(唯讀)",
|
|
34
38
|
aiAccounts: "AI 帳號與金鑰", aiAccountsHint: "管理 AgEnD 主機的登入與支援的供應商金鑰;Windows CLI 狀態請到 Runtime 查看。",
|
|
35
39
|
classicDefaults: "ClassicBot 預設行為與存取",
|
|
@@ -39,13 +43,13 @@ register("settingsLayout", {
|
|
|
39
43
|
register("settingsLayout", {
|
|
40
44
|
en: {
|
|
41
45
|
aiAccounts: "AI sign-ins and API keys", aiAccountsSummary: "Host CLI sign-ins and provider API keys, managed separately.",
|
|
42
|
-
aiHostScope: "Credentials on the AgEnD host", aiAccountsHint: "
|
|
46
|
+
aiHostScope: "Credentials on the AgEnD host and paired computers", aiAccountsHint: "Sign-ins are listed per computer: this AgEnD host, then each paired computer. Provider API keys belong to the host.", aiWindowsLink: "Manage Windows computers and their CLIs in Runtime",
|
|
43
47
|
apiKeysTitle: "Provider API keys", apiKeysHint: "API credentials for supported provider integrations.", apiKeysUnavailableState: "Not offered", apiKeysUnavailable: "Provider API key management is not offered in this session.",
|
|
44
48
|
apiNewPlaceholder: "Enter an API key to verify", apiReplacePlaceholder: "Enter a replacement API key",
|
|
45
49
|
},
|
|
46
50
|
"zh-TW": {
|
|
47
51
|
aiAccounts: "AI 登入與 API 金鑰", aiAccountsSummary: "分開管理主機 CLI 登入與供應商 API 金鑰。",
|
|
48
|
-
aiHostScope: "AgEnD
|
|
52
|
+
aiHostScope: "AgEnD 主機與已配對電腦上的憑證", aiAccountsHint: "登入依電腦列出:先是這台 AgEnD 主機,再來是每台已配對電腦。供應商 API 金鑰屬於主機。", aiWindowsLink: "前往 Runtime 管理 Windows 電腦與 CLI",
|
|
49
53
|
apiKeysTitle: "供應商 API 金鑰", apiKeysHint: "供支援的供應商整合功能使用的 API 憑證。", apiKeysUnavailableState: "目前未提供", apiKeysUnavailable: "此工作階段未提供供應商 API 金鑰管理。",
|
|
50
54
|
apiNewPlaceholder: "輸入要驗證的 API 金鑰", apiReplacePlaceholder: "輸入替換用的 API 金鑰",
|
|
51
55
|
},
|
|
@@ -17,7 +17,7 @@ register("settings", {
|
|
|
17
17
|
ntNotRun: "Not tested (an earlier step failed).",
|
|
18
18
|
ntTimeout: "The test took too long and was stopped. Test again; if it repeats, check this machine's network.",
|
|
19
19
|
ntCancelled: "Your sign-in ended, so nothing was started. Sign in again and test again.",
|
|
20
|
-
ntCleanup: "The test's connector could not be confirmed stopped.
|
|
20
|
+
ntCleanup: "The test's connector could not be confirmed stopped. Restart AgEnD (Restart now, or /restart in General) before testing or opening the link again.",
|
|
21
21
|
ntStep_values: "The domain, port and token",
|
|
22
22
|
ntStep_origin: "This machine answers on port {1}",
|
|
23
23
|
ntStep_tunnel: "The tunnel connects to Cloudflare",
|
|
@@ -60,7 +60,7 @@ register("settings", {
|
|
|
60
60
|
ntNotRun: "未測試(前面的步驟失敗)。",
|
|
61
61
|
ntTimeout: "測試太久,已經停止。請再測一次;如果一直這樣,請檢查這台主機所在的網路。",
|
|
62
62
|
ntCancelled: "你的登入已結束,所以沒有啟動任何東西。請重新登入後再測。",
|
|
63
|
-
ntCleanup: "
|
|
63
|
+
ntCleanup: "無法確認測試用的連接器已經停止。請先重新啟動 AgEnD(立即重新啟動,或在 General 傳 /restart),再測試或開啟連結。",
|
|
64
64
|
ntStep_values: "網域、port 與 token",
|
|
65
65
|
ntStep_origin: "這台主機在 port {1} 回應",
|
|
66
66
|
ntStep_tunnel: "tunnel 連上 Cloudflare",
|
|
@@ -209,7 +209,7 @@ export function OutsideCard() {
|
|
|
209
209
|
return html`<section class="card s-outside" id="outsideCard" ref=${card}><header class="s-auth-section-head"><div><h3>${to("title")}</h3><p id="outLead">${to("lead")}</p></div><span class=${`s-auth-state${s.enrolled ? " is-usable" : ""}`} id="outState">${to(s.enrolled ? "stateOn" : "stateOff")}</span></header>
|
|
210
210
|
<div class="chips s-out-apps" id="outApps" role="list" aria-label=${to("appsLabel")}><span class="tag" role="listitem">Google Authenticator</span><span class="tag" role="listitem">Microsoft Authenticator</span><span class="tag" role="listitem">${to("appOther")}</span></div>
|
|
211
211
|
${!here ? html`<p class="note" id="outHereOnly">${to("hereOnly")}</p>` : null}
|
|
212
|
-
<label class="check"><input id="outSwitch" type="checkbox" checked=${s.outside} disabled=${!here || busy || (!s.enrolled && !s.outside)}
|
|
212
|
+
<label class="check"><input id="outSwitch" class="s-ui-toggle" type="checkbox" role="switch" checked=${s.outside} disabled=${!here || busy || (!s.enrolled && !s.outside)}
|
|
213
213
|
onChange=${(e) => flip(e.target.checked)} /><span>${to("switch")}</span></label>
|
|
214
214
|
${!s.enrolled ? html`<p class="note" id="outNeedApp">${to("needApp")}</p>` : null}
|
|
215
215
|
${s.outside && open && link.url ? html`<p class="note" id="outOpenAt">${to("openAt", link.url)}${link.quick ? ` ${to("quick")}` : ""}</p>` : null}
|
|
@@ -80,10 +80,12 @@ export function QuotaNoticeSettings({ ctx }) {
|
|
|
80
80
|
const effective = { enabled: true, thresholds: [10], periods: ["weekly"], ...parsed.fleet,
|
|
81
81
|
...(selectedBackend ? parsed[`backend:${selectedBackend}`] : {}), ...(scope.startsWith("agent:") || scope.startsWith("classic:") ? parsed[scope] : {}) };
|
|
82
82
|
const update = k => e => setFields(f => ({ ...f, [fieldKey(scope, k)]: e.target.value }));
|
|
83
|
-
|
|
83
|
+
// alpha.6 feedback (#3): the Settings card (card s-group, as Shared agent settings: a title and its note, the fields in the
|
|
84
|
+
// grid), not a bare heading over full-width fields.
|
|
85
|
+
return html`<section class="card s-group" id="quota-notices"><div><h3>${text.heading}</h3><p class="note">${text.hint}</p><p class="note">${text.defaults}</p></div>
|
|
84
86
|
${!supported ? html`<p role="status">${text.old}</p>` : null}
|
|
85
|
-
${!invalid ? html`<p class="
|
|
86
|
-
<fieldset disabled=${!supported} class="s-quota-fields">
|
|
87
|
+
${!invalid ? html`<p class="note" data-quota-effective>${text.effective}: ${effective.enabled ? text.on : text.off} · ${effective.thresholds.map(v => `${v}%`).join(", ") || "—"} · ${effective.periods.join(", ") || "—"}</p>` : null}
|
|
88
|
+
<fieldset disabled=${!supported} class="s-quota-fields grid2">
|
|
87
89
|
<div class="field"><label for="qn-target">${text.target}</label><select id="qn-target" value=${form.target} onChange=${e => setFields(f => ({ ...f, target: e.target.value }))}>
|
|
88
90
|
<option value="general">${text.general}</option>${Object.entries(instances).filter(([n]) => n !== "general").map(([n, c]) => html`<option value=${n}>${c.display_name || n}</option>`)}
|
|
89
91
|
${form.target !== "general" && !Object.hasOwn(instances, form.target) ? html`<option value=${form.target}>${form.target}</option>` : null}
|
|
@@ -94,7 +96,7 @@ export function QuotaNoticeSettings({ ctx }) {
|
|
|
94
96
|
${Object.entries(classic).map(([n, c]) => html`<option value=${`classic:${n}`}>${text.classic} · ${c.name || c.instanceName || n}</option>`)}
|
|
95
97
|
</select></div>
|
|
96
98
|
<div class="field"><label for="qn-enabled">${text.enabled}</label><select id="qn-enabled" value=${value.enabled} onChange=${update("enabled")}><option value="">${text.inherit}</option><option value="on">${text.on}</option><option value="off">${text.off}</option></select></div>
|
|
97
|
-
<div class="field"><label for="qn-thresholds">${text.thresholds}</label><input id="qn-thresholds" value=${value.thresholds} onInput=${update("thresholds")} placeholder="10" /><p class="
|
|
98
|
-
<div class="field"><label for="qn-periods">${text.periods}</label><input id="qn-periods" value=${value.periods} onInput=${update("periods")} placeholder=${text.periodExample} /><p class="
|
|
99
|
-
</fieldset>${invalid ? html`<p class="feedback error" role="alert">${text.error}</p>` : null}<p class="
|
|
99
|
+
<div class="field"><label for="qn-thresholds">${text.thresholds}</label><input id="qn-thresholds" value=${value.thresholds} onInput=${update("thresholds")} placeholder="10" /><p class="note">${text.thresholdHint}</p></div>
|
|
100
|
+
<div class="field"><label for="qn-periods">${text.periods}</label><input id="qn-periods" value=${value.periods} onInput=${update("periods")} placeholder=${text.periodExample} /><p class="note">${text.periodHint}</p></div>
|
|
101
|
+
</fieldset>${invalid ? html`<p class="feedback error" role="alert">${text.error}</p>` : null}<p class="note">${text.sources}</p></section>`;
|
|
100
102
|
}
|
|
@@ -15,6 +15,9 @@ const L = (en, zh) => ({ en, "zh-TW": zh });
|
|
|
15
15
|
/** [id, section, target, labelKey | label, config key, words en, words zh] */
|
|
16
16
|
const ROWS = [
|
|
17
17
|
["general.location", "agent-defaults", "#general-location", null, null, ["general", "windows", "paired PC", "host", "location"], ["General", "Windows", "電腦", "主機", "執行位置"], L("Run General on", "General 執行位置")],
|
|
18
|
+
// alpha.6 feedback (#2): "hub" found nothing — Settings → Hub's cards. Connect to a Hub is drawn once membership is on.
|
|
19
|
+
["hub.membership", "hub", "#hubMemberEnabled", null, "hub_member.enabled", ["hub", "team hub", "membership", "connect", "join", "pair", "share agents"], ["Hub", "團隊 Hub", "成員", "連線", "加入", "配對", "分享"], L("Allow this fleet to connect to a Hub", "允許這個 Fleet 連線至 Hub")],
|
|
20
|
+
["hub.connect", "hub", "#hub-connect", null, null, ["hub", "connect to a hub", "pairing code", "hub address", "fingerprint", "pair", "unpair", "disconnect", "join"], ["Hub", "連線至 Hub", "配對碼", "Hub 位址", "指紋", "配對", "解除配對", "中斷連線", "加入"], L("Connect to a Hub", "連線至 Hub")],
|
|
18
21
|
["quota.notices", "notifications", "#quota-notices", null, "defaults.quota_notice", ["usage", "quota", "notifications", "remaining", "weekly"], ["用量", "額度", "提醒", "通知", "剩餘"], L("Quota notices", "用量提醒")],
|
|
19
22
|
// You · Preferences
|
|
20
23
|
["profile.name", "preferences", "#profile-name", "settings.profileTitle", null, ["name", "display name", "who agents see", "profile"], ["名字", "名稱", "顯示名稱", "個人資料"]],
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// S-92 (#3326 D1): the settings.* words for restarting AgEnD from Settings on a fleet with no chat connection, kept in a file
|
|
2
|
+
// of their own for the same reason as settings-shared-strings.js: a tab opened before an upgrade already holds the old
|
|
3
|
+
// settings-strings.js, and this file's URL is new, so no tab can hold an old copy of it. register() merges these over what
|
|
4
|
+
// settings-strings.js said. Every module that reads one of these keys imports this file after "./settings-strings.js".
|
|
5
|
+
import { register } from "/assets/app-i18n.js";
|
|
6
|
+
|
|
7
|
+
register("settings", {
|
|
8
|
+
en: {
|
|
9
|
+
// On a web-only fleet a restart from Settings is recorded in the dashboard's Notices (there is no chat channel).
|
|
10
|
+
applyRestartHintWebOnly: "This change needs AgEnD itself restarted. You can restart it here.",
|
|
11
|
+
restartFleetConfirmWebOnly: "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.",
|
|
12
|
+
},
|
|
13
|
+
"zh-TW": {
|
|
14
|
+
applyRestartHintWebOnly: "此變更需要重新啟動 AgEnD 本身。可以在這裡重新啟動。",
|
|
15
|
+
restartFleetConfirmWebOnly: "現在重新啟動 AgEnD?\n\n所有 agent 都會停止再啟動,進行中的工作會被中斷,面板會有最多約一分鐘無法連線。這次重新啟動會記錄在這個儀表板的通知中。",
|
|
16
|
+
},
|
|
17
|
+
});
|
|
@@ -126,6 +126,7 @@ register("settings", {
|
|
|
126
126
|
pause: "Pause",
|
|
127
127
|
wake: "Wake",
|
|
128
128
|
accessMode: "Access mode",
|
|
129
|
+
legacyPairing: "pairing (legacy; same as locked)",
|
|
129
130
|
affected: "Affected instances",
|
|
130
131
|
language: "Language (bot replies)",
|
|
131
132
|
defaultBackend: "Default backend",
|
|
@@ -142,7 +143,7 @@ register("settings", {
|
|
|
142
143
|
tokenShow: "Show the token", tokenHide: "Hide the token", tokenIsBot: "This is {0}.", tokenStatus: "Bot token",
|
|
143
144
|
tokenSet: "Token set", tokenSetAs: "Token set · {0}", tokenMissing: "Token missing", tokenReplace: "Replace",
|
|
144
145
|
tokenStoredAs: "The token is stored on this computer in ~/.agend/.env under this name — generated, and only needed if you manage .env yourself.",
|
|
145
|
-
tokenSavedRestart: "Token saved. This connection
|
|
146
|
+
tokenSavedRestart: "Token saved. This connection was added or changed since AgEnD started, so it starts with the new token when AgEnD restarts (see the restart notice at the top of the page).",
|
|
146
147
|
newBotTokenHint: "Paste the bot's token. It is checked with the platform, then stored on this computer — never in the browser.",
|
|
147
148
|
connectionIdOptional: "Connection id (optional)",
|
|
148
149
|
connConnectedAs: "Connected · {0}", connReconnecting: "Reconnecting…", connStarting: "Starting…", connFailed: "Could not connect",
|
|
@@ -286,7 +287,7 @@ register("settings", {
|
|
|
286
287
|
"sec_windows-cli": "Windows CLI",
|
|
287
288
|
sec_runtimes: "Runtime",
|
|
288
289
|
sec_chat: "Chat & connections", "sec_web-dashboard": "Web dashboard", sec_access: "Access & security",
|
|
289
|
-
sec_notifications: "Notifications", sec_advanced: "Advanced", sec_look: "Look", grp_you: "You", grp_fleet: "Fleet",
|
|
290
|
+
sec_notifications: "Notifications", sec_hub: "Hub", sec_advanced: "Advanced", sec_look: "Look", grp_you: "You", grp_fleet: "Fleet",
|
|
290
291
|
classicDefaultsTitle: "ClassicBot defaults", publicLinkTitle: "Public link & fixed address", webDashboardTitle: "Dashboard features", webSettingsLabel: "Web settings",
|
|
291
292
|
stRunning: "Running",
|
|
292
293
|
stPaused: "Paused",
|
|
@@ -507,7 +508,7 @@ register("settings", {
|
|
|
507
508
|
cssError_owner_css_read_only: "This sign-in can view but not change custom CSS.",
|
|
508
509
|
cssError_owner_css_needs_a_signed_in_person: "Sign in in the browser to change custom CSS.",
|
|
509
510
|
cssError_other: "Not saved ({0}).",
|
|
510
|
-
webLead: "How the web dashboard behaves. A change that loosens access (longer sessions, the browser terminal back on or for longer, the public link) waits for a fleet admin to confirm it in
|
|
511
|
+
webLead: "How the web dashboard behaves. A change that loosens access (longer sessions, the browser terminal back on or for longer, the public link) waits for a fleet admin to confirm it: in General in Telegram or Discord, or here on the dashboard where its card offers that; one that tightens it applies at once.",
|
|
511
512
|
webPublicRefused: "Web settings can't be changed over a public link. Open the dashboard at its own address to change them.",
|
|
512
513
|
webSessionTitle: "Sign-in sessions",
|
|
513
514
|
webSessionHint: "For sign-ins at the dashboard's own address (this computer, the LAN, a tailnet). Over a public link (a temporary one or your permanent link), a session lasts at most 8 h, ends after 30 min idle and never outlives the link; an admin's also never lasts longer than these settings (a guest's follows the guest settings). Shortening ends the sessions it now outlives; lengthening applies to new sign-ins and to an existing one's idle time on its next use. Empty = the default.",
|
|
@@ -569,10 +570,10 @@ register("settings", {
|
|
|
569
570
|
vaSessionsTitle: "Authorized sessions", vaSessionsNone: "No session is authorized now.", vaSessionUntil: "Authorized {0} · until {1}",
|
|
570
571
|
vaRevoke: "Revoke web authority", vaRevokeTitle: "Revoke all web authority?", vaRevokeConfirm: "Every authority given from the web so far reads as none from now on, and every session's authorization ends. Nobody is signed out: a session carries authority again once it is authorized again.",
|
|
571
572
|
vaRevoked: "Web authority given so far is revoked.", vaRevokedNotDurable: "Revoked for now, but it could not be saved: web authority stays off until it can be, and a restart before then undoes the revocation.", vaRevokeFailed: "That did not work — try again.",
|
|
572
|
-
webReadOnlyLead: "Read-only
|
|
573
|
+
webReadOnlyLead: "Read-only: these values control the dashboard's listeners and exposure. This page cannot change them.",
|
|
573
574
|
searchRetentionUnset: "not set (no age limit; 300,000-row cap)",
|
|
574
575
|
searchRetentionZero: "0 (no age limit; 300,000-row cap)",
|
|
575
|
-
webSearchHint: "Global search keeps entries with no age limit by default. The daily prune still caps the index at 300,000 rows (oldest first).
|
|
576
|
+
webSearchHint: "Global search keeps entries with no age limit by default. The daily prune still caps the index at 300,000 rows (oldest first). Retention cannot be changed here.",
|
|
576
577
|
classicBackend: "ClassicBot default backend",
|
|
577
578
|
whoUsesClassic: "Who can use ClassicBot",
|
|
578
579
|
userIdPlaceholder: "user id",
|
|
@@ -779,6 +780,7 @@ register("settings", {
|
|
|
779
780
|
pause: "暫停",
|
|
780
781
|
wake: "喚醒",
|
|
781
782
|
accessMode: "存取模式",
|
|
783
|
+
legacyPairing: "pairing(舊版;等同 locked)",
|
|
782
784
|
affected: "受影響 instances",
|
|
783
785
|
language: "語言(bot 回覆)",
|
|
784
786
|
defaultBackend: "預設後端",
|
|
@@ -795,7 +797,7 @@ register("settings", {
|
|
|
795
797
|
tokenShow: "顯示 token", tokenHide: "隱藏 token", tokenIsBot: "這是 {0}。", tokenStatus: "Bot token",
|
|
796
798
|
tokenSet: "已設定 token", tokenSetAs: "已設定 token · {0}", tokenMissing: "缺少 token", tokenReplace: "更換",
|
|
797
799
|
tokenStoredAs: "token 存在這台電腦的 ~/.agend/.env,用這個名稱——自動產生,只有自行管理 .env 時才需要。",
|
|
798
|
-
tokenSavedRestart: "已儲存 token
|
|
800
|
+
tokenSavedRestart: "已儲存 token。這個連線是在 AgEnD 啟動後才新增或修改的,AgEnD 重新啟動時會用新的 token 啟動(見頁面上方的重新啟動提示)。",
|
|
799
801
|
newBotTokenHint: "貼上 bot 的 token。會先向平台確認,再存到這台電腦——絕不存在瀏覽器。",
|
|
800
802
|
connectionIdOptional: "連線 id(選填)",
|
|
801
803
|
connConnectedAs: "已連線 · {0}", connReconnecting: "重新連線中…", connStarting: "啟動中…", connFailed: "無法連線",
|
|
@@ -939,7 +941,7 @@ register("settings", {
|
|
|
939
941
|
"sec_windows-cli": "Windows CLI",
|
|
940
942
|
sec_runtimes: "Runtime",
|
|
941
943
|
sec_chat: "聊天與連線", "sec_web-dashboard": "網頁儀表板", sec_access: "存取與安全",
|
|
942
|
-
sec_notifications: "通知", sec_advanced: "進階", sec_look: "外觀", grp_you: "你自己", grp_fleet: "整個 Fleet",
|
|
944
|
+
sec_notifications: "通知", sec_hub: "Hub", sec_advanced: "進階", sec_look: "外觀", grp_you: "你自己", grp_fleet: "整個 Fleet",
|
|
943
945
|
classicDefaultsTitle: "ClassicBot 預設值", publicLinkTitle: "公開連結與固定網址", webDashboardTitle: "儀表板功能", webSettingsLabel: "網頁設定",
|
|
944
946
|
stRunning: "執行中",
|
|
945
947
|
stPaused: "已暫停",
|
|
@@ -1159,7 +1161,7 @@ register("settings", {
|
|
|
1159
1161
|
cssError_owner_css_read_only: "這個登入只能檢視、不能變更自訂 CSS。",
|
|
1160
1162
|
cssError_owner_css_needs_a_signed_in_person: "請在瀏覽器登入後再變更自訂 CSS。",
|
|
1161
1163
|
cssError_other: "未儲存({0})。",
|
|
1162
|
-
webLead: "網頁儀表板的行為。放寬存取的變更(延長 session、重新開啟或延長瀏覽器終端機、公開連結)需要 fleet admin
|
|
1164
|
+
webLead: "網頁儀表板的行為。放寬存取的變更(延長 session、重新開啟或延長瀏覽器終端機、公開連結)需要 fleet admin 確認:在 Telegram 或 Discord 的 General,或在儀表板上卡片提供確認的地方;收緊的變更會立即套用。",
|
|
1163
1165
|
webPublicRefused: "無法透過公開連結變更網頁設定。請從儀表板本身的網址開啟後再變更。",
|
|
1164
1166
|
webSessionTitle: "登入 session",
|
|
1165
1167
|
webSessionHint: "適用於從儀表板本身網址登入的 session(本機、區域網路、tailnet)。透過公開連結(臨時連結或你的固定網域)的 session 最長 8 小時、閒置 30 分鐘就結束,也不會超過連結本身;管理者的 session 也不會超過這裡的設定(訪客依訪客設定)。縮短會讓已超過新限制的 session 結束;延長會套用到新的登入,以及既有 session 下次使用時的閒置時間。留空 = 預設值。",
|
|
@@ -1220,10 +1222,10 @@ register("settings", {
|
|
|
1220
1222
|
vaSessionsTitle: "已授權的 session", vaSessionsNone: "目前沒有已授權的 session。", vaSessionUntil: "{0} 授權 · 到 {1}",
|
|
1221
1223
|
vaRevoke: "撤銷網頁授權", vaRevokeTitle: "撤銷所有網頁授權?", vaRevokeConfirm: "到目前為止從網頁給出的授權,從現在起都視為無,所有 session 的授權也會結束。不會登出任何人:session 再授權一次後,送出的訊息會再帶有授權。",
|
|
1222
1224
|
vaRevoked: "已撤銷到目前為止的網頁授權。", vaRevokedNotDurable: "已暫時撤銷,但無法保存:在可以保存之前網頁授權會保持關閉,而在那之前重新啟動會讓這次撤銷失效。", vaRevokeFailed: "沒有成功,請再試一次。",
|
|
1223
|
-
webReadOnlyLead: "
|
|
1225
|
+
webReadOnlyLead: "僅供檢視:這些設定決定儀表板監聽和公開的內容。這個頁面無法修改。",
|
|
1224
1226
|
searchRetentionUnset: "未設定(不限天數;上限 30 萬筆)",
|
|
1225
1227
|
searchRetentionZero: "0(不限天數;上限 30 萬筆)",
|
|
1226
|
-
webSearchHint: "全域搜尋預設不限天數。每日清理仍會把索引上限維持在 30
|
|
1228
|
+
webSearchHint: "全域搜尋預設不限天數。每日清理仍會把索引上限維持在 30 萬筆(先刪最舊的)。這裡無法變更保存期限。",
|
|
1227
1229
|
classicBackend: "ClassicBot 預設 backend",
|
|
1228
1230
|
whoUsesClassic: "誰可以使用 ClassicBot",
|
|
1229
1231
|
userIdPlaceholder: "使用者 id",
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
/* #3292: Settings → Accounts → Keep sign-in alive — linked by accounts-keepalive.js (an older accounts.css lacks these rules).
|
|
2
|
-
|
|
3
|
-
.s-
|
|
1
|
+
/* #3292: Settings → Accounts → Keep sign-in alive — linked by accounts-keepalive.js (an older accounts.css lacks these rules).
|
|
2
|
+
* The foot of an account's box: one line (it wraps only when the box is too narrow), one tone off the box (--surface-2 on --bg, a tone the CLI card around it does not have), no line. What each switch does is the
|
|
3
|
+
* settings pages' ⓘ after it (`InfoTip`, app.css `.s-tipwrap`): its words are a layer over the box (position: absolute), never in the flow, so nothing moves.
|
|
4
|
+
* The colours are the theme's (tokens.css); nothing here has one of its own. */
|
|
5
|
+
.s-account-keepalive { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin: var(--s-3) calc(-1 * var(--s-4)) calc(-1 * var(--s-3)); padding: var(--s-2) var(--s-4); border-radius: 0 0 var(--r-md) var(--r-md); background: var(--surface-2); }
|
|
6
|
+
.s-account-keepalive .check { display: flex; align-items: center; gap: var(--s-2); }
|
|
4
7
|
.s-account-keepalive small { color: var(--text-2); font-size: var(--fs-xs); overflow-wrap: anywhere; }
|
|
5
|
-
.s-account-keepalive .
|
|
6
|
-
.s-account-keepalive .is-
|
|
7
|
-
|
|
8
|
+
.s-account-keepalive .is-warn { color: var(--warn); font-weight: var(--fw-semibold); }
|
|
9
|
+
.s-account-keepalive .is-bad { color: var(--danger); font-weight: var(--fw-semibold); }
|
|
10
|
+
/* The ⓘ sits against the switch it explains; the backup-renewal switch is on the same line, with its own ⓘ. */
|
|
11
|
+
.s-account-keepalive > .s-tipwrap { margin-left: calc(-1 * var(--s-2)); }
|
|
12
|
+
.s-account-keepalive .s-keepalive-fallback { display: flex; align-items: center; gap: var(--s-2); }
|
|
@@ -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,7 +101,10 @@ 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
|
-
|
|
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.",
|
|
106
|
+
restartOnHost: "Restart AgEnD to use them.",
|
|
107
|
+
restartOnHostChat: "Send /restart in General to use them.",
|
|
105
108
|
restartRefused: "Restart refused: {0}",
|
|
106
109
|
pendingSent: "Sent for confirmation — a fleet admin confirms it in chat.",
|
|
107
110
|
pendingSelfSent: "Confirmed by your account (this browser is web-verified) — applying.",
|
|
@@ -148,7 +151,9 @@ register("app", {
|
|
|
148
151
|
opFailed: "設定沒有套用", openSettings: "開啟設定",
|
|
149
152
|
restartWaiting: "{0} 項已儲存的變更要在 AgEnD 重新啟動後才會生效", restartNow: "立即重新啟動", restartLater: "稍後",
|
|
150
153
|
restartConfirm: "現在重新啟動 AgEnD?\n\n所有 agent 都會停止再啟動,進行中的工作會被中斷,面板會有最多約一分鐘無法連線。聊天頻道會收到一則通知。",
|
|
151
|
-
|
|
154
|
+
restartConfirmWebOnly: "現在重新啟動 AgEnD?\n\n所有 agent 都會停止再啟動,進行中的工作會被中斷,面板會有最多約一分鐘無法連線。這次重新啟動會記錄在這個儀表板的通知中。",
|
|
155
|
+
restartOnHost: "請重新啟動 AgEnD 讓它們生效。",
|
|
156
|
+
restartOnHostChat: "請在 General 傳 /restart 讓它們生效。",
|
|
152
157
|
restartRefused: "重新啟動被拒絕:{0}",
|
|
153
158
|
pendingSent: "已送出確認——由 fleet 管理員在聊天中確認。",
|
|
154
159
|
pendingSelfSent: "已由你的帳號確認(這個瀏覽器已通過網頁驗證)——套用中。",
|
|
@@ -6,7 +6,7 @@ export const FLEET_TABS = ["tasks", "schedules", "teams", "org", "cache", "usage
|
|
|
6
6
|
// #2347: two groups — "You" changes only you or this browser; "Fleet" changes AgEnD for everyone.
|
|
7
7
|
export const SETTINGS_GROUPS = Object.freeze([
|
|
8
8
|
Object.freeze({ id: "you", sections: Object.freeze(["preferences", "look"]) }),
|
|
9
|
-
Object.freeze({ id: "fleet", sections: Object.freeze(["agents", "runtimes", "agent-defaults", "notifications", "chat", "web-dashboard", "access", "advanced"]) }),
|
|
9
|
+
Object.freeze({ id: "fleet", sections: Object.freeze(["agents", "runtimes", "agent-defaults", "notifications", "chat", "web-dashboard", "access", "hub", "advanced"]) }),
|
|
10
10
|
]);
|
|
11
11
|
export const SETTINGS_SECTIONS = Object.freeze(SETTINGS_GROUPS.flatMap((g) => g.sections));
|
|
12
12
|
/** #2347: the sections' names before the regrouping (links and bookmarks keep working) and where each one went. */
|
|
@@ -388,6 +388,15 @@ function HubSwitcherSlot() {
|
|
|
388
388
|
return mod ? html`<${mod} />` : null;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
+
// Fleet-only lazy boundary: the Hub module graph never reaches member Settings or its private inbox.
|
|
392
|
+
function MemberPairingNoticesSlot() {
|
|
393
|
+
const [Component, setComponent] = useState(null);
|
|
394
|
+
useEffect(() => { let live = true; import("/ui/js/hub-quick-pairing.js").then(m => {
|
|
395
|
+
if (live && m.MemberPairingNotices) setComponent(() => m.MemberPairingNotices);
|
|
396
|
+
}, () => {}); return () => { live = false; }; }, []);
|
|
397
|
+
return Component ? html`<${Component} />` : null;
|
|
398
|
+
}
|
|
399
|
+
|
|
391
400
|
function Sidebar({ route, onNewInstance, viewOnly }) {
|
|
392
401
|
const app = useStore(appStore);
|
|
393
402
|
const shell = useStore(shellStore);
|
|
@@ -670,17 +679,108 @@ function whereText(where) {
|
|
|
670
679
|
* "Authorize this browser" (the same DM card as the composer's). The host's command otherwise sits folded under
|
|
671
680
|
* "Advanced".
|
|
672
681
|
*/
|
|
682
|
+
// alpha.6 feedback #2c (the user's decision hmsg-77256f66): a change no General could take says WHY, in plain words, and what
|
|
683
|
+
// would let it through — never "type this command on the host". The host's command stays folded under Advanced, a last resort.
|
|
684
|
+
register("pendingHost", {
|
|
685
|
+
en: {
|
|
686
|
+
no_chat: "This fleet has no chat app connected, so there is no General to send the confirm card to.",
|
|
687
|
+
no_chat_do: "This computer's owner confirms it here with Apply now. To confirm from Discord or Telegram, connect one in Settings → Chat & connections.",
|
|
688
|
+
cross_platform: "This change affects chat apps on more than one platform, so no single General can confirm it.",
|
|
689
|
+
cross_platform_do: "Make the change for one platform at a time.",
|
|
690
|
+
no_general: "No agent is the General in a connected chat app, so there is nowhere to send the confirm card.",
|
|
691
|
+
no_general_do: "Make an agent the General in Settings → Agents, then make the change again.",
|
|
692
|
+
chat_disconnected: "General's chat app is not connected right now, so the confirm card could not be sent.",
|
|
693
|
+
chat_disconnected_do: "Check the connection in Settings → Chat & connections, then make the change again.",
|
|
694
|
+
no_topic: "General has no topic in its chat yet, so the confirm card had nowhere to go.",
|
|
695
|
+
no_topic_do: "Send General a message in its chat once, then make the change again.",
|
|
696
|
+
post_failed: "The confirm card could not be posted in General.",
|
|
697
|
+
post_failed_do: "Check General's chat connection in Settings → Chat & connections, then make the change again.",
|
|
698
|
+
unknown: "No General could take the confirm card for this change.",
|
|
699
|
+
go: "Open",
|
|
700
|
+
codeLead: "Or confirm it here with the code from your authenticator app.",
|
|
701
|
+
codeLabel: "Authenticator code", codeGo: "Confirm",
|
|
702
|
+
codeWrong: "That code is not right. Use the current code in your authenticator app.",
|
|
703
|
+
codePaused: "Too many wrong codes. Try again in {0} minutes.",
|
|
704
|
+
codeNotHere: "This page can no longer confirm it with a code.",
|
|
705
|
+
codeUnavailable: "The code could not be checked. Try again.",
|
|
706
|
+
codeChanged: "This change is no longer the one shown here. Reload the page and check it again.",
|
|
707
|
+
onHost: "This change can't be confirmed over a link. Confirm it in the browser on the computer running AgEnD, or in General.",
|
|
708
|
+
hostBrowser: "This change opens a link to this fleet, so only the browser on the computer running AgEnD can confirm it. Do it there.",
|
|
709
|
+
codeSetUp: "To confirm changes here with a code, set up an authenticator app in Access & security.",
|
|
710
|
+
},
|
|
711
|
+
"zh-TW": {
|
|
712
|
+
no_chat: "這個 Fleet 沒有連接聊天平台,所以沒有 General 可以接收確認卡。",
|
|
713
|
+
no_chat_do: "這台電腦的擁有者可以在這裡按「立即套用」確認。若要從 Discord 或 Telegram 確認,請到「設定 → 聊天與連線」連接其中一個。",
|
|
714
|
+
cross_platform: "這項變更涉及多個聊天平台,沒有單一的 General 可以確認。",
|
|
715
|
+
cross_platform_do: "請一次只變更一個平台。",
|
|
716
|
+
no_general: "已連接的聊天平台中沒有任何 Agent 是 General,所以確認卡無處可送。",
|
|
717
|
+
no_general_do: "請到「設定 → Agent」把一個 Agent 設為 General,再重新做一次這項變更。",
|
|
718
|
+
chat_disconnected: "General 的聊天平台目前沒有連線,確認卡無法送出。",
|
|
719
|
+
chat_disconnected_do: "請到「設定 → 聊天與連線」檢查連線,再重新做一次這項變更。",
|
|
720
|
+
no_topic: "General 在聊天平台上還沒有主題,確認卡無處可送。",
|
|
721
|
+
no_topic_do: "請先在 General 的聊天中傳一則訊息,再重新做一次這項變更。",
|
|
722
|
+
post_failed: "確認卡無法傳到 General。",
|
|
723
|
+
post_failed_do: "請到「設定 → 聊天與連線」檢查 General 的連線,再重新做一次這項變更。",
|
|
724
|
+
unknown: "這項變更沒有 General 可以接收確認卡。",
|
|
725
|
+
go: "前往",
|
|
726
|
+
codeLead: "也可以在這裡輸入驗證器 App 的代碼確認。",
|
|
727
|
+
codeLabel: "驗證器代碼", codeGo: "確認",
|
|
728
|
+
codeWrong: "代碼不正確,請使用驗證器 App 目前顯示的代碼。",
|
|
729
|
+
codePaused: "錯誤次數太多,請 {0} 分鐘後再試。",
|
|
730
|
+
codeNotHere: "這個頁面已無法用代碼確認這項變更。",
|
|
731
|
+
codeUnavailable: "無法檢查代碼,請再試一次。",
|
|
732
|
+
codeChanged: "這項變更已不是這裡顯示的內容,請重新整理頁面再確認一次。",
|
|
733
|
+
onHost: "這項變更無法透過連結確認。請在執行 AgEnD 的那台電腦的瀏覽器中確認,或在 General 確認。",
|
|
734
|
+
hostBrowser: "這項變更會開放一條連到這個 fleet 的連結,只有執行 AgEnD 的那台電腦上的瀏覽器能確認。請到那裡操作。",
|
|
735
|
+
codeSetUp: "若要在這裡用代碼確認變更,請先到「存取與安全」設定驗證器 App。",
|
|
736
|
+
},
|
|
737
|
+
});
|
|
738
|
+
const PENDING_HOST_REASONS = ["no_chat", "cross_platform", "no_general", "chat_disconnected", "no_topic", "post_failed"];
|
|
739
|
+
const PENDING_HOST_GO = { no_chat: "chat", no_general: "agents", chat_disconnected: "chat", post_failed: "chat" };
|
|
740
|
+
/**
|
|
741
|
+
* alpha.6 feedback #2c (the user's decision hmsg-468cc290): on a web-only fleet's own page, a local admin who is not the host
|
|
742
|
+
* operator confirms a pending change with the owner's authenticator code. The server decides who may (p.confirmWithCode, from
|
|
743
|
+
* the view's `totp`) and checks the code; this only asks for it and says the answer.
|
|
744
|
+
*/
|
|
745
|
+
function PendingCode({ p }) {
|
|
746
|
+
const [code, setCode] = useState(""), [busy, setBusy] = useState(false), [msg, setMsg] = useState("");
|
|
747
|
+
const go = async (e) => {
|
|
748
|
+
e.preventDefault();
|
|
749
|
+
if (busy || !/^\d{6}$/.test(code.replace(/\s+/g, ""))) return;
|
|
750
|
+
setBusy(true); setMsg("");
|
|
751
|
+
const r = await p.confirmWithCode(code);
|
|
752
|
+
setBusy(false); setCode("");
|
|
753
|
+
if (r && r.ok) return;
|
|
754
|
+
const why = r && r.error;
|
|
755
|
+
setMsg(why === "wrong" ? t("pendingHost.codeWrong") : why === "paused" ? t("pendingHost.codePaused", Math.max(1, Math.ceil((r.retryAfterMs || 60000) / 60000)))
|
|
756
|
+
: why === "not_here" ? t("pendingHost.codeNotHere") : why === "changed" ? t("pendingHost.codeChanged") : t("pendingHost.codeUnavailable"));
|
|
757
|
+
};
|
|
758
|
+
return html`<form class="pending-self pending-code" onSubmit=${go}>
|
|
759
|
+
<span class="note">${t("pendingHost.codeLead")}</span>
|
|
760
|
+
<label class="field-row"><span class="sr-only">${t("pendingHost.codeLabel")}</span>
|
|
761
|
+
<input class="pending-code-input" inputmode="numeric" autocomplete="one-time-code" maxlength="7" placeholder="000000" aria-label=${t("pendingHost.codeLabel")}
|
|
762
|
+
value=${code} disabled=${busy} onInput=${(e) => setCode(e.target.value)} />
|
|
763
|
+
<button type="submit" class="btn btn-sm btn-primary" disabled=${busy || !/^\d{6}$/.test(code.replace(/\s+/g, ""))}>${t("pendingHost.codeGo")}</button></label>
|
|
764
|
+
</form>${msg ? html`<p class="note" role="alert">${msg}</p>` : null}`;
|
|
765
|
+
}
|
|
673
766
|
function PendingHow({ p }) {
|
|
674
767
|
const a = useWebAuthorization();
|
|
675
768
|
const [refused, setRefused] = useState(false);
|
|
676
769
|
const c = p.confirmation || {}, cmd = `agend settings confirm ${p.id}`;
|
|
677
|
-
const
|
|
770
|
+
const why = c.kind === "host_cli" && PENDING_HOST_REASONS.includes(c.reason) ? c.reason : null;
|
|
771
|
+
const lead = c.kind === "posting" ? t("app.pendingPosting") : c.kind === "host_cli" ? t(`pendingHost.${why || "unknown"}`) : t("app.pendingChatWhere", whereText(c.where));
|
|
772
|
+
const go = why && Object.hasOwn(PENDING_HOST_GO, why) ? PENDING_HOST_GO[why] : null;
|
|
678
773
|
// A browser that isn't verified but could be: authorizing it makes this one (and later ones) "Apply now".
|
|
679
774
|
const route = c.kind !== "host_cli" && !p.applyNow && a.st;
|
|
680
775
|
const canAsk = route && a.st.state === "none" && (a.st.reason === "not_authorized" || a.st.reason === "authorization_expired");
|
|
681
776
|
const asking = route && a.st.state === "pending";
|
|
682
777
|
const apply = async () => { setRefused(false); const r = await p.applyNow(); if (!r || !r.ok) setRefused(true); };
|
|
683
778
|
return html`<p class="note">${lead}</p>
|
|
779
|
+
${why ? html`<p class="note pending-why">${t(`pendingHost.${why}_do`)}${go ? html` <a class="btn btn-sm" href=${settingsPath(go)}>${t("pendingHost.go")}</a>` : null}</p>` : null}
|
|
780
|
+
${p.confirmWithCode && !p.applyNow ? html`<${PendingCode} p=${p} />` : null}
|
|
781
|
+
${p.onHost && !p.applyNow ? html`<p class="note pending-on-host">${t("pendingHost.onHost")}</p>` : null}
|
|
782
|
+
${p.hostBrowser && !p.applyNow ? html`<p class="note pending-host-browser">${t("pendingHost.hostBrowser")}</p>` : null}
|
|
783
|
+
${p.totpNotSetUp && !p.applyNow ? html`<p class="note pending-code-setup">${t("pendingHost.codeSetUp")} <a class="btn btn-sm" href=${settingsPath("access")}>${t("pendingHost.go")}</a></p>` : null}
|
|
684
784
|
${p.applyNow ? html`<div class="pending-self"><span class="note">${t("app.pendingSelf")}</span>
|
|
685
785
|
<button type="button" class="btn btn-sm btn-primary" onClick=${apply}>${t("app.pendingApplyNow")}</button></div>` : null}
|
|
686
786
|
${refused && !p.applyNow ? html`<p class="note" role="status">${t("app.pendingApplyRefused")}</p>` : null}
|
|
@@ -688,7 +788,7 @@ function PendingHow({ p }) {
|
|
|
688
788
|
<button type="button" class="btn btn-sm" onClick=${a.ask}>${t("webauth.authorize")}</button></div>` : null}
|
|
689
789
|
${asking ? html`<p class="note">${t("webauth.waiting", mmss(a.left))}</p>` : null}
|
|
690
790
|
${a.notice && (canAsk || asking) ? html`<p class="note" role="status">${a.notice}</p>` : null}
|
|
691
|
-
|
|
791
|
+
<details class="pending-host"><summary>${t("app.pendingAdvanced")}</summary><code>${cmd}</code></details>`;
|
|
692
792
|
}
|
|
693
793
|
|
|
694
794
|
/** Settings' Apply, followed from another panel: one line, and the way back to it (§5: progress shows in any panel). */
|
|
@@ -728,10 +828,12 @@ export async function refreshRestartPending() {
|
|
|
728
828
|
* Restart now asks first and is never automatic (the leader's default: a Save that restarted on its own once took 33
|
|
729
829
|
* agents down at once). Asked again whenever a Save or a restart settles. Left to the Save in hand while it runs or offers
|
|
730
830
|
* its own restart (Settings' card, or the line above in another panel). Over a temporary public link it says so and
|
|
731
|
-
* offers nothing
|
|
831
|
+
* offers nothing. S-92 (#3326 D1): Restart now whenever the page can restart — with no Settings job behind it (a hand
|
|
832
|
+
* edit) too: the server makes the job (`restartRunner(null)`). The muted hint (#3363's words: chat fleets send /restart in
|
|
833
|
+
* General, web-only fleets are told to restart AgEnD, no command) is for a page that cannot restart.
|
|
732
834
|
*/
|
|
733
835
|
function RestartLine() {
|
|
734
|
-
const { restartPending: pending, settingsOp: op, restartRunner } = useStore(appStore);
|
|
836
|
+
const { restartPending: pending, settingsOp: op, restartRunner, connections } = useStore(appStore);
|
|
735
837
|
const [later, setLater] = useState(null);
|
|
736
838
|
const [busy, setBusy] = useState(false);
|
|
737
839
|
const settled = !op || (!["writing", "posting", "watching"].includes(op.phase) && op.restart !== "busy");
|
|
@@ -740,9 +842,13 @@ function RestartLine() {
|
|
|
740
842
|
if (op && op.job && op.job.targets && op.job.targets.some((r) => r.target === "fleet" && r.status === "restart-required")) return null;
|
|
741
843
|
const seen = `${pending.jobId}|${pending.keys.join(",")}`;
|
|
742
844
|
if (later === seen) return null;
|
|
743
|
-
const canRestart =
|
|
845
|
+
const canRestart = typeof restartRunner === "function";
|
|
846
|
+
// connections === 0 is web-only; null is unknown — do not name General.
|
|
847
|
+
const hint = !canRestart ? t(connections > 0 ? "app.restartOnHostChat" : "app.restartOnHost") : null;
|
|
744
848
|
const restart = async () => {
|
|
745
|
-
|
|
849
|
+
// S-92: on a fleet with no chat connection the restart is announced in the dashboard's Notices, not a chat channel.
|
|
850
|
+
const message = t(connections === 0 ? "app.restartConfirmWebOnly" : "app.restartConfirm");
|
|
851
|
+
if (!(await confirmDialog({ title: t("app.restartNow"), message, confirmLabel: t("app.restartNow"), danger: true }))) return;
|
|
746
852
|
setBusy(true);
|
|
747
853
|
let res;
|
|
748
854
|
try { res = await restartRunner(pending.jobId); } catch { res = { ok: false }; }
|
|
@@ -756,7 +862,7 @@ function RestartLine() {
|
|
|
756
862
|
return html`<div data-trust="status" class="conn restart-line lbar" role="status">
|
|
757
863
|
<span>${t("app.restartWaiting", Math.max(1, pending.keys.length))}</span>
|
|
758
864
|
${pending.keys.length ? html`<span class="muted restart-keys">${pending.keys.join(", ")}</span>` : null}
|
|
759
|
-
${
|
|
865
|
+
${hint ? html`<span class="muted">${hint}</span>` : null}
|
|
760
866
|
${canRestart ? html`<button type="button" class="btn btn-sm btn-primary" disabled=${busy} onClick=${restart}>${t("app.restartNow")}</button>` : null}
|
|
761
867
|
<button type="button" class="btn btn-sm" onClick=${() => setLater(seen)}>${t("app.restartLater")}</button></div>`;
|
|
762
868
|
}
|
|
@@ -906,6 +1012,7 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
|
|
|
906
1012
|
<main id="main" class="main" tabindex="-1" inert=${shell.drawer && narrow() ? true : undefined}>
|
|
907
1013
|
<${ConnectionLine} />
|
|
908
1014
|
<${StartupLine} />
|
|
1015
|
+
${viewOnly || guest || hub || !hubMarks().member || (nav.route?.panel === "settings" && nav.route.section === "hub") ? null : html`<${MemberPairingNoticesSlot} />`}
|
|
909
1016
|
${viewOnly || guest || hub ? null : html`<${OperationLine} route=${nav.route} />`}
|
|
910
1017
|
${viewOnly || guest || hub ? null : html`<${RestartLine} />`}
|
|
911
1018
|
${viewOnly || guest || hub || !shell.banner ? null : html`<${shell.banner} />`}
|