@dougbots/avenor-pi 0.5.0 → 0.5.1

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 +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -881,8 +881,8 @@ function createExtension(deps = defaultDeps) {
881
881
  return (await deps.Supervisor.get()).supervisorId;
882
882
  }
883
883
  async function withClient(run, work) {
884
- const socket = await resolveSupervisorSocket(run);
885
- const client = await deps.dial(socket);
884
+ if (!run.supervisorId || deps.Supervisor.isCurrentInstance(run.supervisorId)) return work((await deps.Supervisor.get()).getClient());
885
+ const client = await deps.dial(run.supervisorId);
886
886
  try {
887
887
  return await work(client);
888
888
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dougbots/avenor-pi",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -35,7 +35,7 @@
35
35
  "dev": "tsdown --watch"
36
36
  },
37
37
  "dependencies": {
38
- "@dougbots/avenor-core": "^0.5.0"
38
+ "@dougbots/avenor-core": "^0.5.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@earendil-works/pi-coding-agent": "*",