@contractspec/example.policy-safe-knowledge-assistant 0.0.0-canary-20260113170453

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 (69) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +55 -0
  2. package/.turbo/turbo-build.log +56 -0
  3. package/CHANGELOG.md +585 -0
  4. package/LICENSE +21 -0
  5. package/README.md +22 -0
  6. package/dist/docs/index.d.ts +1 -0
  7. package/dist/docs/index.js +1 -0
  8. package/dist/docs/policy-safe-knowledge-assistant.docblock.d.ts +1 -0
  9. package/dist/docs/policy-safe-knowledge-assistant.docblock.js +35 -0
  10. package/dist/docs/policy-safe-knowledge-assistant.docblock.js.map +1 -0
  11. package/dist/example.d.ts +7 -0
  12. package/dist/example.d.ts.map +1 -0
  13. package/dist/example.js +54 -0
  14. package/dist/example.js.map +1 -0
  15. package/dist/handlers/index.d.ts +2 -0
  16. package/dist/handlers/index.js +3 -0
  17. package/dist/handlers/policy-safe-knowledge-assistant.handlers.d.ts +127 -0
  18. package/dist/handlers/policy-safe-knowledge-assistant.handlers.d.ts.map +1 -0
  19. package/dist/handlers/policy-safe-knowledge-assistant.handlers.js +264 -0
  20. package/dist/handlers/policy-safe-knowledge-assistant.handlers.js.map +1 -0
  21. package/dist/index.d.ts +8 -0
  22. package/dist/index.js +10 -0
  23. package/dist/orchestrator/buildAnswer.d.ts +53 -0
  24. package/dist/orchestrator/buildAnswer.d.ts.map +1 -0
  25. package/dist/orchestrator/buildAnswer.js +77 -0
  26. package/dist/orchestrator/buildAnswer.js.map +1 -0
  27. package/dist/policy-safe-knowledge-assistant.feature.d.ts +7 -0
  28. package/dist/policy-safe-knowledge-assistant.feature.d.ts.map +1 -0
  29. package/dist/policy-safe-knowledge-assistant.feature.js +150 -0
  30. package/dist/policy-safe-knowledge-assistant.feature.js.map +1 -0
  31. package/dist/seed/fixtures.d.ts +35 -0
  32. package/dist/seed/fixtures.d.ts.map +1 -0
  33. package/dist/seed/fixtures.js +34 -0
  34. package/dist/seed/fixtures.js.map +1 -0
  35. package/dist/seed/index.d.ts +2 -0
  36. package/dist/seed/index.js +3 -0
  37. package/dist/seeders/index.d.ts +10 -0
  38. package/dist/seeders/index.d.ts.map +1 -0
  39. package/dist/seeders/index.js +16 -0
  40. package/dist/seeders/index.js.map +1 -0
  41. package/dist/ui/PolicySafeKnowledgeAssistantDashboard.d.ts +7 -0
  42. package/dist/ui/PolicySafeKnowledgeAssistantDashboard.d.ts.map +1 -0
  43. package/dist/ui/PolicySafeKnowledgeAssistantDashboard.js +231 -0
  44. package/dist/ui/PolicySafeKnowledgeAssistantDashboard.js.map +1 -0
  45. package/dist/ui/hooks/usePolicySafeKnowledgeAssistant.d.ts +55 -0
  46. package/dist/ui/hooks/usePolicySafeKnowledgeAssistant.d.ts.map +1 -0
  47. package/dist/ui/hooks/usePolicySafeKnowledgeAssistant.js +193 -0
  48. package/dist/ui/hooks/usePolicySafeKnowledgeAssistant.js.map +1 -0
  49. package/dist/ui/index.d.ts +2 -0
  50. package/dist/ui/index.js +3 -0
  51. package/package.json +81 -0
  52. package/src/docs/index.ts +1 -0
  53. package/src/docs/policy-safe-knowledge-assistant.docblock.ts +28 -0
  54. package/src/example.ts +36 -0
  55. package/src/handlers/index.ts +1 -0
  56. package/src/handlers/policy-safe-knowledge-assistant.handlers.ts +476 -0
  57. package/src/index.ts +11 -0
  58. package/src/integration.test.ts +108 -0
  59. package/src/orchestrator/buildAnswer.ts +122 -0
  60. package/src/policy-safe-knowledge-assistant.feature.ts +58 -0
  61. package/src/seed/fixtures.ts +31 -0
  62. package/src/seed/index.ts +1 -0
  63. package/src/seeders/index.ts +20 -0
  64. package/src/ui/PolicySafeKnowledgeAssistantDashboard.tsx +206 -0
  65. package/src/ui/hooks/usePolicySafeKnowledgeAssistant.ts +229 -0
  66. package/src/ui/index.ts +1 -0
  67. package/tsconfig.json +19 -0
  68. package/tsconfig.tsbuildinfo +1 -0
  69. package/tsdown.config.js +17 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,585 @@
