@lssm/app.cli-contractspec 1.42.10 → 1.43.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/CHANGELOG.md +18 -0
- package/README.md +29 -2
- package/dist/bun/cli.js +1177 -1125
- package/dist/node/cli.js +921 -869
- package/package.json +13 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.43.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 042d072: feat: schema declaration using json schema, including zod
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [042d072]
|
|
12
|
+
- @lssm/bundle.contractspec-workspace@1.43.0
|
|
13
|
+
- @lssm/module.contractspec-examples@1.43.0
|
|
14
|
+
- @lssm/lib.contracts-transformers@1.43.0
|
|
15
|
+
- @lssm/lib.ai-providers@1.43.0
|
|
16
|
+
- @lssm/module.ai-chat@1.43.0
|
|
17
|
+
- @lssm/lib.contracts@1.43.0
|
|
18
|
+
- @lssm/lib.testing@1.43.0
|
|
19
|
+
- @lssm/lib.schema@1.43.0
|
|
20
|
+
|
|
3
21
|
## 1.42.10
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -194,6 +194,33 @@ contractspec diff spec1.ts spec2.ts --breaking
|
|
|
194
194
|
contractspec diff spec1.ts spec2.ts --semantic
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
+
### `contractspec openapi`
|
|
198
|
+
|
|
199
|
+
Import/Export OpenAPI specifications.
|
|
200
|
+
|
|
201
|
+
#### `contractspec openapi import`
|
|
202
|
+
|
|
203
|
+
Import an OpenAPI specification and generate ContractSpec models or other schema formats.
|
|
204
|
+
|
|
205
|
+
**Options:**
|
|
206
|
+
- `--file <path>` - Path to OpenAPI file (json/yaml) or URL
|
|
207
|
+
- `--output <dir>` - Output directory
|
|
208
|
+
- `--schema-format <format>` - Output schema format: `contractspec` (default), `zod`, `json-schema`, `graphql`
|
|
209
|
+
- `--prefix <prefix>` - Prefix for generated models
|
|
210
|
+
|
|
211
|
+
**Examples:**
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
# Import as ContractSpec (default)
|
|
215
|
+
contractspec openapi import --file api.json --output ./models
|
|
216
|
+
|
|
217
|
+
# Import as Zod schemas
|
|
218
|
+
contractspec openapi import --file api.json --output ./zod --schema-format zod
|
|
219
|
+
|
|
220
|
+
# Import as GraphQL types
|
|
221
|
+
contractspec openapi import --file api.json --output ./gql --schema-format graphql
|
|
222
|
+
```
|
|
223
|
+
|
|
197
224
|
### `contractspec create`
|
|
198
225
|
|
|
199
226
|
Interactive wizard to create contract specifications.
|
|
@@ -563,7 +590,7 @@ contractspec build spec.ts --provider openai --model gpt-3.5-turbo
|
|
|
563
590
|
|
|
564
591
|
Make sure `@lssm/lib.contracts` and `@lssm/lib.schema` are installed:
|
|
565
592
|
```bash
|
|
566
|
-
|
|
593
|
+
bunadd @lssm/lib.contracts @lssm/lib.schema
|
|
567
594
|
```
|
|
568
595
|
|
|
569
596
|
## Contributing
|
|
@@ -573,7 +600,7 @@ Contributions welcome! Please:
|
|
|
573
600
|
1. Follow existing code style
|
|
574
601
|
2. Add tests for new features
|
|
575
602
|
3. Update documentation
|
|
576
|
-
4. Ensure all tests pass: `
|
|
603
|
+
4. Ensure all tests pass: `buntest`
|
|
577
604
|
|
|
578
605
|
## Agent Modes Deep Dive
|
|
579
606
|
|