slidemind 0.2.3 → 0.3.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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/AGENTS.md +65 -15
- package/README.md +36 -2
- package/bin/slidemind.mjs +1609 -225
- package/install.ps1 +70 -0
- package/install.sh +65 -0
- package/package.json +3 -1
- package/skills/create-slides/SKILL.md +47 -19
- package/skills/search/SKILL.md +26 -18
- package/src/bridge/build-and-push.mjs +431 -38
- package/src/bridge/capture.mjs +12 -1
- package/src/bridge/client.mjs +1214 -107
- package/src/bridge/config.mjs +193 -1
- package/src/bridge/engine-download.mjs +61 -8
- package/src/bridge/graph-auth.mjs +859 -0
- package/src/bridge/http-json.mjs +15 -6
- package/src/bridge/secrets.mjs +75 -0
- package/src/bridge/setup-claim.mjs +6 -0
- package/src/builders/build.mjs +3 -1
- package/src/builders/gate-server.mjs +156 -0
- package/src/builders/gate-session.js +355 -0
- package/src/builders/plan-overlay.js +507 -225
- package/src/builders/plan.mjs +169 -98
- package/src/builders/resolve-skill.mjs +64 -2
- package/src/builders/review-overlay.js +390 -302
- package/src/builders/review.mjs +136 -50
- package/src/lib/adopt.mjs +407 -0
- package/src/lib/conversions.mjs +263 -0
- package/src/lib/overwrite-guard.mjs +91 -0
- package/src/lib/reconcile-ack.mjs +46 -0
- package/src/lib/reconcile.mjs +306 -0
- package/src/lib/slide-guids.mjs +143 -0
- package/src/pptx/fill/engine.mjs +181 -135
- package/src/pptx/hidden-ole.mjs +22 -1
- package/src/pptx/slide-swap.mjs +23 -1
- package/src/pptx/tags.mjs +676 -0
package/src/bridge/capture.mjs
CHANGED
|
@@ -27,8 +27,19 @@ const LAUNCH_ARGS = [
|
|
|
27
27
|
"--no-default-browser-check",
|
|
28
28
|
];
|
|
29
29
|
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* True when the materialized bundle carries a capture engine to run locally.
|
|
32
|
+
*
|
|
33
|
+
* `SLIDEMIND_FORCE_SERVER_RENDER=1` forces the server-render fallback even
|
|
34
|
+
* when the bundle has one. Escape hatch for the case where the two paths
|
|
35
|
+
* disagree: capture runs client-side and its output crosses a JSON wire to
|
|
36
|
+
* `/translate`, so an engine bug can lose data that the in-process server
|
|
37
|
+
* render keeps (this is how the base64 background-image fix was isolated —
|
|
38
|
+
* same deck, same asset, images only on the server path). It costs the
|
|
39
|
+
* pane-free speed win, so it is a diagnostic, not a default.
|
|
40
|
+
*/
|
|
31
41
|
export function bundleHasCaptureEngine(bundleDir) {
|
|
42
|
+
if (process.env.SLIDEMIND_FORCE_SERVER_RENDER === "1") return false;
|
|
32
43
|
if (!bundleDir) return false;
|
|
33
44
|
return fs.existsSync(path.join(bundleDir, "capture-engine.mjs"));
|
|
34
45
|
}
|