anentrypoint-design 1.0.18 → 1.0.19
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anentrypoint-design",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/247420.js",
|
|
@@ -94,13 +94,24 @@ export function makeCorePages(ctx) {
|
|
|
94
94
|
},
|
|
95
95
|
async agents(h0) {
|
|
96
96
|
const a = (typeof h0.pi.agents === 'function') ? await h0.pi.agents() : { count: 0, turns: 0, active: null };
|
|
97
|
+
const subagents = (h0.pi.subagents && typeof h0.pi.subagents.list === 'function') ? await h0.pi.subagents.list() : [];
|
|
98
|
+
const sorted = [...subagents].sort((x, y) => String(y.created_at || '').localeCompare(String(x.created_at || '')));
|
|
99
|
+
const rows = sorted.map(s => Row({
|
|
100
|
+
key: s.agent_id,
|
|
101
|
+
code: s.status === 'completed' ? Icon('circle-dot') : s.status === 'running' ? Icon('circle') : Icon('circle'),
|
|
102
|
+
title: `${s.agent_id} [${s.status}]`,
|
|
103
|
+
meta: `${s.subagent_type || '?'} · depth ${s.depth ?? '?'} · ${s.description || (s.task || '').slice(0, 60)}`,
|
|
104
|
+
}));
|
|
97
105
|
return [
|
|
98
|
-
Kpi({ items: [[a.count || 0, 'active'], [a.turns || 0, 'turns']] }),
|
|
106
|
+
Kpi({ items: [[a.count || 0, 'active'], [a.turns || 0, 'turns'], [subagents.length, 'subagents']] }),
|
|
99
107
|
Panel({ title: 'agent overview', children: Receipt({ rows: [
|
|
100
108
|
['total turns', String(a.turns || 0)],
|
|
101
109
|
['active session', a.active || '—'],
|
|
102
110
|
['last activity', a.last_activity ? new Date(a.last_activity).toLocaleString() : '—'],
|
|
103
111
|
] }) }),
|
|
112
|
+
Panel({ title: 'subagents (fan-out)', count: rows.length, children: rows.length === 0
|
|
113
|
+
? EmptyState({ text: 'no subagents yet — agent_swarm/delegate spawns appear here live', glyph: Icon('members') })
|
|
114
|
+
: h('div', null, rows) }),
|
|
104
115
|
];
|
|
105
116
|
},
|
|
106
117
|
async logs(h0) {
|