thinkpool-pair 0.7.226 → 0.7.227

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/package.json +1 -1
  2. package/viewport.mjs +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkpool-pair",
3
- "version": "0.7.226",
3
+ "version": "0.7.227",
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": {
package/viewport.mjs CHANGED
@@ -350,9 +350,13 @@ export class ViewportManager {
350
350
  await fsp.writeFile(file, result.png)
351
351
  captures[name] = { ...result, file }
352
352
  }
353
- const html = this.root && fs.existsSync(path.join(this.root, 'index.html')) ? path.join(this.root, 'index.html') : null
353
+ // A preview root may be a multi-file build. Its index.html is not a portable
354
+ // artifact: root-relative chunks cannot reliably boot when that text is later
355
+ // injected into a sandboxed srcDoc (Windows Edge exposed the permanent loader).
356
+ // preview_capture is therefore screenshot-only evidence. Editable mockups use
357
+ // render.sh's explicit trusted `source` contract instead.
354
358
  const manifest = {
355
- slug, title: String(title || 'Viewport capture').slice(0, 120), html,
359
+ slug, title: String(title || 'Viewport capture').slice(0, 120),
356
360
  desktop: captures.desktop?.file || '', mobile: captures.mobile?.file || '', ts: Date.now(),
357
361
  }
358
362
  const manifestPath = path.join(this.outbox, `${slug}.json`)