@usevalt/cli 0.8.0 → 0.9.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/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2461,12 +2461,15 @@ var hookCommand = new Command13("hook").description("Claude Code hook handlers f
2461
2461
  // src/commands/setup.ts
2462
2462
  import { Command as Command14 } from "commander";
2463
2463
  import { readFileSync as readFileSync4, writeFileSync as writeFileSync4, mkdirSync as mkdirSync2, existsSync as existsSync5, unlinkSync as unlinkSync3 } from "fs";
2464
- import { join as join2 } from "path";
2464
+ import { join as join2, dirname } from "path";
2465
+ import { fileURLToPath } from "url";
2465
2466
  import os3 from "os";
2467
+ var __dirname = dirname(fileURLToPath(import.meta.url));
2468
+ var pkgVersion = JSON.parse(readFileSync4(join2(__dirname, "../package.json"), "utf-8")).version;
2466
2469
  var CLAUDE_DIR = join2(os3.homedir(), ".claude");
2467
2470
  var SETTINGS_FILE = join2(CLAUDE_DIR, "settings.json");
2468
2471
  var LEGACY_HOOKS_FILE = join2(CLAUDE_DIR, "hooks.json");
2469
- var HOOK_PREFIX = "npx --yes @usevalt/cli";
2472
+ var HOOK_PREFIX = `npx --yes @usevalt/cli@${pkgVersion}`;
2470
2473
  function getValtHooks() {
2471
2474
  return {
2472
2475
  Setup: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usevalt/cli",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "Valt CLI — trust layer for AI-assisted development",
5
5
  "license": "MIT",
6
6
  "repository": {