agent-director 0.7.5 → 0.7.7

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/index.js +5 -6
  2. 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
- const url = import.meta.resolve("agent-director/package.json");
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
- const url = new URL("../../package.json", import.meta.url);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-director",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "type": "module",
5
5
  "os": ["linux", "darwin"],
6
6
  "cpu": ["x64", "arm64"],