agent-director 0.5.1 → 0.5.3

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/README.md CHANGED
@@ -12,9 +12,10 @@ bun add agent-director
12
12
 
13
13
  Requires Bun >=1.0.21. The package ships the prebuilt CLI binary for
14
14
  each supported platform via optional dependencies — they install
15
- automatically on `bun add`. The `Client` resolves the host's binary
16
- at construction time via `import.meta.resolve('@agent-director/<host>/package.json')`
17
- and spawns it for every verb call.
15
+ automatically on `bun add`. The `Client` verifies the binary is present at construction time so install
16
+ errors surface immediately, then re-resolves its path on every verb call so
17
+ a binary replacement (e.g. a background `bun install`) is handled
18
+ transparently.
18
19
 
19
20
  On install, a postinstall script copies the `install-agent-director` skill body into `~/.claude/skills/install-agent-director/` so `claude /install-agent-director` is immediately discoverable in Claude Code. The postinstall only writes under `~/.claude/skills/`; it does not touch PATH, `~/.agent-director/`, or your Claude Code settings.
20
21
 
package/dist/index.js CHANGED
@@ -813,7 +813,7 @@ function throwFromEnvelope(verb, envelope) {
813
813
  // package.json
814
814
  var package_default = {
815
815
  name: "agent-director",
816
- version: "0.5.1",
816
+ version: "0.5.3",
817
817
  type: "module",
818
818
  os: [
819
819
  "linux",
@@ -856,8 +856,8 @@ var package_default = {
856
856
  "verify-installed-pkg": "bun run scripts/verify-installed-pkg.ts"
857
857
  },
858
858
  optionalDependencies: {
859
- "@agent-director/linux-x64": "^0.5.1",
860
- "@agent-director/darwin-arm64": "^0.5.1"
859
+ "@agent-director/linux-x64": "^0.5.3",
860
+ "@agent-director/darwin-arm64": "^0.5.3"
861
861
  },
862
862
  devDependencies: {
863
863
  typescript: ">=5.2.0",
@@ -874,7 +874,7 @@ var SIGKILL_GRACE_MS = 2000;
874
874
  var NPM_PACKAGE_VERSION = package_default.version;
875
875
 
876
876
  class SubprocessClient {
877
- #cliPath;
877
+ #cliPathOverride;
878
878
  #callTimeoutMs;
879
879
  #logger;
880
880
  #open;
@@ -889,7 +889,12 @@ class SubprocessClient {
889
889
  this.#callTimeoutMs = rawTimeout;
890
890
  this.#logger = opts.logger;
891
891
  const opts2 = opts;
892
- this.#cliPath = opts2._cliPath ?? resolveCliPath();
892
+ if (opts2._cliPath !== undefined) {
893
+ this.#cliPathOverride = opts2._cliPath;
894
+ } else {
895
+ resolveCliPath();
896
+ this.#cliPathOverride = undefined;
897
+ }
893
898
  const g = {};
894
899
  if (opts.storePath !== undefined)
895
900
  g.storePath = expandTilde(opts.storePath);
@@ -932,7 +937,8 @@ class SubprocessClient {
932
937
  return callPromise;
933
938
  }
934
939
  async#doCall(verb, params) {
935
- const argv = buildArgv(this.#cliPath, verb, params, this.#globalOpts);
940
+ const cliPath = this.#cliPathOverride ?? resolveCliPath();
941
+ const argv = buildArgv(cliPath, verb, params, this.#globalOpts);
936
942
  const startMs = Date.now();
937
943
  const spawnEnv = { ...process.env };
938
944
  const proc = Bun.spawn({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-director",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "os": [
6
6
  "linux",
@@ -43,8 +43,8 @@
43
43
  "verify-installed-pkg": "bun run scripts/verify-installed-pkg.ts"
44
44
  },
45
45
  "optionalDependencies": {
46
- "@agent-director/linux-x64": "^0.5.1",
47
- "@agent-director/darwin-arm64": "^0.5.1"
46
+ "@agent-director/linux-x64": "^0.5.3",
47
+ "@agent-director/darwin-arm64": "^0.5.3"
48
48
  },
49
49
  "devDependencies": {
50
50
  "typescript": ">=5.2.0",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: install-agent-director
3
3
  description: Install (or upgrade) agent-director on this machine. Runs the bundled install.sh against the user's ~/ — creates ~/.agent-director/ with the binary, warms up state.db, and injects two persistent `agent-director help` hooks into ~/.claude/settings.json (SessionStart + SessionEnd reason=compact). Use this skill when the user says "install agent-director", "set up agent-director", or "upgrade agent-director on this machine".
4
- version: 0.5.1
4
+ version: 0.5.3
5
5
  ---
6
6
 
7
7
  ## When to invoke