@lssm/example.versioned-knowledge-base 0.0.0-canary-20251217083314 → 0.0.0-canary-20251219202229

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 (172) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +279 -226
  2. package/.turbo/turbo-build.log +280 -37
  3. package/CHANGELOG.md +3 -3
  4. package/LICENSE +21 -0
  5. package/dist/contracts/kb.d.ts +73 -72
  6. package/dist/contracts/kb.d.ts.map +1 -0
  7. package/dist/contracts/kb.js +27 -28
  8. package/dist/contracts/kb.js.map +1 -0
  9. package/dist/docs/versioned-knowledge-base.docblock.js +2 -1
  10. package/dist/docs/versioned-knowledge-base.docblock.js.map +1 -0
  11. package/dist/entities/models.d.ts +2 -1
  12. package/dist/entities/models.d.ts.map +1 -0
  13. package/dist/entities/models.js +35 -36
  14. package/dist/entities/models.js.map +1 -0
  15. package/dist/events.d.ts +20 -19
  16. package/dist/events.d.ts.map +1 -0
  17. package/dist/events.js +20 -20
  18. package/dist/events.js.map +1 -0
  19. package/dist/example.d.ts +2 -1
  20. package/dist/example.d.ts.map +1 -0
  21. package/dist/example.js +2 -1
  22. package/dist/example.js.map +1 -0
  23. package/dist/handlers/memory.handlers.d.ts +2 -1
  24. package/dist/handlers/memory.handlers.d.ts.map +1 -0
  25. package/dist/handlers/memory.handlers.js +2 -1
  26. package/dist/handlers/memory.handlers.js.map +1 -0
  27. package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
  28. package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
  29. package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
  30. package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
  31. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
  32. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
  33. package/dist/libs/contracts/dist/docs/index.js +2 -6
  34. package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
  35. package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
  36. package/dist/libs/contracts/dist/docs/presentations.js +2 -1
  37. package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
  38. package/dist/libs/contracts/dist/docs/registry.js +2 -1
  39. package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
  40. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
  41. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
  42. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
  43. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
  44. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
  45. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
  46. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
  47. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
  48. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
  49. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
  50. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
  51. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
  52. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
  53. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
  54. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
  55. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
  56. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
  57. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
  58. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
  59. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
  60. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
  61. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
  62. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
  63. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
  64. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
  65. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
  66. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
  67. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
  68. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
  69. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
  70. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
  71. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
  72. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
  73. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
  74. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
  75. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
  76. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
  77. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
  78. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
  79. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
  80. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
  81. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
  82. package/dist/libs/contracts/dist/events.js +2 -1
  83. package/dist/libs/contracts/dist/events.js.map +1 -0
  84. package/dist/libs/contracts/dist/index.js +3 -2
  85. package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
  86. package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
  87. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
  88. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
  89. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
  90. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
  91. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
  92. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
  93. package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
  94. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
  95. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
  96. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
  97. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
  98. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
  99. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
  100. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
  101. package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
  102. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
  103. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
  104. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
  105. package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
  106. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
  107. package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
  108. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
  109. package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
  110. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
  111. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
  112. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
  113. package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
  114. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
  115. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
  116. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
  117. package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
  118. package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
  119. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
  120. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
  121. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
  122. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
  123. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
  124. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
  125. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
  126. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
  127. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
  128. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
  129. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
  130. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
  131. package/dist/libs/contracts/dist/llm/exporters.js +2 -1
  132. package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
  133. package/dist/libs/contracts/dist/onboarding-base.js +22 -23
  134. package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
  135. package/dist/libs/contracts/dist/ownership.js +4 -2
  136. package/dist/libs/contracts/dist/ownership.js.map +1 -0
  137. package/dist/libs/contracts/dist/presentations.v2.js +2 -1
  138. package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
  139. package/dist/libs/contracts/dist/regenerator/service.js +2 -1
  140. package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
  141. package/dist/libs/contracts/dist/schema/dist/index.js +3874 -6
  142. package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
  143. package/dist/libs/contracts/dist/spec.js +2 -1
  144. package/dist/libs/contracts/dist/spec.js.map +1 -0
  145. package/dist/libs/schema/dist/index.js +4684 -6
  146. package/dist/libs/schema/dist/index.js.map +1 -0
  147. package/dist/versioned-knowledge-base.feature.d.ts +2 -1
  148. package/dist/versioned-knowledge-base.feature.d.ts.map +1 -0
  149. package/dist/versioned-knowledge-base.feature.js +2 -1
  150. package/dist/versioned-knowledge-base.feature.js.map +1 -0
  151. package/package.json +8 -7
  152. package/tsconfig.tsbuildinfo +1 -1
  153. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  154. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  155. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  156. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  157. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  158. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  159. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  160. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
  161. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  162. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -39
  163. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  164. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  165. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  166. package/dist/libs/schema/dist/EnumType.js +0 -2
  167. package/dist/libs/schema/dist/FieldType.js +0 -49
  168. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
  169. package/dist/libs/schema/dist/SchemaModel.js +0 -39
  170. package/dist/libs/schema/dist/entity/defineEntity.js +0 -1
  171. package/dist/libs/schema/dist/entity/index.js +0 -2
  172. package/dist/libs/schema/dist/entity/types.js +0 -1
@@ -1,100 +1,98 @@
1
- import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
2
- import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
3
- import "../libs/schema/dist/index.js";
1
+ import { E5, K5 } from "../libs/schema/dist/index.js";
4
2
 
5
3
  //#region src/entities/models.ts
