@volter-ai-dev/supercode-ui 0.1.56 → 0.1.57
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/components.mjs +12 -16
- package/embed.mjs +12 -16
- package/messenger.mjs +12 -16
- package/package.json +1 -1
- package/react/components.mjs +12 -16
- package/react/messenger.mjs +12 -16
- package/react/sessions.mjs +3 -4
- package/react/subagents.mjs +9 -12
- package/sessions.mjs +3 -4
- package/subagents.mjs +9 -12
package/components.mjs
CHANGED
|
@@ -2366,11 +2366,10 @@ function SessionRow({ row, state, onOpen, onOpenSubagents, now = Date.now() }) {
|
|
|
2366
2366
|
state.attachError?.key === row.key ? /* @__PURE__ */ jsx8("em", { children: state.attachError.message }) : null
|
|
2367
2367
|
] })
|
|
2368
2368
|
] }),
|
|
2369
|
-
row.subagentCount ? /* @__PURE__ */ jsxs7("button", { className: "scui-session-agents", type: "button", "aria-label": `
|
|
2369
|
+
row.subagentCount ? /* @__PURE__ */ jsxs7("button", { className: "scui-session-agents", type: "button", "aria-label": `Open ${row.subagentCount} agent sessions in ${title}`, onClick: () => onOpenSubagents?.(row), children: [
|
|
2370
2370
|
/* @__PURE__ */ jsx8(UiIcon, { name: "agents", size: 14 }),
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
row.subagentCount === 1 ? "agent" : "agents"
|
|
2371
|
+
"Agents \xB7 ",
|
|
2372
|
+
row.subagentCount
|
|
2374
2373
|
] }) : null
|
|
2375
2374
|
] });
|
|
2376
2375
|
}
|
|
@@ -2450,7 +2449,6 @@ function SessionList({ state, adapter, onOpen, onOpenSubagents, onNew, onClose,
|
|
|
2450
2449
|
// src/subagents.jsx
|
|
2451
2450
|
import { useEffect as useEffect7, useRef as useRef6, useState as useState5 } from "preact/hooks";
|
|
2452
2451
|
import { jsx as jsx9, jsxs as jsxs8 } from "preact/jsx-runtime";
|
|
2453
|
-
var ATTENTION_ACTIVITY = /* @__PURE__ */ new Set(["needs-input", "failed", "unseen"]);
|
|
2454
2452
|
var ACTIVE_ACTIVITY = /* @__PURE__ */ new Set(["working", "running", "recent"]);
|
|
2455
2453
|
function activityLabel(activity, age) {
|
|
2456
2454
|
if (activity === "needs-input") return "Needs input";
|
|
@@ -2484,13 +2482,12 @@ function SubagentSection({ label, rows, inspector, adapter }) {
|
|
|
2484
2482
|
}
|
|
2485
2483
|
function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
2486
2484
|
const selected = inspector.items.find((row) => row.key === inspector.selectedKey) ?? null;
|
|
2487
|
-
const attention = inspector.items.filter((row) => ATTENTION_ACTIVITY.has(row.activity));
|
|
2488
2485
|
const active = inspector.items.filter((row) => ACTIVE_ACTIVITY.has(row.activity));
|
|
2489
|
-
const
|
|
2490
|
-
const [
|
|
2486
|
+
const history = inspector.items.filter((row) => !ACTIVE_ACTIVITY.has(row.activity));
|
|
2487
|
+
const [historyOpen, setHistoryOpen] = useState5(false);
|
|
2491
2488
|
const backButton = useRef6(null);
|
|
2492
2489
|
useEffect7(() => {
|
|
2493
|
-
if (inspector.status === "ready" && !
|
|
2490
|
+
if (inspector.status === "ready" && !active.length) setHistoryOpen(true);
|
|
2494
2491
|
}, [inspector.parentKey, inspector.status]);
|
|
2495
2492
|
useEffect7(() => {
|
|
2496
2493
|
backButton.current?.focus({ preventScroll: true });
|
|
@@ -2520,8 +2517,8 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2520
2517
|
/* @__PURE__ */ jsx9("button", { ref: backButton, type: "button", "aria-label": selected ? "Back to agents" : "Back to chats", onClick: back, children: /* @__PURE__ */ jsx9(UiIcon, { name: "back", size: 17 }) }),
|
|
2521
2518
|
selected ? /* @__PURE__ */ jsx9(HarnessLogo, { id: selected.harness, activity: selected.activity, size: 24 }) : /* @__PURE__ */ jsx9(UiIcon, { name: "agents", size: 20 }),
|
|
2522
2519
|
/* @__PURE__ */ jsxs8("span", { className: "scui-head-copy", children: [
|
|
2523
|
-
/* @__PURE__ */ jsx9("strong", { children: selected ? sessionDisplayName(selected) :
|
|
2524
|
-
/* @__PURE__ */ jsx9("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : inspector.parentTitle })
|
|
2520
|
+
/* @__PURE__ */ jsx9("strong", { children: selected ? sessionDisplayName(selected) : "Agents" }),
|
|
2521
|
+
/* @__PURE__ */ jsx9("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : `${inspector.items.length} ${inspector.items.length === 1 ? "session" : "sessions"} \xB7 ${inspector.parentTitle}` })
|
|
2525
2522
|
] })
|
|
2526
2523
|
] }),
|
|
2527
2524
|
inspector.status === "loading" ? /* @__PURE__ */ jsxs8("div", { className: "scui-subagents-loading", role: "status", children: [
|
|
@@ -2533,15 +2530,14 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2533
2530
|
] }) : null,
|
|
2534
2531
|
inspector.error ? /* @__PURE__ */ jsx9("div", { className: "scui-error", role: "alert", children: inspector.error }) : null,
|
|
2535
2532
|
!selected && inspector.status === "ready" && inspector.items.length ? /* @__PURE__ */ jsxs8("div", { className: "scui-subagent-rows", children: [
|
|
2536
|
-
/* @__PURE__ */ jsx9(SubagentSection, { label: "Needs attention", rows: attention, inspector, adapter }),
|
|
2537
2533
|
/* @__PURE__ */ jsx9(SubagentSection, { label: "Active", rows: active, inspector, adapter }),
|
|
2538
|
-
|
|
2534
|
+
history.length ? /* @__PURE__ */ jsxs8("details", { className: "scui-subagent-history", open: historyOpen, onToggle: (event) => setHistoryOpen(event.currentTarget.open), children: [
|
|
2539
2535
|
/* @__PURE__ */ jsxs8("summary", { children: [
|
|
2540
|
-
/* @__PURE__ */ jsx9("span", { children: "
|
|
2541
|
-
/* @__PURE__ */ jsx9("small", { children:
|
|
2536
|
+
/* @__PURE__ */ jsx9("span", { children: "History" }),
|
|
2537
|
+
/* @__PURE__ */ jsx9("small", { children: history.length }),
|
|
2542
2538
|
/* @__PURE__ */ jsx9(UiIcon, { name: "chevron", size: 14 })
|
|
2543
2539
|
] }),
|
|
2544
|
-
/* @__PURE__ */ jsx9("div", { children:
|
|
2540
|
+
/* @__PURE__ */ jsx9("div", { children: history.map((row) => /* @__PURE__ */ jsx9(SubagentRow, { row, inspector, adapter }, row.key)) })
|
|
2545
2541
|
] }) : null
|
|
2546
2542
|
] }) : null,
|
|
2547
2543
|
!selected && inspector.status === "ready" && !inspector.items.length ? /* @__PURE__ */ jsx9("div", { className: "scui-empty", children: "No native child sessions were found." }) : null,
|
package/embed.mjs
CHANGED
|
@@ -2283,11 +2283,10 @@ function SessionRow({ row, state, onOpen, onOpenSubagents, now = Date.now() }) {
|
|
|
2283
2283
|
state.attachError?.key === row.key ? /* @__PURE__ */ jsx7("em", { children: state.attachError.message }) : null
|
|
2284
2284
|
] })
|
|
2285
2285
|
] }),
|
|
2286
|
-
row.subagentCount ? /* @__PURE__ */ jsxs6("button", { className: "scui-session-agents", type: "button", "aria-label": `
|
|
2286
|
+
row.subagentCount ? /* @__PURE__ */ jsxs6("button", { className: "scui-session-agents", type: "button", "aria-label": `Open ${row.subagentCount} agent sessions in ${title}`, onClick: () => onOpenSubagents?.(row), children: [
|
|
2287
2287
|
/* @__PURE__ */ jsx7(UiIcon, { name: "agents", size: 14 }),
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
row.subagentCount === 1 ? "agent" : "agents"
|
|
2288
|
+
"Agents \xB7 ",
|
|
2289
|
+
row.subagentCount
|
|
2291
2290
|
] }) : null
|
|
2292
2291
|
] });
|
|
2293
2292
|
}
|
|
@@ -2367,7 +2366,6 @@ function SessionList({ state, adapter, onOpen, onOpenSubagents, onNew, onClose,
|
|
|
2367
2366
|
// src/subagents.jsx
|
|
2368
2367
|
import { useEffect as useEffect7, useRef as useRef6, useState as useState5 } from "preact/hooks";
|
|
2369
2368
|
import { jsx as jsx8, jsxs as jsxs7 } from "preact/jsx-runtime";
|
|
2370
|
-
var ATTENTION_ACTIVITY = /* @__PURE__ */ new Set(["needs-input", "failed", "unseen"]);
|
|
2371
2369
|
var ACTIVE_ACTIVITY = /* @__PURE__ */ new Set(["working", "running", "recent"]);
|
|
2372
2370
|
function activityLabel(activity, age) {
|
|
2373
2371
|
if (activity === "needs-input") return "Needs input";
|
|
@@ -2401,13 +2399,12 @@ function SubagentSection({ label, rows, inspector, adapter }) {
|
|
|
2401
2399
|
}
|
|
2402
2400
|
function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
2403
2401
|
const selected = inspector.items.find((row) => row.key === inspector.selectedKey) ?? null;
|
|
2404
|
-
const attention = inspector.items.filter((row) => ATTENTION_ACTIVITY.has(row.activity));
|
|
2405
2402
|
const active = inspector.items.filter((row) => ACTIVE_ACTIVITY.has(row.activity));
|
|
2406
|
-
const
|
|
2407
|
-
const [
|
|
2403
|
+
const history = inspector.items.filter((row) => !ACTIVE_ACTIVITY.has(row.activity));
|
|
2404
|
+
const [historyOpen, setHistoryOpen] = useState5(false);
|
|
2408
2405
|
const backButton = useRef6(null);
|
|
2409
2406
|
useEffect7(() => {
|
|
2410
|
-
if (inspector.status === "ready" && !
|
|
2407
|
+
if (inspector.status === "ready" && !active.length) setHistoryOpen(true);
|
|
2411
2408
|
}, [inspector.parentKey, inspector.status]);
|
|
2412
2409
|
useEffect7(() => {
|
|
2413
2410
|
backButton.current?.focus({ preventScroll: true });
|
|
@@ -2437,8 +2434,8 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2437
2434
|
/* @__PURE__ */ jsx8("button", { ref: backButton, type: "button", "aria-label": selected ? "Back to agents" : "Back to chats", onClick: back, children: /* @__PURE__ */ jsx8(UiIcon, { name: "back", size: 17 }) }),
|
|
2438
2435
|
selected ? /* @__PURE__ */ jsx8(HarnessLogo, { id: selected.harness, activity: selected.activity, size: 24 }) : /* @__PURE__ */ jsx8(UiIcon, { name: "agents", size: 20 }),
|
|
2439
2436
|
/* @__PURE__ */ jsxs7("span", { className: "scui-head-copy", children: [
|
|
2440
|
-
/* @__PURE__ */ jsx8("strong", { children: selected ? sessionDisplayName(selected) :
|
|
2441
|
-
/* @__PURE__ */ jsx8("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : inspector.parentTitle })
|
|
2437
|
+
/* @__PURE__ */ jsx8("strong", { children: selected ? sessionDisplayName(selected) : "Agents" }),
|
|
2438
|
+
/* @__PURE__ */ jsx8("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : `${inspector.items.length} ${inspector.items.length === 1 ? "session" : "sessions"} \xB7 ${inspector.parentTitle}` })
|
|
2442
2439
|
] })
|
|
2443
2440
|
] }),
|
|
2444
2441
|
inspector.status === "loading" ? /* @__PURE__ */ jsxs7("div", { className: "scui-subagents-loading", role: "status", children: [
|
|
@@ -2450,15 +2447,14 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2450
2447
|
] }) : null,
|
|
2451
2448
|
inspector.error ? /* @__PURE__ */ jsx8("div", { className: "scui-error", role: "alert", children: inspector.error }) : null,
|
|
2452
2449
|
!selected && inspector.status === "ready" && inspector.items.length ? /* @__PURE__ */ jsxs7("div", { className: "scui-subagent-rows", children: [
|
|
2453
|
-
/* @__PURE__ */ jsx8(SubagentSection, { label: "Needs attention", rows: attention, inspector, adapter }),
|
|
2454
2450
|
/* @__PURE__ */ jsx8(SubagentSection, { label: "Active", rows: active, inspector, adapter }),
|
|
2455
|
-
|
|
2451
|
+
history.length ? /* @__PURE__ */ jsxs7("details", { className: "scui-subagent-history", open: historyOpen, onToggle: (event) => setHistoryOpen(event.currentTarget.open), children: [
|
|
2456
2452
|
/* @__PURE__ */ jsxs7("summary", { children: [
|
|
2457
|
-
/* @__PURE__ */ jsx8("span", { children: "
|
|
2458
|
-
/* @__PURE__ */ jsx8("small", { children:
|
|
2453
|
+
/* @__PURE__ */ jsx8("span", { children: "History" }),
|
|
2454
|
+
/* @__PURE__ */ jsx8("small", { children: history.length }),
|
|
2459
2455
|
/* @__PURE__ */ jsx8(UiIcon, { name: "chevron", size: 14 })
|
|
2460
2456
|
] }),
|
|
2461
|
-
/* @__PURE__ */ jsx8("div", { children:
|
|
2457
|
+
/* @__PURE__ */ jsx8("div", { children: history.map((row) => /* @__PURE__ */ jsx8(SubagentRow, { row, inspector, adapter }, row.key)) })
|
|
2462
2458
|
] }) : null
|
|
2463
2459
|
] }) : null,
|
|
2464
2460
|
!selected && inspector.status === "ready" && !inspector.items.length ? /* @__PURE__ */ jsx8("div", { className: "scui-empty", children: "No native child sessions were found." }) : null,
|
package/messenger.mjs
CHANGED
|
@@ -2280,11 +2280,10 @@ function SessionRow({ row, state, onOpen, onOpenSubagents, now = Date.now() }) {
|
|
|
2280
2280
|
state.attachError?.key === row.key ? /* @__PURE__ */ jsx7("em", { children: state.attachError.message }) : null
|
|
2281
2281
|
] })
|
|
2282
2282
|
] }),
|
|
2283
|
-
row.subagentCount ? /* @__PURE__ */ jsxs6("button", { className: "scui-session-agents", type: "button", "aria-label": `
|
|
2283
|
+
row.subagentCount ? /* @__PURE__ */ jsxs6("button", { className: "scui-session-agents", type: "button", "aria-label": `Open ${row.subagentCount} agent sessions in ${title}`, onClick: () => onOpenSubagents?.(row), children: [
|
|
2284
2284
|
/* @__PURE__ */ jsx7(UiIcon, { name: "agents", size: 14 }),
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
row.subagentCount === 1 ? "agent" : "agents"
|
|
2285
|
+
"Agents \xB7 ",
|
|
2286
|
+
row.subagentCount
|
|
2288
2287
|
] }) : null
|
|
2289
2288
|
] });
|
|
2290
2289
|
}
|
|
@@ -2364,7 +2363,6 @@ function SessionList({ state, adapter, onOpen, onOpenSubagents, onNew, onClose,
|
|
|
2364
2363
|
// src/subagents.jsx
|
|
2365
2364
|
import { useEffect as useEffect7, useRef as useRef6, useState as useState5 } from "preact/hooks";
|
|
2366
2365
|
import { jsx as jsx8, jsxs as jsxs7 } from "preact/jsx-runtime";
|
|
2367
|
-
var ATTENTION_ACTIVITY = /* @__PURE__ */ new Set(["needs-input", "failed", "unseen"]);
|
|
2368
2366
|
var ACTIVE_ACTIVITY = /* @__PURE__ */ new Set(["working", "running", "recent"]);
|
|
2369
2367
|
function activityLabel(activity, age) {
|
|
2370
2368
|
if (activity === "needs-input") return "Needs input";
|
|
@@ -2398,13 +2396,12 @@ function SubagentSection({ label, rows, inspector, adapter }) {
|
|
|
2398
2396
|
}
|
|
2399
2397
|
function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
2400
2398
|
const selected = inspector.items.find((row) => row.key === inspector.selectedKey) ?? null;
|
|
2401
|
-
const attention = inspector.items.filter((row) => ATTENTION_ACTIVITY.has(row.activity));
|
|
2402
2399
|
const active = inspector.items.filter((row) => ACTIVE_ACTIVITY.has(row.activity));
|
|
2403
|
-
const
|
|
2404
|
-
const [
|
|
2400
|
+
const history = inspector.items.filter((row) => !ACTIVE_ACTIVITY.has(row.activity));
|
|
2401
|
+
const [historyOpen, setHistoryOpen] = useState5(false);
|
|
2405
2402
|
const backButton = useRef6(null);
|
|
2406
2403
|
useEffect7(() => {
|
|
2407
|
-
if (inspector.status === "ready" && !
|
|
2404
|
+
if (inspector.status === "ready" && !active.length) setHistoryOpen(true);
|
|
2408
2405
|
}, [inspector.parentKey, inspector.status]);
|
|
2409
2406
|
useEffect7(() => {
|
|
2410
2407
|
backButton.current?.focus({ preventScroll: true });
|
|
@@ -2434,8 +2431,8 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2434
2431
|
/* @__PURE__ */ jsx8("button", { ref: backButton, type: "button", "aria-label": selected ? "Back to agents" : "Back to chats", onClick: back, children: /* @__PURE__ */ jsx8(UiIcon, { name: "back", size: 17 }) }),
|
|
2435
2432
|
selected ? /* @__PURE__ */ jsx8(HarnessLogo, { id: selected.harness, activity: selected.activity, size: 24 }) : /* @__PURE__ */ jsx8(UiIcon, { name: "agents", size: 20 }),
|
|
2436
2433
|
/* @__PURE__ */ jsxs7("span", { className: "scui-head-copy", children: [
|
|
2437
|
-
/* @__PURE__ */ jsx8("strong", { children: selected ? sessionDisplayName(selected) :
|
|
2438
|
-
/* @__PURE__ */ jsx8("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : inspector.parentTitle })
|
|
2434
|
+
/* @__PURE__ */ jsx8("strong", { children: selected ? sessionDisplayName(selected) : "Agents" }),
|
|
2435
|
+
/* @__PURE__ */ jsx8("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : `${inspector.items.length} ${inspector.items.length === 1 ? "session" : "sessions"} \xB7 ${inspector.parentTitle}` })
|
|
2439
2436
|
] })
|
|
2440
2437
|
] }),
|
|
2441
2438
|
inspector.status === "loading" ? /* @__PURE__ */ jsxs7("div", { className: "scui-subagents-loading", role: "status", children: [
|
|
@@ -2447,15 +2444,14 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2447
2444
|
] }) : null,
|
|
2448
2445
|
inspector.error ? /* @__PURE__ */ jsx8("div", { className: "scui-error", role: "alert", children: inspector.error }) : null,
|
|
2449
2446
|
!selected && inspector.status === "ready" && inspector.items.length ? /* @__PURE__ */ jsxs7("div", { className: "scui-subagent-rows", children: [
|
|
2450
|
-
/* @__PURE__ */ jsx8(SubagentSection, { label: "Needs attention", rows: attention, inspector, adapter }),
|
|
2451
2447
|
/* @__PURE__ */ jsx8(SubagentSection, { label: "Active", rows: active, inspector, adapter }),
|
|
2452
|
-
|
|
2448
|
+
history.length ? /* @__PURE__ */ jsxs7("details", { className: "scui-subagent-history", open: historyOpen, onToggle: (event) => setHistoryOpen(event.currentTarget.open), children: [
|
|
2453
2449
|
/* @__PURE__ */ jsxs7("summary", { children: [
|
|
2454
|
-
/* @__PURE__ */ jsx8("span", { children: "
|
|
2455
|
-
/* @__PURE__ */ jsx8("small", { children:
|
|
2450
|
+
/* @__PURE__ */ jsx8("span", { children: "History" }),
|
|
2451
|
+
/* @__PURE__ */ jsx8("small", { children: history.length }),
|
|
2456
2452
|
/* @__PURE__ */ jsx8(UiIcon, { name: "chevron", size: 14 })
|
|
2457
2453
|
] }),
|
|
2458
|
-
/* @__PURE__ */ jsx8("div", { children:
|
|
2454
|
+
/* @__PURE__ */ jsx8("div", { children: history.map((row) => /* @__PURE__ */ jsx8(SubagentRow, { row, inspector, adapter }, row.key)) })
|
|
2459
2455
|
] }) : null
|
|
2460
2456
|
] }) : null,
|
|
2461
2457
|
!selected && inspector.status === "ready" && !inspector.items.length ? /* @__PURE__ */ jsx8("div", { className: "scui-empty", children: "No native child sessions were found." }) : null,
|
package/package.json
CHANGED
package/react/components.mjs
CHANGED
|
@@ -2366,11 +2366,10 @@ function SessionRow({ row, state, onOpen, onOpenSubagents, now = Date.now() }) {
|
|
|
2366
2366
|
state.attachError?.key === row.key ? /* @__PURE__ */ jsx8("em", { children: state.attachError.message }) : null
|
|
2367
2367
|
] })
|
|
2368
2368
|
] }),
|
|
2369
|
-
row.subagentCount ? /* @__PURE__ */ jsxs7("button", { className: "scui-session-agents", type: "button", "aria-label": `
|
|
2369
|
+
row.subagentCount ? /* @__PURE__ */ jsxs7("button", { className: "scui-session-agents", type: "button", "aria-label": `Open ${row.subagentCount} agent sessions in ${title}`, onClick: () => onOpenSubagents?.(row), children: [
|
|
2370
2370
|
/* @__PURE__ */ jsx8(UiIcon, { name: "agents", size: 14 }),
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
row.subagentCount === 1 ? "agent" : "agents"
|
|
2371
|
+
"Agents \xB7 ",
|
|
2372
|
+
row.subagentCount
|
|
2374
2373
|
] }) : null
|
|
2375
2374
|
] });
|
|
2376
2375
|
}
|
|
@@ -2450,7 +2449,6 @@ function SessionList({ state, adapter, onOpen, onOpenSubagents, onNew, onClose,
|
|
|
2450
2449
|
// src/subagents.jsx
|
|
2451
2450
|
import { useEffect as useEffect7, useRef as useRef6, useState as useState5 } from "react";
|
|
2452
2451
|
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2453
|
-
var ATTENTION_ACTIVITY = /* @__PURE__ */ new Set(["needs-input", "failed", "unseen"]);
|
|
2454
2452
|
var ACTIVE_ACTIVITY = /* @__PURE__ */ new Set(["working", "running", "recent"]);
|
|
2455
2453
|
function activityLabel(activity, age) {
|
|
2456
2454
|
if (activity === "needs-input") return "Needs input";
|
|
@@ -2484,13 +2482,12 @@ function SubagentSection({ label, rows, inspector, adapter }) {
|
|
|
2484
2482
|
}
|
|
2485
2483
|
function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
2486
2484
|
const selected = inspector.items.find((row) => row.key === inspector.selectedKey) ?? null;
|
|
2487
|
-
const attention = inspector.items.filter((row) => ATTENTION_ACTIVITY.has(row.activity));
|
|
2488
2485
|
const active = inspector.items.filter((row) => ACTIVE_ACTIVITY.has(row.activity));
|
|
2489
|
-
const
|
|
2490
|
-
const [
|
|
2486
|
+
const history = inspector.items.filter((row) => !ACTIVE_ACTIVITY.has(row.activity));
|
|
2487
|
+
const [historyOpen, setHistoryOpen] = useState5(false);
|
|
2491
2488
|
const backButton = useRef6(null);
|
|
2492
2489
|
useEffect7(() => {
|
|
2493
|
-
if (inspector.status === "ready" && !
|
|
2490
|
+
if (inspector.status === "ready" && !active.length) setHistoryOpen(true);
|
|
2494
2491
|
}, [inspector.parentKey, inspector.status]);
|
|
2495
2492
|
useEffect7(() => {
|
|
2496
2493
|
backButton.current?.focus({ preventScroll: true });
|
|
@@ -2520,8 +2517,8 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2520
2517
|
/* @__PURE__ */ jsx9("button", { ref: backButton, type: "button", "aria-label": selected ? "Back to agents" : "Back to chats", onClick: back, children: /* @__PURE__ */ jsx9(UiIcon, { name: "back", size: 17 }) }),
|
|
2521
2518
|
selected ? /* @__PURE__ */ jsx9(HarnessLogo, { id: selected.harness, activity: selected.activity, size: 24 }) : /* @__PURE__ */ jsx9(UiIcon, { name: "agents", size: 20 }),
|
|
2522
2519
|
/* @__PURE__ */ jsxs8("span", { className: "scui-head-copy", children: [
|
|
2523
|
-
/* @__PURE__ */ jsx9("strong", { children: selected ? sessionDisplayName(selected) :
|
|
2524
|
-
/* @__PURE__ */ jsx9("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : inspector.parentTitle })
|
|
2520
|
+
/* @__PURE__ */ jsx9("strong", { children: selected ? sessionDisplayName(selected) : "Agents" }),
|
|
2521
|
+
/* @__PURE__ */ jsx9("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : `${inspector.items.length} ${inspector.items.length === 1 ? "session" : "sessions"} \xB7 ${inspector.parentTitle}` })
|
|
2525
2522
|
] })
|
|
2526
2523
|
] }),
|
|
2527
2524
|
inspector.status === "loading" ? /* @__PURE__ */ jsxs8("div", { className: "scui-subagents-loading", role: "status", children: [
|
|
@@ -2533,15 +2530,14 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2533
2530
|
] }) : null,
|
|
2534
2531
|
inspector.error ? /* @__PURE__ */ jsx9("div", { className: "scui-error", role: "alert", children: inspector.error }) : null,
|
|
2535
2532
|
!selected && inspector.status === "ready" && inspector.items.length ? /* @__PURE__ */ jsxs8("div", { className: "scui-subagent-rows", children: [
|
|
2536
|
-
/* @__PURE__ */ jsx9(SubagentSection, { label: "Needs attention", rows: attention, inspector, adapter }),
|
|
2537
2533
|
/* @__PURE__ */ jsx9(SubagentSection, { label: "Active", rows: active, inspector, adapter }),
|
|
2538
|
-
|
|
2534
|
+
history.length ? /* @__PURE__ */ jsxs8("details", { className: "scui-subagent-history", open: historyOpen, onToggle: (event) => setHistoryOpen(event.currentTarget.open), children: [
|
|
2539
2535
|
/* @__PURE__ */ jsxs8("summary", { children: [
|
|
2540
|
-
/* @__PURE__ */ jsx9("span", { children: "
|
|
2541
|
-
/* @__PURE__ */ jsx9("small", { children:
|
|
2536
|
+
/* @__PURE__ */ jsx9("span", { children: "History" }),
|
|
2537
|
+
/* @__PURE__ */ jsx9("small", { children: history.length }),
|
|
2542
2538
|
/* @__PURE__ */ jsx9(UiIcon, { name: "chevron", size: 14 })
|
|
2543
2539
|
] }),
|
|
2544
|
-
/* @__PURE__ */ jsx9("div", { children:
|
|
2540
|
+
/* @__PURE__ */ jsx9("div", { children: history.map((row) => /* @__PURE__ */ jsx9(SubagentRow, { row, inspector, adapter }, row.key)) })
|
|
2545
2541
|
] }) : null
|
|
2546
2542
|
] }) : null,
|
|
2547
2543
|
!selected && inspector.status === "ready" && !inspector.items.length ? /* @__PURE__ */ jsx9("div", { className: "scui-empty", children: "No native child sessions were found." }) : null,
|
package/react/messenger.mjs
CHANGED
|
@@ -2280,11 +2280,10 @@ function SessionRow({ row, state, onOpen, onOpenSubagents, now = Date.now() }) {
|
|
|
2280
2280
|
state.attachError?.key === row.key ? /* @__PURE__ */ jsx7("em", { children: state.attachError.message }) : null
|
|
2281
2281
|
] })
|
|
2282
2282
|
] }),
|
|
2283
|
-
row.subagentCount ? /* @__PURE__ */ jsxs6("button", { className: "scui-session-agents", type: "button", "aria-label": `
|
|
2283
|
+
row.subagentCount ? /* @__PURE__ */ jsxs6("button", { className: "scui-session-agents", type: "button", "aria-label": `Open ${row.subagentCount} agent sessions in ${title}`, onClick: () => onOpenSubagents?.(row), children: [
|
|
2284
2284
|
/* @__PURE__ */ jsx7(UiIcon, { name: "agents", size: 14 }),
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
row.subagentCount === 1 ? "agent" : "agents"
|
|
2285
|
+
"Agents \xB7 ",
|
|
2286
|
+
row.subagentCount
|
|
2288
2287
|
] }) : null
|
|
2289
2288
|
] });
|
|
2290
2289
|
}
|
|
@@ -2364,7 +2363,6 @@ function SessionList({ state, adapter, onOpen, onOpenSubagents, onNew, onClose,
|
|
|
2364
2363
|
// src/subagents.jsx
|
|
2365
2364
|
import { useEffect as useEffect7, useRef as useRef6, useState as useState5 } from "react";
|
|
2366
2365
|
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2367
|
-
var ATTENTION_ACTIVITY = /* @__PURE__ */ new Set(["needs-input", "failed", "unseen"]);
|
|
2368
2366
|
var ACTIVE_ACTIVITY = /* @__PURE__ */ new Set(["working", "running", "recent"]);
|
|
2369
2367
|
function activityLabel(activity, age) {
|
|
2370
2368
|
if (activity === "needs-input") return "Needs input";
|
|
@@ -2398,13 +2396,12 @@ function SubagentSection({ label, rows, inspector, adapter }) {
|
|
|
2398
2396
|
}
|
|
2399
2397
|
function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
2400
2398
|
const selected = inspector.items.find((row) => row.key === inspector.selectedKey) ?? null;
|
|
2401
|
-
const attention = inspector.items.filter((row) => ATTENTION_ACTIVITY.has(row.activity));
|
|
2402
2399
|
const active = inspector.items.filter((row) => ACTIVE_ACTIVITY.has(row.activity));
|
|
2403
|
-
const
|
|
2404
|
-
const [
|
|
2400
|
+
const history = inspector.items.filter((row) => !ACTIVE_ACTIVITY.has(row.activity));
|
|
2401
|
+
const [historyOpen, setHistoryOpen] = useState5(false);
|
|
2405
2402
|
const backButton = useRef6(null);
|
|
2406
2403
|
useEffect7(() => {
|
|
2407
|
-
if (inspector.status === "ready" && !
|
|
2404
|
+
if (inspector.status === "ready" && !active.length) setHistoryOpen(true);
|
|
2408
2405
|
}, [inspector.parentKey, inspector.status]);
|
|
2409
2406
|
useEffect7(() => {
|
|
2410
2407
|
backButton.current?.focus({ preventScroll: true });
|
|
@@ -2434,8 +2431,8 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2434
2431
|
/* @__PURE__ */ jsx8("button", { ref: backButton, type: "button", "aria-label": selected ? "Back to agents" : "Back to chats", onClick: back, children: /* @__PURE__ */ jsx8(UiIcon, { name: "back", size: 17 }) }),
|
|
2435
2432
|
selected ? /* @__PURE__ */ jsx8(HarnessLogo, { id: selected.harness, activity: selected.activity, size: 24 }) : /* @__PURE__ */ jsx8(UiIcon, { name: "agents", size: 20 }),
|
|
2436
2433
|
/* @__PURE__ */ jsxs7("span", { className: "scui-head-copy", children: [
|
|
2437
|
-
/* @__PURE__ */ jsx8("strong", { children: selected ? sessionDisplayName(selected) :
|
|
2438
|
-
/* @__PURE__ */ jsx8("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : inspector.parentTitle })
|
|
2434
|
+
/* @__PURE__ */ jsx8("strong", { children: selected ? sessionDisplayName(selected) : "Agents" }),
|
|
2435
|
+
/* @__PURE__ */ jsx8("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : `${inspector.items.length} ${inspector.items.length === 1 ? "session" : "sessions"} \xB7 ${inspector.parentTitle}` })
|
|
2439
2436
|
] })
|
|
2440
2437
|
] }),
|
|
2441
2438
|
inspector.status === "loading" ? /* @__PURE__ */ jsxs7("div", { className: "scui-subagents-loading", role: "status", children: [
|
|
@@ -2447,15 +2444,14 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
2447
2444
|
] }) : null,
|
|
2448
2445
|
inspector.error ? /* @__PURE__ */ jsx8("div", { className: "scui-error", role: "alert", children: inspector.error }) : null,
|
|
2449
2446
|
!selected && inspector.status === "ready" && inspector.items.length ? /* @__PURE__ */ jsxs7("div", { className: "scui-subagent-rows", children: [
|
|
2450
|
-
/* @__PURE__ */ jsx8(SubagentSection, { label: "Needs attention", rows: attention, inspector, adapter }),
|
|
2451
2447
|
/* @__PURE__ */ jsx8(SubagentSection, { label: "Active", rows: active, inspector, adapter }),
|
|
2452
|
-
|
|
2448
|
+
history.length ? /* @__PURE__ */ jsxs7("details", { className: "scui-subagent-history", open: historyOpen, onToggle: (event) => setHistoryOpen(event.currentTarget.open), children: [
|
|
2453
2449
|
/* @__PURE__ */ jsxs7("summary", { children: [
|
|
2454
|
-
/* @__PURE__ */ jsx8("span", { children: "
|
|
2455
|
-
/* @__PURE__ */ jsx8("small", { children:
|
|
2450
|
+
/* @__PURE__ */ jsx8("span", { children: "History" }),
|
|
2451
|
+
/* @__PURE__ */ jsx8("small", { children: history.length }),
|
|
2456
2452
|
/* @__PURE__ */ jsx8(UiIcon, { name: "chevron", size: 14 })
|
|
2457
2453
|
] }),
|
|
2458
|
-
/* @__PURE__ */ jsx8("div", { children:
|
|
2454
|
+
/* @__PURE__ */ jsx8("div", { children: history.map((row) => /* @__PURE__ */ jsx8(SubagentRow, { row, inspector, adapter }, row.key)) })
|
|
2459
2455
|
] }) : null
|
|
2460
2456
|
] }) : null,
|
|
2461
2457
|
!selected && inspector.status === "ready" && !inspector.items.length ? /* @__PURE__ */ jsx8("div", { className: "scui-empty", children: "No native child sessions were found." }) : null,
|
package/react/sessions.mjs
CHANGED
|
@@ -372,11 +372,10 @@ function SessionRow({ row, state, onOpen, onOpenSubagents, now = Date.now() }) {
|
|
|
372
372
|
state.attachError?.key === row.key ? /* @__PURE__ */ jsx6("em", { children: state.attachError.message }) : null
|
|
373
373
|
] })
|
|
374
374
|
] }),
|
|
375
|
-
row.subagentCount ? /* @__PURE__ */ jsxs5("button", { className: "scui-session-agents", type: "button", "aria-label": `
|
|
375
|
+
row.subagentCount ? /* @__PURE__ */ jsxs5("button", { className: "scui-session-agents", type: "button", "aria-label": `Open ${row.subagentCount} agent sessions in ${title}`, onClick: () => onOpenSubagents?.(row), children: [
|
|
376
376
|
/* @__PURE__ */ jsx6(UiIcon, { name: "agents", size: 14 }),
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
row.subagentCount === 1 ? "agent" : "agents"
|
|
377
|
+
"Agents \xB7 ",
|
|
378
|
+
row.subagentCount
|
|
380
379
|
] }) : null
|
|
381
380
|
] });
|
|
382
381
|
}
|
package/react/subagents.mjs
CHANGED
|
@@ -1405,7 +1405,6 @@ function HarnessLogo({ id, activity, size = 28, onMissingLogo }) {
|
|
|
1405
1405
|
|
|
1406
1406
|
// src/subagents.jsx
|
|
1407
1407
|
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1408
|
-
var ATTENTION_ACTIVITY = /* @__PURE__ */ new Set(["needs-input", "failed", "unseen"]);
|
|
1409
1408
|
var ACTIVE_ACTIVITY = /* @__PURE__ */ new Set(["working", "running", "recent"]);
|
|
1410
1409
|
function activityLabel(activity, age) {
|
|
1411
1410
|
if (activity === "needs-input") return "Needs input";
|
|
@@ -1439,13 +1438,12 @@ function SubagentSection({ label, rows, inspector, adapter }) {
|
|
|
1439
1438
|
}
|
|
1440
1439
|
function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
1441
1440
|
const selected = inspector.items.find((row) => row.key === inspector.selectedKey) ?? null;
|
|
1442
|
-
const attention = inspector.items.filter((row) => ATTENTION_ACTIVITY.has(row.activity));
|
|
1443
1441
|
const active = inspector.items.filter((row) => ACTIVE_ACTIVITY.has(row.activity));
|
|
1444
|
-
const
|
|
1445
|
-
const [
|
|
1442
|
+
const history = inspector.items.filter((row) => !ACTIVE_ACTIVITY.has(row.activity));
|
|
1443
|
+
const [historyOpen, setHistoryOpen] = useState3(false);
|
|
1446
1444
|
const backButton = useRef4(null);
|
|
1447
1445
|
useEffect5(() => {
|
|
1448
|
-
if (inspector.status === "ready" && !
|
|
1446
|
+
if (inspector.status === "ready" && !active.length) setHistoryOpen(true);
|
|
1449
1447
|
}, [inspector.parentKey, inspector.status]);
|
|
1450
1448
|
useEffect5(() => {
|
|
1451
1449
|
backButton.current?.focus({ preventScroll: true });
|
|
@@ -1475,8 +1473,8 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
1475
1473
|
/* @__PURE__ */ jsx6("button", { ref: backButton, type: "button", "aria-label": selected ? "Back to agents" : "Back to chats", onClick: back, children: /* @__PURE__ */ jsx6(UiIcon, { name: "back", size: 17 }) }),
|
|
1476
1474
|
selected ? /* @__PURE__ */ jsx6(HarnessLogo, { id: selected.harness, activity: selected.activity, size: 24 }) : /* @__PURE__ */ jsx6(UiIcon, { name: "agents", size: 20 }),
|
|
1477
1475
|
/* @__PURE__ */ jsxs5("span", { className: "scui-head-copy", children: [
|
|
1478
|
-
/* @__PURE__ */ jsx6("strong", { children: selected ? sessionDisplayName(selected) :
|
|
1479
|
-
/* @__PURE__ */ jsx6("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : inspector.parentTitle })
|
|
1476
|
+
/* @__PURE__ */ jsx6("strong", { children: selected ? sessionDisplayName(selected) : "Agents" }),
|
|
1477
|
+
/* @__PURE__ */ jsx6("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : `${inspector.items.length} ${inspector.items.length === 1 ? "session" : "sessions"} \xB7 ${inspector.parentTitle}` })
|
|
1480
1478
|
] })
|
|
1481
1479
|
] }),
|
|
1482
1480
|
inspector.status === "loading" ? /* @__PURE__ */ jsxs5("div", { className: "scui-subagents-loading", role: "status", children: [
|
|
@@ -1488,15 +1486,14 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
1488
1486
|
] }) : null,
|
|
1489
1487
|
inspector.error ? /* @__PURE__ */ jsx6("div", { className: "scui-error", role: "alert", children: inspector.error }) : null,
|
|
1490
1488
|
!selected && inspector.status === "ready" && inspector.items.length ? /* @__PURE__ */ jsxs5("div", { className: "scui-subagent-rows", children: [
|
|
1491
|
-
/* @__PURE__ */ jsx6(SubagentSection, { label: "Needs attention", rows: attention, inspector, adapter }),
|
|
1492
1489
|
/* @__PURE__ */ jsx6(SubagentSection, { label: "Active", rows: active, inspector, adapter }),
|
|
1493
|
-
|
|
1490
|
+
history.length ? /* @__PURE__ */ jsxs5("details", { className: "scui-subagent-history", open: historyOpen, onToggle: (event) => setHistoryOpen(event.currentTarget.open), children: [
|
|
1494
1491
|
/* @__PURE__ */ jsxs5("summary", { children: [
|
|
1495
|
-
/* @__PURE__ */ jsx6("span", { children: "
|
|
1496
|
-
/* @__PURE__ */ jsx6("small", { children:
|
|
1492
|
+
/* @__PURE__ */ jsx6("span", { children: "History" }),
|
|
1493
|
+
/* @__PURE__ */ jsx6("small", { children: history.length }),
|
|
1497
1494
|
/* @__PURE__ */ jsx6(UiIcon, { name: "chevron", size: 14 })
|
|
1498
1495
|
] }),
|
|
1499
|
-
/* @__PURE__ */ jsx6("div", { children:
|
|
1496
|
+
/* @__PURE__ */ jsx6("div", { children: history.map((row) => /* @__PURE__ */ jsx6(SubagentRow, { row, inspector, adapter }, row.key)) })
|
|
1500
1497
|
] }) : null
|
|
1501
1498
|
] }) : null,
|
|
1502
1499
|
!selected && inspector.status === "ready" && !inspector.items.length ? /* @__PURE__ */ jsx6("div", { className: "scui-empty", children: "No native child sessions were found." }) : null,
|
package/sessions.mjs
CHANGED
|
@@ -372,11 +372,10 @@ function SessionRow({ row, state, onOpen, onOpenSubagents, now = Date.now() }) {
|
|
|
372
372
|
state.attachError?.key === row.key ? /* @__PURE__ */ jsx6("em", { children: state.attachError.message }) : null
|
|
373
373
|
] })
|
|
374
374
|
] }),
|
|
375
|
-
row.subagentCount ? /* @__PURE__ */ jsxs5("button", { className: "scui-session-agents", type: "button", "aria-label": `
|
|
375
|
+
row.subagentCount ? /* @__PURE__ */ jsxs5("button", { className: "scui-session-agents", type: "button", "aria-label": `Open ${row.subagentCount} agent sessions in ${title}`, onClick: () => onOpenSubagents?.(row), children: [
|
|
376
376
|
/* @__PURE__ */ jsx6(UiIcon, { name: "agents", size: 14 }),
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
row.subagentCount === 1 ? "agent" : "agents"
|
|
377
|
+
"Agents \xB7 ",
|
|
378
|
+
row.subagentCount
|
|
380
379
|
] }) : null
|
|
381
380
|
] });
|
|
382
381
|
}
|
package/subagents.mjs
CHANGED
|
@@ -1405,7 +1405,6 @@ function HarnessLogo({ id, activity, size = 28, onMissingLogo }) {
|
|
|
1405
1405
|
|
|
1406
1406
|
// src/subagents.jsx
|
|
1407
1407
|
import { jsx as jsx6, jsxs as jsxs5 } from "preact/jsx-runtime";
|
|
1408
|
-
var ATTENTION_ACTIVITY = /* @__PURE__ */ new Set(["needs-input", "failed", "unseen"]);
|
|
1409
1408
|
var ACTIVE_ACTIVITY = /* @__PURE__ */ new Set(["working", "running", "recent"]);
|
|
1410
1409
|
function activityLabel(activity, age) {
|
|
1411
1410
|
if (activity === "needs-input") return "Needs input";
|
|
@@ -1439,13 +1438,12 @@ function SubagentSection({ label, rows, inspector, adapter }) {
|
|
|
1439
1438
|
}
|
|
1440
1439
|
function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
1441
1440
|
const selected = inspector.items.find((row) => row.key === inspector.selectedKey) ?? null;
|
|
1442
|
-
const attention = inspector.items.filter((row) => ATTENTION_ACTIVITY.has(row.activity));
|
|
1443
1441
|
const active = inspector.items.filter((row) => ACTIVE_ACTIVITY.has(row.activity));
|
|
1444
|
-
const
|
|
1445
|
-
const [
|
|
1442
|
+
const history = inspector.items.filter((row) => !ACTIVE_ACTIVITY.has(row.activity));
|
|
1443
|
+
const [historyOpen, setHistoryOpen] = useState3(false);
|
|
1446
1444
|
const backButton = useRef4(null);
|
|
1447
1445
|
useEffect5(() => {
|
|
1448
|
-
if (inspector.status === "ready" && !
|
|
1446
|
+
if (inspector.status === "ready" && !active.length) setHistoryOpen(true);
|
|
1449
1447
|
}, [inspector.parentKey, inspector.status]);
|
|
1450
1448
|
useEffect5(() => {
|
|
1451
1449
|
backButton.current?.focus({ preventScroll: true });
|
|
@@ -1475,8 +1473,8 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
1475
1473
|
/* @__PURE__ */ jsx6("button", { ref: backButton, type: "button", "aria-label": selected ? "Back to agents" : "Back to chats", onClick: back, children: /* @__PURE__ */ jsx6(UiIcon, { name: "back", size: 17 }) }),
|
|
1476
1474
|
selected ? /* @__PURE__ */ jsx6(HarnessLogo, { id: selected.harness, activity: selected.activity, size: 24 }) : /* @__PURE__ */ jsx6(UiIcon, { name: "agents", size: 20 }),
|
|
1477
1475
|
/* @__PURE__ */ jsxs5("span", { className: "scui-head-copy", children: [
|
|
1478
|
-
/* @__PURE__ */ jsx6("strong", { children: selected ? sessionDisplayName(selected) :
|
|
1479
|
-
/* @__PURE__ */ jsx6("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : inspector.parentTitle })
|
|
1476
|
+
/* @__PURE__ */ jsx6("strong", { children: selected ? sessionDisplayName(selected) : "Agents" }),
|
|
1477
|
+
/* @__PURE__ */ jsx6("small", { children: selected ? `${harnessDisplayName(selected.harness)} \xB7 Read-only` : `${inspector.items.length} ${inspector.items.length === 1 ? "session" : "sessions"} \xB7 ${inspector.parentTitle}` })
|
|
1480
1478
|
] })
|
|
1481
1479
|
] }),
|
|
1482
1480
|
inspector.status === "loading" ? /* @__PURE__ */ jsxs5("div", { className: "scui-subagents-loading", role: "status", children: [
|
|
@@ -1488,15 +1486,14 @@ function SubagentInspectorContent({ state, adapter, onClose, inspector }) {
|
|
|
1488
1486
|
] }) : null,
|
|
1489
1487
|
inspector.error ? /* @__PURE__ */ jsx6("div", { className: "scui-error", role: "alert", children: inspector.error }) : null,
|
|
1490
1488
|
!selected && inspector.status === "ready" && inspector.items.length ? /* @__PURE__ */ jsxs5("div", { className: "scui-subagent-rows", children: [
|
|
1491
|
-
/* @__PURE__ */ jsx6(SubagentSection, { label: "Needs attention", rows: attention, inspector, adapter }),
|
|
1492
1489
|
/* @__PURE__ */ jsx6(SubagentSection, { label: "Active", rows: active, inspector, adapter }),
|
|
1493
|
-
|
|
1490
|
+
history.length ? /* @__PURE__ */ jsxs5("details", { className: "scui-subagent-history", open: historyOpen, onToggle: (event) => setHistoryOpen(event.currentTarget.open), children: [
|
|
1494
1491
|
/* @__PURE__ */ jsxs5("summary", { children: [
|
|
1495
|
-
/* @__PURE__ */ jsx6("span", { children: "
|
|
1496
|
-
/* @__PURE__ */ jsx6("small", { children:
|
|
1492
|
+
/* @__PURE__ */ jsx6("span", { children: "History" }),
|
|
1493
|
+
/* @__PURE__ */ jsx6("small", { children: history.length }),
|
|
1497
1494
|
/* @__PURE__ */ jsx6(UiIcon, { name: "chevron", size: 14 })
|
|
1498
1495
|
] }),
|
|
1499
|
-
/* @__PURE__ */ jsx6("div", { children:
|
|
1496
|
+
/* @__PURE__ */ jsx6("div", { children: history.map((row) => /* @__PURE__ */ jsx6(SubagentRow, { row, inspector, adapter }, row.key)) })
|
|
1500
1497
|
] }) : null
|
|
1501
1498
|
] }) : null,
|
|
1502
1499
|
!selected && inspector.status === "ready" && !inspector.items.length ? /* @__PURE__ */ jsx6("div", { className: "scui-empty", children: "No native child sessions were found." }) : null,
|