agent-director 0.5.3 → 0.5.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.
package/README.md CHANGED
@@ -166,6 +166,39 @@ agent-director send-keys --claude-instance-id <id> --text "what is 2+2?"
166
166
  await client.sendKeys({ claude_instance_id: "<id>", text: "what is 2+2?" });
167
167
  ```
168
168
 
169
+ Pass `allow_pending: true` to also permit sending to a `pending` Spawn (state
170
+ before `SessionStart` fires). The primary use case is dismissing interactive
171
+ prompts that Claude Code renders before the session becomes interactive — for
172
+ example the `--dangerously-load-development-channels` safety warning. `ended`
173
+ and `missing` Spawns are still rejected regardless of the flag.
174
+
175
+ ```ts
176
+ await client.sendKeys({
177
+ claude_instance_id: "<id>",
178
+ text: "", // press Enter to dismiss the pre-SessionStart prompt
179
+ allow_pending: true,
180
+ });
181
+ ```
182
+
183
+ ### readPane
184
+
185
+ Read the last N lines of a Spawn's tmux pane (default 25).
186
+
187
+ ```sh
188
+ agent-director read-pane --claude-instance-id <id> --n-lines 50
189
+ ```
190
+
191
+ ```ts
192
+ const result = await client.readPane({ claude_instance_id: "<id>", n_lines: 50 });
193
+ console.log(result.pane);
194
+ ```
195
+
196
+ `readPane` has no state guard — it works on `pending`, `ended`, and `missing`
197
+ Spawns as well as live ones. The `allow_pending` flag is accepted for symmetry
198
+ with `sendKeys` but has no behavioral effect.
199
+
200
+ ---
201
+
169
202
  ### kill
170
203
 
171
204
  Terminate a Spawn's tmux session.
package/dist/index.js CHANGED
@@ -495,13 +495,16 @@ function buildGet(p) {
495
495
  return ["get", "--claude-instance-id", p.claude_instance_id];
496
496
  }
497
497
  function buildSendKeys(p) {
498
- return [
498
+ const f = [
499
499
  "send-keys",
500
500
  "--claude-instance-id",
501
501
  p.claude_instance_id,
502
502
  "--text",
503
503
  p.text
504
504
  ];
505
+ if (p.allow_pending === true)
506
+ f.push("--allow-pending");
507
+ return f;
505
508
  }
506
509
  function buildReadPane(p) {
507
510
  const f = ["read-pane", "--claude-instance-id", p.claude_instance_id];
@@ -509,6 +512,8 @@ function buildReadPane(p) {
509
512
  f.push("--n-lines", String(p.n_lines));
510
513
  if (p.ansi === true)
511
514
  f.push("--ansi");
515
+ if (p.allow_pending === true)
516
+ f.push("--allow-pending");
512
517
  return f;
513
518
  }
514
519
  function buildKill(p) {
@@ -813,7 +818,7 @@ function throwFromEnvelope(verb, envelope) {
813
818
  // package.json
814
819
  var package_default = {
815
820
  name: "agent-director",
816
- version: "0.5.3",
821
+ version: "0.5.5",
817
822
  type: "module",
818
823
  os: [
819
824
  "linux",
@@ -856,8 +861,8 @@ var package_default = {
856
861
  "verify-installed-pkg": "bun run scripts/verify-installed-pkg.ts"
857
862
  },
858
863
  optionalDependencies: {
859
- "@agent-director/linux-x64": "^0.5.3",
860
- "@agent-director/darwin-arm64": "^0.5.3"
864
+ "@agent-director/linux-x64": "^0.5.5",
865
+ "@agent-director/darwin-arm64": "^0.5.5"
861
866
  },
862
867
  devDependencies: {
863
868
  typescript: ">=5.2.0",
package/dist/types.d.ts CHANGED
@@ -188,6 +188,11 @@ export interface SendKeysParams {
188
188
  claude_instance_id: string;
189
189
  /** Text to deliver to the pane. CR bytes stripped; LF preserved; Enter appended. */
190
190
  text: string;
191
+ /**
192
+ * When true, also permit send-keys on a pending Spawn (pre-SessionStart
193
+ * use case). ended/missing Spawns are still rejected even with this flag.
194
+ */
195
+ allow_pending?: boolean;
191
196
  }
192
197
  /** Mirrors pkg/api/sendkeys.go::SendKeysResult (empty; reserved for future fields). */
193
198
  export interface SendKeysResult {
@@ -200,6 +205,12 @@ export interface ReadPaneParams {
200
205
  n_lines?: number;
201
206
  /** When true return raw bytes (ANSI preserved); when false strip ANSI (default). */
202
207
  ansi?: boolean;
208
+ /**
209
+ * Accepted for surface symmetry with send-keys. ReadPane has no state
210
+ * guard (any state including pending/ended/missing is always readable),
211
+ * so this flag has no behavioral effect.
212
+ */
213
+ allow_pending?: boolean;
203
214
  }
204
215
  /** Mirrors pkg/api/readpane.go::ReadPaneResult */
205
216
  export interface ReadPaneResult {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-director",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
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.3",
47
- "@agent-director/darwin-arm64": "^0.5.3"
46
+ "@agent-director/linux-x64": "^0.5.5",
47
+ "@agent-director/darwin-arm64": "^0.5.5"
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.3
4
+ version: 0.5.5
5
5
  ---
6
6
 
7
7
  ## When to invoke