burner-cc 0.3.2 → 0.3.3

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/package.json +1 -1
  2. package/src/install.js +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "burner-cc",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "What your Claude Code sessions cost, and what they were for — itemized receipts, projects, intent tagging.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/install.js CHANGED
@@ -32,16 +32,18 @@ function pathNorm(p) {
32
32
  return path.resolve(p).replace(/\\/g, '/').toLowerCase();
33
33
  }
34
34
 
35
- /** True when the running entrypoint is this repo's bin/burner.js (not npm global link). */
35
+ /** True when this process is the burner repo checkout, not npm's installed `burner-cc` package. */
36
36
  export function isDevCheckout() {
37
37
  const entry = process.argv[1] ? path.resolve(process.argv[1]) : '';
38
- return entry && pathNorm(entry) === pathNorm(BIN);
38
+ if (!entry || pathNorm(entry) !== pathNorm(BIN)) return false;
39
+ const pkgRoot = pathNorm(path.resolve(__dirname, '..'));
40
+ return !/\/node_modules\/burner-cc$/.test(pkgRoot);
39
41
  }
40
42
 
41
- /** Shell command users should run (global npm: `burner …`; dev checkout: `node …/burner.js …`). */
43
+ /** Command for skills/hooks: always `node` + absolute burner.js (works without `burner` on PATH). */
42
44
  export function burnerShell(sub = '') {
43
45
  const tail = sub ? ` ${sub}` : '';
44
- return isDevCheckout() ? `${nodeCmd()}${tail}` : `${NPM_CLI}${tail}`;
46
+ return `${nodeCmd()}${tail}`;
45
47
  }
46
48
 
47
49
  /** Paste into Claude Code / Cursor chat if /burner-tag is missing after you changed categories. */