agent-director 0.7.5 → 0.7.6
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/index.js +5 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1233,15 +1233,14 @@ function throwFromEnvelope(verb, envelope) {
|
|
|
1233
1233
|
var DEFAULT_CALL_TIMEOUT_MS = 30000;
|
|
1234
1234
|
var SIGKILL_GRACE_MS2 = 2000;
|
|
1235
1235
|
async function loadNpmPackageVersion() {
|
|
1236
|
+
let url;
|
|
1236
1237
|
try {
|
|
1237
|
-
|
|
1238
|
-
const json = await readFile(new URL(url), "utf8");
|
|
1239
|
-
return JSON.parse(json).version;
|
|
1238
|
+
url = new URL(import.meta.resolve("agent-director/package.json"));
|
|
1240
1239
|
} catch {
|
|
1241
|
-
|
|
1242
|
-
const json = await readFile(url, "utf8");
|
|
1243
|
-
return JSON.parse(json).version;
|
|
1240
|
+
url = new URL("../../package.json", import.meta.url);
|
|
1244
1241
|
}
|
|
1242
|
+
const json = await readFile(url, "utf8");
|
|
1243
|
+
return JSON.parse(json).version;
|
|
1245
1244
|
}
|
|
1246
1245
|
|
|
1247
1246
|
class SubprocessClient {
|