contractspec 1.43.2 → 1.43.4

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,21 @@
1
1
  # contractspec
2
2
 
3
+ ## 1.43.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 9216062: fix: cross-platform compatibility
8
+ - Updated dependencies [9216062]
9
+ - @lssm/app.cli-contractspec@1.43.4
10
+
11
+ ## 1.43.3
12
+
13
+ ### Patch Changes
14
+
15
+ - 24d9759: improve documentation
16
+ - Updated dependencies [24d9759]
17
+ - @lssm/app.cli-contractspec@1.43.3
18
+
3
19
  ## 1.43.2
4
20
 
5
21
  ### Patch Changes
package/QUICK_START.md CHANGED
@@ -43,7 +43,7 @@ Review and accept the AI-generated spec!
43
43
  ### 3. Generate handler
44
44
 
45
45
  ```bash
46
- pnpm exec contractspec build src/interactions/commands/user-signup.contracts.ts
46
+ bun exec contractspec build src/interactions/commands/user-signup.contracts.ts
47
47
  ```
48
48
 
49
49
  This generates:
@@ -53,7 +53,7 @@ This generates:
53
53
  ### 4. Validate
54
54
 
55
55
  ```bash
56
- pnpm exec contractspec validate src/interactions/commands/user-signup.contracts.ts
56
+ bun exec contractspec validate src/interactions/commands/user-signup.contracts.ts
57
57
  # You'll be prompted to validate the spec only or the implementation as well.
58
58
  ```
59
59
 
@@ -75,7 +75,7 @@ ollama pull codellama
75
75
  ### Generate with Ollama
76
76
 
77
77
  ```bash
78
- pnpm exec contractspec create --ai --provider ollama --model codellama
78
+ bun exec contractspec create --ai --provider ollama --model codellama
79
79
  ```
80
80
 
81
81
  No API keys needed! Everything runs locally.
@@ -100,18 +100,18 @@ Now commands use these defaults:
100
100
 
101
101
  ```bash
102
102
  # Uses Claude from config
103
- pnpm exec contractspec create --ai
103
+ bun exec contractspec create --ai
104
104
 
105
105
  # Override with Ollama
106
- pnpm exec contractspec create --ai --provider ollama
106
+ bun exec contractspec create --ai --provider ollama
107
107
  ```
108
108
 
109
109
  ## Next Steps
110
110
 
111
111
  1. **Complete the TODO items** in generated files
112
112
  2. **Implement handler logic** with real business rules
113
- 3. **Run tests**: `pnpm test`
114
- 4. **Validate**: `pnpm exec contractspec validate src/**/*.contracts.ts`
113
+ 3. **Run tests**: `bun test`
114
+ 4. **Validate**: `bun exec contractspec validate src/**/*.contracts.ts`
115
115
  5. **Register in registry** and mount REST/GraphQL adapters
116
116
 
117
117
  ## Common Workflows
@@ -119,27 +119,27 @@ pnpm exec contractspec create --ai --provider ollama
119
119
  ### Create Event
120
120
 
121
121
  ```bash
122
- pnpm exec contractspec create --type event
122
+ bun exec contractspec create --type event
123
123
  ```
124
124
 
125
125
  ### Build Presentation Component
126
126
 
127
127
  ```bash
128
- pnpm exec contractspec create --type presentation
129
- pnpm exec contractspec build src/presentations/user-profile.presentation.ts
128
+ bun exec contractspec create --type presentation
129
+ bun exec contractspec build src/presentations/user-profile.presentation.ts
130
130
  ```
131
131
 
132
132
  ### Multi-Spec Workflow
133
133
 
134
134
  ```bash
135
135
  # Create operation spec
136
- pnpm exec contractspec create --type operation --ai
136
+ bun exec contractspec create --type operation --ai
137
137
 
138
138
  # Create related event spec
139
- pnpm exec contractspec create --type event --ai
139
+ bun exec contractspec create --type event --ai
140
140
 
141
141
  # Generate all implementations
142
- pnpm exec contractspec build src/contracts/**/*.ts
142
+ bun exec contractspec build src/contracts/**/*.ts
143
143
  ```
144
144
 
145
145
  ## Tips
@@ -155,19 +155,19 @@ pnpm exec contractspec build src/contracts/**/*.ts
155
155
  **No AI provider?**
156
156
  ```bash
157
157
  # Use interactive wizard instead
158
- pnpm exec contractspec create
158
+ bun exec contractspec create
159
159
  ```
160
160
 
161
161
  **Can't find contractspec?**
162
162
  ```bash
163
- # Use pnpm exec
164
- pnpm exec contractspec --help
163
+ # Use bun exec
164
+ bun exec contractspec --help
165
165
  ```
166
166
 
167
167
  **Import errors?**
168
168
  ```bash
169
169
  # Install dependencies
170
- pnpm add @lssm/lib.contracts @lssm/lib.schema
170
+ bun add @lssm/lib.contracts @lssm/lib.schema
171
171
  ```
172
172
 
173
173
  Happy contract authoring! 🎉
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # ContractSpec
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/contractspec)](https://www.npmjs.com/package/contractspec)
4
+ [![npm downloads](https://img.shields.io/npm/dt/contractspec)](https://www.npmjs.com/package/contractspec)
5
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/lssm-tech/contractspec)
6
+
7
+
3
8
  Website: https://contractspec.io/
4
9
 
5
10
 
@@ -563,7 +568,7 @@ contractspec build spec.ts --provider openai --model gpt-3.5-turbo
563
568
 
564
569
  Make sure `@lssm/lib.contracts` and `@lssm/lib.schema` are installed:
565
570
  ```bash
566
- pnpm add @lssm/lib.contracts @lssm/lib.schema
571
+ bun add @lssm/lib.contracts @lssm/lib.schema
567
572
  ```
568
573
 
569
574
  ## Contributing
@@ -573,7 +578,7 @@ Contributions welcome! Please:
573
578
  1. Follow existing code style
574
579
  2. Add tests for new features
575
580
  3. Update documentation
576
- 4. Ensure all tests pass: `pnpm test`
581
+ 4. Ensure all tests pass: `bun test`
577
582
 
578
583
  ## Agent Modes Deep Dive
579
584
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "contractspec",
3
- "version": "1.43.2",
3
+ "version": "1.43.4",
4
4
  "description": "CLI tool for creating, building, and validating contract specifications",
5
5
  "bin": {
6
6
  "contractspec": "./bin/contractspec.mjs"
7
7
  },
8
8
  "dependencies": {
9
- "@lssm/app.cli-contractspec": "1.43.2"
9
+ "@lssm/app.cli-contractspec": "1.43.4"
10
10
  },
11
11
  "scripts": {
12
12
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",