@songsid/agend 2.4.0-alpha.1 → 2.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.zh-TW.md +1 -1
- package/dist/agent-whats-new.js +2 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.js +3 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.js +4 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/types.d.ts +6 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +1 -1
- package/dist/backend-availability.js +28 -1
- package/dist/backend-availability.js.map +1 -1
- package/dist/browser-backend-signins.d.ts +7 -1
- package/dist/browser-backend-signins.js +8 -4
- package/dist/browser-backend-signins.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +1 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/config-validator.js +47 -7
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +3 -0
- package/dist/daemon.js +4 -0
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +33 -4
- package/dist/fleet-manager.js +143 -61
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +19 -0
- package/dist/hub/audit/index.js +12 -5
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/catalog.d.ts +6 -0
- package/dist/hub/catalog.js +14 -4
- 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 +2 -0
- package/dist/hub/compose/member.js +11 -2
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.js +2 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/enrolment-code.d.ts +126 -0
- package/dist/hub/enrolment-code.js +266 -0
- package/dist/hub/enrolment-code.js.map +1 -0
- package/dist/hub/group-policy/admin-impact.js +4 -2
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.js +6 -6
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +16 -2
- package/dist/hub/group-policy/authorization.js +69 -5
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.js +3 -3
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +40 -1
- package/dist/hub/group-policy/resources.js +51 -13
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.d.ts +6 -0
- package/dist/hub/group-policy/store.js +49 -4
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/http/compose.js +30 -6
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/init/text.js +2 -2
- package/dist/hub/init/text.js.map +1 -1
- package/dist/hub/init/web.d.ts +7 -0
- package/dist/hub/init/web.js +6 -1
- package/dist/hub/init/web.js.map +1 -1
- package/dist/hub/join/local.d.ts +27 -0
- package/dist/hub/join/local.js +70 -5
- package/dist/hub/join/local.js.map +1 -1
- package/dist/hub/join/receipt.d.ts +1 -0
- package/dist/hub/join/receipt.js +1 -1
- package/dist/hub/join/receipt.js.map +1 -1
- package/dist/hub/join/service.d.ts +92 -6
- package/dist/hub/join/service.js +199 -28
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/join/store.d.ts +2 -1
- package/dist/hub/join/store.js +7 -7
- package/dist/hub/join/store.js.map +1 -1
- package/dist/hub/member/exposure-api.d.ts +2 -0
- package/dist/hub/member/exposure-api.js +3 -2
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/exposures.d.ts +4 -0
- package/dist/hub/member/exposures.js +12 -2
- package/dist/hub/member/exposures.js.map +1 -1
- package/dist/hub/member/pairing-notices.js +8 -6
- package/dist/hub/member/pairing-notices.js.map +1 -1
- package/dist/hub/pairing-notices.d.ts +5 -2
- package/dist/hub/pairing-notices.js +38 -13
- package/dist/hub/pairing-notices.js.map +1 -1
- package/dist/hub/pairing.d.ts +7 -2
- package/dist/hub/protocol.d.ts +47 -0
- package/dist/hub/protocol.js +3 -1
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/server.js +15 -1
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/types.d.ts +12 -4
- package/dist/hub-pairing-summary.js +1 -1
- package/dist/hub-pairing-summary.js.map +1 -1
- package/dist/instance-config-impact.js +4 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.js +4 -0
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +6 -2
- package/dist/locale.js.map +1 -1
- package/dist/log-service.d.ts +62 -6
- package/dist/log-service.js +135 -28
- package/dist/log-service.js.map +1 -1
- package/dist/log-steps-agy-grok.d.ts +74 -0
- package/dist/log-steps-agy-grok.js +440 -0
- package/dist/log-steps-agy-grok.js.map +1 -0
- package/dist/log-steps.d.ts +62 -3
- package/dist/log-steps.js +188 -22
- package/dist/log-steps.js.map +1 -1
- package/dist/log-transcript-paths.d.ts +29 -0
- package/dist/log-transcript-paths.js +109 -0
- package/dist/log-transcript-paths.js.map +1 -0
- package/dist/login-controller.d.ts +17 -3
- package/dist/login-controller.js +57 -5
- package/dist/login-controller.js.map +1 -1
- package/dist/login-window-lock.d.ts +20 -8
- package/dist/login-window-lock.js +35 -16
- package/dist/login-window-lock.js.map +1 -1
- package/dist/outbound-handlers.d.ts +14 -0
- package/dist/outbound-handlers.js +49 -1
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/profile-signins.d.ts +2 -0
- package/dist/profile-signins.js +1 -1
- package/dist/profile-signins.js.map +1 -1
- package/dist/settings-api.d.ts +34 -0
- package/dist/settings-api.js +184 -6
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +38 -1
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +14 -0
- package/dist/settings-effect.js.map +1 -1
- package/dist/tool-progress.d.ts +7 -0
- package/dist/tool-progress.js +21 -9
- package/dist/tool-progress.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/ui/accounts-view.js +14 -4
- package/dist/ui/agent-details-settings.js +2 -2
- package/dist/ui/agent-page-strings.js +2 -2
- package/dist/ui/backend-signin.js +47 -14
- package/dist/ui/chat-activity-groups.js +225 -0
- package/dist/ui/chat-activity.js +355 -0
- package/dist/ui/chat-popout-header.js +35 -0
- package/dist/ui/chat-popout-transport.js +80 -0
- package/dist/ui/chat-popout.js +63 -0
- package/dist/ui/chat-quote.js +3 -1
- package/dist/ui/chat-store.js +45 -4
- package/dist/ui/chat-workspace-gestures.js +177 -0
- package/dist/ui/chat-workspace-navigation.js +34 -10
- package/dist/ui/chat-workspace.js +96 -32
- package/dist/ui/host-install.js +2 -2
- package/dist/ui/hub-agent-copy.js +7 -7
- package/dist/ui/hub-chat-strings.js +3 -3
- package/dist/ui/hub-client.js +77 -17
- package/dist/ui/hub-company-join-strings.js +12 -10
- package/dist/ui/hub-company-join.js +52 -39
- package/dist/ui/hub-confirm-place.js +44 -0
- package/dist/ui/hub-directory-editor-strings.js +3 -3
- package/dist/ui/hub-directory-notice-strings.js +1 -1
- package/dist/ui/hub-enrolment-code-strings.js +44 -0
- package/dist/ui/hub-enrolment-code.js +159 -0
- package/dist/ui/hub-group-search.js +82 -0
- package/dist/ui/hub-group-strings.js +8 -8
- package/dist/ui/hub-join-approval.js +31 -0
- package/dist/ui/hub-join-code-input.js +66 -0
- package/dist/ui/hub-join-queue.js +62 -0
- package/dist/ui/hub-join-steps.js +231 -0
- package/dist/ui/hub-joincode-flow-strings.js +22 -0
- package/dist/ui/hub-owner-strings.js +9 -9
- package/dist/ui/hub-pairing-progress-strings.js +1 -1
- package/dist/ui/hub-quick-pairing.js +8 -4
- package/dist/ui/hub-quick-strings.js +11 -11
- package/dist/ui/hub-share-refused.js +17 -0
- package/dist/ui/hub-strings.js +61 -61
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/hub-welcome.js +26 -5
- package/dist/ui/image-annotate.js +283 -0
- package/dist/ui/image-lightbox.js +26 -6
- package/dist/ui/log-row.js +327 -0
- package/dist/ui/panel-chat.js +151 -12
- package/dist/ui/panel-details.js +14 -6
- package/dist/ui/panel-hub.js +42 -13
- package/dist/ui/panel-log.js +9 -154
- package/dist/ui/panel-settings.js +48 -11
- package/dist/ui/search-dialog.js +1 -0
- package/dist/ui/settings-access-overview.js +1 -1
- package/dist/ui/settings-hub-browser-certificate.js +3 -3
- package/dist/ui/settings-hub-company-join.js +41 -30
- package/dist/ui/settings-hub-connection.js +8 -5
- package/dist/ui/settings-hub-membership.js +3 -3
- package/dist/ui/settings-hub-section.js +1 -1
- package/dist/ui/settings-hub-setup-strings.js +6 -6
- package/dist/ui/settings-hub-setup.js +44 -6
- package/dist/ui/settings-hub.js +35 -10
- package/dist/ui/settings-layout.js +6 -4
- package/dist/ui/settings-public-session-strings.js +37 -0
- package/dist/ui/settings-registry.js +4 -0
- package/dist/ui/settings-strings.js +2 -2
- package/dist/ui/shared/app-shell.js +16 -10
- package/dist/ui/shared/app.css +195 -30
- package/dist/ui/shared/app.js +8 -1
- package/dist/ui/shared/chat-render.js +11 -2
- package/dist/ui/shared/chat-thread.js +20 -3
- package/dist/ui/shared/chat-work-bar.css +7 -0
- package/dist/ui/shared/chat-workspace-model.js +39 -9
- package/dist/ui/shared/hub-owner.css +8 -0
- package/dist/ui/shared/identity-color.js +9 -3
- package/dist/ui/shared/image-annotate.css +45 -0
- package/dist/ui/shared/instance-nav.js +59 -22
- package/dist/ui/shared/pane-geometry.js +29 -0
- package/dist/ui/shared/signin.js +2 -2
- package/dist/ui/shared/tokens.css +14 -0
- package/dist/ui/shared/ui-menu.js +22 -7
- package/dist/ui/signin.html +1 -1
- package/dist/ui/structured-signin.js +11 -4
- package/dist/web-api.d.ts +1 -0
- package/dist/web-api.js +34 -4
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +9 -3
- package/dist/web-backend-login.js +7 -4
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-history.d.ts +11 -0
- package/dist/web-chat-history.js +9 -1
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-guest-access.js +2 -2
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-session.d.ts +31 -3
- package/dist/web-session.js +25 -4
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +8 -2
- package/dist/web-settings-patch.js +22 -10
- package/dist/web-settings-patch.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ register("hubPairingProgress", {
|
|
|
7
7
|
unknown: "The result cannot be checked right now. Review the pairing status and the confirmation card before trying again.",
|
|
8
8
|
},
|
|
9
9
|
"zh-TW": {
|
|
10
|
-
connectFailed: "配對未完成。請在 Hub
|
|
10
|
+
connectFailed: "配對未完成。請在 Hub 重新開始配對,再將新的配對碼填在這裡。",
|
|
11
11
|
notApplied: "這次要求未套用。請先查看上方的配對狀態,再決定是否重試。",
|
|
12
12
|
unknown: "目前無法確認結果。請先查看配對狀態與確認卡片,再決定是否重試。",
|
|
13
13
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { hj } from "./hub-company-join-strings.js";
|
|
2
|
+
import { he } from "./hub-enrolment-code-strings.js";
|
|
2
3
|
import { html, useEffect, useRef, useState } from "/assets/app-html.js";
|
|
3
4
|
import { ErrorState, Skeleton } from "/assets/ui-states.js";
|
|
4
5
|
import { confirmDialog } from "/assets/ui-confirm.js";
|
|
@@ -7,6 +8,8 @@ import { compareGroups, hubClient, safeWebOrigin } from "./hub-client.js";
|
|
|
7
8
|
import { hq } from "./hub-quick-strings.js";
|
|
8
9
|
import { hr } from "./hub-read-strings.js";
|
|
9
10
|
import { linkHubOwnerCss } from "./hub-owner-strings.js";
|
|
11
|
+
/** A member Settings reader opts into code rows only alongside this renderer. */
|
|
12
|
+
export const pairingNoticesV3 = true;
|
|
10
13
|
|
|
11
14
|
const reason = (r) => hq(r.code === "expired" ? "expired" : r.code === "conflict" ? "conflict" : r.code === "backpressure" ? "limit"
|
|
12
15
|
: r.code === "denied" || r.code === "revoked" ? "denied" : r.code === "unavailable" || r.code === "unreachable" ? "unavailable" : "failed");
|
|
@@ -102,7 +105,7 @@ function Notice({ notice, admin = false, memberOrigin = null, after = () => {} }
|
|
|
102
105
|
};
|
|
103
106
|
let href = null;
|
|
104
107
|
if (memberOrigin) { try { const origin = new URL(memberOrigin); if (origin.protocol === "https:") href = `${origin.origin}/ui/hub?securityNotice=${encodeURIComponent(notice.id)}`; } catch { /* no link */ } }
|
|
105
|
-
return html`<div data-pairing-notice=${notice.id}><p><b>${hq("notice", notice.label)}</b></p><p class="note">${notice.source === "manual" ? hj("manualApproved") : hq("approved")} ${time(notice.at)}</p>
|
|
108
|
+
return html`<div data-pairing-notice=${notice.id}><p><b>${hq("notice", notice.label)}</b></p><p class="note">${notice.source === "code" ? he("byCode") : notice.source === "manual" ? hj("manualApproved") : hq("approved")} ${time(notice.at)}</p>
|
|
106
109
|
<p class="note">${hq("fleetId")} <code class="hub-fp-full">${notice.fleetId}</code></p>
|
|
107
110
|
<p class="note">${hq("revokeHint")}</p>
|
|
108
111
|
${notice.revoked ? html`<span class="tag">${hq("revoked")}</span>` : href ? html`<a class="btn" target="_blank" rel="noopener noreferrer" href=${href}>${hq("review")}</a>`
|
|
@@ -133,7 +136,7 @@ export function PairingNotices({ admin = false, memberNotices = null, memberOrig
|
|
|
133
136
|
const [historyOpen, setHistoryOpen] = useState(false), [historyCount, setHistoryCount] = useState(99);
|
|
134
137
|
const load = async () => {
|
|
135
138
|
const mine = epoch.current;
|
|
136
|
-
let r; try { r = await c.pairingNotices(); } catch { r = { ok: false, code: "unreachable" }; }
|
|
139
|
+
let r; try { r = await (c.pairingNoticesV3 === true ? c.pairingNotices(3) : c.pairingNotices()); } catch { r = { ok: false, code: "unreachable" }; }
|
|
137
140
|
if (live.current && mine === epoch.current) {
|
|
138
141
|
if (r.ok) { setNotices(r.notices || []); setNoticeError(null); }
|
|
139
142
|
else { setNotices([]); setNoticeError(r.code === "backpressure" ? "busy" : "noticesUnavailable"); }
|
|
@@ -160,8 +163,9 @@ export function PairingNotices({ admin = false, memberNotices = null, memberOrig
|
|
|
160
163
|
};
|
|
161
164
|
const subscribe = () => {
|
|
162
165
|
if (!current()) return;
|
|
163
|
-
|
|
164
|
-
() => { if (current()) { setNoticeError("noticesRetry"); void recover(); } }
|
|
166
|
+
const receive = rows => { if (current()) { setNotices(rows); setNoticeError(null); } },
|
|
167
|
+
closed = () => { if (current()) { setNoticeError("noticesRetry"); void recover(); } };
|
|
168
|
+
off(); off = c.pairingNoticesV3 === true ? c.subscribePairingNotices(receive, closed, 3) : c.subscribePairingNotices(receive, closed);
|
|
165
169
|
};
|
|
166
170
|
if (c.pairingNoticeSnapshotV1 === true) subscribe();
|
|
167
171
|
else void load().then(r => { if (current()) { if (r.ok) subscribe(); else later(recover, r); } });
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import { register, t } from "/assets/app-i18n.js";
|
|
3
3
|
register("hubQuick", {
|
|
4
4
|
en: {
|
|
5
|
-
start: "Connect my fleet", label: "Fleet name", labelHint: "A name you and your Hub
|
|
6
|
-
labelExample: "For example, my laptop", privacy: "Connect only a fleet you control. Your other Hub sessions, connected fleets and Hub
|
|
5
|
+
start: "Connect my fleet", label: "Fleet name", labelHint: "A name you and your Hub administrator will recognize.",
|
|
6
|
+
labelExample: "For example, my laptop", privacy: "Connect only a fleet you control. Your other Hub sessions, connected fleets and Hub administrator will be notified.",
|
|
7
7
|
localTitle: "Confirm on your fleet", local: "On your fleet's web page, open Settings → Hub. Turn on Allow this fleet to connect to a Hub, then paste this address into the Hub address field and enter the one-time code. Confirm the local prompt there.",
|
|
8
8
|
remoteSteps: "Finish the fingerprint check on the Hub too.", ownerStep: "On the Hub, compare this fingerprint and confirm your pairing.", policyStep: "The Hub checks its group policy, or waits for its administrator's approval.",
|
|
9
9
|
address: "Hub address", code: "One-time code", copy: "Copy", copied: "Copied", expires: "Expires {0}",
|
|
10
10
|
compareTitle: "Compare the fingerprints", compare: "On your fleet, open Settings → Hub → Waiting for approval. Compare its fingerprint with this one. Confirm locally on your fleet too.",
|
|
11
11
|
match: "They match", mismatch: "They differ", mismatchStop: "The fingerprints differ. Pairing is stopped; no connection was approved. Start again only after checking the address.",
|
|
12
|
-
stop: "Stop pairing", stopped: "Pairing stopped", again: "Start again", waiting: "Waiting for your fleet's code and
|
|
12
|
+
stop: "Stop pairing", stopped: "Pairing stopped", again: "Start again", waiting: "Waiting for your fleet's code and your confirmation…",
|
|
13
13
|
another: "Connect another fleet",
|
|
14
14
|
claim: "Waiting for your fleet's pinned connection…", connected: "Connected", publish: "Share agents on your fleet", publishHint: "On your fleet, open Settings → Hub → Shared agents. Choose only the agents you want to share and confirm there. Nothing is shared automatically.",
|
|
15
|
-
publishNo: "Your fleet is connected. Sharing new agents is not included in your current permissions; contact your Hub
|
|
15
|
+
publishNo: "Your fleet is connected. Sharing new agents is not included in your current permissions; contact your Hub administrator.",
|
|
16
16
|
expired: "This attempt expired or was replaced. It cannot connect a fleet. Start again.", unavailable: "Permissions or the connection can't be checked right now. Retry; this page can't confirm whether pairing finished.",
|
|
17
|
-
denied: "Connecting a fleet is not available to you. Contact your Hub
|
|
17
|
+
denied: "Connecting a fleet is not available to you. Contact your Hub administrator.", conflict: "An administrator's pairing code is already waiting for you. Use that code, or ask the admin for help.",
|
|
18
18
|
limit: "Your fleet or pairing limit is reached. Stop an unused attempt or revoke a fleet you no longer use, then try again.", retry: "Retry", failed: "This action could not finish. Retry.",
|
|
19
19
|
notices: "Fleet security notices", notice: "A new fleet was connected: {0}", approved: "Approved by your Hub's group policy.",
|
|
20
20
|
revoke: "Revoke this fleet", revokeAsk: "Revoke {0}? It loses its Hub access at once. Your other fleets and local agent work stay in place.", revoked: "Revoked", revokeHint: "Stops this fleet's Hub access. Your other fleets and local agent work stay in place.",
|
|
@@ -23,17 +23,17 @@ register("hubQuick", {
|
|
|
23
23
|
"zh-TW": {
|
|
24
24
|
start: "連接我的 Fleet", label: "Fleet 名稱", labelHint: "取一個你和 Hub 管理員都認得的名字。", labelExample: "例如:我的筆電",
|
|
25
25
|
privacy: "只連接你能控制的 Fleet。你的其他 Hub 登入工作階段、已連接的 Fleet 和 Hub 管理員都會收到通知。",
|
|
26
|
-
localTitle: "在你的 Fleet 確認", local: "在你的 Fleet 網頁開啟「設定 → Hub」,開啟「允許這個 Fleet
|
|
26
|
+
localTitle: "在你的 Fleet 確認", local: "在你的 Fleet 網頁開啟「設定 → Hub」,開啟「允許這個 Fleet 連接 Hub」,將以下位址貼到「Hub 位址」欄位,再輸入配對碼,並在當地確認提示。",
|
|
27
27
|
remoteSteps: "也要在 Hub 完成指紋比對。", ownerStep: "在 Hub 比對這個指紋,並確認你的配對。", policyStep: "Hub 會檢查群組規則,或等待管理員核准。",
|
|
28
|
-
address: "Hub 位址", code: "
|
|
28
|
+
address: "Hub 位址", code: "配對碼", copy: "複製", copied: "已複製", expires: "有效至 {0}",
|
|
29
29
|
compareTitle: "比對指紋", compare: "在你的 Fleet 開啟「設定 → Hub → 等待核准」,將當地指紋與下方逐一比對,也要在你的 Fleet 確認。",
|
|
30
|
-
match: "指紋相符", mismatch: "指紋不同", mismatchStop: "
|
|
31
|
-
stop: "停止配對", stopped: "已停止配對", again: "重新開始", waiting: "等待你的 Fleet
|
|
30
|
+
match: "指紋相符", mismatch: "指紋不同", mismatchStop: "指紋不同,已停止配對,沒有核准連接。請先檢查位址,再重新開始。",
|
|
31
|
+
stop: "停止配對", stopped: "已停止配對", again: "重新開始", waiting: "等待你的 Fleet 使用配對碼並完成確認…", claim: "等待你的 Fleet 建立已固定憑證的連接…",
|
|
32
32
|
another: "連接另一個 Fleet",
|
|
33
33
|
connected: "已連接", publish: "在你的 Fleet 分享 Agent", publishHint: "在你的 Fleet 開啟「設定 → Hub → 已分享的 Agent」,選擇你要分享的 Agent 並在當地確認。不會自動分享任何 Agent。",
|
|
34
34
|
publishNo: "Fleet 已連接,但你目前的權限不包含分享新的 Agent。請聯絡 Hub 管理員。",
|
|
35
|
-
expired: "這次配對已過期或被取代,無法再連接 Fleet。請重新開始。", unavailable: "
|
|
36
|
-
denied: "你目前無法連接 Fleet。請聯絡 Hub 管理員。", conflict: "
|
|
35
|
+
expired: "這次配對已過期或被取代,無法再連接 Fleet。請重新開始。", unavailable: "目前無法確認權限或連接。請重試;此頁無法確認配對是否已完成。",
|
|
36
|
+
denied: "你目前無法連接 Fleet。請聯絡 Hub 管理員。", conflict: "管理員已為你建立配對碼。請使用它,或請管理員協助。",
|
|
37
37
|
limit: "已達 Fleet 或配對數量上限。請停止未使用的配對,或撤銷不再使用的 Fleet,再重試。", retry: "重試", failed: "這次操作未能完成,請重試。",
|
|
38
38
|
notices: "Fleet 安全通知", notice: "已連接新的 Fleet:{0}", approved: "由 Hub 群組規則核准。", revoke: "撤銷此 Fleet", revokeAsk: "要撤銷「{0}」嗎?它會立即失去 Hub 存取。你的其他 Fleet 和本機 Agent 工作不受影響。", revoked: "已撤銷",
|
|
39
39
|
revokeHint: "停止這個 Fleet 的 Hub 存取。你的其他 Fleet 和本機 Agent 工作不受影響。", review: "在 Hub 查看並撤銷", previous: "較早的通知", more: "顯示更早的通知", fleetId: "Fleet ID",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// M-3007 (alpha.2 re-run): an agent the owner switched on, which the Hub refused to list because the administrator has not
|
|
2
|
+
// allowed this person to share agents (#3759 keeps the link up and sends the refusal back). The row says so instead of
|
|
3
|
+
// "Shared", its switch is off, and the owner can withdraw the request. Once the administrator allows sharing, the next
|
|
4
|
+
// snapshot is accepted and the row is "Shared" again. Its own module, so an older cached hub-strings never shows a raw key.
|
|
5
|
+
import { register, t } from "/assets/app-i18n.js";
|
|
6
|
+
|
|
7
|
+
register("hubShareRefused", {
|
|
8
|
+
en: {
|
|
9
|
+
note: "Not shared: your Hub administrator hasn't allowed you to share agents. It will be shared once they do.",
|
|
10
|
+
withdraw: "Don't share it",
|
|
11
|
+
},
|
|
12
|
+
"zh-TW": {
|
|
13
|
+
note: "未分享:Hub 管理員還沒有允許你分享 Agent。管理員允許後就會自動分享。",
|
|
14
|
+
withdraw: "不要分享",
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
export const hr = (key, ...args) => t(`hubShareRefused.${key}`, ...args);
|
package/dist/ui/hub-strings.js
CHANGED
|
@@ -11,18 +11,18 @@ register("hub", {
|
|
|
11
11
|
myFleet: "My fleet", hub: "Hub", openHubTab: "Open {0} in a new tab", switcher: "Workspace",
|
|
12
12
|
// The Hub's own pages
|
|
13
13
|
askTitle: "Ask", askEmpty: "No agents you can ask yet", askHint: "When an owner shares an agent with you, it appears here with who allowed it.",
|
|
14
|
-
exposuresTitle: "My
|
|
14
|
+
exposuresTitle: "My shared agents", exposuresEmpty: "You don't share any agents yet",
|
|
15
15
|
exposuresHint: "Share an agent from your own fleet: Settings → Hub → Connect to a Hub.",
|
|
16
16
|
adminTitle: "Administration",
|
|
17
|
-
// The Hub workspace (S3b): sign-in, Ask, My
|
|
17
|
+
// The Hub workspace (S3b): sign-in, Ask, My shared agents, Administration
|
|
18
18
|
signedOutHub: "Not signed in", signOut: "Sign out", signInTitle: "Sign in to the Hub",
|
|
19
|
-
signInLead: "Use your
|
|
19
|
+
signInLead: "Use your company account. Your password goes to the directory only and is never kept.",
|
|
20
20
|
login: "Account", password: "Password", signIn: "Sign in",
|
|
21
21
|
errSignIn: "That account and password didn't work.", errDirectory: "The directory can't be reached right now. Try again later.",
|
|
22
22
|
errBusyHub: "Too many requests just now. Wait a moment and try again.", errConflictHub: "This changed meanwhile. It has been reloaded; check it and try again.",
|
|
23
|
-
errNotFound: "Not found, or not available to you.", errDenied: "You're not allowed to do that (or no longer).", errUnreachableHub: "The Hub can't be reached.",
|
|
23
|
+
errNotFound: "Not found, or not available to you.", errDenied: "You're not allowed to do that (or no longer).", approveOwnerDenied: "{0} can't connect a Fleet right now: they aren't in the allowed groups, or they've been blocked from connecting.", errUnreachableHub: "The Hub can't be reached.",
|
|
24
24
|
askableTitle: "Agents you can ask", allowedBy: "Shared by {0} · until {1}", ask: "Ask", roomsTitle: "Your conversations", openRoom: "Open", back: "Back",
|
|
25
|
-
roomNote: "You're asking as yourself
|
|
25
|
+
roomNote: "You're asking as yourself: the owner sees that you asked. The agent answers within what its owner allows.",
|
|
26
26
|
roomShared: "Everyone who asks this agent shares its one conversation, so it may remember what others asked. Don't send anything other askers shouldn't see.",
|
|
27
27
|
agentPolicy: "Shared as a representative agent: questions go into its ordinary conversation, with the tools its fleet's Settings allow.",
|
|
28
28
|
expiredText: "This text was removed under the Hub's retention policy.", roomClosed: "This conversation is closed: the access it used was withdrawn.",
|
|
@@ -31,21 +31,21 @@ register("hub", {
|
|
|
31
31
|
stageNotAnswered: "Not answered", stageUncertain: "Outcome unknown; the owner has been told",
|
|
32
32
|
pairingsTitle: "Pairing requests for you", pairingsLead: "Confirm only if this fingerprint matches the one your fleet's Settings shows.",
|
|
33
33
|
confirmPairing: "Confirm", confirmPairingAsk: "Does your fleet show this fingerprint?\n{0}", confirmed: "Confirmed",
|
|
34
|
-
state_published: "Shared", state_withdrawn: "Withdrawn", state_frozen: "
|
|
34
|
+
state_published: "Shared", state_withdrawn: "Withdrawn", state_frozen: "Sharing stopped on the Hub", revision: "revision {0}", until: "until {0}",
|
|
35
35
|
noGrants: "Nobody can ask it yet.", grantLogin: "Allow this account to ask", grantDays: "For", days: "{0} days", allow: "Allow",
|
|
36
|
-
freeze: "Stop
|
|
36
|
+
freeze: "Stop sharing", freezeAsk: "Stop sharing {0}? No one can ask it any more. To share it again, it has to be shared again from its fleet, and everyone has to be allowed to ask again.",
|
|
37
37
|
revoke: "Revoke", revokeAsk: "Revoke {0}'s access? Their conversation closes.",
|
|
38
|
-
adminOnly: "Only the Hub administrator can see this", adminOnlyHint: "
|
|
38
|
+
adminOnly: "Only the Hub administrator can see this", adminOnlyHint: "Connected fleets and pairing codes are managed here.",
|
|
39
39
|
pairTitle: "Pair a fleet", pairLead: "Create a one-time code for a person who has signed in to this Hub. It works once, for ten minutes.",
|
|
40
40
|
pairOwner: "Owner's account", pairCreate: "Create code", pairCode: "Give this code to {0}, for their fleet's Settings:",
|
|
41
41
|
pendingPairings: "Pairing requests", codeUnused: "Code not used yet", ownerConfirmed: "Owner confirmed", ownerWaiting: "Waiting for the owner's confirmation",
|
|
42
42
|
approved: "Approved", approve: "Approve", approveAsk: "Approve the fleet with this fingerprint?\n{0}",
|
|
43
|
-
fleetsTitle: "
|
|
44
|
-
noFleets: "No
|
|
43
|
+
fleetsTitle: "Connected fleets", fleetActive: "Active", fleetRevoked: "Revoked", revokeFleetAsk: "Revoke {0}'s fleet? It disconnects and everything it shares is withdrawn.", revokeFleetNamedAsk: "Revoke {1}'s fleet “{0}”? It disconnects and everything it shares is withdrawn.",
|
|
44
|
+
noFleets: "No fleet is connected yet.",
|
|
45
45
|
// Settings → Connect to a Hub
|
|
46
46
|
title: "Connect to a Hub",
|
|
47
|
-
lead: "A Hub lets people in your
|
|
48
|
-
address: "Hub address", addressPh: "https://", addressHint: "The https:// address your Hub administrator gave you.", code: "
|
|
47
|
+
lead: "A Hub lets people in your organization ask agents you choose to share. Your fleet stays yours: you decide which agents are shared and who may ask them.",
|
|
48
|
+
address: "Hub address", addressPh: "https://", addressHint: "The https:// address your Hub administrator gave you.", code: "Pairing code", connect: "Connect",
|
|
49
49
|
errAddress: "Enter the Hub's https:// address.", errCode: "Enter the pairing code exactly as it was given.",
|
|
50
50
|
errBusy: "This fleet is already connected or waiting for approval.", errUnreachable: "Could not reach the Hub at that address.",
|
|
51
51
|
errRefused: "The Hub refused this code.", errFailed: "That didn't work. Try again.",
|
|
@@ -58,23 +58,23 @@ register("hub", {
|
|
|
58
58
|
disconnectAsk: "Disconnect from {0}? Every agent you share there is withdrawn.",
|
|
59
59
|
disconnectPending: "Disconnected here. The Hub hasn't confirmed it yet; it will be told when it can be reached.",
|
|
60
60
|
keyTitle: "The Hub's key changed",
|
|
61
|
-
keyLead: "Nothing connects until you
|
|
62
|
-
keyApproved: "Approved key", keyOffered: "Key the Hub presents now", repair: "
|
|
61
|
+
keyLead: "Nothing connects until you reconnect. If you didn't expect this, ask your Hub administrator before reconnecting.",
|
|
62
|
+
keyApproved: "Approved key", keyOffered: "Key the Hub presents now", repair: "Reconnect",
|
|
63
63
|
heldTitle: "On hold", holdClear: "Start over",
|
|
64
|
-
hold_unknown_outcome: "The last
|
|
65
|
-
hold_expired: "The
|
|
66
|
-
offlineRecovery: "A temporary outage reconnects automatically. If the Hub was restored or no longer
|
|
67
|
-
hold_rejected: "The Hub cannot resume this fleet’s saved connection. It may have been restored to an older state or no longer
|
|
68
|
-
hold_refused: "The Hub refused the
|
|
64
|
+
hold_unknown_outcome: "The last connection step's result is unknown. Nothing runs until it is checked.",
|
|
65
|
+
hold_expired: "The connection request expired.", hold_unsaved: "This fleet couldn't save its Hub settings. Nothing connects until they can be saved.",
|
|
66
|
+
offlineRecovery: "A temporary outage reconnects automatically. If the Hub was restored or no longer recognizes this fleet, reconnect.",
|
|
67
|
+
hold_rejected: "The Hub cannot resume this fleet’s saved connection. It may have been restored to an older state or no longer recognize this fleet. Reconnect it.",
|
|
68
|
+
hold_refused: "The Hub refused the connection.", hold_revoked: "The Hub revoked this fleet's connection.", hold_other: "The connection is on hold.",
|
|
69
69
|
sharedTitle: "Shared agents",
|
|
70
70
|
sharedLead: "Every agent is private unless you share it. Only an agent that can run in a restricted, read-only mode can be shared.",
|
|
71
|
-
share: "Share {0}", notEnforceable: "Can't be shared yet: restricted mode isn't available for it.", frozen: "
|
|
72
|
-
policy: "Shares {0} · tools: {1}", noAgents: "This fleet has no agents yet.",
|
|
71
|
+
share: "Share {0}", notEnforceable: "Can't be shared yet: restricted mode isn't available for it.", frozen: "Sharing stopped on the Hub",
|
|
72
|
+
policy: "Shares {0} · tools: {1}", noAgents: "This fleet has no agents to share yet.",
|
|
73
73
|
// S3c (S-55): the owner's picker and the confirmation it waits for.
|
|
74
74
|
pickView: "Data view", pickTools: "Tools", shareNow: "Share", pickCancel: "Cancel", pickNone: "Choose a data view and at least one tool.",
|
|
75
|
-
waitingConfirm: "Waiting for your confirmation", pendingSent: "Sent for confirmation:
|
|
75
|
+
waitingConfirm: "Waiting for your confirmation", pendingSent: "Sent for confirmation: finish it on the confirm card to share it.",
|
|
76
76
|
errLimit: "At most 64 agents can be shared.", notAvailable: "Not available on this AgEnD version.",
|
|
77
|
-
hubStillNeeded: "Still needed on the Hub:", ownerStepHub: "Your confirmation: sign in to the Hub, open My
|
|
77
|
+
hubStillNeeded: "Still needed on the Hub:", ownerStepHub: "Your confirmation: sign in to the Hub, open My shared agents and confirm this fingerprint.",
|
|
78
78
|
adminStepHub: "The Hub administrator's approval of this fingerprint.", hubProgressHidden: "This page can't see their progress; it connects once both are done.",
|
|
79
79
|
localMatch: "It matches the Hub's screen", localConfirmed: "You confirmed this fingerprint here.",
|
|
80
80
|
hold_disconnected: "Disconnected here. The Hub still lists this fleet until its administrator revokes it.", startOver: "Start over",
|
|
@@ -83,75 +83,75 @@ register("hub", {
|
|
|
83
83
|
},
|
|
84
84
|
"zh-TW": {
|
|
85
85
|
allowOnHub: "允許他人提問…",
|
|
86
|
-
preview: "
|
|
86
|
+
preview: "預覽:這個版本還不能真正連接 Hub,這裡的操作不會離開這個頁面。",
|
|
87
87
|
myFleet: "我的 Fleet", hub: "Hub", openHubTab: "在新分頁開啟 {0}", switcher: "工作區",
|
|
88
88
|
askTitle: "提問", askEmpty: "目前還沒有你可以提問的 Agent", askHint: "有人把 Agent 開放給你之後,它會出現在這裡,並註明是誰授權的。",
|
|
89
|
-
exposuresTitle: "
|
|
90
|
-
exposuresHint: "請在自己的 Fleet
|
|
89
|
+
exposuresTitle: "我分享的 Agent", exposuresEmpty: "你還沒有分享任何 Agent",
|
|
90
|
+
exposuresHint: "請在自己的 Fleet 分享 Agent:設定 → Hub。",
|
|
91
91
|
adminTitle: "管理",
|
|
92
92
|
signedOutHub: "尚未登入", signOut: "登出", signInTitle: "登入 Hub",
|
|
93
|
-
signInLead: "
|
|
93
|
+
signInLead: "請使用公司帳號登入。密碼只送給目錄服務驗證,不會被保存。",
|
|
94
94
|
login: "帳號", password: "密碼", signIn: "登入",
|
|
95
95
|
errSignIn: "帳號或密碼不正確。", errDirectory: "目前無法連到目錄服務,請稍後再試。",
|
|
96
96
|
errBusyHub: "請求太頻繁,請稍候再試。", errConflictHub: "這個項目剛剛有變更,已重新載入,請確認後再試一次。",
|
|
97
|
-
errNotFound: "找不到,或你無法使用。", errDenied: "你沒有權限(或權限已被撤回)。", errUnreachableHub: "無法連到 Hub。",
|
|
97
|
+
errNotFound: "找不到,或你無法使用。", errDenied: "你沒有權限(或權限已被撤回)。", approveOwnerDenied: "{0} 目前不能連接 Fleet(不在允許的範圍,或已被禁止連接)。", errUnreachableHub: "無法連到 Hub。",
|
|
98
98
|
askableTitle: "你可以提問的 Agent", allowedBy: "由 {0} 開放 · 到 {1}", ask: "提問", roomsTitle: "你的對話", openRoom: "開啟", back: "返回",
|
|
99
|
-
roomNote: "
|
|
99
|
+
roomNote: "你是以自己的身分提問:對方會看到是你問的;Agent 用擁有者允許的範圍回答。",
|
|
100
100
|
roomShared: "所有向這個 Agent 提問的人共用它的同一段對話,它可能記得其他人問過的內容。請勿傳送不該讓其他提問者看到的內容。",
|
|
101
|
-
agentPolicy: "以代表 Agent
|
|
101
|
+
agentPolicy: "以代表 Agent 分享:提問會送到它平常的對話,使用它所在 Fleet 設定允許的工具。",
|
|
102
102
|
expiredText: "這段文字已依 Hub 的保存期限刪除。", roomClosed: "這段對話已關閉:它使用的權限已被撤回。",
|
|
103
103
|
question: "問題", questionPh: "輸入問題…", send: "送出",
|
|
104
104
|
stageQueued: "等待擁有者的 Fleet", stageDelivered: "已送達", stageWorking: "處理中", stageAnswered: "已回答",
|
|
105
105
|
stageNotAnswered: "未回答", stageUncertain: "結果不明,已通知擁有者",
|
|
106
106
|
pairingsTitle: "給你的配對請求", pairingsLead: "請確認這個指紋和你 Fleet 設定頁顯示的相同,再按確認。",
|
|
107
107
|
confirmPairing: "確認", confirmPairingAsk: "你的 Fleet 顯示的是這個指紋嗎?\n{0}", confirmed: "已確認",
|
|
108
|
-
state_published: "
|
|
108
|
+
state_published: "分享中", state_withdrawn: "已撤回", state_frozen: "已在 Hub 停止分享", revision: "第 {0} 版", until: "到 {0}",
|
|
109
109
|
noGrants: "目前沒有人可以提問。", grantLogin: "允許這個帳號提問", grantDays: "期間", days: "{0} 天", allow: "允許",
|
|
110
|
-
freeze: "
|
|
110
|
+
freeze: "停止分享", freezeAsk: "要停止分享 {0} 嗎?之後沒有人能再向它提問。要再分享,必須回到它的 Fleet 重新分享,而且每個人都要重新允許提問。",
|
|
111
111
|
revoke: "撤銷", revokeAsk: "要撤銷 {0} 的權限嗎?對方的對話會關閉。",
|
|
112
|
-
adminOnly: "只有 Hub 管理員可以查看", adminOnlyHint: "
|
|
113
|
-
pairTitle: "配對 Fleet", pairLead: "為已登入過這個 Hub
|
|
112
|
+
adminOnly: "只有 Hub 管理員可以查看", adminOnlyHint: "已連接的 Fleet 與配對碼在這裡管理。",
|
|
113
|
+
pairTitle: "配對 Fleet", pairLead: "為已登入過這個 Hub 的人建立配對碼,只能使用一次,十分鐘內有效。",
|
|
114
114
|
pairOwner: "擁有者帳號", pairCreate: "建立配對碼", pairCode: "請把這組配對碼交給 {0},在對方 Fleet 的設定頁輸入:",
|
|
115
115
|
pendingPairings: "配對請求", codeUnused: "配對碼尚未使用", ownerConfirmed: "擁有者已確認", ownerWaiting: "等待擁有者確認",
|
|
116
116
|
approved: "已核准", approve: "核准", approveAsk: "要核准這個指紋的 Fleet 嗎?\n{0}",
|
|
117
|
-
fleetsTitle: "
|
|
118
|
-
noFleets: "
|
|
119
|
-
title: "
|
|
120
|
-
lead: "Hub
|
|
121
|
-
address: "Hub 位址", addressPh: "https://", addressHint: "Hub 管理員給你的 https:// 位址。", code: "
|
|
117
|
+
fleetsTitle: "已連接的 Fleet", fleetActive: "使用中", fleetRevoked: "已撤銷", revokeFleetAsk: "要撤銷 {0} 的 Fleet 嗎?它的連接會結束,分享的內容都會撤回。", revokeFleetNamedAsk: "要撤銷 {1} 的 Fleet「{0}」嗎?它的連接會結束,分享的內容都會撤回。",
|
|
118
|
+
noFleets: "還沒有已連接的 Fleet。",
|
|
119
|
+
title: "連接 Hub",
|
|
120
|
+
lead: "Hub 讓組織裡的人可以向你選擇分享的 Agent 提問。你的 Fleet 仍然屬於你:要分享哪些 Agent、誰可以提問,都由你決定。",
|
|
121
|
+
address: "Hub 位址", addressPh: "https://", addressHint: "Hub 管理員給你的 https:// 位址。", code: "配對碼", connect: "連接",
|
|
122
122
|
errAddress: "請輸入 Hub 的 https:// 位址。", errCode: "請完整輸入配對碼。",
|
|
123
|
-
errBusy: "這個 Fleet
|
|
123
|
+
errBusy: "這個 Fleet 已經連接,或正在等待核准。", errUnreachable: "無法連到這個位址的 Hub。",
|
|
124
124
|
errRefused: "Hub 拒絕了這個配對碼。", errFailed: "沒有成功,請再試一次。",
|
|
125
125
|
pendingTitle: "等待核准", pairingFp: "配對指紋",
|
|
126
126
|
pendingCompare: "請和 Hub 畫面上的指紋比對,兩者相同後再到 Hub 確認。",
|
|
127
127
|
pendingSteps: "還需要:", ownerStep: "你用自己的 Hub 帳號確認", adminStep: "Hub 管理員核准",
|
|
128
128
|
done: "已完成", waiting: "等待中", expires: "{0} 到期", cancel: "取消請求", showFull: "顯示完整指紋", hideFull: "收合",
|
|
129
|
-
pairedTitle: "
|
|
130
|
-
openHub: "開啟 Hub", disconnect: "
|
|
131
|
-
disconnectAsk: "
|
|
129
|
+
pairedTitle: "已連接 {0}", online: "在線", offline: "離線,正在重新連線", hubKeyFp: "Hub 金鑰指紋",
|
|
130
|
+
openHub: "開啟 Hub", disconnect: "移除連接",
|
|
131
|
+
disconnectAsk: "要移除與 {0} 的連接嗎?你在那裡分享的 Agent 都會撤回。",
|
|
132
132
|
disconnectPending: "已在這裡中斷。Hub 尚未確認,連得上時會再通知它。",
|
|
133
133
|
keyTitle: "Hub 的金鑰已變更",
|
|
134
|
-
keyLead: "
|
|
135
|
-
keyApproved: "已核准的金鑰", keyOffered: "Hub 目前提供的金鑰", repair: "
|
|
134
|
+
keyLead: "重新連接前不會連接。若你沒有預期這個變更,請先詢問 Hub 管理員,再重新連接。",
|
|
135
|
+
keyApproved: "已核准的金鑰", keyOffered: "Hub 目前提供的金鑰", repair: "重新連接",
|
|
136
136
|
heldTitle: "暫停中", holdClear: "重新開始",
|
|
137
|
-
hold_unknown_outcome: "
|
|
138
|
-
hold_expired: "
|
|
139
|
-
offlineRecovery: "暫時離線會自動重新連線。若 Hub 已還原,或不再接受這個 Fleet
|
|
140
|
-
hold_rejected: "Hub 無法繼續使用這個 Fleet 儲存的連接。Hub 可能已還原至較舊的狀態,或不再接受這個 Fleet
|
|
141
|
-
hold_refused: "Hub
|
|
142
|
-
sharedTitle: "
|
|
143
|
-
sharedLead: "每個 Agent
|
|
144
|
-
share: "
|
|
145
|
-
policy: "
|
|
146
|
-
pickView: "資料檢視", pickTools: "工具", shareNow: "
|
|
147
|
-
waitingConfirm: "等待你的確認", pendingSent: "
|
|
148
|
-
errLimit: "
|
|
149
|
-
hubStillNeeded: "還需要在 Hub 完成:", ownerStepHub: "你的確認:登入 Hub
|
|
150
|
-
adminStepHub: "Hub 管理員核准這個指紋。", hubProgressHidden: "這個頁面看不到 Hub
|
|
137
|
+
hold_unknown_outcome: "最後一個連接步驟的結果不明,確認之前不會執行任何工作。",
|
|
138
|
+
hold_expired: "連接請求已過期。", hold_unsaved: "這個 Fleet 無法儲存 Hub 設定,可以儲存之前不會連接。",
|
|
139
|
+
offlineRecovery: "暫時離線會自動重新連線。若 Hub 已還原,或不再接受這個 Fleet,請重新連接。",
|
|
140
|
+
hold_rejected: "Hub 無法繼續使用這個 Fleet 儲存的連接。Hub 可能已還原至較舊的狀態,或不再接受這個 Fleet;請重新連接。",
|
|
141
|
+
hold_refused: "Hub 拒絕了這次連接。", hold_revoked: "Hub 已撤銷這個 Fleet 的連接。", hold_other: "連接已暫停。",
|
|
142
|
+
sharedTitle: "分享的 Agent",
|
|
143
|
+
sharedLead: "每個 Agent 預設都不分享。只有能在受限、唯讀模式下執行的 Agent 才能分享。",
|
|
144
|
+
share: "分享 {0}", notEnforceable: "暫時無法分享:這個 Agent 還不能使用受限模式。", frozen: "已在 Hub 停止分享",
|
|
145
|
+
policy: "分享 {0} · 工具:{1}", noAgents: "這個 Fleet 還沒有可以分享的 Agent。",
|
|
146
|
+
pickView: "資料檢視", pickTools: "工具", shareNow: "分享", pickCancel: "取消", pickNone: "請選擇一個資料檢視和至少一個工具。",
|
|
147
|
+
waitingConfirm: "等待你的確認", pendingSent: "已送出確認:請在確認卡完成,才會分享。",
|
|
148
|
+
errLimit: "最多只能分享 64 個 Agent。", notAvailable: "這個 AgEnD 版本無法使用此功能。",
|
|
149
|
+
hubStillNeeded: "還需要在 Hub 完成:", ownerStepHub: "你的確認:登入 Hub,在「我分享的 Agent」確認這個指紋。",
|
|
150
|
+
adminStepHub: "Hub 管理員核准這個指紋。", hubProgressHidden: "這個頁面看不到 Hub 那邊的進度,兩項都完成後就會連接。",
|
|
151
151
|
localMatch: "和 Hub 畫面上的一致", localConfirmed: "你已在這裡確認這個指紋。",
|
|
152
|
-
hold_disconnected: "
|
|
152
|
+
hold_disconnected: "已在這裡移除連接。Hub 管理員撤銷之前,Hub 上仍會列出這個 Fleet。", startOver: "重新開始",
|
|
153
153
|
errConflict: "這份清單在其他分頁有變更,已重新載入,請再試一次。", errUnsaved: "無法儲存這個變更。",
|
|
154
|
-
errNotPaired: "
|
|
154
|
+
errNotPaired: "請先連接 Hub。", withdrawPending: "已在這裡撤回,連得上 Hub 時會再通知它。",
|
|
155
155
|
},
|
|
156
156
|
});
|
|
157
157
|
/** hub.* words: hw("pairedTitle", name). */
|
package/dist/ui/hub-this-hub.js
CHANGED
|
@@ -16,7 +16,7 @@ register("hubThisHub", {
|
|
|
16
16
|
name: "Hub name", noName: "No name", namePlaceholder: "No name: shown as AgEnD Hub", nameHint: "Up to 64 characters.",
|
|
17
17
|
save: "Save name", removeName: "Remove name", saving: "Saving…",
|
|
18
18
|
saved: "Saved. The Hub is reloading with its new name.", removed: "Name removed. The Hub is reloading.",
|
|
19
|
-
hubId: "Hub ID", memberKey: "Member key fingerprint", memberKeyHint: "People compare this when they
|
|
19
|
+
hubId: "Hub ID", memberKey: "Member key fingerprint", memberKeyHint: "People compare this when they connect a fleet with a pairing code.",
|
|
20
20
|
issuerKey: "Issuer key", version: "AgEnD version", unknown: "Unknown",
|
|
21
21
|
install: "Installed as", install_dedicated: "Dedicated: this computer runs only the Hub", "install_same-user-pilot": "Beside a fleet, under the same user",
|
|
22
22
|
installHint: "Chosen when the Hub was set up.",
|
|
@@ -35,7 +35,7 @@ register("hubThisHub", {
|
|
|
35
35
|
name: "Hub 名稱", noName: "沒有名稱", namePlaceholder: "沒有名稱:顯示為 AgEnD Hub", nameHint: "最多 64 個字元。",
|
|
36
36
|
save: "儲存名稱", removeName: "移除名稱", saving: "儲存中…",
|
|
37
37
|
saved: "已儲存。Hub 正在以新名稱重新載入。", removed: "已移除名稱。Hub 正在重新載入。",
|
|
38
|
-
hubId: "Hub ID", memberKey: "成員金鑰指紋", memberKeyHint: "
|
|
38
|
+
hubId: "Hub ID", memberKey: "成員金鑰指紋", memberKeyHint: "有人用配對碼把 Fleet 連接到這個 Hub 時,會比對這組指紋。",
|
|
39
39
|
issuerKey: "簽發金鑰", version: "AgEnD 版本", unknown: "不明",
|
|
40
40
|
install: "安裝方式", install_dedicated: "專用:這台電腦只執行 Hub", "install_same-user-pilot": "與 Fleet 共用同一個使用者",
|
|
41
41
|
installHint: "在設定 Hub 時選定。",
|
package/dist/ui/hub-welcome.js
CHANGED
|
@@ -11,6 +11,8 @@ import { hubClient, hubName } from "./hub-client.js";
|
|
|
11
11
|
import { hg } from "./hub-group-strings.js";
|
|
12
12
|
import { hr } from "./hub-read-strings.js";
|
|
13
13
|
import { OwnedFleetRevoke, QuickPairingGuide } from "./hub-quick-pairing.js";
|
|
14
|
+
import { joinSentence, otherWaysLabel } from "./hub-join-steps.js";
|
|
15
|
+
import { CompanyJoinAdminCard } from "./hub-company-join.js";
|
|
14
16
|
|
|
15
17
|
const FLEET_STATUS = { active: "fleetActive", suspended: "fleetPaused", revoked: "fleetRevoked", unknown: "fleetUnknown" };
|
|
16
18
|
|
|
@@ -26,7 +28,7 @@ export function reasonText(entry, fallback) {
|
|
|
26
28
|
* `onChats` opens the chat list (the caller's own navigation). `askable` is how many agents are shared with this person
|
|
27
29
|
* (the catalog's own count), so a new owner with nothing shared reads "No agents have been shared with you yet".
|
|
28
30
|
*/
|
|
29
|
-
export function HubWelcome({ name, quick = false, onChats = () => navigate("/ui/hub?chats=1") }) {
|
|
31
|
+
export function HubWelcome({ name, quick = false, onChats = () => navigate("/ui/hub?chats=1"), admin = false, features = [] }) {
|
|
30
32
|
const c = hubClient();
|
|
31
33
|
const [w, setW] = useState(null), [askable, setAskable] = useState(null), [error, setError] = useState(null);
|
|
32
34
|
const live = useRef(true), generation = useRef(0), retry = useRef(null);
|
|
@@ -57,6 +59,21 @@ export function HubWelcome({ name, quick = false, onChats = () => navigate("/ui/
|
|
|
57
59
|
live.current = false; generation.current++; clearTimeout(retry.current);
|
|
58
60
|
}; }, []);
|
|
59
61
|
const refresh = async () => { const r = await c.welcome(); if (live.current && r.ok) setW(r); };
|
|
62
|
+
// Hub UX U2 (spec 1.2): an administrator, while no Fleet is connected to this Hub, sees 「讓同仁加入」 here — never the
|
|
63
|
+
// "your Hub admin pairs fleets for you" line. An older panel passes no `admin`: the person view, as before.
|
|
64
|
+
const companyJoin = Array.isArray(features) && features.includes("company-join-v1");
|
|
65
|
+
const [hubEmpty, setHubEmpty] = useState(false);
|
|
66
|
+
// #3698 r1 (Fable): the session's company-join-v1 says joining is composed, not that it is switched on. The sentence follows the
|
|
67
|
+
// switch as a Fleet sees it — the public metadata's features — and until that says on (or on an older client), the earlier line.
|
|
68
|
+
const [joinOn, setJoinOn] = useState(false);
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
if (!companyJoin || typeof c.joinMetadata !== "function") return;
|
|
71
|
+
c.joinMetadata().then((r) => { if (live.current) setJoinOn(!!r && r.ok === true && Array.isArray(r.features) && r.features.includes("company-join-v1")); }, () => {});
|
|
72
|
+
}, [companyJoin]);
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
if (!admin || !companyJoin || typeof c.adminOverview !== "function") return;
|
|
75
|
+
c.adminOverview().then((r) => { if (live.current && r && r.ok) setHubEmpty(!(r.fleets || []).some((f) => f.status === "active")); }, () => {});
|
|
76
|
+
}, [admin, companyJoin]);
|
|
60
77
|
// The chats' panel header already names the page ("Chats"): the welcome greets in its lead, not with a second title
|
|
61
78
|
// stacked under the first (Argon #7). The Hub's name stays beside the greeting.
|
|
62
79
|
const head = html`<p class="s-page-lead hub-page-lead hub-welcome-lead"><strong>${hg("welcomeTitle", name || "")}</strong>${hubName() ? html` <span class="s-scope">${hubName()}</span>` : null}<br />${hg("welcomeLead")}</p>`;
|
|
@@ -90,13 +107,17 @@ export function HubWelcome({ name, quick = false, onChats = () => navigate("/ui/
|
|
|
90
107
|
${connectOk && max > 0 ? html`<p class="note" data-welcome="fleets">${hg("connectFleets", used, max)}</p>` : null}
|
|
91
108
|
${fleets.length ? html`<ul class="hub-welcome-fleets">${fleets.map((f) => html`<li key=${f.id}><span class="hub-fp-full">${f.label || f.id}</span> <span class=${`tag${f.status === "active" ? " ok" : f.status === "suspended" || f.status === "unknown" ? " warn" : ""}`} data-fleet-status=${f.status}>${hg(FLEET_STATUS[f.status] || "fleetUnknown")}</span>
|
|
92
109
|
${quickOn ? html`<${OwnedFleetRevoke} fleet=${f} onRevoked=${load} />` : null}</li>`)}</ul>` : null}
|
|
93
|
-
${legacy ? html`<p class="note">${hg("
|
|
94
|
-
: !connectOk ? html`<p class="note">${chat.state === "allow" && connect.reason === "no-group" ? hg("connectNotIncluded") : reasonText(connect, "contactAdmin")}</p>`
|
|
110
|
+
${!legacy && !connectOk ? html`<p class="note">${chat.state === "allow" && connect.reason === "no-group" ? hg("connectNotIncluded") : reasonText(connect, "contactAdmin")}</p>`
|
|
95
111
|
: atLimit ? html`<p class="note" data-welcome="limit">${hg("connectLimit")}</p>`
|
|
96
|
-
:
|
|
97
|
-
|
|
112
|
+
// Spec 1.2: the primary text is step 3's sentence (company join on this Hub); without it, the pairing-code line as before —
|
|
113
|
+
// never to an administrator.
|
|
114
|
+
: companyJoin && joinOn && joinSentence(location.origin) ? html`<p class="note hub-join-sentence" data-welcome="sentence">${joinSentence(location.origin)}</p>`
|
|
115
|
+
: !admin && (legacy || !quickOn) ? html`<p class="note">${hg("connectManual")}</p>` : null}
|
|
116
|
+
${quickOn ? html`<details class="s-ui-disclosure hub-welcome-other"><summary>${otherWaysLabel()}</summary><div class="s-disclosure-body">
|
|
117
|
+
<${QuickPairingGuide} allowed=${connectOk && !atLimit} publishAllowed=${w.publish?.state === "allow"} onConnected=${refresh} /></div></details>` : null}
|
|
98
118
|
</section>
|
|
99
119
|
</div>
|
|
100
120
|
${!legacy && w.publish && w.publish.state !== "allow" && connectOk ? html`<p class="note" data-welcome="publish">${hg("publishNot")}</p>` : null}
|
|
121
|
+
${admin && companyJoin && hubEmpty ? html`<div class="hub-welcome-admin"><${CompanyJoinAdminCard} entry=${true} groups=${true} /></div>` : null}
|
|
101
122
|
</div>`;
|
|
102
123
|
}
|