thinkpool-pair 0.7.139 → 0.7.140

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.
Files changed (2) hide show
  1. package/bridge.mjs +25 -14
  2. package/package.json +1 -1
package/bridge.mjs CHANGED
@@ -2262,12 +2262,13 @@ channel
2262
2262
  saveNames(room, termNames)
2263
2263
  announce()
2264
2264
  })
2265
- // Session Info panel (2026-07-02) — a cheap one-shot recap on demand. NAMES live
2266
- // terminals with doing/done status; aggregates CLOSED terminals into one line
2267
- // without naming them (Max's spec). Runs on the room's own subscription auth via
2268
- // oneShotSummary (cheap haiku → provider-default fallback). Never auto — only on
2269
- // the panel button. The web caches the result in React state (no re-charge on
2270
- // re-open within a page load).
2265
+ // Session Info panel (2026-07-02, plain-English recap 2026-07-02) — a cheap one-shot
2266
+ // recap on demand. Writes a plain-English "Done so far" / "Working on now" bullet
2267
+ // summary (Markdown) of what the whole session accomplished + what's live — NOT a
2268
+ // per-terminal technical list (Max's ask: clean, readable, no jargon/terminal names).
2269
+ // Runs on the room's own subscription auth via oneShotSummary (cheap haiku →
2270
+ // provider-default fallback). Never auto — only on the panel button. The web caches
2271
+ // the result in React state (no re-charge on re-open within a page load).
2271
2272
  .on('broadcast', { event: 'code-summarize' }, async ({ payload }) => {
2272
2273
  const by = payload?.by || null
2273
2274
  // Peek — any device opening the panel fetches the cached recap (cross-device +
@@ -2317,17 +2318,27 @@ channel
2317
2318
  ? `\n\nThere are also ${closedIds.length} CLOSED terminal(s). Recent excerpts (do NOT name them individually):\n${(closedDigests.join('\n---\n') || '(no retained detail)').slice(0, 1400)}`
2318
2319
  : ''
2319
2320
 
2320
- const prompt = `Summarize this multi-terminal coding session as a STRUCTURED LIST. Output ONLY these lines, nothing else:
2321
- - ONE line per LIVE terminal, EXACTLY: <terminal name> | <working or done> | <one clause, max 12 words, no trailing period>
2322
- - If there are CLOSED terminals, ONE final line, EXACTLY: CLOSED | <count> | <one aggregate clause about what they handled — do NOT name them>
2323
- Use the pipe "|" as the separator. No headers, no markdown, no bullets, no extra prose. Example:
2324
- Bridge Whip | working | SDK 0.7.128, detection gates live
2325
- Reddit | done | GTM strategy mapped
2326
- CLOSED | 52 | flow-trigger churn and @pool integration
2321
+ const prompt = `Write a short, friendly recap of this coding session for someone non-technical who just wants to know what's going on. Plain English only — no jargon, no file names, no branch names, no terminal names or IDs, no code, no counts of terminals. Explain what the work MEANS and why it matters, not the mechanics.
2322
+
2323
+ Output ONLY this Markdown shape, nothing else:
2324
+
2325
+ **Done so far**
2326
+ - <one plain-English thing that got finished>
2327
+ - <another>
2328
+
2329
+ **Working on now**
2330
+ - <what's actively being worked on, in plain English>
2331
+
2332
+ Rules:
2333
+ - Merge ALL the finished work — live and closed terminals alike — into "Done so far". Combine similar items; do NOT organise by terminal or list them. Aim for 3–6 bullets.
2334
+ - Put only genuinely in-progress work under "Working on now". If nothing is active, write exactly: "- Nothing in progress right now — everything's wrapped up."
2335
+ - Each bullet is one clear sentence, ~16 words max, no trailing period, and no technical term a normal person wouldn't understand.
2336
+
2337
+ Here's the raw session activity to summarize:
2327
2338
 
2328
2339
  ${liveBlock}${closedBlock}
2329
2340
 
2330
- Output:`
2341
+ Recap:`
2331
2342
 
2332
2343
  const res = await oneShotSummary({ prompt, env: env || process.env, cwd: cwd || process.cwd() })
2333
2344
  if (!res || !res.text) { bcast('code-summary', { status: 'error', error: 'Summary model unavailable on this provider.', by }); return }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkpool-pair",
3
- "version": "0.7.139",
3
+ "version": "0.7.140",
4
4
  "description": "Share a local coding-agent CLI (Claude Code, Codex, Gemini, Aider, …) into a ThinkPool Code room, live.",
5
5
  "type": "module",
6
6
  "bin": {