codeusage-cli 0.1.15 → 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 +13 -2
  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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeusage-cli",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "CLI for Codeusage - AI coding tool intelligence platform",
5
5
  "author": "Hashim",
6
6
  "license": "MIT",