6
- const SourceDocumentModel = defineSchemaModel({
4
+ const SourceDocumentModel = K5({
7
5
  name: "SourceDocument",
8
6
  description: "Immutable raw source document metadata referencing a stored file.",
9
7
  fields: {
10
8
  id: {
11
- type: ScalarTypeEnum.String_unsecure(),
9
+ type: E5.String_unsecure(),
12
10
  isOptional: false
13
11
  },
14
12
  jurisdiction: {
15
- type: ScalarTypeEnum.String_unsecure(),
13
+ type: E5.String_unsecure(),
16
14
  isOptional: false
17
15
  },
18
16
  authority: {
19
- type: ScalarTypeEnum.String_unsecure(),
17
+ type: E5.String_unsecure(),
20
18
  isOptional: false
21
19
  },
22
20
  title: {
23
- type: ScalarTypeEnum.String_unsecure(),
21
+ type: E5.String_unsecure(),
24
22
  isOptional: false
25
23
  },
26
24
  fetchedAt: {
27
- type: ScalarTypeEnum.DateTime(),
25
+ type: E5.DateTime(),
28
26
  isOptional: false
29
27
  },
30
28
  hash: {
31
- type: ScalarTypeEnum.String_unsecure(),
29
+ type: E5.String_unsecure(),
32
30
  isOptional: false
33
31
  },
34
32
  fileId: {
35
- type: ScalarTypeEnum.String_unsecure(),
33
+ type: E5.String_unsecure(),
36
34
  isOptional: false
37
35
  }
38
36
  }
39
37
  });
40
- const SourceRefModel = defineSchemaModel({
38
+ const SourceRefModel = K5({
41
39
  name: "SourceRef",
42
40
  description: "Reference to a source document used to justify a rule version.",
43
41
  fields: {
44
42
  sourceDocumentId: {
45
- type: ScalarTypeEnum.String_unsecure(),
43
+ type: E5.String_unsecure(),
46
44
  isOptional: false
47
45
  },
48
46
  excerpt: {
49
- type: ScalarTypeEnum.String_unsecure(),
47
+ type: E5.String_unsecure(),
50
48
  isOptional: true
51
49
  }
52
50
  }
53
51
  });
54
- const RuleModel = defineSchemaModel({
52
+ const RuleModel = K5({
55
53
  name: "Rule",
56
54
  description: "Curated rule (stable identity) with topic + jurisdiction scope.",
57
55
  fields: {
58
56
  id: {
59
- type: ScalarTypeEnum.String_unsecure(),
57
+ type: E5.String_unsecure(),
60
58
  isOptional: false
61
59
  },
62
60
  jurisdiction: {
63
- type: ScalarTypeEnum.String_unsecure(),
61
+ type: E5.String_unsecure(),
64
62
  isOptional: false
65
63
  },
66
64
  topicKey: {
67
- type: ScalarTypeEnum.String_unsecure(),
65
+ type: E5.String_unsecure(),
68
66
  isOptional: false
69
67
  }
70
68
  }
71
69
  });
72
- const RuleVersionModel = defineSchemaModel({
70
+ const RuleVersionModel = K5({
73
71
  name: "RuleVersion",
74
72
  description: "A versioned rule content with source references and approval status.",
75
73
  fields: {
76
74
  id: {
77
- type: ScalarTypeEnum.String_unsecure(),
75
+ type: E5.String_unsecure(),
78
76
  isOptional: false
79
77
  },
80
78
  ruleId: {
81
- type: ScalarTypeEnum.String_unsecure(),
79
+ type: E5.String_unsecure(),
82
80
  isOptional: false
83
81
  },
84
82
  jurisdiction: {
85
- type: ScalarTypeEnum.String_unsecure(),
83
+ type: E5.String_unsecure(),
86
84
  isOptional: false
87
85
  },
88
86
  topicKey: {
89
- type: ScalarTypeEnum.String_unsecure(),
87
+ type: E5.String_unsecure(),
90
88
  isOptional: false
91
89
  },
92
90
  version: {
93
- type: ScalarTypeEnum.Int_unsecure(),
91
+ type: E5.Int_unsecure(),
94
92
  isOptional: false
95
93
  },
96
94
  content: {
97
- type: ScalarTypeEnum.String_unsecure(),
95
+ type: E5.String_unsecure(),
98
96
  isOptional: false
99
97
  },
100
98
  sourceRefs: {
@@ -103,50 +101,51 @@ const RuleVersionModel = defineSchemaModel({
103
101
  isOptional: false
104
102
  },
105
103
  status: {
106
- type: ScalarTypeEnum.String_unsecure(),
104
+ type: E5.String_unsecure(),
107
105
  isOptional: false
108
106
  },
109
107
  approvedBy: {
110
- type: ScalarTypeEnum.String_unsecure(),
108
+ type: E5.String_unsecure(),
111
109
  isOptional: true
112
110
  },
113
111
  approvedAt: {
114
- type: ScalarTypeEnum.DateTime(),
112
+ type: E5.DateTime(),
115
113
  isOptional: true
116
114
  },
117
115
  createdAt: {
118
- type: ScalarTypeEnum.DateTime(),
116
+ type: E5.DateTime(),
119
117
  isOptional: false
120
118
  }
121
119
  }
122
120
  });
123
- const KBSnapshotModel = defineSchemaModel({
121
+ const KBSnapshotModel = K5({
124
122
  name: "KBSnapshot",
125
123
  description: "Published KB snapshot (as-of) referencing approved rule versions.",
126
124
  fields: {
127
125
  id: {
128
- type: ScalarTypeEnum.String_unsecure(),
126
+ type: E5.String_unsecure(),
129
127
  isOptional: false
130
128
  },
131
129
  jurisdiction: {
132
- type: ScalarTypeEnum.String_unsecure(),
130
+ type: E5.String_unsecure(),
133
131
  isOptional: false
134
132
  },
135
133
  asOfDate: {
136
- type: ScalarTypeEnum.DateTime(),
134
+ type: E5.DateTime(),
137
135
  isOptional: false
138
136
  },
139
137
  includedRuleVersionIds: {
140
- type: ScalarTypeEnum.String_unsecure(),
138
+ type: E5.String_unsecure(),
141
139
  isArray: true,
142
140
  isOptional: false
143
141
  },
144
142
  publishedAt: {
145
- type: ScalarTypeEnum.DateTime(),
143
+ type: E5.DateTime(),
146
144
  isOptional: false
147
145
  }
148
146
  }
149
147
  });
150
148
 
151
149
  //#endregion
152
- export { KBSnapshotModel, RuleModel, RuleVersionModel, SourceDocumentModel, SourceRefModel };
150
+ export { KBSnapshotModel, RuleModel, RuleVersionModel, SourceDocumentModel, SourceRefModel };
151
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/entities/models.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\n\nexport const SourceDocumentModel = defineSchemaModel({\n name: 'SourceDocument',\n description:\n 'Immutable raw source document metadata referencing a stored file.',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n authority: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fetchedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n hash: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const SourceRefModel = defineSchemaModel({\n name: 'SourceRef',\n description: 'Reference to a source document used to justify a rule version.',\n fields: {\n sourceDocumentId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n excerpt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nexport const RuleModel = defineSchemaModel({\n name: 'Rule',\n description:\n 'Curated rule (stable identity) with topic + jurisdiction scope.',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n topicKey: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const RuleVersionModel = defineSchemaModel({\n name: 'RuleVersion',\n description:\n 'A versioned rule content with source references and approval status.',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n ruleId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n topicKey: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n content: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceRefs: { type: SourceRefModel, isArray: true, isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }, // draft|approved|rejected\n approvedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n approvedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const KBSnapshotModel = defineSchemaModel({\n name: 'KBSnapshot',\n description:\n 'Published KB snapshot (as-of) referencing approved rule versions.',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n asOfDate: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n includedRuleVersionIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: false,\n },\n publishedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n"],"mappings":";;;AAEA,MAAa,sBAAsBA,GAAkB;CACnD,MAAM;CACN,aACE;CACF,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACjE,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE;CACF,CAAC;AAEF,MAAa,iBAAiBD,GAAkB;CAC9C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,kBAAkB;GAChB,MAAMC,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACtE;CACF,CAAC;AAEF,MAAa,YAAYD,GAAkB;CACzC,MAAM;CACN,aACE;CACF,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE;CACF,CAAC;AAEF,MAAa,mBAAmBD,GAAkB;CAChD,MAAM;CACN,aACE;CACF,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,SAAS;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EACnE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,YAAY;GAAE,MAAM;GAAgB,SAAS;GAAM,YAAY;GAAO;EACtE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,YAAY;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACxE,YAAY;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAM;EACjE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,kBAAkBD,GAAkB;CAC/C,MAAM;CACN,aACE;CACF,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAChE,wBAAwB;GACtB,MAAMA,GAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,aAAa;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACpE;CACF,CAAC"}
package/dist/events.d.ts CHANGED
@@ -1,62 +1,63 @@
1
- import * as _lssm_lib_schema68 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts4 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema0 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/events.d.ts
5
- declare const KbSourceIngestedEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema68.SchemaModel<{
5
+ declare const KbSourceIngestedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
6
6
  sourceDocumentId: {
7
- type: _lssm_lib_schema68.FieldType<string, string>;
7
+ type: _lssm_lib_schema0.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  jurisdiction: {
11
- type: _lssm_lib_schema68.FieldType<string, string>;
11
+ type: _lssm_lib_schema0.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  hash: {
15
- type: _lssm_lib_schema68.FieldType<string, string>;
15
+ type: _lssm_lib_schema0.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  }>>;
19
- declare const KbRuleVersionCreatedEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema68.SchemaModel<{
19
+ declare const KbRuleVersionCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
20
20
  ruleVersionId: {
21
- type: _lssm_lib_schema68.FieldType<string, string>;
21
+ type: _lssm_lib_schema0.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  ruleId: {
25
- type: _lssm_lib_schema68.FieldType<string, string>;
25
+ type: _lssm_lib_schema0.FieldType<string, string>;
26
26
  isOptional: false;
27
27
  };
28
28
  jurisdiction: {
29
- type: _lssm_lib_schema68.FieldType<string, string>;
29
+ type: _lssm_lib_schema0.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  status: {
33
- type: _lssm_lib_schema68.FieldType<string, string>;
33
+ type: _lssm_lib_schema0.FieldType<string, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  }>>;
37
- declare const KbRuleVersionApprovedEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema68.SchemaModel<{
37
+ declare const KbRuleVersionApprovedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
38
38
  ruleVersionId: {
39
- type: _lssm_lib_schema68.FieldType<string, string>;
39
+ type: _lssm_lib_schema0.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  approver: {
43
- type: _lssm_lib_schema68.FieldType<string, string>;
43
+ type: _lssm_lib_schema0.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  }>>;
47
- declare const KbSnapshotPublishedEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema68.SchemaModel<{
47
+ declare const KbSnapshotPublishedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
48
48
  snapshotId: {
49
- type: _lssm_lib_schema68.FieldType<string, string>;
49
+ type: _lssm_lib_schema0.FieldType<string, string>;
50
50
  isOptional: false;
51
51
  };
52
52
  jurisdiction: {
53
- type: _lssm_lib_schema68.FieldType<string, string>;
53
+ type: _lssm_lib_schema0.FieldType<string, string>;
54
54
  isOptional: false;
55
55
  };
56
56
  includedRuleVersionsCount: {
57
- type: _lssm_lib_schema68.FieldType<number, number>;
57
+ type: _lssm_lib_schema0.FieldType<number, number>;
58
58
  isOptional: false;
59
59
  };
60
60
  }>>;
61
61
  //#endregion
62
- export { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent };
62
+ export { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent };
63
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAgBa,uBAAqB,oBAAA,CAAA,4BAAA;;UAKhC,iBAAA,CAAA;;EALW,CAAA;EAKX,YAAA,EAAA;;;;EALgC,IAAA,EAAA;IAAA,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAqBrB,UAAA,EAAA,KAAA;EAKX,CAAA;;cALW,2BAAyB,oBAAA,CAAA,4BAAA;;UAKpC,iBAAA,CAAA,SALoC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAmBzB,MAAA,EAAA;IAKX,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;EALqC,YAAA,EAAA;IAAA,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAoB1B,UAAA,EAAA,KAAA;EAKX,CAAA;;;gBALmC,KAAA;EAAA,CAAA;CAAA,CAAA,CAAA;cApBxB,4BAA0B,oBAAA,CAAA,4BAAA;;UAKrC,iBAAA,CAAA;;;;;;;;cAeW,0BAAwB,oBAAA,CAAA,4BAAA;;UAKnC,iBAAA,CAAA"}
package/dist/events.js CHANGED
@@ -1,24 +1,23 @@
1
- import { defineSchemaModel } from "./libs/contracts/dist/schema/dist/SchemaModel.js";
1
+ import { K5 } from "./libs/contracts/dist/schema/dist/index.js";
2
2
  import { defineEvent } from "./libs/contracts/dist/events.js";
3
3
  import "./libs/contracts/dist/index.js";
4
- import { ScalarTypeEnum } from "./libs/schema/dist/ScalarTypeEnum.js";
5
- import "./libs/schema/dist/index.js";
4
+ import { E5 } from "./libs/schema/dist/index.js";
6
5
 
7
6
  //#region src/events.ts
8
- const KbSourceIngestedPayload = defineSchemaModel({
7
+ const KbSourceIngestedPayload = K5({
9
8
  name: "KbSourceIngestedPayload",
10
9
  description: "Emitted when a source document is ingested.",
11
10
  fields: {
12
11
  sourceDocumentId: {
13
- type: ScalarTypeEnum.String_unsecure(),
12
+ type: E5.String_unsecure(),
14
13
  isOptional: false
15
14
  },
16
15
  jurisdiction: {
17
- type: ScalarTypeEnum.String_unsecure(),
16
+ type: E5.String_unsecure(),
18
17
  isOptional: false
19
18
  },
20
19
  hash: {
21
- type: ScalarTypeEnum.String_unsecure(),
20
+ type: E5.String_unsecure(),
22
21
  isOptional: false
23
22
  }
24
23
  }
@@ -29,24 +28,24 @@ const KbSourceIngestedEvent = defineEvent({
29
28
  description: "Source document ingested (immutable).",
30
29
  payload: KbSourceIngestedPayload
31
30
  });
32
- const KbRuleVersionCreatedPayload = defineSchemaModel({
31
+ const KbRuleVersionCreatedPayload = K5({
33
32
  name: "KbRuleVersionCreatedPayload",
34
33
  description: "Emitted when a rule version draft is created.",
35
34
  fields: {
36
35
  ruleVersionId: {
37
- type: ScalarTypeEnum.String_unsecure(),
36
+ type: E5.String_unsecure(),
38
37
  isOptional: false
39
38
  },
40
39
  ruleId: {
41
- type: ScalarTypeEnum.String_unsecure(),
40
+ type: E5.String_unsecure(),
42
41
  isOptional: false
43
42
  },
44
43
  jurisdiction: {
45
- type: ScalarTypeEnum.String_unsecure(),
44
+ type: E5.String_unsecure(),
46
45
  isOptional: false
47
46
  },
48
47
  status: {
49
- type: ScalarTypeEnum.String_unsecure(),
48
+ type: E5.String_unsecure(),
50
49
  isOptional: false
51
50
  }
52
51
  }
@@ -57,16 +56,16 @@ const KbRuleVersionCreatedEvent = defineEvent({
57
56
  description: "Rule version created (draft).",
58
57
  payload: KbRuleVersionCreatedPayload
59
58
  });
60
- const KbRuleVersionApprovedPayload = defineSchemaModel({
59
+ const KbRuleVersionApprovedPayload = K5({
61
60
  name: "KbRuleVersionApprovedPayload",
62
61
  description: "Emitted when a rule version is approved.",
63
62
  fields: {
64
63
  ruleVersionId: {
65
- type: ScalarTypeEnum.String_unsecure(),
64
+ type: E5.String_unsecure(),
66
65
  isOptional: false
67
66
  },
68
67
  approver: {
69
- type: ScalarTypeEnum.String_unsecure(),
68
+ type: E5.String_unsecure(),
70
69
  isOptional: false
71
70
  }
72
71
  }
@@ -77,20 +76,20 @@ const KbRuleVersionApprovedEvent = defineEvent({
77
76
  description: "Rule version approved (human verified).",
78
77
  payload: KbRuleVersionApprovedPayload
79
78
  });
80
- const KbSnapshotPublishedPayload = defineSchemaModel({
79
+ const KbSnapshotPublishedPayload = K5({
81
80
  name: "KbSnapshotPublishedPayload",
82
81
  description: "Emitted when a KB snapshot is published.",
83
82
  fields: {
84
83
  snapshotId: {
85
- type: ScalarTypeEnum.String_unsecure(),
84
+ type: E5.String_unsecure(),
86
85
  isOptional: false
87
86
  },
88
87
  jurisdiction: {
89
- type: ScalarTypeEnum.String_unsecure(),
88
+ type: E5.String_unsecure(),
90
89
  isOptional: false
91
90
  },
92
91
  includedRuleVersionsCount: {
93
- type: ScalarTypeEnum.Int_unsecure(),
92
+ type: E5.Int_unsecure(),
94
93
  isOptional: false
95
94
  }
96
95
  }
@@ -103,4 +102,5 @@ const KbSnapshotPublishedEvent = defineEvent({
103
102
  });
104
103
 
105
104
  //#endregion
106
- export { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent };
105
+ export { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent };
106
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../src/events.ts"],"sourcesContent":["import { defineEvent, defineSchemaModel } from '@lssm/lib.contracts';\nimport { ScalarTypeEnum } from '@lssm/lib.schema';\n\nconst KbSourceIngestedPayload = defineSchemaModel({\n name: 'KbSourceIngestedPayload',\n description: 'Emitted when a source document is ingested.',\n fields: {\n sourceDocumentId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n hash: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbSourceIngestedEvent = defineEvent({\n name: 'kb.source.ingested',\n version: 1,\n description: 'Source document ingested (immutable).',\n payload: KbSourceIngestedPayload,\n});\n\nconst KbRuleVersionCreatedPayload = defineSchemaModel({\n name: 'KbRuleVersionCreatedPayload',\n description: 'Emitted when a rule version draft is created.',\n fields: {\n ruleVersionId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n ruleId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbRuleVersionCreatedEvent = defineEvent({\n name: 'kb.ruleVersion.created',\n version: 1,\n description: 'Rule version created (draft).',\n payload: KbRuleVersionCreatedPayload,\n});\n\nconst KbRuleVersionApprovedPayload = defineSchemaModel({\n name: 'KbRuleVersionApprovedPayload',\n description: 'Emitted when a rule version is approved.',\n fields: {\n ruleVersionId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n approver: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbRuleVersionApprovedEvent = defineEvent({\n name: 'kb.ruleVersion.approved',\n version: 1,\n description: 'Rule version approved (human verified).',\n payload: KbRuleVersionApprovedPayload,\n});\n\nconst KbSnapshotPublishedPayload = defineSchemaModel({\n name: 'KbSnapshotPublishedPayload',\n description: 'Emitted when a KB snapshot is published.',\n fields: {\n snapshotId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n includedRuleVersionsCount: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n },\n});\n\nexport const KbSnapshotPublishedEvent = defineEvent({\n name: 'kb.snapshot.published',\n version: 1,\n description: 'KB snapshot published.',\n payload: KbSnapshotPublishedPayload,\n});\n"],"mappings":";;;;;;AAGA,MAAM,0BAA0BA,GAAkB;CAChD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,kBAAkB;GAChB,MAAMC,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE;CACF,CAAC;AAEF,MAAa,wBAAwB,YAAY;CAC/C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAM,8BAA8BD,GAAkB;CACpD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,eAAe;GACb,MAAMC,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE;CACF,CAAC;AAEF,MAAa,4BAA4B,YAAY;CACnD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAM,+BAA+BD,GAAkB;CACrD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,eAAe;GACb,MAAMC,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE;CACF,CAAC;AAEF,MAAa,6BAA6B,YAAY;CACpD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAM,6BAA6BD,GAAkB;CACnD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,YAAY;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,2BAA2B;GACzB,MAAMA,GAAe,cAAc;GACnC,YAAY;GACb;EACF;CACF,CAAC;AAEF,MAAa,2BAA2B,YAAY;CAClD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC"}
package/dist/example.d.ts CHANGED
@@ -32,4 +32,5 @@ declare const example: {
32
32
  };
33
33
  };
34
34
  //#endregion
35
- export { example as default };
35
+ export { example as default };
36
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EAwBI,EAAA,0BAAA"}
package/dist/example.js CHANGED
@@ -38,4 +38,5 @@ const example = {
38
38
  var example_default = example;
39
39
 
40
40
  //#endregion
41
- export { example_default as default };
41
+ export { example_default as default };
42
+ //# sourceMappingURL=example.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'versioned-knowledge-base',\n title: 'Versioned Knowledge Base',\n summary:\n 'Curated KB with immutable sources, reviewable rule versions, and published snapshots.',\n tags: ['knowledge', 'versioning', 'snapshots'],\n kind: 'knowledge',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.versioned-knowledge-base',\n },\n entrypoints: {\n packageName: '@lssm/example.versioned-knowledge-base',\n feature: './feature',\n contracts: './contracts',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs', 'builder'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAa;EAAc;EAAY;CAC9C,MAAM;CACN,YAAY;CACZ,MAAM,EACJ,WAAW,0CACZ;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO;IAAC;IAAY;IAAS;IAAU;GAAE;EACnE,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
@@ -74,4 +74,5 @@ interface MemoryKbHandlers {
74
74
  }
75
75
  declare function createMemoryKbHandlers(store: MemoryKbStore): MemoryKbHandlers;
76
76
  //#endregion
77
- export { MemoryKbHandlers, MemoryKbStore, createMemoryKbHandlers, createMemoryKbStore };
77
+ export { MemoryKbHandlers, MemoryKbStore, createMemoryKbHandlers, createMemoryKbStore };
78
+ //# sourceMappingURL=memory.handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.handlers.d.ts","names":[],"sources":["../../src/handlers/memory.handlers.ts"],"sourcesContent":[],"mappings":";UAAU,SAAA;EAAA,gBAAS,EAAA,MAAA;EAIT,OAAA,CAAA,EAAA,MAAA;AAKO;AAIH,UATJ,cAAA,CAcW;EAOP,EAAA,EAAA,MAAA;EAGC,YAAA,EAAA,MAAA;EACF,SAAA,EAAA,MAAA;EAAI,KAAA,EAAA,MAAA;EAEP,SAAA,EAtBG,IAsBO;EAQH,IAAA,EAAA,MAAA;EACM,MAAA,EAAA,MAAA;;UA3Bb,IAAA,CA4BW;EAAZ,EAAA,EAAA,MAAA;EACmB,YAAA,EAAA,MAAA;EAAZ,QAAA,EAAA,MAAA;;UAxBN,WAAA,CAyBG;EACoB,EAAA,EAAA,MAAA;EAAG,MAAA,EAAA,MAAA;EAGpB,YAAA,EAAA,MAAA;EAUC,QAAA,EAAA,MAAA;EACE,OAAA,EAAA,MAAA;EAAe,OAAA,EAAA,MAAA;EAAR,UAAA,EAjCZ,SAiCY,EAAA;EACC,MAAA,EAAA,OAAA,GAAA,UAAA,GAAA,UAAA;EAAL,UAAA,CAAA,EAAA,MAAA;EAAqC,UAAA,CAAA,EA/B5C,IA+B4C;EAAR,SAAA,EA9BtC,IA8BsC;;UA5BzC,UAAA,CAiCI;EAAR,EAAA,EAAA,MAAA;EAIQ,YAAA,EAAA,MAAA;EAAR,QAAA,EAlCM,IAkCN;EAGQ,sBAAA,EAAA,MAAA,EAAA;EACA,WAAA,EApCC,IAoCD;;AAKR,UAtCW,aAAA,CAsCX;EAAO,OAAA,EArCF,GAqCE,CAAA,MAAA,EArCU,cAqCV,CAAA;EAOG,KAAA,EA3CP,GA2CO,CAAA,MAAA,EA3CK,IA2CL,CAAA;gBA1CA,YAAY;aACf,YAAY;iCACQ;;iBAGjB,mBAAA,CAAA,GAAuB;UAUtB,gBAAA;mBACE,OAAO,QAAQ;sBACZ,KAAK,wBAAwB,QAAQ;;;;gBAI3C;MACV,QAAQ;;;;MAIR,QAAQ;;;cAGA;MACR,QAAQ;;;;;MAKR;;;;;;;iBAOU,sBAAA,QAA8B,gBAAgB"}
@@ -100,4 +100,5 @@ function createMemoryKbHandlers(store) {
100
100
  }
101
101
 
102
102
  //#endregion
103
- export { createMemoryKbHandlers, createMemoryKbStore };
103
+ export { createMemoryKbHandlers, createMemoryKbStore };
104
+ //# sourceMappingURL=memory.handlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.handlers.js","names":["doc: SourceDocument","ruleVersion: RuleVersion","approved: RuleVersion","snapshot: KBSnapshot"],"sources":["../../src/handlers/memory.handlers.ts"],"sourcesContent":["interface SourceRef {\n sourceDocumentId: string;\n excerpt?: string;\n}\ninterface SourceDocument {\n id: string;\n jurisdiction: string;\n authority: string;\n title: string;\n fetchedAt: Date;\n hash: string;\n fileId: string;\n}\ninterface Rule {\n id: string;\n jurisdiction: string;\n topicKey: string;\n}\ninterface RuleVersion {\n id: string;\n ruleId: string;\n jurisdiction: string;\n topicKey: string;\n version: number;\n content: string;\n sourceRefs: SourceRef[];\n status: 'draft' | 'approved' | 'rejected';\n approvedBy?: string;\n approvedAt?: Date;\n createdAt: Date;\n}\ninterface KBSnapshot {\n id: string;\n jurisdiction: string;\n asOfDate: Date;\n includedRuleVersionIds: string[];\n publishedAt: Date;\n}\n\nexport interface MemoryKbStore {\n sources: Map<string, SourceDocument>;\n rules: Map<string, Rule>;\n ruleVersions: Map<string, RuleVersion>;\n snapshots: Map<string, KBSnapshot>;\n nextRuleVersionNumberByRuleId: Map<string, number>;\n}\n\nexport function createMemoryKbStore(): MemoryKbStore {\n return {\n sources: new Map(),\n rules: new Map(),\n ruleVersions: new Map(),\n snapshots: new Map(),\n nextRuleVersionNumberByRuleId: new Map(),\n };\n}\n\nexport interface MemoryKbHandlers {\n createRule(rule: Rule): Promise<Rule>;\n ingestSource(input: Omit<SourceDocument, 'id'>): Promise<SourceDocument>;\n upsertRuleVersion(input: {\n ruleId: string;\n content: string;\n sourceRefs: SourceRef[];\n }): Promise<RuleVersion>;\n approveRuleVersion(input: {\n ruleVersionId: string;\n approver: string;\n }): Promise<RuleVersion>;\n publishSnapshot(input: {\n jurisdiction: string;\n asOfDate: Date;\n }): Promise<KBSnapshot>;\n search(input: {\n snapshotId: string;\n jurisdiction: string;\n query: string;\n }): Promise<{ items: { ruleVersionId: string; excerpt?: string }[] }>;\n}\n\nfunction stableId(prefix: string, value: string): string {\n return `${prefix}_${value.replace(/[^a-zA-Z0-9_-]/g, '_')}`;\n}\n\nexport function createMemoryKbHandlers(store: MemoryKbStore): MemoryKbHandlers {\n async function createRule(rule: Rule): Promise<Rule> {\n store.rules.set(rule.id, rule);\n return rule;\n }\n\n async function ingestSource(\n input: Omit<SourceDocument, 'id'>\n ): Promise<SourceDocument> {\n const id = stableId('src', `${input.jurisdiction}_${input.hash}`);\n const doc: SourceDocument = { id, ...input };\n store.sources.set(id, doc);\n return doc;\n }\n\n async function upsertRuleVersion(input: {\n ruleId: string;\n content: string;\n sourceRefs: SourceRef[];\n }): Promise<RuleVersion> {\n if (!input.sourceRefs.length) {\n throw new Error('SOURCE_REFS_REQUIRED');\n }\n const rule = store.rules.get(input.ruleId);\n if (!rule) {\n throw new Error('RULE_NOT_FOUND');\n }\n const next =\n (store.nextRuleVersionNumberByRuleId.get(input.ruleId) ?? 0) + 1;\n store.nextRuleVersionNumberByRuleId.set(input.ruleId, next);\n const id = stableId('rv', `${input.ruleId}_${next}`);\n const ruleVersion: RuleVersion = {\n id,\n ruleId: input.ruleId,\n jurisdiction: rule.jurisdiction,\n topicKey: rule.topicKey,\n version: next,\n content: input.content,\n sourceRefs: input.sourceRefs,\n status: 'draft',\n createdAt: new Date(),\n approvedAt: undefined,\n approvedBy: undefined,\n };\n store.ruleVersions.set(id, ruleVersion);\n return ruleVersion;\n }\n\n async function approveRuleVersion(input: {\n ruleVersionId: string;\n approver: string;\n }): Promise<RuleVersion> {\n const existing = store.ruleVersions.get(input.ruleVersionId);\n if (!existing) {\n throw new Error('RULE_VERSION_NOT_FOUND');\n }\n const approved: RuleVersion = {\n ...existing,\n status: 'approved',\n approvedBy: input.approver,\n approvedAt: new Date(),\n };\n store.ruleVersions.set(approved.id, approved);\n return approved;\n }\n\n async function publishSnapshot(input: {\n jurisdiction: string;\n asOfDate: Date;\n }): Promise<KBSnapshot> {\n const approved = [...store.ruleVersions.values()].filter(\n (rv) => rv.status === 'approved' && rv.jurisdiction === input.jurisdiction\n );\n if (approved.length === 0) {\n throw new Error('NO_APPROVED_RULES');\n }\n const includedRuleVersionIds = approved.map((rv) => rv.id).sort();\n const id = stableId(\n 'snap',\n `${input.jurisdiction}_${input.asOfDate.toISOString().slice(0, 10)}_${includedRuleVersionIds.length}`\n );\n const snapshot: KBSnapshot = {\n id,\n jurisdiction: input.jurisdiction,\n asOfDate: input.asOfDate,\n includedRuleVersionIds,\n publishedAt: new Date(),\n };\n store.snapshots.set(id, snapshot);\n return snapshot;\n }\n\n async function search(input: {\n snapshotId: string;\n jurisdiction: string;\n query: string;\n }): Promise<{ items: { ruleVersionId: string; excerpt?: string }[] }> {\n const snapshot = store.snapshots.get(input.snapshotId);\n if (!snapshot) {\n throw new Error('SNAPSHOT_NOT_FOUND');\n }\n if (snapshot.jurisdiction !== input.jurisdiction) {\n throw new Error('JURISDICTION_MISMATCH');\n }\n const q = input.query.toLowerCase();\n const tokens = q\n .split(/\\s+/)\n .map((t) => t.trim())\n .filter(Boolean);\n const items = snapshot.includedRuleVersionIds\n .map((id) => store.ruleVersions.get(id))\n .filter((rv): rv is RuleVersion => Boolean(rv))\n .filter((rv) => {\n if (tokens.length === 0) return true;\n const hay = rv.content.toLowerCase();\n return tokens.every((token) => hay.includes(token));\n })\n .map((rv) => ({\n ruleVersionId: rv.id,\n excerpt: rv.content.slice(0, 120),\n }));\n return { items };\n }\n\n return {\n createRule,\n ingestSource,\n upsertRuleVersion,\n approveRuleVersion,\n publishSnapshot,\n search,\n };\n}\n"],"mappings":";AA+CA,SAAgB,sBAAqC;AACnD,QAAO;EACL,yBAAS,IAAI,KAAK;EAClB,uBAAO,IAAI,KAAK;EAChB,8BAAc,IAAI,KAAK;EACvB,2BAAW,IAAI,KAAK;EACpB,+CAA+B,IAAI,KAAK;EACzC;;AA0BH,SAAS,SAAS,QAAgB,OAAuB;AACvD,QAAO,GAAG,OAAO,GAAG,MAAM,QAAQ,mBAAmB,IAAI;;AAG3D,SAAgB,uBAAuB,OAAwC;CAC7E,eAAe,WAAW,MAA2B;AACnD,QAAM,MAAM,IAAI,KAAK,IAAI,KAAK;AAC9B,SAAO;;CAGT,eAAe,aACb,OACyB;EACzB,MAAM,KAAK,SAAS,OAAO,GAAG,MAAM,aAAa,GAAG,MAAM,OAAO;EACjE,MAAMA,MAAsB;GAAE;GAAI,GAAG;GAAO;AAC5C,QAAM,QAAQ,IAAI,IAAI,IAAI;AAC1B,SAAO;;CAGT,eAAe,kBAAkB,OAIR;AACvB,MAAI,CAAC,MAAM,WAAW,OACpB,OAAM,IAAI,MAAM,uBAAuB;EAEzC,MAAM,OAAO,MAAM,MAAM,IAAI,MAAM,OAAO;AAC1C,MAAI,CAAC,KACH,OAAM,IAAI,MAAM,iBAAiB;EAEnC,MAAM,QACH,MAAM,8BAA8B,IAAI,MAAM,OAAO,IAAI,KAAK;AACjE,QAAM,8BAA8B,IAAI,MAAM,QAAQ,KAAK;EAC3D,MAAM,KAAK,SAAS,MAAM,GAAG,MAAM,OAAO,GAAG,OAAO;EACpD,MAAMC,cAA2B;GAC/B;GACA,QAAQ,MAAM;GACd,cAAc,KAAK;GACnB,UAAU,KAAK;GACf,SAAS;GACT,SAAS,MAAM;GACf,YAAY,MAAM;GAClB,QAAQ;GACR,2BAAW,IAAI,MAAM;GACrB,YAAY;GACZ,YAAY;GACb;AACD,QAAM,aAAa,IAAI,IAAI,YAAY;AACvC,SAAO;;CAGT,eAAe,mBAAmB,OAGT;EACvB,MAAM,WAAW,MAAM,aAAa,IAAI,MAAM,cAAc;AAC5D,MAAI,CAAC,SACH,OAAM,IAAI,MAAM,yBAAyB;EAE3C,MAAMC,WAAwB;GAC5B,GAAG;GACH,QAAQ;GACR,YAAY,MAAM;GAClB,4BAAY,IAAI,MAAM;GACvB;AACD,QAAM,aAAa,IAAI,SAAS,IAAI,SAAS;AAC7C,SAAO;;CAGT,eAAe,gBAAgB,OAGP;EACtB,MAAM,WAAW,CAAC,GAAG,MAAM,aAAa,QAAQ,CAAC,CAAC,QAC/C,OAAO,GAAG,WAAW,cAAc,GAAG,iBAAiB,MAAM,aAC/D;AACD,MAAI,SAAS,WAAW,EACtB,OAAM,IAAI,MAAM,oBAAoB;EAEtC,MAAM,yBAAyB,SAAS,KAAK,OAAO,GAAG,GAAG,CAAC,MAAM;EACjE,MAAM,KAAK,SACT,QACA,GAAG,MAAM,aAAa,GAAG,MAAM,SAAS,aAAa,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,uBAAuB,SAC9F;EACD,MAAMC,WAAuB;GAC3B;GACA,cAAc,MAAM;GACpB,UAAU,MAAM;GAChB;GACA,6BAAa,IAAI,MAAM;GACxB;AACD,QAAM,UAAU,IAAI,IAAI,SAAS;AACjC,SAAO;;CAGT,eAAe,OAAO,OAIgD;EACpE,MAAM,WAAW,MAAM,UAAU,IAAI,MAAM,WAAW;AACtD,MAAI,CAAC,SACH,OAAM,IAAI,MAAM,qBAAqB;AAEvC,MAAI,SAAS,iBAAiB,MAAM,aAClC,OAAM,IAAI,MAAM,wBAAwB;EAG1C,MAAM,SADI,MAAM,MAAM,aAAa,CAEhC,MAAM,MAAM,CACZ,KAAK,MAAM,EAAE,MAAM,CAAC,CACpB,OAAO,QAAQ;AAalB,SAAO,EAAE,OAZK,SAAS,uBACpB,KAAK,OAAO,MAAM,aAAa,IAAI,GAAG,CAAC,CACvC,QAAQ,OAA0B,QAAQ,GAAG,CAAC,CAC9C,QAAQ,OAAO;AACd,OAAI,OAAO,WAAW,EAAG,QAAO;GAChC,MAAM,MAAM,GAAG,QAAQ,aAAa;AACpC,UAAO,OAAO,OAAO,UAAU,IAAI,SAAS,MAAM,CAAC;IACnD,CACD,KAAK,QAAQ;GACZ,eAAe,GAAG;GAClB,SAAS,GAAG,QAAQ,MAAM,GAAG,IAAI;GAClC,EAAE,EACW;;AAGlB,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACD"}
@@ -85,4 +85,5 @@ const openBankingBalancesReadCapability = {
85
85
  }]
86
86
  };
87
87
 
88
- //#endregion
88
+ //#endregion
89
+ //# sourceMappingURL=openbanking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openbanking.js","names":[],"sources":["../../../../../../../libs/contracts/dist/capabilities/openbanking.js"],"sourcesContent":["import { StabilityEnum } from \"../ownership.js\";\n\n//#region src/capabilities/openbanking.ts\nconst OWNERS = [\"platform.finance\"];\nconst TAGS = [\"open-banking\", \"finance\"];\nconst openBankingAccountsReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.accounts.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Accounts (Read)\",\n\t\tdescription: \"Provides read-only access to linked bank accounts, including account summaries and metadata.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.list\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"List bank accounts linked to a Powens open banking connection.\"\n\t\t},\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.get\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"Retrieve the canonical bank account record for a specific account.\"\n\t\t},\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.sync\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"Trigger a refresh of bank account metadata from the open banking provider.\"\n\t\t}\n\t]\n};\nconst openBankingTransactionsReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.transactions.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Transactions (Read)\",\n\t\tdescription: \"Enables retrieval of transaction history for linked bank accounts via open banking providers.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS, \"transactions\"],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [{\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.transactions.list\",\n\t\tversion: 1,\n\t\tdescription: \"List transactions for a given bank account with optional date filtering.\"\n\t}, {\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.transactions.sync\",\n\t\tversion: 1,\n\t\tdescription: \"Synchronise transactions from the open banking provider into the canonical ledger.\"\n\t}]\n};\nconst openBankingBalancesReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.balances.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Balances (Read)\",\n\t\tdescription: \"Allows querying of current and available balances for linked bank accounts via open banking providers.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS, \"balances\"],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [{\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.balances.get\",\n\t\tversion: 1,\n\t\tdescription: \"Retrieve the latest known balances for a specified bank account.\"\n\t}, {\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.balances.refresh\",\n\t\tversion: 1,\n\t\tdescription: \"Force a balance refresh from the open banking provider.\"\n\t}]\n};\nfunction registerOpenBankingCapabilities(registry) {\n\treturn registry.register(openBankingAccountsReadCapability).register(openBankingTransactionsReadCapability).register(openBankingBalancesReadCapability);\n}\n\n//#endregion\nexport { openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, registerOpenBankingCapabilities };\n//# sourceMappingURL=openbanking.js.map"],"mappings":";;;AAGA,MAAM,SAAS,CAAC,mBAAmB;AACnC,MAAM,OAAO,CAAC,gBAAgB,UAAU;AACxC,MAAM,oCAAoC;CACzC,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,KAAK;EACf,WAAW,cAAc;EACzB;CACD,UAAU;EACT;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;CACD;AACD,MAAM,wCAAwC;CAC7C,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,MAAM,eAAe;EAC/B,WAAW,cAAc;EACzB;CACD,UAAU,CAAC;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,EAAE;EACF,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,CAAC;CACF;AACD,MAAM,oCAAoC;CACzC,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,MAAM,WAAW;EAC3B,WAAW,cAAc;EACzB;CACD,UAAU,CAAC;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,EAAE;EACF,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,CAAC;CACF"}
@@ -57,4 +57,5 @@ const ContractRegistryManifestSchema = z.object({
57
57
  });
58
58
 
59
59
  //#endregion
60
- export { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema };
60
+ export { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema };
61
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","names":[],"sources":["../../../../../../../libs/contracts/dist/contract-registry/schemas.js"],"sourcesContent":["import { StabilityEnum } from \"../ownership.js\";\nimport z from \"zod\";\n\n//#region src/contract-registry/schemas.ts\nconst ContractRegistryItemTypeValues = [\n\t\"contractspec:operation\",\n\t\"contractspec:event\",\n\t\"contractspec:presentation\",\n\t\"contractspec:form\",\n\t\"contractspec:feature\",\n\t\"contractspec:workflow\",\n\t\"contractspec:template\",\n\t\"contractspec:integration\",\n\t\"contractspec:data-view\",\n\t\"contractspec:migration\",\n\t\"contractspec:telemetry\",\n\t\"contractspec:experiment\",\n\t\"contractspec:app-config\",\n\t\"contractspec:knowledge\"\n];\nconst ContractRegistryItemTypeSchema = z.enum(ContractRegistryItemTypeValues);\nconst ContractRegistryFileSchema = z.object({\n\tpath: z.string().min(1),\n\ttype: z.string().min(1),\n\tcontent: z.string().optional()\n});\nconst ContractRegistryItemSchema = z.object({\n\tname: z.string().min(1),\n\ttype: ContractRegistryItemTypeSchema,\n\tversion: z.number().int().nonnegative(),\n\ttitle: z.string().min(1),\n\tdescription: z.string().min(1),\n\tmeta: z.object({\n\t\tstability: z.enum([\n\t\t\tStabilityEnum.Idea,\n\t\t\tStabilityEnum.InCreation,\n\t\t\tStabilityEnum.Experimental,\n\t\t\tStabilityEnum.Beta,\n\t\t\tStabilityEnum.Stable,\n\t\t\tStabilityEnum.Deprecated\n\t\t]),\n\t\towners: z.array(z.string().min(1)).default([]),\n\t\ttags: z.array(z.string().min(1)).default([])\n\t}),\n\tdependencies: z.array(z.string().min(1)).optional(),\n\tregistryDependencies: z.array(z.string().min(1)).optional(),\n\tfiles: z.array(ContractRegistryFileSchema).min(1),\n\tschema: z.object({\n\t\tinput: z.unknown().optional(),\n\t\toutput: z.unknown().optional()\n\t}).optional()\n});\nconst ContractRegistryManifestSchema = z.object({\n\t$schema: z.string().min(1).optional(),\n\tname: z.string().min(1),\n\thomepage: z.string().min(1).optional(),\n\titems: z.array(ContractRegistryItemSchema)\n});\n\n//#endregion\nexport { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema };\n//# sourceMappingURL=schemas.js.map"],"mappings":";;;;AAoBA,MAAM,iCAAiC,EAAE,KAhBF;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAC4E;AAC7E,MAAM,6BAA6B,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,CAAC;AACF,MAAM,6BAA6B,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,MAAM;CACN,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa;CACvC,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE;CACxB,aAAa,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC9B,MAAM,EAAE,OAAO;EACd,WAAW,EAAE,KAAK;GACjB,cAAc;GACd,cAAc;GACd,cAAc;GACd,cAAc;GACd,cAAc;GACd,cAAc;GACd,CAAC;EACF,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;EAC9C,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;EAC5C,CAAC;CACF,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU;CACnD,sBAAsB,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU;CAC3D,OAAO,EAAE,MAAM,2BAA2B,CAAC,IAAI,EAAE;CACjD,QAAQ,EAAE,OAAO;EAChB,OAAO,EAAE,SAAS,CAAC,UAAU;EAC7B,QAAQ,EAAE,SAAS,CAAC,UAAU;EAC9B,CAAC,CAAC,UAAU;CACb,CAAC;AACF,MAAM,iCAAiC,EAAE,OAAO;CAC/C,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CACrC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,UAAU,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CACtC,OAAO,EAAE,MAAM,2BAA2B;CAC1C,CAAC"}
@@ -13,4 +13,5 @@ const accessibility_wcag_compliance_specs_DocBlocks = [{
13
13
  }];
14
14
  registerDocBlocks(accessibility_wcag_compliance_specs_DocBlocks);
15
15
 
16
- //#endregion
16
+ //#endregion
17
+ //# sourceMappingURL=accessibility_wcag_compliance_specs.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessibility_wcag_compliance_specs.docblock.js","names":[],"sources":["../../../../../../../libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"./registry.js\";\n\n//#region src/docs/accessibility_wcag_compliance_specs.docblock.ts\nconst accessibility_wcag_compliance_specs_DocBlocks = [{\n\tid: \"docs.accessibility_wcag_compliance_specs\",\n\ttitle: \"Accessibility & WCAG Compliance — **specs.md**\",\n\tsummary: \"> **Goal:** Ship interfaces that are usable by everyone, by default. This spec sets non‑negotiable rules, checklists, and CI gates to meet **WCAG\\xA02.2 AA** (aim for AAA where low‑cost), align with **EN\\xA0301\\xA0549** (EU), and keep parity on **web (Next.js)** and **mobile (Expo/React\\xA0Native)**.\",\n\tkind: \"reference\",\n\tvisibility: \"public\",\n\troute: \"/docs/accessibility_wcag_compliance_specs\",\n\ttags: [\"accessibility_wcag_compliance_specs\"],\n\tbody: \"# Accessibility & WCAG Compliance — **specs.md**\\n\\n> **Goal:** Ship interfaces that are usable by everyone, by default. This spec sets non‑negotiable rules, checklists, and CI gates to meet **WCAG\\xA02.2 AA** (aim for AAA where low‑cost), align with **EN\\xA0301\\xA0549** (EU), and keep parity on **web (Next.js)** and **mobile (Expo/React\\xA0Native)**.\\n\\n---\\n\\n## 0) Scope & Principles\\n\\n- **Standards:** WCAG\\xA02.2\\xA0AA (incl. new 2.2 SCs: Focus Not Obscured, Focus Appearance, Target Size, Dragging Movements, Accessible Authentication, Redundant Entry). EN\\xA0301\\xA0549 compliance by conformance to WCAG.\\n- **Principles:** Perceivable, Operable, Understandable, Robust (POUR).\\n- **Rule of ARIA:** “No ARIA is better than bad ARIA.” Prefer native elements.\\n- **Definition of Done (DoD):** No Critical/Major a11y issues in CI; keyboard complete; SR (screen reader) smoke test passed; contrasts pass; acceptance criteria below satisfied.\\n- **Repo Alignment:** Web apps use **Radix Primitives + shadcn** wrappers centralized in `packages/lssm/libs/ui-kit-web`. Prefer those components over per‑app duplicates (`packages/*/apps/*/src/components/ui`). When missing, add to `ui-kit-web` first, then adopt app‑side.\\n\\n---\\n\\n## 1) Design Requirements (Design System & Tokens)\\n\\n**1.1 Color & Contrast**\\n\\n- Body text, icons essential to meaning: **≥\\xA04.5:1**; large text (≥\\xA018.66px regular / 14px bold): **≥\\xA03:1**.\\n- Interactive states (default/hover/active/disabled/focus) must maintain contrast **≥\\xA03:1** against adjacent colors; text within components follows text ratios.\\n- Provide light & dark themes with tokens that guarantee minimums. **Never rely solely on color** to convey meaning; pair with text, shape, or icon.\\n\\n**1.2 Focus Indicators (WCAG\\xA02.4.11/12)**\\n\\n- Every interactive element has a **visible focus** with clear offset; indicator contrast **≥\\xA03:1** vs adjacent colors and indicator **area ≥\\xA02\\xA0CSS\\xA0px** thick.\\n- Focus **must not be obscured** by sticky headers/footers or scroll containers.\\n\\n**1.3 Motion & Preferences**\\n\\n- Respect `prefers-reduced-motion`: suppress large parallax, auto‑animations; provide instant alternatives.\\n- Avoid motion that could trigger vestibular issues; under PRM, use fade/scale under **150ms**.\\n\\n**1.4 Target Size (2.5.8)**\\n\\n- Hit areas **≥\\xA024×24\\xA0CSS\\xA0px** (web) and **≥\\xA044×44\\xA0dp** (mobile) unless exempt.\\n\\n**1.5 Typography & Layout**\\n\\n- Support zoom to **400%** without loss of content/functionality; responsive reflow at **320\\xA0CSS\\xA0px** width.\\n- Maintain clear heading hierarchy (h1…h6), one **h1** per view.\\n\\n- Repository baseline (Web): default body text uses Tailwind `text-lg` (≈18px). As of 2025‑09‑20, the repository bumped all Tailwind typography scale usages by +1 step (e.g., `text-sm`→`text-base`, `text-base`→`text-lg`, …, `text-8xl`→`text-9xl`). For long‑form content, default to `prose-lg`.\\n- Do not use `text-xs` for body copy. Reserve `text-sm` only for non‑essential meta (timestamps, fine print) while ensuring contrast and touch targets remain compliant.\\n- When increasing font size, ensure line height supports readability. Prefer Tailwind defaults or `leading-relaxed`/`leading-7` for body text where dense blocks appear.\\n\\n**1.6 Iconography & Imagery**\\n\\n- Decorative images: `alt=\\\"\\\"` or `aria-hidden=\\\"true\\\"`.\\n- Informative images: concise, specific **alt**; complex charts require a **data table or long description**.\\n\\n---\\n\\n## 2) Content Requirements (UX Writing)\\n\\n- Links say **what happens** (avoid “click here”).\\n- Buttons start with verbs; avoid ambiguous labels.\\n- Form labels are **visible**; placeholders are **not labels**.\\n- Error messages: human + programmatic association; avoid color‑only.\\n- Authentication: allow **copy/paste**, password managers, and avoid cognitive tests alone (**3.3.7/3.3.8/3.3.9**).\\n- Avoid CAPTCHAs that block users; if unavoidable, provide **multiple alternatives** (logic-free).\\n\\n---\\n\\n## 3) Engineering Requirements (Web — Next.js/React)\\n\\n> Use and extend `packages/lssm/libs/ui-kit-web` as the default UI surface. It wraps **Radix** primitives with sensible a11y defaults (focus rings, roles, keyboard, ARIA binding). When a gap exists, add it to `ui-kit-web` first.\\n\\n**3.1 Semantics & Landmarks**\\n\\n- Use native elements: `<button>`, `<a href>`, `<label for>`, `<fieldset>`, `<legend>`, `<table>`, etc.\\n- Landmarks per page: `header`, `nav`, `main`, `aside`, `footer`. Provide a **Skip to main content** link.\\n- Provide a **Route Announcer** (`aria-live=\\\"polite\\\"`) and move focus to page **h1** after navigation.\\n\\n**3.2 Keyboard**\\n\\n- All functionality available with keyboard alone. Tab order follows DOM/visual order; **no keyboard traps**.\\n- Common bindings:\\n - Space/Enter → activate button; Enter on link;\\n - Esc closes dialogs/menus;\\n - Arrow keys for lists/menus/tablists with **roving tabindex**.\\n\\n**3.3 Focus Management**\\n\\n- On route change (Next.js), move focus to the page `<h1>` or container and announce via a live region.\\n- Dialogs/menus: **trap focus** inside; return focus to invoking control on close.\\n- Don’t steal focus except after explicit user action.\\n\\n**3.4 Forms**\\n\\n- Each input has a `<label>` or `aria-label`. Group related inputs with `<fieldset><legend>`.\\n- Associate errors via `aria-describedby` or inline IDs; announce with `role=\\\"alert\\\"` (assertive only for critical).\\n- Provide **autocomplete** tokens for known fields; show **inline validation** and do not block on **onBlur** alone.\\n\\n**3.5 ARIA Usage**\\n\\n- Only when needed; match patterns (dialog, menu, combobox, tablist, listbox) per ARIA Authoring Practices.\\n- Ensure **name/role/value** are programmatically determinable.\\n\\n**3.6 Media**\\n\\n- Videos: **captions**; provide **transcripts** for audio; audio descriptions for essential visual info.\\n- No auto‑playing audio. Auto‑playing video must be muted and pausable; provide controls.\\n\\n**3.7 Tables & Data**\\n\\n- Use `<th scope>` for headers; captions via `<caption>`; announce sorting via `aria-sort`.\\n- Provide CSV/JSON export where charts are primary.\\n\\n**3.8 Performance & Robustness**\\n\\n- Avoid content shifts that move focus; reserve space or use skeletons.\\n- Maintain accessible names through hydration/SSR; avoid `dangerouslySetInnerHTML` where possible.\\n\\n**3.9 Next.js specifics**\\n\\n- Use `next/link` for navigation; ensure links are **links**, not buttons.\\n- `next/image` must include **alt** (empty if decorative).\\n- Announce route changes with a **global live region** and shift focus to the new view.\\n\\n**3.10 Accessibility library integration**\\n\\n- Import `@lssm/lib.accessibility` at app root. It auto-imports its `styles.css` via the package entry; ensure bundlers keep CSS side effects. If your app tree-shakes CSS, explicitly import the stylesheet once in your root layout:\\n\\n```tsx\\n// app/layout.tsx\\nimport '@lssm/lib.accessibility'; // includes tokens and provider exports\\n// or if needed: import '@lssm/lib.accessibility/src/styles.css';\\n```\\n\\n- Wrap the app with `AccessibilityProvider` and include an element with `id=\\\"main\\\"` for the skip link target.\\n\\n---\\n\\n## 3b) lssm/ui-kit-web — Component Patterns & Defaults\\n\\n> Source: `packages/lssm/libs/ui-kit-web/ui/*`\\n\\n- **Button/Input/Textarea**: Built‑in `focus-visible` rings; ensure visible labels via `FormLabel` or `aria-label`.\\n- **Form** (`form.tsx`): `FormControl` wires `aria-invalid` and `aria-describedby` to `FormMessage` and `FormDescription`. Prefer `FormMessage` for inline errors. Add `role=\\\"alert\\\"` only for critical.\\n- **Dialog/Sheet/Dropdown**: Use Radix wrappers for focus‑trap and return‑focus. Provide `DialogTitle` + `DialogDescription` for name/description.\\n- **Select/Combobox**: Prefer `SelectTrigger` with visible label; for icon‑only triggers, supply `aria-label`. Document examples in each app.\\n- **Tabs**: Use `TabsList`, `TabsTrigger`, `TabsContent`; names are programmatically determinable.\\n- **Toast/Toaster**: Prefer non‑blocking announcements; map critical to assertive region; include action buttons with clear labels.\\n- **Table**: Use `TableCaption`; ensure `TableHead` cells use proper `scope`. Provide `aria-sort` on sortable headers.\\n- **Utilities to add (repo action)**:\\n - `SkipLink` component and pattern in layouts.\\n - `RouteAnnouncer` (`aria-live=\\\"polite\\\"`) and **FocusOnRouteChange** helper.\\n - `VisuallyHidden` wrapper (Radix visually-hidden or minimal utility).\\n - `useReducedMotion` helper; honor in animated components.\\n - Touch‑size variants (≥44×44) for interactive atoms.\\n\\n---\\n\\n## 4) Engineering Requirements (Mobile — Expo/React\\xA0Native)\\n\\n- Set `accessibilityLabel`, `accessibilityHint`, and `accessibilityRole` on touchables.\\n- Ensure **hit slop** / min size **≥\\xA044×44\\xA0dp**.\\n- Support Dynamic Type / font scaling; no clipped text at **200%**.\\n- Respect **Invert Colors** and **Reduce Motion**; avoid flashing.\\n- Group related items with `accessibilityElements` ordering; hide decoration with `accessible={false}` or `importantForAccessibility=\\\"no-hide-descendants\\\"` when appropriate.\\n- Test with **VoiceOver (iOS)** and **TalkBack (Android)**.\\n\\n---\\n\\n## 5) Component Patterns (Acceptance Rules)\\n\\n**Buttons & Links**\\n\\n- Use `<button>` for actions, `<a href>` for navigation. Provide disabled states that are perceivable beyond color.\\n\\n**Navigation**\\n\\n- Provide **Skip link**. One primary nav landmark. Indicate current page (`aria-current=\\\"page\\\"`).\\n\\n**Menus/Combobox/Autocomplete**\\n\\n- Follow ARIA patterns: focus moves into list; `aria-expanded`, `aria-controls`, `aria-activedescendant` when applicable; Esc closes; typing filters.\\n\\n**Modals/Dialogs**\\n\\n- `role=\\\"dialog\\\"` or `alertdialog` with **label**; focus trapped; background inert; Esc closes; return focus to trigger.\\n\\n**Tabs**\\n\\n- `role=\\\"tablist\\\"`; tabs are in the tab order; arrow keys switch focus; content is `role=\\\"tabpanel\\\"` with `aria-labelledby`.\\n\\n**Toasts/Notifications**\\n\\n- Non-critical: `aria-live=\\\"polite\\\"`; critical: `role=\\\"alert\\\"` sparingly.\\n\\n**Infinite Scroll / “Load More”**\\n\\n- Provide **Load more** control; announce new content to SR; preserve keyboard position.\\n\\n**Drag & Drop (2.5.7)**\\n\\n- Provide **non‑drag** alternative (e.g., move up/down buttons).\\n\\n**Charts & Maps**\\n\\n- Provide **table alternative** or textual summary; keyboard access to datapoints where interactive.\\n\\n---\\n\\n## 6) Testing & CI (Blocking Gates)\\n\\n**Static & Unit**\\n\\n- `eslint-plugin-jsx-a11y` — error on violations.\\n- `jest-axe` — unit tests for components.\\n\\n**Automated Integration**\\n\\n- `axe-core` via Playwright or Cypress on critical flows.\\n- `pa11y-ci` on key routes; threshold: **0 Critical / 0 Serious** to merge.\\n- Lighthouse CI a11y score **≥\\xA095** on target pages.\\n\\n**Manual QA (per release)**\\n\\n- **Keyboard patrol:** navigate primary flows without mouse.\\n- **Screen reader smoke:** NVDA (Windows) or VoiceOver (macOS/iOS) across login, navigation, forms, dialogs.\\n- **Zoom & Reflow:** 200–400% & 320\\xA0px width.\\n- **Color/Contrast check:** tokens in both themes.\\n\\n**Reporting**\\n\\n- A11y issues labeled: `a11y-blocker`, `a11y-bug`, `a11y-enhancement` with WCAG ref.\\n\\n---\\n\\n## 7) Repository‑Specific Adoption Plan\\n\\n- Centralize UI usage on `packages/lssm/libs/ui-kit-web` and de‑duplicate per‑app `components/ui` where feasible.\\n- Introduce `SkipLink`, `RouteAnnouncer`, `FocusOnRouteChange`, and `VisuallyHidden` in `ui-kit-web`. Adopt in app layouts (`app/layout.tsx`) first.\\n- Add `useReducedMotion` and wire into animated components (e.g., `drawer`, `tooltip`, `carousel`).\\n- Add touch‑size variants to `Button`, `IconButton`, `TabsTrigger`, toggles.\\n- Document Select label patterns and error association in Forms.\\n\\n---\\n\\n## 8) Code Snippets\\n\\n**Skip Link**\\n\\n```html\\n<a\\n class=\\\"sr-only focus:not-sr-only focus-visible:outline focus-visible:ring-4 focus-visible:ring-offset-2\\\"\\n href=\\\"#main\\\"\\n >Skip to main content</a\\n>\\n<main id=\\\"main\\\">…</main>\\n```\\n\\n**Dialog (Radix + shadcn/ui) — essentials**\\n\\n```tsx\\n// Ensure label, description, focus trap, and return focus on close remain intact\\n<Dialog>\\n <DialogTrigger asChild>\\n <button aria-haspopup=\\\"dialog\\\">Open settings</button>\\n </DialogTrigger>\\n <DialogContent aria-describedby=\\\"settings-desc\\\">\\n <DialogTitle>Settings</DialogTitle>\\n <p id=\\\"settings-desc\\\">Update your preferences.</p>\\n <DialogClose asChild>\\n <button>Close</button>\\n </DialogClose>\\n </DialogContent>\\n</Dialog>\\n```\\n\\n**Form error association**\\n\\n```tsx\\n<label htmlFor=\\\"email\\\">Email</label>\\n<input id=\\\"email\\\" name=\\\"email\\\" type=\\\"email\\\" aria-describedby=\\\"email-err\\\" />\\n<p id=\\\"email-err\\\" role=\\\"alert\\\">Enter a valid email.</p>\\n```\\n\\n**Route change announcement (Next.js)**\\n\\n```tsx\\n// Add once at app root\\n<div\\n aria-live=\\\"polite\\\"\\n aria-atomic=\\\"true\\\"\\n id=\\\"route-announcer\\\"\\n className=\\\"sr-only\\\"\\n/>\\n```\\n\\n---\\n\\n## 9) Exceptions & Waivers\\n\\n- If a criterion cannot be met, file an issue with: context, attempted alternatives, WCAG reference, impact assessment, and a remediation date. **Temporary waivers only.**\\n\\n---\\n\\n## 10) Ownership\\n\\n- **Design:** maintains token contrast, component specs.\\n- **Engineering:** enforces CI gates, implements patterns.\\n- **QA:** runs manual checks per release.\\n- **PM:** blocks release if AA not met on user‑visible flows.\\n\\n---\\n\\n## 11) References (internalize; no external dependency at runtime)\\n\\n- WCAG\\xA02.2 (AA), EN\\xA0301\\xA0549. ARIA Authoring Practices. Platform HIG (Apple, Material).\\n- `packages/lssm/libs/ui-kit-web` as the canonical UI source for web.\\n\\n> **Bottom line:** Shipping means **accessible by default**. We don’t trade a11y for speed; we bake it into speed.\\n\\n---\\n\\n## 12) Adoption Status (2025-09-23)\\n\\n- web-artisan: AccessibilityProvider integrated; sr-only/forced-colors applied; 44x44 targets; forms announce errors; jest-axe and cypress-axe in place.\\n- web-strit: AccessibilityProvider integrated; forced-colors, sr-only; forms announce errors; 44x44 targets; contrast tokens and text-scale wired; jest-axe and cypress-axe in place.\\n- web-coliving: AccessibilityProvider integrated; forced-colors and focus visibility added; text-scale wired; landing pages converted to `Section`/stacks with text-lg defaults; CTA capture standardized; ESLint guard for text-xs in main content; jest-axe and cypress-axe in place. Next: audit icon-only controls and ensure 44x44 targets; add role=\\\"alert\\\" where critical.\\n\\n> CI gates: run eslint a11y, jest-axe on components, and cypress-axe on critical flows per app.\\n\\n---\\n\\n## 13) CI Hardening & Visual QA\\n\\n- Linting: Run eslint with jsx-a11y rules across all web apps; block on violations.\\n- Unit: Run jest-axe for ui-kit-web and app-level components.\\n- Integration: cypress-axe on key flows (auth, forms, dialogs, tables).\\n- Synthetic scans: pa11y-ci on critical pages (0 Critical/Serious policy).\\n- Performance/A11y audit: Lighthouse CI with a11y score >= 95 on target routes.\\n- Artifacts: Upload pa11y and Lighthouse reports per PR; annotate failures.\\n\\n### Recent additions (2025-09-26)\\n\\n- AutocompleteInput (groceries): Upgraded to ARIA combobox pattern with `aria-controls`, `aria-activedescendant`, `Escape`/`Tab` handling, and labelled listbox.\\n- Cypress a11y tests added for furniture and incidents modules on `/modules` and operators flows; checks run axe with critical/serious impacts.\\n\\n## 14) Accessibility Telemetry (PostHog)\\n\\n- Events (anonymized): a11y_pref_changed (text_scale, contrast_mode, reduce_motion), a11y_panel_opened.\\n- Properties: app, route, previous_value, new_value, timestamp.\\n- Dashboards: Adoption over time, per app/route; correlation with reduced bounce on forms.\\n- Privacy: No PII; aggregate only.\\n\"\n}];\nregisterDocBlocks(accessibility_wcag_compliance_specs_DocBlocks);\n\n//#endregion\nexport { accessibility_wcag_compliance_specs_DocBlocks };\n//# sourceMappingURL=accessibility_wcag_compliance_specs.docblock.js.map"],"mappings":";;;AAGA,MAAM,gDAAgD,CAAC;CACtD,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM,CAAC,sCAAsC;CAC7C,MAAM;CACN,CAAC;AACF,kBAAkB,8CAA8C"}
@@ -1,12 +1,8 @@
1
1
  import { docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes } from "./presentations.js";
2
2
  import { DocRegistry, defaultDocRegistry, registerDocBlocks } from "./registry.js";
3
- import "./PUBLISHING.docblock.js";
3
+ import { techContractsDocs } from "./tech-contracts.docs.js";
4
+ import { metaDocs } from "./meta.docs.js";
4
5
  import "./accessibility_wcag_compliance_specs.docblock.js";
5
- import "./tech/PHASE_1_QUICKSTART.docblock.js";
6
- import "./tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js";
7
- import "./tech/PHASE_3_AUTO_EVOLUTION.docblock.js";
8
- import "./tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js";
9
- import "./tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js";
10
6
  import "./tech/lifecycle-stage-system.docblock.js";
11
7
  import "./tech/presentation-runtime.docblock.js";
12
8
  import "./tech/auth/better-auth-nextjs.docblock.js";
@@ -0,0 +1,30 @@
1
+ import { registerDocBlocks } from "./registry.js";
2
+
3
+ //#region ../../libs/contracts/dist/docs/meta.docs.js
4
+ const metaDocs = [{
5
+ id: "docs.meta.docblocks-process",
6
+ title: "DocBlocks process",
7
+ summary: "How to author goal/how/usage DocBlocks close to code.",
8
+ kind: "reference",
9
+ visibility: "mixed",
10
+ route: "/docs/meta/docblocks-process",
11
+ tags: ["docs", "process"],
12
+ body: `## DocBlocks authoring rules
13
+
14
+ - Colocate docs beside implementation; avoid barrel /docs folders.
15
+ - Split intent:
16
+ - **goal**: why this exists (before implementation).
17
+ - **how**: operational/runbook steps.
18
+ - **usage**: quick checklist for consumers.
19
+ - Use \`visibility\`: public | internal | mixed.
20
+ - Prefer routes like \`/docs/<domain>/<topic>/<kind>\`; ids mirror that.
21
+ - Keep body Markdown LLM-friendly; avoid HTML.
22
+ - Add owners/tags/domain/stability when known.
23
+ - For presentations/markdown outputs, rely on TransformEngine via DocRegistry.
24
+ - No sourcePath; DocBlocks are canonical.`
25
+ }];
26
+ registerDocBlocks(metaDocs);
27
+
28
+ //#endregion
29
+ export { metaDocs };
30
+ //# sourceMappingURL=meta.docs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.docs.js","names":[],"sources":["../../../../../../../libs/contracts/dist/docs/meta.docs.js"],"sourcesContent":["import { registerDocBlocks } from \"./registry.js\";\n\n//#region src/docs/meta.docs.ts\nconst metaDocs = [{\n\tid: \"docs.meta.docblocks-process\",\n\ttitle: \"DocBlocks process\",\n\tsummary: \"How to author goal/how/usage DocBlocks close to code.\",\n\tkind: \"reference\",\n\tvisibility: \"mixed\",\n\troute: \"/docs/meta/docblocks-process\",\n\ttags: [\"docs\", \"process\"],\n\tbody: `## DocBlocks authoring rules\n\n- Colocate docs beside implementation; avoid barrel /docs folders.\n- Split intent:\n - **goal**: why this exists (before implementation).\n - **how**: operational/runbook steps.\n - **usage**: quick checklist for consumers.\n- Use \\`visibility\\`: public | internal | mixed.\n- Prefer routes like \\`/docs/<domain>/<topic>/<kind>\\`; ids mirror that.\n- Keep body Markdown LLM-friendly; avoid HTML.\n- Add owners/tags/domain/stability when known.\n- For presentations/markdown outputs, rely on TransformEngine via DocRegistry.\n- No sourcePath; DocBlocks are canonical.`\n}];\nregisterDocBlocks(metaDocs);\n\n//#endregion\nexport { metaDocs };\n//# sourceMappingURL=meta.docs.js.map"],"mappings":";;;AAGA,MAAM,WAAW,CAAC;CACjB,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM,CAAC,QAAQ,UAAU;CACzB,MAAM;;;;;;;;;;;;;CAaN,CAAC;AACF,kBAAkB,SAAS"}
@@ -68,4 +68,5 @@ function docBlocksToPresentationRoutes(blocks, options) {
68
68
  }
69
69
 
70
70
  //#endregion
71
- export { docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes };
71
+ export { docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes };
72
+ //# sourceMappingURL=presentations.js.map