@songsid/agend 2.4.0-beta.23 → 2.4.0-beta.24
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 +4 -3
- package/dist/agent-cli.js +32 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-file-read.js +2 -2
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-whats-new.js +11 -1
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/backend/claude-code.d.ts +15 -0
- package/dist/backend/claude-code.js +8 -3
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/claude-mcp-carry.d.ts +63 -0
- package/dist/backend/claude-mcp-carry.js +242 -0
- package/dist/backend/claude-mcp-carry.js.map +1 -0
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +7 -6
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/config-validator.js +6 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +11 -0
- package/dist/daemon.js +66 -15
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +8 -0
- package/dist/dashboard-permissions.js +8 -0
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/delivery-outbox.d.ts +15 -1
- package/dist/delivery-outbox.js +60 -2
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-manager.d.ts +14 -0
- package/dist/fleet-manager.js +67 -0
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +22 -9
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +6 -0
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +3 -3
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +1 -1
- package/dist/general-knowledge/skills/task-board/SKILL.md +17 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +21 -3
- package/dist/hub/group-policy/resources.d.ts +1 -1
- package/dist/instance-lifecycle.d.ts +2 -0
- package/dist/instance-lifecycle.js +29 -1
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +10 -0
- package/dist/locale.js.map +1 -1
- package/dist/needs-you-hub.d.ts +3 -0
- package/dist/needs-you-hub.js +31 -5
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +14 -1
- package/dist/needs-you.js +5 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/office-share.js +2 -1
- package/dist/office-share.js.map +1 -1
- package/dist/outbound-handlers.js +29 -6
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +3 -0
- package/dist/outbound-schemas.js +7 -5
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +3 -0
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/request-context-compatibility.d.ts +20 -0
- package/dist/request-context-compatibility.js +74 -0
- package/dist/request-context-compatibility.js.map +1 -0
- package/dist/request-context-protocol.d.ts +137 -0
- package/dist/request-context-protocol.js +38 -0
- package/dist/request-context-protocol.js.map +1 -0
- package/dist/request-context-store.d.ts +25 -0
- package/dist/request-context-store.js +137 -0
- package/dist/request-context-store.js.map +1 -0
- package/dist/scheduler/db.js +26 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-text.d.ts +2 -0
- package/dist/scheduler/task-board-text.js +12 -0
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +102 -2
- package/dist/scheduler/task-board.js +242 -24
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/scheduler/task-files.d.ts +80 -0
- package/dist/scheduler/task-files.js +357 -0
- package/dist/scheduler/task-files.js.map +1 -0
- package/dist/settings-api.d.ts +2 -0
- package/dist/settings-api.js +6 -1
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +1 -0
- package/dist/settings-baseline.js +1 -1
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-effect.d.ts +2 -0
- package/dist/settings-effect.js +5 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/task-attach-client.d.ts +43 -0
- package/dist/task-attach-client.js +125 -0
- package/dist/task-attach-client.js.map +1 -0
- package/dist/task-board-tool.d.ts +12 -0
- package/dist/task-board-tool.js +107 -6
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-file-limits.d.ts +15 -0
- package/dist/task-file-limits.js +21 -0
- package/dist/task-file-limits.js.map +1 -0
- package/dist/tool-permissions.d.ts +32 -0
- package/dist/tool-permissions.js +63 -0
- package/dist/tool-permissions.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/ui/agent-details-settings.js +7 -5
- package/dist/ui/agent-who-can-use-strings.js +125 -0
- package/dist/ui/agent-who-can-use.js +238 -0
- package/dist/ui/fleet-office-card.js +23 -5
- package/dist/ui/fleet-office-editor.js +5 -5
- package/dist/ui/fleet-office-pack.d.ts +10 -0
- package/dist/ui/fleet-office-pack.js +65 -2
- package/dist/ui/fleet-office-skin.js +42 -8
- package/dist/ui/fleet-office-store.js +33 -2
- package/dist/ui/fleet-office-vehicles.js +130 -0
- package/dist/ui/fleet-office-zones.js +5 -1
- package/dist/ui/fleet-office.js +112 -31
- package/dist/ui/fleet-task-activity.js +9 -82
- package/dist/ui/fleet-task-archive.js +111 -0
- package/dist/ui/fleet-task-card.js +6 -4
- package/dist/ui/fleet-task-common.js +2 -2
- package/dist/ui/fleet-task-edit.js +8 -1
- package/dist/ui/fleet-task-files.js +196 -0
- package/dist/ui/fleet-task-md.js +98 -0
- package/dist/ui/fleet-task-menu.js +1 -1
- package/dist/ui/fleet-task-stats.js +2 -2
- package/dist/ui/fleet-task-view.js +12 -8
- package/dist/ui/fleet-tasks.js +42 -18
- package/dist/ui/panel-details.js +3 -1
- package/dist/ui/panel-needs.js +3 -3
- package/dist/ui/panel-settings.js +15 -1
- package/dist/ui/settings-registry.js +1 -0
- package/dist/ui/settings-shared-strings.js +9 -0
- package/dist/ui/settings-shared.js +6 -1
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-needs.js +8 -1
- package/dist/ui/shared/app.css +55 -3
- package/dist/ui/shared/chat-strings.js +4 -4
- package/dist/ui/shared/task-board.css +64 -0
- package/dist/web-api.d.ts +3 -0
- package/dist/web-api.js +97 -14
- package/dist/web-api.js.map +1 -1
- package/dist/web-office-acts.d.ts +16 -0
- package/dist/web-office-acts.js +27 -9
- package/dist/web-office-acts.js.map +1 -1
- package/dist/web-office-pack-read.js +1 -1
- package/dist/web-office-pack-read.js.map +1 -1
- package/dist/web-office-skins.d.ts +5 -3
- package/dist/web-office-skins.js +20 -16
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-settings-patch.d.ts +27 -0
- package/dist/web-settings-patch.js +67 -0
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/workflow-templates/default.md +1 -0
- package/package.json +1 -1
package/dist/ui/fleet-tasks.js
CHANGED
|
@@ -29,6 +29,7 @@ import { RunMark, inProgressBy, runOf, useRunContext } from "./fleet-task-run.js
|
|
|
29
29
|
import { OwnerChip, otherWorkers, quietInfo } from "./fleet-task-owner.js";
|
|
30
30
|
import { InsightsDialog } from "./fleet-task-stats.js";
|
|
31
31
|
import { ToSort, sortCount } from "./fleet-task-sort.js";
|
|
32
|
+
import { ArchiveDialog, ArchivedLink, ArchivedTag, DONE_PAGE, newestDone, weekLabel } from "./fleet-task-archive.js";
|
|
32
33
|
|
|
33
34
|
const PROJECT_KEY = "agend_tasks_project";
|
|
34
35
|
const QUERY_KEY = "agend_tasks_query";
|
|
@@ -80,7 +81,7 @@ export function TaskBoardTab({ lease }) {
|
|
|
80
81
|
const seq = useRef(0);
|
|
81
82
|
const setAt = (v) => { setAtRaw(v); setQuery(""); writeStored(PROJECT_KEY, v === null ? null : String(v)); };
|
|
82
83
|
const reload = (ifMoved = false) => setVersion((v) => ({ n: v.n + 1, ifMoved }));
|
|
83
|
-
const shown = useRef({ rev: null, allDone: false });
|
|
84
|
+
const shown = useRef({ rev: null, epoch: null, allDone: false });
|
|
84
85
|
|
|
85
86
|
useEffect(() => {
|
|
86
87
|
const mine = ++seq.current;
|
|
@@ -89,13 +90,17 @@ export function TaskBoardTab({ lease }) {
|
|
|
89
90
|
const q = new URLSearchParams();
|
|
90
91
|
if (allDone) q.set("done", "all");
|
|
91
92
|
// The same board at the same revision is not sent again.
|
|
92
|
-
if (version.ifMoved && shown.current.rev !== null && shown.current.allDone === allDone)
|
|
93
|
+
if (version.ifMoved && shown.current.rev !== null && shown.current.allDone === allDone) {
|
|
94
|
+
q.set("rev", String(shown.current.rev));
|
|
95
|
+
// #4428 review: and where time had left the board's lines (a card archived since is a new board).
|
|
96
|
+
if (shown.current.epoch !== null) q.set("epoch", shown.current.epoch);
|
|
97
|
+
}
|
|
93
98
|
const qs = q.toString();
|
|
94
99
|
const r = await lease.fetch(`/ui/tasks/board${qs ? `?${qs}` : ""}`, { method: "GET", headers: { "Content-Type": "application/json" } });
|
|
95
100
|
if (!r.ok) throw new Error(`HTTP ${r.status}`);
|
|
96
101
|
const d = await r.json();
|
|
97
102
|
if (!lease.current() || mine !== seq.current || d.unchanged) return;
|
|
98
|
-
shown.current = { rev: typeof d.rev === "number" ? d.rev : null, allDone };
|
|
103
|
+
shown.current = { rev: typeof d.rev === "number" ? d.rev : null, epoch: typeof d.epoch === "string" ? d.epoch : null, allDone };
|
|
99
104
|
setState({ data: d });
|
|
100
105
|
} catch { if (lease.current() && mine === seq.current) setState((s) => (s && s.data ? s : { error: true })); }
|
|
101
106
|
})();
|
|
@@ -200,9 +205,12 @@ export function TaskBoardTab({ lease }) {
|
|
|
200
205
|
// The server's numbers cover every card (finished ones are not all on the board); computed here only without them.
|
|
201
206
|
const stats = (key) => (state.data.stats && state.data.stats[String(key)]) || projectStats(key, cards);
|
|
202
207
|
const project = at === null ? null : at === NO_PROJECT ? NO_PROJECT : projects.find((p) => p.id === at) || null;
|
|
208
|
+
// M-3668: how many days after it finished a main task leaves the board (0: never; an older server says nothing).
|
|
209
|
+
const archiveDays = typeof state.data.archiveAfterDays === "number" ? state.data.archiveAfterDays : 0;
|
|
203
210
|
const body = project === null
|
|
204
|
-
? html`<${Home} cards=${cards} projects=${projects} stats=${stats} writable=${writable} onOpenProject=${setAt} onOpen=${openCard} onDialog=${setDialog} onInstances=${showInstances} reload=${reload} />`
|
|
211
|
+
? html`<${Home} cards=${cards} projects=${projects} stats=${stats} writable=${writable} onOpenProject=${setAt} onOpen=${openCard} onDialog=${setDialog} onInstances=${showInstances} reload=${reload} archiveDays=${archiveDays} />`
|
|
205
212
|
: html`<${ProjectBoard} project=${project} cards=${cards} stats=${stats} flashed=${flashed} display=${display} filters=${filters} query=${query} writable=${writable}
|
|
213
|
+
archiveDays=${archiveDays} onArchive=${() => setDialog({ kind: "archive", project })}
|
|
206
214
|
onDisplay=${setDisplay} onFilters=${setFilters} onQuery=${setQuery} onBack=${() => setAt(null)} onMore=${openMenuFor} onOwner=${openOwnerMenu}
|
|
207
215
|
notSorted=${sortCount(cards, projects)} onOpenNoProject=${() => setAt(NO_PROJECT)}
|
|
208
216
|
onOpen=${openCard} onCreate=${() => setDialog({ kind: "main", project: project === NO_PROJECT ? null : project.id })} onInstances=${showInstances} reload=${reload} />`;
|
|
@@ -302,6 +310,10 @@ export function TaskBoardTab({ lease }) {
|
|
|
302
310
|
${dialog && dialog.kind === "main" ? html`<${CreateMainDialog} projects=${projects} project=${dialog.project} boardOff=${boardOff} onClose=${() => setDialog(null)}
|
|
303
311
|
onCreated=${(id) => { if (!lease.current()) return; setDialog(null); reload(); openCard(id); }} />` : null}
|
|
304
312
|
${dialog && dialog.kind === "instances" ? html`<${InstancesDrawer} tick=${tick} onClose=${() => setDialog(null)} onOpen=${(id) => { setDialog(null); openCard(id); }} />` : null}
|
|
313
|
+
${dialog && dialog.kind === "archive" ? html`<${ArchiveDialog} project=${dialog.project === NO_PROJECT ? "none" : dialog.project.id}
|
|
314
|
+
name=${dialog.project === NO_PROJECT ? t("tasks.noProject") : dialog.project.name} days=${archiveDays} onClose=${() => setDialog(null)}
|
|
315
|
+
onOpen=${(c) => { setDialog(null); openCard(c.id); }}
|
|
316
|
+
fetchJson=${async (url) => { const r = await lease.fetch(url, { method: "GET" }); if (!r.ok) throw new Error(`HTTP ${r.status}`); return r.json(); }} />` : null}
|
|
305
317
|
${dialog && dialog.kind === "project" ? html`<${ProjectDialog} project=${dialog.project} leads=${leads} onClose=${() => setDialog(null)}
|
|
306
318
|
onSaved=${(p) => { if (!lease.current()) return; setDialog(null); reload(); if (!dialog.project) setAt(p.id); }} />` : null}
|
|
307
319
|
<${AskHost} />
|
|
@@ -316,7 +328,7 @@ function InstancesButton({ onClick }) {
|
|
|
316
328
|
return html`<button type="button" class="btn" title=${t("tasks.instancesTip")} onClick=${onClick}><${Icon} name="team" size=${16} /><span class="tb-btn-label">${t("tasks.instances")}</span></button>`;
|
|
317
329
|
}
|
|
318
330
|
|
|
319
|
-
function Home({ cards, projects, stats, writable, onOpenProject, onOpen, onDialog, onInstances, reload }) {
|
|
331
|
+
function Home({ cards, projects, stats, writable, onOpenProject, onOpen, onDialog, onInstances, reload, archiveDays = 0 }) {
|
|
320
332
|
const [showArchived, setShowArchived] = useState(false);
|
|
321
333
|
const active = projects.filter((p) => !p.archived);
|
|
322
334
|
const archived = projects.filter((p) => p.archived);
|
|
@@ -327,7 +339,7 @@ function Home({ cards, projects, stats, writable, onOpenProject, onOpen, onDialo
|
|
|
327
339
|
return html`<div class="tb-home">
|
|
328
340
|
<div class="list-head tb-head s-page-head"><div class="s-page-title"><h2>${t("tasks.projects")}</h2></div>
|
|
329
341
|
<div class="tb-head-actions">
|
|
330
|
-
<${SearchBox} onOpen=${onOpen} />
|
|
342
|
+
<${SearchBox} onOpen=${onOpen} archiveDays=${archiveDays} />
|
|
331
343
|
<${InstancesButton} onClick=${onInstances} />
|
|
332
344
|
${writable ? html`<button type="button" class="btn btn-primary" onClick=${() => onDialog({ kind: "project", project: null })}><${Icon} name="plus" size=${16} />${t("tasks.newProject")}</button>` : null}</div>
|
|
333
345
|
</div>
|
|
@@ -362,6 +374,7 @@ function ProjectTile({ project, stats, sorting = 0, onOpen, onDialog, reload })
|
|
|
362
374
|
${sorting ? html`<span class="tb-flag st-review tb-sort-flag">${t("tasksort.tileBadge", sorting)}</span>` : null}
|
|
363
375
|
${stats.waiting ? html`<span class="tb-flag st-review">${t("tasks.waiting", stats.waiting)}</span>` : null}
|
|
364
376
|
${stats.blocked ? html`<span class="tb-flag st-blocked">${t("tasks.blockedN", stats.blocked)}</span>` : null}
|
|
377
|
+
${stats.archived ? html`<span class="muted tb-project-archived">${t("tasksArchive.tile", stats.archived)}</span>` : null}
|
|
365
378
|
${stats.lastActivity ? html`<span class="muted">${t("tasks.lastActivity", relTime(stats.lastActivity))}</span>` : null}
|
|
366
379
|
${project && project.leadInstance ? html`<span class="muted tb-project-lead-chip">${t("tasks.projectLeadChip", project.leadInstance)}</span>` : null}
|
|
367
380
|
</span>
|
|
@@ -414,7 +427,7 @@ function Waiting({ cards, writable, onOpen, reload }) {
|
|
|
414
427
|
</section>`;
|
|
415
428
|
}
|
|
416
429
|
|
|
417
|
-
function SearchBox({ onOpen }) {
|
|
430
|
+
function SearchBox({ onOpen, archiveDays = 0 }) {
|
|
418
431
|
const [q, setQ] = useState("");
|
|
419
432
|
const [results, setResults] = useState(null);
|
|
420
433
|
const [active, setActive] = useState(0);
|
|
@@ -443,7 +456,7 @@ function SearchBox({ onOpen }) {
|
|
|
443
456
|
${results ? html`<ul class="tb-search-results" role="listbox">
|
|
444
457
|
${results.length ? results.map((r, i) => html`<li key=${r.card.id} role="option" aria-selected=${i === active ? "true" : "false"} class=${i === active ? "active" : ""}>
|
|
445
458
|
<button type="button" onClick=${() => pick(r.card.id)}>
|
|
446
|
-
<span class="tb-code">${r.card.id}</span><span class="tb-search-title">${r.card.title}</span><${StatusPill} status=${r.card.status} card=${r.card}
|
|
459
|
+
<span class="tb-code">${r.card.id}</span><span class="tb-search-title">${r.card.title}</span><${StatusPill} status=${r.card.status} card=${r.card} />${r.archived ? html`<${ArchivedTag} days=${archiveDays} />` : null}
|
|
447
460
|
<span class="tb-search-where muted">${[r.project, r.parentTitle].filter(Boolean).join(" › ")}${r.match ? ` · ${t("tasks.inField", t(`tasks.field${r.match.field}`))}: ${r.match.text}` : ""}</span>
|
|
448
461
|
</button></li>`) : html`<li class="muted tb-search-none">${t("tasks.searchEmpty")}</li>`}
|
|
449
462
|
</ul>` : null}
|
|
@@ -452,8 +465,10 @@ function SearchBox({ onOpen }) {
|
|
|
452
465
|
|
|
453
466
|
// ── A project's board ─────────────────────────────────────
|
|
454
467
|
|
|
455
|
-
function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filters, query, writable, notSorted = 0, onOpenNoProject, onDisplay, onFilters, onQuery, onBack, onOpen, onMore, onOwner, onCreate, onInstances, reload }) {
|
|
468
|
+
function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filters, query, writable, notSorted = 0, onOpenNoProject, onDisplay, onFilters, onQuery, onBack, onOpen, onMore, onOwner, onCreate, onInstances, reload, archiveDays = 0, onArchive = null }) {
|
|
456
469
|
const [expanded, setExpanded] = useState({});
|
|
470
|
+
// M-3668: the Done column (and the list's done rows) shows its newest DONE_PAGE, DONE_PAGE more at a time.
|
|
471
|
+
const [doneLimit, setDoneLimit] = useState(DONE_PAGE);
|
|
457
472
|
// A phone shows one status at a time: the one picked here, else the first that has cards (the person's own first).
|
|
458
473
|
const [phoneStatus, setPhoneStatus] = useState(null);
|
|
459
474
|
const [drag, setDrag] = useState(null);
|
|
@@ -478,7 +493,12 @@ function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filter
|
|
|
478
493
|
const live = cards.filter((c) => c.kind === "main" && projectKey(c) === key && c.status !== "cancelled");
|
|
479
494
|
// What the filters offer: this project's main tasks and their sub tasks.
|
|
480
495
|
const own = live.flatMap((c) => [c, ...(subsOf.get(c.id) || [])]);
|
|
481
|
-
const
|
|
496
|
+
const matched = live.filter((c) => doneShown(c, display.done, now) && mainMatches(c, subsOf.get(c.id), filters, query));
|
|
497
|
+
const doneAll = newestDone(matched.filter((c) => c.status === "done"));
|
|
498
|
+
const doneCut = new Set(doneAll.slice(doneLimit).map((c) => c.id));
|
|
499
|
+
// What the page draws: every unfinished main task, the newest finished ones; `matched` still counts them all.
|
|
500
|
+
const mains = matched.filter((c) => !doneCut.has(c.id));
|
|
501
|
+
const moreDone = doneCut.size ? html`<button type="button" class="btn btn-sm tb-done-more" onClick=${() => setDoneLimit((n) => n + DONE_PAGE)}>${t("tasksArchive.showMore", Math.min(DONE_PAGE, doneCut.size))}</button>` : null;
|
|
482
502
|
const searching = filters.length > 0 || query.trim() !== "";
|
|
483
503
|
// Finished cards hidden: no Done column (a card is still confirmed or finished from its dialog).
|
|
484
504
|
const columns = display.done === "hide" ? COLUMNS.filter((s) => s !== "done") : COLUMNS;
|
|
@@ -490,12 +510,12 @@ function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filter
|
|
|
490
510
|
// Insights counts what the page shows. A list with sub-task rows shows exactly its rows (each matched by the filter, a
|
|
491
511
|
// finished one as Done shows it); the board, or a list without them, shows a main task with all its sub tasks.
|
|
492
512
|
const insightCards = () => (display.view === "list" && display.subs
|
|
493
|
-
? listRows(
|
|
494
|
-
:
|
|
513
|
+
? listRows(matched, subsOf, display, filters, now, query)
|
|
514
|
+
: matched.flatMap((c) => [c, ...(subsOf.get(c.id) || [])]));
|
|
495
515
|
const listBody = () => {
|
|
496
516
|
const rows = listRows(mains, subsOf, display, filters, now, query);
|
|
497
517
|
return rows.length === 0 ? empty() : html`<${ListView} rows=${rows} display=${display} subsOf=${subsOf} byId=${byId} flashed=${flashed} now=${now} runs=${runs}
|
|
498
|
-
expanded=${expanded} onToggleSubs=${toggleSubs} onOpen=${onOpen} onMore=${onMore} onOwner=${onOwner} cards=${cards} lead=${lead} writable=${writable} onDisplay=${onDisplay} scope=${String(key)}
|
|
518
|
+
expanded=${expanded} onToggleSubs=${toggleSubs} onOpen=${onOpen} onMore=${onMore} onOwner=${onOwner} cards=${cards} lead=${lead} writable=${writable} onDisplay=${onDisplay} scope=${String(key)} />${moreDone}`;
|
|
499
519
|
};
|
|
500
520
|
|
|
501
521
|
const dropping = useRef(false);
|
|
@@ -620,6 +640,7 @@ function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filter
|
|
|
620
640
|
${stats.blocked ? html`<span class="tb-flag st-blocked">${t("tasks.blockedN", stats.blocked)}</span>` : null}
|
|
621
641
|
</div>
|
|
622
642
|
${project !== NO_PROJECT && notSorted ? html`<button type="button" class="tb-flag st-review tb-sort-link" title=${t("tasksort.headerLinkTip")} onClick=${onOpenNoProject}><${Icon} name="inbox" size=${16} /><span class="tb-sort-link-short">${t("tasksort.headerLink", notSorted)}</span><span class="tb-sort-link-long">${t("tasksort.title", notSorted)}</span><span class="tb-sort-link-go">${t("tasksort.go")}</span> →</button>` : null}
|
|
643
|
+
<${ArchivedLink} count=${stats.archived} days=${archiveDays} onOpen=${onArchive} />
|
|
623
644
|
<button type="button" class="btn btn-ghost btn-sm tb-insights" title=${t("taskstats.buttonTip")} onClick=${() => setInsights(true)}><${Icon} name="chart" size=${16} />${t("taskstats.button")}</button>
|
|
624
645
|
</div>
|
|
625
646
|
</div>
|
|
@@ -628,23 +649,24 @@ function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filter
|
|
|
628
649
|
${archived || !writable ? null : html`<button type="button" class="btn btn-primary" onClick=${onCreate}><${Icon} name="plus" size=${16} />${t("tasks.newMain")}</button>`}
|
|
629
650
|
</div>
|
|
630
651
|
</div>
|
|
631
|
-
<${TaskToolbar} cards=${own} display=${display} onDisplay=${onDisplay} filters=${filters} onFilters=${onFilters} query=${query} onQuery=${onQuery}
|
|
652
|
+
<${TaskToolbar} cards=${own} display=${display} onDisplay=${onDisplay} filters=${filters} onFilters=${onFilters} query=${query} onQuery=${onQuery} archiving=${archiveDays > 0}
|
|
632
653
|
scroller=${display.view === "list" ? null : { reach, by: scrollColumns }} />
|
|
633
654
|
${display.view === "list" ? listBody() : mains.length === 0 && !drag ? empty()
|
|
634
655
|
: html`${html`<div class="tb-seg tb-status-seg" role="group" aria-label=${t("taskview.statusTabs")} ref=${pillRow}>${columns.map((status) => {
|
|
635
|
-
const count = mains.filter((c) => c.status === status).length;
|
|
656
|
+
const count = (status === "done" ? doneAll : mains.filter((c) => c.status === status)).length;
|
|
636
657
|
return html`<button key=${status} type="button" aria-pressed=${current === status ? "true" : "false"} class=${`tb-seg-btn${current === status ? " active" : ""}${count === 0 ? " is-empty" : ""}`}
|
|
637
658
|
onClick=${() => setPhoneStatus(status)}><span class=${`tb-dot st-${status}`} aria-hidden="true"></span>${t(`tasks.${status}`)} <span class="tb-count">${count}</span></button>`;
|
|
638
659
|
})}</div>`}
|
|
639
660
|
<div class="tb-scroll" ref=${scrollEl}><div class="tb-columns">
|
|
640
661
|
${columns.map((status) => {
|
|
641
|
-
const list = mains.filter((c) => c.status === status);
|
|
662
|
+
const list = status === "done" ? doneAll.slice(0, doneLimit) : mains.filter((c) => c.status === status);
|
|
642
663
|
const line = spot && spot.status === status ? spot.index : -1;
|
|
643
664
|
return html`<section key=${status} class=${`tb-col st-${status}${status === current ? " is-current" : ""}${drag ? " can-drop" : ""}${line >= 0 ? " over" : ""}`} aria-label=${t(`tasks.${status}`)}
|
|
644
665
|
onDragOver=${(e) => over(e, status)} onDrop=${(e) => dropOn(e, status, list)}>
|
|
645
666
|
<h3 class="tb-col-head"><span class="tb-dot"></span>${t(`tasks.${status}`)}
|
|
646
|
-
${status === "done" ? html`<button type="button" class="tb-link" title=${t("tasks.toggleDone")} onClick=${() => onDisplay({ ...display, done: display.done === "all" ? "recent" : "all" })}>${display.done === "all" ? t("tasks.all") : t("tasks.recent")}</button>` : null}
|
|
647
|
-
<span class="tb-count">${list.length}</span></h3>
|
|
667
|
+
${status === "done" && archiveDays === 0 ? html`<button type="button" class="tb-link" title=${t("tasks.toggleDone")} onClick=${() => onDisplay({ ...display, done: display.done === "all" ? "recent" : "all" })}>${display.done === "all" ? t("tasks.all") : t("tasks.recent")}</button>` : null}
|
|
668
|
+
<span class="tb-count">${status === "done" ? doneAll.length : list.length}</span></h3>
|
|
669
|
+
${status === "done" && archiveDays > 0 ? html`<p class="muted tb-done-week tb-done-week-line" title=${t("tasksArchive.weekTip")}>${weekLabel(stats)}</p>` : null}
|
|
648
670
|
${cellItems(list, drag ? drag.id : null, line, (card, dragging) => {
|
|
649
671
|
const lit = Math.max(flashed.get(card.id) || 0, ...(subsOf.get(card.id) || []).map((s) => flashed.get(s.id) || 0));
|
|
650
672
|
return html`<${Tile} key=${card.id} card=${card} dragging=${dragging} flash=${now - lit < 4000} subs=${subsOf.get(card.id)} runs=${runs} writable=${writable} cards=${cards} lead=${lead}
|
|
@@ -652,6 +674,7 @@ function ProjectBoard({ project, cards, stats: statsOf, flashed, display, filter
|
|
|
652
674
|
onOpen=${onOpen} onMore=${onMore} onOwner=${onOwner} onKeyMove=${(e) => keyMove(card, e)}
|
|
653
675
|
onDragStart=${(e) => { e.dataTransfer.setData("text/plain", card.id); e.dataTransfer.effectAllowed = "move"; setDrag(card); }} onDragEnd=${end} />`;
|
|
654
676
|
})}
|
|
677
|
+
${status === "done" ? moreDone : null}
|
|
655
678
|
</section>`;
|
|
656
679
|
})}
|
|
657
680
|
</div></div>`}
|
|
@@ -751,6 +774,7 @@ function Tile({ card, dragging, flash, subs = [], runs, expanded, writable, card
|
|
|
751
774
|
${card.acceptance.length ? html`<span class=${accepted === card.acceptance.length ? "all" : ""} title=${t(card.kind === "main" ? "tasks.definition" : "tasks.acceptance")}><${Icon} name="check" size=${13} />${accepted}/${card.acceptance.length}</span>` : null}
|
|
752
775
|
${waitsOn(card) ? html`<span title=${t("tasks.waitsFor", waitsList(card, ", "))}><${Icon} name="clock" size=${13} /></span>` : null}
|
|
753
776
|
${card.commentCount ? html`<span class=${replied ? "reply" : ""} title=${replied ? t("tasks.agentReplied") : t("tasks.comments")}><${Icon} name="chat" size=${13} />${card.commentCount}</span>` : null}
|
|
777
|
+
${card.attachmentCount ? html`<span title=${t("taskfiles.title")}><${Icon} name="attach" size=${13} />${card.attachmentCount}</span>` : null}
|
|
754
778
|
</span>
|
|
755
779
|
</div>
|
|
756
780
|
</div>`;
|
package/dist/ui/panel-details.js
CHANGED
|
@@ -34,6 +34,7 @@ import { InstanceBoardWork } from "./fleet-task-work.js";
|
|
|
34
34
|
import { Icon } from "/assets/ui-icons.js";
|
|
35
35
|
import { AgentCategoryNav, AgentPageHead, AgentSettingsPanels, agentKind, categoryFromSearch, useAgentSettings } from "./agent-details-settings.js";
|
|
36
36
|
import { ContactPermissionsPanel } from "./contact-permissions.js";
|
|
37
|
+
import { WhoCanUsePanel } from "./agent-who-can-use.js";
|
|
37
38
|
import "./agent-page-strings.js";
|
|
38
39
|
import { pt } from "./agent-page-strings.js";
|
|
39
40
|
import { timeText } from "/assets/clock-text.js";
|
|
@@ -215,11 +216,12 @@ function DetailsView({ name, inst, navKey, exec, awaiting }) {
|
|
|
215
216
|
<${PanelHeader} title=${name} sub=${sub} pageControls=${{ navKey }} pageActions=${items} nav=${html`<${InstanceSwitch} name=${name} current="details" />`}><${HeaderTools} navKey=${navKey} /><${Menu} items=${items} label=${t("app.more")} />${phone ? html`<${AgentSheetButton} name=${name} inst=${inst} current="details" items=${items} navKey=${navKey} />` : null}</${PanelHeader}>
|
|
216
217
|
<${AgentCategoryNav} name=${name} kind=${kind} cat=${shownCat} dirty=${dirty}>${!cat ? html`<div class="only-narrow"><div class="s-row agent-settings-index-return"><h2>${pt("title")}</h2>${backLink()}</div></div>` : null}</${AgentCategoryNav}>
|
|
217
218
|
<div data-trust="panel-content" class="panel-body"><div class="col" ref=${body}>
|
|
218
|
-
<div class="s-row agent-settings-heading"><a class="s-back" href=${detailsPath(name)}><${Icon} name="back" size=${16} /><span>${t("app.details")}</span></a><${AgentPageHead} name=${name} kind=${kind} cat=${shownCat} inst=${
|
|
219
|
+
<div class="s-row agent-settings-heading"><a class="s-back" href=${detailsPath(name)}><${Icon} name="back" size=${16} /><span>${t("app.details")}</span></a><${AgentPageHead} name=${name} kind=${kind} cat=${shownCat} inst=${inst} />${backLink()}</div>
|
|
219
220
|
${OpCard && sess.op ? html`<${OpCard} op=${sess.op} schema=${sess.data && sess.data.schema} />` : null}
|
|
220
221
|
<div class="s-section-layout" data-agent-category=${shownCat}>
|
|
221
222
|
<div class="ap-panel" id=${pane ? `pane-${pane.id}-ap-panel-overview` : "ap-panel-overview"} hidden=${shownCat !== "overview"}>${overview}</div>
|
|
222
223
|
${opened ? html`<${AgentSettingsPanels} name=${name} kind=${kind} cat=${shownCat} sess=${sess} onDirty=${onDirty} />` : null}
|
|
224
|
+
${shownCat === "access" ? html`<div class="ap-panel" id=${pane ? `pane-${pane.id}-ap-panel-access` : "ap-panel-access"}><${WhoCanUsePanel} key=${name} name=${name} display=${inst && inst.display_name} /></div>` : null}
|
|
223
225
|
${shownCat === "permissions" ? html`<div class="ap-panel" id=${pane ? `pane-${pane.id}-ap-panel-permissions` : "ap-panel-permissions"}><${ContactPermissionsPanel} key=${name} name=${name} /></div>` : null}
|
|
224
226
|
</div></div></div>
|
|
225
227
|
${sess.staged.size && Pending ? html`<${Pending} staged=${sess.staged} busy=${!!sess.op && ["writing", "posting", "watching"].includes(sess.op.phase)} onApply=${sess.apply} onDiscard=${sess.discard} section="agents" />` : null}
|
package/dist/ui/panel-needs.js
CHANGED
|
@@ -36,8 +36,8 @@ import { HostDirectoryNotices, hostDirectoryNoticesOffered } from "./hub-host-se
|
|
|
36
36
|
|
|
37
37
|
// A pre-upgrade tab retains app-i18n.js. Register these reasons when the updated panel is loaded, too.
|
|
38
38
|
register("app", {
|
|
39
|
-
en: { needs_reason_host_health: "Host health", needs_reason_stale_auth: "Codex needs a restart", needs_stale_auth_detail: "Codex cannot refresh this agent’s current sign-in. Restart the agent; sign in again only if Codex asks.", needs_reason_hub_proposal: "Hub action proposed: review locally", needs_reason_hub_execution_hold: "Hub work held: review locally", needs_reason_hub_unavailable: "Hub not running", needs_reason_tmux_hold: "Held: an old tmux server or window" },
|
|
40
|
-
"zh-TW": { needs_reason_host_health: "主機狀態", needs_reason_stale_auth: "Codex 需要重新啟動", needs_stale_auth_detail: "Codex 無法更新這個 Agent 執行中使用的登入。請重新啟動 Agent;只有 Codex 要求時才需要重新登入。", needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_tmux_hold: "已暫停:舊的 tmux 伺服器或視窗" },
|
|
39
|
+
en: { needs_reason_mcp_missing: "MCP servers missing after an AI account switch", needs_reason_host_health: "Host health", needs_reason_stale_auth: "Codex needs a restart", needs_stale_auth_detail: "Codex cannot refresh this agent’s current sign-in. Restart the agent; sign in again only if Codex asks.", needs_reason_hub_proposal: "Hub action proposed: review locally", needs_reason_hub_execution_hold: "Hub work held: review locally", needs_reason_hub_unavailable: "Hub not running", needs_reason_tmux_hold: "Held: an old tmux server or window" },
|
|
40
|
+
"zh-TW": { needs_reason_mcp_missing: "切換 AI 帳號後缺少 MCP 伺服器", needs_reason_host_health: "主機狀態", needs_reason_stale_auth: "Codex 需要重新啟動", needs_stale_auth_detail: "Codex 無法更新這個 Agent 執行中使用的登入。請重新啟動 Agent;只有 Codex 要求時才需要重新登入。", needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_tmux_hold: "已暫停:舊的 tmux 伺服器或視窗" },
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
register("needs", {
|
|
@@ -344,7 +344,7 @@ function NeedsItem({ item, nowMs, owner }) {
|
|
|
344
344
|
${item.type === "hub" && item.hubRetry ? html`<button type="button" class="btn btn-sm btn-primary" disabled=${!!hubAck || !!closeAck} onClick=${retryHub}>
|
|
345
345
|
<${Icon} name="restart" size=${14} />${hubAck === "busy" ? tn("hubRetrying") : tn("hubRetry")}</button>` : null}
|
|
346
346
|
${item.type === "hub" && item.hubClose ? html`<button type="button" class="btn btn-sm hub-close" disabled=${!!closeAck || !!hubAck} onClick=${closeHub}>${tn(closeAck === "busy" ? "hubClosing" : "hubClose")}</button>` : null}
|
|
347
|
-
${item.type === "delivery" || item.type === "missed" ? html`<button type="button" class="btn btn-sm" disabled=${!!ack} onClick=${acknowledge}>
|
|
347
|
+
${item.type === "delivery" || item.type === "missed" || item.reason === "mcp_missing" ? html`<button type="button" class="btn btn-sm" disabled=${!!ack} onClick=${acknowledge}>
|
|
348
348
|
<${Icon} name="check" size=${14} />${ack === "busy" ? tn("acknowledging") : tn("acknowledge")}</button>` : null}
|
|
349
349
|
${(item.reason === "auth_paused" || item.reason === "backend_signin") && item.signIn && signInOffered() ? html`<button type="button" class="btn btn-sm btn-primary" onClick=${() => openSignIn(item.signIn)}>${tn("signIn")}</button>` : null}
|
|
350
350
|
${item.type === "task" && item.card ? html`<a class="btn btn-sm" href=${`/ui/fleet?card=${encodeURIComponent(item.card.code)}`}>${tn("openCard")}</a>` : null}
|
|
@@ -1098,6 +1098,9 @@ function taskBoardDefaults(d, f) {
|
|
|
1098
1098
|
if (w[field] === false || hasOwn(tb, key)) out[key] = w[field]; else delete out[key];
|
|
1099
1099
|
}
|
|
1100
1100
|
if (w.wakeLeader !== saved.wakeLeader) { if (w.wakeLeader) out.leader = w.wakeLeader; else delete out.leader; }
|
|
1101
|
+
// M-3668: the archive age is kept as saved unless changed (nothing saved stays absent: the form shows the default).
|
|
1102
|
+
const days = f ? f.archiveDays : archiveForm(d).archiveDays;
|
|
1103
|
+
if (Number(days) !== Number(archiveForm(d).archiveDays)) out.archive_after_days = Number(days);
|
|
1101
1104
|
return out;
|
|
1102
1105
|
}
|
|
1103
1106
|
/**
|
|
@@ -1108,6 +1111,13 @@ function wakesForm(d) {
|
|
|
1108
1111
|
const tb = d.task_board || {};
|
|
1109
1112
|
return { wakeComment: tb.comment_wakes !== false, wakeProgress: tb.progress_wakes !== false, wakeLeader: typeof tb.leader === "string" ? tb.leader.trim() : "" };
|
|
1110
1113
|
}
|
|
1114
|
+
/** M-3668: `defaults.task_board.archive_after_days` as the form holds it (unset or not a whole number 0–3650: the default, 3). */
|
|
1115
|
+
const ARCHIVE_DAYS_DEFAULT = 3;
|
|
1116
|
+
function archiveForm(d) {
|
|
1117
|
+
const v = (d.task_board || {}).archive_after_days;
|
|
1118
|
+
return { archiveDays: String(Number.isInteger(v) && v >= 0 && v <= 3650 ? v : ARCHIVE_DAYS_DEFAULT) };
|
|
1119
|
+
}
|
|
1120
|
+
const daysInRange = (v) => { const n = Number(v); return String(v).trim() !== "" && Number.isInteger(n) && n >= 0 && n <= 3650 ? "" : "archiveRange"; };
|
|
1111
1121
|
const minutesInRange = (v) => { const n = Number(v); return String(v).trim() !== "" && Number.isFinite(n) && n >= 1 && n <= 1440 ? "" : "livenessRange"; };
|
|
1112
1122
|
|
|
1113
1123
|
/** General's form, from the saved defaults (`d`) and ClassicBot's (`c`). */
|
|
@@ -1125,6 +1135,8 @@ function generalForm(d, c, fleet = {}, schema = {}) {
|
|
|
1125
1135
|
...livenessForm(d),
|
|
1126
1136
|
// Which task board news wakes an agent.
|
|
1127
1137
|
...wakesForm(d),
|
|
1138
|
+
// M-3668: when a finished card leaves the board.
|
|
1139
|
+
...archiveForm(d),
|
|
1128
1140
|
// #2347 §10 review: unset startup concurrency is automatic (deriveSpawnConcurrency: 2–10 by free memory and cores),
|
|
1129
1141
|
// not 10 — an empty field, and a save that leaves it unset (the defaults merge replaces `startup` whole).
|
|
1130
1142
|
concurrency: startup.concurrency == null ? "" : String(startup.concurrency), stagger: String(startup.stagger_delay_ms ?? 500),
|
|
@@ -1161,6 +1173,7 @@ function General({ ctx, part = "all" }) {
|
|
|
1161
1173
|
const errors = {
|
|
1162
1174
|
auto: nonNegative(f.auto), hang: positive(f.hang),
|
|
1163
1175
|
liveQuiet: minutesInRange(f.liveQuiet), livePrompt: minutesInRange(f.livePrompt), liveCrash: minutesInRange(f.liveCrash),
|
|
1176
|
+
archiveDays: daysInRange(f.archiveDays),
|
|
1164
1177
|
concurrency: f.concurrency.trim() !== "" && (!Number.isInteger(num(f.concurrency)) || num(f.concurrency) < 1 || num(f.concurrency) > 20) ? "concurrencyRange" : "",
|
|
1165
1178
|
stagger: !Number.isFinite(num(f.stagger)) || f.stagger.trim() === "" || num(f.stagger) < 0 || num(f.stagger) > 30000 ? "staggerRange" : "",
|
|
1166
1179
|
};
|
|
@@ -1174,7 +1187,7 @@ function General({ ctx, part = "all" }) {
|
|
|
1174
1187
|
useEffect(() => {
|
|
1175
1188
|
if (!ready) {
|
|
1176
1189
|
// Where it is (#2382 review): the bar in another section names it and goes there.
|
|
1177
|
-
const at = { auto: "#g-auto", hang: "#g-hang", concurrency: "#g-conc", stagger: "#g-stag", liveQuiet: "#g-live-quiet", livePrompt: "#g-live-prompt", liveCrash: "#g-live-crash" }[Object.keys(errors).find((k) => errors[k])];
|
|
1190
|
+
const at = { auto: "#g-auto", hang: "#g-hang", concurrency: "#g-conc", stagger: "#g-stag", liveQuiet: "#g-live-quiet", livePrompt: "#g-live-prompt", liveCrash: "#g-live-crash", archiveDays: "#g-archive-days" }[Object.keys(errors).find((k) => errors[k])];
|
|
1178
1191
|
syncStage(ctx, "defaults:invalid", { label: tn("updateDefaults"), invalid: tn(firstError), section: "agent-defaults", target: at });
|
|
1179
1192
|
return;
|
|
1180
1193
|
}
|
|
@@ -1244,6 +1257,7 @@ function General({ ctx, part = "all" }) {
|
|
|
1244
1257
|
return { liveOn: !hasOwn(lv, "enabled"), liveQuiet: !hasOwn(lv, "quiet_minutes"), livePrompt: !hasOwn(lv, "prompt_minutes"), liveCrash: !hasOwn(lv, "crash_grace_minutes") }; })(),
|
|
1245
1258
|
// Each wake switch nobody set is the built-in default (on; no leader).
|
|
1246
1259
|
wakeComment: !hasOwn(d.task_board || {}, "comment_wakes"), wakeProgress: !hasOwn(d.task_board || {}, "progress_wakes"), wakeLeader: !hasOwn(d.task_board || {}, "leader"),
|
|
1260
|
+
archiveDays: !hasOwn(d.task_board || {}, "archive_after_days"),
|
|
1247
1261
|
};
|
|
1248
1262
|
const fromDefaults = (k, value, target) => ({ text: valueText(value, k), builtin: !hasOwn(d, k), from: inAgentDefaults(target) });
|
|
1249
1263
|
const L = (text, field, id) => html`<${Label} text=${text} schema=${schema} field=${field} htmlFor=${id} />`;
|
|
@@ -90,6 +90,7 @@ const ROWS = [
|
|
|
90
90
|
["defaults.liveness-crash", "agent-defaults", "#g-live-crash", "settings.livenessCrash", "defaults.task_board.liveness.crash_grace_minutes", ["crashed", "crash grace", "minutes"], ["當掉", "恢復"]],
|
|
91
91
|
["defaults.wake-comment", "agent-defaults", "#g-wake-comment", "settings.wakesComment", "defaults.task_board.comment_wakes", ["comment", "mention", "@", "wake", "task board", "card"], ["留言", "提及", "叫醒", "任務板", "卡片"]],
|
|
92
92
|
["defaults.wake-progress", "agent-defaults", "#g-wake-progress", "settings.wakesProgress", "defaults.task_board.progress_wakes", ["progress", "finished", "watchers", "dispatcher", "wake", "task board", "card"], ["進度", "完成", "關注者", "派工者", "叫醒", "任務板", "卡片"]],
|
|
93
|
+
["defaults.task-archive", "agent-defaults", "#g-archive-days", "settings.archiveTitle", "defaults.task_board.archive_after_days", ["archive", "archived", "finished", "done", "days", "task board", "card"], ["封存", "完成", "天", "任務板", "卡片"]],
|
|
93
94
|
["defaults.wake-leader", "agent-defaults", "#g-wake-leader", "settings.wakesLeader", "defaults.task_board.leader", ["leader", "task board leader", "lead", "progress", "task board"], ["看板負責人", "leader", "負責人", "進度", "任務板"]],
|
|
94
95
|
["defaults.concurrency", "agent-defaults", "#g-conc", "settings.concurrency", "startup.concurrency", ["startup", "concurrency", "parallel", "spawn"], ["啟動", "並行"]],
|
|
95
96
|
["defaults.project-roots", "agent-defaults", "#g-roots", "settings.projectRootsTitle", "project_roots", ["project roots", "folders", "directory", "where agents work", "working directory"], ["專案資料夾", "資料夾", "目錄", "工作目錄"]],
|
|
@@ -58,6 +58,11 @@ register("settings", {
|
|
|
58
58
|
wakesLeader: "Board leader",
|
|
59
59
|
wakesLeaderNone: "No leader",
|
|
60
60
|
wakesLeaderGone: "{0} (not an agent of this fleet)",
|
|
61
|
+
// M-3668: when finished cards leave the board.
|
|
62
|
+
archiveTitle: "Archive finished cards after",
|
|
63
|
+
archiveUnit: "days (0 = never)",
|
|
64
|
+
archiveHint: "A finished or cancelled main task leaves its project's board this many days after it finished. It waits in the project's Archive list, search still finds it, and moving it to To do brings it back. Nothing is deleted. 0 keeps every finished card on the board.",
|
|
65
|
+
archiveRange: "A whole number of days from 0 to 3650.",
|
|
61
66
|
wakesLeaderHint: "Hears the progress of cards that are in no project, and of cards whose project has no lead of its own. No leader: only such a card's dispatcher and watchers hear it.",
|
|
62
67
|
hostTag: "this host", switchOn: "On", switchOff: "Off", hangUnit: "minutes without output → alert", tipLabel: "About \u201c{0}\u201d",
|
|
63
68
|
usageCount: "{0}/{1} in use", usageOwn: "{0} custom", usagePartly: "{0} partly custom", usageMany: "{0} agents",
|
|
@@ -140,6 +145,10 @@ register("settings", {
|
|
|
140
145
|
wakesLeader: "看板負責人",
|
|
141
146
|
wakesLeaderNone: "不指定",
|
|
142
147
|
wakesLeaderGone: "{0}(不是這個 Fleet 的 Agent)",
|
|
148
|
+
archiveTitle: "完成的卡片封存於",
|
|
149
|
+
archiveUnit: "天後(0 = 不封存)",
|
|
150
|
+
archiveHint: "完成或取消的主任務,完成這麼多天後就離開專案看板,移到專案的封存清單;搜尋仍找得到,移回「待辦」即可重新開啟,不會刪除任何卡片。設為 0 時,完成的卡片都留在看板上。",
|
|
151
|
+
archiveRange: "請輸入 0 到 3650 之間的整數天數。",
|
|
143
152
|
wakesLeaderHint: "沒有專案的卡片、以及專案沒有自己負責人的卡片,進度會通知這個 Agent。不指定:這類卡片只有派工者和關注者會收到。",
|
|
144
153
|
hostTag: "此主機", switchOn: "開", switchOff: "關", hangUnit: "分鐘沒輸出就提醒", tipLabel: "「{0}」的說明",
|
|
145
154
|
usageCount: "{0}/{1} 套用中", usageOwn: "{0} 自訂", usagePartly: "{0} 部分自訂", usageMany: "{0} 個 Agent",
|
|
@@ -87,11 +87,13 @@ export const FIELDS = Object.freeze({
|
|
|
87
87
|
liveness: { keys: ["liveOn", "liveQuiet", "livePrompt", "liveCrash"], path: "defaults.task_board" },
|
|
88
88
|
// Which task board news wakes an agent (fleet-level; no agent overrides it; read at every card write, so it applies at once).
|
|
89
89
|
taskWakes: { keys: ["wakeComment", "wakeProgress", "wakeLeader"], path: "defaults.task_board" },
|
|
90
|
+
// M-3668: how many days after it finished a main task leaves the board (fleet-level; read at every board read).
|
|
91
|
+
taskArchive: { keys: ["archiveDays"], path: "defaults.task_board" },
|
|
90
92
|
concurrency: { keys: ["concurrency"], path: "fleet.spawn_concurrency" },
|
|
91
93
|
stagger: { keys: ["stagger"], path: "fleet.spawn_stagger_ms" },
|
|
92
94
|
});
|
|
93
95
|
/** How many fields the Advanced drawer holds (the title says so). */
|
|
94
|
-
export const ADVANCED_COUNT =
|
|
96
|
+
export const ADVANCED_COUNT = 13;
|
|
95
97
|
|
|
96
98
|
/** The parts of a field that agents override one by one (one part: the field itself). */
|
|
97
99
|
const partsOf = (spec) => spec.parts || [{ keys: spec.keys, own: spec.own, owns: spec.owns }];
|
|
@@ -383,6 +385,9 @@ export function SharedAgentSettings({ ctx, form }) {
|
|
|
383
385
|
<div key=${k} class="s-hang-row"><${Switch} id=${id} name=${tn(label)} checked=${f[k]} onChange=${set(k)} /><span>${tn(label)}</span></div><${Info}>${tn(hint)}</${Info}>`)}
|
|
384
386
|
<div class="s-hang-row"><label for="g-wake-leader">${tn("wakesLeader")}</label>
|
|
385
387
|
<${Select} id="g-wake-leader" value=${f.wakeLeader} onChange=${set("wakeLeader")} options=${leaderOptions} /></div><${Info}>${tn("wakesLeaderHint")}</${Info}>${note("taskWakes")}</div>
|
|
388
|
+
<div id="g-archive" class=${fc("field", "archiveDays")}>${head("taskArchive", "g-archive-days", tn("archiveTitle"), null, { mark: mark("archiveDays") })}
|
|
389
|
+
<div class="s-hang-row"><input id="g-archive-days" type="number" min="0" max="3650" step="1" class=${errors.archiveDays ? "invalid" : ""} value=${f.archiveDays} onInput=${(e) => set("archiveDays")(e.target.value)} />
|
|
390
|
+
<span class="s-unit">${tn("archiveUnit")}</span></div><${Feedback} error=${errors.archiveDays} /><${Info}>${tn("archiveHint")}</${Info}>${note("taskArchive")}</div>
|
|
386
391
|
<div class=${fc("field", "concurrency")}>${head("concurrency", "g-conc", tn("concurrency"), tn("tipConcurrency"), { mark: mark("concurrency") })}
|
|
387
392
|
<input id="g-conc" type="number" min="1" max="20" step="1" class=${errors.concurrency ? "invalid" : ""} value=${f.concurrency} onInput=${(e) => set("concurrency")(e.target.value)} />
|
|
388
393
|
<${Feedback} error=${errors.concurrency} warning=${warnings.concurrency} />${f.concurrency.trim() === "" ? html`<${InEffect} text=${tn("concurrencyAuto")} tip=${defaultTip} />` : null}${note("concurrency")}</div>
|
|
@@ -121,7 +121,7 @@ register("app", {
|
|
|
121
121
|
confirmTitle: "Please confirm", confirmOk: "Continue", cancel: "Cancel",
|
|
122
122
|
sidePanelLeave: "Leave {0} without saving? Your changes there will be lost.", sidePanelDiscard: "Discard changes",
|
|
123
123
|
// The server's own wording (src/locale.ts needs.reason.*), so the web says what Discord says.
|
|
124
|
-
needs_reason_kiro_choice: "Kiro needs your decision", needs_reason_hang: "Not responding", needs_reason_exited: "Exited", needs_reason_assist: "Waiting at its terminal", needs_reason_question: "Asking you a question", needs_reason_permission: "Permission needed", needs_reason_dangerous_command: "Dangerous command waiting", needs_reason_login: "Waiting to connect its AI account", needs_reason_dialog: "Waiting at a dialog", needs_reason_terminal_input: "May be waiting for input", needs_reason_auth_paused: "Paused: AI account not connected", needs_reason_host_health: "Host health", needs_reason_stale_auth: "Codex needs a restart", needs_stale_auth_detail: "Codex cannot refresh this agent’s current sign-in. Restart the agent; sign in again only if Codex asks.", needs_reason_backend_signin: "AI account needs connecting", needs_reason_config_invalid: "Configuration file needs attention", needs_reason_hub_proposal: "Hub action proposed: review locally", needs_reason_hub_execution_hold: "Hub work held: review locally", needs_reason_hub_share_lapsed: "Hub share needs to be shared again: its backend or folder changed", needs_reason_hub_unavailable: "Hub not running", needs_reason_config_fallback: "Running on stored configuration", config_history_edit: "{0}, line {1}, column {2}: {3}. AgEnD is still running on the previous settings. The next restart would use the stored valid copy from {4}. Correct the YAML error; the file has not been changed by AgEnD.", config_history_no_history: "{0}, line {1}, column {2}: {3}. AgEnD is still running on the previous settings. No stored valid copy is available, so the next restart cannot recover automatically. Correct the YAML error before restarting; the file has not been changed by AgEnD.", config_history_fallback: "{0}, line {1}, column {2}: {3}. AgEnD started using the stored valid copy from {4}. Correct the YAML error and reload the settings. The file on disk has not been changed by AgEnD.", needs_reason_general_windows_offline: "General’s Windows PC is offline", needs_reason_general_location_hold: "Run General on", needs_reason_native_pane_hold: "Windows agent needs attention", needs_reason_model_switch: "Claude model switched", needs_reason_crashed: "Crashed", needs_reason_backend_missing: "AI CLI not installed", needs_reason_usage_limit: "Usage limit reached · reset time unknown", needs_reason_delivery_uncertain: "Could not confirm delivery", needs_reason_delivery_failed: "Delivery failed", needs_reason_missed_offline: "Missed while AgEnD was offline", needs_reason_task_review: "Waiting for your confirmation", needs_reason_task_blocked: "Blocked: asks you", needs_reason_task_stalled: "Its assignee went quiet",
|
|
124
|
+
needs_reason_kiro_choice: "Kiro needs your decision", needs_reason_hang: "Not responding", needs_reason_exited: "Exited", needs_reason_assist: "Waiting at its terminal", needs_reason_question: "Asking you a question", needs_reason_permission: "Permission needed", needs_reason_dangerous_command: "Dangerous command waiting", needs_reason_login: "Waiting to connect its AI account", needs_reason_dialog: "Waiting at a dialog", needs_reason_terminal_input: "May be waiting for input", needs_reason_auth_paused: "Paused: AI account not connected", needs_reason_host_health: "Host health", needs_reason_stale_auth: "Codex needs a restart", needs_stale_auth_detail: "Codex cannot refresh this agent’s current sign-in. Restart the agent; sign in again only if Codex asks.", needs_reason_backend_signin: "AI account needs connecting", needs_reason_config_invalid: "Configuration file needs attention", needs_reason_hub_proposal: "Hub action proposed: review locally", needs_reason_hub_execution_hold: "Hub work held: review locally", needs_reason_hub_share_lapsed: "Hub share needs to be shared again: its backend or folder changed", needs_reason_hub_unavailable: "Hub not running", needs_reason_config_fallback: "Running on stored configuration", config_history_edit: "{0}, line {1}, column {2}: {3}. AgEnD is still running on the previous settings. The next restart would use the stored valid copy from {4}. Correct the YAML error; the file has not been changed by AgEnD.", config_history_no_history: "{0}, line {1}, column {2}: {3}. AgEnD is still running on the previous settings. No stored valid copy is available, so the next restart cannot recover automatically. Correct the YAML error before restarting; the file has not been changed by AgEnD.", config_history_fallback: "{0}, line {1}, column {2}: {3}. AgEnD started using the stored valid copy from {4}. Correct the YAML error and reload the settings. The file on disk has not been changed by AgEnD.", needs_reason_general_windows_offline: "General’s Windows PC is offline", needs_reason_general_location_hold: "Run General on", needs_reason_native_pane_hold: "Windows agent needs attention", needs_reason_model_switch: "Claude model switched", needs_reason_crashed: "Crashed", needs_reason_backend_missing: "AI CLI not installed", needs_reason_mcp_missing: "MCP servers missing after an AI account switch", needs_mcp_missing_detail: "{0} ({1} → {2})", needs_mcp_missing_sep: ", ", needs_reason_usage_limit: "Usage limit reached · reset time unknown", needs_reason_delivery_uncertain: "Could not confirm delivery", needs_reason_delivery_failed: "Delivery failed", needs_reason_missed_offline: "Missed while AgEnD was offline", needs_reason_task_review: "Waiting for your confirmation", needs_reason_task_blocked: "Blocked: asks you", needs_reason_task_stalled: "Its assignee went quiet",
|
|
125
125
|
},
|
|
126
126
|
"zh-TW": {
|
|
127
127
|
brand: "AgEnD", fleet: "Fleet", fleetOverview: "Fleet 概覽", view: "檢視", settings: "設定", instances: "Agent", newInstance: "新增 Agent", newAgent: "新增 Agent",
|
|
@@ -171,6 +171,6 @@ register("app", {
|
|
|
171
171
|
search: "搜尋", searchTitle: "搜尋聊天、agent 之間的訊息與任務({0})",
|
|
172
172
|
confirmTitle: "請確認", confirmOk: "繼續", cancel: "取消",
|
|
173
173
|
sidePanelLeave: "不儲存就離開「{0}」?你在那裡的修改會遺失。", sidePanelDiscard: "捨棄修改",
|
|
174
|
-
needs_reason_kiro_choice: "Kiro 需要你決定", needs_reason_hang: "沒有回應", needs_reason_exited: "已結束", needs_reason_assist: "在終端機上等待", needs_reason_question: "正在問你問題", needs_reason_permission: "需要權限", needs_reason_dangerous_command: "危險指令待確認", needs_reason_login: "等待連接 AI 帳號", needs_reason_dialog: "停在對話框", needs_reason_terminal_input: "可能在等輸入", needs_reason_auth_paused: "已暫停:AI 帳號未連接", needs_reason_host_health: "主機狀態", needs_reason_stale_auth: "Codex 需要重新啟動", needs_stale_auth_detail: "Codex 無法更新這個 Agent 執行中使用的登入。請重新啟動 Agent;只有 Codex 要求時才需要重新登入。", needs_reason_backend_signin: "需要連接 AI 帳號", needs_reason_config_invalid: "設定檔需要處理", needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_share_lapsed: "Hub 分享需要重新分享:它的後端或資料夾換了", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_config_fallback: "正在使用儲存的設定副本", config_history_edit: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。下次重新啟動會改用 {4} 儲存的有效副本。請修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_no_history: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。沒有可用的有效副本,下次重新啟動將無法自動恢復。請在重新啟動前修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_fallback: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 已使用 {4} 儲存的有效副本啟動。請修正 YAML 錯誤並重新載入設定。AgEnD 未更動磁碟上的檔案。", needs_reason_general_windows_offline: "General 所在的 Windows 電腦已離線", needs_reason_general_location_hold: "General 執行位置", needs_reason_native_pane_hold: "Windows Agent 需要處理", needs_reason_model_switch: "Claude 模型已切換", needs_reason_crashed: "已崩潰", needs_reason_backend_missing: "AI CLI 沒有安裝", needs_reason_usage_limit: "用量已達上限 · 恢復時間未知", needs_reason_delivery_uncertain: "無法確認是否送達", needs_reason_delivery_failed: "傳送失敗", needs_reason_missed_offline: "AgEnD 離線時錯過", needs_reason_task_review: "等你確認", needs_reason_task_blocked: "卡住,在問你", needs_reason_task_stalled: "接手者很久沒有動靜",
|
|
174
|
+
needs_reason_kiro_choice: "Kiro 需要你決定", needs_reason_hang: "沒有回應", needs_reason_exited: "已結束", needs_reason_assist: "在終端機上等待", needs_reason_question: "正在問你問題", needs_reason_permission: "需要權限", needs_reason_dangerous_command: "危險指令待確認", needs_reason_login: "等待連接 AI 帳號", needs_reason_dialog: "停在對話框", needs_reason_terminal_input: "可能在等輸入", needs_reason_auth_paused: "已暫停:AI 帳號未連接", needs_reason_host_health: "主機狀態", needs_reason_stale_auth: "Codex 需要重新啟動", needs_stale_auth_detail: "Codex 無法更新這個 Agent 執行中使用的登入。請重新啟動 Agent;只有 Codex 要求時才需要重新登入。", needs_reason_backend_signin: "需要連接 AI 帳號", needs_reason_config_invalid: "設定檔需要處理", needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_share_lapsed: "Hub 分享需要重新分享:它的後端或資料夾換了", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_config_fallback: "正在使用儲存的設定副本", config_history_edit: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。下次重新啟動會改用 {4} 儲存的有效副本。請修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_no_history: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。沒有可用的有效副本,下次重新啟動將無法自動恢復。請在重新啟動前修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_fallback: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 已使用 {4} 儲存的有效副本啟動。請修正 YAML 錯誤並重新載入設定。AgEnD 未更動磁碟上的檔案。", needs_reason_general_windows_offline: "General 所在的 Windows 電腦已離線", needs_reason_general_location_hold: "General 執行位置", needs_reason_native_pane_hold: "Windows Agent 需要處理", needs_reason_model_switch: "Claude 模型已切換", needs_reason_crashed: "已崩潰", needs_reason_backend_missing: "AI CLI 沒有安裝", needs_reason_mcp_missing: "切換 AI 帳號後缺少 MCP 伺服器", needs_mcp_missing_detail: "{0}({1} → {2})", needs_mcp_missing_sep: "、", needs_reason_usage_limit: "用量已達上限 · 恢復時間未知", needs_reason_delivery_uncertain: "無法確認是否送達", needs_reason_delivery_failed: "傳送失敗", needs_reason_missed_offline: "AgEnD 離線時錯過", needs_reason_task_review: "等你確認", needs_reason_task_blocked: "卡住,在問你", needs_reason_task_stalled: "接手者很久沒有動靜",
|
|
175
175
|
},
|
|
176
176
|
});
|
|
@@ -11,7 +11,12 @@ import { modelSwitchText } from "./model-observation.js";
|
|
|
11
11
|
// The toggle asks Notification.requestPermission() on that click only. Not offered on a phone (the constructor is
|
|
12
12
|
// missing or throws there; Discord's notification is the one to rely on) or on a plain-HTTP LAN address.
|
|
13
13
|
import { appStore, createStore } from "./app-store.js";
|
|
14
|
-
import { t } from "./app-i18n.js";
|
|
14
|
+
import { register, t } from "./app-i18n.js";
|
|
15
|
+
// M-3749: a tab that retains an older app-i18n.js still words the missing-MCP item (registered by its consumer, too).
|
|
16
|
+
register("app", {
|
|
17
|
+
en: { needs_reason_mcp_missing: "MCP servers missing after an AI account switch", needs_mcp_missing_detail: "{0} ({1} → {2})", needs_mcp_missing_sep: ", " },
|
|
18
|
+
"zh-TW": { needs_reason_mcp_missing: "切換 AI 帳號後缺少 MCP 伺服器", needs_mcp_missing_detail: "{0}({1} → {2})", needs_mcp_missing_sep: "、" },
|
|
19
|
+
});
|
|
15
20
|
|
|
16
21
|
const STORE_KEY = "agend_needs_notify";
|
|
17
22
|
const TERMINAL_WAIT_MS = 5000;
|
|
@@ -62,6 +67,8 @@ export async function setNotify(on, env = globalThis) {
|
|
|
62
67
|
|
|
63
68
|
export const configDetail = (item) => {
|
|
64
69
|
if (item.modelSwitch) return modelSwitchText(item.modelSwitch);
|
|
70
|
+
// M-3749: the missing MCP servers in the page's language (zh: 「、」 and 「()」).
|
|
71
|
+
if (item.mcpMissing && Array.isArray(item.mcpMissing.names)) return t("app.needs_mcp_missing_detail", item.mcpMissing.names.join(t("app.needs_mcp_missing_sep")), item.mcpMissing.from, item.mcpMissing.to);
|
|
65
72
|
const issue = item.configIssue;
|
|
66
73
|
return issue ? t(`app.config_history_${issue.mode === "fallback" ? "fallback" : issue.time ? "edit" : "no_history"}`, issue.file, issue.line, issue.column, issue.reason, issue.time || "") : item.detail;
|
|
67
74
|
};
|
package/dist/ui/shared/app.css
CHANGED
|
@@ -1109,10 +1109,15 @@ html.lb-open .scroller { overflow: hidden; }
|
|
|
1109
1109
|
.pv-banner[hidden] { display: none; }
|
|
1110
1110
|
.pv-banner-text { flex: 1; min-width: 0; }
|
|
1111
1111
|
/* #1568: "I understand" hides the banner until the next sign-in; .preview-frame's border below never depends on it. */
|
|
1112
|
-
|
|
1112
|
+
/* M-3742 (Prism #4462 triage): a real flat button — its own background and a visible edge on the notice's tint, no shadow —
|
|
1113
|
+
not a ghost that reads as text; a 44 px box on a phone. Shared by the chat, the preview panel and a task card's files. */
|
|
1114
|
+
.pv-banner .pv-ack, .pv-banner .pv-ack.btn-ghost { flex: none; background: var(--bg); border-color: var(--border-strong); color: var(--text); box-shadow: none; }
|
|
1115
|
+
.pv-banner .pv-ack:hover:not(:disabled) { background: var(--surface); }
|
|
1116
|
+
@media (max-width: 899px), (pointer: coarse) { .pv-banner .pv-ack { min-height: var(--tap); } }
|
|
1113
1117
|
.pv-holder:empty { display: none; }
|
|
1114
1118
|
.pv-holder { margin-top: var(--s-2); }
|
|
1115
|
-
|
|
1119
|
+
/* M-3742: the frame's edge at least 3:1 against the page in light and dark (--warn-line alone was ~1.9:1 on white, ~2.5:1 on dark). */
|
|
1120
|
+
.preview-frame { display: block; width: 100%; border: 2px solid var(--warn-line); border-color: color-mix(in srgb, var(--warn) 85%, var(--bg)); border-radius: var(--r-sm); background: #ffffff; }
|
|
1116
1121
|
/* #1481: the preview beside the conversation. A split on a wide screen (width: --pv-w, set by the divider through
|
|
1117
1122
|
CSSOM), a full-screen sheet on a narrow one. The frame is the card's (preview.js), sized by the panel here. */
|
|
1118
1123
|
.chat-split { flex: 1; min-height: 0; display: flex; }
|
|
@@ -1621,6 +1626,8 @@ img.amb-p { object-fit: contain; }
|
|
|
1621
1626
|
/* M-3281: the archived chat files' limit (Settings → Web dashboard): its field is a phone tap target too (its Save keeps the
|
|
1622
1627
|
section's one .btn height, as the app icon's button beside it). */
|
|
1623
1628
|
.p-settings .s-archive-files .field input { min-height: var(--tap); }
|
|
1629
|
+
/* M-3668 (ui-gate, #4428): the task board's archive-after-days field is a phone tap target too. */
|
|
1630
|
+
.p-settings #g-archive .s-hang-row input { min-height: var(--tap); }
|
|
1624
1631
|
/* AGEND-122: Owner verification's own buttons, dialog fields and switches are phone tap targets (style guide rule 7); the Devices
|
|
1625
1632
|
card's primary action beside it matches (one primary button height on the page). */
|
|
1626
1633
|
.p-settings .s-outside :is(.save-row .btn, .field input, label.check), .p-settings .s-devices .save-row .btn, .p-settings .s-web-authority .save-row .btn { min-height: var(--tap); }
|
|
@@ -2705,6 +2712,14 @@ strong.org-name { font-size: var(--fs-sm); color: var(--text); }
|
|
|
2705
2712
|
.oo-card-avatar .oo-badge { position: absolute; left: -6px; top: -6px; }
|
|
2706
2713
|
.oo-card-names { flex: 1; min-width: 0; }
|
|
2707
2714
|
.oo-card-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2715
|
+
.oo-card-name-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
|
|
2716
|
+
.oo-card-name-row .oo-card-name { min-width: 0; }
|
|
2717
|
+
.oo-card-rename-btn { flex: none; width: 24px; height: 24px; font-size: var(--fs-sm); color: var(--text-2); }
|
|
2718
|
+
.oo-card-rename { width: 100%; font: inherit; font-weight: 600; }
|
|
2719
|
+
/* A phone: the pencil keeps its size (the name's row does not grow) and no square behind it; a clear ::after reaches --tap. */
|
|
2720
|
+
.oo-card-rename-btn { position: relative; }
|
|
2721
|
+
.oo-card.sheet .oo-card-rename-btn, .oo-card.sheet .oo-card-rename-btn:hover { background: transparent; }
|
|
2722
|
+
.oo-card.sheet .oo-card-rename-btn::after { content: ""; position: absolute; inset: calc((24px - var(--tap)) / 2); z-index: 4; } /* over the grip (z 3), as the close button reaches */
|
|
2708
2723
|
/* One line, cut; a fixed line height so a CJK fallback in the mono stack doesn't make it taller. */
|
|
2709
2724
|
.oo-card-instance { height: 18px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-2); }
|
|
2710
2725
|
.oo-card-state { color: var(--text-2); }
|
|
@@ -4569,7 +4584,7 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
|
|
|
4569
4584
|
.p-settings .s-color-summary { display: grid; grid-template-columns: 112px minmax(0, 1fr) 16px; gap: 16px; align-items: center; min-height: 38px; cursor: pointer; list-style: none; }
|
|
4570
4585
|
.p-settings .s-color-summary::-webkit-details-marker { display: none; }
|
|
4571
4586
|
.p-settings .s-color-summary > .s-ap-title { margin: 0; }
|
|
4572
|
-
.p-settings .s-color-summary > svg { color: var(--text-3);
|
|
4587
|
+
.p-settings .s-color-summary > svg { color: var(--text-3); }
|
|
4573
4588
|
.p-settings .s-colors[open] > .s-color-summary > svg { transform: rotate(90deg); }
|
|
4574
4589
|
.p-settings .s-color-summary-places { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
|
|
4575
4590
|
.p-settings .s-color-summary-places > span { padding: 4px 8px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-2); font-size: var(--fs-xs); line-height: 1.5; }
|
|
@@ -5078,6 +5093,43 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
|
|
|
5078
5093
|
/* A category's panel takes no box of its own: its cards are stacked by .s-section-layout's gap, like Settings' cards. */
|
|
5079
5094
|
.ap-panel { display: contents; }
|
|
5080
5095
|
.ap-panel[hidden] { display: none; }
|
|
5096
|
+
/* M-3734: an agent page's Who can use (agent-who-can-use.js): Web guests and Hub, each a card of the section's column. */
|
|
5097
|
+
.ap-who { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
|
|
5098
|
+
.ap-who .ap-who-admins { margin: 0; }
|
|
5099
|
+
.ap-who-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
|
|
5100
|
+
.ap-who-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
|
|
5101
|
+
.ap-who-row:first-child { border-top: 0; }
|
|
5102
|
+
.ap-who-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
|
5103
|
+
background: var(--surface-2); color: var(--text-2); font-weight: 600; }
|
|
5104
|
+
.ap-who-id { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
|
|
5105
|
+
.ap-who-id .note { white-space: normal; }
|
|
5106
|
+
.ap-who-state { margin-top: 2px; }
|
|
5107
|
+
.ap-who-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
|
|
5108
|
+
.ap-who-actions .btn, .ap-who-derived .btn, .ap-who-hub .btn, .ap-who-guests > .field-row .btn { min-height: var(--tap); }
|
|
5109
|
+
.ap-who-add { margin-top: 16px; }
|
|
5110
|
+
.ap-who-add > summary { min-height: var(--tap); display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; list-style: none; }
|
|
5111
|
+
.ap-who-add > summary::-webkit-details-marker { display: none; }
|
|
5112
|
+
.ap-who-add > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
|
|
5113
|
+
.ap-who-add[open] > summary::before { transform: rotate(45deg); }
|
|
5114
|
+
.ap-who-derived { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 8px 0; }
|
|
5115
|
+
.ap-who-derived > .note { margin: 0; }
|
|
5116
|
+
.ap-who-derived .btn { margin-top: 4px; }
|
|
5117
|
+
.ap-who-go { white-space: nowrap; }
|
|
5118
|
+
.ap-who-guests > .field-row { margin: 4px 0 8px; }
|
|
5119
|
+
.ap-who-actions .ap-who-remove { margin-left: 16px; }
|
|
5120
|
+
.ap-who-confirm-note { margin-top: 4px; }
|
|
5121
|
+
.ap-who-add .input { width: 100%; max-width: 420px; min-height: var(--tap); margin: 8px 0; }
|
|
5122
|
+
.ap-who-off { padding: 2px 0 2px 10px; border-left: 3px solid var(--warn); color: var(--text); }
|
|
5123
|
+
.ap-who-hub-state { margin: 8px 0; font-weight: 600; }
|
|
5124
|
+
.ap-who-hub[data-hub-state="shared"] .ap-who-hub-state { color: var(--ok); }
|
|
5125
|
+
.ap-who .err { color: var(--danger); }
|
|
5126
|
+
.ap-who .field-row { flex-wrap: wrap; }
|
|
5127
|
+
.ap-who .field-row .btn { white-space: normal; text-align: center; max-width: 100%; }
|
|
5128
|
+
@media (max-width: 599px) {
|
|
5129
|
+
.ap-who .field-row { flex-direction: column; align-items: stretch; }
|
|
5130
|
+
.ap-who-actions { margin-left: calc(32px + 12px); width: 100%; }
|
|
5131
|
+
.ap-who-actions .ap-who-remove { margin-left: auto; }
|
|
5132
|
+
}
|
|
5081
5133
|
.p-details .d-actions .field-row { flex-wrap: wrap; }
|
|
5082
5134
|
/* The sidebar's ⚙: one step to an agent's settings — on hover or focus on a desktop and on the open row, always on a touch screen. */
|
|
5083
5135
|
.inst-gear { flex: none; width: 28px; height: 28px; padding: 0; color: var(--text-3); display: inline-grid; place-items: center; }
|
|
@@ -251,12 +251,12 @@ register("chat", {
|
|
|
251
251
|
guestNote: "你是訪客:agent 會把你的訊息視為訪客的訊息(僅供辨識)。", guestNoCommands: "訪客不能這樣送出,請去掉開頭的 / 再送出。", guestCommandNotAllowed: "訪客不能使用 {0},只有這個頻道的管理員可以執行。", attachTitle: "附加檔案(任何類型,也可以貼上或拖曳)",
|
|
252
252
|
pvPopout: "彈出預覽視窗", pvPreview: "預覽", pvStop: "停止", pvDownload: "下載", pvMenu: "預覽選項", pvHtml: "HTML",
|
|
253
253
|
pvAllowButton: "允許預覽", pvAllow: "允許預覽 HTML(預覽可能把資料傳出去)", pvDisallow: "不再允許預覽 HTML",
|
|
254
|
-
pvConfirm: "要允許預覽 HTML 嗎?\n\n這會套用到你登入的每一台裝置。預覽會在隔離的框架裡執行
|
|
254
|
+
pvConfirm: "要允許預覽 HTML 嗎?\n\n這會套用到你登入的每一台裝置。預覽會在隔離的框架裡執行 Agent 的 HTML。它無法使用你的登入,但可能把資料傳出去,也可能讓這個分頁變慢或卡住。每次仍需要你按「預覽」。",
|
|
255
255
|
pvNever: "這台裝置永不預覽 HTML", pvNeverUndo: "讓這台裝置再次可以預覽 HTML", pvStarting: "正在啟動預覽…",
|
|
256
|
-
pvChanged: "預覽已停止——訊息內容變了。請再預覽一次。", pvTruncated: "內容被截斷——請
|
|
256
|
+
pvChanged: "預覽已停止——訊息內容變了。請再預覽一次。", pvTruncated: "內容被截斷——請 Agent 改用 .html 檔案傳送。",
|
|
257
257
|
pvLoading: "正在讀取檔案…", pvAttOver: "這個檔案超過 50 MB,不提供預覽,請下載後開啟。",
|
|
258
258
|
pvLarge: "這個檔案比較大({0}),仍要預覽嗎?", pvAnyway: "仍要預覽",
|
|
259
|
-
pvAttGone: "這裡已無法取得這個檔案(檔案已變更,或 Fleet 已重新啟動)。請
|
|
259
|
+
pvAttGone: "這裡已無法取得這個檔案(檔案已變更,或 Fleet 已重新啟動)。請 Agent 再傳一次。",
|
|
260
260
|
pvAttFailed: "無法讀取這個檔案,請再試一次。",
|
|
261
261
|
pvBannerAck: "我知道了", pvBannerAckTitle: "隱藏這則提醒,直到下次登入",
|
|
262
262
|
attGone: "AgEnD 重新啟動後找不到這個檔案(已移動、刪除或變更)。請 agent 再傳一次。", attUnavailable: "無法取得", yesterdayAt: "昨天 {0}",
|
|
@@ -295,7 +295,7 @@ register("chat", {
|
|
|
295
295
|
pvNoAnswer: "無法預覽:預覽在 3 秒內沒有回應。如果先前的預覽卡住了,它可能還在執行——請在新分頁開啟儀表板。透過 SSH 使用時,也要轉送預覽的連接埠。",
|
|
296
296
|
pvStoppedAnswering: "預覽沒有回應,已將它關閉。", pvSwitchedOff: "這台裝置已關閉預覽。",
|
|
297
297
|
pvAnother: "另一個預覽已開始。", pvWrongBoot: "無法預覽:預覽連接埠上回應的不是這個 Fleet。",
|
|
298
|
-
pvBanner: "預覽會在隔離的框架裡執行
|
|
298
|
+
pvBanner: "預覽會在隔離的框架裡執行 Agent 的 HTML。它無法使用你的登入,但可能把資料傳出去。只預覽你信任的內容。預覽可能讓這個分頁變慢或卡住。",
|
|
299
299
|
pvServer_fleetOff: "這個 Fleet 已關閉預覽(web.preview: false)。", pvServer_unchecked: "無法確認這個網址。",
|
|
300
300
|
pvServer_noPort: "預覽沒有可用的連接埠:請設定 web.preview_port(health_port 已是最大的連接埠)。",
|
|
301
301
|
pvServer_notListed: "{0} 不提供預覽:請把這個網址(含連接埠)加入 web.allowed_hosts,並設定 web.preview_origin。",
|