aicp-tracker 1.0.5 → 1.0.8

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 +2 -33
  2. package/package.json +1 -1
package/bin/setup.js CHANGED
@@ -13,39 +13,8 @@ if (isPostinstall) {
13
13
  try { existing = require('../src/config').load(); } catch {}
14
14
  if (existing?.apiKey && existing?.vcsUrl) process.exit(0);
15
15
 
16
- // Spawn a new terminal window with the wizard — gives a guaranteed TTY
17
- // regardless of how npm pipes its own stdout during postinstall.
18
- const { spawn } = require('child_process');
19
- const wizardPath = path.resolve(__dirname, 'aicp-tracker.js');
20
- const nodePath = process.execPath;
21
-
22
- try {
23
- if (process.platform === 'win32') {
24
- // cmd /k keeps the window open after the wizard finishes so the user can read output
25
- spawn('cmd.exe', ['/c', 'start', 'cmd', '/k', `"${nodePath}" "${wizardPath}" setup`], { stdio: 'ignore', detached: true }).unref();
26
- } else if (process.platform === 'darwin') {
27
- spawn('osascript', ['-e', `tell app "Terminal" to do script "${nodePath} '${wizardPath}' setup"`], { stdio: 'ignore', detached: true }).unref();
28
- } else {
29
- // Try common Linux terminal emulators in order
30
- const terms = ['x-terminal-emulator', 'gnome-terminal', 'xterm', 'konsole'];
31
- let launched = false;
32
- for (const term of terms) {
33
- try {
34
- spawn(term, ['-e', `${nodePath} "${wizardPath}" setup`], { stdio: 'ignore', detached: true }).unref();
35
- launched = true;
36
- break;
37
- } catch {}
38
- }
39
- if (!launched) {
40
- console.log('\n\x1b[1m AI Code Pulse Tracker installed.\x1b[0m');
41
- console.log(' Run \x1b[1maicp-tracker setup\x1b[0m to activate tracking.\n');
42
- }
43
- }
44
- } catch {
45
- console.log('\n\x1b[1m AI Code Pulse Tracker installed.\x1b[0m');
46
- console.log(' Run \x1b[1maicp-tracker setup\x1b[0m to activate tracking.\n');
47
- }
48
-
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');
49
18
  process.exit(0);
50
19
  }
51
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicp-tracker",
3
- "version": "1.0.5",
3
+ "version": "1.0.8",
4
4
  "description": "AI Code Pulse — Claude Code usage tracker for JIRA cost attribution",
5
5
  "main": "src/daemon.js",
6
6
  "bin": {