@double_geste/agent-standup 1.35.0 → 1.37.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/codex.js CHANGED
@@ -66,7 +66,8 @@ function sessions(limit = 80) {
66
66
  const out = []; for (const r of scan().rows) { const h = head(r.file); if (!h.ok || h.child) continue; out.push({ ...r, cwd: h.cwd, dir: h.dir }); if (out.length >= limit) break; }
67
67
  return out;
68
68
  }
69
- const inProject = (id, key) => { const r = row(id); if (!r || !key) return false; if (key === PROJ) return true; const d = head(r.file).dir; return d === key || d.startsWith(key + '-'); };
69
+ const under = (cwd, key) => { for (let d = String(cwd || ''); d;) { if (dirKey(d) === key) return true; const up = path.dirname(d); if (up === d) return false; d = up; } return false; }; // key is the folder itself or one above it: a dashed name alone cannot tell app/old (inside app) from app-old (beside it)
70
+ const inProject = (id, key) => { const r = row(id); if (!r || !key) return false; if (key === PROJ) return true; const h = head(r.file), d = h.dir; return d === key || (d.startsWith(key + '-') && under(h.cwd, key)); };
70
71
  const cwd = (id) => { const r = row(id); return r ? head(r.file).cwd : ''; }; // the folder the session was started in: where a file it names by a relative path is
71
72
  const projectLabel = (cwd) => { const h = os.homedir(), rel = cwd && cwd.startsWith(h + path.sep) ? cwd.slice(h.length + 1) : cwd; return 'Codex' + (rel ? ' · ' + rel.split(path.sep).join('/') : ''); };
72
73
 
package/kokoro.js CHANGED
@@ -76,8 +76,9 @@ function warm() { if (installed() && !worker && restarts < MAX_RESTARTS) try { s
76
76
  function pump() {
77
77
  if (busy || !queue.length) return;
78
78
  const j = queue.shift(); let w; try { w = startWorker(); } catch (e) { j.reject(e); return pump(); }
79
- const id = ++seq, next = (fn) => (v) => { busy = false; fn(v); pump(); }; busy = true;
80
- w.pending.set(id, { resolve: next(j.resolve), reject: next(j.reject) });
79
+ const id = ++seq, late = setTimeout(() => { if (w.pending.has(id)) { lastError = 'kokoro worker: no answer'; try { w.p.kill(); } catch {} } }, w.ready ? 60e3 : 180e3); // a worker that hangs is stopped (and started again on the next line): every line after it waited for ever
80
+ const next = (fn, ok) => (v) => { clearTimeout(late); busy = false; if (ok) restarts = 0; fn(v); pump(); }; busy = true; // ok: a line spoken, the count of crashes starts again (three over days of an open editor turned the voices off)
81
+ w.pending.set(id, { resolve: next(j.resolve, true), reject: next(j.reject) });
81
82
  const v = find(j.voice);
82
83
  w.p.stdin.write(JSON.stringify({ id, text: j.text, voice: j.voice, speed: j.speed, out: j.out, lang: v.lang, mix: v.mix }) + '\n');
83
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@double_geste/agent-standup",
3
- "version": "1.35.0",
3
+ "version": "1.37.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"