@happyvertical/smrt-cli 0.40.14 → 0.40.15
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 +11 -11
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @happyvertical/smrt-cli
|
|
2
2
|
|
|
3
|
-
Developer CLI for the
|
|
3
|
+
Developer CLI for the s-m-r-t framework. Provides introspection, code generation, database management, and auto-generated CRUD commands for s-m-r-t objects.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -14,9 +14,9 @@ pnpm add -D @happyvertical/smrt-cli
|
|
|
14
14
|
|
|
15
15
|
| Command | Description |
|
|
16
16
|
|---------|------------|
|
|
17
|
-
| `smrt introspect` | Discover
|
|
17
|
+
| `smrt introspect` | Discover s-m-r-t objects in project and node_modules |
|
|
18
18
|
| `smrt introspect --verbose` | Include detailed field information |
|
|
19
|
-
| `smrt objects` | List all registered
|
|
19
|
+
| `smrt objects` | List all registered s-m-r-t objects |
|
|
20
20
|
| `smrt schema <object>` | Show detailed schema for an object |
|
|
21
21
|
| `smrt status` | Show system status (database, AI, registry) |
|
|
22
22
|
|
|
@@ -32,8 +32,8 @@ pnpm add -D @happyvertical/smrt-cli
|
|
|
32
32
|
| `smrt db:rollback` | Rollback last migration |
|
|
33
33
|
| `smrt db:history` | Show migration history with active-vs-superseded failure classification |
|
|
34
34
|
|
|
35
|
-
File-backed SQL/TypeScript migration generation is not supported.
|
|
36
|
-
migrations are manifest-driven; model schema with
|
|
35
|
+
File-backed SQL/TypeScript migration generation is not supported. s-m-r-t schema
|
|
36
|
+
migrations are manifest-driven; model schema with s-m-r-t objects and apply changes
|
|
37
37
|
with `smrt db:migrate`.
|
|
38
38
|
|
|
39
39
|
Use `--force-migration <exact-id>` for a known checksum, failed, or interrupted
|
|
@@ -68,7 +68,7 @@ batch.
|
|
|
68
68
|
|---------|------------|
|
|
69
69
|
| `smrt docs:agents` | Generate `.agents/smrt-framework.md` for consumer projects |
|
|
70
70
|
| `smrt docs:claude` | Deprecated compatibility alias for `.claude/smrt-framework.md` |
|
|
71
|
-
| `smrt dev:knowledge-index --format markdown\|json` | Print the deterministic
|
|
71
|
+
| `smrt dev:knowledge-index --format markdown\|json` | Print the deterministic s-m-r-t + SDK knowledge index |
|
|
72
72
|
| `smrt dev:knowledge-check --format markdown\|json` | Check agent knowledge freshness |
|
|
73
73
|
| `smrt dev:knowledge-diff --format markdown\|json` | Show changed files and affected package experts |
|
|
74
74
|
| `smrt knowledge:review-context --scope project\|local\|package\|sdk --package <name> --format markdown\|json` | Build a model-ready domain review prompt bundle |
|
|
@@ -80,7 +80,7 @@ batch.
|
|
|
80
80
|
|---------|------------|
|
|
81
81
|
| `smrt config:export` | Export agent config for SSG |
|
|
82
82
|
| `smrt export` | Export data in various formats |
|
|
83
|
-
| `smrt init` | Initialize a new
|
|
83
|
+
| `smrt init` | Initialize a new s-m-r-t project |
|
|
84
84
|
|
|
85
85
|
### Dispatch
|
|
86
86
|
|
|
@@ -118,7 +118,7 @@ batch.
|
|
|
118
118
|
|
|
119
119
|
### Auto-Generated Object Commands
|
|
120
120
|
|
|
121
|
-
For each registered
|
|
121
|
+
For each registered s-m-r-t object, the CLI generates:
|
|
122
122
|
|
|
123
123
|
| Pattern | Description |
|
|
124
124
|
|---------|------------|
|
|
@@ -129,7 +129,7 @@ For each registered SMRT object, the CLI generates:
|
|
|
129
129
|
| `<object>:delete <id>` | Delete object |
|
|
130
130
|
| `<object>:<method> <id>` | Custom methods exposed via `cli: { include: [...] }` |
|
|
131
131
|
|
|
132
|
-
Custom methods on
|
|
132
|
+
Custom methods on s-m-r-t objects are auto-discovered from manifests. Method parameters become CLI options (camelCase to kebab-case).
|
|
133
133
|
|
|
134
134
|
## Usage
|
|
135
135
|
|
|
@@ -201,7 +201,7 @@ export default {
|
|
|
201
201
|
|
|
202
202
|
### Entry Point Discovery
|
|
203
203
|
|
|
204
|
-
The CLI loads
|
|
204
|
+
The CLI loads s-m-r-t objects from your project entry point:
|
|
205
205
|
1. Explicit `entryPoint` in config
|
|
206
206
|
2. `package.json` exports `['.'].import` or `['.']`
|
|
207
207
|
3. `package.json` `main` field
|
|
@@ -209,7 +209,7 @@ The CLI loads SMRT objects from your project entry point:
|
|
|
209
209
|
|
|
210
210
|
### Manifest Discovery
|
|
211
211
|
|
|
212
|
-
The CLI auto-discovers
|
|
212
|
+
The CLI auto-discovers s-m-r-t manifests from:
|
|
213
213
|
- **Project root**: `dist/manifest.json`, `dist/static-manifest.js`, `.smrt/manifest.json`, and other standard locations
|
|
214
214
|
- **Installed packages**: scans `node_modules/@happyvertical/smrt-*` for manifest files
|
|
215
215
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-cli",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.15",
|
|
4
4
|
"description": "Developer CLI for SMRT framework - introspection, testing, and project management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"acorn": "^8.17.0",
|
|
33
33
|
"fast-glob": "3.3.3",
|
|
34
34
|
"tar": "^7.5.19",
|
|
35
|
-
"@happyvertical/smrt-agents": "0.40.
|
|
36
|
-
"@happyvertical/smrt-config": "0.40.
|
|
37
|
-
"@happyvertical/smrt-core": "0.40.
|
|
38
|
-
"@happyvertical/smrt-
|
|
39
|
-
"@happyvertical/smrt-
|
|
40
|
-
"@happyvertical/smrt-playground": "0.40.
|
|
35
|
+
"@happyvertical/smrt-agents": "0.40.15",
|
|
36
|
+
"@happyvertical/smrt-config": "0.40.15",
|
|
37
|
+
"@happyvertical/smrt-core": "0.40.15",
|
|
38
|
+
"@happyvertical/smrt-dev-mcp": "0.40.15",
|
|
39
|
+
"@happyvertical/smrt-types": "0.40.15",
|
|
40
|
+
"@happyvertical/smrt-playground": "0.40.15"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "24.13.2",
|