adaptive-director-skill 1.1.0 → 1.1.2

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
@@ -2,232 +2,424 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/adaptive-director-skill.svg)](https://www.npmjs.com/package/adaptive-director-skill)
4
4
  [![Node.js](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg)](https://nodejs.org)
5
- [![Zero Dependencies](https://img.shields.io/badge/dependencies-0%20(pure%20built--ins)-blue.svg)](#core-principles)
5
+ [![Zero Dependencies](https://img.shields.io/badge/dependencies-0%20pure%20built--ins-blue.svg)](#requirements)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
7
7
 
8
- > **One task in. The right agents take it from there.**
8
+ **One coding task. The right AI for every phase.**
9
9
 
10
- **Adaptive Director Skill** is a lightweight, skill-first orchestration layer for AI coding agents. Give it a single development task, and it dynamically directs each phase—**Planning, Implementation, Review, Fixing, and Verification**—to the best available agent, model, and reasoning effort.
10
+ Adaptive Director is a local, skill-first workflow director for AI coding agents. Give it one task and it coordinates the rest: planning, implementation, independent review, targeted fixing, and verification.
11
11
 
12
- Instead of burning expensive reasoning tokens on simple edits or trusting a weak model with complex architecture and reviews, it directs work intelligently based on capability and budget.
12
+ It is built for developers who already use tools like Codex, Claude Code, AGY, and delegate-skills, but do not want to manually decide which agent should plan, code, review, and verify every change.
13
13
 
14
- ```text
15
- User Task
16
-
17
- Adaptive Director
18
-
19
- Plan → Implement → Review → Verify
20
- ↓ ↓ ↓
21
- Best Best Independent
22
- Agent Coder Reviewer
14
+ ```bash
15
+ npx adaptive-director-skill setup
16
+ adaptive-director run "Add refresh-token authentication"
23
17
  ```
24
18
 
25
- ---
19
+ ## Why This Exists
20
+
21
+ One AI agent doing everything is convenient, but it creates predictable failure modes:
22
+
23
+ | Problem | What happens |
24
+ | --- | --- |
25
+ | Weak planning | A cheap or fast model makes the wrong architectural call. |
26
+ | Self-review | The same context that wrote the bug often misses it. |
27
+ | Overpowered simple tasks | Expensive reasoning gets spent on small edits. |
28
+ | Manual model juggling | You keep switching tools instead of shipping. |
29
+ | No proof | A final answer says "done" without test/build evidence. |
26
30
 
27
- ## Why Use It?
31
+ Adaptive Director turns that into a disciplined local loop.
28
32
 
29
- Running an entire task with a single agent often leads to three common problems:
30
- - **Weak models on critical planning:** Lightweight models make architectural mistakes.
31
- - **Wasted reasoning tokens:** Using maximum reasoning for minor code changes burns quota needlessly.
32
- - **Review blind spots:** Agents struggle to catch their own errors during self-review.
33
+ ## Workflow
33
34
 
34
- ### How It Solves This
35
+ This chart is plain text so it stays readable on npm, GitHub, terminals, and package mirrors.
35
36
 
36
- ```mermaid
37
- flowchart LR
38
- Task([User Task]) --> Plan["1. Plan<br/>(High Reasoning)"]
39
- Plan --> Impl["2. Implement<br/>(Fast Coder)"]
40
- Impl --> Rev["3. Review<br/>(Independent Agent)"]
41
- Rev --> Gate{"Critical<br/>Issues?"}
42
- Gate -- Yes --> Fix["Targeted Fix<br/>(Max 1 Cycle)"]
43
- Fix --> Rev
44
- Gate -- No --> Ver["4. Verify<br/>(Automated Tests)"]
45
- Ver --> Done([Verified])
37
+ ```text
38
+ User task
39
+ |
40
+ v
41
+ Classify size: small / medium / large
42
+ |
43
+ v
44
+ Route each phase to the best available host + model + effort
45
+ |
46
+ v
47
+ +---------+ +------------+ +--------------------+ +----------+
48
+ | Plan | ---> | Implement | ---> | Independent Review | ---> | Verify |
49
+ +---------+ +------------+ +--------------------+ +----------+
50
+ |
51
+ | critical findings only
52
+ v
53
+ +------------+
54
+ | Fix |
55
+ +------------+
56
+ |
57
+ v
58
+ Re-review once
46
59
  ```
47
60
 
48
- | Phase | Adaptive Decision |
49
- |---|---|
50
- | **Plan** | Directed to a strong reasoning model |
51
- | **Implement** | Routed to an efficient coding specialist |
52
- | **Review** | Checked by an independent reviewer (never self-reviewed) |
53
- | **Fix** | Automated 1-cycle fix for critical findings |
54
- | **Verify** | Validated via project test suites (`flutter test`, `npm test`, `pytest`) |
61
+ Terminal statuses are explicit:
62
+
63
+ | Status | Meaning |
64
+ | --- | --- |
65
+ | `completed` | Workflow finished and verification passed, or no supported deterministic gates were detected. |
66
+ | `blocked` | Critical review findings remain after the allowed fix cycle, or verification evidence failed. |
67
+ | `needs_recovery` | Delegate execution mutated the workspace and failed, so automatic fallback was blocked. |
68
+ | `failed` | A configuration or execution error prevented safe progress. |
55
69
 
56
- ---
70
+ ## Install And Setup
57
71
 
58
- ## Quick Start
72
+ Recommended one-command onboarding:
59
73
 
60
- Adaptive Director runs with **zero external npm dependencies** (pure Node.js built-ins).
74
+ ```bash
75
+ npx adaptive-director-skill setup
76
+ ```
61
77
 
62
- ### 1. Install Globally
78
+ That command:
79
+
80
+ 1. Detects supported coding-agent hosts.
81
+ 2. Installs the Adaptive Director skill into host skill directories.
82
+ 3. Creates or updates `~/.adaptive-director/config.json`.
83
+ 4. Detects optional delegate-skills.
84
+ 5. Runs health checks.
85
+ 6. Prints the first command to try.
86
+
87
+ Global install:
63
88
 
64
89
  ```bash
65
90
  npm install -g adaptive-director-skill
91
+ adaptive-director setup
66
92
  ```
67
93
 
68
- ### 2. Set Up
94
+ Native-only non-interactive setup:
69
95
 
70
- > `adaptive-director setup` registers the Skill with your coding-agent hosts, discovers available agents, detects optional delegate-skills integration, and creates the local Adaptive Director configuration.
96
+ ```bash
97
+ npx adaptive-director-skill setup --yes --no-delegate
98
+ ```
99
+
100
+ Setup with delegate-skills integration:
71
101
 
72
102
  ```bash
73
- adaptive-director setup
103
+ npx adaptive-director-skill setup --with-delegate
74
104
  ```
75
105
 
76
- Or without a global install:
106
+ ## Run A Task
77
107
 
78
108
  ```bash
79
- npx adaptive-director-skill setup
109
+ adaptive-director run "Add input validation to the login flow"
110
+ ```
111
+
112
+ What happens:
113
+
114
+ 1. A run workspace is created under `.adaptive-director/runs/<run-id>/`.
115
+ 2. The task is classified.
116
+ 3. Phase routing decisions are persisted.
117
+ 4. Each phase receives a focused handoff brief.
118
+ 5. Critical review findings trigger one targeted fix/re-review cycle.
119
+ 6. Verification evidence is collected from real project commands where detected.
120
+ 7. Final run status is persisted.
121
+
122
+ Example output shape:
123
+
124
+ ```text
125
+ Adaptive Director
126
+ Run: run-a1b2c3d4
127
+
128
+ Task size: medium
129
+ Budget: balanced
130
+
131
+ [1/4] Plan
132
+ Agent: agy
133
+ Model: claude-sonnet-4-6
134
+ Effort: high
135
+ completed
136
+
137
+ [2/4] Implement
138
+ Agent: codex
139
+ Model: gpt-6-astra
140
+ Effort: medium
141
+ completed
142
+
143
+ [3/4] Review
144
+ Agent: claude
145
+ Anti-affinity: Tier 4
146
+ 0 critical
147
+ 2 warnings
148
+
149
+ [4/4] Verify
150
+ npm test passed
151
+
152
+ Status: completed
80
153
  ```
81
154
 
82
- ### 3. Verify
155
+ ## Command Reference
156
+
157
+ ### Core commands
158
+
159
+ | Command | Purpose |
160
+ | --- | --- |
161
+ | `adaptive-director run "<task>"` | Run the complete workflow for one coding task. |
162
+ | `adaptive-director setup` | Discover hosts, install the skill, configure optional delegate integration. |
163
+ | `adaptive-director install` | Reinstall/update the skill into detected host skill directories. |
164
+ | `adaptive-director refresh` | Re-discover hosts and update config while preserving overrides. |
165
+ | `adaptive-director doctor` | Validate package, config, routing, hosts, and delegate integration. |
166
+ | `adaptive-director delegate install` | Install delegate-skills through its official installer. |
167
+ | `adaptive-director delegate status` | Show delegate detection, relays, and lanes. |
168
+ | `adaptive-director help` | Show CLI help. |
169
+
170
+ ### `run` flags
171
+
172
+ | Flag | Values | Default | Meaning |
173
+ | --- | --- | --- | --- |
174
+ | `--budget <mode>` | `conservative`, `balanced`, `quality` | `balanced` | Chooses effort levels per phase. |
175
+ | `--delegate` | boolean | off | Allows delegate lanes when available. Native remains the fallback. |
176
+ | `--allow-max` | boolean | off | Allows `max` effort if routing selects it. Without this, `max` is downgraded. |
177
+ | `--dry-run` | boolean | off | Prints routing decisions without executing phases. |
178
+ | `--cwd <path>` | path | current directory | Runs the task against a specific project directory. |
179
+
180
+ Examples:
83
181
 
84
182
  ```bash
85
- adaptive-director doctor
183
+ adaptive-director run "Fix password reset validation"
184
+ adaptive-director run "Refactor payment architecture" --budget quality
185
+ adaptive-director run "Add tests for billing retries" --delegate
186
+ adaptive-director run "Plan the auth migration" --dry-run
187
+ adaptive-director run "Fix API pagination" --cwd ../my-api
188
+ adaptive-director run "High-risk security refactor" --budget quality --allow-max
86
189
  ```
87
190
 
88
- Expected output:
191
+ ### `setup` flags
192
+
193
+ | Flag | Meaning |
194
+ | --- | --- |
195
+ | `--with-delegate` | Install delegate-skills through the official installer if missing. |
196
+ | `--no-delegate` | Skip optional delegate installation and keep native execution active. |
197
+ | `--yes`, `-y` | Non-interactive setup. |
198
+ | `--delegate-only` | Internal helper used by `adaptive-director delegate install`. |
199
+
200
+ Examples:
201
+
202
+ ```bash
203
+ adaptive-director setup
204
+ adaptive-director setup --yes --no-delegate
205
+ adaptive-director setup --with-delegate
206
+ adaptive-director delegate status
89
207
  ```
90
- ✓ Package installed
91
- ✓ Skill source exists
92
- ✓ SKILL.md exists
93
- ✓ references/ exists
94
- ✓ templates/ exists
95
- ✓ examples/ exists
96
- ✓ Registry exists
97
- ✓ Registry valid
98
- ✓ Config exists
99
- ✓ Config valid
100
- ✓ Routing script works
101
- ✓ Run state script exists
102
- ✓ Resume script exists
103
- ✓ codex detected
104
- ✓ Skill installed for codex
105
208
 
106
- Ready.
209
+ ## Phase Policy
210
+
211
+ Static phase maps stay simple:
212
+
213
+ | Task size | Static phases |
214
+ | --- | --- |
215
+ | small | `implement -> review` |
216
+ | medium | `plan -> implement -> review -> verify` |
217
+ | large | `plan -> implement -> review -> verify` |
218
+
219
+ `fix` is not part of the static map. It is inserted dynamically only when review finds critical issues.
220
+
221
+ ```text
222
+ Review has 0 critical findings
223
+ -> Verify
224
+
225
+ Review has critical findings
226
+ -> Fix
227
+ -> Re-review
228
+ -> Verify if clean
229
+ -> Blocked if critical findings remain
107
230
  ```
108
231
 
109
- ### 4. Run with Your AI Agent
232
+ Warnings and suggestions are reported but do not trigger a fix cycle.
233
+
234
+ ## Routing
235
+
236
+ Routing chooses:
237
+
238
+ - host/agent
239
+ - model
240
+ - reasoning effort
241
+ - native or delegate execution
242
+ - review anti-affinity
243
+ - verification capability
110
244
 
111
- The Skill is now installed in your agent's skills directory. Prompt your agent:
245
+ Routing priority:
112
246
 
113
247
  ```text
114
- Use $adaptive-director to implement Stripe checkout in Flutter
248
+ User overrides
249
+ -> delegate fleet lanes, only when --delegate is passed
250
+ -> dynamic host/model discovery
251
+ -> capability registry
252
+ -> safe fallback
115
253
  ```
116
254
 
117
- ---
255
+ Capability scores in `skills/adaptive-director/data/registry.json` are routing priors, not vendor benchmarks.
118
256
 
119
- ## Example Walkthrough
257
+ ## Native And Delegate Execution
120
258
 
121
- **Task:** `"Implement Stripe in Flutter"`
259
+ Adaptive Director is native-first. It must work without delegate-skills.
122
260
 
123
- 1. **Plan:** Claude (High Effort) inspects the repo and builds the execution plan.
124
- 2. **Implement:** Codex (Medium Effort) writes the code without committing.
125
- 3. **Review:** An independent Claude session inspects the diff.
126
- - *Finds 1 Critical issue:* PaymentIntent confirmed twice on retry.
127
- 4. **Fix:** Codex receives a targeted brief to fix only that critical bug.
128
- 5. **Re-Review:** Reviewer confirms the fix.
129
- 6. **Verify:** Runs `flutter analyze && flutter test`.
130
- 7. **Done:** Changes left uncommitted for final developer review.
261
+ When `--delegate` is passed, delegate lanes may be used for matching phases. Delegate execution reuses the hardened `delegate-relay.mjs` boundary:
131
262
 
132
- ---
263
+ - relay missing -> safe native fallback
264
+ - non-zero relay exit -> inspect workspace mutation
265
+ - missing/malformed result -> fail safely
266
+ - timeout -> terminate and inspect workspace
267
+ - mutated workspace after failure -> `needs_recovery`, no automatic retry
133
268
 
134
- ## Repository Architecture
269
+ Native execution is explicit. Adaptive Director does not pretend a host completed work when it cannot be invoked. If no automatic native executor is configured, a phase fails with `native_invocation_required`.
135
270
 
136
- The repository separates the **npm management/installer layer** from the **self-contained Agent Skill**:
271
+ ### Native executor contract
137
272
 
138
- - **Repository Root:** npm distribution, CLI tools, setup, host discovery, and health diagnostics (`scripts/`).
139
- - **`skills/adaptive-director/`:** The canonical, portable Agent Skill (procedural brain, runtime scripts, templates, references, and registry data).
273
+ Set `AD_NATIVE_EXECUTOR` to a command that reads JSON from stdin and returns JSON on stdout.
140
274
 
141
- ```text
142
- Adaptive-Director-Skill/
143
- ├── scripts/ # Management & CLI layer
144
- │ ├── cli.mjs # Main CLI router
145
- │ ├── setup.mjs # Interactive host setup
146
- │ ├── install.mjs # Idempotent skill copier
147
- │ ├── refresh.mjs # Safe config refresher
148
- │ ├── discover.mjs # Local agent discovery
149
- │ ├── doctor.mjs # Installation diagnostics
150
- │ └── smoke-test.mjs # Automated test suite
151
-
152
- └── skills/adaptive-director/ # Portable Agent Skill (the brain)
153
- ├── SKILL.md # Procedural runbook
154
- ├── scripts/ # Runtime scripts (route, run-state, resume)
155
- ├── references/ # Deep documentation & schemas
156
- ├── templates/ # Standardized phase brief templates
157
- ├── examples/ # Realistic execution walkthroughs
158
- └── data/ # Capability registry
159
- ```
160
-
161
- ---
162
-
163
- ## CLI Commands
275
+ Input shape:
164
276
 
165
- ```bash
166
- adaptive-director setup # Interactive: discover hosts, install Skill, create config
167
- adaptive-director install # Re-install/update Skill in host directories
168
- adaptive-director refresh # Re-discover hosts & update config (preserves overrides)
169
- adaptive-director doctor # Validate installation and health
170
- adaptive-director help # Show usage
277
+ ```json
278
+ {
279
+ "phase": "implement",
280
+ "runId": "run-a1b2c3d4",
281
+ "task": "Add input validation",
282
+ "brief": "...",
283
+ "briefPath": ".adaptive-director/runs/run-a1b2c3d4/brief-implement.md",
284
+ "cwd": "/path/to/project",
285
+ "agent": "codex",
286
+ "model": "gpt-6-astra",
287
+ "effort": "medium",
288
+ "execution": "native",
289
+ "route": {}
290
+ }
171
291
  ```
172
292
 
173
- ---
293
+ Output shape:
174
294
 
175
- ## Core Principles
295
+ ```json
296
+ {
297
+ "ok": true,
298
+ "status": "completed",
299
+ "summary": "Changed lib/auth.ts and added validation tests.",
300
+ "findings": [],
301
+ "artifacts": [],
302
+ "resultPath": ".adaptive-director/runs/run-a1b2c3d4/implement.json"
303
+ }
304
+ ```
305
+
306
+ ## Verification Evidence
176
307
 
177
- - **Dynamic Discovery:** Discovers installed host CLIs and inspects locally available models at runtime rather than assuming static pairings.
178
- - **Routing Priority:** User overrides → Delegate fleet lanes → Dynamic Host Discovery → Capability registry → Default fallback.
179
- - **Independent Review:** The coder never reviews its own work.
180
- - **Verification Dimension:** Independent verification requires dedicated verification capabilities (`min_verification: 3`).
181
- - **Max Reasoning Opt-in:** `max` effort is locked by default; requires `--allow-max`.
182
- - **Runaway Loop Protection:** Maximum 1 automated fix cycle before alerting the user.
183
- - **Context Isolation:** Each agent receives only a self-contained brief on disk (`.adaptive-director/runs/`), preventing context window bloat.
184
- - **Zero Dependencies:** Runs on vanilla Node.js 18+.
308
+ Verification is not only an AI instruction. Adaptive Director detects common project types and runs conservative gates when available:
185
309
 
186
- ---
310
+ | Project | Detection | Commands |
311
+ | --- | --- | --- |
312
+ | Node.js | `package.json` | `npm test`, `npm run build` when scripts exist |
313
+ | Flutter | `pubspec.yaml` | `flutter analyze`, `flutter test` |
314
+ | Laravel/PHP | `artisan` + `composer.json` | `php artisan test` |
315
+ | Python | `pyproject.toml`, `pytest.ini`, `tox.ini`, or `setup.cfg` | `pytest` |
187
316
 
188
- ## Dynamic Model Discovery & Heuristics
317
+ Evidence is stored in run metadata and `verification-evidence.json`:
189
318
 
190
- Adaptive Director does **not** rely on rigid, hardcoded host-to-model pairings. Real-world model availability depends on local CLI versions, host configurations, and account subscriptions.
319
+ ```json
320
+ {
321
+ "commands": [
322
+ {
323
+ "command": "npm test",
324
+ "exitCode": 0,
325
+ "durationMs": 1200
326
+ }
327
+ ],
328
+ "passed": true
329
+ }
330
+ ```
191
331
 
192
- ### Routing Pipeline
332
+ ## Supported Hosts
333
+
334
+ Adaptive Director can discover these host CLIs when installed:
335
+
336
+ | Host | Binary | Notes |
337
+ | --- | --- | --- |
338
+ | Claude Code | `claude` | Claude's coding CLI. |
339
+ | Codex | `codex` | OpenAI Codex CLI. |
340
+ | Antigravity / AGY | `agy` | Google Antigravity CLI. It may expose Gemini and other models through AGY. |
341
+ | Gemini CLI | `gemini` | Separate Gemini CLI, detected only if installed independently. |
342
+ | OpenCode | `opencode` | OpenCode CLI. |
343
+ | Aider | `aider` | Aider CLI. |
344
+ | Cursor Agent | `cursor-agent` | Cursor's headless agent CLI. |
345
+ | Cline | `cline` | Cline CLI. |
346
+ | GitHub Copilot CLI | `copilot` | GitHub Copilot CLI. |
347
+
348
+ Delegate relays can add more implementers through `delegate-skills`.
349
+
350
+ ## Skill Prompt Usage
351
+
352
+ The package also installs a normal agent skill. You can ask an agent directly:
353
+
354
+ ```text
355
+ Use $adaptive-director to implement Stripe checkout in Flutter.
356
+ ```
357
+
358
+ Useful prompt flags:
193
359
 
194
360
  ```text
195
- Detect Host CLI
196
-
197
- Discover Locally Available Models (cache / config / env)
198
-
199
- Resolve Aliases (e.g. 'astra' → 'gpt-6-astra')
200
-
201
- Intersect with Registry Capabilities & Phase Requirements
202
-
203
- Score Compatible Candidates for Current Phase
204
-
205
- Route to Optimal Candidate (with Graceful Fallback)
361
+ Use $adaptive-director --budget quality to refactor the auth system.
362
+ Use $adaptive-director --delegate to implement the billing retry flow.
363
+ Use $adaptive-director --dry-run to show routing for this task.
364
+ Use $adaptive-director --allow-max for this high-risk migration.
206
365
  ```
207
366
 
208
- > [!NOTE]
209
- > **Heuristic Calibration Disclaimer:** Capability scores (1–5) in `data/registry.json` represent internal routing heuristics and priors calibrated for phase allocation. They are **not** vendor laboratory benchmarks or absolute leaderboards.
367
+ ## Configuration
210
368
 
211
- ---
369
+ User config lives at:
212
370
 
213
- ## Configuration (`~/.adaptive-director/config.json`)
371
+ ```text
372
+ ~/.adaptive-director/config.json
373
+ ```
374
+
375
+ Example:
214
376
 
215
377
  ```json
216
378
  {
217
379
  "version": 1,
380
+ "execution": "native",
218
381
  "defaultBudget": "balanced",
382
+ "allowMax": false,
383
+ "delegateEnabled": false,
384
+ "hosts": {
385
+ "codex": {
386
+ "enabled": true,
387
+ "skillPath": "C:/Users/you/.codex/skills"
388
+ }
389
+ },
219
390
  "overrides": {
220
391
  "plan": "claude",
221
- "implement": "codex"
392
+ "implement": "codex",
393
+ "review": "claude"
222
394
  }
223
395
  }
224
396
  ```
225
397
 
226
- ---
398
+ ## Requirements
399
+
400
+ - Node.js 18+
401
+ - Git for workspace mutation detection and touched-file reporting
402
+ - At least one supported coding-agent CLI for real execution
403
+ - Authenticated host CLIs for real model calls
404
+ - No runtime npm dependencies in Adaptive Director itself
405
+
406
+ ## Validation Status
227
407
 
228
- ## Upgrading
408
+ Verified locally:
229
409
 
230
- After a package upgrade, re-install the Skill into your host environments:
410
+ - `npm test`
411
+ - setup and doctor flows
412
+ - routing decisions and persistence
413
+ - `implement.md` review handoff regression
414
+ - mock end-to-end happy path
415
+ - mock critical fix path
416
+ - blocked path after one fix cycle
417
+ - delegate mutation failure -> `needs_recovery`
418
+ - `npm pack --dry-run`
419
+
420
+ Real host validation depends on your local CLI authentication and quotas. Adaptive Director reports those failures plainly instead of claiming success.
421
+
422
+ ## Upgrade
231
423
 
232
424
  ```bash
233
425
  npm install -g adaptive-director-skill@latest
@@ -235,17 +427,13 @@ adaptive-director install
235
427
  adaptive-director doctor
236
428
  ```
237
429
 
238
- ---
239
-
240
- ## Uninstalling
430
+ ## Uninstall
241
431
 
242
432
  ```bash
243
433
  npm uninstall -g adaptive-director-skill
244
434
  ```
245
435
 
246
- > **Note:** npm uninstall removes the package, but does **not** remove Skill copies that were installed into your coding-agent host directories. To clean those up, manually delete the `Adaptive-Director/` folder from each host skill directory (e.g. `~/.codex/skills/Adaptive-Director/`).
247
-
248
- ---
436
+ `npm uninstall` removes the package, but it does not remove copied skill folders from host skill directories. Delete those manually if needed.
249
437
 
250
438
  ## License
251
439
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adaptive-director-skill",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Adaptive Director Skill — Skill-first adaptive multi-agent orchestration for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,7 +19,7 @@
19
19
  "skills/"
20
20
  ],
21
21
  "scripts": {
22
- "test": "node scripts/smoke-test.mjs",
22
+ "test": "node scripts/smoke-test.mjs && node scripts/test-setup-delegate.mjs && node scripts/test-run-flow.mjs",
23
23
  "setup": "node scripts/setup.mjs",
24
24
  "discover": "node scripts/discover.mjs",
25
25
  "doctor": "node scripts/doctor.mjs"
package/scripts/cli.mjs CHANGED
@@ -11,24 +11,29 @@ const args = process.argv.slice(2);
11
11
  const command = args[0] || 'help';
12
12
 
13
13
  const commands = {
14
+ run: 'run.mjs',
14
15
  setup: 'setup.mjs',
15
16
  install: 'install.mjs',
16
17
  refresh: 'refresh.mjs',
17
18
  doctor: 'doctor.mjs',
19
+ delegate: 'delegate-cli.mjs',
18
20
  };
19
21
 
20
22
  if (command === 'help' || command === '--help' || command === '-h') {
21
- console.log(`Adaptive Director Skill CLI v1.1.0
23
+ console.log(`Adaptive Director Skill CLI v1.1.2
22
24
 
23
25
  Usage:
24
- adaptive-director <command>
26
+ adaptive-director <command> [options]
25
27
 
26
28
  Commands:
27
- setup - Initial interactive setup and installation
28
- install - Install/copy the Skill into supported host skill directories
29
- refresh - Re-run discovery and update config without destroying user overrides
30
- doctor - Validate installation and report health
31
- help - Show this help message
29
+ run - Run a complete Adaptive Director workflow for one coding task
30
+ setup - Initial interactive setup and host/delegate configuration
31
+ Flags: --with-delegate, --no-delegate, --yes
32
+ install - Install/copy the Skill into supported host skill directories
33
+ refresh - Re-run discovery and update config without destroying user overrides
34
+ doctor - Validate installation and report health
35
+ delegate - Manage delegate-skills integration (install, status)
36
+ help - Show this help message
32
37
  `);
33
38
  process.exit(0);
34
39
  }