@ascenda-one/claude-code-hooks 0.1.10 → 0.1.11

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 +3 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -733,7 +733,9 @@ var require_stateStore = __commonJS({
733
733
  var path = __importStar(__require("path"));
734
734
  var tokenStore_1 = require_tokenStore();
735
735
  function defaultStateFilePath2(toolInstallationId) {
736
- return path.join(os.homedir(), ".ascenda", "state", `${(0, tokenStore_1.sanitizeFilePart)(toolInstallationId)}.json`);
736
+ const dir = process.env.ASCENDA_STATE_DIR?.trim();
737
+ const base = dir ? dir : path.join(os.homedir(), ".ascenda", "state");
738
+ return path.join(base, `${(0, tokenStore_1.sanitizeFilePart)(toolInstallationId)}.json`);
737
739
  }
738
740
  function readCollectorState2(stateFilePath) {
739
741
  try {
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.10",
4
+ "version": "0.1.11",
5
5
  "description": "Claude Code hooks adapter for Ascenda AI workload telemetry.",
6
6
  "repository": {
7
7
  "type": "git",