@ascenda-one/claude-code-hooks 0.1.20 → 0.1.22

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/cli.js +4 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1120,8 +1120,8 @@ var require_tokenStore = __commonJS({
1120
1120
  var fs3 = __importStar(__require("fs"));
1121
1121
  var os2 = __importStar(__require("os"));
1122
1122
  var path3 = __importStar(__require("path"));
1123
- function ascendaHome3() {
1124
- return process.env.ASCENDA_HOME ?? path3.join(os2.homedir(), ".ascenda");
1123
+ function ascendaHome3(home = os2.homedir()) {
1124
+ return process.env.ASCENDA_HOME ?? path3.join(home, ".ascenda");
1125
1125
  }
1126
1126
  function defaultTokenFilePath4(toolInstallationId) {
1127
1127
  return path3.join(ascendaHome3(), "tokens", sanitizeFilePart(toolInstallationId));
@@ -2404,10 +2404,10 @@ var require_salt = __commonJS({
2404
2404
  exports.hashWithMachineSalt = hashWithMachineSalt;
2405
2405
  var crypto2 = __importStar(__require("crypto"));
2406
2406
  var fs3 = __importStar(__require("fs"));
2407
- var os2 = __importStar(__require("os"));
2408
2407
  var path3 = __importStar(__require("path"));
2408
+ var tokenStore_1 = require_tokenStore();
2409
2409
  function machineSaltFilePath() {
2410
- return path3.join(os2.homedir(), ".ascenda", "salt");
2410
+ return path3.join((0, tokenStore_1.ascendaHome)(), "salt");
2411
2411
  }
2412
2412
  var cache = /* @__PURE__ */ new Map();
2413
2413
  function readOrCreateMachineSalt(saltFilePath = machineSaltFilePath()) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "publishConfig": { "access": "public" },
3
3
  "name": "@ascenda-one/claude-code-hooks",
4
- "version": "0.1.20",
4
+ "version": "0.1.22",
5
5
  "description": "Claude Code hooks adapter for Ascenda AI workload telemetry.",
6
6
  "repository": {
7
7
  "type": "git",