aicp-tracker 1.0.7 → 1.0.9

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/bin/setup.js +6 -10
  2. package/package.json +1 -1
package/bin/setup.js CHANGED
@@ -13,12 +13,9 @@ if (isPostinstall) {
13
13
  try { existing = require('../src/config').load(); } catch {}
14
14
  if (existing?.apiKey && existing?.vcsUrl) process.exit(0);
15
15
 
16
- // spawnSync with stdio:'inherit' passes the real terminal descriptors to the child,
17
- // giving enquirer a proper TTY without opening a separate window.
18
- const { spawnSync } = require('child_process');
19
- const wizardPath = path.resolve(__dirname, 'aicp-tracker.js');
20
- const result = spawnSync(process.execPath, [wizardPath, 'setup'], { stdio: 'inherit' });
21
- process.exit(result.status || 0);
16
+ console.log('\n\x1b[1m AI Code Pulse Tracker installed.\x1b[0m');
17
+ console.log(' Run \x1b[1maicp-tracker start\x1b[0m to activate tracking.\n');
18
+ process.exit(0);
22
19
  }
23
20
 
24
21
  // ── When called directly (aicp-tracker setup) ─────────────────────────────────
@@ -50,10 +47,9 @@ function installAutoStart() {
50
47
 
51
48
  try {
52
49
  if (process.platform === 'win32') {
53
- execSync(
54
- `schtasks /create /tn "${TASK_NAME}" /tr "\\"${nodePath}\\" \\"${scriptPath}\\" start" /sc ONLOGON /f`,
55
- { stdio: 'ignore' }
56
- );
50
+ // schtasks /tr requires the command wrapped in outer quotes when paths contain spaces
51
+ const tr = `"\\"${nodePath}\\" \\"${scriptPath}\\" start"`;
52
+ execSync(`schtasks /create /tn "${TASK_NAME}" /tr ${tr} /sc ONLOGON /f`, { stdio: 'pipe' });
57
53
  } else if (process.platform === 'darwin') {
58
54
  const plistDir = path.join(os.homedir(), 'Library', 'LaunchAgents');
59
55
  const plistPath = path.join(plistDir, 'com.aicp-tracker.plist');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicp-tracker",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "AI Code Pulse — Claude Code usage tracker for JIRA cost attribution",
5
5
  "main": "src/daemon.js",
6
6
  "bin": {