@double_geste/agent-standup 1.43.1 → 1.44.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.
@@ -10,6 +10,7 @@ const argv = process.argv.slice(2), flags = {}, rest = [];
10
10
  for (let i = 0; i < argv.length; i++) {
11
11
  const a = argv[i], val = () => argv[++i];
12
12
  if (a === '--port') flags.port = val(); else if (a === '--projects') flags.projects = val(); else if (a === '--codex') flags.codex = val(); else if (a === '--vibe') flags.vibe = val(); else if (a === '--cowork') flags.cowork = val(); else if (a === '--characters') flags.characters = val(); else if (a === '--config-dir') flags.config = val();
13
+ else if (a === '--reply') flags.reply = /^(0|1|on|off|yes|no|true|false)$/i.test(argv[i + 1] || '') ? val() : 'on'; // alone or followed by on / off
13
14
  else if (a === '--from') flags.from = val(); else if (a === '--open') flags.open = true; else if (a === '--here') flags.here = true; else if (a === '--json') flags.json = true; else if (a === '--titles') flags.titles = true; else if (a === '--config') flags.config = val();
14
15
  else if (a === '-h' || a === '--help') flags.help = true; else if (a === '-v' || a === '--version') flags.version = true; else rest.push(a);
15
16
  }
@@ -32,6 +33,7 @@ Options
32
33
  --codex DIR where Codex keeps its files (default ~/.codex, or $CODEX_HOME); "off" to leave Codex sessions out
33
34
  --vibe DIR where Mistral Vibe keeps its files (default ~/.vibe, or $VIBE_HOME); "off" to leave Vibe sessions out
34
35
  --cowork DIR where the Claude desktop app keeps its Cowork sessions (default: its local-agent-mode-sessions folder); "off" to leave them out
36
+ --reply let the call type into the followed Claude Code session's tmux pane (Linux, off by default; anyone who can run commands as you can then type into your sessions)
35
37
  --characters DIR folder with your own pixel-art characters (default ~/.agent-standup/characters)
36
38
  --from plugin how the Claude Code plugin starts it (its usage, if you agree to share it, is counted apart); also AGENT_STANDUP_FROM=plugin,
37
39
  which older versions ignore instead of refusing
