@contractspec/app.cli-contractspec 1.44.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.
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "./contractsrc.schema.json",
3
+ "aiProvider": "claude",
4
+ "aiModel": "claude-3-7-sonnet-20250219",
5
+ "agentMode": "claude-code",
6
+ "customEndpoint": null,
7
+ "customApiKey": null,
8
+ "outputDir": "./src",
9
+ "conventions": {
10
+ "operations": "interactions/commands|queries",
11
+ "events": "events",
12
+ "presentations": "presentations",
13
+ "forms": "forms"
14
+ },
15
+ "defaultOwners": ["@team"],
16
+ "defaultTags": ["auto-generated"],
17
+
18
+ "_comments": {
19
+ "aiProvider": "Options: 'claude', 'openai', 'ollama', 'custom'",
20
+ "agentMode": "Options: 'simple', 'cursor', 'claude-code', 'openai-codex'. Controls code generation strategy.",
21
+ "aiModel": "Specific model to use. Defaults vary by provider.",
22
+ "customEndpoint": "For custom providers. Example: 'https://your-llm-endpoint.com'",
23
+ "customApiKey": "Optional. Can also use CONTRACTSPEC_LLM_API_KEY env var"
24
+ }
25
+ }
package/AGENTS.md ADDED
@@ -0,0 +1,102 @@
1
+ # AI Agent Guide — `@contractspec/app.cli-contractspec`
2
+
3
+ Scope: `packages/apps/cli-contractspec/*`
4
+
5
+ This is the ContractSpec CLI (`contractspec`).
6
+
7
+ ## Architecture
8
+
9
+ The CLI is a **thin wrapper** around business logic in `@contractspec/bundle.workspace`. The separation is:
10
+
11
+ ### CLI Layer (this package)
12
+
13
+ - **Commands** (`src/commands/`) - Thin wrappers that call bundle services
14
+ - **Prompts** (`src/commands/create/wizards/`) - Interactive UI using `@inquirer/prompts`
15
+ - **CLI setup** (`src/index.ts`, `src/cli.ts`) - Commander.js configuration
16
+ - **Types** (`src/types.ts`) - CLI-specific types
17
+
18
+ ### Business Logic (bundle)
19
+
20
+ - **Services** (`@contractspec/bundle.workspace/services/`) - Core use-cases
21
+ - `create.ts` - Spec creation logic
22
+ - `build.ts` - Code generation from specs
23
+ - `openapi.ts` - OpenAPI export
24
+ - `registry.ts` - Registry client
25
+ - `examples.ts` - Examples management
26
+ - `validate.ts`, `diff.ts`, `deps.ts`, etc.
27
+ - **Templates** (`@contractspec/bundle.workspace/templates/`) - Spec templates
28
+ - **AI** (`@contractspec/bundle.workspace/ai/`) - AI agents and prompts
29
+ - **Adapters** (`@contractspec/bundle.workspace/adapters/`) - Infrastructure
30
+
31
+ ## Build System
32
+
33
+ The CLI is bundled with `bun build`:
34
+
35
+ - Single executable output: `dist/cli.js`
36
+ - Target: `bun` runtime
37
+ - Minified for production
38
+ - Type declarations generated separately with `tsc`
39
+
40
+ ## Test System
41
+
42
+ Tests use `bun:test` (not vitest):
43
+
44
+ - Run: `bun test`
45
+ - Watch: `bun test --watch`
46
+ - All test files import from `bun:test`
47
+
48
+ ## Docs consumed by MCP
49
+
50
+ The CLI MCP server serves these markdown files by path:
51
+
52
+ - `packages/apps/cli-contractspec/QUICK_START.md`
53
+ - `packages/apps/cli-contractspec/QUICK_REFERENCE.md`
54
+ - `packages/apps/cli-contractspec/README.md`
55
+
56
+ If you rename/move them, update `packages/bundles/contractspec-studio/src/application/mcp/cliMcp.ts` (`CLI_DOC_PATHS`).
57
+
58
+ ## Local commands
59
+
60
+ - **Dev/watch**: `bun run dev` - Watch mode, rebuilds on changes
61
+ - **Build**: `bun run build` - Bundles CLI + generates types
62
+ - **Test**: `bun test` - Run all tests
63
+ - **Lint**: `bun run lint` - Fix linting issues
64
+
65
+ ## Prompt Library
66
+
67
+ The CLI uses `@inquirer/prompts` (not legacy `inquirer`):
68
+
69
+ - `select` - List selection
70
+ - `input` - Text input
71
+ - `confirm` - Yes/no confirmation
72
+ - `number` - Numeric input
73
+
74
+ ## Adding a New Command
75
+
76
+ 1. **Create service in bundle** (`@contractspec/bundle.workspace/services/`)
77
+ 2. **Create CLI wrapper** (`src/commands/new-command.ts`)
78
+ 3. **Add to index.ts** (`src/index.ts`)
79
+ 4. **Add prompts if needed** (`src/commands/new-command/prompts.ts`)
80
+ 5. **Write tests** (`src/commands/new-command/index.test.ts`)
81
+
82
+ Example CLI wrapper:
83
+
84
+ ```typescript
85
+ import { Command } from 'commander';
86
+ import { myService } from '@contractspec/bundle.workspace';
87
+ import { createFsAdapter } from '@contractspec/bundle.workspace/adapters';
88
+
89
+ export const myCommand = new Command('my-command')
90
+ .description('Do something')
91
+ .action(async () => {
92
+ const fs = createFsAdapter();
93
+ const logger = createLoggerAdapter();
94
+
95
+ await myService(
96
+ {
97
+ /* options */
98
+ },
99
+ { fs, logger }
100
+ );
101
+ });
102
+ ```
package/CHANGELOG.md ADDED
@@ -0,0 +1,521 @@
1
+ # Changelog
2
+
3
+ ## 1.44.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5f3a868: chore: isolate branding to contractspec.io
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [5f3a868]
12
+ - @contractspec/lib.contracts-transformers@1.44.0
13
+ - @contractspec/bundle.workspace@1.44.0
14
+ - @contractspec/lib.ai-providers@1.44.0
15
+ - @contractspec/module.examples@1.44.0
16
+ - @contractspec/module.ai-chat@1.44.0
17
+ - @contractspec/lib.contracts@1.44.0
18
+ - @contractspec/lib.testing@1.44.0
19
+ - @contractspec/lib.schema@1.44.0
20
+
21
+ ## 1.43.4
22
+
23
+ ### Patch Changes
24
+
25
+ - 9216062: fix: cross-platform compatibility
26
+ - Updated dependencies [9216062]
27
+ - @contractspec/bundle.workspace@1.43.4
28
+ - @contractspec/module.examples@1.43.4
29
+ - @contractspec/lib.contracts-transformers@1.43.4
30
+ - @contractspec/lib.ai-providers@1.43.3
31
+ - @contractspec/module.ai-chat@1.43.4
32
+ - @contractspec/lib.contracts@1.43.4
33
+ - @contractspec/lib.testing@1.43.4
34
+ - @contractspec/lib.schema@1.43.3
35
+
36
+ ## 1.43.3
37
+
38
+ ### Patch Changes
39
+
40
+ - 24d9759: improve documentation
41
+ - Updated dependencies [24d9759]
42
+ - @contractspec/bundle.workspace@1.43.3
43
+ - @contractspec/module.examples@1.43.3
44
+ - @contractspec/lib.contracts-transformers@1.43.3
45
+ - @contractspec/lib.ai-providers@1.43.2
46
+ - @contractspec/module.ai-chat@1.43.3
47
+ - @contractspec/lib.contracts@1.43.3
48
+ - @contractspec/lib.testing@1.43.3
49
+ - @contractspec/lib.schema@1.43.2
50
+
51
+ ## 1.43.2
52
+
53
+ ### Patch Changes
54
+
55
+ - e147271: fix: improve stability
56
+ - Updated dependencies [e147271]
57
+ - @contractspec/bundle.workspace@1.43.2
58
+ - @contractspec/module.examples@1.43.2
59
+ - @contractspec/lib.contracts-transformers@1.43.2
60
+ - @contractspec/module.ai-chat@1.43.2
61
+ - @contractspec/lib.contracts@1.43.2
62
+ - @contractspec/lib.testing@1.43.2
63
+ - @contractspec/lib.ai-providers@1.43.1
64
+ - @contractspec/lib.schema@1.43.1
65
+
66
+ ## 1.43.1
67
+
68
+ ### Patch Changes
69
+
70
+ - f28fdad: fix
71
+ - Updated dependencies [f28fdad]
72
+ - @contractspec/lib.contracts@1.43.1
73
+ - @contractspec/bundle.workspace@1.43.1
74
+ - @contractspec/lib.contracts-transformers@1.43.1
75
+ - @contractspec/lib.testing@1.43.1
76
+ - @contractspec/module.ai-chat@1.43.1
77
+ - @contractspec/module.examples@1.43.1
78
+
79
+ ## 1.43.0
80
+
81
+ ### Minor Changes
82
+
83
+ - 042d072: feat: schema declaration using json schema, including zod
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [042d072]
88
+ - @contractspec/bundle.workspace@1.43.0
89
+ - @contractspec/module.examples@1.43.0
90
+ - @contractspec/lib.contracts-transformers@1.43.0
91
+ - @contractspec/lib.ai-providers@1.43.0
92
+ - @contractspec/module.ai-chat@1.43.0
93
+ - @contractspec/lib.contracts@1.43.0
94
+ - @contractspec/lib.testing@1.43.0
95
+ - @contractspec/lib.schema@1.43.0
96
+
97
+ ## 1.42.10
98
+
99
+ ### Patch Changes
100
+
101
+ - 1e6a0f1: fix: mcp server
102
+ - Updated dependencies [1e6a0f1]
103
+ - @contractspec/bundle.workspace@1.42.10
104
+ - @contractspec/module.examples@1.42.10
105
+ - @contractspec/lib.contracts-transformers@1.42.10
106
+ - @contractspec/lib.ai-providers@1.42.10
107
+ - @contractspec/module.ai-chat@1.42.10
108
+ - @contractspec/lib.contracts@1.42.10
109
+ - @contractspec/lib.testing@1.42.10
110
+ - @contractspec/lib.schema@1.42.10
111
+
112
+ ## 1.42.9
113
+
114
+ ### Patch Changes
115
+
116
+ - 9281db7: fix ModelRegistry
117
+ - Updated dependencies [9281db7]
118
+ - @contractspec/bundle.workspace@1.42.9
119
+ - @contractspec/module.examples@1.42.9
120
+ - @contractspec/lib.contracts-transformers@1.42.9
121
+ - @contractspec/lib.ai-providers@1.42.9
122
+ - @contractspec/module.ai-chat@1.42.9
123
+ - @contractspec/lib.contracts@1.42.9
124
+ - @contractspec/lib.testing@1.42.9
125
+ - @contractspec/lib.schema@1.42.9
126
+
127
+ ## 1.42.8
128
+
129
+ ### Patch Changes
130
+
131
+ - e07b5ac: fix
132
+ - Updated dependencies [e07b5ac]
133
+ - @contractspec/bundle.workspace@1.42.8
134
+ - @contractspec/module.examples@1.42.8
135
+ - @contractspec/lib.contracts-transformers@1.42.8
136
+ - @contractspec/lib.ai-providers@1.42.8
137
+ - @contractspec/module.ai-chat@1.42.8
138
+ - @contractspec/lib.contracts@1.42.8
139
+ - @contractspec/lib.testing@1.42.8
140
+ - @contractspec/lib.schema@1.42.8
141
+
142
+ ## 1.42.7
143
+
144
+ ### Patch Changes
145
+
146
+ - e9b575d: fix release
147
+ - Updated dependencies [e9b575d]
148
+ - @contractspec/bundle.workspace@1.42.7
149
+ - @contractspec/module.examples@1.42.7
150
+ - @contractspec/lib.contracts-transformers@1.42.7
151
+ - @contractspec/lib.ai-providers@1.42.7
152
+ - @contractspec/module.ai-chat@1.42.7
153
+ - @contractspec/lib.contracts@1.42.7
154
+ - @contractspec/lib.testing@1.42.7
155
+ - @contractspec/lib.schema@1.42.7
156
+
157
+ ## 1.42.6
158
+
159
+ ### Patch Changes
160
+
161
+ - 1500242: fix tooling
162
+ - Updated dependencies [1500242]
163
+ - @contractspec/bundle.workspace@1.42.6
164
+ - @contractspec/module.examples@1.42.6
165
+ - @contractspec/lib.contracts-transformers@1.42.6
166
+ - @contractspec/lib.ai-providers@1.42.6
167
+ - @contractspec/module.ai-chat@1.42.6
168
+ - @contractspec/lib.contracts@1.42.6
169
+ - @contractspec/lib.testing@1.42.6
170
+ - @contractspec/lib.schema@1.42.6
171
+
172
+ ## 1.42.5
173
+
174
+ ### Patch Changes
175
+
176
+ - 1299719: fix vscode
177
+ - Updated dependencies [1299719]
178
+ - @contractspec/bundle.workspace@1.42.5
179
+ - @contractspec/module.examples@1.42.5
180
+ - @contractspec/lib.contracts-transformers@1.42.5
181
+ - @contractspec/lib.ai-providers@1.42.5
182
+ - @contractspec/module.ai-chat@1.42.5
183
+ - @contractspec/lib.contracts@1.42.5
184
+ - @contractspec/lib.testing@1.42.5
185
+ - @contractspec/lib.schema@1.42.5
186
+
187
+ ## 1.42.4
188
+
189
+ ### Patch Changes
190
+
191
+ - ac28b99: fix: generate from openapi
192
+ - Updated dependencies [ac28b99]
193
+ - @contractspec/bundle.workspace@1.42.4
194
+ - @contractspec/module.examples@1.42.4
195
+ - @contractspec/lib.contracts-transformers@1.42.4
196
+ - @contractspec/lib.ai-providers@1.42.4
197
+ - @contractspec/module.ai-chat@1.42.4
198
+ - @contractspec/lib.contracts@1.42.4
199
+ - @contractspec/lib.testing@1.42.4
200
+ - @contractspec/lib.schema@1.42.4
201
+
202
+ ## 1.42.3
203
+
204
+ ### Patch Changes
205
+
206
+ - 3f5d015: fix(tooling): cicd
207
+ - Updated dependencies [3f5d015]
208
+ - @contractspec/lib.contracts-transformers@1.42.3
209
+ - @contractspec/bundle.workspace@1.42.3
210
+ - @contractspec/lib.ai-providers@1.42.3
211
+ - @contractspec/lib.contracts@1.42.3
212
+ - @contractspec/lib.schema@1.42.3
213
+ - @contractspec/lib.testing@1.42.3
214
+ - @contractspec/module.ai-chat@1.42.3
215
+ - @contractspec/module.examples@1.42.3
216
+
217
+ ## 1.42.2
218
+
219
+ ### Patch Changes
220
+
221
+ - 1f9ac4c: fix
222
+ - Updated dependencies [1f9ac4c]
223
+ - @contractspec/bundle.workspace@1.42.2
224
+ - @contractspec/lib.ai-providers@1.42.2
225
+ - @contractspec/lib.contracts@1.42.2
226
+ - @contractspec/lib.contracts-transformers@1.42.2
227
+ - @contractspec/lib.schema@1.42.2
228
+ - @contractspec/lib.testing@1.42.2
229
+ - @contractspec/module.ai-chat@1.42.2
230
+ - @contractspec/module.examples@1.42.2
231
+
232
+ ## 1.42.1
233
+
234
+ ### Patch Changes
235
+
236
+ - f043995: Fix release
237
+ - Updated dependencies [f043995]
238
+ - @contractspec/bundle.workspace@1.42.1
239
+ - @contractspec/module.examples@1.42.1
240
+ - @contractspec/lib.contracts-transformers@1.42.1
241
+ - @contractspec/lib.ai-providers@1.42.1
242
+ - @contractspec/module.ai-chat@1.42.1
243
+ - @contractspec/lib.contracts@1.42.1
244
+ - @contractspec/lib.testing@1.42.1
245
+ - @contractspec/lib.schema@1.42.1
246
+
247
+ ## 1.42.0
248
+
249
+ ### Minor Changes
250
+
251
+ - 8eefd9c: initial release
252
+
253
+ ### Patch Changes
254
+
255
+ - Updated dependencies [8eefd9c]
256
+ - @contractspec/bundle.workspace@1.42.0
257
+ - @contractspec/lib.ai-providers@1.42.0
258
+ - @contractspec/lib.contracts@1.42.0
259
+ - @contractspec/lib.contracts-transformers@1.42.0
260
+ - @contractspec/lib.schema@1.42.0
261
+ - @contractspec/lib.testing@1.42.0
262
+ - @contractspec/module.ai-chat@1.42.0
263
+ - @contractspec/module.examples@1.42.0
264
+
265
+ ## 0.12.0
266
+
267
+ ### Minor Changes
268
+
269
+ - Refactor to be compatible with ai-sdk v6
270
+
271
+ ### Patch Changes
272
+
273
+ - Updated dependencies
274
+ - @contractspec/app.cli-database@1.12.0
275
+ - @contractspec/lib.contracts@1.12.0
276
+ - @contractspec/lib.schema@1.12.0
277
+ - @contractspec/lib.testing@0.5.0
278
+
279
+ ## 0.11.1
280
+
281
+ ### Patch Changes
282
+
283
+ - Fix dependencies
284
+ - Updated dependencies
285
+ - @contractspec/app.cli-database@1.11.1
286
+ - @contractspec/lib.contracts@1.11.1
287
+ - @contractspec/lib.schema@1.11.1
288
+ - @contractspec/lib.testing@0.4.1
289
+
290
+ ## 0.11.0
291
+
292
+ ### Minor Changes
293
+
294
+ - b7621d3: Fix version
295
+
296
+ ### Patch Changes
297
+
298
+ - Updated dependencies [b7621d3]
299
+ - @contractspec/app.cli-database@1.11.0
300
+ - @contractspec/lib.contracts@1.11.0
301
+ - @contractspec/lib.schema@1.11.0
302
+ - @contractspec/lib.testing@0.4.0
303
+
304
+ ## 0.10.0
305
+
306
+ ### Minor Changes
307
+
308
+ - fix
309
+
310
+ ### Patch Changes
311
+
312
+ - Updated dependencies
313
+ - @contractspec/app.cli-database@1.10.0
314
+ - @contractspec/lib.contracts@1.10.0
315
+ - @contractspec/lib.schema@1.10.0
316
+ - @contractspec/lib.testing@0.3.0
317
+
318
+ ## 0.9.2
319
+
320
+ ### Patch Changes
321
+
322
+ - fix dependencies
323
+ - Updated dependencies
324
+ - @contractspec/lib.testing@0.2.2
325
+ - @contractspec/app.cli-database@1.9.2
326
+ - @contractspec/lib.contracts@1.9.2
327
+ - @contractspec/lib.schema@1.9.2
328
+
329
+ ## 0.9.1
330
+
331
+ ### Patch Changes
332
+
333
+ - fix
334
+ - Updated dependencies
335
+ - @contractspec/app.cli-database@1.9.1
336
+ - @contractspec/lib.contracts@1.9.1
337
+ - @contractspec/lib.testing@0.2.1
338
+ - @contractspec/lib.schema@1.9.1
339
+
340
+ ## 0.9.0
341
+
342
+ ### Minor Changes
343
+
344
+ - b1d0876: Managed platform
345
+
346
+ ### Patch Changes
347
+
348
+ - Updated dependencies [b1d0876]
349
+ - @contractspec/app.cli-database@1.9.0
350
+ - @contractspec/lib.contracts@1.9.0
351
+ - @contractspec/lib.testing@0.2.0
352
+ - @contractspec/lib.schema@1.9.0
353
+
354
+ ## 0.8.0
355
+
356
+ ### Minor Changes
357
+
358
+ - f1f4ddd: Foundation Hardening
359
+
360
+ ### Patch Changes
361
+
362
+ - Updated dependencies [f1f4ddd]
363
+ - @contractspec/lib.contracts@1.8.0
364
+ - @contractspec/lib.schema@1.8.0
365
+
366
+ ## 0.7.4
367
+
368
+ ### Patch Changes
369
+
370
+ - fix typing
371
+ - Updated dependencies
372
+ - @contractspec/lib.contracts@1.7.4
373
+ - @contractspec/lib.schema@1.7.4
374
+
375
+ ## 0.7.3
376
+
377
+ ### Patch Changes
378
+
379
+ - add right-sidebar
380
+ - Updated dependencies
381
+ - @contractspec/lib.contracts@1.7.3
382
+ - @contractspec/lib.schema@1.7.3
383
+
384
+ ## 0.7.2
385
+
386
+ ### Patch Changes
387
+
388
+ - fix typing
389
+ - Updated dependencies
390
+ - @contractspec/lib.contracts@1.7.2
391
+ - @contractspec/lib.schema@1.7.2
392
+
393
+ ## 0.7.1
394
+
395
+ ### Patch Changes
396
+
397
+ - fix typing
398
+ - Updated dependencies
399
+ - @contractspec/lib.contracts@1.7.1
400
+ - @contractspec/lib.schema@1.7.1
401
+
402
+ ## 0.7.0
403
+
404
+ ### Minor Changes
405
+
406
+ - fixii
407
+
408
+ ### Patch Changes
409
+
410
+ - Updated dependencies
411
+ - @contractspec/lib.contracts@1.7.0
412
+ - @contractspec/lib.schema@1.7.0
413
+
414
+ ## 0.6.0
415
+
416
+ ### Minor Changes
417
+
418
+ - fix versionnnn
419
+
420
+ ### Patch Changes
421
+
422
+ - Updated dependencies
423
+ - @contractspec/lib.contracts@1.6.0
424
+ - @contractspec/lib.schema@1.6.0
425
+
426
+ ## 0.5.0
427
+
428
+ ### Minor Changes
429
+
430
+ - fix
431
+
432
+ ### Patch Changes
433
+
434
+ - Updated dependencies
435
+ - @contractspec/lib.contracts@1.5.0
436
+ - @contractspec/lib.schema@1.5.0
437
+
438
+ ## 0.4.0
439
+
440
+ ### Minor Changes
441
+
442
+ - fix exports
443
+
444
+ ### Patch Changes
445
+
446
+ - Updated dependencies
447
+ - @contractspec/lib.contracts@1.4.0
448
+ - @contractspec/lib.schema@1.4.0
449
+
450
+ ## 0.3.0
451
+
452
+ ### Minor Changes
453
+
454
+ - fix it
455
+
456
+ ### Patch Changes
457
+
458
+ - Updated dependencies
459
+ - @contractspec/lib.contracts@1.3.0
460
+ - @contractspec/lib.schema@1.3.0
461
+
462
+ ## 0.2.0
463
+
464
+ ### Minor Changes
465
+
466
+ - fix
467
+
468
+ ### Patch Changes
469
+
470
+ - Updated dependencies
471
+ - @contractspec/lib.contracts@1.2.0
472
+ - @contractspec/lib.schema@1.2.0
473
+
474
+ ## 0.1.0
475
+
476
+ ### Minor Changes
477
+
478
+ - fix
479
+ - 748b3a2: fix publish
480
+
481
+ ### Patch Changes
482
+
483
+ - Updated dependencies
484
+ - Updated dependencies [748b3a2]
485
+ - @contractspec/lib.contracts@1.1.0
486
+ - @contractspec/lib.schema@1.1.0
487
+
488
+ All notable changes to this project will be documented in this file.
489
+
490
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
491
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
492
+
493
+ ## [Unreleased]
494
+
495
+ Initial version
496
+
497
+ ### Added
498
+
499
+ - Initial release of contracts-cli
500
+ - `contractspec create` command with interactive wizards
501
+ - AI-assisted spec creation using Vercel AI SDK
502
+ - Multi-provider support (Claude, OpenAI, Ollama, custom endpoints)
503
+ - `contractspec build` command for code generation
504
+ - `contractspec validate` command for spec validation
505
+ - TypeScript templates for operations, events, and presentations
506
+ - Handler and component generation
507
+ - Test generation
508
+ - Comprehensive documentation and examples
509
+ - Agent-driven build workflow with automatic fallback to deterministic templates
510
+ - AI-powered implementation validation with consistent agent orchestration
511
+
512
+ ### Features
513
+
514
+ - Interactive CLI with Commander.js
515
+ - Beautiful terminal output with Chalk and Ora
516
+ - Configuration via `.contractsrc.json`
517
+ - Environment variable support
518
+ - BYOLLM (Bring Your Own LLM) support
519
+ - Validation with detailed error messages
520
+ - Type-safe code generation
521
+ - `contractspec validate` now prompts for spec-only vs implementation validation unless `--check-implementation` is provided
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.