1
+ # @contractspec/example.policy-safe-knowledge-assistant
2
+
3
+ ## 0.0.0-canary-20260113170453
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/example.locale-jurisdiction-gate@0.0.0-canary-20260113170453
23
+ - @contractspec/example.versioned-knowledge-base@0.0.0-canary-20260113170453
24
+ - @contractspec/example.kb-update-pipeline@0.0.0-canary-20260113170453
25
+ - @contractspec/example.learning-patterns@0.0.0-canary-20260113170453
26
+ - @contractspec/module.learning-journey@0.0.0-canary-20260113170453
27
+ - @contractspec/lib.example-shared-ui@0.0.0-canary-20260113170453
28
+ - @contractspec/lib.runtime-sandbox@0.0.0-canary-20260113170453
29
+ - @contractspec/lib.design-system@0.0.0-canary-20260113170453
30
+ - @contractspec/lib.ui-kit-web@0.0.0-canary-20260113170453
31
+ - @contractspec/lib.contracts@0.0.0-canary-20260113170453
32
+
33
+ ## 1.46.2
34
+
35
+ ### Patch Changes
36
+
37
+ - 7e21625: feat: library services (landing page & api)
38
+ - Updated dependencies [7e21625]
39
+ - @contractspec/example.locale-jurisdiction-gate@1.46.2
40
+ - @contractspec/example.versioned-knowledge-base@1.46.2
41
+ - @contractspec/example.kb-update-pipeline@1.46.2
42
+ - @contractspec/example.learning-patterns@1.46.2
43
+ - @contractspec/module.learning-journey@1.46.2
44
+ - @contractspec/lib.example-shared-ui@1.0.1
45
+ - @contractspec/lib.runtime-sandbox@0.1.1
46
+ - @contractspec/lib.design-system@1.46.2
47
+ - @contractspec/lib.contracts@1.46.2
48
+
49
+ ## 1.46.1
50
+
51
+ ### Patch Changes
52
+
53
+ - 2d8a72b: fix: mcp for presentation
54
+ - Updated dependencies [2d8a72b]
55
+ - @contractspec/example.locale-jurisdiction-gate@1.46.1
56
+ - @contractspec/example.versioned-knowledge-base@1.46.1
57
+ - @contractspec/example.kb-update-pipeline@1.46.1
58
+ - @contractspec/example.learning-patterns@1.46.1
59
+ - @contractspec/module.learning-journey@1.46.1
60
+ - @contractspec/lib.contracts@1.46.1
61
+
62
+ ## 1.46.0
63
+
64
+ ### Minor Changes
65
+
66
+ - 07cb19b: feat: feat: cleaude code & opencode integrations
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [07cb19b]
71
+ - @contractspec/example.locale-jurisdiction-gate@1.46.0
72
+ - @contractspec/example.versioned-knowledge-base@1.46.0
73
+ - @contractspec/example.kb-update-pipeline@1.46.0
74
+ - @contractspec/example.learning-patterns@1.46.0
75
+ - @contractspec/module.learning-journey@1.46.0
76
+ - @contractspec/lib.contracts@1.46.0
77
+
78
+ ## 1.45.6
79
+
80
+ ### Patch Changes
81
+
82
+ - a913074: feat: improve ai agents rules management"
83
+ - Updated dependencies [a913074]
84
+ - @contractspec/example.locale-jurisdiction-gate@1.45.6
85
+ - @contractspec/example.versioned-knowledge-base@1.45.6
86
+ - @contractspec/example.kb-update-pipeline@1.45.6
87
+ - @contractspec/example.learning-patterns@1.45.6
88
+ - @contractspec/module.learning-journey@1.45.6
89
+ - @contractspec/lib.contracts@1.45.6
90
+
91
+ ## 1.45.5
92
+
93
+ ### Patch Changes
94
+
95
+ - 9ddd7fa: feat: improve versioning
96
+ - Updated dependencies [9ddd7fa]
97
+ - @contractspec/example.locale-jurisdiction-gate@1.45.5
98
+ - @contractspec/example.versioned-knowledge-base@1.45.5
99
+ - @contractspec/example.kb-update-pipeline@1.45.5
100
+ - @contractspec/example.learning-patterns@1.45.5
101
+ - @contractspec/module.learning-journey@1.45.5
102
+ - @contractspec/lib.contracts@1.45.5
103
+
104
+ ## 1.45.4
105
+
106
+ ### Patch Changes
107
+
108
+ - fix: github action
109
+ - Updated dependencies
110
+ - @contractspec/example.locale-jurisdiction-gate@1.45.4
111
+ - @contractspec/example.versioned-knowledge-base@1.45.4
112
+ - @contractspec/example.kb-update-pipeline@1.45.4
113
+ - @contractspec/example.learning-patterns@1.45.4
114
+ - @contractspec/module.learning-journey@1.45.4
115
+ - @contractspec/lib.contracts@1.45.4
116
+
117
+ ## 1.45.3
118
+
119
+ ### Patch Changes
120
+
121
+ - e74ea9e: feat: version management
122
+ - Updated dependencies [e74ea9e]
123
+ - @contractspec/example.locale-jurisdiction-gate@1.45.3
124
+ - @contractspec/example.versioned-knowledge-base@1.45.3
125
+ - @contractspec/example.kb-update-pipeline@1.45.3
126
+ - @contractspec/example.learning-patterns@1.45.3
127
+ - @contractspec/module.learning-journey@1.45.3
128
+ - @contractspec/lib.contracts@1.45.3
129
+
130
+ ## 1.45.2
131
+
132
+ ### Patch Changes
133
+
134
+ - 39ca241: code cleaning
135
+ - Updated dependencies [39ca241]
136
+ - @contractspec/example.locale-jurisdiction-gate@1.45.2
137
+ - @contractspec/example.versioned-knowledge-base@1.45.2
138
+ - @contractspec/example.kb-update-pipeline@1.45.2
139
+ - @contractspec/example.learning-patterns@1.45.2
140
+ - @contractspec/module.learning-journey@1.45.2
141
+ - @contractspec/lib.contracts@1.45.2
142
+
143
+ ## 1.45.1
144
+
145
+ ### Patch Changes
146
+
147
+ - feat: improve app config and examples contracts
148
+ - Updated dependencies
149
+ - @contractspec/example.locale-jurisdiction-gate@1.45.1
150
+ - @contractspec/example.versioned-knowledge-base@1.45.1
151
+ - @contractspec/example.kb-update-pipeline@1.45.1
152
+ - @contractspec/example.learning-patterns@1.45.1
153
+ - @contractspec/module.learning-journey@1.45.1
154
+ - @contractspec/module.notifications@1.45.1
155
+ - @contractspec/module.audit-trail@1.45.1
156
+ - @contractspec/lib.feature-flags@1.45.1
157
+ - @contractspec/lib.identity-rbac@1.45.1
158
+ - @contractspec/lib.contracts@1.45.1
159
+ - @contractspec/lib.metering@1.45.1
160
+ - @contractspec/lib.schema@1.45.1
161
+ - @contractspec/lib.files@1.45.1
162
+ - @contractspec/lib.jobs@1.45.1
163
+
164
+ ## 1.45.0
165
+
166
+ ### Minor Changes
167
+
168
+ - e73ca1d: feat: improve app config and examples contracts
169
+ feat: Contract layers support (features, examples, app-configs)
170
+
171
+ ### New CLI Commands
172
+ - `contractspec list layers` - List all contract layers with filtering
173
+
174
+ ### Enhanced Commands
175
+ - `contractspec ci` - New `layers` check category validates features/examples/config
176
+ - `contractspec doctor` - New `layers` health checks
177
+ - `contractspec integrity` - Now shows layer statistics
178
+
179
+ ### New APIs
180
+ - `discoverLayers()` - Scan workspace for all layer files
181
+ - `scanExampleSource()` - Parse ExampleSpec from source code
182
+ - `isExampleFile()` - Check if file is an example spec
183
+
184
+ ### Patch Changes
185
+
186
+ - Updated dependencies [e73ca1d]
187
+ - @contractspec/example.locale-jurisdiction-gate@1.45.0
188
+ - @contractspec/example.versioned-knowledge-base@1.45.0
189
+ - @contractspec/example.kb-update-pipeline@1.45.0
190
+ - @contractspec/example.learning-patterns@1.45.0
191
+ - @contractspec/module.learning-journey@1.45.0
192
+ - @contractspec/module.notifications@1.45.0
193
+ - @contractspec/module.audit-trail@1.45.0
194
+ - @contractspec/lib.feature-flags@1.45.0
195
+ - @contractspec/lib.identity-rbac@1.45.0
196
+ - @contractspec/lib.contracts@1.45.0
197
+ - @contractspec/lib.metering@1.45.0
198
+ - @contractspec/lib.schema@1.45.0
199
+ - @contractspec/lib.files@1.45.0
200
+ - @contractspec/lib.jobs@1.45.0
201
+
202
+ ## 1.44.1
203
+
204
+ ### Patch Changes
205
+
206
+ - 3c594fb: fix
207
+ - Updated dependencies [3c594fb]
208
+ - @contractspec/example.locale-jurisdiction-gate@1.44.1
209
+ - @contractspec/example.versioned-knowledge-base@1.44.1
210
+ - @contractspec/example.kb-update-pipeline@1.44.1
211
+ - @contractspec/example.learning-patterns@1.44.1
212
+ - @contractspec/module.learning-journey@1.44.1
213
+ - @contractspec/module.notifications@1.44.1
214
+ - @contractspec/module.audit-trail@1.44.1
215
+ - @contractspec/lib.feature-flags@1.44.1
216
+ - @contractspec/lib.identity-rbac@1.44.1
217
+ - @contractspec/lib.contracts@1.44.1
218
+ - @contractspec/lib.metering@1.44.1
219
+ - @contractspec/lib.schema@1.44.1
220
+ - @contractspec/lib.files@1.44.1
221
+ - @contractspec/lib.jobs@1.44.1
222
+
223
+ ## 1.44.0
224
+
225
+ ### Minor Changes
226
+
227
+ - 5f3a868: chore: isolate branding to contractspec.io
228
+
229
+ ### Patch Changes
230
+
231
+ - Updated dependencies [5f3a868]
232
+ - @contractspec/example.locale-jurisdiction-gate@1.44.0
233
+ - @contractspec/example.versioned-knowledge-base@1.44.0
234
+ - @contractspec/example.kb-update-pipeline@1.44.0
235
+ - @contractspec/example.learning-patterns@1.44.0
236
+ - @contractspec/module.learning-journey@1.44.0
237
+ - @contractspec/module.notifications@1.44.0
238
+ - @contractspec/module.audit-trail@1.44.0
239
+ - @contractspec/lib.feature-flags@1.44.0
240
+ - @contractspec/lib.identity-rbac@1.44.0
241
+ - @contractspec/lib.contracts@1.44.0
242
+ - @contractspec/lib.metering@1.44.0
243
+ - @contractspec/lib.schema@1.44.0
244
+ - @contractspec/lib.files@1.44.0
245
+ - @contractspec/lib.jobs@1.44.0
246
+
247
+ ## 1.43.4
248
+
249
+ ### Patch Changes
250
+
251
+ - 9216062: fix: cross-platform compatibility
252
+ - Updated dependencies [9216062]
253
+ - @contractspec/example.locale-jurisdiction-gate@1.43.4
254
+ - @contractspec/example.versioned-knowledge-base@1.43.4
255
+ - @contractspec/example.kb-update-pipeline@1.43.4
256
+ - @contractspec/example.learning-patterns@1.43.3
257
+ - @contractspec/module.learning-journey@1.43.4
258
+ - @contractspec/module.notifications@1.43.4
259
+ - @contractspec/module.audit-trail@1.43.4
260
+ - @contractspec/lib.feature-flags@1.43.4
261
+ - @contractspec/lib.identity-rbac@1.43.4
262
+ - @contractspec/lib.contracts@1.43.4
263
+ - @contractspec/lib.metering@1.43.4
264
+ - @contractspec/lib.schema@1.43.3
265
+ - @contractspec/lib.files@1.43.4
266
+ - @contractspec/lib.jobs@1.43.4
267
+
268
+ ## 1.43.3
269
+
270
+ ### Patch Changes
271
+
272
+ - 24d9759: improve documentation
273
+ - Updated dependencies [24d9759]
274
+ - @contractspec/example.locale-jurisdiction-gate@1.43.3
275
+ - @contractspec/example.versioned-knowledge-base@1.43.3
276
+ - @contractspec/example.kb-update-pipeline@1.43.3
277
+ - @contractspec/example.learning-patterns@1.43.2
278
+ - @contractspec/module.learning-journey@1.43.3
279
+ - @contractspec/module.notifications@1.43.3
280
+ - @contractspec/module.audit-trail@1.43.3
281
+ - @contractspec/lib.feature-flags@1.43.3
282
+ - @contractspec/lib.identity-rbac@1.43.3
283
+ - @contractspec/lib.contracts@1.43.3
284
+ - @contractspec/lib.metering@1.43.3
285
+ - @contractspec/lib.schema@1.43.2
286
+ - @contractspec/lib.files@1.43.3
287
+ - @contractspec/lib.jobs@1.43.3
288
+
289
+ ## 1.43.2
290
+
291
+ ### Patch Changes
292
+
293
+ - e147271: fix: improve stability
294
+ - Updated dependencies [e147271]
295
+ - @contractspec/example.locale-jurisdiction-gate@1.43.2
296
+ - @contractspec/example.versioned-knowledge-base@1.43.2
297
+ - @contractspec/example.kb-update-pipeline@1.43.2
298
+ - @contractspec/example.learning-patterns@1.43.2
299
+ - @contractspec/module.learning-journey@1.43.2
300
+ - @contractspec/module.notifications@1.43.2
301
+ - @contractspec/module.audit-trail@1.43.2
302
+ - @contractspec/lib.feature-flags@1.43.2
303
+ - @contractspec/lib.identity-rbac@1.43.2
304
+ - @contractspec/lib.contracts@1.43.2
305
+ - @contractspec/lib.metering@1.43.2
306
+ - @contractspec/lib.files@1.43.2
307
+ - @contractspec/lib.jobs@1.43.2
308
+ - @contractspec/lib.schema@1.43.1
309
+
310
+ ## 1.43.1
311
+
312
+ ### Patch Changes
313
+
314
+ - Updated dependencies [f28fdad]
315
+ - @contractspec/lib.contracts@1.43.1
316
+ - @contractspec/example.kb-update-pipeline@1.43.1
317
+ - @contractspec/example.learning-patterns@1.43.1
318
+ - @contractspec/example.locale-jurisdiction-gate@1.43.1
319
+ - @contractspec/example.versioned-knowledge-base@1.43.1
320
+ - @contractspec/lib.feature-flags@1.43.1
321
+ - @contractspec/lib.files@1.43.1
322
+ - @contractspec/lib.identity-rbac@1.43.1
323
+ - @contractspec/lib.jobs@1.43.1
324
+ - @contractspec/lib.metering@1.43.1
325
+ - @contractspec/module.audit-trail@1.43.1
326
+ - @contractspec/module.learning-journey@1.43.1
327
+ - @contractspec/module.notifications@1.43.1
328
+
329
+ ## 1.43.0
330
+
331
+ ### Minor Changes
332
+
333
+ - 042d072: feat: schema declaration using json schema, including zod
334
+
335
+ ### Patch Changes
336
+
337
+ - Updated dependencies [042d072]
338
+ - @contractspec/example.locale-jurisdiction-gate@1.43.0
339
+ - @contractspec/example.versioned-knowledge-base@1.43.0
340
+ - @contractspec/example.kb-update-pipeline@1.43.0
341
+ - @contractspec/example.learning-patterns@1.43.0
342
+ - @contractspec/module.learning-journey@1.43.0
343
+ - @contractspec/module.notifications@1.43.0
344
+ - @contractspec/module.audit-trail@1.43.0
345
+ - @contractspec/lib.feature-flags@1.43.0
346
+ - @contractspec/lib.identity-rbac@1.43.0
347
+ - @contractspec/lib.contracts@1.43.0
348
+ - @contractspec/lib.metering@1.43.0
349
+ - @contractspec/lib.schema@1.43.0
350
+ - @contractspec/lib.files@1.43.0
351
+ - @contractspec/lib.jobs@1.43.0
352
+
353
+ ## 1.42.10
354
+
355
+ ### Patch Changes
356
+
357
+ - 1e6a0f1: fix: mcp server
358
+ - Updated dependencies [1e6a0f1]
359
+ - @contractspec/example.locale-jurisdiction-gate@1.42.10
360
+ - @contractspec/example.versioned-knowledge-base@1.42.10
361
+ - @contractspec/example.kb-update-pipeline@1.42.10
362
+ - @contractspec/example.learning-patterns@1.42.9
363
+ - @contractspec/module.learning-journey@1.42.10
364
+ - @contractspec/module.notifications@1.42.10
365
+ - @contractspec/module.audit-trail@1.42.10
366
+ - @contractspec/lib.feature-flags@1.42.10
367
+ - @contractspec/lib.identity-rbac@1.42.10
368
+ - @contractspec/lib.contracts@1.42.10
369
+ - @contractspec/lib.metering@1.42.10
370
+ - @contractspec/lib.schema@1.42.10
371
+ - @contractspec/lib.files@1.42.10
372
+ - @contractspec/lib.jobs@1.42.10
373
+
374
+ ## 1.42.9
375
+
376
+ ### Patch Changes
377
+
378
+ - 9281db7: fix ModelRegistry
379
+ - Updated dependencies [9281db7]
380
+ - @contractspec/example.locale-jurisdiction-gate@1.42.9
381
+ - @contractspec/example.versioned-knowledge-base@1.42.9
382
+ - @contractspec/example.kb-update-pipeline@1.42.9
383
+ - @contractspec/example.learning-patterns@1.42.8
384
+ - @contractspec/module.learning-journey@1.42.9
385
+ - @contractspec/module.notifications@1.42.9
386
+ - @contractspec/module.audit-trail@1.42.9
387
+ - @contractspec/lib.feature-flags@1.42.9
388
+ - @contractspec/lib.identity-rbac@1.42.9
389
+ - @contractspec/lib.contracts@1.42.9
390
+ - @contractspec/lib.metering@1.42.9
391
+ - @contractspec/lib.schema@1.42.9
392
+ - @contractspec/lib.files@1.42.9
393
+ - @contractspec/lib.jobs@1.42.9
394
+
395
+ ## 1.42.8
396
+
397
+ ### Patch Changes
398
+
399
+ - e07b5ac: fix
400
+ - Updated dependencies [e07b5ac]
401
+ - @contractspec/example.locale-jurisdiction-gate@1.42.8
402
+ - @contractspec/example.versioned-knowledge-base@1.42.8
403
+ - @contractspec/example.kb-update-pipeline@1.42.8
404
+ - @contractspec/example.learning-patterns@1.42.7
405
+ - @contractspec/module.learning-journey@1.42.8
406
+ - @contractspec/module.notifications@1.42.8
407
+ - @contractspec/module.audit-trail@1.42.8
408
+ - @contractspec/lib.feature-flags@1.42.8
409
+ - @contractspec/lib.identity-rbac@1.42.8
410
+ - @contractspec/lib.contracts@1.42.8
411
+ - @contractspec/lib.metering@1.42.8
412
+ - @contractspec/lib.schema@1.42.8
413
+ - @contractspec/lib.files@1.42.8
414
+ - @contractspec/lib.jobs@1.42.8
415
+
416
+ ## 1.42.7
417
+
418
+ ### Patch Changes
419
+
420
+ - e9b575d: fix release
421
+ - Updated dependencies [e9b575d]
422
+ - @contractspec/example.locale-jurisdiction-gate@1.42.7
423
+ - @contractspec/example.versioned-knowledge-base@1.42.7
424
+ - @contractspec/example.kb-update-pipeline@1.42.7
425
+ - @contractspec/example.learning-patterns@1.42.6
426
+ - @contractspec/module.learning-journey@1.42.7
427
+ - @contractspec/module.notifications@1.42.7
428
+ - @contractspec/module.audit-trail@1.42.7
429
+ - @contractspec/lib.feature-flags@1.42.7
430
+ - @contractspec/lib.identity-rbac@1.42.7
431
+ - @contractspec/lib.contracts@1.42.7
432
+ - @contractspec/lib.metering@1.42.7
433
+ - @contractspec/lib.schema@1.42.7
434
+ - @contractspec/lib.files@1.42.7
435
+ - @contractspec/lib.jobs@1.42.7
436
+
437
+ ## 1.42.6
438
+
439
+ ### Patch Changes
440
+
441
+ - 1500242: fix tooling
442
+ - Updated dependencies [1500242]
443
+ - @contractspec/example.locale-jurisdiction-gate@1.42.6
444
+ - @contractspec/example.versioned-knowledge-base@1.42.6
445
+ - @contractspec/example.kb-update-pipeline@1.42.6
446
+ - @contractspec/example.learning-patterns@1.42.5
447
+ - @contractspec/module.learning-journey@1.42.6
448
+ - @contractspec/module.notifications@1.42.6
449
+ - @contractspec/module.audit-trail@1.42.6
450
+ - @contractspec/lib.feature-flags@1.42.6
451
+ - @contractspec/lib.identity-rbac@1.42.6
452
+ - @contractspec/lib.contracts@1.42.6
453
+ - @contractspec/lib.metering@1.42.6
454
+ - @contractspec/lib.schema@1.42.6
455
+ - @contractspec/lib.files@1.42.6
456
+ - @contractspec/lib.jobs@1.42.6
457
+
458
+ ## 1.42.5
459
+
460
+ ### Patch Changes
461
+
462
+ - 1299719: fix vscode
463
+ - Updated dependencies [1299719]
464
+ - @contractspec/example.locale-jurisdiction-gate@1.42.5
465
+ - @contractspec/example.versioned-knowledge-base@1.42.5
466
+ - @contractspec/example.kb-update-pipeline@1.42.5
467
+ - @contractspec/example.learning-patterns@1.42.4
468
+ - @contractspec/module.learning-journey@1.42.5
469
+ - @contractspec/module.notifications@1.42.5
470
+ - @contractspec/module.audit-trail@1.42.5
471
+ - @contractspec/lib.feature-flags@1.42.5
472
+ - @contractspec/lib.identity-rbac@1.42.5
473
+ - @contractspec/lib.contracts@1.42.5
474
+ - @contractspec/lib.metering@1.42.5
475
+ - @contractspec/lib.schema@1.42.5
476
+ - @contractspec/lib.files@1.42.5
477
+ - @contractspec/lib.jobs@1.42.5
478
+
479
+ ## 1.42.4
480
+
481
+ ### Patch Changes
482
+
483
+ - ac28b99: fix: generate from openapi
484
+ - Updated dependencies [ac28b99]
485
+ - @contractspec/example.locale-jurisdiction-gate@1.42.4
486
+ - @contractspec/example.versioned-knowledge-base@1.42.4
487
+ - @contractspec/example.kb-update-pipeline@1.42.4
488
+ - @contractspec/example.learning-patterns@1.42.3
489
+ - @contractspec/module.learning-journey@1.42.4
490
+ - @contractspec/module.notifications@1.42.4
491
+ - @contractspec/module.audit-trail@1.42.4
492
+ - @contractspec/lib.feature-flags@1.42.4
493
+ - @contractspec/lib.identity-rbac@1.42.4
494
+ - @contractspec/lib.contracts@1.42.4
495
+ - @contractspec/lib.metering@1.42.4
496
+ - @contractspec/lib.schema@1.42.4
497
+ - @contractspec/lib.files@1.42.4
498
+ - @contractspec/lib.jobs@1.42.4
499
+
500
+ ## 1.42.3
501
+
502
+ ### Patch Changes
503
+
504
+ - 3f5d015: fix(tooling): cicd
505
+ - Updated dependencies [3f5d015]
506
+ - @contractspec/example.kb-update-pipeline@1.42.3
507
+ - @contractspec/example.learning-patterns@1.42.2
508
+ - @contractspec/example.locale-jurisdiction-gate@1.42.3
509
+ - @contractspec/example.versioned-knowledge-base@1.42.3
510
+ - @contractspec/lib.contracts@1.42.3
511
+ - @contractspec/lib.feature-flags@1.42.3
512
+ - @contractspec/lib.files@1.42.3
513
+ - @contractspec/lib.identity-rbac@1.42.3
514
+ - @contractspec/lib.jobs@1.42.3
515
+ - @contractspec/lib.metering@1.42.3
516
+ - @contractspec/lib.schema@1.42.3
517
+ - @contractspec/module.audit-trail@1.42.3
518
+ - @contractspec/module.learning-journey@1.42.3
519
+ - @contractspec/module.notifications@1.42.3
520
+
521
+ ## 1.42.2
522
+
523
+ ### Patch Changes
524
+
525
+ - 1f9ac4c: fix
526
+ - Updated dependencies [1f9ac4c]
527
+ - @contractspec/example.kb-update-pipeline@1.42.2
528
+ - @contractspec/example.learning-patterns@1.42.2
529
+ - @contractspec/example.locale-jurisdiction-gate@1.42.2
530
+ - @contractspec/example.versioned-knowledge-base@1.42.2
531
+ - @contractspec/lib.contracts@1.42.2
532
+ - @contractspec/lib.feature-flags@1.42.2
533
+ - @contractspec/lib.files@1.42.2
534
+ - @contractspec/lib.identity-rbac@1.42.2
535
+ - @contractspec/lib.jobs@1.42.2
536
+ - @contractspec/lib.metering@1.42.2
537
+ - @contractspec/lib.schema@1.42.2
538
+ - @contractspec/module.audit-trail@1.42.2
539
+ - @contractspec/module.learning-journey@1.42.2
540
+ - @contractspec/module.notifications@1.42.2
541
+
542
+ ## 1.42.1
543
+
544
+ ### Patch Changes
545
+
546
+ - f043995: Fix release
547
+ - Updated dependencies [f043995]
548
+ - @contractspec/example.locale-jurisdiction-gate@1.42.1
549
+ - @contractspec/example.versioned-knowledge-base@1.42.1
550
+ - @contractspec/example.kb-update-pipeline@1.42.1
551
+ - @contractspec/example.learning-patterns@1.42.1
552
+ - @contractspec/module.learning-journey@1.42.1
553
+ - @contractspec/module.notifications@1.42.1
554
+ - @contractspec/module.audit-trail@1.42.1
555
+ - @contractspec/lib.feature-flags@1.42.1
556
+ - @contractspec/lib.identity-rbac@1.42.1
557
+ - @contractspec/lib.contracts@1.42.1
558
+ - @contractspec/lib.metering@1.42.1
559
+ - @contractspec/lib.schema@1.42.1
560
+ - @contractspec/lib.files@1.42.1
561
+ - @contractspec/lib.jobs@1.42.1
562
+
563
+ ## 1.42.0
564
+
565
+ ### Minor Changes
566
+
567
+ - 8eefd9c: initial release
568
+
569
+ ### Patch Changes
570
+
571
+ - Updated dependencies [8eefd9c]
572
+ - @contractspec/example.kb-update-pipeline@1.42.0
573
+ - @contractspec/example.learning-patterns@1.42.0
574
+ - @contractspec/example.locale-jurisdiction-gate@1.42.0
575
+ - @contractspec/example.versioned-knowledge-base@1.42.0
576
+ - @contractspec/lib.contracts@1.42.0
577
+ - @contractspec/lib.feature-flags@1.42.0
578
+ - @contractspec/lib.files@1.42.0
579
+ - @contractspec/lib.identity-rbac@1.42.0
580
+ - @contractspec/lib.jobs@1.42.0
581
+ - @contractspec/lib.metering@1.42.0
582
+ - @contractspec/lib.schema@1.42.0
583
+ - @contractspec/module.audit-trail@1.42.0
584
+ - @contractspec/module.learning-journey@1.42.0
585
+ - @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,22 @@
1
+ # `@contractspec/example.policy-safe-knowledge-assistant`
2
+
3
+ Website: https://contractspec.io/
4
+
5
+
6
+ All-in-one template example demonstrating a **policy-safe knowledge assistant** end-to-end:
7
+
8
+ - Locale + jurisdiction gating (fail-closed)
9
+ - Versioned curated KB + published snapshots
10
+ - Automated KB update pipeline with HITL review + traceability
11
+ - Learning hub (drills, ambient coach, quests)
12
+ - Cross-cutting modules wired: identity/RBAC, audit trail, notifications, jobs, feature flags, files, metering, learning journey
13
+
14
+ This package is the **spec-first** source of truth. The sandbox UI/runtime integration lives in `@contractspec/bundle.studio`.
15
+
16
+ ## Seed scenario
17
+ See `src/seed/fixtures.ts` for deterministic offline fixtures (no web dependencies).
18
+
19
+ ## Running tests
20
+ ```bash
21
+ bun test
22
+ ```
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ import "./policy-safe-knowledge-assistant.docblock.js";
@@ -0,0 +1,35 @@
1
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+
3
+ //#region src/docs/policy-safe-knowledge-assistant.docblock.ts
4
+ registerDocBlocks([{
5
+ id: "docs.examples.policy-safe-knowledge-assistant.goal",
6
+ title: "Policy-safe Knowledge Assistant — Goal",
7
+ summary: "End-to-end example: versioned KB snapshots + locale/jurisdiction gating + HITL pipeline + learning hub.",
8
+ kind: "goal",
9
+ visibility: "public",
10
+ route: "/docs/examples/policy-safe-knowledge-assistant/goal",
11
+ tags: [
12
+ "assistant",
13
+ "knowledge",
14
+ "policy",
15
+ "hitl",
16
+ "learning"
17
+ ],
18
+ body: `## What this template proves\n- Assistant answers are structured and must cite a KB snapshot (or refuse).\n- Locale + jurisdiction are mandatory inputs for every assistant call.\n- Automation proposes KB patches; humans verify; publishing stays blocked until approvals.\n- Learning hub demonstrates drills + coaching + quests without spam.\n\n## Offline-first\n- Seeded fixtures are deterministic and require no external services.\n- Optional non-authoritative fallback can be added behind a single feature flag (disabled by default).`
19
+ }, {
20
+ id: "docs.examples.policy-safe-knowledge-assistant.usage",
21
+ title: "Policy-safe Knowledge Assistant — Usage",
22
+ summary: "5–10 minute sandbox walkthrough for developers.",
23
+ kind: "usage",
24
+ visibility: "public",
25
+ route: "/docs/examples/policy-safe-knowledge-assistant/usage",
26
+ tags: [
27
+ "assistant",
28
+ "knowledge",
29
+ "usage"
30
+ ],
31
+ body: `## Demo walkthrough (high level)\n1) Onboard: set locale + jurisdiction.\n2) Publish snapshot: ingest source -> propose rule -> approve -> publish.\n3) Ask assistant: must pass gate and cite snapshot.\n4) Simulate change: watcher -> review -> publish new snapshot.\n5) Learning hub: drills session, ambient tip, quest start + step completion.`
32
+ }]);
33
+
34
+ //#endregion
35
+ //# sourceMappingURL=policy-safe-knowledge-assistant.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policy-safe-knowledge-assistant.docblock.js","names":[],"sources":["../../src/docs/policy-safe-knowledge-assistant.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.policy-safe-knowledge-assistant.goal',\n title: 'Policy-safe Knowledge Assistant — Goal',\n summary:\n 'End-to-end example: versioned KB snapshots + locale/jurisdiction gating + HITL pipeline + learning hub.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/policy-safe-knowledge-assistant/goal',\n tags: ['assistant', 'knowledge', 'policy', 'hitl', 'learning'],\n body: `## What this template proves\\n- Assistant answers are structured and must cite a KB snapshot (or refuse).\\n- Locale + jurisdiction are mandatory inputs for every assistant call.\\n- Automation proposes KB patches; humans verify; publishing stays blocked until approvals.\\n- Learning hub demonstrates drills + coaching + quests without spam.\\n\\n## Offline-first\\n- Seeded fixtures are deterministic and require no external services.\\n- Optional non-authoritative fallback can be added behind a single feature flag (disabled by default).`,\n },\n {\n id: 'docs.examples.policy-safe-knowledge-assistant.usage',\n title: 'Policy-safe Knowledge Assistant — Usage',\n summary: '5–10 minute sandbox walkthrough for developers.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/policy-safe-knowledge-assistant/usage',\n tags: ['assistant', 'knowledge', 'usage'],\n body: `## Demo walkthrough (high level)\\n1) Onboard: set locale + jurisdiction.\\n2) Publish snapshot: ingest source -> propose rule -> approve -> publish.\\n3) Ask assistant: must pass gate and cite snapshot.\\n4) Simulate change: watcher -> review -> publish new snapshot.\\n5) Learning hub: drills session, ambient tip, quest start + step completion.`,\n },\n];\n\nregisterDocBlocks(docBlocks);\n"],"mappings":";;;AA2BA,kBAxB8B,CAC5B;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAa;EAAa;EAAU;EAAQ;EAAW;CAC9D,MAAM;CACP,EACD;CACE,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAa;EAAa;EAAQ;CACzC,MAAM;CACP,CACF,CAE2B"}
@@ -0,0 +1,7 @@
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
+
3
+ //#region src/example.d.ts
4
+ declare const example: _contractspec_lib_contracts0.ExampleSpec;
5
+ //#endregion
6
+ export { example as default };
7
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SA+BJ,4BAAA,CA/BW"}