codeusage-cli 0.1.14 → 0.1.16

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/dist/index.cjs +15 -4
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -28190,19 +28190,30 @@ async function detectProjectSlug(cwd) {
28190
28190
  var import_promises12 = __toESM(require("fs/promises"));
28191
28191
  var import_path2 = __toESM(require("path"));
28192
28192
  var import_os = __toESM(require("os"));
28193
+ function isWindows() {
28194
+ return process.platform === "win32";
28195
+ }
28193
28196
  function createClaudeHookEntry(command) {
28197
+ const hookCommand = { type: "command", command };
28198
+ if (isWindows()) {
28199
+ hookCommand.shell = "powershell";
28200
+ }
28194
28201
  return {
28195
28202
  matcher: "",
28196
- hooks: [{ type: "command", command }]
28203
+ hooks: [hookCommand]
28197
28204
  };
28198
28205
  }
28199
28206
  function createCodexHookCommand(command, statusMessage) {
28200
- return {
28207
+ const hookCommand = {
28201
28208
  type: "command",
28202
28209
  command,
28203
28210
  statusMessage,
28204
28211
  timeout: 10
28205
28212
  };
28213
+ if (isWindows()) {
28214
+ hookCommand.shell = "powershell";
28215
+ }
28216
+ return hookCommand;
28206
28217
  }
28207
28218
  var claudeCodeConfig = {
28208
28219
  settingsPath: (scope, cwd) => {
@@ -30271,7 +30282,7 @@ function calculateDelta(current, previous) {
30271
30282
  }
30272
30283
 
30273
30284
  // src/hooks/stop.ts
30274
- var CLI_VERSION = "0.1.14";
30285
+ var CLI_VERSION = "0.1.15";
30275
30286
  var hookStopCommand = new Command("stop").description("Handle AI coding tool stop hook (internal)").option("--dry-run", "Parse session but don't send to API").option("--provider <provider>", "Provider ID (claude_code or codex)").action(async (options) => {
30276
30287
  if (!isConfigured()) {
30277
30288
  return;
@@ -30441,7 +30452,7 @@ var hookNotificationCommand = new Command("notification").description("Handle AI
30441
30452
 
30442
30453
  // src/index.ts
30443
30454
  var program2 = new Command;
30444
- program2.name("codeusage").description("CLI for Codeusage - AI coding tool intelligence platform").version("0.1.13");
30455
+ program2.name("codeusage").description("CLI for Codeusage - AI coding tool intelligence platform").version("0.1.15");
30445
30456
  program2.addCommand(initCommand);
30446
30457
  program2.addCommand(statusCommand);
30447
30458
  program2.addCommand(projectCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeusage-cli",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "CLI for Codeusage - AI coding tool intelligence platform",
5
5
  "author": "Hashim",
6
6
  "license": "MIT",