@double_geste/agent-standup 1.33.0 → 1.34.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/package.json +1 -1
- package/public/index.html +1 -1
- package/public/locales/da.json +1 -0
- package/public/locales/de.json +1 -0
- package/public/locales/en.json +1 -0
- package/public/locales/es.json +1 -0
- package/public/locales/ja.json +1 -0
- package/public/locales/ko.json +1 -0
- package/public/locales/pt-BR.json +1 -0
- package/public/locales/zh-CN.json +1 -0
- package/public/locales/zh-TW.json +1 -0
- package/server.js +15 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@double_geste/agent-standup",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "Your Claude Code, Codex and Mistral Vibe agents as a live video call, from the terminal: a local page in your browser, plus one-line status for status bars. Free, open source, zero token cost.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"agent-standup": "bin/agent-standup.js"
|
package/public/index.html
CHANGED
|
@@ -1465,7 +1465,7 @@ function activityLabel(t) { // the short "what is on their screen" tag
|
|
|
1465
1465
|
case 'grep': return L('Cherche « ', 'Searching “') + String(d.pattern || '').slice(0, 22) + L(' »', '”');
|
|
1466
1466
|
case 'glob': return L('Liste ', 'Listing ') + String(d.pattern || '').slice(0, 24);
|
|
1467
1467
|
case 'todo': return L('Met à jour sa todo', 'Updating todo list');
|
|
1468
|
-
case 'artifact': return L('Publie ', 'Publishing ') + (d.title || f).slice(0, 30);
|
|
1468
|
+
case 'artifact': return (d.open ? L('Montre ', 'Showing ') : d.doc ? L('Crée ', 'Writing ') : L('Publie ', 'Publishing ')) + (d.title || (d.open ? 'Artifact' : f)).slice(0, 30);
|
|
1469
1469
|
case 'web': return d.url ? L('Consulte ', 'Fetching ') + d.url.replace(/^https?:\/\//, '').slice(0, 26) : L('Recherche sur le web', 'Web search');
|
|
1470
1470
|
case 'text': { const w = d.what; if (w === 'question') return L('Pose une question', 'Asking a question'); if (w === 'skill') return L('Utilise ', 'Using skill ') + (d.v || ''); if (w === 'mcp') return d.v || t.name; if (w === 'toolsearch') return L('Cherche un outil', 'Looking for a tool'); return t.name; }
|
|
1471
1471
|
default: return t.name;
|
package/public/locales/da.json
CHANGED
|
@@ -250,6 +250,7 @@
|
|
|
250
250
|
"No preview here: the page is on claude.ai": "Ingen forhåndsvisning her: siden ligger på claude.ai",
|
|
251
251
|
"Open on claude.ai": "Åbn på claude.ai",
|
|
252
252
|
"Publishing ": "Udgiver ",
|
|
253
|
+
"Showing ": "Viser ",
|
|
253
254
|
"This page uses libraries kept on other servers: they are loaded only if you ask": "Denne side bruger biblioteker, der ligger på andre servere: de indlæses kun, hvis du beder om det",
|
|
254
255
|
"Mark as done": "Markér som færdig",
|
|
255
256
|
"Open the pull request": "Åbn pull requesten",
|
package/public/locales/de.json
CHANGED
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
"No preview here: the page is on claude.ai": "Keine Vorschau hier: Die Seite liegt auf claude.ai",
|
|
252
252
|
"Open on claude.ai": "Auf claude.ai öffnen",
|
|
253
253
|
"Publishing ": "Veröffentliche ",
|
|
254
|
+
"Showing ": "Zeige ",
|
|
254
255
|
"This page uses libraries kept on other servers: they are loaded only if you ask": "Diese Seite nutzt Bibliotheken von anderen Servern: Sie werden nur geladen, wenn Sie es verlangen",
|
|
255
256
|
"Mark as done": "Als erledigt markieren",
|
|
256
257
|
"Open the pull request": "Pull Request öffnen",
|
package/public/locales/en.json
CHANGED
|
@@ -175,6 +175,7 @@
|
|
|
175
175
|
"Project to follow": "Project to follow",
|
|
176
176
|
"Prompt from": "Prompt from",
|
|
177
177
|
"Publishing ": "Publishing ",
|
|
178
|
+
"Showing ": "Showing ",
|
|
178
179
|
"Purchase code": "Purchase code",
|
|
179
180
|
"Quiet": "Quiet",
|
|
180
181
|
"Radio unreachable: check your connection or pick another station.": "Radio unreachable: check your connection or pick another station.",
|
package/public/locales/es.json
CHANGED
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
"No preview here: the page is on claude.ai": "Sin vista previa aquí: la página está en claude.ai",
|
|
252
252
|
"Open on claude.ai": "Abrir en claude.ai",
|
|
253
253
|
"Publishing ": "Publicando ",
|
|
254
|
+
"Showing ": "Mostrando ",
|
|
254
255
|
"This page uses libraries kept on other servers: they are loaded only if you ask": "Esta página usa bibliotecas alojadas en otros servidores: solo se cargan si lo pides",
|
|
255
256
|
"Mark as done": "Marcar como hecha",
|
|
256
257
|
"Open the pull request": "Abrir la pull request",
|
package/public/locales/ja.json
CHANGED
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
"No preview here: the page is on claude.ai": "ここではプレビューできません: ページは claude.ai にあります",
|
|
252
252
|
"Open on claude.ai": "claude.ai で開く",
|
|
253
253
|
"Publishing ": "公開中: ",
|
|
254
|
+
"Showing ": "表示中: ",
|
|
254
255
|
"This page uses libraries kept on other servers: they are loaded only if you ask": "このページは他のサーバーにあるライブラリを使います: 求めたときだけ読み込まれます",
|
|
255
256
|
"Mark as done": "完了にする",
|
|
256
257
|
"Open the pull request": "プルリクエストを開く",
|
package/public/locales/ko.json
CHANGED
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
"No preview here: the page is on claude.ai": "여기서는 미리 볼 수 없습니다: 페이지는 claude.ai에 있습니다",
|
|
252
252
|
"Open on claude.ai": "claude.ai에서 열기",
|
|
253
253
|
"Publishing ": "게시 중: ",
|
|
254
|
+
"Showing ": "보여 주는 중: ",
|
|
254
255
|
"This page uses libraries kept on other servers: they are loaded only if you ask": "이 페이지는 다른 서버에 있는 라이브러리를 사용합니다: 요청할 때만 불러옵니다",
|
|
255
256
|
"Mark as done": "완료로 표시",
|
|
256
257
|
"Open the pull request": "풀 리퀘스트 열기",
|
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
"No preview here: the page is on claude.ai": "Sem prévia aqui: a página está em claude.ai",
|
|
252
252
|
"Open on claude.ai": "Abrir em claude.ai",
|
|
253
253
|
"Publishing ": "Publicando ",
|
|
254
|
+
"Showing ": "Mostrando ",
|
|
254
255
|
"This page uses libraries kept on other servers: they are loaded only if you ask": "Esta página usa bibliotecas hospedadas em outros servidores: elas só são carregadas se você pedir",
|
|
255
256
|
"Mark as done": "Marcar como concluída",
|
|
256
257
|
"Open the pull request": "Abrir o pull request",
|
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
"No preview here: the page is on claude.ai": "此处无法预览:页面在 claude.ai 上",
|
|
252
252
|
"Open on claude.ai": "在 claude.ai 上打开",
|
|
253
253
|
"Publishing ": "正在发布 ",
|
|
254
|
+
"Showing ": "正在展示 ",
|
|
254
255
|
"This page uses libraries kept on other servers: they are loaded only if you ask": "此页面使用存放在其他服务器上的库:仅在你要求时才加载",
|
|
255
256
|
"Mark as done": "标记为已处理",
|
|
256
257
|
"Open the pull request": "打开拉取请求",
|
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
"No preview here: the page is on claude.ai": "此處無法預覽:頁面在 claude.ai 上",
|
|
252
252
|
"Open on claude.ai": "在 claude.ai 上開啟",
|
|
253
253
|
"Publishing ": "發布 ",
|
|
254
|
+
"Showing ": "展示 ",
|
|
254
255
|
"This page uses libraries kept on other servers: they are loaded only if you ask": "此頁面使用存放在其他伺服器上的函式庫:只有在你要求時才會載入",
|
|
255
256
|
"Mark as done": "標記為已處理",
|
|
256
257
|
"Open the pull request": "開啟拉取請求",
|
package/server.js
CHANGED
|
@@ -111,14 +111,26 @@ const toolLabel = (b, ts) => {
|
|
|
111
111
|
case 'Skill': out.d = { kind: 'text', what: 'skill', v: i.skill, text: clip(i.skill + (i.args ? ' ' + i.args : ''), 200) }; break;
|
|
112
112
|
case 'ToolSearch': out.d = { kind: 'text', what: 'toolsearch', text: clip(i.query, 200) }; break;
|
|
113
113
|
case 'Artifact': if ((!i.action || i.action === 'publish') && !i.asset) { out.d = { kind: 'artifact', file: typeof i.file_path === 'string' ? i.file_path : '', title: clip(i.title, 120), note: clip(i.description, 240) }; break; } // a page published on claude.ai: the call shows it in a browser window (see artifactPage). Any other use of the tool (a read, a list, an upload) is a call like any other
|
|
114
|
+
if (i.action === 'open') { out.d = { kind: 'artifact', file: '', title: '', note: '', open: 1 }; break; } // a page put on the person's screen: in the line of files when this session did not make it (see artOf)
|
|
114
115
|
// falls through
|
|
115
|
-
default:
|
|
116
|
+
default: if (mcp && /(^|_)Claude_Docs$/.test(mcp[1] || '') && mcp[2] === 'batch' && i.container && i.container.create && typeof i.container.create.name === 'string') { out.d = { kind: 'artifact', file: '', title: clip(i.container.create.name, 120), note: '', doc: 1 }; break; } // a doc of the Claude Docs connector being born (its later edits are calls like any other)
|
|
117
|
+
out.d = mcp ? { kind: 'text', what: 'mcp', v: (mcp[1] || '') + ' · ' + (mcp.slice(2).join('__') || ''), text: clip(JSON.stringify(i), 400) } : { kind: 'text', text: clip(JSON.stringify(i), 300) };
|
|
116
118
|
}
|
|
117
119
|
return out;
|
|
118
120
|
};
|
|
119
121
|
// What a publish answered: the link of the page on claude.ai, its title and which version this is. typed: made from an Artifact type (a deck, a design, a document), whose page is the type's and not the file that was sent.
|
|
120
122
|
const ART_URL = /^https:\/\/claude\.ai\/(code\/)?artifact\/[\w-]{6,80}$/;
|
|
121
123
|
const artifactOf = (u) => (u && typeof u === 'object' && typeof u.url === 'string' && ART_URL.test(u.url) ? { url: u.url, title: clip(u.title, 120), ...(u.seq > 0 ? { v: +u.seq } : {}), ...(u.type || u.created_from_type ? { typed: 1 } : {}) } : null);
|
|
124
|
+
// What a call that put an artifact in front of the person answered, for the line of files: a publish (above); a doc the Claude Docs connector created, whose answer names the doc and its address;
|
|
125
|
+
// an artifact opened on the person's screen, only when this session did not publish or create it already (the same artifact under its other address would show twice, and an open would take the place of the publish that has the preview).
|
|
126
|
+
const DOC_ID = /"created":\{[^{}]*"minted":"([\w-]{6,80})"/, DOC_URL = /"frame":\{[^{}]*"url":"(https:\/\/claude\.ai\/(?:code\/)?artifact\/[\w-]{6,80})"/;
|
|
127
|
+
function artOf(st, how, u, text) {
|
|
128
|
+
const seen = (st.artIds = st.artIds || new Set()), note = (id, url) => { if (id) seen.add('id ' + id); seen.add('url ' + url); }; // known by its id and by its address: a publish may answer without an id
|
|
129
|
+
if (how === 'doc') { const id = DOC_ID.exec(text), m = DOC_URL.exec(text); if (!id || !m || !ART_URL.test(m[1])) return null; note(id[1], m[1]); return { url: m[1], title: '', typed: 1 }; }
|
|
130
|
+
const a = artifactOf(u), id = a && typeof u.artifact_id === 'string' ? u.artifact_id : ''; if (!a) return null;
|
|
131
|
+
if (how === 'open') { if ((id && seen.has('id ' + id)) || seen.has('url ' + a.url)) return null; note(id, a.url); return { ...a, typed: 1 }; } // opened, not made here: the window gives its title and its link
|
|
132
|
+
note(id, a.url); return a;
|
|
133
|
+
}
|
|
122
134
|
const resultText = (c) => (typeof c === 'string' ? c : Array.isArray(c) ? c.map((x) => x.text || '').join('\n') : '');
|
|
123
135
|
// Pictures a tool returned (a screenshot, an image file that was read). They are served from the transcript itself, so nothing outside the session files is ever read, and only bitmap types are sent.
|
|
124
136
|
const IMG_TYPES = new Set(['image/png', 'image/jpeg', 'image/gif', 'image/webp']), mediaMemo = new Map();
|
|
@@ -534,7 +546,7 @@ function parseRecord(st, r) {
|
|
|
534
546
|
for (const b of blocks(r)) if (b.type === 'tool_result' && wf) push({ ts, agent, kind: 'wfrun', toolId: b.tool_use_id, run: wf }); // the answer to a Workflow call names the run it started: its agents are in subagents/workflows/<run>/
|
|
535
547
|
for (const b of blocks(r)) if (b.type === 'tool_result' && (st.toolName[b.tool_use_id] === 'Agent' || st.toolName[b.tool_use_id] === 'Task') && !(st.bg && st.bg[b.tool_use_id]) && !/^\s*Async agent launched/i.test(resultText(b.content))) push({ ts, agent, kind: 'agentdone', toolId: b.tool_use_id }); // a synchronous call: the lead got the sub-agent's answer back, so it has finished (async launches answer immediately and are not a completion)
|
|
536
548
|
for (const b of blocks(r)) if (b.type === 'tool_result' && st.toolName[b.tool_use_id] && !NO_RESULT.has(st.toolName[b.tool_use_id])) {
|
|
537
|
-
const n = st.toolName[b.tool_use_id], img = resultImages(b.content).length, files = n === 'Bash' && !b.is_error ? docPaths(resultText(b.content), false).map((f) => absPath(f, r.cwd)) : [], art = !b.is_error && st.pubs && st.pubs.has(b.tool_use_id) ?
|
|
549
|
+
const n = st.toolName[b.tool_use_id], img = resultImages(b.content).length, files = n === 'Bash' && !b.is_error ? docPaths(resultText(b.content), false).map((f) => absPath(f, r.cwd)) : [], art = !b.is_error && st.pubs && st.pubs.has(b.tool_use_id) ? artOf(st, st.pubs.get(b.tool_use_id), r.toolUseResult, resultText(b.content)) : null;
|
|
538
550
|
items.push({ id: b.tool_use_id, err: !!b.is_error, out: clip(resultText(b.content).replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g, '').trimEnd(), RESULT_MAX[n] || (/^mcp__/.test(n) ? 900 : 600)), ...(img ? { img } : {}), ...(files.length ? { files } : {}), ...(art ? { art } : {}) }); // img: how many pictures came back; the page fetches them from /api/media · files: the documents a command says it made
|
|
539
551
|
}
|
|
540
552
|
if (items.length) push({ ts, agent, kind: 'results', items });
|
|
@@ -558,7 +570,7 @@ function parseRecord(st, r) {
|
|
|
558
570
|
else if (b.type === 'tool_use') {
|
|
559
571
|
st.toolName[b.id] = b.name; (st.out = st.out || new Set()).add(b.id); if (b.input && b.input.run_in_background) (st.bg = st.bg || {})[b.id] = true; // out: the calls that have no answer yet
|
|
560
572
|
if (b.name === 'Agent' || b.name === 'Task') push({ ts, agent, kind: 'agentcall', toolId: b.id, bg: !!(b.input && b.input.run_in_background), text: (b.input && b.input.prompt) || '', title: (b.input && b.input.description) || '', ...(b.input && typeof b.input.name === 'string' && b.input.name.trim() ? { nm: b.input.name.trim() } : {}) });
|
|
561
|
-
else { const tool = toolLabel(b, ts); if (tool.d && tool.d.outs) tool.d.outs = tool.d.outs.map((f) => absPath(f, r.cwd)); if (tool.d && tool.d.kind === 'artifact') (st.pubs = st.pubs || new
|
|
573
|
+
else { const tool = toolLabel(b, ts); if (tool.d && tool.d.outs) tool.d.outs = tool.d.outs.map((f) => absPath(f, r.cwd)); if (tool.d && tool.d.kind === 'artifact') (st.pubs = st.pubs || new Map()).set(b.id, tool.d.open ? 'open' : tool.d.doc ? 'doc' : 'pub'); push({ ts, agent, kind: 'tool', tool, ...th() }); st.act = st.raw.length - 1; }
|
|
562
574
|
}
|
|
563
575
|
}
|
|
564
576
|
if (agent === 'main' && (m.stop_reason === 'end_turn' || ((r.isApiErrorMessage || (m.model === '<synthetic>' && m.stop_reason === 'stop_sequence')) && !(st.out && st.out.size)))) { // also a turn that ends on a message Claude Code writes itself, in the place of the model's: the API is down, the limit is reached, the request was refused, or there was nothing to answer. Nothing follows it, unless a call of the lead is still out: the connection dropped while its agents worked, and it goes on when they answer. (A message of the model that a safety check cuts is not the end either: Claude Code tells the model, which goes on.) The lead's turn is over: Claude Code writes one record per content block, each with the message's stop reason, so the mark goes on the line this record carries (a thinking block carries none)
|