@lssm/example.learning-journey-ui-onboarding 0.0.0-canary-20251221132705 → 0.0.0-canary-20251221153314

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.
@@ -26,17 +26,17 @@ $ tsdown
26
26
  ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js 16.91 kB │ gzip: 7.25 kB
27
27
  ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map 12.04 kB │ gzip: 4.53 kB
28
28
  ℹ dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map 11.99 kB │ gzip: 4.51 kB
29
+ ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map 11.27 kB │ gzip: 3.76 kB
29
30
  ℹ dist/libs/contracts/dist/docs/tech/schema/README.docblock.js 11.26 kB │ gzip: 4.34 kB
30
- ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map 11.25 kB │ gzip: 3.76 kB
31
31
  ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js 11.22 kB │ gzip: 4.34 kB
32
- ℹ dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map 11.19 kB │ gzip: 3.74 kB
32
+ ℹ dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map 11.22 kB │ gzip: 3.75 kB
33
33
  ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map 10.65 kB │ gzip: 4.04 kB
34
34
  ℹ dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map 10.60 kB │ gzip: 4.02 kB
35
35
  ℹ dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js 10.02 kB │ gzip: 3.85 kB
36
36
  ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js  9.96 kB │ gzip: 3.84 kB
37
- ℹ dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js  9.58 kB │ gzip: 3.53 kB
37
+ ℹ dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js  9.61 kB │ gzip: 3.53 kB
38
38
  ℹ dist/views/Overview.js.map  9.57 kB │ gzip: 2.78 kB
39
- ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js  9.54 kB │ gzip: 3.53 kB
39
+ ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js  9.56 kB │ gzip: 3.53 kB
40
40
  ℹ dist/views/Progress.js.map  8.65 kB │ gzip: 2.34 kB
41
41
  ℹ dist/views/Timeline.js.map  7.01 kB │ gzip: 2.04 kB
42
42
  ℹ dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map  6.38 kB │ gzip: 2.86 kB
@@ -202,47 +202,37 @@ $ tsdown
202
202
  ℹ dist/components/index.d.ts  0.20 kB │ gzip: 0.11 kB
203
203
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
204
204
  ℹ dist/docs/learning-journey-ui-onboarding.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
205
- ℹ 196 files, total: 608.11 kB
206
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/atoms/LoaderCircular.js
207
- ╭─[ ../../libs/design-system/dist/components/atoms/LoaderCircular.js:5:25 ]
205
+ ℹ 196 files, total: 608.22 kB
206
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/atoms/Button.js
207
+ ╭─[ ../../libs/design-system/dist/components/atoms/Button.js:4:25 ]
208
208
  │
209
- 5 │ import { Loader2 } from "lucide-react";
209
+ 4 │ import { Loader2 } from "lucide-react";
210
210
   │ ───────┬──────
211
211
   │ ╰──────── Module not found, treating it as an external dependency
212
212
   │
213
213
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
214
214
  ───╯
215
215
 
216
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/marketing/MarketingComparisonSection.js
217
- ╭─[ ../../libs/design-system/dist/components/marketing/MarketingComparisonSection.js:6:29 ]
216
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/atoms/ActionButtons.js
217
+ ╭─[ ../../libs/design-system/dist/components/atoms/ActionButtons.js:7:60 ]
218
218
  │
219
- 6 │ import { CheckCircle } from "lucide-react";
220
-  │ ───────┬──────
221
-  │ ╰──────── Module not found, treating it as an external dependency
219
+ 7 │ import { Edit, Eye, ToggleLeft, ToggleRight, Trash2 } from "lucide-react";
220
+  │ ───────┬──────
221
+  │ ╰──────── Module not found, treating it as an external dependency
222
222
   │
223
223
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
224
224
  ───╯
225
225
 
226
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/atoms/Button.js
227
- ╭─[ ../../libs/design-system/dist/components/atoms/Button.js:4:25 ]
226
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/atoms/DataChips.js
227
+ ╭─[ ../../libs/design-system/dist/components/atoms/DataChips.js:4:41 ]
228
228
  │
229
- 4 │ import { Loader2 } from "lucide-react";
230
-  │ ───────┬──────
231
-  │ ╰──────── Module not found, treating it as an external dependency
229
+ 4 │ import { Calendar, Clock, MapPin } from "lucide-react";
230
+  │ ───────┬──────
231
+  │ ╰──────── Module not found, treating it as an external dependency
232
232
   │
233
233
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
234
234
  ───╯
235
235
 
236
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/organisms/Header.js
237
- ╭─[ ../../libs/design-system/dist/components/organisms/Header.js:14:22 ]
238
- │
239
- 14 │ import { Menu } from "lucide-react";
240
-  │ ───────┬──────
241
-  │ ╰──────── Module not found, treating it as an external dependency
242
-  │
243
-  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
244
- ────╯
245
-
246
236
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/molecules/CommandSearchTrigger.js
247
237
  ╭─[ ../../libs/design-system/dist/components/molecules/CommandSearchTrigger.js:8:28 ]
248
238
  │
@@ -253,22 +243,22 @@ $ tsdown
253
243
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
254
244
  ───╯
255
245
 
256
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/atoms/ActionButtons.js
257
- ╭─[ ../../libs/design-system/dist/components/atoms/ActionButtons.js:7:60 ]
258
- │
259
- 7 │ import { Edit, Eye, ToggleLeft, ToggleRight, Trash2 } from "lucide-react";
260
-  │ ───────┬──────
261
-  │ ╰──────── Module not found, treating it as an external dependency
262
-  │
263
-  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
264
- ───╯
246
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/organisms/MarketingHeaderMobile.js
247
+ ╭─[ ../../libs/design-system/dist/components/organisms/MarketingHeaderMobile.js:12:22 ]
248
+ │
249
+ 12 │ import { Menu } from "lucide-react";
250
+  │ ───────┬──────
251
+  │ ╰──────── Module not found, treating it as an external dependency
252
+  │
253
+  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
254
+ ────╯
265
255
 
266
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/atoms/DataChips.js
267
- ╭─[ ../../libs/design-system/dist/components/atoms/DataChips.js:4:41 ]
256
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/marketing/MarketingComparisonSection.js
257
+ ╭─[ ../../libs/design-system/dist/components/marketing/MarketingComparisonSection.js:6:29 ]
268
258
  │
269
- 4 │ import { Calendar, Clock, MapPin } from "lucide-react";
270
-  │ ───────┬──────
271
-  │ ╰──────── Module not found, treating it as an external dependency
259
+ 6 │ import { CheckCircle } from "lucide-react";
260
+  │ ───────┬──────
261
+  │ ╰──────── Module not found, treating it as an external dependency
272
262
   │
273
263
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
274
264
  ───╯
@@ -283,60 +273,60 @@ $ tsdown
283
273
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
284
274
  ────╯
285
275
 
286
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/organisms/MarketingHeaderMobile.js
287
- ╭─[ ../../libs/design-system/dist/components/organisms/MarketingHeaderMobile.js:12:22 ]
276
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/organisms/Header.js
277
+ ╭─[ ../../libs/design-system/dist/components/organisms/Header.js:14:22 ]
288
278
  │
289
- 12 │ import { Menu } from "lucide-react";
279
+ 14 │ import { Menu } from "lucide-react";
290
280
   │ ───────┬──────
291
281
   │ ╰──────── Module not found, treating it as an external dependency
292
282
   │
293
283
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
294
284
  ────╯
295
285
 
