cli-jaw 2.2.22 → 2.2.23

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-jaw",
3
- "version": "2.2.22",
3
+ "version": "2.2.23",
4
4
  "description": "Personal AI assistant powered by Pi, Antigravity, AI-E, Claude, Claude E, Codex, Codex App, Cursor, Grok, Kiro, OpenCode, and Copilot — Web, Terminal, Telegram, and Discord interfaces with 107 built-in skills",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -14,11 +14,20 @@ const LEDGER_FILE = '.cli-jaw-cleanup-ledger.json';
14
14
  const LOCK_ERRORS = new Set(['EBUSY', 'EACCES', 'EPERM']);
15
15
 
16
16
  function defaultReadName(dir) {
17
- try {
18
- return JSON.parse(fs.readFileSync(path.join(dir, 'package.json'), 'utf8')).name;
19
- } catch {
20
- return null;
17
+ // npm staging layout nests the package under node_modules/cli-jaw; a plain
18
+ // root package.json covers any future flat layout.
19
+ const candidates = [
20
+ path.join(dir, 'package.json'),
21
+ path.join(dir, 'node_modules', 'cli-jaw', 'package.json'),
22
+ ];
23
+ for (const file of candidates) {
24
+ try {
25
+ return JSON.parse(fs.readFileSync(file, 'utf8')).name;
26
+ } catch {
27
+ // try next layout
28
+ }
21
29
  }
30
+ return null;
22
31
  }
23
32
 
24
33
  function defaultWalkFiles(dir) {