agent-director 0.4.2 → 0.4.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
@@ -163,6 +163,18 @@ agent-director kill --claude-instance-id <id>
163
163
  await client.kill({ claude_instance_id: "<id>" });
164
164
  ```
165
165
 
166
+ ### makeTemplate
167
+
168
+ Save a reusable spawn preset. Pass `overwrite: true` to atomically replace an existing template; omit the field to keep the default rejection on collision.
169
+
170
+ ```sh
171
+ agent-director make-template --name dev --cwd /repos/widget --overwrite
172
+ ```
173
+
174
+ ```ts
175
+ await client.makeTemplate({ name: "dev", cwd: "/repos/widget", overwrite: true });
176
+ ```
177
+
166
178
  ## Versioning
167
179
 
168
180
  The library version equals the agent-director release tag — released in lockstep:
package/dist/types.d.ts CHANGED
@@ -255,6 +255,12 @@ export interface MakeTemplateParams {
255
255
  deny?: string[];
256
256
  /** permissions.ask entries. */
257
257
  ask?: string[];
258
+ /**
259
+ * When true, an existing template at this name is replaced atomically
260
+ * via a sibling-tempfile + rename. When omitted or false, the
261
+ * existing-template rejection runs (v0.4.2 behaviour).
262
+ */
263
+ overwrite?: boolean;
258
264
  }
259
265
  /** Mirrors pkg/api/make_template.go::MakeTemplateResult */
260
266
  export interface MakeTemplateResult {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-director",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "os": [
6
6
  "linux",
@@ -42,8 +42,8 @@
42
42
  "prepublishOnly": "bun run scripts/prepublish-guards.ts"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@agent-director/linux-x64": "^0.4.2",
46
- "@agent-director/darwin-arm64": "^0.4.2"
45
+ "@agent-director/linux-x64": "^0.4.3",
46
+ "@agent-director/darwin-arm64": "^0.4.3"
47
47
  },
48
48
  "devDependencies": {
49
49
  "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.4.2
4
+ version: 0.4.3
5
5
  ---
6
6
 
7
7
  ## When to invoke