296
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/sidebar.js
297
- ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/sidebar.js:12:8 ]
298
- │
299
- 12 │ import "lucide-react";
300
-  │ ───────┬──────
301
-  │ ╰──────── Module not found, treating it as an external dependency
302
-  │
303
-  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
304
- ────╯
286
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/atoms/LoaderCircular.js
287
+ ╭─[ ../../libs/design-system/dist/components/atoms/LoaderCircular.js:5:25 ]
288
+ │
289
+ 5 │ import { Loader2 } from "lucide-react";
290
+  │ ───────┬──────
291
+  │ ╰──────── Module not found, treating it as an external dependency
292
+  │
293
+  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
294
+ ───╯
305
295
 
306
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/radio-group.js
307
- ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/radio-group.js:6:28 ]
296
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/checkbox.js
297
+ ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/checkbox.js:6:27 ]
308
298
  │
309
- 6 │ import { CircleIcon } from "lucide-react";
310
-  │ ───────┬──────
311
-  │ ╰──────── Module not found, treating it as an external dependency
299
+ 6 │ import { CheckIcon } from "lucide-react";
300
+  │ ───────┬──────
301
+  │ ╰──────── Module not found, treating it as an external dependency
312
302
   │
313
303
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
314
304
  ───╯
315
305
 
316
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/sheet.js
317
- ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/sheet.js:6:23 ]
306
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/select.js
307
+ ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/select.js:6:59 ]
318
308
  │
319
- 6 │ import { XIcon } from "lucide-react";
320
-  │ ───────┬──────
321
-  │ ╰──────── Module not found, treating it as an external dependency
309
+ 6 │ import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
310
+  │ ───────┬──────
311
+  │ ╰──────── Module not found, treating it as an external dependency
322
312
   │
323
313
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
324
314
  ───╯
325
315
 
326
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/molecules/LangSwitchDropdown.js
327
- ╭─[ ../../libs/design-system/dist/components/molecules/LangSwitchDropdown.js:4:23 ]
316
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../learning-journey-ui-shared/dist/libs/design-system/dist/components/atoms/Button.js
317
+ ╭─[ ../learning-journey-ui-shared/dist/libs/design-system/dist/components/atoms/Button.js:4:25 ]
328
318
  │
329
- 4 │ import { Globe } from "lucide-react";
330
-  │ ───────┬──────
331
-  │ ╰──────── Module not found, treating it as an external dependency
319
+ 4 │ import { Loader2 } from "lucide-react";
320
+  │ ───────┬──────
321
+  │ ╰──────── Module not found, treating it as an external dependency
332
322
   │
333
323
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
334
324
  ───╯
335
325
 
336
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/command.js
337
- ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/command.js:7:28 ]
326
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/radio-group.js
327
+ ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/radio-group.js:6:28 ]
338
328
  │
339
- 7 │ import { SearchIcon } from "lucide-react";
329
+ 6 │ import { CircleIcon } from "lucide-react";
340
330
   │ ───────┬──────
341
331
   │ ╰──────── Module not found, treating it as an external dependency
342
332
   │
@@ -353,16 +343,26 @@ $ tsdown
353
343
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
354
344
  ───╯
355
345
 
356
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/navigation-menu.js
357
- ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/navigation-menu.js:5:33 ]
346
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/dialog.js
347
+ ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/dialog.js:6:23 ]
358
348
  │
359
- 5 │ import { ChevronDownIcon } from "lucide-react";
360
-  │ ───────┬──────
361
-  │ ╰──────── Module not found, treating it as an external dependency
349
+ 6 │ import { XIcon } from "lucide-react";
350
+  │ ───────┬──────
351
+  │ ╰──────── Module not found, treating it as an external dependency
362
352
   │
363
353
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
364
354
  ───╯
365
355
 
356
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/sidebar.js
357
+ ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/sidebar.js:12:8 ]
358
+ │
359
+ 12 │ import "lucide-react";
360
+  │ ───────┬──────
361
+  │ ╰──────── Module not found, treating it as an external dependency
362
+  │
363
+  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
364
+ ────╯
365
+
366
366
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/pagination.js
367
367
  ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/pagination.js:5:59 ]
368
368
  │
@@ -373,10 +373,20 @@ $ tsdown
373
373
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
374
374
  ───╯
375
375
 
376
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/accordion.js
377
- ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/accordion.js:6:33 ]
376
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/command.js
377
+ ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/command.js:7:28 ]
378
378
  │
379
- 6 │ import { ChevronDownIcon } from "lucide-react";
379
+ 7 │ import { SearchIcon } from "lucide-react";
380
+  │ ───────┬──────
381
+  │ ╰──────── Module not found, treating it as an external dependency
382
+  │
383
+  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
384
+ ───╯
385
+
386
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/navigation-menu.js
387
+ ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/navigation-menu.js:5:33 ]
388
+ │
389
+ 5 │ import { ChevronDownIcon } from "lucide-react";
380
390
   │ ───────┬──────
381
391
   │ ╰──────── Module not found, treating it as an external dependency
382
392
   │
@@ -393,22 +403,22 @@ $ tsdown
393
403
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
394
404
  ───╯
395
405
 
396
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../learning-journey-ui-shared/dist/libs/design-system/dist/components/atoms/Button.js
397
- ╭─[ ../learning-journey-ui-shared/dist/libs/design-system/dist/components/atoms/Button.js:4:25 ]
406
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/sheet.js
407
+ ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/sheet.js:6:23 ]
398
408
  │
399
- 4 │ import { Loader2 } from "lucide-react";
400
-  │ ───────┬──────
401
-  │ ╰──────── Module not found, treating it as an external dependency
409
+ 6 │ import { XIcon } from "lucide-react";
410
+  │ ───────┬──────
411
+  │ ╰──────── Module not found, treating it as an external dependency
402
412
   │
403
413
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
404
414
  ───╯
405
415
 
406
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/checkbox.js
407
- ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/checkbox.js:6:27 ]
416
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/components/molecules/LangSwitchDropdown.js
417
+ ╭─[ ../../libs/design-system/dist/components/molecules/LangSwitchDropdown.js:4:23 ]
408
418
  │
409
- 6 │ import { CheckIcon } from "lucide-react";
410
-  │ ───────┬──────
411
-  │ ╰──────── Module not found, treating it as an external dependency
419
+ 4 │ import { Globe } from "lucide-react";
420
+  │ ───────┬──────
421
+  │ ╰──────── Module not found, treating it as an external dependency
412
422
   │
413
423
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
414
424
  ───╯
@@ -423,16 +433,6 @@ $ tsdown
423
433
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
424
434
  ───╯
425
435
 
426
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/dialog.js
427
- ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/dialog.js:6:23 ]
428
- │
429
- 6 │ import { XIcon } from "lucide-react";
430
-  │ ───────┬──────
431
-  │ ╰──────── Module not found, treating it as an external dependency
432
-  │
433
-  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
434
- ───╯
435
-
436
436
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/organisms/ListPage/ListPage.js
437
437
  ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/organisms/ListPage/ListPage.js:9:58 ]
438
438
  │
@@ -443,12 +443,12 @@ $ tsdown
443
443
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
444
444
  ───╯
445
445
 
446
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/select.js
447
- ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/select.js:6:59 ]
446
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'lucide-react' in ../../libs/design-system/dist/ui-kit-web/dist/ui/accordion.js
447
+ ╭─[ ../../libs/design-system/dist/ui-kit-web/dist/ui/accordion.js:6:33 ]
448
448
  │
449
- 6 │ import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
450
-  │ ───────┬──────
451
-  │ ╰──────── Module not found, treating it as an external dependency
449
+ 6 │ import { ChevronDownIcon } from "lucide-react";
450
+  │ ───────┬──────
451
+  │ ╰──────── Module not found, treating it as an external dependency
452
452
   │
453
453
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
454
454
  ───╯
@@ -483,5 +483,5 @@ $ tsdown
483
483
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
484
484
  ───╯
485
485
 
