inplan 0.1.4 → 0.1.6

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/bin/cli.js CHANGED
@@ -866,7 +866,7 @@ function waitForActions(opts) {
866
866
  }
867
867
 
868
868
  // src/cli.ts
869
- var VERSION = "0.1.4";
869
+ var VERSION = "0.1.6";
870
870
  function output(obj) {
871
871
  process.stdout.write(JSON.stringify(obj) + "\n");
872
872
  }
@@ -933,10 +933,15 @@ function spawnApp(file) {
933
933
  if (bundled.appMain === null) {
934
934
  process.stderr.write("[inplan] no bundled editor (running from source?) \u2014 set INPLAN_APP_CMD to your editor; running headless\n");
935
935
  } else {
936
+ const root = resolve2(dirname6(bundled.appMain), "..", "..");
936
937
  process.stderr.write(
937
938
  `[inplan] the bundled editor's Electron runtime is unavailable: ${bundled.error}
938
- \u2192 fix it with: npm rebuild electron --prefix "$(npm root -g)/inplan" (re-downloads the binary;
939
- set ELECTRON_MIRROR if a proxy blocks it), or point INPLAN_APP_CMD at an Electron binary.
939
+ \u2192 re-download the binary: npm rebuild electron --prefix "${root}"
940
+ If a proxy/firewall blocks the download, set a mirror first, e.g.
941
+ ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ (macOS/Linux)
942
+ set ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ (Windows cmd)
943
+ Or point INPLAN_APP_CMD at an Electron that launches the app, e.g.
944
+ INPLAN_APP_CMD="electron '${bundled.appMain}'"
940
945
  Running headless for now.
941
946
  `
942
947
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inplan",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "inplan — a Markdown editor for human ⇄ coding-agent planning. CLI + desktop editor.",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "repository": {
package/skill/SKILL.md CHANGED
@@ -18,6 +18,19 @@ Check for the CLI and install it if missing:
18
18
 
19
19
  (If the unscoped name is unavailable, install `@cis/inplan`.)
20
20
 
21
+ **If `open` runs headless** (it prints "the bundled editor's Electron runtime is
22
+ unavailable"): the npm package installed but Electron's **binary** didn't download — a
23
+ proxy/firewall/AV blocked it, or `ignore-scripts` is set. Do **not** `npm install -g
24
+ electron` separately (inplan won't use it). Re-download inplan's own copy, using the path
25
+ the message prints:
26
+
27
+ npm rebuild electron --prefix "$(npm root -g)/inplan" # macOS/Linux
28
+ npm rebuild electron --prefix "%APPDATA%\npm\node_modules\inplan" # Windows (cmd)
29
+
30
+ If the download itself is blocked, set a mirror first (`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`,
31
+ `set ELECTRON_MIRROR=…` on Windows), then rebuild. The loop still works headless until then,
32
+ but the human can't review in the GUI — surface the fix to them and proceed.
33
+
21
34
  ## File convention
22
35
 
23
36
  Save plans as `<name>.plan.md`. The editor keeps its sidecars in an