@contractspec/example.kb-update-pipeline 0.0.0-canary-20260113162409

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.
Files changed (70) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +55 -0
  2. package/.turbo/turbo-build.log +56 -0
  3. package/CHANGELOG.md +342 -0
  4. package/LICENSE +21 -0
  5. package/README.md +28 -0
  6. package/dist/docs/index.d.ts +1 -0
  7. package/dist/docs/index.js +1 -0
  8. package/dist/docs/kb-update-pipeline.docblock.d.ts +1 -0
  9. package/dist/docs/kb-update-pipeline.docblock.js +31 -0
  10. package/dist/docs/kb-update-pipeline.docblock.js.map +1 -0
  11. package/dist/entities/index.d.ts +2 -0
  12. package/dist/entities/index.js +3 -0
  13. package/dist/entities/models.d.ts +61 -0
  14. package/dist/entities/models.d.ts.map +1 -0
  15. package/dist/entities/models.js +74 -0
  16. package/dist/entities/models.js.map +1 -0
  17. package/dist/events.d.ts +74 -0
  18. package/dist/events.d.ts.map +1 -0
  19. package/dist/events.js +150 -0
  20. package/dist/events.js.map +1 -0
  21. package/dist/example.d.ts +7 -0
  22. package/dist/example.d.ts.map +1 -0
  23. package/dist/example.js +50 -0
  24. package/dist/example.js.map +1 -0
  25. package/dist/handlers/index.d.ts +2 -0
  26. package/dist/handlers/index.js +3 -0
  27. package/dist/handlers/memory.handlers.d.ts +68 -0
  28. package/dist/handlers/memory.handlers.d.ts.map +1 -0
  29. package/dist/handlers/memory.handlers.js +93 -0
  30. package/dist/handlers/memory.handlers.js.map +1 -0
  31. package/dist/index.d.ts +10 -0
  32. package/dist/index.js +12 -0
  33. package/dist/kb-update-pipeline.feature.d.ts +7 -0
  34. package/dist/kb-update-pipeline.feature.d.ts.map +1 -0
  35. package/dist/kb-update-pipeline.feature.js +142 -0
  36. package/dist/kb-update-pipeline.feature.js.map +1 -0
  37. package/dist/operations/index.d.ts +2 -0
  38. package/dist/operations/index.js +3 -0
  39. package/dist/operations/pipeline.d.ts +137 -0
  40. package/dist/operations/pipeline.d.ts.map +1 -0
  41. package/dist/operations/pipeline.js +183 -0
  42. package/dist/operations/pipeline.js.map +1 -0
  43. package/dist/presentations.d.ts +9 -0
  44. package/dist/presentations.d.ts.map +1 -0
  45. package/dist/presentations.js +71 -0
  46. package/dist/presentations.js.map +1 -0
  47. package/dist/tests/operations.test-spec.d.ts +9 -0
  48. package/dist/tests/operations.test-spec.d.ts.map +1 -0
  49. package/dist/tests/operations.test-spec.js +94 -0
  50. package/dist/tests/operations.test-spec.js.map +1 -0
  51. package/example.ts +1 -0
  52. package/package.json +74 -0
  53. package/src/docs/index.ts +1 -0
  54. package/src/docs/kb-update-pipeline.docblock.ts +30 -0
  55. package/src/entities/index.ts +1 -0
  56. package/src/entities/models.ts +53 -0
  57. package/src/events.ts +134 -0
  58. package/src/example.ts +34 -0
  59. package/src/handlers/index.ts +1 -0
  60. package/src/handlers/memory.handlers.test.ts +81 -0
  61. package/src/handlers/memory.handlers.ts +186 -0
  62. package/src/index.ts +15 -0
  63. package/src/kb-update-pipeline.feature.ts +59 -0
  64. package/src/operations/index.ts +1 -0
  65. package/src/operations/pipeline.ts +159 -0
  66. package/src/presentations.ts +68 -0
  67. package/src/tests/operations.test-spec.ts +82 -0
  68. package/tsconfig.json +19 -0
  69. package/tsconfig.tsbuildinfo +1 -0
  70. package/tsdown.config.js +17 -0
