zephyr-agent 0.1.3-next.3 → 0.1.3-next.5
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.
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StorageKeys = exports.ZE_SESSION_LOCK = exports.
|
|
3
|
+
exports.StorageKeys = exports.ZE_SESSION_LOCK = exports.ZE_PATH = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fs = tslib_1.__importStar(require("node:fs"));
|
|
6
6
|
const os = tslib_1.__importStar(require("node:os"));
|
|
7
7
|
const path = tslib_1.__importStar(require("node:path"));
|
|
8
8
|
exports.ZE_PATH = path.resolve(os.homedir(), '.zephyr');
|
|
9
|
-
exports.ZE_PERSIST_PATH = path.resolve(exports.ZE_PATH, 'persist');
|
|
10
9
|
exports.ZE_SESSION_LOCK = path.resolve(exports.ZE_PATH, 'session');
|
|
11
10
|
try {
|
|
12
|
-
// Ensures that the
|
|
11
|
+
// Ensures that the directory exists and lockfile is writable
|
|
13
12
|
fs.mkdirSync(exports.ZE_PATH, { recursive: true });
|
|
14
|
-
fs.mkdirSync(exports.ZE_PERSIST_PATH, { recursive: true });
|
|
15
13
|
}
|
|
16
14
|
catch (error) {
|
|
17
|
-
console.error('error', `Could not create ~/.zephyr
|
|
15
|
+
console.error('error', `Could not create ~/.zephyr directory. Please check your permissions: ${error}`);
|
|
18
16
|
}
|
|
19
17
|
var StorageKeys;
|
|
20
18
|
(function (StorageKeys) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-keys.js","sourceRoot":"","sources":["../../../src/lib/node-persist/storage-keys.ts"],"names":[],"mappings":";;;;AAAA,oDAA8B;AAC9B,oDAA8B;AAC9B,wDAAkC;AAErB,QAAA,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;AAChD,QAAA,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,eAAO,EAAE,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"storage-keys.js","sourceRoot":"","sources":["../../../src/lib/node-persist/storage-keys.ts"],"names":[],"mappings":";;;;AAAA,oDAA8B;AAC9B,oDAA8B;AAC9B,wDAAkC;AAErB,QAAA,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;AAChD,QAAA,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,eAAO,EAAE,SAAS,CAAC,CAAC;AAEhE,IAAI,CAAC;IACH,6DAA6D;IAC7D,EAAE,CAAC,SAAS,CAAC,eAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,OAAO,CAAC,KAAK,CACX,OAAO,EACP,wEAAwE,KAAK,EAAE,CAChF,CAAC;AACJ,CAAC;AAED,IAAY,WAUX;AAVD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,mEAAoD,CAAA;IACpD,8CAA+B,CAAA;IAC/B,kDAAmC,CAAA;IACnC,0CAA2B,CAAA;IAC3B,8CAA+B,CAAA;IAC/B,4DAA6C,CAAA;IAC7C,kDAAmC,CAAA;IACnC,8CAA+B,CAAA;AACjC,CAAC,EAVW,WAAW,2BAAX,WAAW,QAUtB"}
|
|
@@ -5,6 +5,9 @@ const node_persist_1 = require("node-persist");
|
|
|
5
5
|
const storage_keys_1 = require("./storage-keys");
|
|
6
6
|
/** @internal */
|
|
7
7
|
exports.storage = (0, node_persist_1.init)({
|
|
8
|
-
dir: storage_keys_1.
|
|
8
|
+
dir: storage_keys_1.ZE_PATH,
|
|
9
|
+
// node-persist thinks every file in .zephyr folder is a JSON valid file,
|
|
10
|
+
// since we use that folder for other purposes too, we need to set this to true
|
|
11
|
+
forgiveParseErrors: true,
|
|
9
12
|
});
|
|
10
13
|
//# sourceMappingURL=storage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/lib/node-persist/storage.ts"],"names":[],"mappings":";;;AAAA,+CAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/lib/node-persist/storage.ts"],"names":[],"mappings":";;;AAAA,+CAAoC;AACpC,iDAAyC;AAEzC,gBAAgB;AACH,QAAA,OAAO,GAAG,IAAA,mBAAI,EAAC;IAC1B,GAAG,EAAE,sBAAO;IACZ,yEAAyE;IACzE,+EAA+E;IAC/E,kBAAkB,EAAE,IAAI;CACzB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-agent",
|
|
3
|
-
"version": "0.1.3-next.
|
|
3
|
+
"version": "0.1.3-next.5",
|
|
4
4
|
"description": "Zephyr plugin agent",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"open": "^10.1.0",
|
|
41
41
|
"proper-lockfile": "^4.1.2",
|
|
42
42
|
"tslib": "^2.8.1",
|
|
43
|
-
"zephyr-edge-contract": "0.1.3-next.
|
|
43
|
+
"zephyr-edge-contract": "0.1.3-next.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@jest/globals": "^29.7.0",
|