@@ -46,6 +48,7 @@ if (flags.projects && path.basename(path.resolve(flags.projects)) === 'projects'
46
48
  if (flags.codex !== undefined) process.env.AGENT_STANDUP_CODEX = /^(0|off|no|false)?$/i.test(String(flags.codex)) ? 'off' : path.resolve(String(flags.codex));
47
49
  if (flags.vibe !== undefined) process.env.AGENT_STANDUP_VIBE = /^(0|off|no|false)?$/i.test(String(flags.vibe)) ? 'off' : path.resolve(String(flags.vibe));
48
50
  if (flags.cowork !== undefined) process.env.AGENT_STANDUP_COWORK = /^(0|off|no|false)?$/i.test(String(flags.cowork)) ? 'off' : path.resolve(String(flags.cowork));
51
+ if (flags.reply !== undefined) { if (/^(1|on|yes|true)$/i.test(flags.reply)) process.env.AGENT_STANDUP_REPLY = 'on'; else delete process.env.AGENT_STANDUP_REPLY; }
49
52
  if (flags.config) { process.env.CLAUDE_CONFIG_DIR = path.resolve(flags.config); process.env.AGENT_STANDUP_CLAUDE_DIRS = 'off'; } // the one account asked for, not the other Claude Code folders
50
53
  if (flags.characters) process.env.AGENT_STANDUP_CHARACTERS = path.resolve(flags.characters);
51
54
  if (flags.port !== undefined) { // a real port number or nothing: no silent fallback to another port
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@double_geste/agent-standup",
3
- "version": "1.43.1",
3
+ "version": "1.44.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"
@@ -11,6 +11,7 @@
11
11
  "server.js",
12
12
  "codex.js",
13
13
  "vibe.js",
14
+ "reply.js",
14
15
  "kokoro.js",
15
16
  "kokoro-worker.js",
16
17
  "demo.js",
package/public/index.html CHANGED
@@ -218,6 +218,12 @@
218
218
  .row .txt { color:#c3c6d4; word-break:break-word } .row.order .who { color:var(--gold) } .row.report .who { color:var(--ok) }
219
219
  footer { display:none; height:44px; flex:none; align-items:center; gap:12px; padding:0 14px; border-top:1px solid var(--line) }
220
220
  body.replay footer { display:flex }
221
+ #say { display:none; flex:1; min-width:0; align-items:flex-end; gap:8px } body.can-say:not(.replay) footer { display:flex; height:auto; min-height:44px; padding:6px 14px } body.can-say:not(.replay) footer > :not(#say) { display:none } body.can-say:not(.replay) #say { display:flex } /* live: the footer row is the human's line; replay: the seek bar */
222
+ #say label { flex:none; align-self:center; color:var(--dim); font-size:12px; white-space:nowrap; max-width:30vw; overflow:hidden; text-overflow:ellipsis }
223
+ #sayT { flex:1; min-width:0; min-height:44px; max-height:96px; resize:none; background:var(--panel2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:8px 10px; font:inherit; font-size:14px; line-height:1.4 } #sayT:focus { border-color:var(--accent) } #sayT:disabled { opacity:.5; cursor:not-allowed }
224
+ #sayB { flex:none; min-width:44px; min-height:44px; background:var(--accent); color:#0b1020; font-weight:700; border:0; border-radius:8px; padding:0 14px; cursor:pointer } #sayB:disabled { opacity:.5; cursor:not-allowed } #sayB.busy { cursor:progress; position:relative; color:transparent } #sayB.busy::after { content:''; position:absolute; left:50%; top:50%; width:16px; height:16px; margin:-8px 0 0 -8px; border:2px solid #0b1020; border-right-color:transparent; border-radius:50%; animation:saySpin .7s linear infinite } @keyframes saySpin { to { transform:rotate(360deg) } } @media (prefers-reduced-motion:reduce) { #sayB.busy::after { animation:none } }
225
+ #sayS { flex-basis:100%; font-size:12px; color:var(--dim) } #sayS.err { color:var(--red) } #sayS:empty { height:0; margin-top:-8px } #say { flex-wrap:wrap }
226
+ @media (max-width:520px) { #say label { flex-basis:100%; max-width:none; align-self:flex-start; font-size:11.5px } } /* phone: the recipient sits on its own line above the field */
221
227
  input[type=range] { accent-color:var(--accent) } #seek { flex:1; min-width:40px } #pos, footer label.dim { white-space:nowrap; flex:none } @media (max-width:520px) { footer { gap:8px; padding:0 8px } footer label.dim { display:none } } /* narrow: the 1× 2× 4× 8× buttons are the speed control */
222
228
  @media (max-width:760px) { aside { position:absolute; right:0; top:0; bottom:0; z-index:6; box-shadow:-10px 0 30px rgba(0,0,0,.5) } .brand small { display:none } }
223
229
  @media (max-width:720px) { .brand b { display:none } }
@@ -278,6 +284,7 @@
278
284
  .arm.l { transform-origin:27px 48px } .arm.r { transform-origin:73px 48px } .tile.speaking .arm.r { animation:wave .7s ease-in-out infinite } @keyframes wave { 50% { transform:rotate(-34deg) } }
279
285
  .tile.working .arm { display:none } .tile .laptop, .tile .hands, .tile .sparks, .tile .grin, .tile .eyes-happy, .tile .mouth { display:none }
280
286
  .tile.working .laptop, .tile.working .hands, .tile.done .sparks, .tile.done .eyes-happy { display:inline } .tile.done .eyes-open { display:none }
287
+ .tile .eyes-open { transition:transform .45s ease; transform:translate(calc(var(--lx,0) * 1.4px), calc(var(--ly,0) * .9px)) } .tile.working .eyes-open { transform:translate(0,0) } /* the others glance at whoever speaks (gaze()); one move per line, not an endless animation; at work, eyes on the laptop */
281
288
  .tile.speaking .mouth { display:inline } .tile.speaking .smile, .tile.speaking .grin { display:none } .tile.done:not(.speaking) .smile { display:none } .tile.done:not(.speaking) .grin { display:inline }
282
289
  .hand { animation:type .34s ease-in-out infinite } .hand.r { animation-delay:-.17s } .tile.working .chand { animation:type .34s ease-in-out infinite } .tile.working .chand.r { animation-delay:-.17s }
283
290
  .claptop { display:none } .claptop.on, .tile.lap .claptop { display:inline } .tile.lap .claptop { animation:lapin .5s cubic-bezier(.2,.8,.3,1) } .tile.lapout .claptop { animation:lapout .45s ease-in forwards } /* a laptop pulled out from under the desk, and put away */
@@ -479,6 +486,7 @@
479
486
  <input id="seek" type="range" min="0" max="0" value="0"><span class="dim" id="pos">0 / 0</span>
480
487
  <label class="dim"><span data-fr="Vitesse" data-en="Speed">Vitesse</span> <input id="speed" type="range" min="0.5" max="8" step="0.25" value="1.25" style="width:80px;vertical-align:middle"></label>
481
488
  <span id="sps" class="dim" role="group" aria-label="Speed presets"><button data-s="1">1×</button><button data-s="2">2×</button><button data-s="4">4×</button><button data-s="8">8×</button></span>
489
+ <form id="say" autocomplete="off"><label for="sayT" id="sayL"></label><textarea id="sayT" rows="1" enterkeyhint="send" maxlength="4000"></textarea><button id="sayB" type="submit"></button><div id="sayS" role="status" aria-atomic="true"></div></form>
482
490
  </footer>
483
491
  <div id="card"></div><div id="recap"><div class="box"></div></div>
484
492
 
@@ -599,7 +607,7 @@ const CHAR_CHOICES = ['none', 'folder', 'cats', 'halloween']; // what ⚙ →
599
607
  let SHOP = {}; // the packs of the shop, by name, as the server knows them: how many characters are here (none until it is bought), its price, the code of the purchase
600
608
  const toData = (url) => fetch(url).then((r) => r.blob()).then((b) => new Promise((res) => { const f = new FileReader(); f.onload = () => res(f.result); f.readAsDataURL(b); }));
601
609
  const imgSize = (src) => new Promise((res) => { const i = new Image(); i.onload = () => res([i.naturalWidth, i.naturalHeight]); i.onerror = () => res([0, 0]); i.src = src; }), isDrawing = (wh) => Math.max(wh[0], wh[1]) > 128; // a large image is a drawing, shown smooth; pixel art (32 or 64 px) keeps its hard pixels
602
- const youMode = () => prefs.charYou || (prefs.charPack === 'none' ? 'vampire' : 'cast'); // who you are: the cast's own human, or the vampire of the Halloween pack, everyone's and free (the default with the drawn characters, so that everyone meets the pack)
610
+ const youMode = () => prefs.charYou || (prefs.charPack === 'none' && new Date().getMonth() === 9 ? 'vampire' : 'cast'); // who you are: the cast's own human, or the vampire of the Halloween pack, everyone's and free (the default with the drawn characters in October only, so that everyone meets the pack; the rest of the year a choice in ⚙ → Characters, kept once picked)
603
611
  let VAMP = null; // the free vampire (examples/vampire), loaded once
604
612
  async function charEntry(base, c) { // one character of a folder or a pack, ready to draw: its pictures as data, their sizes, what it may wear
605
613
  const e = { name: c.stem, idle: await toData(base + encodeURIComponent(c.file)), talk: c.talk ? await toData(base + encodeURIComponent(c.talk)) : null, bg: c.bg ? await toData(base + encodeURIComponent(c.bg)) : null, desks: await Promise.all((c.desks || []).map((f) => toData(base + encodeURIComponent(f)))), hands: c.hands ? await toData(base + encodeURIComponent(c.hands)) : null, head: c.head ? await toData(base + encodeURIComponent(c.head)) : null };
@@ -622,11 +630,18 @@ async function loadChars() {
622
630
  if (youMode() === 'vampire') { try { VAMP = VAMP || (await vampEntry()); if (VAMP) { next.you = VAMP; next.youFrom = 'vampire'; } } catch {} }
623
631
  CHARS = next;
624
632
  }
625
- const customFor = (id) => { // sub-agents: the best-hashed image no other agent holds; the whole pool again only once every image is taken
633
+ const charKey = (s) => String(s || '').split(':').pop().toLowerCase().replace(/[\s_\-]+/g, '-').replace(/^-+|-+$/g, ''); // "QA Agent", qa_agent, plugin:qa-agent → qa-agent
634
+ const STOCK_TYPE = /^(main|general-purpose|explore|plan|claude|agent|task|fork|default|worker|explorer|subagent|workflow-subagent|statusline-setup|output-style-setup|claude-code-guide|verification|magic-docs)$/i; // the types the tools ship (as STOCK_AGENT in server.js, with the lead's main and Codex's roles): not names, so agent.png or explore.png stays a picture for anyone
635
+ const agentKeys = (a) => (a ? [!STOCK_TYPE.test(String(a.type || '').split(':').pop()) && a.type, a.own && a.own.replace(/ \d+$/, '')] : []).map(charKey).filter(Boolean); // its type (.claude/agents/qa.md) and the name it was launched with; "Qa 2", the second of its name, is still qa
636
+ const wears = (c, keys) => { const s = c.key || (c.key = charKey(c.name)), m = s.match(/^(.+)-(\d+|[a-z])$/); return keys.has(s) || !!(m && keys.has(m[1])); }; // qa.png, and qa-2.png or qa-f.png for other looks of the same agent; qa-lead.png is a character of its own
637
+ const customFor = (id, a = S.agents[id]) => { // sub-agents: an image named after the agent; otherwise the best-hashed image no other agent holds; the whole pool again only once every image is taken
626
638
  if (id === 'main') return CHARS.lead; if (id === 'user') return CHARS.you; if (!CHARS.pool.length) return null;
627
- const used = new Set(Object.keys(S.agents).filter((k) => k !== id && S.agents[k].custom).map((k) => S.agents[k].custom.name));
628
- const free = CHARS.pool.filter((c) => !used.has(c.name)), varied = CHARS.pool.filter((c) => c.extras && Object.keys(c.extras).some((k) => !/^sticker/.test(k))), from = free.length ? free : varied.length ? varied : CHARS.pool; // varied: what the character itself wears (a hat, glasses), not the stickers of its laptop // every image taken: one that has extras (a hat, glasses…) is given again, since it does not look the same twice
629
- return from.reduce((b, c) => (hash(id + '|' + c.name) > hash(id + '|' + b.name) ? c : b)); // by the character's name, not its picture: a pack drawn again gives each agent the same character
639
+ const others = Object.keys(S.agents).filter((k) => k !== id), used = new Set(others.filter((k) => S.agents[k].custom).map((k) => S.agents[k].custom.name)), pick = (l) => l.reduce((b, c) => (hash(id + '|' + c.name) > hash(id + '|' + b.name) ? c : b)); // by the character's name, not its picture: a pack drawn again gives each agent the same character
640
+ const keys = new Set(agentKeys(a)), mine = keys.size ? CHARS.pool.filter((c) => wears(c, keys)) : [];
641
+ if (mine.length) { const f = mine.filter((c) => !used.has(c.name)); return pick(f.length ? f : mine); } // its own picture even when another agent of the same name wears it: two QAs both look like the QA
642
+ const theirs = new Set([...others.map((k) => S.agents[k]), ...(S.soon || []).filter((x) => x.id !== id)].flatMap(agentKeys)), left = CHARS.pool.filter((c) => !wears(c, theirs)), pool = left.length ? left : CHARS.pool; // nor does an agent without one take the picture of another agent in the call, or of one arriving with it (S.soon: a call opened late knows its QA before the agents born earlier get their pictures)
643
+ const free = pool.filter((c) => !used.has(c.name)), varied = pool.filter((c) => c.extras && Object.keys(c.extras).some((k) => !/^sticker/.test(k))), from = free.length ? free : varied.length ? varied : pool; // varied: what the character itself wears (a hat, glasses), not the stickers of its laptop // every image taken: one that has extras (a hat, glasses…) is given again, since it does not look the same twice
644
+ return pick(from);
630
645
  };
631
646
  // ---- the shop: a pack that is sold. The page never sees a card: the button asks the app's server for a payment page (Stripe's, through the website), opens it, and then asks for the pack until it is paid
632
647
  const shopSay = (t) => { const m = $('#shopMsg'); if (m) m.textContent = t; };
@@ -698,10 +713,14 @@ async function openChars() { // ⚙ → Characters: the whole cast (drawn, a p
698
713
  }
699
714
  function renderFolder(el, mine) { // one's own pictures: where they are, a button per role to add one, and the ones there, each with a way to take it out (moved aside, never deleted)
700
715
  const role = (c) => (c.role === 'lead' ? L('Chef', 'Lead') : c.role === 'you' ? L('Vous', 'You') : L('Sous-agent', 'Sub-agent'));
716
+ const subs = Object.values(S.agents).filter((p) => p.id !== 'main' && p.id !== 'user' && !p.twin), on = (c) => (CHARS.pack === 'folder' && c.role === 'agent' ? subs.filter((p) => p.custom && p.custom.name === c.stem).map((p) => p.name) : []); // who wears each picture now, while the folder is the cast
717
+ const pics = mine.chars.filter((c) => c.role === 'agent').map((c) => ({ name: c.stem })), want = [...new Set(subs.map((p) => !STOCK_TYPE.test(String(p.type || '').split(':').pop()) && charKey(p.type)).filter(Boolean))].filter((k) => !pics.some((c) => wears(c, new Set([k])))); // the agent types of the call (.claude/agents/qa.md) with no picture of their own yet: the file name to draw. Not the names agents were launched with, which change from one session to the next
718
+ const worn = (c) => { const w = on(c); return w.length ? ' → ' + esc(w.slice(0, 3).join(', ') + (w.length > 3 ? ' +' + (w.length - 3) : '')) : ''; };
701
719
  el.innerHTML = `${esc(L('Vos images sont dans ce dossier :', 'Your pictures are in this folder:'))} <code style="word-break:break-all">${esc(mine.dir || CHARS.dir || '')}</code>
702
720
  <div class="slots">${[['you', L('Vous', 'You')], ['lead', L('Chef', 'Lead')], ['agent', L('Sous-agents', 'Sub-agents')]].map(([r, t]) => `<div class="slot"><b>${esc(t)}</b><button class="btn" data-add="${r}">${esc(r === 'agent' ? L('Ajouter des images', 'Add pictures') : L('Choisir une image', 'Choose a picture'))}</button>${r !== 'agent' ? `<button class="btn" data-add="${r}-talk">${esc(L('Bouche ouverte (facultatif)', 'Open mouth (optional)'))}</button>` : ''}</div>`).join('')}</div>
703
- <div class="mine">${mine.chars.length ? mine.chars.map((c) => `<span class="chip"><img src="/characters/${encodeURIComponent(c.file)}" alt="">${esc(c.stem)} · ${esc(role(c))}<button class="ic" data-rm="${esc(c.file)}" aria-label="${esc(L('Retirer', 'Remove'))}" title="${esc(L('Retirer', 'Remove'))}">✕</button></span>`).join('') : esc(L('Aucune image pour l’instant.', 'No picture yet.'))}</div>
704
- <p class="dim" style="margin:8px 0 0;font-size:11.5px">${esc(L('lead.png = le chef · you.png = vous · les autres = les sous-agents · nom-talk.png = bouche ouverte', 'lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth'))}</p>
721
+ <div class="mine">${mine.chars.length ? mine.chars.map((c) => `<span class="chip"><img src="/characters/${encodeURIComponent(c.file)}" alt="">${esc(c.stem)} · ${esc(role(c))}${worn(c)}<button class="ic" data-rm="${esc(c.file)}" aria-label="${esc(L('Retirer', 'Remove'))}" title="${esc(L('Retirer', 'Remove'))}">✕</button></span>`).join('') : esc(L('Aucune image pour l’instant.', 'No picture yet.'))}</div>
722
+ <p class="dim" style="margin:8px 0 0;font-size:11.5px">${esc(L('lead.png = le chef · you.png = vous · les autres = les sous-agents · nom-talk.png = bouche ouverte', 'lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth'))}<br>${esc(L('qa.png = le sous-agent nommé qa (.claude/agents/qa.md) · qa-2.png = un autre de ses visages', 'qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it'))}</p>
723
+ ${want.length ? `<p class="dim" style="margin:6px 0 0;font-size:11.5px">${esc(L('Dans cet appel, sans image à leur nom : ', 'In this call, without a picture of their own: '))}${want.map((k) => `<code>${esc(k)}.png</code>`).join(', ')}</p>` : ''}
705
724
  <div style="display:flex;gap:6px;margin-top:8px"><button class="btn" id="charReload">${esc(L('Recharger', 'Reload'))}</button>${EMBED ? `<button class="btn" id="charOpen">${esc(L('Ouvrir le dossier', 'Open folder'))}</button>` : ''}</div>
706
725
  <div id="shopMsg" role="status" style="margin-top:6px"></div><input type="file" id="charFile" accept="image/png,image/gif,image/webp,image/jpeg" hidden>`;
707
726
  const inp = $('#charFile'), post = (p, b) => fetch(p, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(b) }).then((r) => r.json()).catch(() => ({ error: 'write' }));
@@ -724,7 +743,7 @@ function packNote() { // the Halloween pack, to someone without it, twice a se
724
743
  : dd >= 19 ? L('Halloween approche : déguisez vos agents en citrouille, fantôme, sorcière ou squelette, dessinés à la main par Fabien Coupas.', 'Halloween is coming: dress your agents up as a pumpkin, a ghost, a witch or a skeleton, drawn by hand by Fabien Coupas.') : L('Pour Halloween, vous êtes le vampire. Le reste de l’équipe est dans le pack Halloween.', 'This Halloween, you are the vampire. The rest of the cast is in the Halloween pack.');
725
744
  $('#packNoteB').textContent = L('Voir le pack', 'See the pack') + ' · ' + price;
726
745
  }
727
- function persona(a) { const p = persona0(a); p.custom = customFor(p.twin ? 'main' : a.id); return p; } // a fork wears the lead's own picture too
746
+ function persona(a) { const p = persona0(a); p.custom = customFor(p.twin ? 'main' : a.id, p); return p; } // a fork wears the lead's own picture too
728
747
  // The order agents are named in: the order they started (born, from the server), not the order their files are listed in (by their ids: effectively random). A reload, a replay and the live call then give each agent
729
748
  // the same name, a first name of your list the same agent, and a fork the same number. Without born (the demo, a session just started), the order they came in
730
749
  const byBorn = (list) => list.map((a, j) => ({ a, j })).sort((x, y) => (x.a.born || Infinity) - (y.a.born || Infinity) || x.j - y.j).map((x) => x.a);
@@ -1006,6 +1025,10 @@ const AUD = {
1006
1025
  const c = this.ctx, n = c.sampleRate * 0.03, b = c.createBuffer(1, n, c.sampleRate), d = b.getChannelData(0); for (let i = 0; i < n; i++) d[i] = (Math.random() * 2 - 1) * (1 - i / n);
1007
1026
  const s = c.createBufferSource(); s.buffer = b; const hp = c.createBiquadFilter(); hp.type = 'highpass'; hp.frequency.value = 1800 + Math.random() * 1500; const g = c.createGain(); g.gain.value = 0.18; s.connect(hp).connect(g).connect(this.sfx); s.start();
1008
1027
  },
1028
+ need() { // an agent needs you (a question, a permission, a plan): two quick bright double notes, sharper than the soft chime of "done", so the ear tells them apart without looking
1029
+ if (!this.ctx || this.off()) return; const c = this.ctx;
1030
+ [[1175, 0], [1568, 0.11], [1175, 0.34], [1568, 0.45]].forEach(([f, w]) => { const t = c.currentTime + w, o = c.createOscillator(), g = c.createGain(); o.type = 'triangle'; o.frequency.value = f; g.gain.setValueAtTime(0.0001, t); g.gain.exponentialRampToValueAtTime(0.2, t + 0.01); g.gain.exponentialRampToValueAtTime(0.0001, t + 0.22); o.connect(g).connect(c.destination); o.start(t); o.stop(t + 0.25); });
1031
+ },
1009
1032
  join() { this.tone(523, .14, 'triangle', .1); this.tone(784, .2, 'triangle', .1, .12); },
1010
1033
  knock() { // someone at the door: a visitor from another session. Like the chime above, it is heard with the ambience off
1011
1034
  if (!this.ctx || this.off()) return; const c = this.ctx;
@@ -1421,6 +1444,7 @@ function syncUI() {
1421
1444
  $('#bPlay').textContent = S.playing ? '⏸' : '▶';
1422
1445
  paintPill(); paintTabs();
1423
1446
  document.body.classList.toggle('replay', !S.live);
1447
+ sayCheck();
1424
1448
  }
1425
1449
 
1426
1450
  // ---------- tool ticker, shared screen, flying messages ----------
@@ -1619,6 +1643,35 @@ function fitBoard(force) { // the chips lose their words when they do not all
1619
1643
  addEventListener('resize', () => fitBoard(true)); new ResizeObserver(() => requestAnimationFrame(() => fitBoard(true))).observe($('#board')); /* the room the chips have also changes when the texts beside them do (a title, a longer status) */
1620
1644
  const RORDER = { blocked: 0, stalled: 1, working: 2, waiting: 3, idle: 4, done: 5 };
1621
1645
  const TOOL = { _codex: 'Codex', _vibe: 'Vibe', _cowork: 'Cowork' }, leadTool = (p) => (p.id === 'main' && S.cur && TOOL[S.cur.proj] ? ' · ' + TOOL[S.cur.proj] : ''); // a session that is not a Claude Code one says which tool runs it: on its tab, and next to its lead, who has the same name in every call
1646
+ // ---------- the human's line: typed into the session's terminal through tmux (server: reply.js, off unless AGENT_STANDUP_REPLY=on) ----------
1647
+ const SAY = { name: '', why: '', draft: '' }; // draft: the id of the session the text in the field was started for
1648
+ let sayReq = 0; // the latest sayCheck request: an older answer arriving late is ignored
1649
+ const sayWhy = (w) => ({ none: L('Session fermée : rien ne peut recevoir le message', 'Session closed: nothing can receive the message'), notmux: L('Session lancée hors tmux : lancez-la dans tmux pour lui parler', 'Session started outside tmux: start it in tmux to talk to it'), tmux: L('tmux injoignable', 'tmux unreachable'), text: L('Message vide ou trop long (4000 caractères au plus)', 'Empty or too long message (4000 characters at most)'), token: L('Page périmée : rechargez-la', 'Stale page: reload it'), waiting: L('Claude attend votre réponse dans le terminal (un menu est ouvert) : répondez-y là-bas', 'Claude is waiting for your answer in the terminal (a menu is open): answer it there'), busy: L('Claude travaille : vous pourrez écrire quand il aura fini', 'Claude is working: you can write when it is done'), changed: L('La session a changé pendant l\'envoi : le texte est resté dans le terminal, sans Entrée', 'The session changed while sending: the text stayed in the terminal, without Enter'), peer: L('Refusé : seul l\'utilisateur qui a lancé Agent Standup peut écrire', 'Refused: only the user who started Agent Standup can write'), platform: L('Pour l\'instant, l\'envoi ne marche que sous Linux', 'Sending works only on Linux for now') }[w] || L('Envoi impossible', 'Could not send'));
1650
+ let sayTick = 0;
1651
+ const sayStatus = (msg, err) => { const s = $('#sayS'), n = ++sayTick; s.textContent = ''; s.classList.toggle('err', !!err); if (msg) requestAnimationFrame(() => { if (n === sayTick) s.textContent = msg; }); }; // clear then set on the next frame: a repeated identical message is announced again
1652
+ const sayGrow = () => { const f = $('#sayT'); f.style.height = 'auto'; f.style.height = Math.min(f.scrollHeight + 2, 96) + 'px'; };
1653
+ async function sayCheck() { // can the followed session hear us: asked when the session changes and every 5 s while live
1654
+ const on = !!window.REPLY_TOKEN && S.live && !S.demo && !!S.cur && !TOOL[S.cur.proj]; document.body.classList.toggle('can-say', on); if (!on) return;
1655
+ const id = S.cur.id, n = ++sayReq; if (SAY.id !== id) { SAY.id = id; SAY.name = ''; SAY.why = ''; $('#sayL').textContent = ''; $('#sayT').disabled = true; $('#sayB').disabled = true; sayStatus('', false); } // another session: never show the old recipient
1656
+ let r = { ok: false, why: 'tmux' }; try { r = await (await fetch('/api/reply?id=' + encodeURIComponent(id))).json(); } catch {}
1657
+ if (n !== sayReq || !S.cur || S.cur.id !== id) return;
1658
+ SAY.name = r.name || L('la session', 'the session'); $('#sayL').textContent = L('À ', 'To ') + SAY.name; $('#sayB').textContent = L('Envoyer', 'Send');
1659
+ const why = !r.ok ? r.why || r.error : r.status === 'idle' ? '' : r.status === 'waiting' ? 'waiting' : 'busy', can = !why; $('#sayT').disabled = !can; if (!$('#sayB').classList.contains('busy')) $('#sayB').disabled = !can; // only at the prompt: a permission menu (waiting) or one opening during a turn (busy) would take the line as its answer
1660
+ if (why) { if (SAY.why !== why) sayStatus(sayWhy(why), false); } else if (SAY.why) sayStatus('', false); SAY.why = why;
1661
+ }
1662
+ setInterval(sayCheck, 5000);
1663
+ $('#say').onsubmit = async (ev) => {
1664
+ ev.preventDefault(); const f = $('#sayT'), b = $('#sayB'), text = f.value.trim(); if (!text || b.disabled || !S.cur) return;
1665
+ if (SAY.draft && SAY.draft !== S.cur.id) { SAY.draft = S.cur.id; sayStatus(L('Destinataire changé : ', 'Recipient changed: ') + (SAY.name || L('la session', 'the session')) + L('. Appuyez encore sur Entrée pour le lui envoyer.', '. Press Enter again to send it there.'), true); return; } // the draft was started for another session: asked once before it goes to this one
1666
+ const id = S.cur.id, name = SAY.name; b.disabled = true; b.classList.add('busy'); let r;
1667
+ try { r = await (await fetch('/api/reply', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id, text, token: window.REPLY_TOKEN }) })).json(); } catch { r = { error: 'net' }; }
1668
+ b.classList.remove('busy'); if (!S.cur || S.cur.id !== id) { if (r && (r.ok || r.error === 'changed') && f.value.trim() === text) { f.value = ''; SAY.draft = ''; sayGrow(); } sayCheck(); return; } // the call moved to another session meanwhile: sayCheck owns its state (button, status), the draft stays
1669
+ b.disabled = false;
1670
+ if (r && r.ok) { if (f.value.trim() === text) { f.value = ''; SAY.draft = ''; sayGrow(); } sayStatus(L('Envoyé à ', 'Sent to ') + name, false); } else { if (r && r.error === 'changed' && f.value.trim() === text) { f.value = ''; SAY.draft = ''; sayGrow(); } sayStatus(sayWhy(r && r.error), true); } // the typed text stays when it failed, except after changed: it is in the terminal prompt now, a second Send would type it again
1671
+ f.focus(); sayCheck();
1672
+ };
1673
+ $('#sayT').onkeydown = (e) => { if (e.key === 'Enter' && !e.shiftKey && !e.isComposing) { e.preventDefault(); $('#say').requestSubmit(); } }; // Shift+Enter: a new line, flattened by the server
1674
+ $('#sayT').oninput = () => { sayGrow(); SAY.draft = $('#sayT').value ? SAY.draft || (S.cur && S.cur.id) || '' : ''; };
1622
1675
  const modelShort = (m) => { const v = String(m || ''); if (!v || v[0] === '<') return ''; const c = /(opus|sonnet|haiku|fable)[-_ ]?(\d{1,2})(?:[-.](\d{1,2})(?!\d))?(?!\d)/i.exec(v); const o = /claude-(\d)(?:-(\d))?-(opus|sonnet|haiku)/i.exec(v), cap = (w) => w[0].toUpperCase() + w.slice(1).toLowerCase(); if (o) return cap(o[3]) + ' ' + o[1] + (o[2] ? '.' + o[2] : ''); const g = /^gpt-(\d+(?:\.\d+)?[a-z]?)(?:-(.+))?$/i.exec(v.replace(/^.*\//, '').replace(/-\d{4}-?\d{2}-?\d{2}$/, '')); if (g) return ('GPT-' + g[1].toLowerCase() + (g[2] ? ' ' + g[2].split('-').map((w) => (/^(mini|nano)$/i.test(w) ? w.toLowerCase() : cap(w))).join(' ') : '')).slice(0, 24); /* Codex: gpt-6-pro → GPT-6 Pro, gpt-5.1-codex-max → GPT-5.1 Codex Max, gpt-5-mini → GPT-5 mini */ return c ? cap(c[1]) + ' ' + c[2] + (c[3] ? '.' + c[3] : '') : v.replace(/^.*\//, '').replace(/-\d{8}$/, '').slice(0, 24); }; /* older ids put the version first: claude-3-5-sonnet → Sonnet 3.5 */ // claude-haiku-4-5-20251001 → Haiku 4.5
1623
1676
  const mixedModels = () => new Set(Object.keys(S.usage).filter((id) => S.agents[id] && S.model[id] && tokTotal(S.usage[id])).map((id) => modelShort(S.model[id])).filter(Boolean)).size > 1; // only then is the model worth a place next to the count
1624
1677
  const effortWord = (e) => ({ low: L('faible', 'low'), medium: L('moyen', 'medium'), high: L('élevé', 'high'), xhigh: L('très élevé', 'extra high'), max: L('maximal', 'max') }[e] || e); // the effort Claude Code says it worked at (written since 2.1.275; nothing from older versions)
@@ -1674,7 +1727,7 @@ function setFav(color) {
1674
1727
  const c = document.createElement('canvas'); c.width = c.height = 32; const g = c.getContext('2d'); try { g.drawImage(FAVI, 0, 0, 32, 32); } catch {} g.fillStyle = color; g.beginPath(); g.arc(24, 8, 8, 0, 7); g.fill(); g.strokeStyle = '#12131a'; g.lineWidth = 2; g.stroke(); l.href = c.toDataURL();
1675
1728
  }
1676
1729
  function updateTitle() {
1677
- paintStates(); if (S.live && S.nBlocked && !S.wasBlocked && prefs.notify) { AUD.alert(); const msg = L('Un agent attend peut-être votre feu vert ✋', 'An agent may be waiting for you ✋'); if (EMBED) window.parent.postMessage({ agentStandup: 'notify', text: msg }, '*'); else { try { if (document.hidden && 'Notification' in window && Notification.permission === 'granted') new Notification('Agent Standup', { body: msg }); } catch {} } } S.wasBlocked = S.nBlocked > 0;
1730
+ paintStates(); if (S.live && S.nBlocked && !S.wasBlocked && prefs.notify) { AUD.need(); const msg = L('Un agent attend peut-être votre feu vert ✋', 'An agent may be waiting for you ✋'); if (EMBED) window.parent.postMessage({ agentStandup: 'notify', text: msg }, '*'); else { try { if (document.hidden && 'Notification' in window && Notification.permission === 'granted') new Notification('Agent Standup', { body: msg }); } catch {} } } S.wasBlocked = S.nBlocked > 0;
1678
1731
  let n = 0; for (const id in S.status) if (S.status[id] === 'working' && !S.gone.has(id)) n++;
1679
1732
  if (S.live && S.agents.main && /^(working|waiting)$/.test(agentState('main', Date.now()).k)) n++; // the lead counts too: a session without sub-agents also ends
1680
1733
  const need = S.live ? Math.max(S.nBlocked || 0, attnItems(Date.now()).filter((x) => x.sure).length) : 0; // the tab counts every session that needs you, not only this one's agents (a menu really open, as the red icon always did)
@@ -2156,6 +2209,7 @@ function startTalk(id, text, label) {
2156
2209
  else { open = !open; m.setAttribute('ry', open ? 4.2 : 1.1); m.setAttribute('rx', open ? 4 : 4.7); if (pm) { pm.setAttribute('ry', open ? 4.2 : 1.1); pm.setAttribute('rx', open ? 4 : 4.7); } }
2157
2210
  }, 70));
2158
2211
  if (document.body.classList.contains('tree')) renderTree();
2212
+ gaze();
2159
2213
  }
2160
2214
 
2161
2215
  function thought(id, em) { const t = $('#t-' + id); if (!t || t.style.display === 'none') return; const el = t.querySelector('.thought'); el.textContent = em; el.classList.remove('go'); void el.offsetWidth; el.classList.add('go'); }
@@ -2173,11 +2227,17 @@ function stopTalk(id) {
2173
2227
  clearInterval(mouths.get(id)); mouths.delete(id); S.speakers.delete(id); if (!S.speakers.size) AUD.duck(false); if (S.focus === id && S.speakers.size) setFocus([...S.speakers][0]);
2174
2228
  if (S.present === id) { $('#pcap').textContent = ''; $('#pcam').classList.remove('speaking'); const pm = $('#pcam .mouthE'); if (pm) { pm.setAttribute('ry', .9); pm.setAttribute('rx', 4.6); } }
2175
2229
  const t = $('#t-' + id); if (!t) return;
2176
- t.classList.remove('speaking'); const m = t.querySelector('.mouthE'); if (m) { m.setAttribute('ry', .9); m.setAttribute('rx', 4.6); }
2230
+ gaze(); t.classList.remove('speaking'); const m = t.querySelector('.mouthE'); if (m) { m.setAttribute('ry', .9); m.setAttribute('rx', 4.6); }
2177
2231
  const ct = t.querySelector('.cimg-talk'); if (ct) { ct.style.display = 'none'; t.querySelector('.cimg').style.display = ''; }
2178
2232
  const pc = $('#pcam .cimg-talk'), pi = $('#pcam .cimg'); if (pc && pi && S.present === id) { pc.style.display = 'none'; pi.style.display = ''; }
2179
2233
  }
2180
2234
  const clearSpeaking = () => [...S.speakers].forEach(stopTalk);
2235
+ function gaze() { // the others turn their eyes to the one speaking, and back to the camera when the floor is free; after the spotlight has moved the tiles
2236
+ clearTimeout(gaze.t); gaze.t = setTimeout(() => {
2237
+ const sp = [...S.speakers][0], st = sp && $('#t-' + sp), r = st && st.getBoundingClientRect();
2238
+ for (const t of document.querySelectorAll('#stage .tile')) { let x = 0, y = 0; if (r && r.width && t !== st) { const q = t.getBoundingClientRect(), dx = r.left + r.width / 2 - (q.left + q.width / 2), dy = r.top + r.height / 2 - (q.top + q.height / 2), d = Math.hypot(dx, dy) || 1; x = dx / d; y = dy / d; } const lx = x.toFixed(2), ly = y.toFixed(2); if (t.style.getPropertyValue('--lx') !== lx) t.style.setProperty('--lx', lx); if (t.style.getPropertyValue('--ly') !== ly) t.style.setProperty('--ly', ly); }
2239
+ }, 250);
2240
+ }
2181
2241
  // =====================================================================
2182
2242
  // inner thoughts: an agent that has been at work for a while thinks to itself, in a bubble it does not say. What it thinks is real: its own reasoning when the session kept it
2183
2243
  // (rarely: Claude Code mostly stores a signature), otherwise what it is on right now (the command it waits for, the files it goes between, its to-do item, a failure, its task).
@@ -2903,7 +2963,7 @@ async function loadSession(proj, id) {
2903
2963
  const data = await (await fetch(`/api/session?proj=${encodeURIComponent(proj)}&id=${id}`)).json();
2904
2964
  if (mine !== S.loadN || data.error) return false;
2905
2965
  leadProject = data.project || null; clearTimeout(leadTimer); leadField(true);
2906
- S.term = {}; S.camFor = null; S.focus = null; S.agents = {}; S.cost = data.cost || null; for (const k in nameBook) delete nameBook[k]; const all = [{ id: 'user' }, ...data.agents]; for (const a of byBorn(all)) S.agents[a.id] = persona(twinOf(a)); S.agents = Object.fromEntries(all.map((a) => [a.id, S.agents[a.id]])); // named in the order they started, kept in the server's order
2966
+ S.term = {}; S.camFor = null; S.focus = null; S.agents = {}; S.cost = data.cost || null; for (const k in nameBook) delete nameBook[k]; const all = [{ id: 'user' }, ...data.agents]; S.soon = all; for (const a of byBorn(all)) S.agents[a.id] = persona(twinOf(a)); S.soon = null; S.agents = Object.fromEntries(all.map((a) => [a.id, S.agents[a.id]])); // named in the order they started, kept in the server's order
2907
2967
  clearThoughts(); Object.assign(TH, { since: {}, next: {}, said: {}, last: 0 }); S.events = data.events; stampT(0); S.byK = new Map(data.events.map((e) => [e.k, e])); S.seq = data.seq || 0; S.ep = data.ep || ''; S.sawEnd = !!data.marks || data.events.some((e) => e.end); S.late = []; S.pos = 0; S.joinAt = Date.now(); S.idx = 0; S.status = {}; S.tc = {}; S.cur = { proj, id }; S.logTo = 0; S.detail = null; $('#detail').classList.remove('on'); S.fgone = new Set(); S.fmade = new Map(); S.artOk = new Map(); S.artPin = null; S.artWhole = null; S.wholeSeen = new Set();
2908
2968
  const opt = $('#sessions').selectedOptions[0]; S.title = (S.live ? niceProj(proj) : opt && opt.dataset.title) || '';
2909
2969
  if (proj === '_demo') S.events.forEach((e) => { if (e.fr) trMem.set(baseText(e), e.fr, 'fr'); }); // the demo ships its own French
@@ -2925,7 +2985,7 @@ async function followCurrent() {
2925
2985
  if (S.cur && S.cur.id === cur.id && S.cur.proj === cur.proj) return false;
2926
2986
  const key = cur.proj + '/' + cur.id, was = S.lastKey, moved = !!was && was !== key && !S.locked; if (moved) S.left[was] = Date.now(); // what was said of the session the call leaves is not said again when it comes back to it
2927
2987
  if (!(await loadSession(cur.proj, cur.id))) return false;
2928
- S.lastKey = key; if (moved) { const r = rowOf(cur); toast('↪ ' + (r ? tabName(r) : niceProj(cur.proj))); } paintTabs(); sessPoll();
2988
+ S.lastKey = key; if (moved) { const r = rowOf(cur); toast('↪ ' + (r ? tabName(r) : niceProj(cur.proj))); } paintTabs(); sessPoll(); sayCheck();
2929
2989
  const start = liveStart(); if (!S.locked && !S.userPaused) run(start); return true;
2930
2990
  }
2931
2991
  // Live: a call starts when you join it. Only what happened since then, and was not said yet, is said (the last 16 events at most, when a session is picked up on the way);
@@ -2961,7 +3021,7 @@ setInterval(async () => {
2961
3021
  if ('project' in d && (d.project || {}).key !== (leadProject || {}).key) { leadProject = d.project || null; clearTimeout(leadTimer); leadField(true); renameLead(); } // the first cwd can arrive after the call opens, even without a new event
2962
3022
  S.seq = d.seq; if (d.marks) S.sawEnd = true; if (d.cost && (!S.cost || d.cost.usd !== S.cost.usd || d.cost.final !== S.cost.final)) { S.cost = d.cost; later('tok', renderTokens, 300); } if (!d.events || !d.events.length) return;
2963
3023
  for (const a of d.agents) if (a.born && S.agents[a.id] && !S.agents[a.id].born) S.agents[a.id].born = a.born; /* seen before its first line was read: its start time now, for the next renaming */
2964
- for (const a of byBorn(d.agents.filter((x) => !S.agents[x.id]))) { S.agents[a.id] = persona(twinOf(a)); addTile(S.agents[a.id]); } // several new at once: named in the order they started, as a reload names them
3024
+ S.soon = d.agents.filter((x) => !S.agents[x.id]); for (const a of byBorn(S.soon)) { S.agents[a.id] = persona(twinOf(a)); addTile(S.agents[a.id]); } S.soon = null; // several new at once: named in the order they started, as a reload names them
2965
3025
  const from = S.events.length, fresh = [], changed = []; // the session is not written in order: what is new goes at the end (the order the call got it in), what the server corrected is corrected in place
2966
3026
  for (const e of d.events) { const old = S.byK.get(e.k); if (old && old.tools && e.tools) e.tools = e.tools.map((t, j) => (old.tools[j] && old.tools[j].id === t.id ? Object.assign(old.tools[j], t) : t)); /* a call sent again (its plan named by the answer): the same object, which the shared screen holds */
2967
3027
  if (old) { changed.push([old, { kind: old.kind, n: old.tools ? old.tools.length : 0, end: old.end }]); Object.assign(old, e); } else { S.byK.set(e.k, e); fresh.push(e); } }
@@ -3305,7 +3365,7 @@ setInterval(() => {
3305
3365
  const busy = ids.filter((id) => agentState(id, Date.now()).k === 'working'), from = busy.length ? busy : ids, id = from[Math.floor(Math.random() * from.length)], t = $('#t-' + id);
3306
3366
  LAP.id = id; t.classList.add('lap'); setTimeout(() => { t.classList.add('lapout'); setTimeout(() => { t.classList.remove('lap', 'lapout'); LAP.id = ''; }, 450); }, 7000 + Math.random() * 7000);
3307
3367
  }, 5000);
3308
- async function reloadChars() { await loadChars(); for (const k in imgCache) delete imgCache[k]; for (const id in S.agents) S.agents[id].custom = null; for (const id in S.agents) S.agents[id].custom = customFor(id); buildStage(); paintStatus(); packNote(); await renderCharInfo(); }
3368
+ async function reloadChars() { await loadChars(); for (const k in imgCache) delete imgCache[k]; for (const id in S.agents) S.agents[id].custom = null; for (const id in S.agents) S.agents[id].custom = customFor(S.agents[id].twin ? 'main' : id); buildStage(); paintStatus(); packNote(); await renderCharInfo(); }
3309
3369
  $('#charPick').onclick = () => { $('#menu').classList.remove('on'); CHPICK.more = ''; openChars(); };
3310
3370
  const packShut = () => { prefs.packOpen = false; savePrefs(); packNote(); voiceOffer(); };
3311
3371
  $('#packNoteB').onclick = $('#packNoteI').onclick = () => { packShut(); CHPICK.more = 'halloween'; openChars(); };
@@ -91,6 +91,8 @@
91
91
  "Lead": "Leder",
92
92
  "Lead context": "Lederens kontekst",
93
93
  "lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth": "lead.png = lederen · you.png = dig · øvrige = underagenterne · navn-talk.png = åben mund",
94
+ "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it": "qa.png = underagenten ved navn qa (.claude/agents/qa.md) · qa-2.png = et andet udseende af den",
95
+ "In this call, without a picture of their own: ": "I dette opkald, uden eget billede: ",
94
96
  "left the call": "forlod opkaldet",
95
97
  "lines": "linjer",
96
98
  "Listing ": "Viser ",
@@ -430,6 +432,23 @@
430
432
  "Set in the editor’s settings (agentStandup.leadName)": "Valgt i editorens indstillinger (agentStandup.leadName)",
431
433
  "Costume": "Kostume",
432
434
  "Your vampire comes from the Halloween pack, drawn by hand by Fabien Coupas. The rest of the cast is in it too.": "Din vampyr kommer fra halloween-pakken, tegnet i hånden af Fabien Coupas. Resten af holdet er også med.",
435
+ ". Press Enter again to send it there.": ". Tryk Enter igen for at sende den dertil.",
436
+ "Claude is waiting for your answer in the terminal (a menu is open): answer it there": "Claude venter på dit svar i terminalen (en menu er åben): svar dér",
437
+ "Could not send": "Kunne ikke sende",
438
+ "Empty or too long message (4000 characters at most)": "Tom eller for lang besked (højst 4000 tegn)",
439
+ "Recipient changed: ": "Modtager ændret: ",
440
+ "Send": "Send",
441
+ "Sent to ": "Sendt til ",
442
+ "Session closed: nothing can receive the message": "Session lukket: intet kan modtage beskeden",
443
+ "Session started outside tmux: start it in tmux to talk to it": "Session startet uden for tmux: start den i tmux for at tale med den",
444
+ "Stale page: reload it": "Forældet side: genindlæs den",
445
+ "the session": "sessionen",
446
+ "tmux unreachable": "tmux kan ikke nås",
447
+ "To ": "Til ",
448
+ "Claude is working: you can write when it is done": "Claude arbejder: du kan skrive, når han er færdig",
449
+ "The session changed while sending: the text stayed in the terminal, without Enter": "Sessionen ændrede sig under afsendelsen: teksten blev i terminalen, uden Enter",
450
+ "Refused: only the user who started Agent Standup can write": "Afvist: kun den bruger, der startede Agent Standup, kan skrive",
451
+ "Sending works only on Linux for now": "Afsendelse virker indtil videre kun på Linux",
433
452
  "Name for this project": "Navn til dette projekt",
434
453
  "Empty: use the default name.": "Tomt: brug standardnavnet.",
435
454
  "Open a project to choose its name.": "Åbn et projekt for at vælge dets navn.",
@@ -177,6 +177,8 @@
177
177
  "Open folder": "Ordner öffnen",
178
178
  "Demo": "Demo",
179
179
  "lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth": "lead.png = Hauptagent · you.png = du · andere = Subagenten · name-talk.png = offener Mund",
180
+ "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it": "qa.png = der Subagent namens qa (.claude/agents/qa.md) · qa-2.png = ein anderes Aussehen von ihm",
181
+ "In this call, without a picture of their own: ": "In diesem Call, ohne eigenes Bild: ",
180
182
  "Downloading, you can carry on: the agents babble meanwhile.": "Wird heruntergeladen, du kannst weitermachen: bis dahin brabbeln die Agenten.",
181
183
  "Good-quality local voices, in English. Free, nothing leaves your machine.": "Lokale Stimmen in guter Qualität, auf Englisch. Kostenlos, nichts verlässt deinen Rechner.",
182
184
  "Add the voices of this language": "Stimmen für diese Sprache hinzufügen",
@@ -431,6 +433,23 @@
431
433
  "Set in the editor’s settings (agentStandup.leadName)": "In den Einstellungen des Editors festgelegt (agentStandup.leadName)",
432
434
  "Costume": "Kostüm",
433
435
  "Your vampire comes from the Halloween pack, drawn by hand by Fabien Coupas. The rest of the cast is in it too.": "Dein Vampir stammt aus dem Halloween-Paket, von Hand gezeichnet von Fabien Coupas. Der Rest der Besetzung ist auch darin.",
436
+ ". Press Enter again to send it there.": ". Drücke erneut Enter, um sie dorthin zu senden.",
437
+ "Claude is waiting for your answer in the terminal (a menu is open): answer it there": "Claude wartet im Terminal auf deine Antwort (ein Menü ist offen): antworte dort",
438
+ "Could not send": "Senden nicht möglich",
439
+ "Empty or too long message (4000 characters at most)": "Nachricht leer oder zu lang (höchstens 4000 Zeichen)",
440
+ "Recipient changed: ": "Empfänger geändert: ",
441
+ "Send": "Senden",
442
+ "Sent to ": "Gesendet an ",
443
+ "Session closed: nothing can receive the message": "Sitzung geschlossen: nichts kann die Nachricht empfangen",
444
+ "Session started outside tmux: start it in tmux to talk to it": "Sitzung außerhalb von tmux gestartet: starte sie in tmux, um mit ihr zu sprechen",
445
+ "Stale page: reload it": "Seite veraltet: lade sie neu",
446
+ "the session": "die Sitzung",
447
+ "tmux unreachable": "tmux nicht erreichbar",
448
+ "To ": "An ",
449
+ "Claude is working: you can write when it is done": "Claude arbeitet: du kannst schreiben, wenn er fertig ist",
450
+ "The session changed while sending: the text stayed in the terminal, without Enter": "Die Sitzung hat sich beim Senden geändert: der Text blieb im Terminal, ohne Enter",
451
+ "Refused: only the user who started Agent Standup can write": "Abgelehnt: nur der Benutzer, der Agent Standup gestartet hat, kann schreiben",
452
+ "Sending works only on Linux for now": "Senden funktioniert vorerst nur unter Linux",
434
453
  "Name for this project": "Name für dieses Projekt",
435
454
  "Empty: use the default name.": "Leer: Standardnamen verwenden.",
436
455
  "Open a project to choose its name.": "Öffne ein Projekt, um seinen Namen zu wählen.",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  " full — compaction soon": " full — compaction soon",
3
3
  " on ": " on ",
4
+ ". Press Enter again to send it there.": ". Press Enter again to send it there.",
4
5
  "”": "”",
5
6
  "{0} and the team are done. If the call helped you follow this run, a coffee keeps Agent Standup going. (We only ask once.)": "{0} and the team are done. If the call helped you follow this run, a coffee keeps Agent Standup going. (We only ask once.)",
6
7
  "{0} failures in a row": "{0} failures in a row",
@@ -74,6 +75,8 @@
74
75
  "Claude Code is not logged in: run “claude” once in a terminal to sign in.": "Claude Code is not logged in: run “claude” once in a terminal to sign in.",
75
76
  "Claude Code is open in {0} but saves no history (CLAUDE_CODE_SKIP_PROMPT_HISTORY is set), so Agent Standup cannot follow it.": "Claude Code is open in {0} but saves no history (CLAUDE_CODE_SKIP_PROMPT_HISTORY is set), so Agent Standup cannot follow it.",
76
77
  "Claude Code not found: install it (npm i -g @anthropic-ai/claude-code) or set its path in the “agentStandup.claudePath” setting.": "Claude Code not found: install it (npm i -g @anthropic-ai/claude-code) or set its path in the “agentStandup.claudePath” setting.",
78
+ "Claude is waiting for your answer in the terminal (a menu is open): answer it there": "Claude is waiting for your answer in the terminal (a menu is open): answer it there",
79
+ "Claude is working: you can write when it is done": "Claude is working: you can write when it is done",
77
80
  "Claude usage limit: {0} sessions stopped": "Claude usage limit: {0} sessions stopped",
78
81
  "Click again to reset them all": "Click again to reset them all",
79
82
  "Click to enlarge": "Click to enlarge",
@@ -93,6 +96,7 @@
93
96
  "cost": "cost",
94
97
  "Costume": "Costume",
95
98
  "Could not open the folder": "Could not open the folder",
99
+ "Could not send": "Could not send",
96
100
  "Count me in": "Count me in",
97
101
  "Counted by Claude Code, sub-agents included": "Counted by Claude Code, sub-agents included",
98
102
  "Demo": "Demo",
@@ -111,6 +115,7 @@
111
115
  "Editing ": "Editing ",
112
116
  "Editor": "Editor",
113
117
  "effort": "effort",
118
+ "Empty or too long message (4000 characters at most)": "Empty or too long message (4000 characters at most)",
114
119
  "Empty: use the default name.": "Empty: use the default name.",
115
120
  "Enjoying Agent Standup? A star on GitHub helps other people find it.": "Enjoying Agent Standup? A star on GitHub helps other people find it.",
116
121
  "Entirely optional: the app stays free. It is a way to support the artist and the developer.": "Entirely optional: the app stays free. It is a way to support the artist and the developer.",
@@ -164,6 +169,7 @@
164
169
  "Human": "Human",
165
170
  "I already bought it": "I already bought it",
166
171
  "idle": "idle",
172
+ "In this call, without a picture of their own: ": "In this call, without a picture of their own: ",
167
173
  "input": "input",
168
174
  "Install": "Install",
169
175
  "Install ({0} MB)": "Install ({0} MB)",
@@ -268,6 +274,7 @@
268
274
  "proposes this plan": "proposes this plan",
269
275
  "Publishing ": "Publishing ",
270
276
  "Purchase code": "Purchase code",
277
+ "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it": "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it",
271
278
  "Quiet": "Quiet",
272
279
  "Radio unreachable: check your connection or pick another station.": "Radio unreachable: check your connection or pick another station.",
273
280
  "Reactions": "Reactions",
@@ -280,6 +287,8 @@
280
287
  "READY": "READY",
281
288
  "Recap": "Recap",
282
289
  "Recent activity": "Recent activity",
290
+ "Recipient changed: ": "Recipient changed: ",
291
+ "Refused: only the user who started Agent Standup can write": "Refused: only the user who started Agent Standup can write",
283
292
  "Reload": "Reload",
284
293
  "Remove": "Remove",
285
294
  "Remove CLAUDE_CODE_SKIP_PROMPT_HISTORY from your shell profile, then start Claude Code again.": "Remove CLAUDE_CODE_SKIP_PROMPT_HISTORY from your shell profile, then start Claude Code again.",
@@ -319,7 +328,12 @@
319
328
  "Searching “": "Searching “",
320
329
  "See the pack": "See the pack",
321
330
  "Select the command": "Select the command",
331
+ "Send": "Send",
332
+ "Sending works only on Linux for now": "Sending works only on Linux for now",
333
+ "Sent to ": "Sent to ",
322
334
  "session": "session",
335
+ "Session closed: nothing can receive the message": "Session closed: nothing can receive the message",
336
+ "Session started outside tmux: start it in tmux to talk to it": "Session started outside tmux: start it in tmux to talk to it",
323
337
  "Sessions": "Sessions",
324
338
  "Set in the editor’s settings (agentStandup.leadName)": "Set in the editor’s settings (agentStandup.leadName)",
325
339
  "Settings": "Settings",
@@ -335,6 +349,7 @@
335
349
  "Speed": "Speed",
336
350
  "Speed presets": "Speed presets",
337
351
  "Spotted in the session itself, with no model call.": "Spotted in the session itself, with no model call.",
352
+ "Stale page: reload it": "Stale page: reload it",
338
353
  "stalled": "stalled",
339
354
  "stalled · ": "stalled · ",
340
355
  "stalled: a sub-agent has been silent for a long time": "stalled: a sub-agent has been silent for a long time",
@@ -359,6 +374,8 @@
359
374
  "The hand-drawn Halloween pack": "The hand-drawn Halloween pack",
360
375
  "the latest session written": "the latest session written",
361
376
  "the numbers match the menu": "the numbers match the menu",
377
+ "the session": "the session",
378
+ "The session changed while sending: the text stayed in the terminal, without Enter": "The session changed while sending: the text stayed in the terminal, without Enter",
362
379
  "The shop cannot be reached. Check your connection and try again.": "The shop cannot be reached. Check your connection and try again.",
363
380
  "The shop is not open yet.": "The shop is not open yet.",
364
381
  "The vampire": "The vampire",
@@ -371,7 +388,9 @@
371
388
  "This picture could not be added: PNG, GIF, WebP or JPEG, up to 300 KB.": "This picture could not be added: PNG, GIF, WebP or JPEG, up to 300 KB.",
372
389
  "This purchase was refunded.": "This purchase was refunded.",
373
390
  "Time": "Time",
391
+ "tmux unreachable": "tmux unreachable",
374
392
  "to": "to",
393
+ "To ": "To ",
375
394
  "To sum up: ": "To sum up: ",
376
395
  "To tweak them, copy them into your folder and pick “My folder”.": "To tweak them, copy them into your folder and pick “My folder”.",
377
396
  "tokens": "tokens",
@@ -177,6 +177,8 @@
177
177
  "Open folder": "Abrir carpeta",
178
178
  "Demo": "Demo",
179
179
  "lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth": "lead.png = el agente principal · you.png = tú · el resto = los subagentes · name-talk.png = boca abierta",
180
+ "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it": "qa.png = el subagente llamado qa (.claude/agents/qa.md) · qa-2.png = otro aspecto suyo",
181
+ "In this call, without a picture of their own: ": "En esta llamada, sin imagen propia: ",
180
182
  "Downloading, you can carry on: the agents babble meanwhile.": "Descargando, puedes seguir: mientras tanto los agentes balbucean.",
181
183
  "Good-quality local voices, in English. Free, nothing leaves your machine.": "Voces locales de buena calidad, en inglés. Gratis, nada sale de tu equipo.",
182
184
  "Add the voices of this language": "Añadir las voces en español",
@@ -431,6 +433,23 @@
431
433
  "Set in the editor’s settings (agentStandup.leadName)": "Elegido en los ajustes del editor (agentStandup.leadName)",
432
434
  "Costume": "Disfraz",
433
435
  "Your vampire comes from the Halloween pack, drawn by hand by Fabien Coupas. The rest of the cast is in it too.": "Tu vampiro viene del pack de Halloween, dibujado a mano por Fabien Coupas. El resto del reparto también está en él.",
436
+ ". Press Enter again to send it there.": ". Pulsa Enter de nuevo para enviarlo allí.",
437
+ "Claude is waiting for your answer in the terminal (a menu is open): answer it there": "Claude espera tu respuesta en el terminal (hay un menú abierto): responde allí",
438
+ "Could not send": "No se pudo enviar",
439
+ "Empty or too long message (4000 characters at most)": "Mensaje vacío o demasiado largo (4000 caracteres como máximo)",
440
+ "Recipient changed: ": "Destinatario cambiado: ",
441
+ "Send": "Enviar",
442
+ "Sent to ": "Enviado a ",
443
+ "Session closed: nothing can receive the message": "Sesión cerrada: nada puede recibir el mensaje",
444
+ "Session started outside tmux: start it in tmux to talk to it": "Sesión iniciada fuera de tmux: iníciala en tmux para hablarle",
445
+ "Stale page: reload it": "Página obsoleta: recárgala",
446
+ "the session": "la sesión",
447
+ "tmux unreachable": "tmux inaccesible",
448
+ "To ": "A ",
449
+ "Claude is working: you can write when it is done": "Claude está trabajando: podrás escribir cuando termine",
450
+ "The session changed while sending: the text stayed in the terminal, without Enter": "La sesión cambió durante el envío: el texto quedó en el terminal, sin Enter",
451
+ "Refused: only the user who started Agent Standup can write": "Rechazado: solo el usuario que inició Agent Standup puede escribir",
452
+ "Sending works only on Linux for now": "Por ahora, el envío solo funciona en Linux",
434
453
  "Name for this project": "Nombre para este proyecto",
435
454
  "Empty: use the default name.": "Vacío: usar el nombre predeterminado.",
436
455
  "Open a project to choose its name.": "Abre un proyecto para elegir su nombre.",
@@ -177,6 +177,8 @@
177
177
  "Open folder": "フォルダを開く",
178
178
  "Demo": "デモ",
179
179
  "lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth": "lead.png = メインエージェント · you.png = あなた · それ以外 = サブエージェント · name-talk.png = 口を開けた状態",
180
+ "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it": "qa.png = qa という名前のサブエージェント (.claude/agents/qa.md) · qa-2.png = その別の見た目",
181
+ "In this call, without a picture of their own: ": "この通話で、自分の画像がないもの: ",
180
182
  "Downloading, you can carry on: the agents babble meanwhile.": "ダウンロード中です。そのまま続けられます。その間、エージェントはおしゃべり音で話します。",
181
183
  "Good-quality local voices, in English. Free, nothing leaves your machine.": "品質の良いローカル音声(英語)。無料で、データがPCの外に出ることはありません。",
182
184
  "Add the voices of this language": "この言語の音声を追加",
@@ -431,6 +433,23 @@
431
433
  "Set in the editor’s settings (agentStandup.leadName)": "エディターの設定で指定されています(agentStandup.leadName)",
432
434
  "Costume": "衣装",
433
435
  "Your vampire comes from the Halloween pack, drawn by hand by Fabien Coupas. The rest of the cast is in it too.": "あなたのヴァンパイアは、Fabien Coupas が手描きしたハロウィンパックのキャラクターです。ほかのメンバーもパックに入っています。",
436
+ ". Press Enter again to send it there.": "。もう一度 Enter を押すと、そちらに送信します。",
437
+ "Claude is waiting for your answer in the terminal (a menu is open): answer it there": "Claude はターミナルであなたの返答を待っています(メニューが開いています)。そちらで答えてください",
438
+ "Could not send": "送信できませんでした",
439
+ "Empty or too long message (4000 characters at most)": "メッセージが空か長すぎます(最大4000文字)",
440
+ "Recipient changed: ": "宛先が変わりました: ",
441
+ "Send": "送信",
442
+ "Sent to ": "送信先: ",
443
+ "Session closed: nothing can receive the message": "セッション終了:メッセージを受け取れるものがありません",
444
+ "Session started outside tmux: start it in tmux to talk to it": "tmux の外で起動したセッション:話しかけるには tmux 内で起動してください",
445
+ "Stale page: reload it": "ページが古くなっています:再読み込みしてください",
446
+ "the session": "セッション",
447
+ "tmux unreachable": "tmux に接続できません",
448
+ "To ": "宛先: ",
449
+ "Claude is working: you can write when it is done": "Claude は作業中です。終わったら書き込めます",
450
+ "The session changed while sending: the text stayed in the terminal, without Enter": "送信中にセッションが変わりました。テキストは Enter なしでターミナルに残っています",
451
+ "Refused: only the user who started Agent Standup can write": "拒否されました:Agent Standup を起動したユーザーだけが書き込めます",
452
+ "Sending works only on Linux for now": "送信は今のところ Linux でのみ動作します",
434
453
  "Name for this project": "このプロジェクトでの名前",
435
454
  "Empty: use the default name.": "空欄の場合はデフォルトの名前を使用します。",
436
455
  "Open a project to choose its name.": "プロジェクトを開いて名前を設定してください。",
@@ -177,6 +177,8 @@
177
177
  "Open folder": "폴더 열기",
178
178
  "Demo": "데모",
179
179
  "lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth": "lead.png = 메인 에이전트 · you.png = 나 · 나머지 = 서브에이전트 · name-talk.png = 입을 벌린 모습",
180
+ "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it": "qa.png = 이름이 qa인 하위 에이전트 (.claude/agents/qa.md) · qa-2.png = 그 에이전트의 다른 모습",
181
+ "In this call, without a picture of their own: ": "이 통화에서 자기 이미지가 없는 에이전트: ",
180
182
  "Downloading, you can carry on: the agents babble meanwhile.": "다운로드 중입니다. 계속 진행하셔도 됩니다. 그동안 에이전트는 옹알이로 말합니다.",
181
183
  "Good-quality local voices, in English. Free, nothing leaves your machine.": "품질 좋은 로컬 음성으로, 영어입니다. 무료이며 아무것도 컴퓨터 밖으로 전송되지 않습니다.",
182
184
  "Add the voices of this language": "이 언어의 음성 추가",
@@ -431,6 +433,23 @@
431
433
  "Set in the editor’s settings (agentStandup.leadName)": "에디터 설정에서 지정됨 (agentStandup.leadName)",
432
434
  "Costume": "의상",
433
435
  "Your vampire comes from the Halloween pack, drawn by hand by Fabien Coupas. The rest of the cast is in it too.": "당신의 뱀파이어는 Fabien Coupas가 손으로 그린 핼러윈 팩에서 왔어요. 나머지 캐스트도 팩에 있어요.",
436
+ ". Press Enter again to send it there.": ". Enter를 다시 누르면 그쪽으로 보냅니다.",
437
+ "Claude is waiting for your answer in the terminal (a menu is open): answer it there": "Claude가 터미널에서 답변을 기다리고 있습니다(메뉴가 열려 있음): 그곳에서 답하세요",
438
+ "Could not send": "보낼 수 없습니다",
439
+ "Empty or too long message (4000 characters at most)": "메시지가 비었거나 너무 깁니다(최대 4000자)",
440
+ "Recipient changed: ": "수신자 변경됨: ",
441
+ "Send": "보내기",
442
+ "Sent to ": "보낸 곳: ",
443
+ "Session closed: nothing can receive the message": "세션 종료됨: 메시지를 받을 대상이 없습니다",
444
+ "Session started outside tmux: start it in tmux to talk to it": "tmux 밖에서 시작된 세션: 대화하려면 tmux 안에서 시작하세요",
445
+ "Stale page: reload it": "오래된 페이지: 새로 고치세요",
446
+ "the session": "세션",
447
+ "tmux unreachable": "tmux에 연결할 수 없습니다",
448
+ "To ": "받는 사람: ",
449
+ "Claude is working: you can write when it is done": "Claude가 작업 중입니다: 끝나면 작성할 수 있습니다",
450
+ "The session changed while sending: the text stayed in the terminal, without Enter": "전송 중에 세션이 바뀌었습니다: 텍스트는 Enter 없이 터미널에 남아 있습니다",
451
+ "Refused: only the user who started Agent Standup can write": "거부됨: Agent Standup을 실행한 사용자만 작성할 수 있습니다",
452
+ "Sending works only on Linux for now": "전송은 현재 Linux에서만 작동합니다",
434
453
  "Name for this project": "이 프로젝트에서 사용할 이름",
435
454
  "Empty: use the default name.": "비워 두면 기본 이름을 사용합니다.",
436
455
  "Open a project to choose its name.": "프로젝트를 열어 이름을 설정하세요.",
@@ -15,6 +15,8 @@
15
15
  "Open folder": "Abrir pasta",
16
16
  "Demo": "Demo",
17
17
  "lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth": "lead.png = o agente principal · you.png = você · outros = os subagentes · name-talk.png = boca aberta",
18
+ "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it": "qa.png = o subagente chamado qa (.claude/agents/qa.md) · qa-2.png = outra aparência dele",
19
+ "In this call, without a picture of their own: ": "Nesta chamada, sem imagem própria: ",
18
20
  " full — compaction soon": " cheio — compactação em breve",
19
21
  "”": "”",
20
22
  "↗ Open in browser": "↗ Abrir no navegador",
@@ -431,6 +433,23 @@
431
433
  "Set in the editor’s settings (agentStandup.leadName)": "Definido nas configurações do editor (agentStandup.leadName)",
432
434
  "Costume": "Fantasia",
433
435
  "Your vampire comes from the Halloween pack, drawn by hand by Fabien Coupas. The rest of the cast is in it too.": "Seu vampiro vem do pacote de Halloween, desenhado à mão por Fabien Coupas. O resto do elenco também está nele.",
436
+ ". Press Enter again to send it there.": ". Pressione Enter de novo para enviá-lo para lá.",
437
+ "Claude is waiting for your answer in the terminal (a menu is open): answer it there": "O Claude aguarda sua resposta no terminal (um menu está aberto): responda lá",
438
+ "Could not send": "Não foi possível enviar",
439
+ "Empty or too long message (4000 characters at most)": "Mensagem vazia ou longa demais (no máximo 4000 caracteres)",
440
+ "Recipient changed: ": "Destinatário alterado: ",
441
+ "Send": "Enviar",
442
+ "Sent to ": "Enviado para ",
443
+ "Session closed: nothing can receive the message": "Sessão encerrada: nada pode receber a mensagem",
444
+ "Session started outside tmux: start it in tmux to talk to it": "Sessão iniciada fora do tmux: inicie-a no tmux para falar com ela",
445
+ "Stale page: reload it": "Página desatualizada: recarregue-a",
446
+ "the session": "a sessão",
447
+ "tmux unreachable": "tmux inacessível",
448
+ "To ": "Para ",
449
+ "Claude is working: you can write when it is done": "O Claude está trabalhando: você poderá escrever quando ele terminar",
450
+ "The session changed while sending: the text stayed in the terminal, without Enter": "A sessão mudou durante o envio: o texto ficou no terminal, sem Enter",
451
+ "Refused: only the user who started Agent Standup can write": "Recusado: só o usuário que iniciou o Agent Standup pode escrever",
452
+ "Sending works only on Linux for now": "Por enquanto, o envio só funciona no Linux",
434
453
  "Name for this project": "Nome para este projeto",
435
454
  "Empty: use the default name.": "Vazio: usar o nome padrão.",
436
455
  "Open a project to choose its name.": "Abra um projeto para escolher seu nome.",
@@ -177,6 +177,8 @@
177
177
  "Open folder": "打开文件夹",
178
178
  "Demo": "演示",
179
179
  "lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth": "lead.png = 主代理 · you.png = 你 · 其他 = 子代理 · name-talk.png = 张嘴",
180
+ "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it": "qa.png = 名为 qa 的子代理 (.claude/agents/qa.md) · qa-2.png = 它的另一种形象",
181
+ "In this call, without a picture of their own: ": "本次通话中还没有专属图片的: ",
180
182
  "Downloading, you can carry on: the agents babble meanwhile.": "正在下载,你可以继续:在此期间代理会用咿呀语说话。",
181
183
  "Good-quality local voices, in English. Free, nothing leaves your machine.": "高质量的本地语音,仅英语。免费,数据不会离开你的电脑。",
182
184
  "Add the voices of this language": "添加此语言的语音",
@@ -431,6 +433,23 @@
431
433
  "Set in the editor’s settings (agentStandup.leadName)": "已在编辑器设置中指定(agentStandup.leadName)",
432
434
  "Costume": "装扮",
433
435
  "Your vampire comes from the Halloween pack, drawn by hand by Fabien Coupas. The rest of the cast is in it too.": "你的吸血鬼来自万圣节礼包,由 Fabien Coupas 手绘。其余角色也在礼包里。",
436
+ ". Press Enter again to send it there.": "。再按一次 Enter 即可发送到那里。",
437
+ "Claude is waiting for your answer in the terminal (a menu is open): answer it there": "Claude 正在终端中等待你的回答(菜单已打开):请在那里回答",
438
+ "Could not send": "无法发送",
439
+ "Empty or too long message (4000 characters at most)": "消息为空或过长(最多 4000 个字符)",
440
+ "Recipient changed: ": "收件人已更改: ",
441
+ "Send": "发送",
442
+ "Sent to ": "已发送给 ",
443
+ "Session closed: nothing can receive the message": "会话已关闭:没有可接收消息的对象",
444
+ "Session started outside tmux: start it in tmux to talk to it": "会话在 tmux 之外启动:请在 tmux 中启动后再与它对话",
445
+ "Stale page: reload it": "页面已过期:请重新加载",
446
+ "the session": "该会话",
447
+ "tmux unreachable": "无法连接 tmux",
448
+ "To ": "发给 ",
449
+ "Claude is working: you can write when it is done": "Claude 正在工作:等它完成后你就可以输入",
450
+ "The session changed while sending: the text stayed in the terminal, without Enter": "发送时会话发生了变化:文本留在终端中,未按 Enter",
451
+ "Refused: only the user who started Agent Standup can write": "已拒绝:只有启动 Agent Standup 的用户才能输入",
452
+ "Sending works only on Linux for now": "目前仅在 Linux 上可以发送",
434
453
  "Name for this project": "此项目的名称",
435
454
  "Empty: use the default name.": "留空则使用默认名称。",
436
455
  "Open a project to choose its name.": "打开项目以设置名称。",
@@ -67,6 +67,8 @@
67
67
  "Open folder": "開啟資料夾",
68
68
  "Demo": "示範",
69
69
  "lead.png = the lead · you.png = you · others = the sub-agents · name-talk.png = open mouth": "lead.png = 主代理 · you.png = 你 · 其他 = 子代理 · name-talk.png = 張嘴畫面",
70
+ "qa.png = the sub-agent named qa (.claude/agents/qa.md) · qa-2.png = another look of it": "qa.png = 名為 qa 的子代理 (.claude/agents/qa.md) · qa-2.png = 它的另一種造型",
71
+ "In this call, without a picture of their own: ": "本次通話中還沒有專屬圖片的: ",
70
72
  "failing in a loop?": "卡在失敗迴圈?",
71
73
  "Fetching ": "擷取 ",
72
74
  "files": "檔案",
@@ -431,6 +433,23 @@
431
433
  "Set in the editor’s settings (agentStandup.leadName)": "已在編輯器設定中指定(agentStandup.leadName)",
432
434
  "Costume": "裝扮",
433
435
  "Your vampire comes from the Halloween pack, drawn by hand by Fabien Coupas. The rest of the cast is in it too.": "你的吸血鬼來自萬聖節禮包,由 Fabien Coupas 手繪。其餘角色也在禮包裡。",
436
+ ". Press Enter again to send it there.": "。再按一次 Enter 即可傳送到那裡。",
437
+ "Claude is waiting for your answer in the terminal (a menu is open): answer it there": "Claude 正在終端機中等待你的回答(選單已開啟):請在那裡回答",
438
+ "Could not send": "無法傳送",
439
+ "Empty or too long message (4000 characters at most)": "訊息為空或過長(最多 4000 個字元)",
440
+ "Recipient changed: ": "收件者已變更: ",
441
+ "Send": "傳送",
442
+ "Sent to ": "已傳送給 ",
443
+ "Session closed: nothing can receive the message": "工作階段已關閉:沒有可接收訊息的對象",
444
+ "Session started outside tmux: start it in tmux to talk to it": "工作階段在 tmux 之外啟動:請在 tmux 中啟動後再與它對話",
445
+ "Stale page: reload it": "頁面已過期:請重新載入",
446
+ "the session": "該工作階段",
447
+ "tmux unreachable": "無法連線 tmux",
448
+ "To ": "傳給 ",
449
+ "Claude is working: you can write when it is done": "Claude 正在工作:等它完成後你就可以輸入",
450
+ "The session changed while sending: the text stayed in the terminal, without Enter": "傳送時工作階段發生了變化:文字留在終端機中,未按 Enter",
451
+ "Refused: only the user who started Agent Standup can write": "已拒絕:只有啟動 Agent Standup 的使用者才能輸入",
452
+ "Sending works only on Linux for now": "目前僅在 Linux 上可以傳送",
434
453
  "Name for this project": "此專案的名稱",
435
454
  "Empty: use the default name.": "留空則使用預設名稱。",
436
455
  "Open a project to choose its name.": "開啟專案以設定名稱。",
package/reply.js ADDED
@@ -0,0 +1,51 @@
1
+ // reply.js: the human's line, typed into the tmux pane of a running Claude Code session. Off unless AGENT_STANDUP_REPLY=on.
2
+ // Claude Code writes <config>/sessions/<pid>.json for each running session (pid, sessionId, status, name); server.js reads them (liveStatus) and hands its reader over with use(). The pane is the tmux pane whose shell is an ancestor of that pid.
3
+ const fs = require('fs'), net = require('net'), { execFile } = require('child_process');
4
+ const on = () => /^(1|on|yes|true)$/i.test(process.env.AGENT_STANDUP_REPLY || '');
5
+ let sessions = () => new Map(); // session id → its status file as server.js reads it; nothing until use() is called
6
+ const use = (reader) => { sessions = reader; };
7
+ const tmux = (args) => new Promise((resolve) => execFile(process.env.AGENT_STANDUP_TMUX || 'tmux', args, { timeout: 3000, windowsHide: true }, (err, out) => resolve(err ? null : String(out))));
8
+ const ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
9
+ function session(id) { // the running session with this id, or null; raw: the status as written (a dialog you opened also says waiting, and must not get the line either)
10
+ const w = sessions().get(id); return w ? { pid: w.pid, procStart: w.procStart, status: w.raw, name: w.name } : null;
11
+ }
12
+ const stat = (pid) => { try { const st = fs.readFileSync(`/proc/${pid}/stat`, 'utf8'); return st.slice(st.lastIndexOf(')') + 2).split(' '); } catch { return []; } }; // fields from 3 on; the name in field 2 may hold spaces and brackets
13
+ const ppid = (pid) => +stat(pid)[1] || 0; // field 4
14
+ const lstart = (pid) => new Promise((resolve) => execFile('ps', ['-o', 'lstart=', '-p', String(pid)], { timeout: 3000, windowsHide: true, env: { ...process.env, LC_ALL: 'C', TZ: 'UTC' } }, (err, out) => resolve(err ? '' : String(out).trim().replace(/\s+/g, ' '))));
15
+ async function sameStart(pid, procStart) { // is this pid still the process that wrote the status file: Claude Code writes what `ps -o lstart=` says (LC_ALL=C, TZ=UTC); a plain number is /proc's start time (field 22)
16
+ const v = String(procStart == null ? '' : procStart).trim(); if (!v) return false; // no start time written (older Claude Code): it cannot be told from a reused pid
17
+ if (/^\d+$/.test(v)) return stat(pid)[19] === v;
18
+ const now = await lstart(pid); return !!now && now === v.replace(/\s+/g, ' ');
19
+ }
20
+ async function lookup(id) {
21
+ if (process.platform !== 'linux') return { ok: false, why: 'platform' }; // the pane is found through /proc: Linux only for now
22
+ const s = ID.test(String(id || '')) ? session(id) : null; if (!s) return { ok: false, why: 'none' };
23
+ if (!(await sameStart(s.pid, s.procStart))) return { ok: false, why: 'none' }; // a different start time means the pid now belongs to another process
24
+ const who = { status: String(s.status || ''), name: String(s.name || '') }, out = await tmux(['list-panes', '-a', '-F', '#{pane_id} #{pane_pid}']);
25
+ if (out == null) return { ok: false, why: 'tmux', ...who };
26
+ const panes = new Map(out.trim().split('\n').map((l) => l.split(' ')).filter((p) => /^%\d+$/.test(p[0])).map(([p, pid]) => [+pid, p]));
27
+ for (let pid = s.pid, n = 0; pid > 1 && n < 64; pid = ppid(pid), n++) if (panes.has(pid)) return { ok: true, pane: panes.get(pid), ...who };
28
+ return { ok: false, why: 'notmux', ...who };
29
+ }
30
+ const clean = (t) => (typeof t === 'string' ? t.replace(/[\u0000-\u001f\u007f-\u009f]+/g, ' ').trim() : ''); // a newline would send a second message, an escape sequence would drive the terminal
31
+ async function send(id, text) {
32
+ if (process.platform !== 'linux') return { error: 'platform' };
33
+ let t = clean(text); if (!t || t.length > 4000) return { error: 'text' };
34
+ if (t.endsWith(';')) t += ' '; // tmux reads a final ; of an argument as the end of the command
35
+ const r = await lookup(id); if (!r.ok) return { error: r.why };
36
+ if (r.status !== 'idle') return { error: r.status === 'waiting' ? 'waiting' : 'busy' }; // only at the prompt: a permission menu open (waiting) or one that opens during a turn would take the text and Enter as its answer
37
+ if ((await tmux(['send-keys', '-t', r.pane, '-l', '--', t])) == null) return { error: 'tmux' }; // -l: literal text, never read as key names
38
+ const now = await lookup(id); if (!now.ok || now.pane !== r.pane || now.status !== 'idle') return { error: 'changed' }; // read again right before Enter: if a turn or a menu started meanwhile, the text stays in the prompt without Enter
39
+ if ((await tmux(['send-keys', '-t', r.pane, 'Enter'])) == null) return { error: 'tmux' };
40
+ return { ok: true };
41
+ }
42
+ // Who is calling: the uid owning the client end of the loopback connection, from /proc/net/tcp (Linux). null when not found: refused.
43
+ const tcpKey = (ip, port, v6) => (v6 ? '0000000000000000FFFF0000' : '') + ip.split('.').reverse().map((n) => (+n).toString(16).padStart(2, '0')).join('').toUpperCase() + ':' + port.toString(16).toUpperCase().padStart(4, '0'); // each 32-bit word little-endian, the port big-endian
44
+ const uidIn = (table, local, rem) => { for (const l of table.split('\n').slice(1)) { const c = l.trim().split(/\s+/); if (c[1] === local && c[2] === rem && c[3] === '01' && /^\d+$/.test(c[7])) return +c[7]; } return null; }; // 01: ESTABLISHED; a TIME_WAIT row (06) of a former connection on the same ports is owned by uid 0
45
+ function peerUid(sock) { // ponytail: IPv4 only, the server listens on 127.0.0.1; a pure IPv6 peer (::1) would need the tcp6 address expanded
46
+ const v4 = (a) => String(a || '').replace(/^::ffff:/i, ''), ra = v4(sock.remoteAddress), la = v4(sock.localAddress);
47
+ if (process.platform !== 'linux' || !net.isIPv4(ra) || !net.isIPv4(la)) return null;
48
+ for (const v6 of [false, true]) { let t = ''; try { t = fs.readFileSync(v6 ? '/proc/net/tcp6' : '/proc/net/tcp', 'utf8'); } catch {} const u = uidIn(t, tcpKey(ra, sock.remotePort, v6), tcpKey(la, sock.localPort, v6)); if (u != null) return u; }
49
+ return null;
50
+ }
51
+ module.exports = { on, use, lookup, send, clean, tcpKey, uidIn, peerUid };
package/server.js CHANGED
@@ -8,12 +8,14 @@ const os = require('os');
8
8
  const crypto = require('crypto');
9
9
  const codex = require('./codex.js'); // Codex sessions, read as the same call (see codex.js)
10
10
  const vibe = require('./vibe.js'); // Mistral Vibe sessions, the same way (see vibe.js)
11
+ const reply = require('./reply.js'); // the human's line, typed into the session's tmux pane (see reply.js); off unless AGENT_STANDUP_REPLY=on
11
12
  const SOURCES = [codex, vibe], sourceOf = (proj) => SOURCES.find((m) => m.PROJ === proj) || null, guard = (fn, or) => { try { return fn(); } catch (e) { logError('reader', e); return or; } }; // guard: a session of another tool that cannot be read costs that session, never the list // the tools other than Claude Code: each lists its sessions under one made-up project
12
13
  const kokoro = require('./kokoro.js'); // natural voices, installed on demand (see kokoro.js)
13
14
  const zlib = require('zlib');
14
15
  const { execFileSync, execFile } = require('child_process');
15
16
 
16
17
  const PORT = process.env.PORT || 4747;
18
+ const REPLY_TOKEN = crypto.randomBytes(24).toString('hex'), replyTokenOk = (t) => { if (typeof t !== 'string') return false; const a = Buffer.from(t), b = Buffer.from(REPLY_TOKEN); return a.length === b.length && crypto.timingSafeEqual(a, b); }; // made at each start, given only to the page through /api/prefs.js
17
19
  // Same place Claude Code writes to: honours CLAUDE_CONFIG_DIR (custom config dirs are common on Linux); AGENT_STANDUP_PROJECTS overrides it.
18
20
  const CLAUDE_HOME = process.env.CLAUDE_CONFIG_DIR || path.join(os.homedir(), '.claude'), ONE_FOLDER = !!process.env.AGENT_STANDUP_PROJECTS, EXTRA_HOMES = String(process.env.AGENT_STANDUP_CLAUDE_DIRS || '');
19
21
  const ROOT = process.env.AGENT_STANDUP_PROJECTS || path.join(CLAUDE_HOME, 'projects');
@@ -596,11 +598,12 @@ const alive = (pid) => { try { process.kill(pid, 0); return true; } catch (e) {
596
598
  function liveStatus() { // session id → { status, since, pid, ep (where it runs: claude-vscode, cli, claude-desktop, sdk-cli…), and for missingTranscripts: raw (the status as written), cwd, kind, startedAt, version, updatedAt (when the file was last written: a /clear moves it, and the id, but not statusUpdatedAt) }
597
599
  const out = new Map(), later = (a, b) => Math.max(a.updatedAt, a.since) > Math.max(b.updatedAt, b.since);
598
600
  for (const [i, dir] of statusDirs().entries()) { const into = i ? new Map() : out; let names = []; try { names = fs.readdirSync(dir); } catch { continue; }
599
- for (const n of names) { if (!/^\d+\.json$/.test(n)) continue; try { const s = JSON.parse(fs.readFileSync(path.join(dir, n), 'utf8')); if (s && typeof s.sessionId === 'string' && /^(busy|idle|waiting)$/.test(s.status) && Number.isInteger(s.pid) && s.pid > 0 && alive(s.pid)) into.set(s.sessionId, { status: s.status !== 'waiting' ? s.status : s.waitingFor === 'dialog open' ? 'idle' : s.entrypoint === 'sdk-cli' ? 'busy' : s.status, since: Number(s.statusUpdatedAt) || 0, pid: s.pid, ep: String(s.entrypoint || ''), raw: s.status, cwd: typeof s.cwd === 'string' ? s.cwd : '', kind: typeof s.kind === 'string' ? s.kind : '', startedAt: Number(s.startedAt) || 0, version: typeof s.version === 'string' ? s.version : '', updatedAt: Number(s.updatedAt) || 0 }); } catch {} } /* a dialog you opened yourself (/model, /config, /mcp…) also says waiting: it is not a question for you. Nor is a menu of a session started with claude -p (entrypoint sdk-cli): its question goes to the program that started it. An Agent SDK host (sdk-ts, sdk-py: Zed, a home-made app) may show its menus to a person, so those are kept */
601
+ for (const n of names) { if (!/^\d+\.json$/.test(n)) continue; try { const s = JSON.parse(fs.readFileSync(path.join(dir, n), 'utf8')); if (s && typeof s.sessionId === 'string' && /^(busy|idle|waiting)$/.test(s.status) && Number.isInteger(s.pid) && s.pid > 0 && alive(s.pid)) into.set(s.sessionId, { status: s.status !== 'waiting' ? s.status : s.waitingFor === 'dialog open' ? 'idle' : s.entrypoint === 'sdk-cli' ? 'busy' : s.status, since: Number(s.statusUpdatedAt) || 0, pid: s.pid, ep: String(s.entrypoint || ''), raw: s.status, cwd: typeof s.cwd === 'string' ? s.cwd : '', kind: typeof s.kind === 'string' ? s.kind : '', startedAt: Number(s.startedAt) || 0, version: typeof s.version === 'string' ? s.version : '', updatedAt: Number(s.updatedAt) || 0, procStart: s.procStart, name: typeof s.name === 'string' ? s.name : '' }); } catch {} } /* a dialog you opened yourself (/model, /config, /mcp…) also says waiting: it is not a question for you. Nor is a menu of a session started with claude -p (entrypoint sdk-cli): its question goes to the program that started it. An Agent SDK host (sdk-ts, sdk-py: Zed, a home-made app) may show its menus to a person, so those are kept */
600
602
  if (i) { const byPid = new Map([...out].map(([k, v]) => [v.pid, k])); for (const [k, v] of into) { const o = out.get(k), pk = byPid.get(v.pid), p = pk != null && pk !== k ? out.get(pk) : null; if ((o && !later(v, o)) || (p && !later(v, p))) continue; if (p) out.delete(pk); out.set(k, v); byPid.set(v.pid, k); } } // a folder copied while a session ran keeps its status frozen: of two that name the same session, or the same process (its id changed since with /clear), the one written last
601
603
  }
602
604
  return out;
603
605
  }
606
+ reply.use(liveStatus); // reply.js finds the session to type into with this same reader (procStart: to tell a reused pid, name: the recipient shown)
604
607
  // A Claude Code session that is open and has worked, yet whose transcript is nowhere in the projects folder read here. The call cannot show it; the page says so, and why it may be (issue #9). Read from the status files alone, nothing sent.
605
608
  // Only one cause is visible this way (Claude Code 2.1.304, tried): CLAUDE_CODE_SKIP_PROMPT_HISTORY=1 writes the status file (interactive, idle/busy) and shows "Transcript saving is off", but no transcript.
606
609
  // An inherited CLAUDE_CODE_CHILD_SESSION=1 writes neither, and another CLAUDE_CONFIG_DIR puts the status file in that other folder: neither leaves anything here (that folder is read too when it is one of claudeHomes). What is listed may also be a cause not known yet.
@@ -1499,7 +1502,7 @@ function start(port = PORT) {
1499
1502
  const sendFile = (fp) => { const s = fs.createReadStream(fp); s.on('error', () => res.destroy()); s.pipe(res); }; // a file that vanished between the check and the read ends this answer, not the server
1500
1503
  // Endpoints with side effects (they spawn programs or claim the sound), and the one that serves pictures from a session, refuse requests that a browser marks as coming from another site, e.g. an <img> on a web page.
1501
1504
  const sfs = req.headers['sec-fetch-site'];
1502
- if (sfs && sfs !== 'same-origin' && sfs !== 'none' && (req.method !== 'GET' || ['/api/translate', '/api/quips', '/api/warm', '/api/audio', '/api/tts', '/api/prefs', '/api/prefs.js', '/api/voices', '/api/kokoro', '/api/kokoro/install', '/api/media', '/api/taskout', '/api/artifact', '/api/errors', '/api/packs', '/api/update'].includes(url.pathname))) { res.writeHead(403); return res.end('forbidden'); }
1505
+ if (sfs && sfs !== 'same-origin' && sfs !== 'none' && (req.method !== 'GET' || ['/api/translate', '/api/quips', '/api/warm', '/api/audio', '/api/tts', '/api/prefs', '/api/prefs.js', '/api/voices', '/api/kokoro', '/api/kokoro/install', '/api/media', '/api/taskout', '/api/artifact', '/api/errors', '/api/packs', '/api/update', '/api/reply'].includes(url.pathname))) { res.writeHead(403); return res.end('forbidden'); }
1503
1506
  const readBody = (cb, max = 262144) => { // request bodies are small JSON: stop reading beyond 256 KB (or max) and give up after 10 s
1504
1507
  const chunks = []; let size = 0, over = false; req.setTimeout(10000, () => req.destroy());
1505
1508
  if (+req.headers['content-length'] > max) { res.writeHead(413); res.end('too large'); return req.destroy(); }
@@ -1537,7 +1540,7 @@ function start(port = PORT) {
1537
1540
  .then((f) => { res.writeHead(200, { 'content-type': 'audio/wav', 'cache-control': 'max-age=86400' }); sendFile(f); })
1538
1541
  .catch((e) => json({ error: String(e.message) }, 400));
1539
1542
  }
1540
- if (url.pathname === '/api/prefs.js') { res.writeHead(200, { 'content-type': 'application/javascript', 'cache-control': 'no-store' }); return res.end('window.SAVED_PREFS = ' + JSON.stringify(readPrefs()).replace(/</g, '\\u003c') + '; window.AS_APP = ' + JSON.stringify(appKind()).replace(/</g, '\\u003c') + ';'); }
1543
+ if (url.pathname === '/api/prefs.js') { res.writeHead(200, { 'content-type': 'application/javascript', 'cache-control': 'no-store' }); return res.end('window.SAVED_PREFS = ' + JSON.stringify(readPrefs()).replace(/</g, '\\u003c') + '; window.AS_APP = ' + JSON.stringify(appKind()).replace(/</g, '\\u003c') + ';' + (reply.on() ? 'window.REPLY_TOKEN = "' + REPLY_TOKEN + '";' : '')); }
1541
1544
  if (url.pathname === '/api/prefs' && req.method === 'PUT') return readBody((body) => { try { let v = JSON.parse(body); if (!v || typeof v !== 'object' || Array.isArray(v)) throw new Error('prefs must be an object'); const cur = readPrefs() || {}; const pt = v._patch && typeof v._patch === 'object' && !Array.isArray(v._patch) ? v._patch : null, set = pt && pt.set && typeof pt.set === 'object' && !Array.isArray(pt.set) ? pt.set : {}; if (pt && (!('_t' in set) || !('_t' in v) || +set._t === +v._t)) { const del = Array.isArray(pt.del) ? pt.del : []; v = { ...cur, ...set }; for (const k of del) if (typeof k === 'string' && !(k in set)) delete v[k]; } delete v._patch; /* a patch dated otherwise than the settings it came with is a stale copy (a page before 1.42 that read one from the file): those settings are written whole */ /* a page sends what it changed, merged into the file as it is now: a window opened earlier no longer puts back what another one changed. A whole object (an older page) still replaces the file */ if ((+cur.shareUsageT || 0) > (+v.shareUsageT || 0)) { v.shareUsage = cur.shareUsage; v.shareUsageT = cur.shareUsageT; v.usageAsked = cur.usageAsked; } if ((+cur.updateNoticeT || 0) > (+v.updateNoticeT || 0)) { v.updateNotice = cur.updateNotice; v.updateNoticeT = cur.updateNoticeT; v.updateAsked = cur.updateAsked; } writePrefs(v); /* the usage answer: a page opened before it was changed elsewhere (another tab, the desktop app) writes back its old settings, not its old answer */ json({ ok: true }); } catch (e) { json({ error: String(e.message || e) }, 400); } });
1542
1545
  if (url.pathname === '/api/prefs') return json(readPrefs() || {});
1543
1546
  if (url.pathname === '/api/answer' && req.method === 'POST') return readBody((body) => { let v = {}; try { v = JSON.parse(body); } catch {} json(answerIn(String((v && v.id) || ''))); }); /* a click on what needs you: open it where it can be answered (answerIn) */
@@ -1588,6 +1591,13 @@ function start(port = PORT) {
1588
1591
  const body = Buffer.from((/^\s*<!doctype/i.test(page.html) ? '' : '<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">') + page.html, 'utf8'); // an artifact is published as the inside of a page: claude.ai adds the rest, and so does this
1589
1592
  res.writeHead(200, { 'content-type': 'text/html; charset=utf-8', 'content-length': body.length, 'content-security-policy': artifactCsp(q('net') === '1'), 'x-content-type-options': 'nosniff', 'referrer-policy': 'no-referrer', 'cache-control': 'private, no-store' }); return res.end(body);
1590
1593
  }
1594
+ if (url.pathname === '/api/reply') { // the human's line: can this session hear it (GET), type it into its terminal (POST)
1595
+ if (!reply.on()) { res.writeHead(404); return res.end('not found'); }
1596
+ if (process.platform !== 'linux') return req.method === 'POST' ? json({ error: 'platform' }, 409) : json({ ok: false, why: 'platform' }); // said before the peer check, which cannot work there either
1597
+ const peer = reply.peerUid(req.socket); if (peer == null || peer !== process.getuid()) return json({ error: 'peer' }, 403); // another local user, or a process we cannot tell: the token alone is readable by anyone who can reach the port
1598
+ if (req.method === 'POST') return readBody((body) => { let b = {}; try { b = JSON.parse(body) || {}; } catch {} if (!replyTokenOk(b.token)) return json({ error: 'token' }, 403); reply.send(String(b.id || ''), b.text).then((r) => json(r, r.ok ? 200 : r.error === 'text' ? 400 : 409), (e) => { logError('reply', e); json({ error: 'tmux' }, 500); }); }, 16384);
1599
+ return reply.lookup(url.searchParams.get('id') || '').then(({ pane, ...r }) => json(r), (e) => { logError('reply', e); json({ ok: false, why: 'tmux' }); });
1600
+ }
1591
1601
  if (url.pathname === '/api/session') {
1592
1602
  const proj = url.searchParams.get('proj') || '', sid = url.searchParams.get('id') || '', SAFE = /^[\w.\-]+$/;
1593
1603
  if (!SAFE.test(proj) || !SAFE.test(sid) || proj === '..' || sid === '..' || proj.length > 200 || sid.length > 200) { res.writeHead(400); return res.end('bad request'); }