litedbmodel-gen 0.7.0 → 0.7.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 +3 -3
- package/cli-contract.yaml +6 -6
- package/dist/cli.js +34 -43
- package/dist/cli.js.map +1 -1
- package/dist/litedbmodel-gen.bundle.mjs +719 -494
- package/dist/litedbmodel-gen.bundle.mjs.map +4 -4
- package/docs/cli-reference.md +4 -4
- package/package.json +6 -2
package/docs/cli-reference.md
CHANGED
|
@@ -108,7 +108,7 @@ litedbmodel-gen audit src/services/user-service.ts --fail-on warning --report-fo
|
|
|
108
108
|
|---|---|---|---|---|
|
|
109
109
|
| `--adapter` | | No | `"mock"` | LLM adapter to use for the audit. |
|
|
110
110
|
| `--model` | | No | | Model name override for the selected adapter. |
|
|
111
|
-
| `--
|
|
111
|
+
| `--show-prompt` | | No | `false` | Output the constructed prompt without calling the LLM API. |
|
|
112
112
|
| `--fail-on` | | No | `"error"` | Minimum finding severity that causes exit code 10. Findings below this threshold are still reported. |
|
|
113
113
|
| `--output` | -o | No | | Write the report to a file instead of stdout. |
|
|
114
114
|
| `--report-format` | | No | `"json"` | Output format for the audit report. |
|
|
@@ -151,7 +151,7 @@ x-agent:
|
|
|
151
151
|
sideEffects:
|
|
152
152
|
- network
|
|
153
153
|
sideEffectNote: Makes network calls to the configured LLM provider when adapter is not "mock". Writes to the filesystem only when --output is specified.
|
|
154
|
-
safeDryRunOption:
|
|
154
|
+
safeDryRunOption: show-prompt
|
|
155
155
|
expectedDurationMs: 120000
|
|
156
156
|
retryableExitCodes:
|
|
157
157
|
- 1
|
|
@@ -189,7 +189,7 @@ litedbmodel-gen implement "Add bulk upsert for order items" --target src/service
|
|
|
189
189
|
| `--models` | | No | `"models/**/*.ts"` | Glob pattern for model definition files. The agent reads these to understand available models, columns, and relations. |
|
|
190
190
|
| `--adapter` | | No | `"mock"` | LLM adapter to use for code generation. |
|
|
191
191
|
| `--model` | | No | | Model name override for the selected adapter. |
|
|
192
|
-
| `--
|
|
192
|
+
| `--show-prompt` | | No | `false` | Output the constructed prompt without calling the LLM API. |
|
|
193
193
|
| `--fail-on` | | No | `"error"` | Minimum finding severity that causes exit code 10. Design concerns (info/warning) are still reported at exit 0. |
|
|
194
194
|
| `--output` | -o | No | | Write the report to a file instead of stdout. |
|
|
195
195
|
| `--report-format` | | No | `"json"` | Output format for the implementation report. |
|
|
@@ -233,7 +233,7 @@ x-agent:
|
|
|
233
233
|
- network
|
|
234
234
|
- filesystem_write
|
|
235
235
|
sideEffectNote: The agent reads project files and writes implementation code directly to the target source file(s). Uses an agentic adapter (claude/cursor) with file read/write tools.
|
|
236
|
-
safeDryRunOption:
|
|
236
|
+
safeDryRunOption: show-prompt
|
|
237
237
|
expectedDurationMs: 120000
|
|
238
238
|
retryableExitCodes:
|
|
239
239
|
- 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "litedbmodel-gen",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "embedoc-based model code generator for litedbmodel — generates TypeScript column definitions from SQL DDL (PostgreSQL/MySQL/SQLite)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -60,12 +60,16 @@
|
|
|
60
60
|
"@openai/agents": {
|
|
61
61
|
"optional": true
|
|
62
62
|
},
|
|
63
|
+
"@google/adk": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
63
66
|
"@google/genai": {
|
|
64
67
|
"optional": true
|
|
65
68
|
}
|
|
66
69
|
},
|
|
67
70
|
"optionalDependencies": {
|
|
68
71
|
"@anthropic-ai/claude-agent-sdk": ">=0.2.0",
|
|
72
|
+
"@google/adk": ">=1.2.0",
|
|
69
73
|
"@google/genai": ">=2.0.0",
|
|
70
74
|
"@openai/agents": ">=0.10.0"
|
|
71
75
|
},
|
|
@@ -73,7 +77,7 @@
|
|
|
73
77
|
"@types/js-yaml": "^4.0.9",
|
|
74
78
|
"@types/node": "^25.3.3",
|
|
75
79
|
"agent-contracts": "^0.33.1",
|
|
76
|
-
"agent-contracts-runtime": "^0.
|
|
80
|
+
"agent-contracts-runtime": "^0.36.0",
|
|
77
81
|
"cli-contracts": "^0.32.0",
|
|
78
82
|
"commander": "^14.0.3",
|
|
79
83
|
"embedoc": "^0.11.0",
|