@lssm/app.cli-contractspec 1.42.10 → 1.43.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/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.43.2
4
+
5
+ ### Patch Changes
6
+
7
+ - e147271: fix: improve stability
8
+ - Updated dependencies [e147271]
9
+ - @lssm/bundle.contractspec-workspace@1.43.2
10
+ - @lssm/module.contractspec-examples@1.43.2
11
+ - @lssm/lib.contracts-transformers@1.43.2
12
+ - @lssm/module.ai-chat@1.43.2
13
+ - @lssm/lib.contracts@1.43.2
14
+ - @lssm/lib.testing@1.43.2
15
+ - @lssm/lib.ai-providers@1.43.1
16
+ - @lssm/lib.schema@1.43.1
17
+
18
+ ## 1.43.1
19
+
20
+ ### Patch Changes
21
+
22
+ - f28fdad: fix
23
+ - Updated dependencies [f28fdad]
24
+ - @lssm/lib.contracts@1.43.1
25
+ - @lssm/bundle.contractspec-workspace@1.43.1
26
+ - @lssm/lib.contracts-transformers@1.43.1
27
+ - @lssm/lib.testing@1.43.1
28
+ - @lssm/module.ai-chat@1.43.1
29
+ - @lssm/module.contractspec-examples@1.43.1
30
+
31
+ ## 1.43.0
32
+
33
+ ### Minor Changes
34
+
35
+ - 042d072: feat: schema declaration using json schema, including zod
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [042d072]
40
+ - @lssm/bundle.contractspec-workspace@1.43.0
41
+ - @lssm/module.contractspec-examples@1.43.0
42
+ - @lssm/lib.contracts-transformers@1.43.0
43
+ - @lssm/lib.ai-providers@1.43.0
44
+ - @lssm/module.ai-chat@1.43.0
45
+ - @lssm/lib.contracts@1.43.0
46
+ - @lssm/lib.testing@1.43.0
47
+ - @lssm/lib.schema@1.43.0
48
+
3
49
  ## 1.42.10
4
50
 
5
51
  ### 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
- pnpm add @lssm/lib.contracts @lssm/lib.schema
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: `pnpm test`
603
+ 4. Ensure all tests pass: `buntest`
577
604
 
578
605
  ## Agent Modes Deep Dive
579
606