@directive-run/cli 0.2.0 → 0.5.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/LICENSE +1 -1
- package/README.md +8 -12
- package/dist/cli.js +145 -2233
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +19 -430
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +19 -391
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @directive-run/cli
|
|
2
2
|
|
|
3
|
-
CLI for [Directive](https://directive.run)
|
|
3
|
+
CLI for [Directive](https://directive.run) – project scaffolding, system introspection, AI coding rules, and more.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -30,9 +30,9 @@ directive init --dir ./my-project # Target directory
|
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Templates:
|
|
33
|
-
- **counter**
|
|
34
|
-
- **auth-flow**
|
|
35
|
-
- **ai-orchestrator**
|
|
33
|
+
- **counter** – Minimal: schema, init, derive, events
|
|
34
|
+
- **auth-flow** – Login flow with constraints, resolvers, retry, and effects
|
|
35
|
+
- **ai-orchestrator** – Agent module with memory, guardrails, and streaming
|
|
36
36
|
|
|
37
37
|
### `directive new module <name>`
|
|
38
38
|
|
|
@@ -109,7 +109,7 @@ Exits non-zero on failures.
|
|
|
109
109
|
Install AI coding rules for your AI coding assistant.
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
|
-
directive ai-rules init # Interactive
|
|
112
|
+
directive ai-rules init # Interactive – detect tools, prompt
|
|
113
113
|
directive ai-rules init --tool cursor # Specific tool
|
|
114
114
|
directive ai-rules init --force # Overwrite existing files
|
|
115
115
|
directive ai-rules init --merge # Update Directive section only
|
|
@@ -127,7 +127,7 @@ directive ai-rules update --dir ./project
|
|
|
127
127
|
|
|
128
128
|
### `directive ai-rules check`
|
|
129
129
|
|
|
130
|
-
Validate rules are current. Exits non-zero if stale
|
|
130
|
+
Validate rules are current. Exits non-zero if stale – designed for CI.
|
|
131
131
|
|
|
132
132
|
```bash
|
|
133
133
|
directive ai-rules check
|
|
@@ -179,10 +179,6 @@ const inspection = system.inspect();
|
|
|
179
179
|
const tools = detectTools("./my-project");
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
##
|
|
182
|
+
## Contributing
|
|
183
183
|
|
|
184
|
-
|
|
185
|
-
pnpm --filter @directive-run/cli build
|
|
186
|
-
pnpm --filter @directive-run/cli test
|
|
187
|
-
pnpm --filter @directive-run/cli typecheck
|
|
188
|
-
```
|
|
184
|
+
See [CONTRIBUTING.md](../../CONTRIBUTING.md) for development setup and contribution guidelines.
|