@directive-run/cli 1.14.0 → 1.15.0

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
@@ -1,6 +1,16 @@
1
1
  # @directive-run/cli
2
2
 
3
- CLI for [Directive](https://directive.run) – project scaffolding, system introspection, AI coding rules, and more.
3
+ CLI for [Directive](https://directive.run) – project scaffolding, system introspection, **AI coding rules for every assistant**, and more.
4
+
5
+ ## Quick: install AI rules for your assistant
6
+
7
+ If you found this package looking for "how do I get Directive knowledge into my AI assistant?" — one command:
8
+
9
+ ```bash
10
+ npx directive ai-rules init
11
+ ```
12
+
13
+ Generates `.cursorrules` / `.clinerules` / `copilot-instructions.md` / `windsurf.md` / OpenAI Codex `AGENTS.md` / Claude Code `CLAUDE.md`, each tuned to that assistant's ingestion budget and conventions. The CLI auto-detects which assistants you have configured. See [IDE Integration](https://directive.run/docs/ide-integration) for the full decision tree.
4
14
 
5
15
  ## Installation
6
16
 
@@ -172,7 +182,7 @@ The `--system <path>` file must export a started Directive system as either a de
172
182
 
173
183
  ### `directive bisect <timeline.json>`
174
184
 
175
- Binary-search a recorded timeline for the first frame whose inclusion flips a user-supplied assertion from passing to failing git-bisect, but over `ObservationEvent` frames.
185
+ Binary-search a recorded timeline for the first frame whose inclusion flips a user-supplied assertion from passing to failing git-bisect, but over `ObservationEvent` frames.
176
186
 
177
187
  ```bash
178
188
  directive bisect bug-1234.json \
@@ -181,7 +191,7 @@ directive bisect bug-1234.json \
181
191
  # ✓ bisect complete: first failing frame is #47 (fact.change)
182
192
  ```
183
193
 
184
- The `--system <path>` file must export a **factory** (not a started instance bisect calls the factory once per midpoint to keep each replay hermetic). Looks for `createSystem` / `systemFactory` / `default` exports, in that order. The factory must return a started system:
194
+ The `--system <path>` file must export a **factory** (not a started instance bisect calls the factory once per midpoint to keep each replay hermetic). Looks for `createSystem` / `systemFactory` / `default` exports, in that order. The factory must return a started system:
185
195
 
186
196
  ```ts
187
197
  // test/bisect-system.ts
@@ -202,7 +212,7 @@ Exit codes: `0` (no failure to bisect / fails-on-empty), `2` (bisect found a fra
202
212
 
203
213
  ### `directive timeline diff <a.json> <b.json>`
204
214
 
205
- Semantic causal-graph diff between two serialized timelines. Not a textual JSON diff per-category deltas (frame counts, constraint fires, mutation kinds, resolver runs, new errors).
215
+ Semantic causal-graph diff between two serialized timelines. Not a textual JSON diff per-category deltas (frame counts, constraint fires, mutation kinds, resolver runs, new errors).
206
216
 
207
217
  ```bash
208
218
  directive timeline diff baseline.json regression.json
@@ -248,6 +258,11 @@ const inspection = system.inspect();
248
258
  const tools = detectTools("./my-project");
249
259
  ```
250
260
 
261
+ ## Composes with
262
+
263
+ - [`@directive-run/knowledge`](../knowledge) — the source-of-truth knowledge package the CLI reads from. Every rules-file generator pulls from here, so a knowledge update reaches every assistant on the next `ai-rules update`.
264
+ - [`@directive-run/claude-plugin`](../claude-plugin) — the Claude Code plugin built from the same knowledge. Use the plugin for Claude Code; use `directive ai-rules init` for everything else.
265
+
251
266
  ## Contributing
252
267
 
253
268
  See [CONTRIBUTING.md](../../CONTRIBUTING.md) for development setup and contribution guidelines.