@@ -0,0 +1,55 @@
1
+ $ tsdown
2
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
3
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/kb-update-pipeline/tsdown.config.js
4
+ ℹ entry: src/events.ts, src/example.ts, src/index.ts, src/kb-update-pipeline.feature.ts, src/presentations.ts, src/docs/index.ts, src/docs/kb-update-pipeline.docblock.ts, src/entities/index.ts, src/entities/models.ts, src/handlers/index.ts, src/handlers/memory.handlers.ts, src/operations/index.ts, src/operations/pipeline.ts, src/tests/operations.test-spec.ts
5
+ ℹ target: esnext
6
+ ℹ tsconfig: tsconfig.json
7
+ ℹ Build start
8
+ ℹ Cleaning 50 files
9
+ ℹ dist/operations/pipeline.js 4.95 kB │ gzip: 1.37 kB
10
+ ℹ dist/events.js 3.69 kB │ gzip: 0.73 kB
11
+ ℹ dist/handlers/memory.handlers.js 3.37 kB │ gzip: 1.12 kB
12
+ ℹ dist/kb-update-pipeline.feature.js 2.35 kB │ gzip: 0.68 kB
13
+ ℹ dist/tests/operations.test-spec.js 2.13 kB │ gzip: 0.50 kB
14
+ ℹ dist/presentations.js 1.90 kB │ gzip: 0.63 kB
15
+ ℹ dist/entities/models.js 1.81 kB │ gzip: 0.53 kB
16
+ ℹ dist/docs/kb-update-pipeline.docblock.js 1.49 kB │ gzip: 0.71 kB
17
+ ℹ dist/index.js 1.44 kB │ gzip: 0.42 kB
18
+ ℹ dist/example.js 1.05 kB │ gzip: 0.55 kB
19
+ ℹ dist/operations/index.js 0.31 kB │ gzip: 0.14 kB
20
+ ℹ dist/entities/index.js 0.25 kB │ gzip: 0.13 kB
21
+ ℹ dist/handlers/index.js 0.16 kB │ gzip: 0.10 kB
22
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
23
+ ℹ dist/handlers/memory.handlers.js.map 8.13 kB │ gzip: 2.34 kB
24
+ ℹ dist/operations/pipeline.js.map 7.20 kB │ gzip: 1.81 kB
25
+ ℹ dist/events.js.map 5.65 kB │ gzip: 1.04 kB
26
+ ℹ dist/tests/operations.test-spec.js.map 3.64 kB │ gzip: 0.76 kB
27
+ ℹ dist/kb-update-pipeline.feature.js.map 3.48 kB │ gzip: 1.02 kB
28
+ ℹ dist/presentations.js.map 2.87 kB │ gzip: 0.83 kB
29
+ ℹ dist/entities/models.js.map 2.68 kB │ gzip: 0.81 kB
30
+ ℹ dist/docs/kb-update-pipeline.docblock.js.map 2.00 kB │ gzip: 0.89 kB
31
+ ℹ dist/example.js.map 1.51 kB │ gzip: 0.75 kB
32
+ ℹ dist/handlers/memory.handlers.d.ts.map 0.92 kB │ gzip: 0.44 kB
33
+ ℹ dist/events.d.ts.map 0.81 kB │ gzip: 0.33 kB
34
+ ℹ dist/operations/pipeline.d.ts.map 0.76 kB │ gzip: 0.33 kB
35
+ ℹ dist/entities/models.d.ts.map 0.47 kB │ gzip: 0.28 kB
36
+ ℹ dist/tests/operations.test-spec.d.ts.map 0.23 kB │ gzip: 0.16 kB
37
+ ℹ dist/presentations.d.ts.map 0.20 kB │ gzip: 0.15 kB
38
+ ℹ dist/kb-update-pipeline.feature.d.ts.map 0.18 kB │ gzip: 0.15 kB
39
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
40
+ ℹ dist/operations/pipeline.d.ts 4.38 kB │ gzip: 0.58 kB
41
+ ℹ dist/events.d.ts 2.52 kB │ gzip: 0.42 kB
42
+ ℹ dist/entities/models.d.ts 2.00 kB │ gzip: 0.41 kB
43
+ ℹ dist/handlers/memory.handlers.d.ts 1.94 kB │ gzip: 0.64 kB
44
+ ℹ dist/index.d.ts 1.48 kB │ gzip: 0.41 kB
45
+ ℹ dist/presentations.d.ts 0.52 kB │ gzip: 0.20 kB
46
+ ℹ dist/tests/operations.test-spec.d.ts 0.47 kB │ gzip: 0.22 kB
47
+ ℹ dist/kb-update-pipeline.feature.d.ts 0.32 kB │ gzip: 0.19 kB
48
+ ℹ dist/operations/index.d.ts 0.31 kB │ gzip: 0.13 kB
49
+ ℹ dist/handlers/index.d.ts 0.25 kB │ gzip: 0.10 kB
50
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 kB
51
+ ℹ dist/entities/index.d.ts 0.25 kB │ gzip: 0.13 kB
52
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
53
+ ℹ dist/docs/kb-update-pipeline.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
54
+ ℹ 45 files, total: 80.49 kB
55
+ ✔ Build complete in 29882ms
@@ -0,0 +1,56 @@
1
+ $ bun build:types && bun build:bundle
2
+ $ tsc --noEmit
3
+ $ tsdown
4
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
5
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/kb-update-pipeline/tsdown.config.js
6
+ ℹ entry: src/events.ts, src/example.ts, src/index.ts, src/kb-update-pipeline.feature.ts, src/presentations.ts, src/docs/index.ts, src/docs/kb-update-pipeline.docblock.ts, src/entities/index.ts, src/entities/models.ts, src/handlers/index.ts, src/handlers/memory.handlers.ts, src/operations/index.ts, src/operations/pipeline.ts, src/tests/operations.test-spec.ts
7
+ ℹ target: esnext
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ dist/operations/pipeline.js 4.95 kB │ gzip: 1.37 kB
11
+ ℹ dist/events.js 3.69 kB │ gzip: 0.73 kB
12
+ ℹ dist/handlers/memory.handlers.js 3.37 kB │ gzip: 1.12 kB
13
+ ℹ dist/kb-update-pipeline.feature.js 2.35 kB │ gzip: 0.68 kB
14
+ ℹ dist/tests/operations.test-spec.js 2.13 kB │ gzip: 0.50 kB
15
+ ℹ dist/presentations.js 1.90 kB │ gzip: 0.63 kB
16
+ ℹ dist/entities/models.js 1.81 kB │ gzip: 0.53 kB
17
+ ℹ dist/docs/kb-update-pipeline.docblock.js 1.49 kB │ gzip: 0.71 kB
18
+ ℹ dist/index.js 1.44 kB │ gzip: 0.42 kB
19
+ ℹ dist/example.js 1.05 kB │ gzip: 0.55 kB
20
+ ℹ dist/operations/index.js 0.31 kB │ gzip: 0.14 kB
21
+ ℹ dist/entities/index.js 0.25 kB │ gzip: 0.13 kB
22
+ ℹ dist/handlers/index.js 0.16 kB │ gzip: 0.10 kB
23
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
24
+ ℹ dist/handlers/memory.handlers.js.map 8.13 kB │ gzip: 2.34 kB
25
+ ℹ dist/operations/pipeline.js.map 7.20 kB │ gzip: 1.81 kB
26
+ ℹ dist/events.js.map 5.65 kB │ gzip: 1.04 kB
27
+ ℹ dist/tests/operations.test-spec.js.map 3.64 kB │ gzip: 0.76 kB
28
+ ℹ dist/kb-update-pipeline.feature.js.map 3.48 kB │ gzip: 1.02 kB
29
+ ℹ dist/presentations.js.map 2.87 kB │ gzip: 0.83 kB
30
+ ℹ dist/entities/models.js.map 2.68 kB │ gzip: 0.81 kB
31
+ ℹ dist/docs/kb-update-pipeline.docblock.js.map 2.00 kB │ gzip: 0.89 kB
32
+ ℹ dist/example.js.map 1.51 kB │ gzip: 0.75 kB
33
+ ℹ dist/handlers/memory.handlers.d.ts.map 0.92 kB │ gzip: 0.44 kB
34
+ ℹ dist/events.d.ts.map 0.81 kB │ gzip: 0.33 kB
35
+ ℹ dist/operations/pipeline.d.ts.map 0.76 kB │ gzip: 0.33 kB
36
+ ℹ dist/entities/models.d.ts.map 0.47 kB │ gzip: 0.28 kB
37
+ ℹ dist/tests/operations.test-spec.d.ts.map 0.23 kB │ gzip: 0.16 kB
38
+ ℹ dist/presentations.d.ts.map 0.20 kB │ gzip: 0.15 kB
39
+ ℹ dist/kb-update-pipeline.feature.d.ts.map 0.18 kB │ gzip: 0.15 kB
40
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
41
+ ℹ dist/operations/pipeline.d.ts 4.37 kB │ gzip: 0.58 kB
42
+ ℹ dist/events.d.ts 2.52 kB │ gzip: 0.42 kB
43
+ ℹ dist/entities/models.d.ts 2.00 kB │ gzip: 0.41 kB
44
+ ℹ dist/handlers/memory.handlers.d.ts 1.94 kB │ gzip: 0.64 kB
45
+ ℹ dist/index.d.ts 1.48 kB │ gzip: 0.41 kB
46
+ ℹ dist/presentations.d.ts 0.52 kB │ gzip: 0.20 kB
47
+ ℹ dist/tests/operations.test-spec.d.ts 0.47 kB │ gzip: 0.22 kB
48
+ ℹ dist/kb-update-pipeline.feature.d.ts 0.32 kB │ gzip: 0.19 kB
49
+ ℹ dist/operations/index.d.ts 0.31 kB │ gzip: 0.13 kB
50
+ ℹ dist/handlers/index.d.ts 0.25 kB │ gzip: 0.10 kB
51
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 kB
52
+ ℹ dist/entities/index.d.ts 0.25 kB │ gzip: 0.13 kB
53
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
54
+ ℹ dist/docs/kb-update-pipeline.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
55
+ ℹ 45 files, total: 80.49 kB
56
+ ✔ Build complete in 29502ms
package/CHANGELOG.md ADDED
@@ -0,0 +1,342 @@
1
+ # @contractspec/example.kb-update-pipeline
2
+
3
+ ## 0.0.0-canary-20260113162409
4
+
5
+ ### Minor Changes
6
+
7
+ - caf8701: feat: add cli vibe command to run workflow
8
+ - c69b849: feat: add api web services (mcp & website)
9
+ - 42b8d78: feat: add cli `contractspec vibe` workflow to simplify usage
10
+ - fd38e85: feat: auto-fix contractspec issues
11
+
12
+ ### Patch Changes
13
+
14
+ - e7ded36: feat: improve stability (adding ts-morph)
15
+ - c231a8b: test: improve workspace stability
16
+ - Updated dependencies [e7ded36]
17
+ - Updated dependencies [caf8701]
18
+ - Updated dependencies [c69b849]
19
+ - Updated dependencies [c231a8b]
20
+ - Updated dependencies [42b8d78]
21
+ - Updated dependencies [fd38e85]
22
+ - @contractspec/lib.contracts@0.0.0-canary-20260113162409
23
+ - @contractspec/lib.schema@0.0.0-canary-20260113162409
24
+
25
+ ## 1.46.2
26
+
27
+ ### Patch Changes
28
+
29
+ - 7e21625: feat: library services (landing page & api)
30
+ - Updated dependencies [7e21625]
31
+ - @contractspec/lib.contracts@1.46.2
32
+ - @contractspec/lib.schema@1.46.2
33
+
34
+ ## 1.46.1
35
+
36
+ ### Patch Changes
37
+
38
+ - 2d8a72b: fix: mcp for presentation
39
+ - Updated dependencies [2d8a72b]
40
+ - @contractspec/lib.contracts@1.46.1
41
+ - @contractspec/lib.schema@1.46.1
42
+
43
+ ## 1.46.0
44
+
45
+ ### Minor Changes
46
+
47
+ - 07cb19b: feat: feat: cleaude code & opencode integrations
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [07cb19b]
52
+ - @contractspec/lib.contracts@1.46.0
53
+ - @contractspec/lib.schema@1.46.0
54
+
55
+ ## 1.45.6
56
+
57
+ ### Patch Changes
58
+
59
+ - a913074: feat: improve ai agents rules management"
60
+ - Updated dependencies [a913074]
61
+ - @contractspec/lib.contracts@1.45.6
62
+ - @contractspec/lib.schema@1.45.6
63
+
64
+ ## 1.45.5
65
+
66
+ ### Patch Changes
67
+
68
+ - 9ddd7fa: feat: improve versioning
69
+ - Updated dependencies [9ddd7fa]
70
+ - @contractspec/lib.contracts@1.45.5
71
+ - @contractspec/lib.schema@1.45.5
72
+
73
+ ## 1.45.4
74
+
75
+ ### Patch Changes
76
+
77
+ - fix: github action
78
+ - Updated dependencies
79
+ - @contractspec/lib.contracts@1.45.4
80
+ - @contractspec/lib.schema@1.45.4
81
+
82
+ ## 1.45.3
83
+
84
+ ### Patch Changes
85
+
86
+ - e74ea9e: feat: version management
87
+ - Updated dependencies [e74ea9e]
88
+ - @contractspec/lib.contracts@1.45.3
89
+ - @contractspec/lib.schema@1.45.3
90
+
91
+ ## 1.45.2
92
+
93
+ ### Patch Changes
94
+
95
+ - 39ca241: code cleaning
96
+ - Updated dependencies [39ca241]
97
+ - @contractspec/lib.contracts@1.45.2
98
+ - @contractspec/lib.schema@1.45.2
99
+
100
+ ## 1.45.1
101
+
102
+ ### Patch Changes
103
+
104
+ - feat: improve app config and examples contracts
105
+ - Updated dependencies
106
+ - @contractspec/module.notifications@1.45.1
107
+ - @contractspec/lib.identity-rbac@1.45.1
108
+ - @contractspec/lib.contracts@1.45.1
109
+ - @contractspec/lib.schema@1.45.1
110
+
111
+ ## 1.45.0
112
+
113
+ ### Minor Changes
114
+
115
+ - e73ca1d: feat: improve app config and examples contracts
116
+ feat: Contract layers support (features, examples, app-configs)
117
+
118
+ ### New CLI Commands
119
+ - `contractspec list layers` - List all contract layers with filtering
120
+
121
+ ### Enhanced Commands
122
+ - `contractspec ci` - New `layers` check category validates features/examples/config
123
+ - `contractspec doctor` - New `layers` health checks
124
+ - `contractspec integrity` - Now shows layer statistics
125
+
126
+ ### New APIs
127
+ - `discoverLayers()` - Scan workspace for all layer files
128
+ - `scanExampleSource()` - Parse ExampleSpec from source code
129
+ - `isExampleFile()` - Check if file is an example spec
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [e73ca1d]
134
+ - @contractspec/module.notifications@1.45.0
135
+ - @contractspec/lib.identity-rbac@1.45.0
136
+ - @contractspec/lib.contracts@1.45.0
137
+ - @contractspec/lib.schema@1.45.0
138
+
139
+ ## 1.44.1
140
+
141
+ ### Patch Changes
142
+
143
+ - 3c594fb: fix
144
+ - Updated dependencies [3c594fb]
145
+ - @contractspec/module.notifications@1.44.1
146
+ - @contractspec/lib.identity-rbac@1.44.1
147
+ - @contractspec/lib.contracts@1.44.1
148
+ - @contractspec/lib.schema@1.44.1
149
+
150
+ ## 1.44.0
151
+
152
+ ### Minor Changes
153
+
154
+ - 5f3a868: chore: isolate branding to contractspec.io
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies [5f3a868]
159
+ - @contractspec/module.notifications@1.44.0
160
+ - @contractspec/lib.identity-rbac@1.44.0
161
+ - @contractspec/lib.contracts@1.44.0
162
+ - @contractspec/lib.schema@1.44.0
163
+
164
+ ## 1.43.4
165
+
166
+ ### Patch Changes
167
+
168
+ - 9216062: fix: cross-platform compatibility
169
+ - Updated dependencies [9216062]
170
+ - @contractspec/module.notifications@1.43.4
171
+ - @contractspec/lib.identity-rbac@1.43.4
172
+ - @contractspec/lib.contracts@1.43.4
173
+ - @contractspec/lib.schema@1.43.3
174
+
175
+ ## 1.43.3
176
+
177
+ ### Patch Changes
178
+
179
+ - 24d9759: improve documentation
180
+ - Updated dependencies [24d9759]
181
+ - @contractspec/module.notifications@1.43.3
182
+ - @contractspec/lib.identity-rbac@1.43.3
183
+ - @contractspec/lib.contracts@1.43.3
184
+ - @contractspec/lib.schema@1.43.2
185
+
186
+ ## 1.43.2
187
+
188
+ ### Patch Changes
189
+
190
+ - e147271: fix: improve stability
191
+ - Updated dependencies [e147271]
192
+ - @contractspec/module.notifications@1.43.2
193
+ - @contractspec/lib.identity-rbac@1.43.2
194
+ - @contractspec/lib.contracts@1.43.2
195
+ - @contractspec/lib.schema@1.43.1
196
+
197
+ ## 1.43.1
198
+
199
+ ### Patch Changes
200
+
201
+ - Updated dependencies [f28fdad]
202
+ - @contractspec/lib.contracts@1.43.1
203
+ - @contractspec/lib.identity-rbac@1.43.1
204
+ - @contractspec/module.notifications@1.43.1
205
+
206
+ ## 1.43.0
207
+
208
+ ### Minor Changes
209
+
210
+ - 042d072: feat: schema declaration using json schema, including zod
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [042d072]
215
+ - @contractspec/module.notifications@1.43.0
216
+ - @contractspec/lib.identity-rbac@1.43.0
217
+ - @contractspec/lib.contracts@1.43.0
218
+ - @contractspec/lib.schema@1.43.0
219
+
220
+ ## 1.42.10
221
+
222
+ ### Patch Changes
223
+
224
+ - 1e6a0f1: fix: mcp server
225
+ - Updated dependencies [1e6a0f1]
226
+ - @contractspec/module.notifications@1.42.10
227
+ - @contractspec/lib.identity-rbac@1.42.10
228
+ - @contractspec/lib.contracts@1.42.10
229
+ - @contractspec/lib.schema@1.42.10
230
+
231
+ ## 1.42.9
232
+
233
+ ### Patch Changes
234
+
235
+ - 9281db7: fix ModelRegistry
236
+ - Updated dependencies [9281db7]
237
+ - @contractspec/module.notifications@1.42.9
238
+ - @contractspec/lib.identity-rbac@1.42.9
239
+ - @contractspec/lib.contracts@1.42.9
240
+ - @contractspec/lib.schema@1.42.9
241
+
242
+ ## 1.42.8
243
+
244
+ ### Patch Changes
245
+
246
+ - e07b5ac: fix
247
+ - Updated dependencies [e07b5ac]
248
+ - @contractspec/module.notifications@1.42.8
249
+ - @contractspec/lib.identity-rbac@1.42.8
250
+ - @contractspec/lib.contracts@1.42.8
251
+ - @contractspec/lib.schema@1.42.8
252
+
253
+ ## 1.42.7
254
+
255
+ ### Patch Changes
256
+
257
+ - e9b575d: fix release
258
+ - Updated dependencies [e9b575d]
259
+ - @contractspec/module.notifications@1.42.7
260
+ - @contractspec/lib.identity-rbac@1.42.7
261
+ - @contractspec/lib.contracts@1.42.7
262
+ - @contractspec/lib.schema@1.42.7
263
+
264
+ ## 1.42.6
265
+
266
+ ### Patch Changes
267
+
268
+ - 1500242: fix tooling
269
+ - Updated dependencies [1500242]
270
+ - @contractspec/module.notifications@1.42.6
271
+ - @contractspec/lib.identity-rbac@1.42.6
272
+ - @contractspec/lib.contracts@1.42.6
273
+ - @contractspec/lib.schema@1.42.6
274
+
275
+ ## 1.42.5
276
+
277
+ ### Patch Changes
278
+
279
+ - 1299719: fix vscode
280
+ - Updated dependencies [1299719]
281
+ - @contractspec/module.notifications@1.42.5
282
+ - @contractspec/lib.identity-rbac@1.42.5
283
+ - @contractspec/lib.contracts@1.42.5
284
+ - @contractspec/lib.schema@1.42.5
285
+
286
+ ## 1.42.4
287
+
288
+ ### Patch Changes
289
+
290
+ - ac28b99: fix: generate from openapi
291
+ - Updated dependencies [ac28b99]
292
+ - @contractspec/module.notifications@1.42.4
293
+ - @contractspec/lib.identity-rbac@1.42.4
294
+ - @contractspec/lib.contracts@1.42.4
295
+ - @contractspec/lib.schema@1.42.4
296
+
297
+ ## 1.42.3
298
+
299
+ ### Patch Changes
300
+
301
+ - 3f5d015: fix(tooling): cicd
302
+ - Updated dependencies [3f5d015]
303
+ - @contractspec/lib.contracts@1.42.3
304
+ - @contractspec/lib.identity-rbac@1.42.3
305
+ - @contractspec/lib.schema@1.42.3
306
+ - @contractspec/module.notifications@1.42.3
307
+
308
+ ## 1.42.2
309
+
310
+ ### Patch Changes
311
+
312
+ - 1f9ac4c: fix
313
+ - Updated dependencies [1f9ac4c]
314
+ - @contractspec/lib.contracts@1.42.2
315
+ - @contractspec/lib.identity-rbac@1.42.2
316
+ - @contractspec/lib.schema@1.42.2
317
+ - @contractspec/module.notifications@1.42.2
318
+
319
+ ## 1.42.1
320
+
321
+ ### Patch Changes
322
+
323
+ - f043995: Fix release
324
+ - Updated dependencies [f043995]
325
+ - @contractspec/module.notifications@1.42.1
326
+ - @contractspec/lib.identity-rbac@1.42.1
327
+ - @contractspec/lib.contracts@1.42.1
328
+ - @contractspec/lib.schema@1.42.1
329
+
330
+ ## 1.42.0
331
+
332
+ ### Minor Changes
333
+
334
+ - 8eefd9c: initial release
335
+
336
+ ### Patch Changes
337
+
338
+ - Updated dependencies [8eefd9c]
339
+ - @contractspec/lib.contracts@1.42.0
340
+ - @contractspec/lib.identity-rbac@1.42.0
341
+ - @contractspec/lib.schema@1.42.0
342
+ - @contractspec/module.notifications@1.42.0
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.
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # `@contractspec/example.kb-update-pipeline`
2
+
3
+ Website: https://contractspec.io/
4
+
5
+ Spec-first example for a **knowledge base update pipeline** where:
6
+
7
+ - automation **proposes** changes (watch/diff/summarize/propose patches)\n+- humans **verify** (HITL) with role-based rules\n+- snapshots are published only when rule versions are approved\n+- notifications + audit trails provide traceability\n+
8
+ ## Contracts
9
+
10
+ - `kbPipeline.runWatch()`\n+- `kbPipeline.createReviewTask(changeCandidateId)`\n+- `kbPipeline.submitDecision(reviewTaskId, decision)`\n+- `kbPipeline.publishIfReady(jurisdiction)`\n+
11
+ ## Tests
12
+
13
+ - high-risk change cannot be approved by curator role\n+- publish fails if any included rule versions are unapproved\n+- notifications fire on review requested\n+
14
+ ## Running tests
15
+
16
+ ```bash
17
+ bun test
18
+ ```
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ import "./kb-update-pipeline.docblock.js";
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,31 @@
1
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+
3
+ //#region src/docs/kb-update-pipeline.docblock.ts
4
+ registerDocBlocks([{
5
+ id: "docs.examples.kb-update-pipeline.goal",
6
+ title: "KB Update Pipeline — Goal",
7
+ summary: "Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.",
8
+ kind: "goal",
9
+ visibility: "public",
10
+ route: "/docs/examples/kb-update-pipeline/goal",
11
+ tags: [
12
+ "knowledge",
13
+ "pipeline",
14
+ "hitl",
15
+ "audit"
16
+ ],
17
+ body: `## Why it matters
18
+ - Keeps humans as the verifiers (HITL) while automation does the busywork.\n- Produces an auditable chain: source change -> diff -> proposal -> review -> publish.\n\n## Guardrails\n- High-risk changes require expert approval.\n- Publishing fails if any included rule versions are not approved.\n- Review requests emit notifications/events.`
19
+ }, {
20
+ id: "docs.examples.kb-update-pipeline.reference",
21
+ title: "KB Update Pipeline — Reference",
22
+ summary: "Entities, contracts, and events for the KB update pipeline example.",
23
+ kind: "reference",
24
+ visibility: "public",
25
+ route: "/docs/examples/kb-update-pipeline",
26
+ tags: ["knowledge", "reference"],
27
+ body: `## Contracts\n- kbPipeline.runWatch\n- kbPipeline.createReviewTask\n- kbPipeline.submitDecision\n- kbPipeline.publishIfReady\n\n## Events\n- kb.change.detected\n- kb.change.summarized\n- kb.patch.proposed\n- kb.review.requested\n- kb.review.decided`
28
+ }]);
29
+
30
+ //#endregion
31
+ //# sourceMappingURL=kb-update-pipeline.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kb-update-pipeline.docblock.js","names":[],"sources":["../../src/docs/kb-update-pipeline.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst docBlocks: DocBlock[] = [\n {\n id: 'docs.examples.kb-update-pipeline.goal',\n title: 'KB Update Pipeline — Goal',\n summary:\n 'Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/kb-update-pipeline/goal',\n tags: ['knowledge', 'pipeline', 'hitl', 'audit'],\n body: `## Why it matters\n- Keeps humans as the verifiers (HITL) while automation does the busywork.\\n- Produces an auditable chain: source change -> diff -> proposal -> review -> publish.\\n\\n## Guardrails\\n- High-risk changes require expert approval.\\n- Publishing fails if any included rule versions are not approved.\\n- Review requests emit notifications/events.`,\n },\n {\n id: 'docs.examples.kb-update-pipeline.reference',\n title: 'KB Update Pipeline — Reference',\n summary:\n 'Entities, contracts, and events for the KB update pipeline example.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/kb-update-pipeline',\n tags: ['knowledge', 'reference'],\n body: `## Contracts\\n- kbPipeline.runWatch\\n- kbPipeline.createReviewTask\\n- kbPipeline.submitDecision\\n- kbPipeline.publishIfReady\\n\\n## Events\\n- kb.change.detected\\n- kb.change.summarized\\n- kb.patch.proposed\\n- kb.review.requested\\n- kb.review.decided`,\n },\n];\n\nregisterDocBlocks(docBlocks);\n"],"mappings":";;;AA6BA,kBA1B8B,CAC5B;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAa;EAAY;EAAQ;EAAQ;CAChD,MAAM;;CAEP,EACD;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM,CAAC,aAAa,YAAY;CAChC,MAAM;CACP,CACF,CAE2B"}
@@ -0,0 +1,2 @@
1
+ import { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel } from "./models.js";
2
+ export { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel };
@@ -0,0 +1,3 @@
1
+ import { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel } from "./models.js";
2
+
3
+ export { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel };
@@ -0,0 +1,61 @@
1
+ import * as _contractspec_lib_schema18 from "@contractspec/lib.schema";
2
+
3
+ //#region src/entities/models.d.ts
4
+ declare const ChangeRiskLevelEnum: _contractspec_lib_schema18.EnumType<[string, string, string]>;
5
+ declare const ReviewAssignedRoleEnum: _contractspec_lib_schema18.EnumType<[string, string]>;
6
+ declare const ReviewDecisionEnum: _contractspec_lib_schema18.EnumType<[string, string]>;
7
+ declare const ChangeCandidateModel: _contractspec_lib_schema18.SchemaModel<{
8
+ id: {
9
+ type: _contractspec_lib_schema18.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ sourceDocumentId: {
13
+ type: _contractspec_lib_schema18.FieldType<string, string>;
14
+ isOptional: false;
15
+ };
16
+ detectedAt: {
17
+ type: _contractspec_lib_schema18.FieldType<Date, string>;
18
+ isOptional: false;
19
+ };
20
+ diffSummary: {
21
+ type: _contractspec_lib_schema18.FieldType<string, string>;
22
+ isOptional: false;
23
+ };
24
+ riskLevel: {
25
+ type: _contractspec_lib_schema18.EnumType<[string, string, string]>;
26
+ isOptional: false;
27
+ };
28
+ }>;
29
+ declare const ReviewTaskModel: _contractspec_lib_schema18.SchemaModel<{
30
+ id: {
31
+ type: _contractspec_lib_schema18.FieldType<string, string>;
32
+ isOptional: false;
33
+ };
34
+ changeCandidateId: {
35
+ type: _contractspec_lib_schema18.FieldType<string, string>;
36
+ isOptional: false;
37
+ };
38
+ status: {
39
+ type: _contractspec_lib_schema18.FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ assignedRole: {
43
+ type: _contractspec_lib_schema18.EnumType<[string, string]>;
44
+ isOptional: false;
45
+ };
46
+ decision: {
47
+ type: _contractspec_lib_schema18.EnumType<[string, string]>;
48
+ isOptional: true;
49
+ };
50
+ decidedAt: {
51
+ type: _contractspec_lib_schema18.FieldType<Date, string>;
52
+ isOptional: true;
53
+ };
54
+ decidedBy: {
55
+ type: _contractspec_lib_schema18.FieldType<string, string>;
56
+ isOptional: true;
57
+ };
58
+ }>;
59
+ //#endregion
60
+ export { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel };
61
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","names":[],"sources":["../../src/entities/models.ts"],"sourcesContent":[],"mappings":";;;cAMa,qBAIX,0BAAA,CAJ8B;cAMnB,wBAGX,0BAAA,CAHiC;cAKtB,oBAGX,0BAAA,CAH6B;AAXlB,cAgBA,oBAZX,6BAY+B,WAhBD,CAAA;EAMnB,EAAA,EAAA;IAKA,IAAA,EAkBX,0BAAA,CAAA,SAfA,CAAA,MAH6B,EAAA,MAAA,CAAA;IAKlB,UAAA,EAAA,KAAA;EAaX,CAAA;;;;;;8CAb+B,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAepB,CAAA;EAeX,WAAA,EAAA;;;;;;;;;AAf0B,cAAf,eAAe,6BAAA,WAAA,CAAA;;UAe1B,0BAAA,CAAA"}