486
- ✔ Build complete in 21309ms
486
+ ✔ Build complete in 10691ms
487
487
  $ tsc --noEmit
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lssm/example.learning-journey-ui-onboarding
2
2
 
3
- ## 0.0.0-canary-20251221132705
3
+ ## 0.0.0-canary-20251221153314
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,12 +9,12 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [66a5dfd]
12
- - @lssm/example.learning-journey-platform-tour@0.0.0-canary-20251221132705
13
- - @lssm/example.learning-journey-studio-onboarding@0.0.0-canary-20251221132705
14
- - @lssm/example.learning-journey-ui-shared@0.0.0-canary-20251221132705
15
- - @lssm/lib.contracts@0.0.0-canary-20251221132705
16
- - @lssm/lib.design-system@0.0.0-canary-20251221132705
17
- - @lssm/lib.schema@0.0.0-canary-20251221132705
18
- - @lssm/lib.ui-kit-core@0.0.0-canary-20251221132705
19
- - @lssm/lib.ui-kit-web@0.0.0-canary-20251221132705
20
- - @lssm/module.learning-journey@0.0.0-canary-20251221132705
12
+ - @lssm/example.learning-journey-platform-tour@0.0.0-canary-20251221153314
13
+ - @lssm/example.learning-journey-studio-onboarding@0.0.0-canary-20251221153314
14
+ - @lssm/example.learning-journey-ui-shared@0.0.0-canary-20251221153314
15
+ - @lssm/lib.contracts@0.0.0-canary-20251221153314
16
+ - @lssm/lib.design-system@0.0.0-canary-20251221153314
17
+ - @lssm/lib.schema@0.0.0-canary-20251221153314
18
+ - @lssm/lib.ui-kit-core@0.0.0-canary-20251221153314
19
+ - @lssm/lib.ui-kit-web@0.0.0-canary-20251221153314
20
+ - @lssm/module.learning-journey@0.0.0-canary-20251221153314
@@ -88,11 +88,11 @@ llm.verify { specPath: "path/to/my.spec.ts", implementationPath: "path/to/impl.t
88
88
  ### Programmatic Usage
89
89
 
90
90
  \`\`\`typescript
91
- import { specToFullMarkdown, specToAgentPrompt } from '@lssm/lib.contracts/llm';
91
+ import { operationSpecToFullMarkdown, operationSpecToAgentPrompt } from '@lssm/lib.contracts/llm';
92
92
  import { createAgentGuideService, createVerifyService } from '@lssm/bundle.contractspec-workspace';
93
93
 
94
94
  // Export
95
- const markdown = specToFullMarkdown(mySpec);
95
+ const markdown = operationSpecToFullMarkdown(mySpec);
96
96
 
97
97
  // Generate guide
98
98
  const guideService = createAgentGuideService({ defaultAgent: 'claude-code' });
@@ -1 +1 @@
1
- {"version":3,"file":"llm-integration.docblock.js","names":[],"sources":["../../../../../../../../../../../learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region ../../libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js\nconst tech_llm_integration_DocBlocks = [\n\t{\n\t\tid: \"docs.tech.llm.overview\",\n\t\ttitle: \"LLM Integration Overview\",\n\t\tsummary: \"Export specs to LLM-friendly formats, generate implementation guides, and verify implementations.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/overview\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"ai\",\n\t\t\t\"export\",\n\t\t\t\"guide\",\n\t\t\t\"verify\"\n\t\t],\n\t\tbody: `# LLM Integration\n\nContractSpec provides first-class LLM integration to bridge specifications and AI coding agents.\n\n## Core Features\n\n### 1. Multi-Format Export\n\nExport specs to markdown in formats optimized for LLM consumption:\n\n- **Context format**: Summary for understanding (goal, context, acceptance criteria)\n- **Full format**: Complete spec with all details (I/O schemas, policy, events)\n- **Prompt format**: Actionable prompt with implementation instructions\n\n### 2. Implementation Guidance\n\nGenerate agent-specific implementation plans:\n\n- **Claude Code**: Extended thinking mode with structured prompts\n- **Cursor CLI**: Background/composer mode with .mdc rules generation\n- **Generic MCP**: Standard format for any MCP-compatible agent\n\n### 3. Tiered Verification\n\nVerify implementations against specs:\n\n- **Tier 1 (Structure)**: Types, exports, imports validation\n- **Tier 2 (Behavior)**: Scenario coverage, error handling, events\n- **Tier 3 (AI Review)**: Semantic compliance analysis via LLM\n\n## Access Points\n\n| Surface | Commands/Tools |\n|---------|---------------|\n| CLI | \\`contractspec llm export\\`, \\`guide\\`, \\`verify\\`, \\`copy\\` |\n| MCP | \\`llm.export\\`, \\`llm.guide\\`, \\`llm.verify\\` tools |\n| VSCode | Export to LLM, Generate Guide, Verify, Copy commands |\n\n## Quick Start\n\n### CLI Usage\n\n\\`\\`\\`bash\n# Export spec as markdown\ncontractspec llm export path/to/my.spec.ts --format full\n\n# Generate implementation guide\ncontractspec llm guide path/to/my.spec.ts --agent claude-code\n\n# Verify implementation\ncontractspec llm verify path/to/my.spec.ts path/to/impl.ts --tier 2\n\n# Copy spec to clipboard\ncontractspec llm copy path/to/my.spec.ts --format context\n\\`\\`\\`\n\n### MCP Usage\n\n\\`\\`\\`\n# Export spec\nllm.export { specPath: \"path/to/my.spec.ts\", format: \"full\" }\n\n# Generate guide\nllm.guide { specPath: \"path/to/my.spec.ts\", agent: \"cursor-cli\" }\n\n# Verify implementation\nllm.verify { specPath: \"path/to/my.spec.ts\", implementationPath: \"path/to/impl.ts\", tier: \"2\" }\n\\`\\`\\`\n\n### Programmatic Usage\n\n\\`\\`\\`typescript\nimport { specToFullMarkdown, specToAgentPrompt } from '@lssm/lib.contracts/llm';\nimport { createAgentGuideService, createVerifyService } from '@lssm/bundle.contractspec-workspace';\n\n// Export\nconst markdown = specToFullMarkdown(mySpec);\n\n// Generate guide\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst guide = guideService.generateGuide(mySpec);\n\n// Verify\nconst verifyService = createVerifyService();\nconst result = await verifyService.verify(mySpec, implementationCode, {\n tiers: ['structure', 'behavior']\n});\n\\`\\`\\`\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.export-formats\",\n\t\ttitle: \"LLM Export Formats\",\n\t\tsummary: \"Detailed explanation of the three export formats for LLM consumption.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/export-formats\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"export\",\n\t\t\t\"markdown\"\n\t\t],\n\t\tbody: `# LLM Export Formats\n\nContractSpec provides three export formats optimized for different LLM use cases.\n\n## Context Format\n\nBest for: Understanding what a spec does, providing background to LLMs.\n\nIncludes:\n- Spec name, version, type\n- Goal and context\n- Description\n- Acceptance scenarios\n\nExample:\n\n\\`\\`\\`markdown\n# users.createUser (v1)\n\n> Create a new user account with email verification.\n\n**Type:** command | **Stability:** stable\n\n## Goal\nCreate a new user in the system and trigger email verification.\n\n## Context\nPart of the user onboarding flow. Called after signup form submission.\n\n## Acceptance Criteria\n### Happy path\n**Given:** Valid email and password\n**When:** User submits registration\n**Then:** Account is created, verification email is sent\n\\`\\`\\`\n\n## Full Format\n\nBest for: Complete documentation, implementation reference.\n\nIncludes everything:\n- All metadata\n- JSON schemas for I/O\n- Error definitions\n- Policy (auth, rate limits, PII)\n- Events emitted\n- Examples\n- Transport configuration\n\n## Prompt Format\n\nBest for: Feeding directly to coding agents.\n\nIncludes:\n- Task header with clear instructions\n- Full spec context\n- Implementation requirements\n- Task-specific guidance (implement/test/refactor/review)\n- Expected output format\n\nThe prompt format adapts based on task type:\n- **implement**: Full implementation with tests\n- **test**: Test generation for existing code\n- **refactor**: Refactoring while maintaining behavior\n- **review**: Code review against spec\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.agent-adapters\",\n\t\ttitle: \"Agent Adapters\",\n\t\tsummary: \"Adapters for different AI coding agents (Claude, Cursor, MCP).\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/agent-adapters\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"agents\",\n\t\t\t\"claude\",\n\t\t\t\"cursor\",\n\t\t\t\"mcp\"\n\t\t],\n\t\tbody: `# Agent Adapters\n\nContractSpec provides specialized adapters for different AI coding agents.\n\n## Claude Code Adapter\n\nOptimized for Anthropic Claude's extended thinking and code generation.\n\nFeatures:\n- Structured markdown with clear sections\n- Checklists for steps and verification\n- Icons for file operations (📝 create, ✏️ modify)\n- System prompt for ContractSpec context\n\nUsage:\n\\`\\`\\`typescript\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst result = guideService.generateGuide(spec, { agent: 'claude-code' });\n// result.prompt.systemPrompt - Claude system context\n// result.prompt.taskPrompt - Task-specific instructions\n\\`\\`\\`\n\n## Cursor CLI Adapter\n\nOptimized for Cursor's background/composer mode.\n\nFeatures:\n- Compact format for context efficiency\n- .mdc cursor rules generation\n- Integration with Cursor's file system\n- Concise step lists\n\nGenerate Cursor Rules:\n\\`\\`\\`typescript\nconst cursorRules = guideService.generateAgentConfig(spec, 'cursor-cli');\n// Save to .cursor/rules/my-spec.mdc\n\\`\\`\\`\n\n## Generic MCP Adapter\n\nWorks with any MCP-compatible agent (Cline, Aider, etc.).\n\nFeatures:\n- Standard markdown format\n- Table-based metadata\n- JSON resource format support\n- Prompt message format\n\nThe generic adapter is the default and works across all agents.\n\n## Choosing an Adapter\n\n| Agent | Best For | Key Features |\n|-------|----------|--------------|\n| Claude Code | Complex implementations | Extended thinking, detailed steps |\n| Cursor CLI | IDE-integrated work | Cursor rules, compact format |\n| Generic MCP | Any MCP agent | Universal compatibility |\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.verification\",\n\t\ttitle: \"Implementation Verification\",\n\t\tsummary: \"Tiered verification of implementations against specifications.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/verification\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"verify\",\n\t\t\t\"validation\",\n\t\t\t\"testing\"\n\t\t],\n\t\tbody: `# Implementation Verification\n\nContractSpec provides tiered verification to check if implementations comply with specs.\n\n## Verification Tiers\n\n### Tier 1: Structure (Fast)\n\nChecks TypeScript structure against spec requirements:\n\n| Check | What it validates |\n|-------|------------------|\n| Handler export | Function is properly exported |\n| Contracts import | Imports from @lssm/lib.contracts |\n| Schema import | Imports from @lssm/lib.schema |\n| No \\`any\\` type | TypeScript strict compliance |\n| Error handling | Error codes are referenced |\n| Event emission | Event patterns exist |\n| Input validation | Validation patterns used |\n| Async patterns | Async/await for commands |\n\n### Tier 2: Behavior (Comprehensive)\n\nChecks implementation coverage of spec behaviors:\n\n| Check | What it validates |\n|-------|------------------|\n| Scenario coverage | Acceptance scenarios implemented |\n| Example coverage | Example I/O values referenced |\n| Error cases | All error conditions handled |\n| Event conditions | Events emitted correctly |\n| Idempotency | Idempotent patterns (if required) |\n\n### Tier 3: AI Review (Deep)\n\nUses LLM for semantic analysis:\n\n- Does the implementation fulfill the spec's intent?\n- Are edge cases properly handled?\n- Is the code quality acceptable?\n- Are there any subtle violations?\n\nRequires AI API key configuration.\n\n## Running Verification\n\n\\`\\`\\`typescript\nconst verifyService = createVerifyService({\n aiApiKey: process.env.ANTHROPIC_API_KEY, // Optional, for Tier 3\n aiProvider: 'anthropic',\n});\n\nconst result = await verifyService.verify(spec, implementationCode, {\n tiers: ['structure', 'behavior'],\n failFast: false,\n includeSuggestions: true,\n});\n\nconsole.log(result.passed); // true/false\nconsole.log(result.score); // 0-100\nconsole.log(result.summary); // Human-readable summary\n\\`\\`\\`\n\n## Verification Report\n\nThe report includes:\n\n- **passed**: Overall compliance\n- **score**: 0-100 score\n- **issues**: Array of problems found\n- **suggestions**: Recommended fixes\n- **coverage**: Metrics on scenario/error/field coverage\n\nEach issue has:\n- **severity**: error, warning, or info\n- **category**: type, export, import, scenario, error_handling, semantic\n- **message**: Description of the issue\n- **suggestion**: How to fix it\n`\n\t}\n];\nregisterDocBlocks(tech_llm_integration_DocBlocks);\n\n//#endregion\n//# sourceMappingURL=llm-integration.docblock.js.map"],"mappings":";;;AAkWA,kBA/VuC;CACtC;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EN;CACD,CACgD"}
1
+ {"version":3,"file":"llm-integration.docblock.js","names":[],"sources":["../../../../../../../../../../../learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region ../../libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js\nconst tech_llm_integration_DocBlocks = [\n\t{\n\t\tid: \"docs.tech.llm.overview\",\n\t\ttitle: \"LLM Integration Overview\",\n\t\tsummary: \"Export specs to LLM-friendly formats, generate implementation guides, and verify implementations.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/overview\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"ai\",\n\t\t\t\"export\",\n\t\t\t\"guide\",\n\t\t\t\"verify\"\n\t\t],\n\t\tbody: `# LLM Integration\n\nContractSpec provides first-class LLM integration to bridge specifications and AI coding agents.\n\n## Core Features\n\n### 1. Multi-Format Export\n\nExport specs to markdown in formats optimized for LLM consumption:\n\n- **Context format**: Summary for understanding (goal, context, acceptance criteria)\n- **Full format**: Complete spec with all details (I/O schemas, policy, events)\n- **Prompt format**: Actionable prompt with implementation instructions\n\n### 2. Implementation Guidance\n\nGenerate agent-specific implementation plans:\n\n- **Claude Code**: Extended thinking mode with structured prompts\n- **Cursor CLI**: Background/composer mode with .mdc rules generation\n- **Generic MCP**: Standard format for any MCP-compatible agent\n\n### 3. Tiered Verification\n\nVerify implementations against specs:\n\n- **Tier 1 (Structure)**: Types, exports, imports validation\n- **Tier 2 (Behavior)**: Scenario coverage, error handling, events\n- **Tier 3 (AI Review)**: Semantic compliance analysis via LLM\n\n## Access Points\n\n| Surface | Commands/Tools |\n|---------|---------------|\n| CLI | \\`contractspec llm export\\`, \\`guide\\`, \\`verify\\`, \\`copy\\` |\n| MCP | \\`llm.export\\`, \\`llm.guide\\`, \\`llm.verify\\` tools |\n| VSCode | Export to LLM, Generate Guide, Verify, Copy commands |\n\n## Quick Start\n\n### CLI Usage\n\n\\`\\`\\`bash\n# Export spec as markdown\ncontractspec llm export path/to/my.spec.ts --format full\n\n# Generate implementation guide\ncontractspec llm guide path/to/my.spec.ts --agent claude-code\n\n# Verify implementation\ncontractspec llm verify path/to/my.spec.ts path/to/impl.ts --tier 2\n\n# Copy spec to clipboard\ncontractspec llm copy path/to/my.spec.ts --format context\n\\`\\`\\`\n\n### MCP Usage\n\n\\`\\`\\`\n# Export spec\nllm.export { specPath: \"path/to/my.spec.ts\", format: \"full\" }\n\n# Generate guide\nllm.guide { specPath: \"path/to/my.spec.ts\", agent: \"cursor-cli\" }\n\n# Verify implementation\nllm.verify { specPath: \"path/to/my.spec.ts\", implementationPath: \"path/to/impl.ts\", tier: \"2\" }\n\\`\\`\\`\n\n### Programmatic Usage\n\n\\`\\`\\`typescript\nimport { operationSpecToFullMarkdown, operationSpecToAgentPrompt } from '@lssm/lib.contracts/llm';\nimport { createAgentGuideService, createVerifyService } from '@lssm/bundle.contractspec-workspace';\n\n// Export\nconst markdown = operationSpecToFullMarkdown(mySpec);\n\n// Generate guide\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst guide = guideService.generateGuide(mySpec);\n\n// Verify\nconst verifyService = createVerifyService();\nconst result = await verifyService.verify(mySpec, implementationCode, {\n tiers: ['structure', 'behavior']\n});\n\\`\\`\\`\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.export-formats\",\n\t\ttitle: \"LLM Export Formats\",\n\t\tsummary: \"Detailed explanation of the three export formats for LLM consumption.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/export-formats\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"export\",\n\t\t\t\"markdown\"\n\t\t],\n\t\tbody: `# LLM Export Formats\n\nContractSpec provides three export formats optimized for different LLM use cases.\n\n## Context Format\n\nBest for: Understanding what a spec does, providing background to LLMs.\n\nIncludes:\n- Spec name, version, type\n- Goal and context\n- Description\n- Acceptance scenarios\n\nExample:\n\n\\`\\`\\`markdown\n# users.createUser (v1)\n\n> Create a new user account with email verification.\n\n**Type:** command | **Stability:** stable\n\n## Goal\nCreate a new user in the system and trigger email verification.\n\n## Context\nPart of the user onboarding flow. Called after signup form submission.\n\n## Acceptance Criteria\n### Happy path\n**Given:** Valid email and password\n**When:** User submits registration\n**Then:** Account is created, verification email is sent\n\\`\\`\\`\n\n## Full Format\n\nBest for: Complete documentation, implementation reference.\n\nIncludes everything:\n- All metadata\n- JSON schemas for I/O\n- Error definitions\n- Policy (auth, rate limits, PII)\n- Events emitted\n- Examples\n- Transport configuration\n\n## Prompt Format\n\nBest for: Feeding directly to coding agents.\n\nIncludes:\n- Task header with clear instructions\n- Full spec context\n- Implementation requirements\n- Task-specific guidance (implement/test/refactor/review)\n- Expected output format\n\nThe prompt format adapts based on task type:\n- **implement**: Full implementation with tests\n- **test**: Test generation for existing code\n- **refactor**: Refactoring while maintaining behavior\n- **review**: Code review against spec\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.agent-adapters\",\n\t\ttitle: \"Agent Adapters\",\n\t\tsummary: \"Adapters for different AI coding agents (Claude, Cursor, MCP).\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/agent-adapters\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"agents\",\n\t\t\t\"claude\",\n\t\t\t\"cursor\",\n\t\t\t\"mcp\"\n\t\t],\n\t\tbody: `# Agent Adapters\n\nContractSpec provides specialized adapters for different AI coding agents.\n\n## Claude Code Adapter\n\nOptimized for Anthropic Claude's extended thinking and code generation.\n\nFeatures:\n- Structured markdown with clear sections\n- Checklists for steps and verification\n- Icons for file operations (📝 create, ✏️ modify)\n- System prompt for ContractSpec context\n\nUsage:\n\\`\\`\\`typescript\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst result = guideService.generateGuide(spec, { agent: 'claude-code' });\n// result.prompt.systemPrompt - Claude system context\n// result.prompt.taskPrompt - Task-specific instructions\n\\`\\`\\`\n\n## Cursor CLI Adapter\n\nOptimized for Cursor's background/composer mode.\n\nFeatures:\n- Compact format for context efficiency\n- .mdc cursor rules generation\n- Integration with Cursor's file system\n- Concise step lists\n\nGenerate Cursor Rules:\n\\`\\`\\`typescript\nconst cursorRules = guideService.generateAgentConfig(spec, 'cursor-cli');\n// Save to .cursor/rules/my-spec.mdc\n\\`\\`\\`\n\n## Generic MCP Adapter\n\nWorks with any MCP-compatible agent (Cline, Aider, etc.).\n\nFeatures:\n- Standard markdown format\n- Table-based metadata\n- JSON resource format support\n- Prompt message format\n\nThe generic adapter is the default and works across all agents.\n\n## Choosing an Adapter\n\n| Agent | Best For | Key Features |\n|-------|----------|--------------|\n| Claude Code | Complex implementations | Extended thinking, detailed steps |\n| Cursor CLI | IDE-integrated work | Cursor rules, compact format |\n| Generic MCP | Any MCP agent | Universal compatibility |\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.verification\",\n\t\ttitle: \"Implementation Verification\",\n\t\tsummary: \"Tiered verification of implementations against specifications.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/verification\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"verify\",\n\t\t\t\"validation\",\n\t\t\t\"testing\"\n\t\t],\n\t\tbody: `# Implementation Verification\n\nContractSpec provides tiered verification to check if implementations comply with specs.\n\n## Verification Tiers\n\n### Tier 1: Structure (Fast)\n\nChecks TypeScript structure against spec requirements:\n\n| Check | What it validates |\n|-------|------------------|\n| Handler export | Function is properly exported |\n| Contracts import | Imports from @lssm/lib.contracts |\n| Schema import | Imports from @lssm/lib.schema |\n| No \\`any\\` type | TypeScript strict compliance |\n| Error handling | Error codes are referenced |\n| Event emission | Event patterns exist |\n| Input validation | Validation patterns used |\n| Async patterns | Async/await for commands |\n\n### Tier 2: Behavior (Comprehensive)\n\nChecks implementation coverage of spec behaviors:\n\n| Check | What it validates |\n|-------|------------------|\n| Scenario coverage | Acceptance scenarios implemented |\n| Example coverage | Example I/O values referenced |\n| Error cases | All error conditions handled |\n| Event conditions | Events emitted correctly |\n| Idempotency | Idempotent patterns (if required) |\n\n### Tier 3: AI Review (Deep)\n\nUses LLM for semantic analysis:\n\n- Does the implementation fulfill the spec's intent?\n- Are edge cases properly handled?\n- Is the code quality acceptable?\n- Are there any subtle violations?\n\nRequires AI API key configuration.\n\n## Running Verification\n\n\\`\\`\\`typescript\nconst verifyService = createVerifyService({\n aiApiKey: process.env.ANTHROPIC_API_KEY, // Optional, for Tier 3\n aiProvider: 'anthropic',\n});\n\nconst result = await verifyService.verify(spec, implementationCode, {\n tiers: ['structure', 'behavior'],\n failFast: false,\n includeSuggestions: true,\n});\n\nconsole.log(result.passed); // true/false\nconsole.log(result.score); // 0-100\nconsole.log(result.summary); // Human-readable summary\n\\`\\`\\`\n\n## Verification Report\n\nThe report includes:\n\n- **passed**: Overall compliance\n- **score**: 0-100 score\n- **issues**: Array of problems found\n- **suggestions**: Recommended fixes\n- **coverage**: Metrics on scenario/error/field coverage\n\nEach issue has:\n- **severity**: error, warning, or info\n- **category**: type, export, import, scenario, error_handling, semantic\n- **message**: Description of the issue\n- **suggestion**: How to fix it\n`\n\t}\n];\nregisterDocBlocks(tech_llm_integration_DocBlocks);\n\n//#endregion\n//# sourceMappingURL=llm-integration.docblock.js.map"],"mappings":";;;AAkWA,kBA/VuC;CACtC;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EN;CACD,CACgD"}
@@ -88,11 +88,11 @@ llm.verify { specPath: "path/to/my.spec.ts", implementationPath: "path/to/impl.t
88
88
  ### Programmatic Usage
89
89
 
90
90
  \`\`\`typescript
91
- import { specToFullMarkdown, specToAgentPrompt } from '@lssm/lib.contracts/llm';
91
+ import { operationSpecToFullMarkdown, operationSpecToAgentPrompt } from '@lssm/lib.contracts/llm';
92
92
  import { createAgentGuideService, createVerifyService } from '@lssm/bundle.contractspec-workspace';
93
93
 
94
94
  // Export
95
- const markdown = specToFullMarkdown(mySpec);
95
+ const markdown = operationSpecToFullMarkdown(mySpec);
96
96
 
97
97
  // Generate guide
98
98
  const guideService = createAgentGuideService({ defaultAgent: 'claude-code' });
@@ -1 +1 @@
1
- {"version":3,"file":"llm-integration.docblock.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region src/docs/tech/llm/llm-integration.docblock.ts\nconst tech_llm_integration_DocBlocks = [\n\t{\n\t\tid: \"docs.tech.llm.overview\",\n\t\ttitle: \"LLM Integration Overview\",\n\t\tsummary: \"Export specs to LLM-friendly formats, generate implementation guides, and verify implementations.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/overview\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"ai\",\n\t\t\t\"export\",\n\t\t\t\"guide\",\n\t\t\t\"verify\"\n\t\t],\n\t\tbody: `# LLM Integration\n\nContractSpec provides first-class LLM integration to bridge specifications and AI coding agents.\n\n## Core Features\n\n### 1. Multi-Format Export\n\nExport specs to markdown in formats optimized for LLM consumption:\n\n- **Context format**: Summary for understanding (goal, context, acceptance criteria)\n- **Full format**: Complete spec with all details (I/O schemas, policy, events)\n- **Prompt format**: Actionable prompt with implementation instructions\n\n### 2. Implementation Guidance\n\nGenerate agent-specific implementation plans:\n\n- **Claude Code**: Extended thinking mode with structured prompts\n- **Cursor CLI**: Background/composer mode with .mdc rules generation\n- **Generic MCP**: Standard format for any MCP-compatible agent\n\n### 3. Tiered Verification\n\nVerify implementations against specs:\n\n- **Tier 1 (Structure)**: Types, exports, imports validation\n- **Tier 2 (Behavior)**: Scenario coverage, error handling, events\n- **Tier 3 (AI Review)**: Semantic compliance analysis via LLM\n\n## Access Points\n\n| Surface | Commands/Tools |\n|---------|---------------|\n| CLI | \\`contractspec llm export\\`, \\`guide\\`, \\`verify\\`, \\`copy\\` |\n| MCP | \\`llm.export\\`, \\`llm.guide\\`, \\`llm.verify\\` tools |\n| VSCode | Export to LLM, Generate Guide, Verify, Copy commands |\n\n## Quick Start\n\n### CLI Usage\n\n\\`\\`\\`bash\n# Export spec as markdown\ncontractspec llm export path/to/my.spec.ts --format full\n\n# Generate implementation guide\ncontractspec llm guide path/to/my.spec.ts --agent claude-code\n\n# Verify implementation\ncontractspec llm verify path/to/my.spec.ts path/to/impl.ts --tier 2\n\n# Copy spec to clipboard\ncontractspec llm copy path/to/my.spec.ts --format context\n\\`\\`\\`\n\n### MCP Usage\n\n\\`\\`\\`\n# Export spec\nllm.export { specPath: \"path/to/my.spec.ts\", format: \"full\" }\n\n# Generate guide\nllm.guide { specPath: \"path/to/my.spec.ts\", agent: \"cursor-cli\" }\n\n# Verify implementation\nllm.verify { specPath: \"path/to/my.spec.ts\", implementationPath: \"path/to/impl.ts\", tier: \"2\" }\n\\`\\`\\`\n\n### Programmatic Usage\n\n\\`\\`\\`typescript\nimport { specToFullMarkdown, specToAgentPrompt } from '@lssm/lib.contracts/llm';\nimport { createAgentGuideService, createVerifyService } from '@lssm/bundle.contractspec-workspace';\n\n// Export\nconst markdown = specToFullMarkdown(mySpec);\n\n// Generate guide\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst guide = guideService.generateGuide(mySpec);\n\n// Verify\nconst verifyService = createVerifyService();\nconst result = await verifyService.verify(mySpec, implementationCode, {\n tiers: ['structure', 'behavior']\n});\n\\`\\`\\`\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.export-formats\",\n\t\ttitle: \"LLM Export Formats\",\n\t\tsummary: \"Detailed explanation of the three export formats for LLM consumption.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/export-formats\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"export\",\n\t\t\t\"markdown\"\n\t\t],\n\t\tbody: `# LLM Export Formats\n\nContractSpec provides three export formats optimized for different LLM use cases.\n\n## Context Format\n\nBest for: Understanding what a spec does, providing background to LLMs.\n\nIncludes:\n- Spec name, version, type\n- Goal and context\n- Description\n- Acceptance scenarios\n\nExample:\n\n\\`\\`\\`markdown\n# users.createUser (v1)\n\n> Create a new user account with email verification.\n\n**Type:** command | **Stability:** stable\n\n## Goal\nCreate a new user in the system and trigger email verification.\n\n## Context\nPart of the user onboarding flow. Called after signup form submission.\n\n## Acceptance Criteria\n### Happy path\n**Given:** Valid email and password\n**When:** User submits registration\n**Then:** Account is created, verification email is sent\n\\`\\`\\`\n\n## Full Format\n\nBest for: Complete documentation, implementation reference.\n\nIncludes everything:\n- All metadata\n- JSON schemas for I/O\n- Error definitions\n- Policy (auth, rate limits, PII)\n- Events emitted\n- Examples\n- Transport configuration\n\n## Prompt Format\n\nBest for: Feeding directly to coding agents.\n\nIncludes:\n- Task header with clear instructions\n- Full spec context\n- Implementation requirements\n- Task-specific guidance (implement/test/refactor/review)\n- Expected output format\n\nThe prompt format adapts based on task type:\n- **implement**: Full implementation with tests\n- **test**: Test generation for existing code\n- **refactor**: Refactoring while maintaining behavior\n- **review**: Code review against spec\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.agent-adapters\",\n\t\ttitle: \"Agent Adapters\",\n\t\tsummary: \"Adapters for different AI coding agents (Claude, Cursor, MCP).\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/agent-adapters\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"agents\",\n\t\t\t\"claude\",\n\t\t\t\"cursor\",\n\t\t\t\"mcp\"\n\t\t],\n\t\tbody: `# Agent Adapters\n\nContractSpec provides specialized adapters for different AI coding agents.\n\n## Claude Code Adapter\n\nOptimized for Anthropic Claude's extended thinking and code generation.\n\nFeatures:\n- Structured markdown with clear sections\n- Checklists for steps and verification\n- Icons for file operations (📝 create, ✏️ modify)\n- System prompt for ContractSpec context\n\nUsage:\n\\`\\`\\`typescript\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst result = guideService.generateGuide(spec, { agent: 'claude-code' });\n// result.prompt.systemPrompt - Claude system context\n// result.prompt.taskPrompt - Task-specific instructions\n\\`\\`\\`\n\n## Cursor CLI Adapter\n\nOptimized for Cursor's background/composer mode.\n\nFeatures:\n- Compact format for context efficiency\n- .mdc cursor rules generation\n- Integration with Cursor's file system\n- Concise step lists\n\nGenerate Cursor Rules:\n\\`\\`\\`typescript\nconst cursorRules = guideService.generateAgentConfig(spec, 'cursor-cli');\n// Save to .cursor/rules/my-spec.mdc\n\\`\\`\\`\n\n## Generic MCP Adapter\n\nWorks with any MCP-compatible agent (Cline, Aider, etc.).\n\nFeatures:\n- Standard markdown format\n- Table-based metadata\n- JSON resource format support\n- Prompt message format\n\nThe generic adapter is the default and works across all agents.\n\n## Choosing an Adapter\n\n| Agent | Best For | Key Features |\n|-------|----------|--------------|\n| Claude Code | Complex implementations | Extended thinking, detailed steps |\n| Cursor CLI | IDE-integrated work | Cursor rules, compact format |\n| Generic MCP | Any MCP agent | Universal compatibility |\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.verification\",\n\t\ttitle: \"Implementation Verification\",\n\t\tsummary: \"Tiered verification of implementations against specifications.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/verification\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"verify\",\n\t\t\t\"validation\",\n\t\t\t\"testing\"\n\t\t],\n\t\tbody: `# Implementation Verification\n\nContractSpec provides tiered verification to check if implementations comply with specs.\n\n## Verification Tiers\n\n### Tier 1: Structure (Fast)\n\nChecks TypeScript structure against spec requirements:\n\n| Check | What it validates |\n|-------|------------------|\n| Handler export | Function is properly exported |\n| Contracts import | Imports from @lssm/lib.contracts |\n| Schema import | Imports from @lssm/lib.schema |\n| No \\`any\\` type | TypeScript strict compliance |\n| Error handling | Error codes are referenced |\n| Event emission | Event patterns exist |\n| Input validation | Validation patterns used |\n| Async patterns | Async/await for commands |\n\n### Tier 2: Behavior (Comprehensive)\n\nChecks implementation coverage of spec behaviors:\n\n| Check | What it validates |\n|-------|------------------|\n| Scenario coverage | Acceptance scenarios implemented |\n| Example coverage | Example I/O values referenced |\n| Error cases | All error conditions handled |\n| Event conditions | Events emitted correctly |\n| Idempotency | Idempotent patterns (if required) |\n\n### Tier 3: AI Review (Deep)\n\nUses LLM for semantic analysis:\n\n- Does the implementation fulfill the spec's intent?\n- Are edge cases properly handled?\n- Is the code quality acceptable?\n- Are there any subtle violations?\n\nRequires AI API key configuration.\n\n## Running Verification\n\n\\`\\`\\`typescript\nconst verifyService = createVerifyService({\n aiApiKey: process.env.ANTHROPIC_API_KEY, // Optional, for Tier 3\n aiProvider: 'anthropic',\n});\n\nconst result = await verifyService.verify(spec, implementationCode, {\n tiers: ['structure', 'behavior'],\n failFast: false,\n includeSuggestions: true,\n});\n\nconsole.log(result.passed); // true/false\nconsole.log(result.score); // 0-100\nconsole.log(result.summary); // Human-readable summary\n\\`\\`\\`\n\n## Verification Report\n\nThe report includes:\n\n- **passed**: Overall compliance\n- **score**: 0-100 score\n- **issues**: Array of problems found\n- **suggestions**: Recommended fixes\n- **coverage**: Metrics on scenario/error/field coverage\n\nEach issue has:\n- **severity**: error, warning, or info\n- **category**: type, export, import, scenario, error_handling, semantic\n- **message**: Description of the issue\n- **suggestion**: How to fix it\n`\n\t}\n];\nregisterDocBlocks(tech_llm_integration_DocBlocks);\n\n//#endregion\nexport { tech_llm_integration_DocBlocks };"],"mappings":";;;AAGA,MAAM,iCAAiC;CACtC;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EN;CACD;AACD,kBAAkB,+BAA+B"}
1
+ {"version":3,"file":"llm-integration.docblock.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region src/docs/tech/llm/llm-integration.docblock.ts\nconst tech_llm_integration_DocBlocks = [\n\t{\n\t\tid: \"docs.tech.llm.overview\",\n\t\ttitle: \"LLM Integration Overview\",\n\t\tsummary: \"Export specs to LLM-friendly formats, generate implementation guides, and verify implementations.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/overview\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"ai\",\n\t\t\t\"export\",\n\t\t\t\"guide\",\n\t\t\t\"verify\"\n\t\t],\n\t\tbody: `# LLM Integration\n\nContractSpec provides first-class LLM integration to bridge specifications and AI coding agents.\n\n## Core Features\n\n### 1. Multi-Format Export\n\nExport specs to markdown in formats optimized for LLM consumption:\n\n- **Context format**: Summary for understanding (goal, context, acceptance criteria)\n- **Full format**: Complete spec with all details (I/O schemas, policy, events)\n- **Prompt format**: Actionable prompt with implementation instructions\n\n### 2. Implementation Guidance\n\nGenerate agent-specific implementation plans:\n\n- **Claude Code**: Extended thinking mode with structured prompts\n- **Cursor CLI**: Background/composer mode with .mdc rules generation\n- **Generic MCP**: Standard format for any MCP-compatible agent\n\n### 3. Tiered Verification\n\nVerify implementations against specs:\n\n- **Tier 1 (Structure)**: Types, exports, imports validation\n- **Tier 2 (Behavior)**: Scenario coverage, error handling, events\n- **Tier 3 (AI Review)**: Semantic compliance analysis via LLM\n\n## Access Points\n\n| Surface | Commands/Tools |\n|---------|---------------|\n| CLI | \\`contractspec llm export\\`, \\`guide\\`, \\`verify\\`, \\`copy\\` |\n| MCP | \\`llm.export\\`, \\`llm.guide\\`, \\`llm.verify\\` tools |\n| VSCode | Export to LLM, Generate Guide, Verify, Copy commands |\n\n## Quick Start\n\n### CLI Usage\n\n\\`\\`\\`bash\n# Export spec as markdown\ncontractspec llm export path/to/my.spec.ts --format full\n\n# Generate implementation guide\ncontractspec llm guide path/to/my.spec.ts --agent claude-code\n\n# Verify implementation\ncontractspec llm verify path/to/my.spec.ts path/to/impl.ts --tier 2\n\n# Copy spec to clipboard\ncontractspec llm copy path/to/my.spec.ts --format context\n\\`\\`\\`\n\n### MCP Usage\n\n\\`\\`\\`\n# Export spec\nllm.export { specPath: \"path/to/my.spec.ts\", format: \"full\" }\n\n# Generate guide\nllm.guide { specPath: \"path/to/my.spec.ts\", agent: \"cursor-cli\" }\n\n# Verify implementation\nllm.verify { specPath: \"path/to/my.spec.ts\", implementationPath: \"path/to/impl.ts\", tier: \"2\" }\n\\`\\`\\`\n\n### Programmatic Usage\n\n\\`\\`\\`typescript\nimport { operationSpecToFullMarkdown, operationSpecToAgentPrompt } from '@lssm/lib.contracts/llm';\nimport { createAgentGuideService, createVerifyService } from '@lssm/bundle.contractspec-workspace';\n\n// Export\nconst markdown = operationSpecToFullMarkdown(mySpec);\n\n// Generate guide\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst guide = guideService.generateGuide(mySpec);\n\n// Verify\nconst verifyService = createVerifyService();\nconst result = await verifyService.verify(mySpec, implementationCode, {\n tiers: ['structure', 'behavior']\n});\n\\`\\`\\`\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.export-formats\",\n\t\ttitle: \"LLM Export Formats\",\n\t\tsummary: \"Detailed explanation of the three export formats for LLM consumption.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/export-formats\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"export\",\n\t\t\t\"markdown\"\n\t\t],\n\t\tbody: `# LLM Export Formats\n\nContractSpec provides three export formats optimized for different LLM use cases.\n\n## Context Format\n\nBest for: Understanding what a spec does, providing background to LLMs.\n\nIncludes:\n- Spec name, version, type\n- Goal and context\n- Description\n- Acceptance scenarios\n\nExample:\n\n\\`\\`\\`markdown\n# users.createUser (v1)\n\n> Create a new user account with email verification.\n\n**Type:** command | **Stability:** stable\n\n## Goal\nCreate a new user in the system and trigger email verification.\n\n## Context\nPart of the user onboarding flow. Called after signup form submission.\n\n## Acceptance Criteria\n### Happy path\n**Given:** Valid email and password\n**When:** User submits registration\n**Then:** Account is created, verification email is sent\n\\`\\`\\`\n\n## Full Format\n\nBest for: Complete documentation, implementation reference.\n\nIncludes everything:\n- All metadata\n- JSON schemas for I/O\n- Error definitions\n- Policy (auth, rate limits, PII)\n- Events emitted\n- Examples\n- Transport configuration\n\n## Prompt Format\n\nBest for: Feeding directly to coding agents.\n\nIncludes:\n- Task header with clear instructions\n- Full spec context\n- Implementation requirements\n- Task-specific guidance (implement/test/refactor/review)\n- Expected output format\n\nThe prompt format adapts based on task type:\n- **implement**: Full implementation with tests\n- **test**: Test generation for existing code\n- **refactor**: Refactoring while maintaining behavior\n- **review**: Code review against spec\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.agent-adapters\",\n\t\ttitle: \"Agent Adapters\",\n\t\tsummary: \"Adapters for different AI coding agents (Claude, Cursor, MCP).\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/agent-adapters\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"agents\",\n\t\t\t\"claude\",\n\t\t\t\"cursor\",\n\t\t\t\"mcp\"\n\t\t],\n\t\tbody: `# Agent Adapters\n\nContractSpec provides specialized adapters for different AI coding agents.\n\n## Claude Code Adapter\n\nOptimized for Anthropic Claude's extended thinking and code generation.\n\nFeatures:\n- Structured markdown with clear sections\n- Checklists for steps and verification\n- Icons for file operations (📝 create, ✏️ modify)\n- System prompt for ContractSpec context\n\nUsage:\n\\`\\`\\`typescript\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst result = guideService.generateGuide(spec, { agent: 'claude-code' });\n// result.prompt.systemPrompt - Claude system context\n// result.prompt.taskPrompt - Task-specific instructions\n\\`\\`\\`\n\n## Cursor CLI Adapter\n\nOptimized for Cursor's background/composer mode.\n\nFeatures:\n- Compact format for context efficiency\n- .mdc cursor rules generation\n- Integration with Cursor's file system\n- Concise step lists\n\nGenerate Cursor Rules:\n\\`\\`\\`typescript\nconst cursorRules = guideService.generateAgentConfig(spec, 'cursor-cli');\n// Save to .cursor/rules/my-spec.mdc\n\\`\\`\\`\n\n## Generic MCP Adapter\n\nWorks with any MCP-compatible agent (Cline, Aider, etc.).\n\nFeatures:\n- Standard markdown format\n- Table-based metadata\n- JSON resource format support\n- Prompt message format\n\nThe generic adapter is the default and works across all agents.\n\n## Choosing an Adapter\n\n| Agent | Best For | Key Features |\n|-------|----------|--------------|\n| Claude Code | Complex implementations | Extended thinking, detailed steps |\n| Cursor CLI | IDE-integrated work | Cursor rules, compact format |\n| Generic MCP | Any MCP agent | Universal compatibility |\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.verification\",\n\t\ttitle: \"Implementation Verification\",\n\t\tsummary: \"Tiered verification of implementations against specifications.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/verification\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"verify\",\n\t\t\t\"validation\",\n\t\t\t\"testing\"\n\t\t],\n\t\tbody: `# Implementation Verification\n\nContractSpec provides tiered verification to check if implementations comply with specs.\n\n## Verification Tiers\n\n### Tier 1: Structure (Fast)\n\nChecks TypeScript structure against spec requirements:\n\n| Check | What it validates |\n|-------|------------------|\n| Handler export | Function is properly exported |\n| Contracts import | Imports from @lssm/lib.contracts |\n| Schema import | Imports from @lssm/lib.schema |\n| No \\`any\\` type | TypeScript strict compliance |\n| Error handling | Error codes are referenced |\n| Event emission | Event patterns exist |\n| Input validation | Validation patterns used |\n| Async patterns | Async/await for commands |\n\n### Tier 2: Behavior (Comprehensive)\n\nChecks implementation coverage of spec behaviors:\n\n| Check | What it validates |\n|-------|------------------|\n| Scenario coverage | Acceptance scenarios implemented |\n| Example coverage | Example I/O values referenced |\n| Error cases | All error conditions handled |\n| Event conditions | Events emitted correctly |\n| Idempotency | Idempotent patterns (if required) |\n\n### Tier 3: AI Review (Deep)\n\nUses LLM for semantic analysis:\n\n- Does the implementation fulfill the spec's intent?\n- Are edge cases properly handled?\n- Is the code quality acceptable?\n- Are there any subtle violations?\n\nRequires AI API key configuration.\n\n## Running Verification\n\n\\`\\`\\`typescript\nconst verifyService = createVerifyService({\n aiApiKey: process.env.ANTHROPIC_API_KEY, // Optional, for Tier 3\n aiProvider: 'anthropic',\n});\n\nconst result = await verifyService.verify(spec, implementationCode, {\n tiers: ['structure', 'behavior'],\n failFast: false,\n includeSuggestions: true,\n});\n\nconsole.log(result.passed); // true/false\nconsole.log(result.score); // 0-100\nconsole.log(result.summary); // Human-readable summary\n\\`\\`\\`\n\n## Verification Report\n\nThe report includes:\n\n- **passed**: Overall compliance\n- **score**: 0-100 score\n- **issues**: Array of problems found\n- **suggestions**: Recommended fixes\n- **coverage**: Metrics on scenario/error/field coverage\n\nEach issue has:\n- **severity**: error, warning, or info\n- **category**: type, export, import, scenario, error_handling, semantic\n- **message**: Description of the issue\n- **suggestion**: How to fix it\n`\n\t}\n];\nregisterDocBlocks(tech_llm_integration_DocBlocks);\n\n//#endregion\nexport { tech_llm_integration_DocBlocks };"],"mappings":";;;AAGA,MAAM,iCAAiC;CACtC;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EN;CACD;AACD,kBAAkB,+BAA+B"}
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
2
  import { LearningViewProps } from "@lssm/example.learning-journey-ui-shared";
3
3
 
4
4
  //#region src/views/Progress.d.ts
5
5
  declare function ProgressView({
6
6
  track,
7
7
  progress
8
- }: LearningViewProps): react_jsx_runtime5.JSX.Element;
8
+ }: LearningViewProps): react_jsx_runtime3.JSX.Element;
9
9
  //#endregion
10
10
  export { ProgressView as Progress, ProgressView };
11
11
  //# sourceMappingURL=Progress.d.ts.map