@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
@@ -0,0 +1,55 @@
1
+ $ tsdown
2
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
3
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/policy-safe-knowledge-assistant/tsdown.config.js
4
+ ℹ entry: src/example.ts, src/index.ts, src/policy-safe-knowledge-assistant.feature.ts, src/handlers/index.ts, src/handlers/policy-safe-knowledge-assistant.handlers.ts, src/orchestrator/buildAnswer.ts, src/seed/fixtures.ts, src/seed/index.ts, src/seeders/index.ts, src/ui/PolicySafeKnowledgeAssistantDashboard.tsx, src/ui/index.ts, src/docs/index.ts, src/docs/policy-safe-knowledge-assistant.docblock.ts, src/ui/hooks/usePolicySafeKnowledgeAssistant.ts
5
+ ℹ target: esnext
6
+ ℹ tsconfig: tsconfig.json
7
+ ℹ Build start
8
+ ℹ Cleaning 52 files
9
+ ℹ dist/handlers/policy-safe-knowledge-assistant.handlers.js  9.46 kB │ gzip: 2.58 kB
10
+ ℹ dist/ui/PolicySafeKnowledgeAssistantDashboard.js  8.14 kB │ gzip: 2.11 kB
11
+ ℹ dist/ui/hooks/usePolicySafeKnowledgeAssistant.js  4.78 kB │ gzip: 1.47 kB
12
+ ℹ dist/policy-safe-knowledge-assistant.feature.js  2.55 kB │ gzip: 0.71 kB
13
+ ℹ dist/orchestrator/buildAnswer.js  2.47 kB │ gzip: 0.93 kB
14
+ ℹ dist/docs/policy-safe-knowledge-assistant.docblock.js  1.88 kB │ gzip: 0.90 kB
15
+ ℹ dist/example.js  1.24 kB │ gzip: 0.59 kB
16
+ ℹ dist/seed/fixtures.js  0.80 kB │ gzip: 0.40 kB
17
+ ℹ dist/index.js  0.73 kB │ gzip: 0.26 kB
18
+ ℹ dist/seeders/index.js  0.54 kB │ gzip: 0.38 kB
19
+ ℹ dist/handlers/index.js  0.16 kB │ gzip: 0.11 kB
20
+ ℹ dist/ui/index.js  0.15 kB │ gzip: 0.09 kB
21
+ ℹ dist/seed/index.js  0.07 kB │ gzip: 0.07 kB
22
+ ℹ dist/docs/index.js  0.06 kB │ gzip: 0.08 kB
23
+ ℹ dist/handlers/policy-safe-knowledge-assistant.handlers.js.map 20.30 kB │ gzip: 5.31 kB
24
+ ℹ dist/ui/PolicySafeKnowledgeAssistantDashboard.js.map 10.46 kB │ gzip: 3.10 kB
25
+ ℹ dist/ui/hooks/usePolicySafeKnowledgeAssistant.js.map  9.84 kB │ gzip: 2.85 kB
26
+ ℹ dist/orchestrator/buildAnswer.js.map  5.05 kB │ gzip: 1.68 kB
27
+ ℹ dist/policy-safe-knowledge-assistant.feature.js.map  3.71 kB │ gzip: 1.05 kB
28
+ ℹ dist/docs/policy-safe-knowledge-assistant.docblock.js.map  2.38 kB │ gzip: 1.08 kB
29
+ ℹ dist/example.js.map  1.71 kB │ gzip: 0.80 kB
30
+ ℹ dist/seed/fixtures.js.map  1.29 kB │ gzip: 0.55 kB
31
+ ℹ dist/handlers/policy-safe-knowledge-assistant.handlers.d.ts.map  0.94 kB │ gzip: 0.44 kB
32
+ ℹ dist/seeders/index.js.map  0.93 kB │ gzip: 0.61 kB
33
+ ℹ dist/ui/hooks/usePolicySafeKnowledgeAssistant.d.ts.map  0.50 kB │ gzip: 0.29 kB
34
+ ℹ dist/orchestrator/buildAnswer.d.ts.map  0.39 kB │ gzip: 0.25 kB
35
+ ℹ dist/ui/PolicySafeKnowledgeAssistantDashboard.d.ts.map  0.23 kB │ gzip: 0.17 kB
36
+ ℹ dist/seed/fixtures.d.ts.map  0.20 kB │ gzip: 0.15 kB
37
+ ℹ dist/policy-safe-knowledge-assistant.feature.d.ts.map  0.20 kB │ gzip: 0.16 kB
38
+ ℹ dist/seeders/index.d.ts.map  0.16 kB │ gzip: 0.14 kB
39
+ ℹ dist/example.d.ts.map  0.14 kB │ gzip: 0.13 kB
40
+ ℹ dist/handlers/policy-safe-knowledge-assistant.handlers.d.ts  3.21 kB │ gzip: 0.86 kB
41
+ ℹ dist/ui/hooks/usePolicySafeKnowledgeAssistant.d.ts  1.64 kB │ gzip: 0.58 kB
42
+ ℹ dist/orchestrator/buildAnswer.d.ts  1.31 kB │ gzip: 0.57 kB
43
+ ℹ dist/seed/fixtures.d.ts  1.03 kB │ gzip: 0.37 kB
44
+ ℹ dist/index.d.ts  0.83 kB │ gzip: 0.27 kB
45
+ ℹ dist/policy-safe-knowledge-assistant.feature.d.ts  0.37 kB │ gzip: 0.20 kB
46
+ ℹ dist/ui/PolicySafeKnowledgeAssistantDashboard.d.ts  0.34 kB │ gzip: 0.20 kB
47
+ ℹ dist/seeders/index.d.ts  0.30 kB │ gzip: 0.23 kB
48
+ ℹ dist/example.d.ts  0.25 kB │ gzip: 0.17 kB
49
+ ℹ dist/handlers/index.d.ts  0.24 kB │ gzip: 0.12 kB
50
+ ℹ dist/ui/index.d.ts  0.15 kB │ gzip: 0.09 kB
51
+ ℹ dist/seed/index.d.ts  0.07 kB │ gzip: 0.07 kB
52
+ ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
53
+ ℹ dist/docs/policy-safe-knowledge-assistant.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
54
+ ℹ 45 files, total: 101.22 kB
55
+ ✔ Build complete in 27086ms
@@ -0,0 +1,56 @@
1
+ $ bun build:types && bun build:bundle
2
+ $ tsc --noEmit
3
+ $ tsdown
4
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
5
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/policy-safe-knowledge-assistant/tsdown.config.js
6
+ ℹ entry: src/example.ts, src/index.ts, src/policy-safe-knowledge-assistant.feature.ts, src/docs/index.ts, src/docs/policy-safe-knowledge-assistant.docblock.ts, src/handlers/index.ts, src/handlers/policy-safe-knowledge-assistant.handlers.ts, src/orchestrator/buildAnswer.ts, src/seed/fixtures.ts, src/seed/index.ts, src/seeders/index.ts, src/ui/PolicySafeKnowledgeAssistantDashboard.tsx, src/ui/index.ts, src/ui/hooks/usePolicySafeKnowledgeAssistant.ts
7
+ ℹ target: esnext
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ dist/handlers/policy-safe-knowledge-assistant.handlers.js  9.46 kB │ gzip: 2.58 kB
11
+ ℹ dist/ui/PolicySafeKnowledgeAssistantDashboard.js  8.14 kB │ gzip: 2.11 kB
12
+ ℹ dist/ui/hooks/usePolicySafeKnowledgeAssistant.js  4.78 kB │ gzip: 1.47 kB
13
+ ℹ dist/policy-safe-knowledge-assistant.feature.js  2.55 kB │ gzip: 0.71 kB
14
+ ℹ dist/orchestrator/buildAnswer.js  2.47 kB │ gzip: 0.93 kB
15
+ ℹ dist/docs/policy-safe-knowledge-assistant.docblock.js  1.88 kB │ gzip: 0.90 kB
16
+ ℹ dist/example.js  1.24 kB │ gzip: 0.59 kB
17
+ ℹ dist/seed/fixtures.js  0.80 kB │ gzip: 0.40 kB
18
+ ℹ dist/index.js  0.73 kB │ gzip: 0.26 kB
19
+ ℹ dist/seeders/index.js  0.54 kB │ gzip: 0.38 kB
20
+ ℹ dist/handlers/index.js  0.16 kB │ gzip: 0.11 kB
21
+ ℹ dist/ui/index.js  0.15 kB │ gzip: 0.09 kB
22
+ ℹ dist/seed/index.js  0.07 kB │ gzip: 0.07 kB
23
+ ℹ dist/docs/index.js  0.06 kB │ gzip: 0.08 kB
24
+ ℹ dist/handlers/policy-safe-knowledge-assistant.handlers.js.map 20.30 kB │ gzip: 5.31 kB
25
+ ℹ dist/ui/PolicySafeKnowledgeAssistantDashboard.js.map 10.46 kB │ gzip: 3.10 kB
26
+ ℹ dist/ui/hooks/usePolicySafeKnowledgeAssistant.js.map  9.84 kB │ gzip: 2.85 kB
27
+ ℹ dist/orchestrator/buildAnswer.js.map  5.05 kB │ gzip: 1.68 kB
28
+ ℹ dist/policy-safe-knowledge-assistant.feature.js.map  3.71 kB │ gzip: 1.05 kB
29
+ ℹ dist/docs/policy-safe-knowledge-assistant.docblock.js.map  2.38 kB │ gzip: 1.08 kB
30
+ ℹ dist/example.js.map  1.71 kB │ gzip: 0.80 kB
31
+ ℹ dist/seed/fixtures.js.map  1.29 kB │ gzip: 0.55 kB
32
+ ℹ dist/handlers/policy-safe-knowledge-assistant.handlers.d.ts.map  0.94 kB │ gzip: 0.44 kB
33
+ ℹ dist/seeders/index.js.map  0.93 kB │ gzip: 0.61 kB
34
+ ℹ dist/ui/hooks/usePolicySafeKnowledgeAssistant.d.ts.map  0.50 kB │ gzip: 0.29 kB
35
+ ℹ dist/orchestrator/buildAnswer.d.ts.map  0.39 kB │ gzip: 0.25 kB
36
+ ℹ dist/ui/PolicySafeKnowledgeAssistantDashboard.d.ts.map  0.23 kB │ gzip: 0.17 kB
37
+ ℹ dist/seed/fixtures.d.ts.map  0.20 kB │ gzip: 0.15 kB
38
+ ℹ dist/policy-safe-knowledge-assistant.feature.d.ts.map  0.20 kB │ gzip: 0.16 kB
39
+ ℹ dist/seeders/index.d.ts.map  0.16 kB │ gzip: 0.14 kB
40
+ ℹ dist/example.d.ts.map  0.14 kB │ gzip: 0.13 kB
41
+ ℹ dist/handlers/policy-safe-knowledge-assistant.handlers.d.ts  3.21 kB │ gzip: 0.86 kB
42
+ ℹ dist/ui/hooks/usePolicySafeKnowledgeAssistant.d.ts  1.64 kB │ gzip: 0.58 kB
43
+ ℹ dist/orchestrator/buildAnswer.d.ts  1.31 kB │ gzip: 0.57 kB
44
+ ℹ dist/seed/fixtures.d.ts  1.03 kB │ gzip: 0.37 kB
45
+ ℹ dist/index.d.ts  0.83 kB │ gzip: 0.27 kB
46
+ ℹ dist/policy-safe-knowledge-assistant.feature.d.ts  0.37 kB │ gzip: 0.20 kB
47
+ ℹ dist/ui/PolicySafeKnowledgeAssistantDashboard.d.ts  0.34 kB │ gzip: 0.20 kB
48
+ ℹ dist/seeders/index.d.ts  0.30 kB │ gzip: 0.23 kB
49
+ ℹ dist/example.d.ts  0.25 kB │ gzip: 0.17 kB
50
+ ℹ dist/handlers/index.d.ts  0.24 kB │ gzip: 0.12 kB
51
+ ℹ dist/ui/index.d.ts  0.15 kB │ gzip: 0.09 kB
52
+ ℹ dist/seed/index.d.ts  0.07 kB │ gzip: 0.07 kB
53
+ ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
54
+ ℹ dist/docs/policy-safe-knowledge-assistant.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
55
+ ℹ 45 files, total: 101.22 kB
56
+ ✔ Build complete in 29054ms