@songsid/agend 2.3.5-beta.2 → 2.3.5-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-cli-instructions.md +2 -2
- package/dist/auth-api.d.ts +2 -0
- package/dist/auth-api.js +5 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.d.ts +2 -0
- package/dist/backend/claude-code.js +16 -3
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/cli-env-probe.js +6 -2
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend/codex.d.ts +5 -3
- package/dist/backend/codex.js +31 -13
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/kiro.js +1 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/types.d.ts +5 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/bundled-tmux-guard.d.ts +4 -0
- package/dist/bundled-tmux-guard.js +7 -0
- package/dist/bundled-tmux-guard.js.map +1 -1
- package/dist/cache-service.d.ts +6 -0
- package/dist/cache-service.js +105 -0
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/mcp-tools.js +2 -2
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/cli.js +28 -1
- package/dist/cli.js.map +1 -1
- package/dist/daemon.d.ts +3 -0
- package/dist/daemon.js +17 -2
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +71 -0
- package/dist/fleet-manager.js +393 -92
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-process-handlers.d.ts +1 -1
- package/dist/fleet-process-handlers.js +3 -2
- package/dist/fleet-process-handlers.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +11 -12
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +12 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +1 -1
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +16 -11
- package/dist/instance-lifecycle.d.ts +1 -1
- package/dist/instance-lifecycle.js +16 -1
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.js +29 -6
- package/dist/instructions.js.map +1 -1
- package/dist/kiro-history-scan.d.ts +26 -0
- package/dist/kiro-history-scan.js +141 -0
- package/dist/kiro-history-scan.js.map +1 -0
- package/dist/kiro-history-worker.d.ts +1 -0
- package/dist/kiro-history-worker.js +9 -0
- package/dist/kiro-history-worker.js.map +1 -0
- package/dist/kiro-history.d.ts +20 -0
- package/dist/kiro-history.js +96 -0
- package/dist/kiro-history.js.map +1 -0
- package/dist/kiro-usage-run.d.ts +2 -0
- package/dist/kiro-usage-run.js +4 -1
- package/dist/kiro-usage-run.js.map +1 -1
- package/dist/locale.js +69 -67
- package/dist/locale.js.map +1 -1
- package/dist/login-flows.d.ts +4 -0
- package/dist/login-flows.js +8 -4
- package/dist/login-flows.js.map +1 -1
- package/dist/office-levels.d.ts +4 -3
- package/dist/office-levels.js +3 -3
- package/dist/office-levels.js.map +1 -1
- package/dist/outbound-handlers.js +32 -12
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +14 -0
- package/dist/outbound-schemas.js +4 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/setup-i18n.js +4 -4
- package/dist/setup-i18n.js.map +1 -1
- package/dist/subagent-records.d.ts +45 -0
- package/dist/subagent-records.js +214 -0
- package/dist/subagent-records.js.map +1 -0
- package/dist/subagent-service.d.ts +27 -0
- package/dist/subagent-service.js +199 -0
- package/dist/subagent-service.js.map +1 -0
- package/dist/tool-permissions.d.ts +2 -3
- package/dist/tool-permissions.js +3 -3
- package/dist/tool-permissions.js.map +1 -1
- package/dist/ui/backend-signin.js +62 -62
- package/dist/ui/chat-commands.js +7 -0
- package/dist/ui/chat-msg-actions.js +50 -4
- package/dist/ui/chat-quote.js +256 -0
- package/dist/ui/chat-render.js +17 -5
- package/dist/ui/chat-store.js +9 -4
- package/dist/ui/chat-strings.js +18 -18
- package/dist/ui/fleet-cache.js +3 -3
- package/dist/ui/fleet-canvas.js +2 -2
- package/dist/ui/fleet-office-editor.js +1 -1
- package/dist/ui/fleet-office.js +1 -1
- package/dist/ui/fleet-org.js +2 -2
- package/dist/ui/fleet-task-card.js +1 -1
- package/dist/ui/fleet-task-common.js +7 -7
- package/dist/ui/model-picker.js +64 -0
- package/dist/ui/panel-chat.js +81 -17
- package/dist/ui/panel-fleet.js +8 -8
- package/dist/ui/panel-needs.js +3 -3
- package/dist/ui/panel-settings.js +16 -6
- package/dist/ui/settings-catalog.js +19 -4
- package/dist/ui/settings-dialogs.js +25 -8
- package/dist/ui/settings-guests.js +1 -1
- package/dist/ui/settings-registry.js +3 -1
- package/dist/ui/settings-strings.js +30 -26
- package/dist/ui/settings-update.js +69 -0
- package/dist/ui/shared/app-i18n.js +8 -4
- package/dist/ui/shared/app-shell.js +15 -2
- package/dist/ui/shared/app-update.js +215 -0
- package/dist/ui/shared/app.css +58 -6
- package/dist/ui/shared/instance-nav.js +1 -1
- package/dist/ui/shared/model-picker.css +21 -0
- package/dist/ui/shared/setup-host-text.js +4 -4
- package/dist/ui/shared/signin.js +32 -16
- package/dist/ui/shared/subagent-row.css +15 -0
- package/dist/ui/shared/usage-dialog.js +28 -16
- package/dist/ui/shared/view-strings.js +18 -18
- package/dist/ui/structured-signin.js +26 -26
- package/dist/ui/subagent-row.js +72 -0
- package/dist/ui/web-terminal/terminal.js +9 -9
- package/dist/update-launch.js +4 -1
- package/dist/update-launch.js.map +1 -1
- package/dist/update-marker.d.ts +2 -2
- package/dist/update-marker.js +4 -3
- package/dist/update-marker.js.map +1 -1
- package/dist/update-npm-env.d.ts +70 -0
- package/dist/update-npm-env.js +128 -0
- package/dist/update-npm-env.js.map +1 -0
- package/dist/usage/format-rich.js +1 -1
- package/dist/usage/format-rich.js.map +1 -1
- package/dist/usage/providers.js +2 -2
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.d.ts +8 -2
- package/dist/usage/usage-api.js +12 -5
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/usage-rollup.d.ts +3 -0
- package/dist/usage-rollup.js +2 -0
- package/dist/usage-rollup.js.map +1 -1
- package/dist/web-api.d.ts +14 -0
- package/dist/web-api.js +216 -2
- package/dist/web-api.js.map +1 -1
- package/dist/web-auth.js +2 -1
- package/dist/web-auth.js.map +1 -1
- package/dist/web-channel-echo.js +3 -1
- package/dist/web-channel-echo.js.map +1 -1
- package/dist/web-commands.d.ts +8 -0
- package/dist/web-commands.js +6 -0
- package/dist/web-commands.js.map +1 -1
- package/dist/web-update.d.ts +77 -0
- package/dist/web-update.js +104 -0
- package/dist/web-update.js.map +1 -0
- package/launcher/agend-install.cjs +16 -3
- package/package.json +2 -2
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// M-2731: feature-owned words/styles travel with lazy panels, including tabs with an older shell/catalog module.
|
|
2
|
+
import { html, useEffect, useRef, useState } from "/assets/app-html.js";
|
|
3
|
+
import { register, t } from "/assets/app-i18n.js";
|
|
4
|
+
import { Icon } from "/assets/ui-icons.js";
|
|
5
|
+
import { ErrorState } from "/assets/ui-states.js";
|
|
6
|
+
import * as catalogStore from "./settings-catalog.js";
|
|
7
|
+
register("modelPicker", {
|
|
8
|
+
en: { refresh: "Refresh models", refreshing: "Refreshing models…", refreshed: "Model list refreshed.", failed: "Could not refresh models. The previous list and selection are kept.", more: "More models…", backend: "Choose backend", model: "Choose model", next: "Choose a backend; next choose its model and reasoning effort.", current: "Selected", keep: "Refreshing keeps the selected model.", selectionHint: "Refresh keeps your selection; choose a model to apply it." },
|
|
9
|
+
"zh-TW": { refresh: "重新整理模型", refreshing: "正在重新整理模型…", refreshed: "模型清單已更新。", failed: "無法重新整理模型。已保留原清單與選擇。", more: "更多模型…", backend: "選擇後端", model: "選擇模型", next: "選擇後端;下一步選模型與推理強度", current: "已選擇", keep: "重新整理會保留已選模型。", selectionHint: "重新整理只更新清單;選擇模型才會套用。" },
|
|
10
|
+
});
|
|
11
|
+
export const mw = key => t(`modelPicker.${key}`);
|
|
12
|
+
export function modelPickerStyles() {
|
|
13
|
+
if (typeof document === "undefined" || !document.head || document.querySelector('link[href="/assets/model-picker.css"]')) return;
|
|
14
|
+
const link = document.createElement("link"); link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/model-picker.css"); document.head.appendChild(link);
|
|
15
|
+
}
|
|
16
|
+
const answers = new Map(); // share only in-flight passive reads; the server owns catalog freshness
|
|
17
|
+
export function forgetModelPickerCatalogs() { answers.clear(); catalogStore.forgetCatalogs?.(); }
|
|
18
|
+
/** Selection remains owned by the form; rediscovery never calls its onChange or stages a change. */
|
|
19
|
+
export function useRefreshableModels(backend, instance) {
|
|
20
|
+
const target = { backend, ...(instance ? {instance} : {}) };
|
|
21
|
+
const key = JSON.stringify(target);
|
|
22
|
+
const [state, set] = useState({ key, models: [], phase: "loading" });
|
|
23
|
+
const generation = useRef(0);
|
|
24
|
+
const current = useRef(key), flight = useRef(null), mounted = useRef(true);
|
|
25
|
+
current.current = key;
|
|
26
|
+
useEffect(() => { mounted.current = true; return () => { mounted.current = false; }; }, []);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
let live = true; const gen = ++generation.current;
|
|
29
|
+
const url = `/ui/models?backend=${encodeURIComponent(backend || "")}${instance ? `&instance=${encodeURIComponent(instance)}` : ""}`;
|
|
30
|
+
const hit = answers.get(key), fresh = !!hit;
|
|
31
|
+
const promise = fresh ? hit.promise : typeof catalogStore.readModelCatalog === "function" ? catalogStore.readModelCatalog(target) : fetch(url, { credentials: "same-origin" }).then(async r => { if (!r.ok) throw Error(); const data = await r.json(); return Array.isArray(data.models) ? data.models : []; });
|
|
32
|
+
if (!fresh) { answers.set(key, { promise }); if (answers.size > 64) answers.delete(answers.keys().next().value); }
|
|
33
|
+
set({ key, models: [], phase: "loading" }); flight.current = null;
|
|
34
|
+
promise.finally(() => { if (answers.get(key)?.promise === promise) answers.delete(key); }).catch(() => {});
|
|
35
|
+
promise.then(models => { if (live && gen === generation.current) set({ key, models, phase: "idle" }); }, () => { if (answers.get(key)?.promise === promise) answers.delete(key); if (live && gen === generation.current) set({ key, models: [], phase: "error" }); });
|
|
36
|
+
return () => { live = false; };
|
|
37
|
+
}, [key]);
|
|
38
|
+
const shown = state.key === key ? state : { key, models: [], phase: "loading" };
|
|
39
|
+
async function refresh() {
|
|
40
|
+
if (flight.current || !backend) return;
|
|
41
|
+
const token = {}; flight.current = token; generation.current++;
|
|
42
|
+
set({ ...shown, phase: "busy" });
|
|
43
|
+
try {
|
|
44
|
+
const r = await fetch("/ui/models/refresh", { method: "POST", credentials: "same-origin", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ backend, ...(instance ? { instance } : {}) }) });
|
|
45
|
+
const data = await r.json();
|
|
46
|
+
if (!r.ok || data.refreshed !== true || !Array.isArray(data.models)) throw Error();
|
|
47
|
+
if (!mounted.current || current.current !== key || flight.current !== token) return;
|
|
48
|
+
answers.delete(key); // Retire the earlier passive flight before a remount can borrow it.
|
|
49
|
+
catalogStore.rememberModelCatalog?.(target, data);
|
|
50
|
+
set({ key, models: data.models, phase: "done" });
|
|
51
|
+
} catch { if (mounted.current && current.current === key && flight.current === token) set({ ...shown, phase: "error" }); }
|
|
52
|
+
finally { if (flight.current === token) flight.current = null; }
|
|
53
|
+
}
|
|
54
|
+
return { ...shown, refresh };
|
|
55
|
+
}
|
|
56
|
+
export function ModelRefresh({ state, disabled }) {
|
|
57
|
+
modelPickerStyles();
|
|
58
|
+
return html`<div class="model-refresh"><button type="button" class="btn" disabled=${disabled || state.phase === "busy"} onClick=${state.refresh}>
|
|
59
|
+
<${Icon} name="restart" size=${16} />${mw(state.phase === "busy" ? "refreshing" : "refresh")}</button>
|
|
60
|
+
<p class="note">${mw("keep")}</p>
|
|
61
|
+
${state.phase === "error" ? html`<${ErrorState} message=${mw("failed")} onRetry=${disabled ? undefined : state.refresh} />`
|
|
62
|
+
: state.phase === "done" ? html`<p class="note" role="status">${mw("refreshed")}</p>` : null}</div>`;
|
|
63
|
+
}
|
|
64
|
+
export const modelLabel = value => ({ sonnet: "Sonnet", opus: "Opus", haiku: "Haiku" }[value] || value);
|
package/dist/ui/panel-chat.js
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
// right, the agent's at full width, and one rounded composer pinned below with attach, Stop reply and Send inside it.
|
|
7
7
|
// The instance's own actions (details, start, stop, restart, delete) are in the header's ⋯ menu, and only the ones
|
|
8
8
|
// that apply to its state are offered (#1408 rough edges 4 and 7).
|
|
9
|
-
import { html, useEffect, useLayoutEffect, useRef, useState } from "/assets/app-html.js";
|
|
9
|
+
import { html, Fragment, useEffect, useLayoutEffect, useRef, useState } from "/assets/app-html.js";
|
|
10
10
|
import { lang, t } from "/assets/app-i18n.js";
|
|
11
11
|
import { appStore, createStore, guestPage, guestTrusted, useStore } from "/assets/app-store.js";
|
|
12
12
|
import { ComposerAuth } from "/assets/web-authorize.js";
|
|
13
13
|
import { useLease } from "/assets/app-ctx.js";
|
|
14
|
-
import { modelText, namesOf, namesStore, navStore as instanceNavStore } from "/assets/instance-nav.js";
|
|
14
|
+
import { backendLabel, modelText, namesOf, namesStore, navStore as instanceNavStore } from "/assets/instance-nav.js";
|
|
15
15
|
import { PanelHeader, onPanelKey, setTitle, statusClass, statusLabel, openDrawer, requestNewInstance } from "/assets/app-shell.js";
|
|
16
16
|
import { detailsPath, textLinkSegments } from "/assets/app-route.js";
|
|
17
17
|
import { InstanceSwitch } from "/assets/instance-switch.js";
|
|
@@ -23,7 +23,9 @@ import { Empty, Skeleton } from "/assets/ui-states.js";
|
|
|
23
23
|
import { Icon } from "/assets/ui-icons.js";
|
|
24
24
|
import { recordEdit } from "/assets/text-undo.js";
|
|
25
25
|
import { toast } from "/assets/ui-toast.js";
|
|
26
|
+
import { openUpdateDialog } from "/assets/app-update.js";
|
|
26
27
|
import { confirmDialog } from "/assets/ui-confirm.js";
|
|
28
|
+
import { modelLabel, modelPickerStyles, mw } from "./model-picker.js";
|
|
27
29
|
import { savePref } from "/assets/app-prefs.js";
|
|
28
30
|
import { applyTheme, clearAmbient, resolvedMode, themeFor, themeImageUrl, themeMenuItems, themesStore } from "/assets/app-themes.js";
|
|
29
31
|
import { colorMenuItem } from "/assets/identity-color.js";
|
|
@@ -73,12 +75,13 @@ import { confirmedWrite, selfConfirmed } from "./settings-confirm.js";
|
|
|
73
75
|
import { createChatStore } from "./chat-store.js";
|
|
74
76
|
import { createThread, msgKey } from "./chat-thread.js";
|
|
75
77
|
import { installMessageActions } from "./chat-msg-actions.js";
|
|
78
|
+
import { composerCaret, insertQuote, installQuoteSelection, showCaret } from "./chat-quote.js";
|
|
76
79
|
import { createEmojiIndex } from "./chat-emojis.js";
|
|
77
80
|
import { pollPublicPreview } from "./preview-status.js";
|
|
78
81
|
import { createMentionIndex } from "./chat-mentions.js";
|
|
79
82
|
import { setPanelFeedback } from "./preview-panel-actions.js";
|
|
80
83
|
import { PreviewPanel, claimPanel, openMarkdown, openPanel, panelClaims, panelStore, panelVersion, shownKey } from "./preview-panel.js";
|
|
81
|
-
import { needsArgument, paletteFor, parseCommandLine } from "./chat-commands.js";
|
|
84
|
+
import { isUpdateLine, needsArgument, paletteFor, parseCommandLine, UPDATE_COMMAND } from "./chat-commands.js";
|
|
82
85
|
import { installTour, refreshTourSpot } from "./chat-tour.js";
|
|
83
86
|
import { LightboxHost, openLightbox } from "./image-lightbox.js";
|
|
84
87
|
import { AmbientMotionNote, ChatAmbient, ambientMenuItems } from "./chat-ambient.js";
|
|
@@ -336,8 +339,10 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
336
339
|
const guest = guestPage();
|
|
337
340
|
// #1269 quick actions: the model and effort it runs, each a way to /model or /effort (the same pick list).
|
|
338
341
|
const pick = (command) => store.runCommand(name, command, "", { alive: () => lease.current() });
|
|
342
|
+
modelPickerStyles();
|
|
339
343
|
const sub = html`<span class="status"><span class=${`dot ${cls}`} aria-hidden="true"></span>${statusLabel(inst, exec, awaiting)}</span>
|
|
340
|
-
${
|
|
344
|
+
${!guest ? html`<button type="button" class="hd-chip chat-model-entry" title=${mw("backend")} aria-label=${mw("backend")} onClick=${() => pick("backend")}>${backendLabel(inst.backend)} ▾</button>
|
|
345
|
+
<button type="button" class="hd-chip chat-model-entry" title=${t("chat.chipModel", modelText(inst))} aria-label=${t("chat.chipModel", modelText(inst))} onClick=${() => pick("model")}>${modelLabel(inst.model || modelText(inst))} ▾</button>` : null}
|
|
341
346
|
${inst.effort ? html`<button type="button" class="hd-chip" title=${t("chat.chipEffort", inst.effort)} aria-label=${t("chat.chipEffort", inst.effort)} onClick=${() => pick("effort")}>${inst.effort}</button>` : null}`;
|
|
342
347
|
return html`<div class=${`panel p-chat${wrap ? " wrap-code" : ""}`} data-width=${wide ? "full" : undefined} ref=${view}>
|
|
343
348
|
<${PanelHeader} title=${headerName(namesOf(inst || { name }, names.primary))} sub=${sub} nav=${guest ? (guestTrusted() ? html`<${InstanceSwitch} name=${name} current="chat" guest=${true} />` : null) : html`<${InstanceSwitch} name=${name} current="chat" />`}><${CardMenu} card=${card} /><${HeaderTools} navKey=${navKey} />${guest ? null : html`<${Menu} items=${items} label=${t("app.more")} />`}</${PanelHeader}>
|
|
@@ -502,6 +507,38 @@ function Thread({ name, th }) {
|
|
|
502
507
|
copyText, notice: (text, ok = true) => toast(text, ok),
|
|
503
508
|
linkOf: (x) => `${location.origin}/ui/chat/${encodeURIComponent(name)}#m=${msgKey(x)}`,
|
|
504
509
|
});
|
|
510
|
+
// M-2789: select a passage in a message → 「引用」 → it goes into the composer as a quote at the caret, repeatable.
|
|
511
|
+
const offQuote = installQuoteSelection(ls, {
|
|
512
|
+
field: () => document.getElementById("msgIn"),
|
|
513
|
+
canQuote: () => !!document.getElementById("msgIn"),
|
|
514
|
+
phone: () => typeof matchMedia === "function" && matchMedia("(pointer: coarse)").matches,
|
|
515
|
+
composerBox: () => document.querySelector(".composer-box"),
|
|
516
|
+
threadBox: () => sc,
|
|
517
|
+
insert: (text) => {
|
|
518
|
+
const field = document.getElementById("msgIn");
|
|
519
|
+
const value = store.state.drafts[name] || "";
|
|
520
|
+
// The caret where the person left it in the composer (kept when it lost the focus); never touched: the end.
|
|
521
|
+
const caret = field && field.dataset.touched === "1" ? composerCaret(field, value) : value.length;
|
|
522
|
+
const r = insertQuote(value, caret, text);
|
|
523
|
+
if (!r) return;
|
|
524
|
+
// Through the composer's own typing path (its onInput: the draft, the palette, the box's height), as a keystroke
|
|
525
|
+
// would — the store alone doesn't redraw the box. No composer on screen: the draft, for when it is.
|
|
526
|
+
if (field) {
|
|
527
|
+
const set = typeof HTMLTextAreaElement === "function" ? Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, "value")?.set : null;
|
|
528
|
+
if (set) set.call(field, r.value); else field.value = r.value;
|
|
529
|
+
field.dispatchEvent(new Event("input", { bubbles: true }));
|
|
530
|
+
} else store.setDraft(name, r.value);
|
|
531
|
+
const phone = typeof matchMedia === "function" && matchMedia("(pointer: coarse)").matches;
|
|
532
|
+
// After the box redraws with the new text: the caret after the quote, in view. A phone keeps its keyboard down.
|
|
533
|
+
setTimeout(() => {
|
|
534
|
+
const el = document.getElementById("msgIn"); if (!el) return;
|
|
535
|
+
el.dataset.touched = "1";
|
|
536
|
+
try { el.setSelectionRange(r.caret, r.caret); } catch { /* not a text field */ }
|
|
537
|
+
if (!phone) el.focus();
|
|
538
|
+
showCaret(el, r.caret);
|
|
539
|
+
}, 0);
|
|
540
|
+
},
|
|
541
|
+
});
|
|
505
542
|
// A copied message link (#m=<boot>-<id>): show that message, flashed.
|
|
506
543
|
const linked = /^#m=([0-9a-f]{1,32}-\d{1,15})$/.exec(location.hash);
|
|
507
544
|
if (linked) void thread.jumpTo(linked[1]);
|
|
@@ -515,7 +552,7 @@ function Thread({ name, th }) {
|
|
|
515
552
|
return () => {
|
|
516
553
|
window.removeEventListener("hashchange", onHash);
|
|
517
554
|
unfollow();
|
|
518
|
-
offActions();
|
|
555
|
+
offActions(); offQuote();
|
|
519
556
|
sc.removeEventListener("scroll", onScroll);
|
|
520
557
|
ls.removeEventListener("click", thread.onClick);
|
|
521
558
|
e.sink = null;
|
|
@@ -526,13 +563,26 @@ function Thread({ name, th }) {
|
|
|
526
563
|
else letGo(e, false); // let go meanwhile (a new language)
|
|
527
564
|
};
|
|
528
565
|
}, [name]);
|
|
529
|
-
return html
|
|
566
|
+
return html`<${Fragment}><div class="scroller" ref=${scroller}>
|
|
530
567
|
<div class="thread-host" ref=${host}></div>
|
|
531
568
|
${empty === "hidden" ? html`<${Empty} icon="chat" title=${t("chat.guestAllHidden")} hint=${t("chat.guestAllHiddenHint")} />`
|
|
532
569
|
: empty ? html`<${Empty} icon="chat" title=${t("chat.noMessages")} />` : null}
|
|
533
|
-
|
|
570
|
+
</div><div class="jump-dock">${jump.show ? html`<button data-trust="thread-control" type="button" class="jump-latest" onClick=${() => th.current && th.current.jumpLatest()}>
|
|
534
571
|
<${Icon} name="down" size=${16} />${jump.unseen > 0 ? t("chat.newBelow", jump.unseen) : t("chat.jumpLatest")}</button>` : null}</div>
|
|
535
|
-
|
|
572
|
+
</${Fragment}>`;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// Missing optional chunks on an older server never prevent chat from loading. No shared export added.
|
|
576
|
+
function SubagentProgress({ name }) {
|
|
577
|
+
const [Component, setComponent] = useState(null);
|
|
578
|
+
const offered = typeof document !== "undefined" && document.body?.dataset.subagents === "1" && !guestPage() && !publicLinkPage();
|
|
579
|
+
useEffect(() => {
|
|
580
|
+
if (!offered) return;
|
|
581
|
+
let live = true;
|
|
582
|
+
import("./subagent-row.js").then(m => { if (live && typeof m.SubagentRow === "function") setComponent(() => m.SubagentRow); }, () => {});
|
|
583
|
+
return () => { live = false; };
|
|
584
|
+
}, [offered]);
|
|
585
|
+
return offered && Component ? html`<${Component} key=${name} name=${name} />` : null;
|
|
536
586
|
}
|
|
537
587
|
|
|
538
588
|
/** Everything under the thread: prompts, the working line, a failed send, files waiting, and the composer. */
|
|
@@ -541,11 +591,12 @@ function Dock({ name, inst, lease, exec, awaiting, workingLabel }) {
|
|
|
541
591
|
const s = store.state;
|
|
542
592
|
return html`<div data-trust="composer" class="dock"><div class="dock-col">
|
|
543
593
|
<${Prompts} name=${name} />
|
|
594
|
+
<${SubagentProgress} name=${name} />
|
|
544
595
|
<${WorkBar} name=${name} lease=${lease} exec=${exec} awaiting=${awaiting} workingLabel=${workingLabel} />
|
|
545
596
|
<${CommandCard} name=${name} lease=${lease} />
|
|
546
597
|
<${QuickActions} name=${name} inst=${inst} lease=${lease} />
|
|
547
598
|
${s.waking[name] ? html`<p class="send-waking" role="status">${t("chat.waking", name)}</p>` : null}
|
|
548
|
-
<${Composer} name=${name} label=${composerLabel(inst, name)} lease=${lease} busy=${R().isBusy(exec)} />
|
|
599
|
+
<${Composer} name=${name} inst=${inst} label=${composerLabel(inst, name)} lease=${lease} busy=${R().isBusy(exec)} />
|
|
549
600
|
<div class="composer-row">${guestPage() ? html`<span class="guest-note" title=${t("chat.guestNote")}>${t("chat.guestNote")}</span>` : html`<${ComposerAuth} />`}<span
|
|
550
601
|
class="hint" title=${t(guestPage() ? "chat.guestMore" : "chat.composerMore")}>${t(touchScreen() ? "chat.composerHintTouch" : "chat.composerHint")}</span></div>
|
|
551
602
|
</div></div>`;
|
|
@@ -562,20 +613,27 @@ function openBackendSignIn(backend) {
|
|
|
562
613
|
function CommandCard({ name, lease }) {
|
|
563
614
|
const c = store.state.commands[name];
|
|
564
615
|
if (!c) return null;
|
|
565
|
-
const run = (args) => store.runCommand(name, c.command, args, { alive: () => lease.current() });
|
|
566
|
-
|
|
567
|
-
|
|
616
|
+
const run = (args, action) => store.runCommand(name, c.command, args, { alive: () => lease.current(), ...(action ? { action } : {}) });
|
|
617
|
+
const actions = c.choices?.actions || [];
|
|
618
|
+
const refresh = actions.find(a => a === "refresh" || a === "refreshAll");
|
|
619
|
+
return html`<div class=${`cmd-card${c.command === "model" ? " cmd-model" : ""}${c.error ? " bad" : ""}`} role=${c.error ? "alert" : "status"}>
|
|
620
|
+
<div class="cmd-head"><span class="cmd-name mono">/${c.command}${c.command === "model" || c.choices?.step === "model" ? html` · ${mw("model")}` : null}</span>
|
|
621
|
+
<div class="cmd-head-actions">${refresh ? html`<button type="button" class="icon-btn" data-model-action=${refresh} title=${mw("refresh")} aria-label=${mw("refresh")} disabled=${c.busy}
|
|
622
|
+
onClick=${() => run(c.choices.args || "", refresh)}><${Icon} name="restart" size=${16} /></button>` : null}
|
|
568
623
|
${c.busy ? html`<span class="wait">${t("chat.cmdRunning", c.command)}</span>` : html`<button type="button" class="icon-btn" title=${t("chat.cmdDismiss")}
|
|
569
|
-
aria-label=${t("chat.cmdDismiss")} onClick=${() => store.dismissCommand(name)}><${Icon} name="close" size=${14} /></button>`}</div>
|
|
624
|
+
aria-label=${t("chat.cmdDismiss")} onClick=${() => store.dismissCommand(name)}><${Icon} name="close" size=${14} /></button>`}</div></div>
|
|
570
625
|
${c.error ? html`<p class="cmd-text">${c.error}</p>` : null}
|
|
571
626
|
${c.text ? html`<pre class="cmd-text">${c.text}</pre>` : null}
|
|
572
627
|
${c.compact ? html`<p class="cmd-text cmd-phase">${c.compact === "running" ? t("chat.compactRunning")
|
|
573
628
|
: c.compact === "done" ? t("chat.compactDone") : c.compact === "timeout" ? t("chat.compactTimeout", "10")
|
|
574
629
|
: c.compact === "lost" ? t("chat.compactLost") : c.compact === "not_compacted" ? t("chat.compactNotCompacted") : t("chat.compactUnknown")}</p>` : null}
|
|
575
|
-
${c.choices
|
|
630
|
+
${c.choices?.step === "backend" ? html`<p class="note">${mw("next")}</p>` : null}
|
|
631
|
+
${c.choices && c.choices.prompt ? html`<pre class="cmd-text">${c.choices.prompt}</pre>` : null}
|
|
576
632
|
${c.choices ? html`<div class="cmd-choices" role="group" aria-label=${t("chat.cmdChoose")}>${c.choices.options.map((o) => html`<button key=${o.id} type="button"
|
|
577
633
|
class=${`btn btn-sm${o.id === c.choices.current ? " current" : ""}`} aria-current=${o.id === c.choices.current ? "true" : undefined}
|
|
578
|
-
disabled=${!!o.disabled} title=${o.disabled || undefined} onClick=${() => { if (!o.disabled) run(o.id); }}>${o.label}</button>`)}</div>` : null}
|
|
634
|
+
disabled=${c.busy || !!o.disabled} title=${o.disabled || undefined} onClick=${() => { if (!o.disabled) run(o.id); }}>${c.choices.step === "backend" ? html`<span>${backendLabel(o.id)}</span>${o.disabled ? html`<span class="note">${o.disabled}</span>` : null}` : modelLabel(c.command === "model" ? o.label.replace(/^✓\s*/, "") : o.label)}</button>`)}</div>` : null}
|
|
635
|
+
${c.command === "model" && c.choices ? html`<p class="note">${mw("selectionHint")}</p>` : null}
|
|
636
|
+
${actions.includes("more") ? html`<div class="cmd-model-more"><button type="button" class="btn btn-sm btn-ghost" data-model-action="more" disabled=${c.busy} onClick=${() => run("", "more")}>${mw("more")}</button></div>` : null}
|
|
579
637
|
${c.choices && c.choices.options.some((o) => o.signIn) && !publicLinkPage() ? html`<div class="cmd-choices" role="group" aria-label=${t("chat.cmdSignIn")}>${c.choices.options.filter((o) => o.signIn).map((o) => html`<button
|
|
580
638
|
key=${`signin:${o.signIn}`} type="button" class="btn btn-sm btn-primary" onClick=${() => openBackendSignIn(o.signIn)}>${t("chat.cmdSignInTo", o.signIn)}</button>`)}</div>` : null}
|
|
581
639
|
</div>`;
|
|
@@ -642,7 +700,7 @@ function replySnippet(r) {
|
|
|
642
700
|
return text || (r.media === "photo" ? t("chat.replyPhoto") : r.media === "document" ? t("chat.replyFile") : "");
|
|
643
701
|
}
|
|
644
702
|
|
|
645
|
-
function Composer({ name, label = name, lease, busy }) {
|
|
703
|
+
function Composer({ name, inst, label = name, lease, busy }) {
|
|
646
704
|
const s = store.state;
|
|
647
705
|
const input = useRef(null), fileIn = useRef(null);
|
|
648
706
|
const [, tick] = useState(0);
|
|
@@ -663,7 +721,9 @@ function Composer({ name, label = name, lease, busy }) {
|
|
|
663
721
|
const guest = guestPage();
|
|
664
722
|
const app = useStore(appStore);
|
|
665
723
|
const guestAllowed = guest ? (app.instances.find((i) => i.name === name)?.commands ?? []) : null;
|
|
666
|
-
const
|
|
724
|
+
const palette0 = files.length || closedFor === value || (guest && !guestAllowed.length) ? null : paletteFor(value, guestAllowed || undefined);
|
|
725
|
+
// M-2738 (D3): /update is the fleet's, not the agent's: offered (never to a guest) and it opens the app's Update dialog.
|
|
726
|
+
const palette = palette0 && !guest && UPDATE_COMMAND.name.startsWith(value.slice(1)) ? [...palette0, UPDATE_COMMAND] : palette0;
|
|
667
727
|
const pick = palette && palette.length ? palette[Math.min(sel, palette.length - 1)] : null;
|
|
668
728
|
// Grow with the text, up to a limit: set through the CSSOM, never a style attribute (#1300). Empty, it is one line
|
|
669
729
|
// (#2478 — a long name's placeholder made the box two lines tall).
|
|
@@ -685,6 +745,7 @@ function Composer({ name, label = name, lease, busy }) {
|
|
|
685
745
|
// #2342: a completion is a step Ctrl+Z goes back from (to what was typed); a command that runs consumes the line.
|
|
686
746
|
const complete = (c) => { recordEdit(input.current); setValue(`/${c.name}${c.arg ? " " : ""}`); };
|
|
687
747
|
const submit = () => {
|
|
748
|
+
if (!guest && !files.length && isUpdateLine(value)) { setValue(""); openUpdateDialog(); return; }
|
|
688
749
|
if (pick) {
|
|
689
750
|
if (value === `/${pick.name}` && !needsArgument(pick.name)) runLine({ command: pick.name, args: "" });
|
|
690
751
|
else complete(pick);
|
|
@@ -725,6 +786,9 @@ function Composer({ name, label = name, lease, busy }) {
|
|
|
725
786
|
};
|
|
726
787
|
const optId = (c) => `cmd-${c.name}`;
|
|
727
788
|
return html`<div class="composer-box">
|
|
789
|
+
${!guestPage() ? html`<div class="model-entry-row" role="group" aria-label=${mw("model")}>
|
|
790
|
+
<button type="button" class="btn btn-sm" onClick=${() => store.runCommand(name, "backend", "", { alive: () => lease.current() })}>${backendLabel(inst?.backend)} ▾</button>
|
|
791
|
+
<button type="button" class="btn btn-sm" onClick=${() => store.runCommand(name, "model", "", { alive: () => lease.current() })}>${modelLabel(inst?.model || modelText(inst || {}))} ▾</button></div>` : null}
|
|
728
792
|
${palette ? html`<ul data-trust="palette" class="cmd-palette" id="cmdPalette" role="listbox" aria-label=${t("chat.cmdCommands")}>
|
|
729
793
|
${palette.length ? palette.map((c) => html`<li key=${c.name} id=${optId(c)} role="option" aria-selected=${c === pick ? "true" : "false"}
|
|
730
794
|
class=${c === pick ? "on" : ""} onMouseDown=${(e) => { e.preventDefault(); complete(c); }}>
|
package/dist/ui/panel-fleet.js
CHANGED
|
@@ -66,29 +66,29 @@ register("fleet", {
|
|
|
66
66
|
"zh-TW": {
|
|
67
67
|
hostMemory_elevated: "主機記憶體壓力偏高:新的 agent 一次啟動一個,至少間隔 5 秒",
|
|
68
68
|
hostMemory_critical: "主機記憶體壓力嚴重:新的 agent 會等記憶體恢復再啟動",
|
|
69
|
-
hostMemory_top: "最大:{0}", hostMemory_ownerFleet: "fleet 本身", hostMemory_ownerTmux: "tmux", hostMemory_ownerOther: "不屬於任何
|
|
69
|
+
hostMemory_top: "最大:{0}", hostMemory_ownerFleet: "fleet 本身", hostMemory_ownerTmux: "tmux", hostMemory_ownerOther: "不屬於任何 Agent",
|
|
70
70
|
title: "Fleet", tasks: "Tasks", schedules: "排程", teams: "Teams", org: "組織圖", cache: "快取", usage: "用量",
|
|
71
71
|
docs: "文件", docsNewTab: "文件(在新分頁開啟)",
|
|
72
72
|
newSchedule: "新增排程", newTeam: "新增 team",
|
|
73
73
|
noSchedules: "還沒有排程", noSchedulesHint: "用 cron 自動執行例行工作。",
|
|
74
|
-
noTeams: "還沒有 team", noTeamsHint: "把
|
|
74
|
+
noTeams: "還沒有 team", noTeamsHint: "把 Agent 分組一起工作。", countSchedules: "{0} 個排程", countTeams: "{0} 個 team", countSchedule: "1 個排程", countTeam: "1 個 team",
|
|
75
75
|
delete: "刪除", on: "開", off: "關", cancel: "取消", create: "建立", creating: "建立中…", save: "儲存變更",
|
|
76
|
-
taskDesc: "說明", cron: "Cron 表示式", message: "訊息", target: "目標
|
|
76
|
+
taskDesc: "說明", cron: "Cron 表示式", message: "訊息", target: "目標 Agent", label: "標籤", teamName: "Team 名稱", members: "成員",
|
|
77
77
|
schedOnce: "一次 · {0}", schedNext: "下次 {0}", schedRetrying: "重試中", schedDisabled: "已停用", schedSilent: "靜默", schedTz: "時區:{0}",
|
|
78
78
|
editSchedule: "編輯排程", edit: "編輯", scheduleSaved: "已儲存排程", schedRepeat: "重複", schedOnceMode: "一次",
|
|
79
79
|
schedWhen: "日期與時間", schedTimezone: "時區", schedEnabled: "啟用", schedWhenIn: "以 {0} 時間", schedWhenRequired: "請選擇日期與時間",
|
|
80
80
|
schedTzBad: "不認得的時區:{0}",
|
|
81
81
|
cronEveryMinute: "每分鐘", cronEveryMinutes: "每 {0} 分鐘", cronEveryHours: "每 {0} 小時", cronDaily: "每天 {0}",
|
|
82
82
|
cronWeekdays: "每週一到五 {0}", cronDays: "每週{0} {1}", cronMonthly: "每月 {0} 日 {1}", dayNames: "日,一,二,三,四,五,六", dayJoin: "、",
|
|
83
|
-
scheduleFieldsRequired: "必須填寫 Cron、訊息與目標
|
|
83
|
+
scheduleFieldsRequired: "必須填寫 Cron、訊息與目標 Agent", teamFieldsRequired: "必須填寫名稱並選擇至少一名成員",
|
|
84
84
|
deleteSchedule: "確定刪除此排程嗎?", deleteTeam: "確定刪除 team「{0}」嗎?", scheduleCreated: "排程已建立", scheduleDeleted: "排程已刪除",
|
|
85
85
|
teamCreated: "Team 已建立", teamDeleted: "Team 已刪除", teamUpdated: "Team 已更新", edit: "編輯", editTeam: "編輯 team",
|
|
86
86
|
teamNoRename: "不支援重新命名:請建立新的 team,再刪除這個。",
|
|
87
87
|
backend: "Backend",
|
|
88
|
-
newInstance: "新增
|
|
89
|
-
topicRequired: "目錄留空時必須填寫名稱", description: "說明", descriptionHint: "這個
|
|
90
|
-
branch: "分支(git worktree)", branchHint: "例如 feature-x", tags: "標籤", tagsHint: "以逗號分隔,例如 dev, review", systemPrompt: "System prompt", systemPromptHint: "這個
|
|
91
|
-
fleetDefault: "使用 fleet 預設", notInstalled: "(未安裝)", notSignedIn: "(未登入,請用 /login)", tooOld: "(需要 {0} 以上版本)", unchecked: "(尚未檢查)", deprecated: "(已淘汰)", instanceCreated: "
|
|
88
|
+
newInstance: "新增 Agent", directory: "目錄", directoryHint: "可留空——留空會自動建立工作區", topic: "名稱", topicHint: "預設取自目錄名稱",
|
|
89
|
+
topicRequired: "目錄留空時必須填寫名稱", description: "說明", descriptionHint: "這個 Agent 做什麼", model: "模型", modelHint: "例如 sonnet、opus、gpt-5",
|
|
90
|
+
branch: "分支(git worktree)", branchHint: "例如 feature-x", tags: "標籤", tagsHint: "以逗號分隔,例如 dev, review", systemPrompt: "System prompt", systemPromptHint: "這個 Agent 的自訂指示",
|
|
91
|
+
fleetDefault: "使用 fleet 預設", notInstalled: "(未安裝)", notSignedIn: "(未登入,請用 /login)", tooOld: "(需要 {0} 以上版本)", unchecked: "(尚未檢查)", deprecated: "(已淘汰)", instanceCreated: "Agent 已建立",
|
|
92
92
|
},
|
|
93
93
|
});
|
|
94
94
|
|
package/dist/ui/panel-needs.js
CHANGED
|
@@ -25,7 +25,7 @@ import { openSignIn, signInOffered } from "./backend-signin.js";
|
|
|
25
25
|
register("needs", {
|
|
26
26
|
en: {
|
|
27
27
|
title: "Needs you", empty: "Nothing needs you right now", emptyHint: "When an agent waits for you, it shows here — and in your chat app's General.", emptyHintWeb: "When an agent waits for you, it shows here.",
|
|
28
|
-
open: "Open chat", kiroOpen: "Open agent", kiroMigration: "Migration instructions", openCard: "Open the card", noAssignee: "Task board (nobody assigned)", fleetSignIns: "
|
|
28
|
+
open: "Open chat", kiroOpen: "Open agent", kiroMigration: "Migration instructions", openCard: "Open the card", noAssignee: "Task board (nobody assigned)", fleetSignIns: "AI accounts", signIn: "Connect account",
|
|
29
29
|
gap: "not wrapped up: {0}", gapUnchecked: "{0} checklist item(s) unchecked", gapNoResult: "no result", gapJoin: ", ", acknowledge: "Acknowledge", acknowledging: "Acknowledging…", answering: "Answering…",
|
|
30
30
|
ageNow: "just now", ageMin: "{0} min", ageHour: "{0} h", ageDay: "{0} d",
|
|
31
31
|
notifyTitle: "Notify me on this device", notifyOn: "Notifications are on for this browser while a tab is open.",
|
|
@@ -38,7 +38,7 @@ register("needs", {
|
|
|
38
38
|
},
|
|
39
39
|
"zh-TW": {
|
|
40
40
|
title: "等你處理", empty: "目前沒有需要你處理的事", emptyHint: "agent 在等你時,會出現在這裡——也會出現在聊天 app 的 General。", emptyHintWeb: "agent 在等你時,會出現在這裡。",
|
|
41
|
-
open: "開啟聊天", kiroOpen: "開啟 Agent", kiroMigration: "遷移說明", openCard: "打開卡片", noAssignee: "任務看板(沒有負責人)", fleetSignIns: "
|
|
41
|
+
open: "開啟聊天", kiroOpen: "開啟 Agent", kiroMigration: "遷移說明", openCard: "打開卡片", noAssignee: "任務看板(沒有負責人)", fleetSignIns: "AI 帳號", signIn: "連接帳號",
|
|
42
42
|
gap: "還沒補齊:{0}", gapUnchecked: "還有 {0} 項沒勾", gapNoResult: "沒有產出總結", gapJoin: "、", acknowledge: "確認", acknowledging: "確認中…", answering: "回覆中…",
|
|
43
43
|
ageNow: "剛剛", ageMin: "{0} 分鐘", ageHour: "{0} 小時", ageDay: "{0} 天",
|
|
44
44
|
notifyTitle: "在這台裝置通知我", notifyOn: "這個瀏覽器的通知已開啟(需要開著分頁)。",
|
|
@@ -47,7 +47,7 @@ register("needs", {
|
|
|
47
47
|
notifyMobile: "在手機上請以聊天 app 的通知為主:每個新項目都會在 General 發一則新訊息。", notifyMobileWeb: "在手機上請打開這個頁面查看等你處理的事。",
|
|
48
48
|
notifyInsecure: "通知需要安全的網址(localhost 或 HTTPS 公開連結),區網的一般 HTTP 網址不行。",
|
|
49
49
|
notifyUnsupported: "這個瀏覽器無法顯示通知。", turnOn: "開啟", turnOff: "關閉",
|
|
50
|
-
typePrompt: "Fleet 提示", typeAwaiting: "在終端機上", typeInstance: "
|
|
50
|
+
typePrompt: "Fleet 提示", typeAwaiting: "在終端機上", typeInstance: "Agent", typeDelivery: "傳送", typeMissed: "離線時錯過",
|
|
51
51
|
},
|
|
52
52
|
});
|
|
53
53
|
const tn = (k, ...v) => t(`needs.${k}`, ...v);
|
|
@@ -25,6 +25,7 @@ import { Menu } from "/assets/ui-menu.js";
|
|
|
25
25
|
import { toast } from "/assets/ui-toast.js";
|
|
26
26
|
import { GroupMark, groupLabel, groupOf as navGroupOf, modelText } from "/assets/instance-nav.js";
|
|
27
27
|
import "./settings-strings.js";
|
|
28
|
+
import { UpdatePillMark, UpdateSection } from "./settings-update.js";
|
|
28
29
|
import { api, attach, confirmedWrite, newKey } from "./settings-confirm.js";
|
|
29
30
|
import { dismissOperation, operationActive, restartFleet, startOperation, takeLeftover } from "./settings-apply.js";
|
|
30
31
|
import {
|
|
@@ -56,6 +57,15 @@ import { NamedLinkTest, setTypedTunnelToken } from "./settings-named-test.js";
|
|
|
56
57
|
import { SignInList } from "./backend-signin.js";
|
|
57
58
|
|
|
58
59
|
const tn = (k, ...v) => k === "sec_notifications" ? quotaNoticeText().title : t(`settings.${k}`, ...v);
|
|
60
|
+
/**
|
|
61
|
+
* M-2733: the config words of tool_progress / cross_instance_visibility, in the page's language (the value saved is the
|
|
62
|
+
* word). Local, not imported: an open tab may keep an older settings-dialogs.js, and a new named import would fail this
|
|
63
|
+
* lazily loaded panel. A word with no translation shows as itself.
|
|
64
|
+
*/
|
|
65
|
+
const choiceOptions = (field, values) => values.map((v) => {
|
|
66
|
+
const key = `settings.choice_${field}_${v}`, said = t(key);
|
|
67
|
+
return { value: v, label: said === key ? v : said };
|
|
68
|
+
});
|
|
59
69
|
/** What a refused change says to a person: the server's code in words (the code itself only for one not listed). */
|
|
60
70
|
const APPLY_ERRORS = new Set(["unsupported_sensitive_effect", "confirmation_diff_too_large", "session_required", "admin_required", "settings_changed",
|
|
61
71
|
"request_no_longer_current", "too_many_pending_changes", "fleet_unavailable", "invalid_settings_effect", "settings_confirmation_unavailable", "failed"]);
|
|
@@ -391,7 +401,7 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
391
401
|
<${General} key=${formKey} ctx=${ctx} part="classic" /></div>`
|
|
392
402
|
: section === "web-dashboard" ? html`<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="dashboard" /><${AppearanceSection} ...${you} part="dashboard" />`
|
|
393
403
|
: section === "access" ? html`<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="access" />`
|
|
394
|
-
: html`<${Developer} key=${`dev:${draftEpoch}`} ctx=${ctx} /><${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="readonly" />`;
|
|
404
|
+
: html`<${UpdateSection} /><${Developer} key=${`dev:${draftEpoch}`} ctx=${ctx} /><${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="readonly" />`;
|
|
395
405
|
// #2347 §6: the setting a search result opened — brought into view once its section is drawn (its data may still be
|
|
396
406
|
// on its way), focused, and flashed for 2 s.
|
|
397
407
|
const wanted = useRef(null);
|
|
@@ -461,7 +471,7 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
461
471
|
// Which one is shown is the root's data-view: its class stays exactly the effects producer's ("panel p-settings", #1629).
|
|
462
472
|
const atList = typeof location !== "undefined" && location.pathname === "/settings";
|
|
463
473
|
return html`<div data-effect-panel="settings" class="panel p-settings" data-view=${atList ? "index" : "section"}>
|
|
464
|
-
<${PanelHeader} title=${tn("title")} sub=${data && data.version ? html`<a class="pill ver" href=${data.version.includes("-") ? `${RELEASES}/latest` : `${RELEASES}/tag/v${data.version}`} target="_blank" rel="noopener">v${data.version}</a
|
|
474
|
+
<${PanelHeader} title=${tn("title")} sub=${data && data.version ? html`<a class="pill ver" href=${data.version.includes("-") ? `${RELEASES}/latest` : `${RELEASES}/tag/v${data.version}`} target="_blank" rel="noopener">v${data.version}</a><${UpdatePillMark} />` : null}>
|
|
465
475
|
<button type="button" class="btn btn-ghost btn-sm" disabled=${!ctx || yamlStaged(staged)} title=${ctx && yamlStaged(staged) ? tn("yamlUnsaved") : undefined} onClick=${openWizard}><${Icon} name="wand" size=${16} /><span class="hide-narrow">${tn("wizardButton")}</span></button>
|
|
466
476
|
<button type="button" class="icon-btn" aria-label=${tn("helpButton")} title=${tn("helpButton")} onClick=${() => setDialog({ kind: "help", key: navKey })}><${Icon} name="info" /></button>
|
|
467
477
|
</${PanelHeader}>
|
|
@@ -1082,7 +1092,7 @@ function General({ ctx, part = "all" }) {
|
|
|
1082
1092
|
concurrency: !hasOwn(startup, "concurrency"), stagger: !hasOwn(startup, "stagger_delay_ms"),
|
|
1083
1093
|
};
|
|
1084
1094
|
const dm = (k) => (unset[k] && sameValue(f[k], base[k]) ? html`<${DefaultMark} />` : null);
|
|
1085
|
-
const fromDefaults = (k, value, target) => ({ text: valueText(value), builtin: !hasOwn(d, k), from: inAgentDefaults(target) });
|
|
1095
|
+
const fromDefaults = (k, value, target) => ({ text: valueText(value, k), builtin: !hasOwn(d, k), from: inAgentDefaults(target) });
|
|
1086
1096
|
const L = (text, field, id, k) => html`<${Label} text=${text} schema=${schema} field=${field} htmlFor=${id} mark=${k ? dm(k) : null} />`;
|
|
1087
1097
|
const fleetReply = replyGuardSupported(f.backend, f.agent_mode, d.kiro_ui) ? tn("replyGuardSupported") : tn("replyGuardUnsupported", f.backend, f.agent_mode);
|
|
1088
1098
|
const classicReply = replyGuardSupported(f.classicBackend, f.agent_mode, d.kiro_ui) ? tn("replyGuardSupported") : tn("replyGuardUnsupported", f.classicBackend, f.agent_mode);
|
|
@@ -1097,8 +1107,8 @@ function General({ ctx, part = "all" }) {
|
|
|
1097
1107
|
<div class=${fc("field", "model")}>${L(tn("defaultModel"), "defaults.model", "g-model", "model")}<${ModelSelect} id="g-model" value=${f.model} onChange=${set("model")}
|
|
1098
1108
|
backend=${f.backend || "claude-code"} inherit=${tn("modelCliDefault")} /></div>
|
|
1099
1109
|
<div class=${fc("field", "auto")}>${L(`${tn("autoPause")} (${tn("minutes")})`, "defaults.auto_pause_after", "g-auto", "auto")}<input id="g-auto" type="number" min="0" step="1" class=${errors.auto ? "invalid" : ""} value=${f.auto} onInput=${(e) => set("auto")(e.target.value)} /><${Feedback} error=${errors.auto} /></div>
|
|
1100
|
-
<div class=${fc("field", "tool_progress")}>${L(tn("toolProgress"), "defaults.tool_progress", "g-tp", "tool_progress")}<${Select} id="g-tp" value=${f.tool_progress} onChange=${set("tool_progress")} options=${TOOL_PROGRESS} /></div>
|
|
1101
|
-
<div class=${fc("field", "visibility")}>${L(tn("crossInstanceVisibility"), "defaults.cross_instance_visibility", "g-vis", "visibility")}<${Select} id="g-vis" value=${f.visibility} onChange=${set("visibility")} options=${VISIBILITY_MODES} />
|
|
1110
|
+
<div class=${fc("field", "tool_progress")}>${L(tn("toolProgress"), "defaults.tool_progress", "g-tp", "tool_progress")}<${Select} id="g-tp" value=${f.tool_progress} onChange=${set("tool_progress")} options=${choiceOptions("tool_progress", TOOL_PROGRESS)} /></div>
|
|
1111
|
+
<div class=${fc("field", "visibility")}>${L(tn("crossInstanceVisibility"), "defaults.cross_instance_visibility", "g-vis", "visibility")}<${Select} id="g-vis" value=${f.visibility} onChange=${set("visibility")} options=${choiceOptions("cross_instance_visibility", VISIBILITY_MODES)} />
|
|
1102
1112
|
<p class="note">${tn("crossInstanceVisibilityHint")}</p></div>
|
|
1103
1113
|
<div class=${fc("field", "tips")}>${L(tn("dailyTips"), "defaults.tips", "g-tips", "tips")}<${Select} id="g-tips" value=${f.tips} onChange=${set("tips")} options=${noticeChoices()} /><${InEffect} text=${noticeLabel(noticeMode(f.tips))} /><p class="note">${tn("dailyTipsHint")}</p></div>
|
|
1104
1114
|
<div class=${fc("field", "replyTriggers")}><label class="check"><input id="g-reply-triggers" type="checkbox" checked=${f.replyTriggers} onChange=${(e) => set("replyTriggers")(e.target.checked)} /><span>${tn("replyTriggers")}</span>${dm("replyTriggers")}<${Impact} schema=${schema} field="defaults.reply_triggers" /></label><p class="note">${tn("replyTriggersHint")}</p></div>
|
|
@@ -1117,7 +1127,7 @@ function General({ ctx, part = "all" }) {
|
|
|
1117
1127
|
${!c.backend && f.classicBackend === base.classicBackend ? html`<${Inherited} text=${valueText(f.classicBackend, "backend")} builtin=${!d.backend} from=${inAgentDefaults("#g-be")} />` : null}</div>
|
|
1118
1128
|
<div class=${fc("field", "classicToolProgress", "classicToolProgressInherit")}>${L(tn("toolProgress"), "classic_defaults.tool_progress", "g-ctp")}
|
|
1119
1129
|
<${Override} inherit=${f.classicToolProgressInherit} onInherit=${set("classicToolProgressInherit")} inherited=${fromDefaults("tool_progress", d.tool_progress ?? "off", "#g-tp")}>
|
|
1120
|
-
<${Select} id="g-ctp" disabled=${f.classicToolProgressInherit} value=${f.classicToolProgressInherit ? (d.tool_progress ?? "off") : f.classicToolProgress} onChange=${set("classicToolProgress")} options=${TOOL_PROGRESS} /></${Override}></div>
|
|
1130
|
+
<${Select} id="g-ctp" disabled=${f.classicToolProgressInherit} value=${f.classicToolProgressInherit ? (d.tool_progress ?? "off") : f.classicToolProgress} onChange=${set("classicToolProgress")} options=${choiceOptions("tool_progress", TOOL_PROGRESS)} /></${Override}></div>
|
|
1121
1131
|
<div class=${fc("field", "classicReplyTriggers", "classicReplyTriggersInherit")}>${L(tn("replyTriggers"), "classic_defaults.reply_triggers")}
|
|
1122
1132
|
<${Override} inherit=${f.classicReplyTriggersInherit} onInherit=${set("classicReplyTriggersInherit")} inherited=${fromDefaults("reply_triggers", Boolean(d.reply_triggers ?? schema.reply_triggers_default), "#g-reply-triggers")}>
|
|
1123
1133
|
<label class="check"><input id="g-creply-triggers" type="checkbox" disabled=${f.classicReplyTriggersInherit} checked=${f.classicReplyTriggersInherit ? Boolean(d.reply_triggers ?? schema.reply_triggers_default) : f.classicReplyTriggers} onChange=${(e) => set("classicReplyTriggers")(e.target.checked)} /><span>${tn("replyTriggers")}</span></label></${Override}><p class="note">${tn("replyTriggersHint")}</p></div>
|
|
@@ -16,9 +16,14 @@ async function getJson(url) {
|
|
|
16
16
|
function cached(url) {
|
|
17
17
|
const hit = cache.get(url), now = performance.now();
|
|
18
18
|
if (hit && (hit.pending || now - hit.at < TTL_MS)) return hit.pending ?? Promise.resolve(hit.value);
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
const entry = { at: now, value: null, pending: null };
|
|
20
|
+
const pending = getJson(url).then((value) => {
|
|
21
|
+
// Explicit rediscovery/reset may have replaced this request while it waited.
|
|
22
|
+
if (cache.get(url) === entry) cache.set(url, { at: performance.now(), value, pending: null });
|
|
23
|
+
return value;
|
|
24
|
+
}).catch(() => { if (cache.get(url) === entry) cache.delete(url); return null; });
|
|
25
|
+
entry.pending = pending;
|
|
26
|
+
cache.set(url, entry);
|
|
22
27
|
return pending;
|
|
23
28
|
}
|
|
24
29
|
/**
|
|
@@ -53,6 +58,15 @@ export function useModelCatalog(backend, instance) {
|
|
|
53
58
|
return answer && Array.isArray(answer.models) ? answer.models : [];
|
|
54
59
|
}
|
|
55
60
|
|
|
61
|
+
/** Shared snapshot cache for upgraded fields; accessed through a namespace so old held modules still load. */
|
|
62
|
+
export function readModelCatalog(target) {
|
|
63
|
+
const url = `/ui/models?${new URLSearchParams(target)}`;
|
|
64
|
+
return cached(url).then(answer => { if (!answer || !Array.isArray(answer.models)) throw Error("Model catalog unavailable"); return answer.models; });
|
|
65
|
+
}
|
|
66
|
+
export function rememberModelCatalog(target, answer) {
|
|
67
|
+
cache.set(`/ui/models?${new URLSearchParams(target)}`, { at: performance.now(), value: answer, pending: null });
|
|
68
|
+
}
|
|
69
|
+
|
|
56
70
|
/** A state that keeps a backend from being chosen (shown, disabled, with why); "unknown" never does. */
|
|
57
71
|
export const BLOCKING_STATES = ["not_installed", "not_signed_in", "too_old"];
|
|
58
72
|
|
|
@@ -68,7 +82,8 @@ export function backendChoices(known, rows, value, words) {
|
|
|
68
82
|
const blocked = !!state && BLOCKING_STATES.includes(state) && name !== value;
|
|
69
83
|
const note = state === "not_installed" ? words.notInstalled : state === "not_signed_in" ? words.notSignedIn
|
|
70
84
|
: state === "too_old" ? words.tooOld(row.minVersion ?? "?") : state === "unknown" && name !== value ? words.unchecked : "";
|
|
71
|
-
|
|
85
|
+
const shown = words.name ? words.name(name) : name; // M-2733: its product name ("Claude Code"); the value stays the id
|
|
86
|
+
return { value: name, label: note ? `${shown} — ${note}` : shown, disabled: blocked };
|
|
72
87
|
};
|
|
73
88
|
const list = known.map(choice);
|
|
74
89
|
return known.includes(value) || !value ? list : [{ value, label: words.removed(value), disabled: false }, ...list];
|
|
@@ -18,13 +18,14 @@ import { goToTarget } from "./settings-registry.js";
|
|
|
18
18
|
import { sectionPath } from "/assets/app-route.js";
|
|
19
19
|
import { backendLabel } from "/assets/instance-nav.js";
|
|
20
20
|
import "./settings-strings.js"; // its words, wherever a picker of this file is used (#2072: Fleet's create dialog too)
|
|
21
|
-
import { backendChoices, modelChoices, OTHER_MODEL, useBackendRows
|
|
21
|
+
import { backendChoices, modelChoices, OTHER_MODEL, useBackendRows } from "./settings-catalog.js";
|
|
22
22
|
import {
|
|
23
23
|
ACCESS_MODES, AGENT_MODES, CH_TYPES, DASHBOARD_CHOICES, DASHBOARD_FEATURES, HANG_TIMEOUT_DEFAULT_MINUTES, LOG_LEVELS, TOOL_PROGRESS, TOOL_SETS,
|
|
24
24
|
VISIBILITY_MODES, accessConfirmations, agentForm, agentPatch, backendOptions, changedFields, channelId, channelsOf,
|
|
25
25
|
chLabel, dashboardDefault, hasOwn, impactOf, newConnectionImpact, nonNegative, nonNegativeInteger, positive, replyGuardSupported, sameValue, visibilityDefault,
|
|
26
26
|
classicWebEchoEffective, toolSetDefault, worstImpact,
|
|
27
27
|
} from "./settings-model.js";
|
|
28
|
+
import { ModelRefresh, useRefreshableModels } from "./model-picker.js";
|
|
28
29
|
import "./settings-codex-copy.js"; // M-2446: the Speed field's words (a retained old settings-strings lacks them)
|
|
29
30
|
/** M-2446: Codex speed choices (backend_options.codex.speed); "" = unset. Local, not imported: a stale tab may keep an
|
|
30
31
|
* older settings-model.js, and a new named import would fail this module's load. */
|
|
@@ -41,6 +42,19 @@ export const ask = (message, opts = {}) => confirmDialog({ message, ...opts });
|
|
|
41
42
|
|
|
42
43
|
// ── Form pieces ──
|
|
43
44
|
|
|
45
|
+
/**
|
|
46
|
+
* M-2733: a select whose values are config words (tool_progress off/standard/verbose, cross_instance_visibility
|
|
47
|
+
* full/summary/hidden) shows them in the page's language; the value saved is the config word. A value with no words
|
|
48
|
+
* (a newer host's, or a stale settings-strings.js) shows as itself. Local, not in settings-model.js: a stale tab may
|
|
49
|
+
* keep an older one, and a new named import would fail this module's load.
|
|
50
|
+
*/
|
|
51
|
+
export const CHOICE_FIELDS = ["tool_progress", "cross_instance_visibility"];
|
|
52
|
+
export function choiceLabel(field, value) {
|
|
53
|
+
const key = `settings.choice_${field}_${value}`, said = t(key);
|
|
54
|
+
return said === key ? String(value) : said;
|
|
55
|
+
}
|
|
56
|
+
export const choiceOptions = (field, values) => values.map((v) => ({ value: v, label: choiceLabel(field, v) }));
|
|
57
|
+
|
|
44
58
|
export function Select({ value, options, onChange, disabled, id, label }) {
|
|
45
59
|
const opts = options.map((o) => (typeof o === "string" ? { value: o, label: o } : o));
|
|
46
60
|
return html`<select id=${id} value=${value} disabled=${disabled} aria-label=${label} onChange=${(e) => onChange(e.target.value)}>
|
|
@@ -55,7 +69,7 @@ export function BackendSelect({ value, onChange, disabled, id }) {
|
|
|
55
69
|
const known = backendOptions(value).filter((o) => !o.unavailable).map((o) => o.value);
|
|
56
70
|
const opts = backendChoices(known, rows || [], value, {
|
|
57
71
|
notInstalled: tn("backendNotInstalled"), notSignedIn: tn("backendNotSignedIn"), tooOld: (v) => tn("backendTooOld", v),
|
|
58
|
-
unchecked: tn("backendUnchecked"), removed: (v) => tn("backendUnavailable", v),
|
|
72
|
+
unchecked: tn("backendUnchecked"), removed: (v) => tn("backendUnavailable", v), name: backendLabel,
|
|
59
73
|
});
|
|
60
74
|
return html`<select id=${id} value=${value} disabled=${disabled} onChange=${(e) => onChange(e.target.value)}>
|
|
61
75
|
${opts.map((o) => html`<option key=${o.value} value=${o.value} disabled=${o.disabled}>${o.label}</option>`)}</select>`;
|
|
@@ -67,7 +81,8 @@ export function BackendSelect({ value, onChange, disabled, id }) {
|
|
|
67
81
|
* `inherit`: the label of the empty choice (inherit / none), or omit it when the field has none.
|
|
68
82
|
*/
|
|
69
83
|
export function ModelSelect({ value, onChange, disabled, id, backend, instance, inherit }) {
|
|
70
|
-
const
|
|
84
|
+
const state = useRefreshableModels(backend, instance);
|
|
85
|
+
const catalog = state.models;
|
|
71
86
|
const [typing, setTyping] = useState(false);
|
|
72
87
|
const opts = modelChoices(catalog || [], value, { notListed: tn("modelNotListed"), other: tn("modelOther") }, inherit);
|
|
73
88
|
return html`<div class="model-pick">
|
|
@@ -75,7 +90,8 @@ export function ModelSelect({ value, onChange, disabled, id, backend, instance,
|
|
|
75
90
|
onChange=${(e) => { const v = e.target.value; if (v === OTHER_MODEL) setTyping(true); else { setTyping(false); onChange(v); } }}>
|
|
76
91
|
${opts.map((o) => html`<option key=${o.value} value=${o.value}>${o.label}</option>`)}</select>
|
|
77
92
|
${typing ? html`<input type="text" aria-label=${tn("modelOtherLabel")} placeholder=${tn("modelOtherPlaceholder")} disabled=${disabled}
|
|
78
|
-
value=${value} onInput=${(e) => onChange(e.target.value)} />` : null}
|
|
93
|
+
value=${value} onInput=${(e) => onChange(e.target.value)} />` : null}
|
|
94
|
+
<${ModelRefresh} state=${state} disabled=${disabled} /></div>`;
|
|
79
95
|
}
|
|
80
96
|
export function Impact({ schema, field }) { return html`<span class="impact">${impactText(impactOf(schema, field))}</span>`; }
|
|
81
97
|
export function Label({ text, schema, field, htmlFor, mark }) {
|
|
@@ -101,6 +117,7 @@ export function Inherited({ text, builtin, from }) {
|
|
|
101
117
|
/** A value as the inherited line says it: on/off, minutes (0 = off), a backend's name; anything else as it is. */
|
|
102
118
|
export function valueText(v, kind) {
|
|
103
119
|
if (typeof v === "boolean") return tn(v ? "valueOn" : "valueOff");
|
|
120
|
+
if (CHOICE_FIELDS.includes(kind)) return choiceLabel(kind, v);
|
|
104
121
|
if (kind === "minutes") return Number(v) === 0 ? tn("valueOff") : tn("minutesValue", v);
|
|
105
122
|
if (kind === "backend") return backendLabel(v);
|
|
106
123
|
return String(v);
|
|
@@ -330,9 +347,9 @@ export function AgentDialog({ name, inst, ctx, onClose }) {
|
|
|
330
347
|
["log_level", "logLevel", LOG_LEVELS, defaults.log_level || "info", "#g-ll"]].map(([k, label, opts, dflt, target]) => html`<div key=${k} class="field">
|
|
331
348
|
${L(tn(label), `instance.${k}`, `ag-${k}`)}
|
|
332
349
|
<${Override} inherit=${f.inherit[k]} onInherit=${setInherit(k)}
|
|
333
|
-
inherited=${inh(k, dflt, target, "", k === "cross_instance_visibility" ? VISIBILITY_MODES.includes(defaults[k]) : hasOwn(defaults, k))}>
|
|
350
|
+
inherited=${inh(k, dflt, target, CHOICE_FIELDS.includes(k) ? k : "", k === "cross_instance_visibility" ? VISIBILITY_MODES.includes(defaults[k]) : hasOwn(defaults, k))}>
|
|
334
351
|
<${Select} id=${`ag-${k}`} value=${shown(k, f[k], dflt)} disabled=${f.inherit[k]} onChange=${set(k)}
|
|
335
|
-
options=${opts.includes(shown(k, f[k], dflt)) || k === "cross_instance_visibility" ? opts : [shown(k, f[k], dflt), ...opts]} /></${Override}>
|
|
352
|
+
options=${((list) => (CHOICE_FIELDS.includes(k) ? choiceOptions(k, list) : list))(opts.includes(shown(k, f[k], dflt)) || k === "cross_instance_visibility" ? opts : [shown(k, f[k], dflt), ...opts])} /></${Override}>
|
|
336
353
|
${k === "cross_instance_visibility" ? html`<p class="note">${tn("crossInstanceVisibilityHint")}</p>` : null}</div>`)}
|
|
337
354
|
<fieldset class="field dash-perms"><legend>${L(tn("dashboardAccess"), "instance.dashboard")}</legend>
|
|
338
355
|
<p class="note">${tn("dashboardAccessHint")}</p>
|
|
@@ -714,8 +731,8 @@ export function ClassicDialog({ room, ctx, onClose }) {
|
|
|
714
731
|
value=${f.inherit.auto_pause_after ? String(inherited.auto_pause_after) : f.auto_pause_after} onInput=${(e) => set("auto_pause_after")(e.target.value)} /></${Override}>
|
|
715
732
|
<${Feedback} error=${errors.auto} /></div>
|
|
716
733
|
<div class="field">${L(tn("toolProgress"), "classic.tool_progress", "cl-tp")}
|
|
717
|
-
<${Override} inherit=${f.inherit.tool_progress} onInherit=${setInherit("tool_progress")} inherited=${roomInh("tool_progress", "", "#g-ctp", "#g-tp")}>
|
|
718
|
-
<${Select} id="cl-tp" disabled=${f.inherit.tool_progress} value=${f.inherit.tool_progress ? inherited.tool_progress : f.tool_progress} onChange=${set("tool_progress")} options=${TOOL_PROGRESS} /></${Override}></div>
|
|
734
|
+
<${Override} inherit=${f.inherit.tool_progress} onInherit=${setInherit("tool_progress")} inherited=${roomInh("tool_progress", "tool_progress", "#g-ctp", "#g-tp")}>
|
|
735
|
+
<${Select} id="cl-tp" disabled=${f.inherit.tool_progress} value=${f.inherit.tool_progress ? inherited.tool_progress : f.tool_progress} onChange=${set("tool_progress")} options=${choiceOptions("tool_progress", TOOL_PROGRESS)} /></${Override}></div>
|
|
719
736
|
<div class="field">${L(tn("replyCompletionGuard"), "classic.reply_completion_guard")}
|
|
720
737
|
<${Override} inherit=${f.inherit.reply_completion_guard} onInherit=${setInherit("reply_completion_guard")} inherited=${roomInh("reply_completion_guard", "", "#g-creply", "#g-reply")}>
|
|
721
738
|
<label class="check"><input type="checkbox" disabled=${f.inherit.reply_completion_guard} checked=${f.inherit.reply_completion_guard ? inherited.reply_completion_guard : f.reply_completion_guard}
|
|
@@ -300,5 +300,5 @@ export const GUESTS_SETTINGS = [
|
|
|
300
300
|
{ id: "guests.grants", section: "access", card: "guests", key: "web.guests.grants",
|
|
301
301
|
label: { en: "People with access", "zh-TW": "有存取權的人" }, words: { en: ["guest", "grant", "access", "person", "user", "agents", "who can see"], "zh-TW": ["訪客", "授權", "存取", "使用者", "誰可以看"] } },
|
|
302
302
|
{ id: "guests.send-code", section: "access", card: "guests",
|
|
303
|
-
label: { en: "Send sign-in code", "zh-TW": "
|
|
303
|
+
label: { en: "Send sign-in code", "zh-TW": "傳送裝置登入碼" }, words: { en: ["code", "sign-in code", "invite", "token", "DM"], "zh-TW": ["裝置登入碼", "登入碼", "邀請", "私訊"] } },
|
|
304
304
|
];
|