litedbmodel-gen 0.6.3 → 0.7.1
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 +12 -3
- package/cli-contract.yaml +24 -6
- package/dist/cli.js +15705 -419
- package/dist/cli.js.map +1 -1
- package/dist/litedbmodel-gen.bundle.mjs +386 -393
- package/dist/litedbmodel-gen.bundle.mjs.map +4 -4
- package/docs/cli-reference.md +8 -4
- package/package.json +2 -2
- package/dist/chunk-GERYNDPH.js +0 -15486
- package/dist/chunk-GERYNDPH.js.map +0 -1
- package/dist/dsl-GOTBG3JL.js +0 -19
- package/dist/dsl-GOTBG3JL.js.map +0 -1
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ npx litedbmodel-gen implement \
|
|
|
77
77
|
|
|
78
78
|
# Preview the full prompt without calling the LLM
|
|
79
79
|
npx litedbmodel-gen implement "Add bulk user import" \
|
|
80
|
-
--target src/services/user.service.ts --
|
|
80
|
+
--target src/services/user.service.ts --show-prompt
|
|
81
81
|
|
|
82
82
|
# Write result to a file
|
|
83
83
|
npx litedbmodel-gen implement "..." --target src/services/foo.ts --adapter claude -o result.json
|
|
@@ -89,10 +89,11 @@ npx litedbmodel-gen implement "..." --target src/services/foo.ts --adapter claud
|
|
|
89
89
|
| `--models <glob>` | `models/**/*.ts` | Glob pattern for model definition files |
|
|
90
90
|
| `--adapter <name>` | `mock` | LLM adapter: `claude`, `openai`, `gemini`, `cursor`, `mock` |
|
|
91
91
|
| `--model <name>` | — | Model name override for the adapter |
|
|
92
|
-
| `--
|
|
92
|
+
| `--show-prompt` | `false` | Output the prompt without calling the LLM |
|
|
93
93
|
| `--report-format` | `json` | Output format: `json`, `text`, `yaml` |
|
|
94
94
|
| `--output <path>` | — | Write result to file instead of stdout |
|
|
95
95
|
| `--fail-on` | `error` | Minimum severity that causes exit code 10 |
|
|
96
|
+
| `--log-file, -l` | — | File path to write structured progress logs |
|
|
96
97
|
|
|
97
98
|
### `litedbmodel-gen audit [target]`
|
|
98
99
|
|
|
@@ -114,10 +115,18 @@ npx litedbmodel-gen audit src/ --adapter claude --report-format text
|
|
|
114
115
|
|--------|---------|-------------|
|
|
115
116
|
| `--adapter <name>` | `mock` | LLM adapter: `claude`, `openai`, `gemini`, `cursor`, `mock` |
|
|
116
117
|
| `--model <name>` | — | Model name override for the adapter |
|
|
117
|
-
| `--
|
|
118
|
+
| `--show-prompt` | `false` | Output the prompt without calling the LLM |
|
|
118
119
|
| `--report-format` | `json` | Output format: `json`, `text`, `yaml` |
|
|
119
120
|
| `--output <path>` | — | Write result to file instead of stdout |
|
|
120
121
|
| `--fail-on` | `error` | Minimum severity that causes exit code 10 |
|
|
122
|
+
| `--log-file, -l` | — | File path to write structured progress logs |
|
|
123
|
+
|
|
124
|
+
### Utility Commands
|
|
125
|
+
|
|
126
|
+
| Command | Description |
|
|
127
|
+
|---------|-------------|
|
|
128
|
+
| `litedbmodel-gen extract` | Output the embedded CLI contract specification (YAML) for external tooling |
|
|
129
|
+
| `litedbmodel-gen agents` | List registered DSL agents, tasks, and workflows |
|
|
121
130
|
|
|
122
131
|
### Recommended Workflow
|
|
123
132
|
|
package/cli-contract.yaml
CHANGED
|
@@ -150,8 +150,8 @@ command_sets:
|
|
|
150
150
|
schema:
|
|
151
151
|
type: string
|
|
152
152
|
|
|
153
|
-
- name:
|
|
154
|
-
description: Output the constructed prompt without calling the LLM.
|
|
153
|
+
- name: show-prompt
|
|
154
|
+
description: Output the constructed prompt without calling the LLM API.
|
|
155
155
|
schema:
|
|
156
156
|
type: boolean
|
|
157
157
|
default: false
|
|
@@ -180,15 +180,24 @@ command_sets:
|
|
|
180
180
|
enum: [json, text, yaml]
|
|
181
181
|
default: json
|
|
182
182
|
|
|
183
|
+
- name: log-file
|
|
184
|
+
aliases: [l]
|
|
185
|
+
description: File path to write structured progress logs.
|
|
186
|
+
schema:
|
|
187
|
+
type: string
|
|
188
|
+
file:
|
|
189
|
+
mode: write
|
|
190
|
+
|
|
183
191
|
x-agent:
|
|
184
192
|
riskLevel: low
|
|
185
193
|
requiresConfirmation: false
|
|
186
194
|
idempotent: true
|
|
195
|
+
dsl_task: audit-litedbmodel-usage
|
|
187
196
|
sideEffects: [network]
|
|
188
197
|
sideEffectNote: >-
|
|
189
198
|
Makes network calls to the configured LLM provider when adapter is
|
|
190
199
|
not "mock". Writes to the filesystem only when --output is specified.
|
|
191
|
-
safeDryRunOption:
|
|
200
|
+
safeDryRunOption: show-prompt
|
|
192
201
|
expectedDurationMs: 120000
|
|
193
202
|
retryableExitCodes: [1, 12]
|
|
194
203
|
|
|
@@ -293,8 +302,8 @@ command_sets:
|
|
|
293
302
|
schema:
|
|
294
303
|
type: string
|
|
295
304
|
|
|
296
|
-
- name:
|
|
297
|
-
description: Output the constructed prompt without calling the LLM.
|
|
305
|
+
- name: show-prompt
|
|
306
|
+
description: Output the constructed prompt without calling the LLM API.
|
|
298
307
|
schema:
|
|
299
308
|
type: boolean
|
|
300
309
|
default: false
|
|
@@ -323,16 +332,25 @@ command_sets:
|
|
|
323
332
|
enum: [json, text, yaml]
|
|
324
333
|
default: json
|
|
325
334
|
|
|
335
|
+
- name: log-file
|
|
336
|
+
aliases: [l]
|
|
337
|
+
description: File path to write structured progress logs.
|
|
338
|
+
schema:
|
|
339
|
+
type: string
|
|
340
|
+
file:
|
|
341
|
+
mode: write
|
|
342
|
+
|
|
326
343
|
x-agent:
|
|
327
344
|
riskLevel: high
|
|
328
345
|
requiresConfirmation: true
|
|
329
346
|
idempotent: false
|
|
347
|
+
dsl_task: implement-litedbmodel-feature
|
|
330
348
|
sideEffects: [network, filesystem_write]
|
|
331
349
|
sideEffectNote: >-
|
|
332
350
|
The agent reads project files and writes implementation code
|
|
333
351
|
directly to the target source file(s). Uses an agentic adapter
|
|
334
352
|
(claude/cursor) with file read/write tools.
|
|
335
|
-
safeDryRunOption:
|
|
353
|
+
safeDryRunOption: show-prompt
|
|
336
354
|
expectedDurationMs: 120000
|
|
337
355
|
retryableExitCodes: [1, 12]
|
|
338
356
|
|