ai-heatmap 1.17.0 → 1.17.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.
Files changed (2) hide show
  1. package/bin/cli.mjs +5 -1
  2. package/package.json +1 -1
package/bin/cli.mjs CHANGED
@@ -145,7 +145,11 @@ switch (command) {
145
145
  }
146
146
 
147
147
  // 2. generate: 이 컴퓨터 데이터 수집 + 모든 data-*.json 합산 → data.json 생성
148
- execSync(`node ${genScript} ${genArgs.join(" ")}`, { stdio: "inherit" });
148
+ // machineName을 명시적으로 전달해 cli.mjs와 generate.mjs가 동일한 값을 사용하도록 보장
149
+ const genArgsWithName = genArgs.some((a) => a.startsWith("--name="))
150
+ ? genArgs
151
+ : [`--name=${machineName}`, ...genArgs];
152
+ execSync(`node ${genScript} ${genArgsWithName.join(" ")}`, { stdio: "inherit" });
149
153
 
150
154
  // 3. data-{name}.json push (이 컴퓨터 개별 파일)
151
155
  const machineFile = `data-${machineName}.json`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-heatmap",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "description": "AI usage cost heatmap powered by ccusage + react-activity-calendar",
5
5
  "type": "module",
6
6
  "bin": {