promptlock-cli 1.0.0 → 1.0.1

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/bundle/cli.js +5 -1
  2. package/package.json +1 -1
package/bundle/cli.js CHANGED
@@ -6084,10 +6084,14 @@ function fallbackNodePaths(home = os7.homedir()) {
6084
6084
  path8.join(home, ".local", "bin", "node")
6085
6085
  ];
6086
6086
  }
6087
+ function defaultScriptPath() {
6088
+ const candidates = [path8.join(__dirname, "..", "cli.js"), path8.join(__dirname, "cli.js")];
6089
+ return candidates.find((p) => fs9.existsSync(p)) ?? candidates[0];
6090
+ }
6087
6091
  function installRuntime(opts = {}) {
6088
6092
  const root = opts.dir ?? RUNTIME_DIR;
6089
6093
  const bin = path8.join(root, "bin");
6090
- const scriptPath = opts.scriptPath ?? path8.join(__dirname, "..", "cli.js");
6094
+ const scriptPath = opts.scriptPath ?? defaultScriptPath();
6091
6095
  if (!fs9.existsSync(scriptPath)) {
6092
6096
  throw new Error(`the daemon is not built: ${scriptPath} is missing. Run \`npm run build\` first.`);
6093
6097
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptlock-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "PromptLock for the Mac: watches Cursor, Claude Code and Codex, and tells your iPhone when an agent is working so it can unlock your apps only while one is.",
5
5
  "license": "MIT",
6
6
  "author": "Mark Guggenheim",