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.
- package/bridge.mjs +25 -14
- 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
|
|
2266
|
-
//
|
|
2267
|
-
//
|
|
2268
|
-
//
|
|
2269
|
-
//
|
|
2270
|
-
//
|
|
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 = `
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
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
|
-
|
|
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 }
|