@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.
- package/dist/cli.js +3 -1
- 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
|
-
|
|
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