@songsid/agend 2.3.5-beta.1 → 2.3.5-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-cli-instructions.md +3 -3
- package/dist/agent-cli.js +5 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-whats-new.js +4 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.d.ts +3 -1
- package/dist/auth-api.js +6 -2
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.d.ts +3 -0
- package/dist/backend/claude-code.js +72 -13
- 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 +9 -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/access-manager.d.ts +1 -6
- package/dist/channel/access-manager.js +4 -94
- package/dist/channel/access-manager.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +0 -2
- package/dist/channel/adapters/discord.js +0 -8
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +0 -3
- package/dist/channel/adapters/telegram.js +1 -30
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-tools.js +4 -4
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/types.d.ts +0 -2
- package/dist/claude-model-minimum.d.ts +7 -0
- package/dist/claude-model-minimum.js +16 -0
- package/dist/claude-model-minimum.js.map +1 -0
- package/dist/cli.js +1 -19
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +2 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +46 -1
- package/dist/daemon.js +193 -29
- package/dist/daemon.js.map +1 -1
- package/dist/decision-list.d.ts +2 -0
- package/dist/decision-list.js +1 -1
- package/dist/decision-list.js.map +1 -1
- package/dist/fleet-manager.d.ts +95 -0
- package/dist/fleet-manager.js +491 -113
- 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 +28 -18
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
- package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -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/general-knowledge/steering/core-rules.md +6 -4
- package/dist/instance-lifecycle.d.ts +4 -1
- package/dist/instance-lifecycle.js +20 -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 +107 -97
- 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 +33 -13
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +16 -0
- package/dist/outbound-schemas.js +8 -2
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/quickstart-api.js +2 -2
- package/dist/quickstart-api.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +5 -1
- package/dist/reply-buttons-controller.js +8 -4
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/reply-buttons.d.ts +6 -2
- package/dist/reply-buttons.js +7 -3
- package/dist/reply-buttons.js.map +1 -1
- package/dist/scheduler/db.d.ts +10 -0
- package/dist/scheduler/db.js +38 -11
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/types.d.ts +6 -1
- package/dist/setup-i18n.js +4 -4
- package/dist/setup-i18n.js.map +1 -1
- package/dist/structured-signin.js +3 -1
- package/dist/structured-signin.js.map +1 -1
- package/dist/subagent-records.d.ts +42 -0
- package/dist/subagent-records.js +159 -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/team-membership.d.ts +7 -0
- package/dist/team-membership.js +10 -0
- package/dist/team-membership.js.map +1 -0
- package/dist/tips.js +4 -4
- package/dist/tips.js.map +1 -1
- package/dist/tmux-manager.d.ts +1 -1
- package/dist/tmux-manager.js +4 -1
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tool-permissions.d.ts +2 -3
- package/dist/tool-permissions.js +3 -3
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +1 -1
- package/dist/topic-commands.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/dist/ui/backend-signin.js +62 -62
- package/dist/ui/chat-commands.js +7 -0
- package/dist/ui/chat-store.js +9 -4
- package/dist/ui/chat-strings.js +25 -25
- 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 +47 -16
- 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 +28 -9
- package/dist/ui/settings-guests.js +1 -1
- package/dist/ui/settings-quota-notice.js +8 -6
- package/dist/ui/settings-registry.js +3 -1
- package/dist/ui/settings-strings.js +36 -30
- package/dist/ui/settings-update.js +69 -0
- package/dist/ui/shared/app-i18n.js +12 -6
- package/dist/ui/shared/app-shell.js +10 -3
- package/dist/ui/shared/app-update.js +215 -0
- package/dist/ui/shared/app.css +48 -2
- 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 +8 -5
- package/dist/ui/shared/signin.js +35 -17
- package/dist/ui/shared/subagent-row.css +15 -0
- package/dist/ui/shared/view-strings.js +17 -17
- package/dist/ui/shared/web-authorize.js +4 -4
- package/dist/ui/structured-signin.js +26 -26
- package/dist/ui/subagent-row.js +64 -0
- package/dist/ui/web-terminal/terminal.js +9 -9
- package/dist/update-dispatch.d.ts +32 -4
- package/dist/update-dispatch.js +146 -16
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +2 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/update-marker.d.ts +2 -2
- package/dist/update-marker.js +4 -3
- package/dist/update-marker.js.map +1 -1
- package/dist/usage/providers.d.ts +1 -0
- package/dist/usage/providers.js +13 -9
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage-rollup.d.ts +3 -0
- package/dist/usage-rollup.js +2 -0
- package/dist/usage-rollup.js.map +1 -1
- package/dist/view-api.d.ts +2 -8
- package/dist/view-api.js +3 -9
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +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-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 +102 -0
- package/dist/web-update.js.map +1 -0
- package/package.json +3 -2
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";
|
|
@@ -78,7 +80,7 @@ import { pollPublicPreview } from "./preview-status.js";
|
|
|
78
80
|
import { createMentionIndex } from "./chat-mentions.js";
|
|
79
81
|
import { setPanelFeedback } from "./preview-panel-actions.js";
|
|
80
82
|
import { PreviewPanel, claimPanel, openMarkdown, openPanel, panelClaims, panelStore, panelVersion, shownKey } from "./preview-panel.js";
|
|
81
|
-
import { needsArgument, paletteFor, parseCommandLine } from "./chat-commands.js";
|
|
83
|
+
import { isUpdateLine, needsArgument, paletteFor, parseCommandLine, UPDATE_COMMAND } from "./chat-commands.js";
|
|
82
84
|
import { installTour, refreshTourSpot } from "./chat-tour.js";
|
|
83
85
|
import { LightboxHost, openLightbox } from "./image-lightbox.js";
|
|
84
86
|
import { AmbientMotionNote, ChatAmbient, ambientMenuItems } from "./chat-ambient.js";
|
|
@@ -336,8 +338,10 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
336
338
|
const guest = guestPage();
|
|
337
339
|
// #1269 quick actions: the model and effort it runs, each a way to /model or /effort (the same pick list).
|
|
338
340
|
const pick = (command) => store.runCommand(name, command, "", { alive: () => lease.current() });
|
|
341
|
+
modelPickerStyles();
|
|
339
342
|
const sub = html`<span class="status"><span class=${`dot ${cls}`} aria-hidden="true"></span>${statusLabel(inst, exec, awaiting)}</span>
|
|
340
|
-
${
|
|
343
|
+
${!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>
|
|
344
|
+
<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
345
|
${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
346
|
return html`<div class=${`panel p-chat${wrap ? " wrap-code" : ""}`} data-width=${wide ? "full" : undefined} ref=${view}>
|
|
343
347
|
<${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}>
|
|
@@ -526,13 +530,26 @@ function Thread({ name, th }) {
|
|
|
526
530
|
else letGo(e, false); // let go meanwhile (a new language)
|
|
527
531
|
};
|
|
528
532
|
}, [name]);
|
|
529
|
-
return html
|
|
533
|
+
return html`<${Fragment}><div class="scroller" ref=${scroller}>
|
|
530
534
|
<div class="thread-host" ref=${host}></div>
|
|
531
535
|
${empty === "hidden" ? html`<${Empty} icon="chat" title=${t("chat.guestAllHidden")} hint=${t("chat.guestAllHiddenHint")} />`
|
|
532
536
|
: empty ? html`<${Empty} icon="chat" title=${t("chat.noMessages")} />` : null}
|
|
533
|
-
|
|
537
|
+
</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
538
|
<${Icon} name="down" size=${16} />${jump.unseen > 0 ? t("chat.newBelow", jump.unseen) : t("chat.jumpLatest")}</button>` : null}</div>
|
|
535
|
-
|
|
539
|
+
</${Fragment}>`;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// Missing optional chunks on an older server never prevent chat from loading. No shared export added.
|
|
543
|
+
function SubagentProgress({ name }) {
|
|
544
|
+
const [Component, setComponent] = useState(null);
|
|
545
|
+
const offered = typeof document !== "undefined" && document.body?.dataset.subagents === "1" && !guestPage() && !publicLinkPage();
|
|
546
|
+
useEffect(() => {
|
|
547
|
+
if (!offered) return;
|
|
548
|
+
let live = true;
|
|
549
|
+
import("./subagent-row.js").then(m => { if (live && typeof m.SubagentRow === "function") setComponent(() => m.SubagentRow); }, () => {});
|
|
550
|
+
return () => { live = false; };
|
|
551
|
+
}, [offered]);
|
|
552
|
+
return offered && Component ? html`<${Component} key=${name} name=${name} />` : null;
|
|
536
553
|
}
|
|
537
554
|
|
|
538
555
|
/** Everything under the thread: prompts, the working line, a failed send, files waiting, and the composer. */
|
|
@@ -541,11 +558,12 @@ function Dock({ name, inst, lease, exec, awaiting, workingLabel }) {
|
|
|
541
558
|
const s = store.state;
|
|
542
559
|
return html`<div data-trust="composer" class="dock"><div class="dock-col">
|
|
543
560
|
<${Prompts} name=${name} />
|
|
561
|
+
<${SubagentProgress} name=${name} />
|
|
544
562
|
<${WorkBar} name=${name} lease=${lease} exec=${exec} awaiting=${awaiting} workingLabel=${workingLabel} />
|
|
545
563
|
<${CommandCard} name=${name} lease=${lease} />
|
|
546
564
|
<${QuickActions} name=${name} inst=${inst} lease=${lease} />
|
|
547
565
|
${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)} />
|
|
566
|
+
<${Composer} name=${name} inst=${inst} label=${composerLabel(inst, name)} lease=${lease} busy=${R().isBusy(exec)} />
|
|
549
567
|
<div class="composer-row">${guestPage() ? html`<span class="guest-note" title=${t("chat.guestNote")}>${t("chat.guestNote")}</span>` : html`<${ComposerAuth} />`}<span
|
|
550
568
|
class="hint" title=${t(guestPage() ? "chat.guestMore" : "chat.composerMore")}>${t(touchScreen() ? "chat.composerHintTouch" : "chat.composerHint")}</span></div>
|
|
551
569
|
</div></div>`;
|
|
@@ -562,20 +580,27 @@ function openBackendSignIn(backend) {
|
|
|
562
580
|
function CommandCard({ name, lease }) {
|
|
563
581
|
const c = store.state.commands[name];
|
|
564
582
|
if (!c) return null;
|
|
565
|
-
const run = (args) => store.runCommand(name, c.command, args, { alive: () => lease.current() });
|
|
566
|
-
|
|
567
|
-
|
|
583
|
+
const run = (args, action) => store.runCommand(name, c.command, args, { alive: () => lease.current(), ...(action ? { action } : {}) });
|
|
584
|
+
const actions = c.choices?.actions || [];
|
|
585
|
+
const refresh = actions.find(a => a === "refresh" || a === "refreshAll");
|
|
586
|
+
return html`<div class=${`cmd-card${c.command === "model" ? " cmd-model" : ""}${c.error ? " bad" : ""}`} role=${c.error ? "alert" : "status"}>
|
|
587
|
+
<div class="cmd-head"><span class="cmd-name mono">/${c.command}${c.command === "model" || c.choices?.step === "model" ? html` · ${mw("model")}` : null}</span>
|
|
588
|
+
<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}
|
|
589
|
+
onClick=${() => run(c.choices.args || "", refresh)}><${Icon} name="restart" size=${16} /></button>` : null}
|
|
568
590
|
${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>
|
|
591
|
+
aria-label=${t("chat.cmdDismiss")} onClick=${() => store.dismissCommand(name)}><${Icon} name="close" size=${14} /></button>`}</div></div>
|
|
570
592
|
${c.error ? html`<p class="cmd-text">${c.error}</p>` : null}
|
|
571
593
|
${c.text ? html`<pre class="cmd-text">${c.text}</pre>` : null}
|
|
572
594
|
${c.compact ? html`<p class="cmd-text cmd-phase">${c.compact === "running" ? t("chat.compactRunning")
|
|
573
595
|
: c.compact === "done" ? t("chat.compactDone") : c.compact === "timeout" ? t("chat.compactTimeout", "10")
|
|
574
596
|
: c.compact === "lost" ? t("chat.compactLost") : c.compact === "not_compacted" ? t("chat.compactNotCompacted") : t("chat.compactUnknown")}</p>` : null}
|
|
575
|
-
${c.choices
|
|
597
|
+
${c.choices?.step === "backend" ? html`<p class="note">${mw("next")}</p>` : null}
|
|
598
|
+
${c.choices && c.choices.prompt ? html`<pre class="cmd-text">${c.choices.prompt}</pre>` : null}
|
|
576
599
|
${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
600
|
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}
|
|
601
|
+
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}
|
|
602
|
+
${c.command === "model" && c.choices ? html`<p class="note">${mw("selectionHint")}</p>` : null}
|
|
603
|
+
${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
604
|
${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
605
|
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
606
|
</div>`;
|
|
@@ -642,7 +667,7 @@ function replySnippet(r) {
|
|
|
642
667
|
return text || (r.media === "photo" ? t("chat.replyPhoto") : r.media === "document" ? t("chat.replyFile") : "");
|
|
643
668
|
}
|
|
644
669
|
|
|
645
|
-
function Composer({ name, label = name, lease, busy }) {
|
|
670
|
+
function Composer({ name, inst, label = name, lease, busy }) {
|
|
646
671
|
const s = store.state;
|
|
647
672
|
const input = useRef(null), fileIn = useRef(null);
|
|
648
673
|
const [, tick] = useState(0);
|
|
@@ -663,7 +688,9 @@ function Composer({ name, label = name, lease, busy }) {
|
|
|
663
688
|
const guest = guestPage();
|
|
664
689
|
const app = useStore(appStore);
|
|
665
690
|
const guestAllowed = guest ? (app.instances.find((i) => i.name === name)?.commands ?? []) : null;
|
|
666
|
-
const
|
|
691
|
+
const palette0 = files.length || closedFor === value || (guest && !guestAllowed.length) ? null : paletteFor(value, guestAllowed || undefined);
|
|
692
|
+
// 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.
|
|
693
|
+
const palette = palette0 && !guest && UPDATE_COMMAND.name.startsWith(value.slice(1)) ? [...palette0, UPDATE_COMMAND] : palette0;
|
|
667
694
|
const pick = palette && palette.length ? palette[Math.min(sel, palette.length - 1)] : null;
|
|
668
695
|
// Grow with the text, up to a limit: set through the CSSOM, never a style attribute (#1300). Empty, it is one line
|
|
669
696
|
// (#2478 — a long name's placeholder made the box two lines tall).
|
|
@@ -685,6 +712,7 @@ function Composer({ name, label = name, lease, busy }) {
|
|
|
685
712
|
// #2342: a completion is a step Ctrl+Z goes back from (to what was typed); a command that runs consumes the line.
|
|
686
713
|
const complete = (c) => { recordEdit(input.current); setValue(`/${c.name}${c.arg ? " " : ""}`); };
|
|
687
714
|
const submit = () => {
|
|
715
|
+
if (!guest && !files.length && isUpdateLine(value)) { setValue(""); openUpdateDialog(); return; }
|
|
688
716
|
if (pick) {
|
|
689
717
|
if (value === `/${pick.name}` && !needsArgument(pick.name)) runLine({ command: pick.name, args: "" });
|
|
690
718
|
else complete(pick);
|
|
@@ -725,6 +753,9 @@ function Composer({ name, label = name, lease, busy }) {
|
|
|
725
753
|
};
|
|
726
754
|
const optId = (c) => `cmd-${c.name}`;
|
|
727
755
|
return html`<div class="composer-box">
|
|
756
|
+
${!guestPage() ? html`<div class="model-entry-row" role="group" aria-label=${mw("model")}>
|
|
757
|
+
<button type="button" class="btn btn-sm" onClick=${() => store.runCommand(name, "backend", "", { alive: () => lease.current() })}>${backendLabel(inst?.backend)} ▾</button>
|
|
758
|
+
<button type="button" class="btn btn-sm" onClick=${() => store.runCommand(name, "model", "", { alive: () => lease.current() })}>${modelLabel(inst?.model || modelText(inst || {}))} ▾</button></div>` : null}
|
|
728
759
|
${palette ? html`<ul data-trust="palette" class="cmd-palette" id="cmdPalette" role="listbox" aria-label=${t("chat.cmdCommands")}>
|
|
729
760
|
${palette.length ? palette.map((c) => html`<li key=${c.name} id=${optId(c)} role="option" aria-selected=${c === pick ? "true" : "false"}
|
|
730
761
|
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. */
|
|
@@ -33,12 +34,27 @@ const CODEX_SPEED_CHOICES = ["", "standard", "fast"];
|
|
|
33
34
|
const byId = (id) => (typeof document !== "undefined" ? document.getElementById(id) : null);
|
|
34
35
|
|
|
35
36
|
const tn = (k, ...v) => t(`settings.${k}`, ...v);
|
|
37
|
+
// A cached older dictionary keeps the old alias label until reload, never a missing translation key.
|
|
38
|
+
const legacyPairingLabel = () => { const label = tn("legacyPairing"); return label === "settings.legacyPairing" ? "pairing" : label; };
|
|
36
39
|
export const impactText = (kind) => tn(kind === "now" ? "impactNow" : kind === "fleet" ? "impactFleet" : "impactAgent");
|
|
37
40
|
/** Ask in the app's own dialog (#1408 step 5): resolves true for the confirm button, false otherwise. */
|
|
38
41
|
export const ask = (message, opts = {}) => confirmDialog({ message, ...opts });
|
|
39
42
|
|
|
40
43
|
// ── Form pieces ──
|
|
41
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
|
+
|
|
42
58
|
export function Select({ value, options, onChange, disabled, id, label }) {
|
|
43
59
|
const opts = options.map((o) => (typeof o === "string" ? { value: o, label: o } : o));
|
|
44
60
|
return html`<select id=${id} value=${value} disabled=${disabled} aria-label=${label} onChange=${(e) => onChange(e.target.value)}>
|
|
@@ -53,7 +69,7 @@ export function BackendSelect({ value, onChange, disabled, id }) {
|
|
|
53
69
|
const known = backendOptions(value).filter((o) => !o.unavailable).map((o) => o.value);
|
|
54
70
|
const opts = backendChoices(known, rows || [], value, {
|
|
55
71
|
notInstalled: tn("backendNotInstalled"), notSignedIn: tn("backendNotSignedIn"), tooOld: (v) => tn("backendTooOld", v),
|
|
56
|
-
unchecked: tn("backendUnchecked"), removed: (v) => tn("backendUnavailable", v),
|
|
72
|
+
unchecked: tn("backendUnchecked"), removed: (v) => tn("backendUnavailable", v), name: backendLabel,
|
|
57
73
|
});
|
|
58
74
|
return html`<select id=${id} value=${value} disabled=${disabled} onChange=${(e) => onChange(e.target.value)}>
|
|
59
75
|
${opts.map((o) => html`<option key=${o.value} value=${o.value} disabled=${o.disabled}>${o.label}</option>`)}</select>`;
|
|
@@ -65,7 +81,8 @@ export function BackendSelect({ value, onChange, disabled, id }) {
|
|
|
65
81
|
* `inherit`: the label of the empty choice (inherit / none), or omit it when the field has none.
|
|
66
82
|
*/
|
|
67
83
|
export function ModelSelect({ value, onChange, disabled, id, backend, instance, inherit }) {
|
|
68
|
-
const
|
|
84
|
+
const state = useRefreshableModels(backend, instance);
|
|
85
|
+
const catalog = state.models;
|
|
69
86
|
const [typing, setTyping] = useState(false);
|
|
70
87
|
const opts = modelChoices(catalog || [], value, { notListed: tn("modelNotListed"), other: tn("modelOther") }, inherit);
|
|
71
88
|
return html`<div class="model-pick">
|
|
@@ -73,7 +90,8 @@ export function ModelSelect({ value, onChange, disabled, id, backend, instance,
|
|
|
73
90
|
onChange=${(e) => { const v = e.target.value; if (v === OTHER_MODEL) setTyping(true); else { setTyping(false); onChange(v); } }}>
|
|
74
91
|
${opts.map((o) => html`<option key=${o.value} value=${o.value}>${o.label}</option>`)}</select>
|
|
75
92
|
${typing ? html`<input type="text" aria-label=${tn("modelOtherLabel")} placeholder=${tn("modelOtherPlaceholder")} disabled=${disabled}
|
|
76
|
-
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>`;
|
|
77
95
|
}
|
|
78
96
|
export function Impact({ schema, field }) { return html`<span class="impact">${impactText(impactOf(schema, field))}</span>`; }
|
|
79
97
|
export function Label({ text, schema, field, htmlFor, mark }) {
|
|
@@ -99,6 +117,7 @@ export function Inherited({ text, builtin, from }) {
|
|
|
99
117
|
/** A value as the inherited line says it: on/off, minutes (0 = off), a backend's name; anything else as it is. */
|
|
100
118
|
export function valueText(v, kind) {
|
|
101
119
|
if (typeof v === "boolean") return tn(v ? "valueOn" : "valueOff");
|
|
120
|
+
if (CHOICE_FIELDS.includes(kind)) return choiceLabel(kind, v);
|
|
102
121
|
if (kind === "minutes") return Number(v) === 0 ? tn("valueOff") : tn("minutesValue", v);
|
|
103
122
|
if (kind === "backend") return backendLabel(v);
|
|
104
123
|
return String(v);
|
|
@@ -328,9 +347,9 @@ export function AgentDialog({ name, inst, ctx, onClose }) {
|
|
|
328
347
|
["log_level", "logLevel", LOG_LEVELS, defaults.log_level || "info", "#g-ll"]].map(([k, label, opts, dflt, target]) => html`<div key=${k} class="field">
|
|
329
348
|
${L(tn(label), `instance.${k}`, `ag-${k}`)}
|
|
330
349
|
<${Override} inherit=${f.inherit[k]} onInherit=${setInherit(k)}
|
|
331
|
-
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))}>
|
|
332
351
|
<${Select} id=${`ag-${k}`} value=${shown(k, f[k], dflt)} disabled=${f.inherit[k]} onChange=${set(k)}
|
|
333
|
-
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}>
|
|
334
353
|
${k === "cross_instance_visibility" ? html`<p class="note">${tn("crossInstanceVisibilityHint")}</p>` : null}</div>`)}
|
|
335
354
|
<fieldset class="field dash-perms"><legend>${L(tn("dashboardAccess"), "instance.dashboard")}</legend>
|
|
336
355
|
<p class="note">${tn("dashboardAccessHint")}</p>
|
|
@@ -516,7 +535,7 @@ export function BotDialog({ id, ctx, onClose }) {
|
|
|
516
535
|
if (!ch) return null;
|
|
517
536
|
return html`<${EditDialog} title=${type === "telegram" ? "Telegram" : "Discord"} subtitle=${id} onClose=${onClose} onStage=${stage} impacts=${pendingImpacts()} schema=${schema}>
|
|
518
537
|
<div class="grid2">
|
|
519
|
-
<div class="field">${L(tn("accessMode"), "fleet.channel.access.mode", "bot-mode")}<${Select} id="bot-mode" value=${mode} onChange=${setMode} options=${ACCESS_MODES} />
|
|
538
|
+
<div class="field">${L(tn("accessMode"), "fleet.channel.access.mode", "bot-mode")}<${Select} id="bot-mode" value=${mode} onChange=${setMode} options=${ACCESS_MODES.map((value) => value === "pairing" ? { value, label: legacyPairingLabel() } : value)} />
|
|
520
539
|
<${Feedback} warning=${accessWarn} /></div>
|
|
521
540
|
<div class="field">${L(tn("allowedUsers"), "fleet.channel.access.allowed_users")}<${ChipList} items=${users} onChange=${setUsers} placeholder=${tn("userIdPlaceholder")} label=${tn("allowedUsers")} /></div>
|
|
522
541
|
</div>
|
|
@@ -712,8 +731,8 @@ export function ClassicDialog({ room, ctx, onClose }) {
|
|
|
712
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}>
|
|
713
732
|
<${Feedback} error=${errors.auto} /></div>
|
|
714
733
|
<div class="field">${L(tn("toolProgress"), "classic.tool_progress", "cl-tp")}
|
|
715
|
-
<${Override} inherit=${f.inherit.tool_progress} onInherit=${setInherit("tool_progress")} inherited=${roomInh("tool_progress", "", "#g-ctp", "#g-tp")}>
|
|
716
|
-
<${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>
|
|
717
736
|
<div class="field">${L(tn("replyCompletionGuard"), "classic.reply_completion_guard")}
|
|
718
737
|
<${Override} inherit=${f.inherit.reply_completion_guard} onInherit=${setInherit("reply_completion_guard")} inherited=${roomInh("reply_completion_guard", "", "#g-creply", "#g-reply")}>
|
|
719
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
|
];
|
|
@@ -80,10 +80,12 @@ export function QuotaNoticeSettings({ ctx }) {
|
|
|
80
80
|
const effective = { enabled: true, thresholds: [10], periods: ["weekly"], ...parsed.fleet,
|
|
81
81
|
...(selectedBackend ? parsed[`backend:${selectedBackend}`] : {}), ...(scope.startsWith("agent:") || scope.startsWith("classic:") ? parsed[scope] : {}) };
|
|
82
82
|
const update = k => e => setFields(f => ({ ...f, [fieldKey(scope, k)]: e.target.value }));
|
|
83
|
-
|
|
83
|
+
// alpha.6 feedback (#3, main twin of #3320): a Settings card like the others here (card, its h3 and notes, the fields in
|
|
84
|
+
// the grid), not a bare heading over full-width fields on the page background (class "s-card" had no style).
|
|
85
|
+
return html`<section class="card" id="quota-notices"><h3>${text.heading}</h3><p class="note">${text.hint}</p><p class="note">${text.defaults}</p>
|
|
84
86
|
${!supported ? html`<p role="status">${text.old}</p>` : null}
|
|
85
|
-
${!invalid ? html`<p class="
|
|
86
|
-
<fieldset disabled=${!supported} class="s-quota-fields">
|
|
87
|
+
${!invalid ? html`<p class="note" data-quota-effective>${text.effective}: ${effective.enabled ? text.on : text.off} · ${effective.thresholds.map(v => `${v}%`).join(", ") || "—"} · ${effective.periods.join(", ") || "—"}</p>` : null}
|
|
88
|
+
<fieldset disabled=${!supported} class="s-quota-fields grid2">
|
|
87
89
|
<div class="field"><label for="qn-target">${text.target}</label><select id="qn-target" value=${form.target} onChange=${e => setFields(f => ({ ...f, target: e.target.value }))}>
|
|
88
90
|
<option value="general">${text.general}</option>${Object.entries(instances).filter(([n]) => n !== "general").map(([n, c]) => html`<option value=${n}>${c.display_name || n}</option>`)}
|
|
89
91
|
${form.target !== "general" && !Object.hasOwn(instances, form.target) ? html`<option value=${form.target}>${form.target}</option>` : null}
|
|
@@ -94,7 +96,7 @@ export function QuotaNoticeSettings({ ctx }) {
|
|
|
94
96
|
${Object.entries(classic).map(([n, c]) => html`<option value=${`classic:${n}`}>${text.classic} · ${c.name || c.instanceName || n}</option>`)}
|
|
95
97
|
</select></div>
|
|
96
98
|
<div class="field"><label for="qn-enabled">${text.enabled}</label><select id="qn-enabled" value=${value.enabled} onChange=${update("enabled")}><option value="">${text.inherit}</option><option value="on">${text.on}</option><option value="off">${text.off}</option></select></div>
|
|
97
|
-
<div class="field"><label for="qn-thresholds">${text.thresholds}</label><input id="qn-thresholds" value=${value.thresholds} onInput=${update("thresholds")} placeholder="10" /><p class="
|
|
98
|
-
<div class="field"><label for="qn-periods">${text.periods}</label><input id="qn-periods" value=${value.periods} onInput=${update("periods")} placeholder=${text.periodExample} /><p class="
|
|
99
|
-
</fieldset>${invalid ? html`<p class="feedback error" role="alert">${text.error}</p>` : null}<p class="
|
|
99
|
+
<div class="field"><label for="qn-thresholds">${text.thresholds}</label><input id="qn-thresholds" value=${value.thresholds} onInput=${update("thresholds")} placeholder="10" /><p class="note">${text.thresholdHint}</p></div>
|
|
100
|
+
<div class="field"><label for="qn-periods">${text.periods}</label><input id="qn-periods" value=${value.periods} onInput=${update("periods")} placeholder=${text.periodExample} /><p class="note">${text.periodHint}</p></div>
|
|
101
|
+
</fieldset>${invalid ? html`<p class="feedback error" role="alert">${text.error}</p>` : null}<p class="note">${text.sources}</p></section>`;
|
|
100
102
|
}
|
|
@@ -46,7 +46,7 @@ const ROWS = [
|
|
|
46
46
|
["chat.classic-reply-triggers", "chat", "#g-creply-triggers", "settings.replyTriggers", "classic_defaults.reply_triggers", ["classic native reply"], ["ClassicBot 原生回覆觸發"]],
|
|
47
47
|
["defaults.reply-guard", "agent-defaults", "#g-reply", "settings.replyCompletionGuard", "defaults.reply_completion_guard", ["delivered reply", "reply guard", "require reply"], ["送達回覆", "回覆保護"]],
|
|
48
48
|
["defaults.tool-set", "agent-defaults", "#g-ts", "settings.toolSet", "defaults.tool_set", ["tool set", "tools", "mcp"], ["工具組", "工具"]],
|
|
49
|
-
["defaults.dashboard", "agent-defaults", "#g-dash", "settings.dashboardAccess", "defaults.dashboard", ["dashboard access", "dashboard features", "permissions", "appearance tools", "task board", "web settings"], ["
|
|
49
|
+
["defaults.dashboard", "agent-defaults", "#g-dash", "settings.dashboardAccess", "defaults.dashboard", ["dashboard access", "dashboard features", "permissions", "appearance tools", "task board", "web settings"], ["網頁儀表板權限", "儀表板", "權限", "外觀", "任務看板", "網頁設定"]],
|
|
50
50
|
["defaults.log-level", "agent-defaults", "#g-ll", "settings.logLevel", "defaults.log_level", ["log level", "debug", "logging"], ["記錄層級", "除錯", "日誌"]],
|
|
51
51
|
["defaults.agent-mode", "agent-defaults", "#g-am", "settings.agentMode", "defaults.agent_mode", ["agent mode", "mcp", "cli"], ["agent 模式"]],
|
|
52
52
|
["defaults.hang-on", "agent-defaults", "#g-hang-on", "settings.hangEnabled", "defaults.hang_detector.enabled", ["hang detector", "stuck", "frozen"], ["卡住偵測", "卡住", "當機"]],
|
|
@@ -91,6 +91,8 @@ const ROWS = [
|
|
|
91
91
|
["access.authority-hours", "access", "#vaHours", null, "web.verified_authority.max_session_hours", ["authorization hours", "how long", "authority"], ["授權時數", "多久"], L("How long a web authorization lasts", "網頁授權持續多久")],
|
|
92
92
|
["access.authority-revoke", "access", "#vaRevoke", "settings.vaRevoke", null, ["revoke", "sign out", "authority"], ["撤銷", "登出", "授權"]],
|
|
93
93
|
// Fleet · Advanced
|
|
94
|
+
// M-2738 (D4): the running version and Update — #3332's search for "update" found nothing.
|
|
95
|
+
["advanced.update", "advanced", ".s-update", null, null, ["update", "upgrade", "version", "new version", "check for updates", "release"], ["更新", "版本", "新版", "檢查更新", "升級"], L("Version and update", "版本與更新")],
|
|
94
96
|
["advanced.fleet-yaml", "advanced", ".s-dev", null, null, ["fleet.yaml", "yaml", "json", "raw", "edit config"], ["fleet.yaml", "YAML", "設定檔"], L("fleet.yaml (YAML / JSON)", "fleet.yaml(YAML / JSON)")],
|
|
95
97
|
["advanced.read-only", "advanced", ".s-web-ro", "settings.webReadOnlyTitle", null, ["allowed hosts", "view access", "preview port", "read only", "web settings"], ["allowed hosts", "唯讀", "網頁設定"]],
|
|
96
98
|
];
|