jaxon-agents 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.agent.md +203 -168
- package/README.md +51 -34
- package/README.zh-CN.md +55 -38
- package/dist/BUILD_INFO.json +3 -3
- package/dist/PACKAGE_MANIFEST.json +63 -42
- package/dist/RELEASE_META.json +8 -2
- package/dist/agents/directory-store.js +66 -11
- package/dist/agents/jaxon-admin.entry.js +5 -3
- package/dist/agents/session-switch.js +6 -0
- package/dist/api/mcp-tools.js +76 -45
- package/dist/connections/health.js +4 -1
- package/dist/console/activity-client.js +644 -0
- package/dist/console/activity-page.js +24 -0
- package/dist/console/activity-topics.js +698 -0
- package/dist/console/activity.js +379 -0
- package/dist/console/assets.js +394 -241
- package/dist/console/chat-library.js +685 -0
- package/dist/console/console-info.js +30 -0
- package/dist/console/icons.js +14 -0
- package/dist/console/pages.js +94 -31
- package/dist/console/server.js +58 -8
- package/dist/console/station-pages.js +83 -25
- package/dist/daemon/client.js +1 -1
- package/dist/daemon/host.js +16 -3
- package/dist/environment/pi-launch-spec.js +1 -1
- package/dist/index.js +87 -8
- package/dist/launcher.js +17 -26
- package/dist/ops/catalog.js +18 -14
- package/dist/ops/core.js +157 -77
- package/dist/pi-host/history-reader.js +20 -0
- package/dist/pi-host/mcp-bridge.entry.js +55 -7
- package/dist/platform/index.js +22 -0
- package/dist/platform/linux.js +64 -0
- package/dist/release/handoff.js +6 -8
- package/dist/release/store.js +3 -13
- package/dist/sessions/dashboard-usage.js +5 -3
- package/dist/sessions/supervisor.js +449 -60
- package/dist/stations/activity.js +24 -28
- package/dist/stations/boards.js +10 -5
- package/dist/stations/cues.js +71 -48
- package/dist/stations/interactions.js +75 -0
- package/dist/stations/member-instructions.js +23 -0
- package/dist/stations/station-member.entry.js +31 -14
- package/examples/README.md +23 -8
- package/examples/agents/README.md +93 -35
- package/examples/agents/coder/README.md +37 -0
- package/examples/agents/custom-gateway/README.md +42 -0
- package/examples/agents/local-qwen/README.md +46 -0
- package/examples/agents/planner/README.md +39 -0
- package/examples/agents/reviewer/README.md +42 -0
- package/examples/mcp-clients/README.md +35 -16
- package/examples/stations/README.md +98 -21
- package/examples/stations/dev-loop/README.md +40 -0
- package/examples/stations/parallel-coders/README.md +40 -0
- package/examples/stations/parallel-coders/STATION.md +2 -2
- package/examples/stations/research-writer/README.md +39 -0
- package/examples/stations/research-writer/STATION.md +1 -1
- package/examples/workflows/01-dev-loop-e2e.md +27 -5
- package/examples/workflows/02-human-auth-and-roster-switch.md +25 -3
- package/examples/workflows/README.md +17 -0
- package/package.json +8 -2
- package/runtime/provenance.json +3 -3
- package/runtime/runtime-lock.json +2 -2
- package/runtime/runtime-package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// The console address projection shared by the MCP resource `jaxon://console` and the
|
|
2
|
+
// `jaxon-agents console --json` CLI output (PLAN §20.2). It never contains credentials.
|
|
3
|
+
export const consolePages = {
|
|
4
|
+
overview: "/", stations: "/stations", station: "/stations/{station_id}", connections: "/connections",
|
|
5
|
+
};
|
|
6
|
+
export function consoleInfoFrom(status, fallbackUrl = "http://127.0.0.1:7391") {
|
|
7
|
+
const raw = typeof status?.console_url === "string" && status.console_url ? status.console_url : fallbackUrl;
|
|
8
|
+
const base = raw.replace(/\/+$/, "");
|
|
9
|
+
let parsed;
|
|
10
|
+
try {
|
|
11
|
+
parsed = new URL(base);
|
|
12
|
+
}
|
|
13
|
+
catch {
|
|
14
|
+
parsed = new URL("http://127.0.0.1:7391");
|
|
15
|
+
}
|
|
16
|
+
const port = Number.isInteger(status?.port) ? status.port : Number(parsed.port || 80);
|
|
17
|
+
const bind = typeof status?.bind === "string" && status.bind ? status.bind : (parsed.hostname || "127.0.0.1");
|
|
18
|
+
return {
|
|
19
|
+
console_url: base + "/",
|
|
20
|
+
port,
|
|
21
|
+
bind,
|
|
22
|
+
pages: consolePages,
|
|
23
|
+
mode: typeof status?.mode === "string" ? status.mode : "source",
|
|
24
|
+
version: String(status?.version ?? ""),
|
|
25
|
+
daemon_instance: typeof status?.daemon_instance === "string" ? status.daemon_instance : null,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function consoleUrl(info, page) {
|
|
29
|
+
return info.console_url.replace(/\/$/, "") + page;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const paths = {
|
|
2
|
+
spark: '<path fill="currentColor" stroke="none" d="M12 2c1.2 6.3 3.7 8.8 10 10-6.3 1.2-8.8 3.7-10 10C10.8 15.7 8.3 13.2 2 12c6.3-1.2 8.8-3.7 10-10Z"/>',
|
|
3
|
+
settings: '<circle cx="12" cy="12" r="3"/><path d="m10 3-.6 2.4-2 .9L5 5.6l-2 3.5 1.8 1.7v2.4L3 14.9l2 3.5 2.4-.7 2 .9.6 2.4h4l.6-2.4 2-.9 2.4.7 2-3.5-1.8-1.7v-2.4L21 9.1l-2-3.5-2.4.7-2-.9L14 3z"/>',
|
|
4
|
+
cue: '<path d="m13 2-8 11h6l-1 9 9-11h-6l1-9Z"/>',
|
|
5
|
+
plus: '<path d="M12 5v14M5 12h14"/>',
|
|
6
|
+
external: '<path d="M13 5h6v6m0-6-8 8m5 0v5H6V8h5"/>',
|
|
7
|
+
chat: '<path d="M20 11.5a7.5 7.5 0 0 1-7.5 7.5H4l1.7-3.8A7.5 7.5 0 1 1 20 11.5Z"/><path d="M9 11.5h7"/>',
|
|
8
|
+
minimize: '<path d="M6 12h12"/>',
|
|
9
|
+
restore: '<path d="m7 14.5 5-5 5 5"/>',
|
|
10
|
+
close: '<path d="m6 6 12 12M18 6 6 18"/>',
|
|
11
|
+
};
|
|
12
|
+
export function consoleIcon(name) {
|
|
13
|
+
return `<svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${paths[name]}</svg>`;
|
|
14
|
+
}
|
package/dist/console/pages.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { adminScope } from "../agents/admin-scope.js";
|
|
2
2
|
import { builtinProviders } from "@earendil-works/pi-ai/providers/all";
|
|
3
3
|
import { JAXON_LOGO_URL } from "./assets.js";
|
|
4
|
+
import { consoleIcon } from "./icons.js";
|
|
4
5
|
import { attrJson, esc, formatTime, readinessOf } from "./util.js";
|
|
5
6
|
import { PAGE_SIZE } from "./pagination.js";
|
|
7
|
+
import { activityPanel } from "./activity-page.js";
|
|
8
|
+
import { isSessionSwitch, sessionSwitchKey, sessionSwitchValues } from "../agents/session-switch.js";
|
|
6
9
|
const TOOLS = ["read", "write", "edit", "bash", "grep", "find", "ls"];
|
|
10
|
+
const CONSOLE_UI_VERSION = "station-ui-6";
|
|
11
|
+
const LOGO_SRC = `${JAXON_LOGO_URL}?v=${CONSOLE_UI_VERSION}`;
|
|
7
12
|
export function viewNav(label, items, active) {
|
|
8
13
|
return `<nav class="view-nav" aria-label="${esc(label)}">${items.map(([id, name]) => `<a href="?view=${encodeURIComponent(id)}"${id === active ? ' aria-current="page"' : ""}>${esc(name)}</a>`).join("")}</nav>`;
|
|
9
14
|
}
|
|
@@ -23,19 +28,15 @@ export function layout(title, body, page = "") {
|
|
|
23
28
|
return `<!doctype html>
|
|
24
29
|
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
|
25
30
|
<title>${esc(title)} · JaXon Agents</title>
|
|
26
|
-
<link rel="icon" type="image/svg+xml" href="${
|
|
27
|
-
<link rel="stylesheet" href="/assets/style.css?v
|
|
31
|
+
<link rel="icon" type="image/svg+xml" href="${LOGO_SRC}">
|
|
32
|
+
<link rel="stylesheet" href="/assets/style.css?v=${CONSOLE_UI_VERSION}"><script src="/assets/app.js?v=${CONSOLE_UI_VERSION}" defer></script><script src="/assets/jaxon-chat.js?v=${CONSOLE_UI_VERSION}" defer></script></head>
|
|
28
33
|
<body data-page="${esc(page)}"><a class="skip-link" href="#main">Skip to content</a>
|
|
29
|
-
<header class="rail"><a class="brand" href="/"><img class="brand-mark" src="${
|
|
34
|
+
<header class="rail"><a class="brand" href="/"><img class="brand-mark" src="${LOGO_SRC}" width="32" height="32" alt="">JaXon Agents</a>
|
|
30
35
|
<nav aria-label="Console">${links}</nav></header>
|
|
31
36
|
<div id="toast" class="toast" role="status" aria-live="polite" hidden></div>
|
|
32
37
|
<main id="main" tabindex="-1">${body}</main><aside class="jaxon-dock" aria-label="Ask JaXon">
|
|
33
|
-
<button id="jaxon-launch" type="button" aria-expanded="false" aria-controls="jaxon-panel"
|
|
34
|
-
<section id="jaxon-panel" role="dialog" aria-
|
|
35
|
-
<header class="jaxon-head"><div><h2 id="jaxon-title">Ask JaXon</h2><small id="jaxon-status" role="status">Console assistant</small></div><div class="jaxon-tools"><button class="secondary" id="jaxon-new" type="button">New chat</button><button class="secondary" id="jaxon-hide" type="button" aria-label="Minimize chat">−</button></div></header>
|
|
36
|
-
<div class="jaxon-scroll"><div id="jaxon-messages"></div><section id="jaxon-question" hidden><div></div></section></div>
|
|
37
|
-
<p id="jaxon-error" role="alert" hidden></p>
|
|
38
|
-
<form id="jaxon-chat"><textarea name="text" rows="2" aria-label="Message JaXon" placeholder="Ask about agents, connections or skills…" required></textarea><div class="jaxon-actions"><small class="key-hint">Enter to send · Shift/Ctrl + Enter for a new line</small><button type="button" class="secondary" id="jaxon-stop" hidden>Stop turn</button><button type="submit">Send</button></div></form>
|
|
38
|
+
<button id="jaxon-launch" type="button" aria-expanded="false" aria-controls="jaxon-panel">${consoleIcon("spark")} Ask JaXon</button>
|
|
39
|
+
<section id="jaxon-panel" class="jaxon-conversation" role="dialog" aria-label="Ask JaXon" hidden>
|
|
39
40
|
</section></aside></body></html>`;
|
|
40
41
|
}
|
|
41
42
|
export const badge = (value) => `<span class="badge ${esc(String(value ?? "unknown").toLowerCase().replace(/[^a-z0-9_-]/g, ""))}">${esc(value ?? "unknown")}</span>`;
|
|
@@ -62,20 +63,42 @@ function agentActions(agent) {
|
|
|
62
63
|
return `<td class="agent-action-cell"><div class="agent-row-actions">
|
|
63
64
|
<a class="quiet-link" href="/agents/${encodeURIComponent(agent.name)}?view=settings" aria-label="Edit ${name}">Edit</a>${removal}</div></td>`;
|
|
64
65
|
}
|
|
66
|
+
const sessionSwitchLabels = { strictly_eager: "Strictly eager", eager: "Eager", balanced: "Balanced", conservative: "Conservative" };
|
|
67
|
+
function sessionSwitchLabel(value) {
|
|
68
|
+
return isSessionSwitch(value) ? sessionSwitchLabels[value] : "—";
|
|
69
|
+
}
|
|
70
|
+
const sessionSwitchAdvice = {
|
|
71
|
+
strictly_eager: "Lowest tolerance for redundant context: start a new session for each task.",
|
|
72
|
+
eager: "Low tolerance: reuse a session within one scenario or version.",
|
|
73
|
+
balanced: "Medium tolerance: keep the same session and switch once redundant context from different versions becomes confusing.",
|
|
74
|
+
conservative: "Highest tolerance: keep the same session unless a switch is explicitly requested.",
|
|
75
|
+
};
|
|
76
|
+
export function sessionSwitchTag(value) {
|
|
77
|
+
if (!isSessionSwitch(value))
|
|
78
|
+
return "—";
|
|
79
|
+
return `<span class="resource-tag" title="${esc(sessionSwitchAdvice[value])}">${sessionSwitchLabel(value)}</span>`;
|
|
80
|
+
}
|
|
81
|
+
function sessionSwitchSelect(value) {
|
|
82
|
+
const current = isSessionSwitch(value) ? value : "";
|
|
83
|
+
return `<label>Context redundancy tolerance<select name="session_switch" data-original="${current}">
|
|
84
|
+
<option value=""${current === "" ? " selected" : ""}>Use default (Balanced)</option>
|
|
85
|
+
${sessionSwitchValues.map(choice => `<option value="${choice}"${choice === current ? " selected" : ""}>${sessionSwitchLabels[choice]}</option>`).join("")}
|
|
86
|
+
</select></label>`;
|
|
87
|
+
}
|
|
65
88
|
function agentCards(agents, showActions = false) {
|
|
66
89
|
if (!agents.length)
|
|
67
90
|
return empty("No agents have been created.");
|
|
68
|
-
return `<div class="table-wrap"><table class="resource-list"><thead><tr><th>Agent</th><th>Readiness</th><th>Revision</th>${showActions ? '<th class="agent-action-cell" scope="col">Actions</th>' : ""}</tr></thead>
|
|
91
|
+
return `<div class="table-wrap"><table class="resource-list"><thead><tr><th>Agent</th><th>Readiness</th><th>Revision</th><th scope="col">Session switch</th>${showActions ? '<th class="agent-action-cell" scope="col">Actions</th>' : ""}</tr></thead>
|
|
69
92
|
<tbody>${agents.map((agent) => `<tr>
|
|
70
93
|
<td><a href="/agents/${encodeURIComponent(agent.name)}">${esc(agent.name)}</a><small>${esc(agent.description)}</small></td>
|
|
71
94
|
<td>${badge(readinessOf(agent))}${agent.readiness?.reason ? `<small>${esc(agent.readiness.reason)}</small>` : ""}</td>
|
|
72
|
-
<td><code>${esc(agent.revision ?? "—")}</code></td>${showActions ? agentActions(agent) : ""}
|
|
95
|
+
<td><code>${esc(agent.revision ?? "—")}</code></td><td>${sessionSwitchTag(agent.session_switch)}</td>${showActions ? agentActions(agent) : ""}
|
|
73
96
|
</tr>`).join("")}</tbody></table></div>`;
|
|
74
97
|
}
|
|
75
98
|
function sessionRows(sessions) {
|
|
76
99
|
if (!sessions.length)
|
|
77
100
|
return empty("No matching sessions.");
|
|
78
|
-
return `<div class="table-wrap"><table class="resource-list"><thead><tr><th>Session</th><th>Agent</th><th>Task / workspace</th><th>Status</th><th>Updated</th></tr></thead><tbody>${sessions.map((s) => `<tr><td><a href="/sessions/${encodeURIComponent(s.session_id)}">${esc(s.session_id)}</a>${s.has_pending_request ? `<small>input required</small>` : ""}
|
|
101
|
+
return `<div class="table-wrap"><table class="resource-list"><thead><tr><th>Session</th><th>Agent</th><th>Task / workspace</th><th>Status</th><th>Updated</th></tr></thead><tbody>${sessions.map((s) => `<tr><td><a href="/sessions/${encodeURIComponent(s.session_id)}">${esc(s.session_id)}</a>${s.has_pending_request ? `<small>input required</small>` : ""}</td><td>${esc(s.agent)}</td><td>${esc(s.task_id ?? "—")}<small>${esc(s.workspace)}</small></td><td>${badge(s.status)}</td><td>${esc(formatTime(s.updated_at))}</td></tr>`).join("")}</tbody></table></div>`;
|
|
79
102
|
}
|
|
80
103
|
export function dashboardContent(data, pages) {
|
|
81
104
|
const active = data.sessions.filter((s) => !["closed", "dormant"].includes(s.status));
|
|
@@ -94,7 +117,7 @@ export function dashboardContent(data, pages) {
|
|
|
94
117
|
}
|
|
95
118
|
export function dashboardPage(data, pages) {
|
|
96
119
|
return layout("Dashboard", `<header class="page-heading"><h1>Overview</h1><span id="sse-state" class="muted">Connecting live updates…</span></header>
|
|
97
|
-
<div id="dashboard-content">${dashboardContent(data, pages)}</div>`, "dashboard");
|
|
120
|
+
${activityPanel("", true)}<div id="dashboard-content">${dashboardContent(data, pages)}</div>`, "dashboard");
|
|
98
121
|
}
|
|
99
122
|
const option = (value, label) => `<option value="${esc(value)}">${esc(label)}</option>`;
|
|
100
123
|
let apiOptions;
|
|
@@ -380,6 +403,22 @@ function clonePanel(agent, pages) {
|
|
|
380
403
|
${source ? `<section id="source-mcp"><h3>MCP servers</h3><small>Clones include configured headers and environment values. Saved OAuth credentials stay with the source agent.</small><div id="source-mcp-list">${regions["source-mcp-list"]}</div></section>
|
|
381
404
|
<section id="source-skills"><h3>Skills</h3><div id="source-skills-list">${regions["source-skills-list"]}</div></section>` : ""}</section>`;
|
|
382
405
|
}
|
|
406
|
+
function compactionFields(value) {
|
|
407
|
+
const enabled = value?.enabled;
|
|
408
|
+
return `<fieldset><legend>Context compaction</legend>
|
|
409
|
+
<label>Automatic compaction<select name="compaction_enabled">
|
|
410
|
+
<option value="">Pi default (on)</option>
|
|
411
|
+
<option value="true"${enabled === true ? " selected" : ""}>On</option>
|
|
412
|
+
<option value="false"${enabled === false ? " selected" : ""}>Off</option>
|
|
413
|
+
</select></label>
|
|
414
|
+
<div class="grid-form">
|
|
415
|
+
<label>Context reserve (tokens)<input type="number" name="compaction_reserve" min="0" max="${Number.MAX_SAFE_INTEGER}" step="1" placeholder="16384" value="${esc(value?.reserveTokens)}"></label>
|
|
416
|
+
<label>Recent history to keep (tokens)<input type="number" name="compaction_keep_recent" min="0" max="${Number.MAX_SAFE_INTEGER}" step="1" placeholder="20000" value="${esc(value?.keepRecentTokens)}"></label>
|
|
417
|
+
</div>
|
|
418
|
+
<p class="muted">Leave a token field blank to use Pi’s default. Pi starts automatic compaction when estimated context use exceeds the model’s context window minus the reserve. A configured per-model override takes precedence over these token fields.</p>
|
|
419
|
+
<p class="muted">Saving applies to new sessions. Existing sessions keep their preset snapshot.</p>
|
|
420
|
+
</fieldset>`;
|
|
421
|
+
}
|
|
383
422
|
export function agentDetailPage(agent, connections, pages, view = "") {
|
|
384
423
|
const settings = typeof agent.files?.["settings.json"] === "string" ? (() => { try {
|
|
385
424
|
return JSON.parse(agent.files["settings.json"]);
|
|
@@ -387,6 +426,7 @@ export function agentDetailPage(agent, connections, pages, view = "") {
|
|
|
387
426
|
catch {
|
|
388
427
|
return {};
|
|
389
428
|
} })() : (agent.files?.["settings.json"] ?? {});
|
|
429
|
+
const switchPolicy = agent.session_switch;
|
|
390
430
|
const instructions = agent.files?.["APPEND_SYSTEM.md"] ?? "";
|
|
391
431
|
const rev = agent.revision ?? "";
|
|
392
432
|
const readiness = agent.readiness ?? {};
|
|
@@ -401,16 +441,21 @@ export function agentDetailPage(agent, connections, pages, view = "") {
|
|
|
401
441
|
case "settings":
|
|
402
442
|
content = `<form class="card editor preset-editor" method="post" action="/api/op" data-op="agent_update" data-kind="agent-settings" data-settings="${attrJson(settings)}" data-success="reload">
|
|
403
443
|
${hidden("name", agent.name)}${hidden("expected_rev", rev)}
|
|
404
|
-
<
|
|
444
|
+
<div class="grid-form">
|
|
445
|
+
<label>What does this agent do?<input name="description" required value="${esc(agent.description)}"></label>
|
|
446
|
+
${agent.name === "JaXon" ? "" : sessionSwitchSelect(settings[sessionSwitchKey])}
|
|
447
|
+
</div>
|
|
448
|
+
${agent.name === "JaXon" ? "" : '<p class="muted">Advisory only. This policy never closes, rejects, or starts sessions automatically.</p>'}
|
|
405
449
|
<fieldset><legend>Model access</legend>${modelFields(connections, agent.connection, settings, agent.files?.["models.json"])}</fieldset>
|
|
406
450
|
${reasoningSelect(settings.defaultThinkingLevel)}${toolChoices(settings.defaultTools ?? TOOLS)}
|
|
451
|
+
${compactionFields(settings.compaction)}
|
|
407
452
|
<button type="submit">Save settings</button></form>`;
|
|
408
453
|
break;
|
|
409
454
|
case "instructions":
|
|
410
455
|
content = `<section class="card"><h2>Instructions</h2>${agent.name === "JaXon" ? `<details class="form-advanced"><summary>System administration scope</summary><p>${esc(adminScope).replaceAll("\n\n", "</p><p>")}</p></details>` : ""}<form method="post" action="/api/op" data-op="agent_update" data-kind="agent-instructions" data-success="reload">${hidden("name", agent.name)}${hidden("expected_rev", rev)}<label>How should this agent work?<textarea name="instructions" rows="14">${esc(instructions)}</textarea></label>${submit("Publish instructions")}</form></section>`;
|
|
411
456
|
break;
|
|
412
457
|
case "revisions":
|
|
413
|
-
content = `<section class="card"><h2>Revision history & rollback</h2>${pages.list("revisions_page", "Revision history", revisions.slice().reverse(), rows => rows.length ? `<div class="table-wrap"><table><thead><tr><th>Revision</th><th>
|
|
458
|
+
content = `<section class="card" id="agent-revisions"><h2>Revision history & rollback</h2>${pages.list("revisions_page", "Revision history", revisions.slice().reverse(), rows => rows.length ? `<div class="table-wrap"><table class="resource-list"><thead><tr><th scope="col">Revision</th><th scope="col">Status</th><th scope="col" class="row-action-cell">Actions</th></tr></thead><tbody>${rows.map((r) => `<tr><td><code>${esc(r)}</code></td><td>${r === rev ? badge("Current") : "—"}</td><td class="row-action-cell"><div class="row-actions">${r === rev ? "—" : `<form method="post" action="/api/op" data-op="agent_update" data-success="reload" data-confirm="Publish a new revision copied from ${esc(r)}?">${hidden("name", agent.name)}${hidden("from_revision", r)}${hidden("expected_rev", rev)}${submit("Roll back", "secondary")}</form>`}</div></td></tr>`).join("")}</tbody></table></div>` : empty("No revision history returned."), "agent-revisions")}</section>
|
|
414
459
|
<details class="drawer" id="revision-files"${pages.request("files_page").number > 1 ? " open" : ""}><summary>Revision files · ${esc(rev)}</summary>${redactedFiles(agent.files ?? {}, pages)}</details>`;
|
|
415
460
|
break;
|
|
416
461
|
case "access":
|
|
@@ -431,7 +476,7 @@ export function agentDetailPage(agent, connections, pages, view = "") {
|
|
|
431
476
|
<details class="drawer destructive"><summary>Delete preset</summary><section class="card danger-zone"><form method="post" action="/api/op" data-op="agent_delete" data-redirect="/agents" data-confirm="Permanently delete ${esc(agent.name)}? Existing sessions keep their frozen snapshots.">${hidden("name", agent.name)}${hidden("expected_rev", rev)}${submit("Delete agent", "danger")}</form></section></details>`;
|
|
432
477
|
break;
|
|
433
478
|
default:
|
|
434
|
-
content = `<section class="card"><h2>Agent details</h2><dl class="details"><dt>Provider</dt><dd>${esc(settings.defaultProvider ?? "—")}</dd><dt>Model</dt><dd>${esc(settings.defaultModel ?? "—")}</dd><dt>Preset ID</dt><dd><code>${esc(agent.preset_id)}</code></dd><dt>Revision</dt><dd><code>${esc(rev)}</code></dd><dt>Connection</dt><dd>${esc(connections.find((c) => c.connection_id === agent.connection)?.label ?? agent.connection ?? "None")} · <a href="?view=settings">Configure</a></dd><dt>Readiness</dt><dd>${badge(readinessOf(agent))} ${esc(readiness?.reason ?? agent.last_test?.error ?? "")}</dd><dt>Last test</dt><dd>${esc(formatTime(readiness?.tested_at ?? agent.last_test?.tested_at))}</dd></dl><form method="post" action="/api/op" data-op="agent_test" data-success="reload" class="inline-form">${hidden("name", agent.name)}<details class="compact"><summary>Test timeout</summary><label>Wait (ms)<input type="number" name="wait_ms" data-number value="30000" min="0"></label></details>${submit("Run readiness test")}</form></section>`;
|
|
479
|
+
content = `<section class="card"><h2>Agent details</h2><dl class="details"><dt>Provider</dt><dd>${esc(settings.defaultProvider ?? "—")}</dd><dt>Model</dt><dd>${esc(settings.defaultModel ?? "—")}</dd><dt>Preset ID</dt><dd><code>${esc(agent.preset_id)}</code></dd><dt>Revision</dt><dd><code>${esc(rev)}</code></dd>${isSessionSwitch(switchPolicy) ? `<dt>Context redundancy tolerance</dt><dd>${sessionSwitchLabel(switchPolicy)}<small class="muted"> · ${sessionSwitchAdvice[switchPolicy]}</small></dd>` : ""}<dt>Connection</dt><dd>${esc(connections.find((c) => c.connection_id === agent.connection)?.label ?? agent.connection ?? "None")} · <a href="?view=settings">Configure</a></dd><dt>Readiness</dt><dd>${badge(readinessOf(agent))} ${esc(readiness?.reason ?? agent.last_test?.error ?? "")}</dd><dt>Last test</dt><dd>${esc(formatTime(readiness?.tested_at ?? agent.last_test?.tested_at))}</dd></dl><form method="post" action="/api/op" data-op="agent_test" data-success="reload" class="inline-form">${hidden("name", agent.name)}<details class="compact"><summary>Test timeout</summary><label>Wait (ms)<input type="number" name="wait_ms" data-number value="30000" min="0"></label></details>${submit("Run readiness test")}</form></section>`;
|
|
435
480
|
}
|
|
436
481
|
const startUrl = `/sessions?view=new&agent=${encodeURIComponent(agent.name)}`;
|
|
437
482
|
const body = `<a class="back" href="/agents">← Agents</a>
|
|
@@ -458,7 +503,7 @@ export function sessionsPage(sessions, agents, pages, filters = {}, view = "", h
|
|
|
458
503
|
names.add(filters.agent);
|
|
459
504
|
const choices = [...names].map(name => ({ name, detail: installed.has(name) ? undefined : "Not installed" }));
|
|
460
505
|
const body = `<header class="page-heading"><h1>Sessions</h1><div class="actions"><a class="primary-link" href="?view=new">New session</a></div></header>
|
|
461
|
-
<details class="drawer filter-drawer"${Object.keys(filters).length ? " open" : ""}><summary>Filter sessions</summary><form class="filters" method="get">${agentSelect(choices, "filter", filters.agent)}<label>Status<select name="status"><option value="">All</option>${["starting", "running", "waiting_input", "stopping", "idle", "dormant", "failed", "closed"].map((s) => `<option ${filters.status === s ? "selected" : ""}>${s}</option>`).join("")}</select></label><label>Task ID<input name="task_id" value="${esc(filters.task_id)}"></label><label>Station<input name="station" value="${esc(filters.station)}"></label><div class="filter-actions">${submit("Filter", "secondary")}<a href="/sessions">Clear</a></div></form></details>
|
|
506
|
+
<details class="drawer filter-drawer"${Object.keys(filters).length ? " open" : ""}><summary>Filter sessions</summary><form class="filters filters-four" method="get">${agentSelect(choices, "filter", filters.agent)}<label>Status<select name="status"><option value="">All</option>${["starting", "running", "waiting_input", "stopping", "idle", "dormant", "failed", "closed"].map((s) => `<option ${filters.status === s ? "selected" : ""}>${s}</option>`).join("")}</select></label><label>Task ID<input name="task_id" value="${esc(filters.task_id)}"></label><label>Station<input name="station" value="${esc(filters.station)}"></label><div class="filter-actions">${submit("Filter", "secondary")}<a href="/sessions">Clear</a></div></form></details>
|
|
462
507
|
<div id="session-list">${pages.list("page", "Sessions", sessions, sessionRows, "session-list")}</div>`;
|
|
463
508
|
return layout("Sessions", body, "sessions");
|
|
464
509
|
}
|
|
@@ -482,7 +527,23 @@ function toolArgumentsSummary(args) {
|
|
|
482
527
|
return compactText(args.code);
|
|
483
528
|
return compactText(JSON.stringify(args));
|
|
484
529
|
}
|
|
485
|
-
|
|
530
|
+
// Console chrome is fixed English (no i18n): it never follows LC_ALL/LANG, topic_language or the browser.
|
|
531
|
+
const thinkingLabels = { title: "Thinking", expand: "Expand all", collapse: "Collapse all" };
|
|
532
|
+
function thinkingChars(chars) { return `${chars.toLocaleString("en-US")} ${chars === 1 ? "char" : "chars"}`; }
|
|
533
|
+
function thinkingHtml(part, index, language) {
|
|
534
|
+
const heading = `<span class="tool-heading"><strong>${thinkingLabels.title}</strong></span>`;
|
|
535
|
+
const text = typeof part.text === "string" ? part.text : "";
|
|
536
|
+
const chars = Number(part.chars ?? part.original_chars ?? [...text].length);
|
|
537
|
+
const count = thinkingChars(Number.isFinite(chars) ? chars : 0);
|
|
538
|
+
if (part.redacted === true || part.omitted === true) {
|
|
539
|
+
const status = part.redacted === true ? "· redacted by provider" : `· omitted (${count})`;
|
|
540
|
+
return `<div class="tool-result session-thinking-placeholder" lang="${language}">${heading} <span class="tool-summary">${esc(status)}</span></div>`;
|
|
541
|
+
}
|
|
542
|
+
return `<details class="tool-result session-thinking" data-thinking-index="${index}" lang="${language}"><summary>${heading} <span class="tool-summary">${esc(`· ${count}`)}${part.truncated ? " · truncated" : ""}</span></summary><div class="tool-detail"><pre class="tool-output">${esc(text)}</pre></div></details>`;
|
|
543
|
+
}
|
|
544
|
+
function historyPartHtml(sessionId, part, toolOutput, index, language) {
|
|
545
|
+
if (part?.type === "thinking")
|
|
546
|
+
return thinkingHtml(part, index, language);
|
|
486
547
|
if (part?.type === "text")
|
|
487
548
|
return `<pre class="${toolOutput ? "tool-output" : "message-text"}">${esc(part.text)}</pre>`;
|
|
488
549
|
if (part?.type === "image_ref" && part.artifact_path)
|
|
@@ -493,11 +554,11 @@ function historyPartHtml(sessionId, part, toolOutput = false) {
|
|
|
493
554
|
}
|
|
494
555
|
return `<details><summary>${esc(part?.type ?? "content")}</summary><pre>${esc(JSON.stringify(part, null, 2))}</pre></details>`;
|
|
495
556
|
}
|
|
496
|
-
function historyContentHtml(sessionId, content, toolOutput = false) {
|
|
557
|
+
function historyContentHtml(sessionId, content, language, toolOutput = false) {
|
|
497
558
|
if (typeof content === "string")
|
|
498
559
|
return `<pre class="${toolOutput ? "tool-output" : "message-text"}">${esc(content)}</pre>`;
|
|
499
560
|
if (Array.isArray(content))
|
|
500
|
-
return content.map(part => historyPartHtml(sessionId, part, toolOutput)).join("");
|
|
561
|
+
return content.map((part, index) => historyPartHtml(sessionId, part, toolOutput, index, language)).join("");
|
|
501
562
|
if (content !== undefined)
|
|
502
563
|
return `<pre class="${toolOutput ? "tool-output" : ""}">${esc(JSON.stringify(content, null, 2))}</pre>`;
|
|
503
564
|
return "";
|
|
@@ -509,19 +570,19 @@ function toolResultText(content) {
|
|
|
509
570
|
return content === undefined ? "" : JSON.stringify(content);
|
|
510
571
|
return content.filter(part => part?.type === "text").map(part => part.text).join("\n");
|
|
511
572
|
}
|
|
512
|
-
function toolResultHtml(sessionId, entry) {
|
|
573
|
+
function toolResultHtml(sessionId, entry, language) {
|
|
513
574
|
const failed = Boolean(entry.is_error);
|
|
514
575
|
const output = toolResultText(entry.content);
|
|
515
576
|
const summary = compactText(output) || (failed ? "Tool reported an error" : "Result available");
|
|
516
|
-
return `<details class="tool-result${failed ? " failed" : ""}"><summary><span class="tool-heading"><code>${esc(entry.tool_name || "tool")}</code><span class="tool-status ${failed ? "failed" : "completed"}">${failed ? "Failed" : "Completed"}</span></span><span class="tool-summary">${esc(summary)}</span></summary><div class="tool-detail">${historyContentHtml(sessionId, entry.content, true) || '<pre class="tool-output">(empty result)</pre>'}</div></details>`;
|
|
577
|
+
return `<details class="tool-result${failed ? " failed" : ""}"><summary><span class="tool-heading"><code>${esc(entry.tool_name || "tool")}</code><span class="tool-status ${failed ? "failed" : "completed"}">${failed ? "Failed" : "Completed"}</span></span><span class="tool-summary">${esc(summary)}</span></summary><div class="tool-detail">${historyContentHtml(sessionId, entry.content, language, true) || '<pre class="tool-output">(empty result)</pre>'}</div></details>`;
|
|
517
578
|
}
|
|
518
|
-
export function sessionHistoryContent(sessionId, history) {
|
|
579
|
+
export function sessionHistoryContent(sessionId, history, language) {
|
|
519
580
|
return history.map((entry) => {
|
|
520
581
|
const role = entry.role ?? entry.type ?? "event";
|
|
521
|
-
let body = role === "toolResult" ? toolResultHtml(sessionId, entry) : historyContentHtml(sessionId, entry.content);
|
|
582
|
+
let body = role === "toolResult" ? toolResultHtml(sessionId, entry, language) : historyContentHtml(sessionId, entry.content, language);
|
|
522
583
|
if (!body && entry.summary)
|
|
523
584
|
body = `<pre class="message-text">${esc(entry.summary)}</pre>`;
|
|
524
|
-
const speaker = role === "user" ? "You" : role === "assistant" ? "Agent" : role === "toolResult" ? "Tool result" : role;
|
|
585
|
+
const speaker = role === "user" ? entry.origin === "cue" ? "Cue" : "You" : role === "assistant" ? "Agent" : role === "toolResult" ? "Tool result" : role;
|
|
525
586
|
return `<article class="message" data-entry-id="${esc(entry.id)}" data-role="${esc(role)}"><header><strong>${esc(speaker)}</strong><small>${esc(entry.id ?? "")} · ${esc(formatTime(entry.timestamp))}</small></header>${body}</article>`;
|
|
526
587
|
}).join("");
|
|
527
588
|
}
|
|
@@ -536,17 +597,19 @@ export function pendingPromptHtml(pending, sessionId) {
|
|
|
536
597
|
return `<form method="post" action="/api/op" data-op="session_reply" data-kind="reply-text"><h3>${esc(pending.title ?? "Input required")}</h3>${base}<label>Response<textarea name="text" required></textarea></label>${submit("Send response")}</form>`;
|
|
537
598
|
}
|
|
538
599
|
function usageBlock(usage) {
|
|
539
|
-
return `<div class="usage-grid">${["current_turn", "session_total", "task_total"].map((key) => `<div><h3>${esc(key.replaceAll("_", " "))}</h3><pre>${esc(JSON.stringify(usage?.[key] ?? {}, null, 2))}</pre></div>`).join("")}</div>`;
|
|
600
|
+
return `<div class="usage-grid">${["current_turn", "session_total", "task_total", ...(usage?.by_origin?.cue ? ["by_origin"] : [])].map((key) => `<div><h3>${esc(key.replaceAll("_", " "))}</h3><pre>${esc(JSON.stringify(usage?.[key] ?? {}, null, 2))}</pre></div>`).join("")}</div>`;
|
|
540
601
|
}
|
|
541
|
-
export function sessionDetailPage(sessionId, read, screen, isJaXon,
|
|
602
|
+
export function sessionDetailPage(sessionId, read, screen, isJaXon, language, cueTurn) {
|
|
603
|
+
const labels = thinkingLabels;
|
|
542
604
|
const body = `<a class="back" href="/sessions">← Sessions</a>
|
|
543
|
-
|
|
544
|
-
<
|
|
545
|
-
|
|
605
|
+
${cueTurn ? `<p class="banner">Cue turn <code>${esc(cueTurn)}</code> · <a href="/sessions/${encodeURIComponent(sessionId)}">Return to live session</a></p>` : ""}
|
|
606
|
+
<header class="page-heading"><div><h1>Session</h1><p><code>${esc(sessionId)}</code></p></div><span id="session-status">${badge(read.status)}</span></header>
|
|
607
|
+
<section id="conversation" data-cursor="${esc(read.cursor)}" data-before="${esc(read.history_before)}"${cueTurn ? ` data-cue-turn="${esc(cueTurn)}"` : ""}>
|
|
608
|
+
<div class="section-heading"><h2 id="conversation-heading">Conversation</h2><div class="actions"><button type="button" class="secondary" id="session-thinking-toggle" aria-controls="session-history" lang="en" data-expand="${labels.expand}" data-collapse="${labels.collapse}" hidden>${labels.expand}</button><button type="button" class="secondary" id="session-latest" hidden>Jump to latest</button></div></div>
|
|
546
609
|
<div id="session-scroll" role="region" aria-labelledby="conversation-heading" tabindex="0">
|
|
547
610
|
<button type="button" class="secondary" id="session-older"${read.history_before ? "" : " hidden"}>Load earlier messages</button>
|
|
548
611
|
<p class="empty" id="session-history-empty"${read.history.length ? " hidden" : ""}>No messages yet.</p>
|
|
549
|
-
<div id="session-history">${sessionHistoryContent(sessionId, read.history)}</div>
|
|
612
|
+
<div id="session-history">${sessionHistoryContent(sessionId, read.history, language)}</div>
|
|
550
613
|
</div>
|
|
551
614
|
</section>
|
|
552
615
|
${isJaXon ? `<button type="button" data-ask-jaxon="${esc(sessionId)}">Open in Ask JaXon</button>` : `<section class="card" id="pending-prompt"${read.pending_request ? "" : " hidden"}><h2>Pending prompt</h2><div id="pending-body" data-signature="${esc(JSON.stringify(read.pending_request || null))}">${pendingPromptHtml(read.pending_request, sessionId)}</div></section>
|
package/dist/console/server.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as path from "node:path";
|
|
|
4
4
|
import * as http from "node:http";
|
|
5
5
|
import { errorData } from "../ops/errors.js";
|
|
6
6
|
import { APP_JS, JAXON_LOGO_URL, STYLE_CSS } from "./assets.js";
|
|
7
|
+
import { CHAT_JS } from "./chat-library.js";
|
|
7
8
|
import { agentDetailPage, agentResourceRegions, agentsPage, connectionsPage, dashboardContent, dashboardPage, flowLiveRegions, flowPage, layout, sessionDetailPage, sessionHistoryContent, sessionsPage, simplePage, } from "./pages.js";
|
|
8
9
|
import { usagePage } from "./usage-page.js";
|
|
9
10
|
import { parseUsageQuery } from "./usage-range.js";
|
|
@@ -181,6 +182,10 @@ export class WebConsole {
|
|
|
181
182
|
send(response, 200, APP_JS, { "Content-Type": "text/javascript; charset=utf-8", "Cache-Control": "private, max-age=60" });
|
|
182
183
|
return;
|
|
183
184
|
}
|
|
185
|
+
if (method === "GET" && pathname === "/assets/jaxon-chat.js") {
|
|
186
|
+
send(response, 200, CHAT_JS, { "Content-Type": "text/javascript; charset=utf-8", "Cache-Control": "private, max-age=60" });
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
184
189
|
if (method === "GET" && pathname === JAXON_LOGO_URL) {
|
|
185
190
|
send(response, 200, this.logo, { "Content-Type": "image/svg+xml; charset=utf-8", "Cache-Control": "private, max-age=60" });
|
|
186
191
|
return;
|
|
@@ -189,6 +194,49 @@ export class WebConsole {
|
|
|
189
194
|
send(response, 204);
|
|
190
195
|
return;
|
|
191
196
|
}
|
|
197
|
+
if (pathname === "/api/overview/activity") {
|
|
198
|
+
if (method !== "GET") {
|
|
199
|
+
sendJson(response, 405, { error: { code: "METHOD_NOT_ALLOWED" } });
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
const abort = new AbortController();
|
|
203
|
+
const closed = () => abort.abort();
|
|
204
|
+
response.once("close", closed);
|
|
205
|
+
try {
|
|
206
|
+
const result = await this.ops.activityGraph.overview(url.searchParams.get("window") ?? "10m", url.searchParams.get("since") ?? undefined, Number(url.searchParams.get("wait_ms") ?? 0), abort.signal);
|
|
207
|
+
sendJson(response, 200, sanitize(result));
|
|
208
|
+
}
|
|
209
|
+
catch (error) {
|
|
210
|
+
const data = errorData(error);
|
|
211
|
+
sendJson(response, data.code === "INVALID_WINDOW" ? 400 : 500, { error: data });
|
|
212
|
+
}
|
|
213
|
+
finally {
|
|
214
|
+
response.off("close", closed);
|
|
215
|
+
}
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
const activityMatch = pathname.match(/^\/api\/stations\/([^/]+)\/activity$/);
|
|
219
|
+
if (activityMatch) {
|
|
220
|
+
if (method !== "GET") {
|
|
221
|
+
sendJson(response, 405, { error: { code: "METHOD_NOT_ALLOWED" } });
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
const abort = new AbortController();
|
|
225
|
+
const closed = () => abort.abort();
|
|
226
|
+
response.once("close", closed);
|
|
227
|
+
try {
|
|
228
|
+
const snapshot = await this.ops.activityGraph.snapshot(decodeSegment(activityMatch[1]), url.searchParams.get("window") ?? "10m", url.searchParams.get("since") ?? undefined, Number(url.searchParams.get("wait_ms") ?? 0), abort.signal);
|
|
229
|
+
sendJson(response, 200, sanitize(snapshot));
|
|
230
|
+
}
|
|
231
|
+
catch (error) {
|
|
232
|
+
const data = errorData(error);
|
|
233
|
+
sendJson(response, data.code === "STATION_NOT_FOUND" ? 404 : data.code === "INVALID_WINDOW" ? 400 : 500, { error: data });
|
|
234
|
+
}
|
|
235
|
+
finally {
|
|
236
|
+
response.off("close", closed);
|
|
237
|
+
}
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
192
240
|
if (pathname === "/api/op") {
|
|
193
241
|
await this.handleOperation(request, response);
|
|
194
242
|
return;
|
|
@@ -314,29 +362,31 @@ export class WebConsole {
|
|
|
314
362
|
if (sessionMatch) {
|
|
315
363
|
const id = decodeSegment(sessionMatch[1]);
|
|
316
364
|
const view = sessionMatch[2];
|
|
365
|
+
const language = /^zh(?:[-,;]|$)/i.test(request.headers["accept-language"]?.trim() ?? "") ? "zh-CN" : "en";
|
|
366
|
+
const turn = view !== "live" ? url.searchParams.get("turn") : null;
|
|
367
|
+
const atLeaf = turn ? this.ops.consoleCueTurnLeaf(id, turn) ?? undefined : undefined;
|
|
317
368
|
if (view === "history") {
|
|
318
369
|
const before = url.searchParams.get("before");
|
|
319
370
|
if (!before) {
|
|
320
371
|
sendJson(response, 400, { error: { code: "INVALID_PARAMS", message: "A history anchor is required." } });
|
|
321
372
|
return;
|
|
322
373
|
}
|
|
323
|
-
const { history, history_before, history_reset } = sanitize(this.ops.consoleSessionHistoryBefore(id, before));
|
|
324
|
-
sendJson(response, 200, { conversation: sessionHistoryContent(id, history), before: history_before, reset: history_reset });
|
|
374
|
+
const { history, history_before, history_reset } = sanitize(this.ops.consoleSessionHistoryBefore(id, before, atLeaf));
|
|
375
|
+
sendJson(response, 200, { conversation: sessionHistoryContent(id, history, language), before: history_before, reset: history_reset });
|
|
325
376
|
return;
|
|
326
377
|
}
|
|
327
378
|
const after = view === "live" ? url.searchParams.get("after") ?? undefined : undefined;
|
|
328
379
|
const screenPromise = this.execute("session_screen", { session_id: id }).catch(() => ({ screen: "", alive: false }));
|
|
329
380
|
const [read, screen] = await Promise.all([
|
|
330
|
-
this.ops.consoleSessionRead(id, after).then(data => sanitize(data)), screenPromise,
|
|
381
|
+
this.ops.consoleSessionRead(id, after, atLeaf).then(data => sanitize(data)), screenPromise,
|
|
331
382
|
]);
|
|
332
383
|
if (view === "live") {
|
|
333
384
|
const { history, ...state } = read;
|
|
334
|
-
sendJson(response, 200, { read: state, screen, conversation: sessionHistoryContent(id, history) });
|
|
385
|
+
sendJson(response, 200, { read: state, screen, conversation: sessionHistoryContent(id, history, language) });
|
|
335
386
|
}
|
|
336
387
|
else {
|
|
337
388
|
const meta = this.ops.supervisor.sessions.get(id)?.meta;
|
|
338
|
-
|
|
339
|
-
sendHtml(response, 200, sessionDetailPage(id, read, screen, meta?.agent === "JaXon", membership));
|
|
389
|
+
sendHtml(response, 200, sessionDetailPage(id, read, screen, meta?.agent === "JaXon", language, atLeaf ? turn : undefined));
|
|
340
390
|
}
|
|
341
391
|
return;
|
|
342
392
|
}
|
|
@@ -471,9 +521,9 @@ export class WebConsole {
|
|
|
471
521
|
void publish();
|
|
472
522
|
}
|
|
473
523
|
async stationCollections(station, view) {
|
|
474
|
-
const members = view === "members" ? (await this.execute("session_list", { station })).sessions.filter((m) => m.status !== "closed") : [];
|
|
524
|
+
const members = view === "members" || view === "overview" ? (await this.execute("session_list", { station })).sessions.filter((m) => m.status !== "closed") : [];
|
|
475
525
|
const boards = view === "boards" ? sanitize(this.ops.stationBoardSnapshot(station)) : [];
|
|
476
|
-
const presetNames = hasRosterControls(view) ? listPresets().map(({ name }) => name)
|
|
526
|
+
const presetNames = hasRosterControls(view) || view === "settings" ? listPresets().map(({ name }) => name)
|
|
477
527
|
.filter(name => name !== JAXON && name !== "master").sort((a, b) => a.localeCompare(b)) : [];
|
|
478
528
|
return { members, boards, presetNames };
|
|
479
529
|
}
|