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.
- package/package.json +1 -1
- package/viewport.mjs +6 -2
package/package.json
CHANGED
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
|
-
|
|
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),
|
|
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`)
|