litedbmodel-gen 0.1.2 → 0.2.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/cli-contract.yaml CHANGED
@@ -1,9 +1,9 @@
1
1
  # yaml-language-server: $schema=./node_modules/cli-contracts/schemas/cli-contract.schema.json
2
- cliContracts: 0.1.0
2
+ cli_contracts: 0.1.0
3
3
 
4
4
  info:
5
5
  title: litedbmodel-gen CLI
6
- version: 0.1.2
6
+ version: 0.2.0
7
7
  description: >-
8
8
  embedoc-based model code generator for litedbmodel.
9
9
  Parses SQL DDL (PostgreSQL / MySQL / SQLite) and generates
@@ -14,12 +14,23 @@ info:
14
14
  name: foo-ogawa
15
15
  url: https://github.com/foo-ogawa/litedbmodel.ts
16
16
 
17
- commandSets:
17
+ artifact_slots:
18
+ sql-schemas:
19
+ direction: read
20
+ description: SQL DDL files for schema parsing
21
+ embedoc-config:
22
+ direction: readwrite
23
+ description: embedoc.config.yaml configuration (read and updated during init)
24
+ generated-models:
25
+ direction: write
26
+ description: Generated TypeScript model definitions
27
+
28
+ command_sets:
18
29
  litedbmodel-gen:
19
30
  summary: embedoc-based model code generator for litedbmodel.
20
31
  executable: litedbmodel-gen
21
32
 
22
- globalOptions:
33
+ global_options:
23
34
  - name: version
24
35
  aliases: [V]
25
36
  description: Print version and exit.
@@ -59,7 +70,7 @@ commandSets:
59
70
  file:
60
71
  mode: read
61
72
  exists: true
62
- mediaType: application/yaml
73
+ media_type: application/yaml
63
74
  encoding: utf-8
64
75
 
65
76
  exits:
@@ -73,7 +84,7 @@ commandSets:
73
84
  files:
74
85
  - path: .embedoc/templates/model.hbs
75
86
  required: false
76
- mediaType: text/x-handlebars-template
87
+ media_type: text/x-handlebars-template
77
88
  encoding: utf-8
78
89
  description: Starter Handlebars template for model files (skipped if already exists).
79
90
 
@@ -85,10 +96,10 @@ commandSets:
85
96
  format: text
86
97
 
87
98
  x-agent:
88
- riskLevel: low
89
- requiresConfirmation: false
99
+ risk_level: low
100
+ requires_confirmation: false
90
101
  idempotent: true
91
- sideEffects:
102
+ side_effects:
92
103
  - file_write
93
- recommendedBeforeUse:
104
+ recommended_before_use:
94
105
  - Run "npx embedoc init" first to create embedoc.config.yaml.
@@ -2,7 +2,7 @@
2
2
 
3
3
  embedoc-based model code generator for litedbmodel. Parses SQL DDL (PostgreSQL / MySQL / SQLite) and generates TypeScript column definitions that stay in sync with your schema.
4
4
 
5
- **Version:** 0.1.2
5
+ **Version:** 0.2.0
6
6
 
7
7
  ## Table of Contents
8
8
 
@@ -60,12 +60,12 @@ litedbmodel-gen init path/to/embedoc.config.yaml
60
60
 
61
61
  ```yaml
62
62
  x-agent:
63
- riskLevel: low
64
- requiresConfirmation: false
63
+ risk_level: low
64
+ requires_confirmation: false
65
65
  idempotent: true
66
- sideEffects:
66
+ side_effects:
67
67
  - file_write
68
- recommendedBeforeUse:
68
+ recommended_before_use:
69
69
  - Run "npx embedoc init" first to create embedoc.config.yaml.
70
70
  ```
71
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "litedbmodel-gen",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
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",
@@ -51,7 +51,7 @@
51
51
  "devDependencies": {
52
52
  "@types/js-yaml": "^4.0.9",
53
53
  "@types/node": "^25.3.3",
54
- "cli-contracts": "^0.2.0",
54
+ "cli-contracts": "^0.30.2",
55
55
  "embedoc": "^0.11.0",
56
56
  "tsup": "^8.0.1",
57
57
  "typescript": "^5.3.0",