nubos-pilot 0.9.0 → 0.9.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.
@@ -6,10 +6,10 @@ const os = require('node:os');
6
6
 
7
7
  const { atomicWriteFileSync, NubosPilotError } = require('../core.cjs');
8
8
 
9
- const STATUSLINE_REL = '.claude/nubos-pilot/hooks/np-statusline.js';
10
- const CTX_MONITOR_REL = '.claude/nubos-pilot/hooks/np-ctx-monitor.js';
11
- const NP_STATUSLINE_MARKER = 'np-statusline.js';
12
- const NP_CTX_MONITOR_MARKER = 'np-ctx-monitor.js';
9
+ const STATUSLINE_REL = '.claude/nubos-pilot/hooks/np-statusline.cjs';
10
+ const CTX_MONITOR_REL = '.claude/nubos-pilot/hooks/np-ctx-monitor.cjs';
11
+ const NP_STATUSLINE_MARKER = 'np-statusline.';
12
+ const NP_CTX_MONITOR_MARKER = 'np-ctx-monitor.';
13
13
 
14
14
  function _settingsPath(scope, projectRoot) {
15
15
  if (scope === 'global') return path.join(os.homedir(), '.claude', 'settings.json');
@@ -12,8 +12,8 @@ function _mkSandbox() {
12
12
  const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'np-claude-hooks-'));
13
13
  fs.mkdirSync(path.join(dir, '.claude'), { recursive: true });
14
14
  fs.mkdirSync(path.join(dir, '.claude', 'nubos-pilot', 'hooks'), { recursive: true });
15
- fs.writeFileSync(path.join(dir, '.claude', 'nubos-pilot', 'hooks', 'np-statusline.js'), '// stub\n');
16
- fs.writeFileSync(path.join(dir, '.claude', 'nubos-pilot', 'hooks', 'np-ctx-monitor.js'), '// stub\n');
15
+ fs.writeFileSync(path.join(dir, '.claude', 'nubos-pilot', 'hooks', 'np-statusline.cjs'), '// stub\n');
16
+ fs.writeFileSync(path.join(dir, '.claude', 'nubos-pilot', 'hooks', 'np-ctx-monitor.cjs'), '// stub\n');
17
17
  return dir;
18
18
  }
19
19
 
@@ -26,10 +26,10 @@ test('claude-hooks: fresh install writes both hooks to local settings', () => {
26
26
  assert.equal(res.results.ctxMonitor.action, 'installed');
27
27
  const settings = JSON.parse(fs.readFileSync(res.path, 'utf-8'));
28
28
  assert.equal(settings.statusLine.type, 'command');
29
- assert.ok(settings.statusLine.command.includes('np-statusline.js'));
29
+ assert.ok(settings.statusLine.command.includes('np-statusline.cjs'));
30
30
  assert.ok(Array.isArray(settings.hooks.PostToolUse));
31
31
  assert.equal(settings.hooks.PostToolUse[0].matcher, '.*');
32
- assert.ok(settings.hooks.PostToolUse[0].hooks[0].command.includes('np-ctx-monitor.js'));
32
+ assert.ok(settings.hooks.PostToolUse[0].hooks[0].command.includes('np-ctx-monitor.cjs'));
33
33
  } finally {
34
34
  fs.rmSync(dir, { recursive: true, force: true });
35
35
  }
@@ -62,7 +62,7 @@ test('claude-hooks: --force overwrites foreign statusLine', () => {
62
62
  const res = mod.installClaudeHooks({ projectRoot: dir, scope: 'local', force: true });
63
63
  assert.equal(res.results.statusline.action, 'overwrote');
64
64
  const settings = JSON.parse(fs.readFileSync(res.path, 'utf-8'));
65
- assert.ok(settings.statusLine.command.includes('np-statusline.js'));
65
+ assert.ok(settings.statusLine.command.includes('np-statusline.cjs'));
66
66
  } finally {
67
67
  fs.rmSync(dir, { recursive: true, force: true });
68
68
  }
@@ -98,7 +98,7 @@ test('claude-hooks: preserves unrelated PostToolUse hooks', () => {
98
98
  const settings = JSON.parse(fs.readFileSync(res.path, 'utf-8'));
99
99
  assert.equal(settings.hooks.PostToolUse.length, 2);
100
100
  assert.equal(settings.hooks.PostToolUse[0].matcher, 'Bash');
101
- assert.ok(settings.hooks.PostToolUse[1].hooks[0].command.includes('np-ctx-monitor.js'));
101
+ assert.ok(settings.hooks.PostToolUse[1].hooks[0].command.includes('np-ctx-monitor.cjs'));
102
102
  } finally {
103
103
  fs.rmSync(dir, { recursive: true, force: true });
104
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nubos-pilot",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "AI-driven planning and execution tool for code projects",
5
5
  "homepage": "https://github.com/Nubos-AI/nubos-pilot",
6
6
  "repository": {