@lssm/example.kb-update-pipeline 0.0.0-canary-20251221164004 → 0.0.0-canary-20251221185840

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.
@@ -5,7 +5,7 @@ $ tsdown
5
5
  ℹ target: esnext
6
6
  ℹ tsconfig: tsconfig.json
7
7
  ℹ Build start
8
- ℹ Cleaning 262 files
8
+ ℹ Cleaning 267 files
9
9
  ℹ dist/operations/pipeline.js  4.74 kB │ gzip: 1.35 kB
10
10
  ℹ dist/handlers/memory.handlers.js  3.37 kB │ gzip: 1.12 kB
11
11
  ℹ dist/events.js  3.08 kB │ gzip: 0.66 kB
@@ -37,6 +37,7 @@ $ tsdown
37
37
  ℹ dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js  10.02 kB │ gzip: 3.85 kB
38
38
  ℹ dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map  9.63 kB │ gzip: 2.17 kB
39
39
  ℹ dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js  9.61 kB │ gzip: 3.53 kB
40
+ ℹ dist/libs/contracts/dist/operations/registry.js.map  8.86 kB │ gzip: 2.77 kB
40
41
  ℹ dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map  8.77 kB │ gzip: 2.01 kB
41
42
  ℹ dist/libs/contracts/dist/integrations/operations.js  8.38 kB │ gzip: 1.39 kB
42
43
  ℹ dist/handlers/memory.handlers.js.map  8.17 kB │ gzip: 2.35 kB
@@ -58,6 +59,7 @@ $ tsdown
58
59
  ℹ dist/events.js.map  4.83 kB │ gzip: 0.97 kB
59
60
  ℹ dist/libs/contracts/dist/registry-utils.js.map  4.72 kB │ gzip: 1.50 kB
60
61
  ℹ dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map  4.64 kB │ gzip: 1.68 kB
62
+ ℹ dist/libs/contracts/dist/features.js.map  4.62 kB │ gzip: 1.37 kB
61
63
  ℹ dist/libs/contracts/dist/capabilities/openbanking.js.map  4.45 kB │ gzip: 1.14 kB
62
64
  ℹ dist/libs/contracts/dist/integrations/openbanking/models.js  4.43 kB │ gzip: 0.77 kB
63
65
  ℹ dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map  4.24 kB │ gzip: 1.72 kB
@@ -90,6 +92,7 @@ $ tsdown
90
92
  ℹ dist/libs/contracts/dist/integrations/providers/mistral.js.map  2.93 kB │ gzip: 1.17 kB
91
93
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js  2.80 kB │ gzip: 1.24 kB
92
94
  ℹ dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map  2.79 kB │ gzip: 1.14 kB
95
+ ℹ dist/libs/contracts/dist/presentations/presentations.js.map  2.74 kB │ gzip: 1.06 kB
93
96
  ℹ dist/entities/models.js.map  2.73 kB │ gzip: 0.83 kB
94
97
  ℹ dist/libs/contracts/dist/capabilities/openbanking.js  2.70 kB │ gzip: 0.79 kB
95
98
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map  2.68 kB │ gzip: 1.21 kB
@@ -116,12 +119,14 @@ $ tsdown
116
119
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js  1.91 kB │ gzip: 0.90 kB
117
120
  ℹ dist/libs/contracts/dist/integrations/providers/qdrant.js  1.86 kB │ gzip: 0.87 kB
118
121
  ℹ dist/libs/contracts/dist/contract-registry/schemas.js  1.84 kB │ gzip: 0.60 kB
122
+ ℹ dist/libs/contracts/dist/data-views/data-views.js.map  1.83 kB │ gzip: 0.76 kB
119
123
  ℹ dist/libs/contracts/dist/integrations/providers/google-calendar.js  1.79 kB │ gzip: 0.80 kB
120
124
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js  1.78 kB │ gzip: 0.84 kB
121
125
  ℹ dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map  1.76 kB │ gzip: 0.83 kB
122
126
  ℹ dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map  1.75 kB │ gzip: 0.83 kB
123
127
  ℹ dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map  1.75 kB │ gzip: 0.83 kB
124
128
  ℹ dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map  1.74 kB │ gzip: 0.84 kB
129
+ ℹ dist/libs/contracts/dist/workflow/spec.js.map  1.74 kB │ gzip: 0.74 kB
125
130
  ℹ dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map  1.74 kB │ gzip: 0.82 kB
126
131
  ℹ dist/libs/contracts/dist/integrations/providers/postmark.js  1.74 kB │ gzip: 0.79 kB
127
132
  ℹ dist/libs/contracts/dist/integrations/providers/mistral.js  1.66 kB │ gzip: 0.77 kB
@@ -161,8 +166,13 @@ $ tsdown
161
166
  ℹ dist/libs/contracts/dist/knowledge/index.js  0.25 kB │ gzip: 0.12 kB
162
167
  ℹ dist/libs/contracts/dist/integrations/providers/registry.js  0.24 kB │ gzip: 0.12 kB
163
168
  ℹ dist/libs/contracts/dist/server/index.js  0.24 kB │ gzip: 0.13 kB
169
+ ℹ dist/libs/contracts/dist/presentations/presentations.js  0.23 kB │ gzip: 0.16 kB
170
+ ℹ dist/libs/contracts/dist/operations/registry.js  0.22 kB │ gzip: 0.16 kB
164
171
  ℹ dist/libs/contracts/dist/_virtual/rolldown_runtime.js  0.21 kB │ gzip: 0.17 kB
172
+ ℹ dist/libs/contracts/dist/data-views/data-views.js  0.20 kB │ gzip: 0.15 kB
165
173
  ℹ dist/libs/contracts/dist/server/graphql-pothos.js  0.20 kB │ gzip: 0.11 kB
174
+ ℹ dist/libs/contracts/dist/workflow/spec.js  0.18 kB │ gzip: 0.15 kB
175
+ ℹ dist/libs/contracts/dist/features.js  0.18 kB │ gzip: 0.15 kB
166
176
  ℹ dist/libs/contracts/dist/regenerator/service.js  0.18 kB │ gzip: 0.17 kB
167
177
  ℹ dist/libs/contracts/dist/knowledge/spaces/index.js  0.18 kB │ gzip: 0.11 kB
168
178
  ℹ dist/kb-update-pipeline.feature.d.ts.map  0.16 kB │ gzip: 0.14 kB
@@ -180,17 +190,12 @@ $ tsdown
180
190
  ℹ dist/libs/contracts/dist/client/react/index.js  0.07 kB │ gzip: 0.07 kB
181
191
  ℹ dist/libs/contracts/dist/server/mcp/registerResources.js  0.07 kB │ gzip: 0.09 kB
182
192
  ℹ dist/libs/contracts/dist/presentations/index.js  0.06 kB │ gzip: 0.07 kB
183
- ℹ dist/libs/contracts/dist/operations/registry.js  0.05 kB │ gzip: 0.06 kB
184
- ℹ dist/libs/contracts/dist/presentations/presentations.js  0.05 kB │ gzip: 0.07 kB
185
193
  ℹ dist/libs/contracts/dist/install.js  0.05 kB │ gzip: 0.06 kB
186
194
  ℹ dist/libs/contracts/dist/llm/index.js  0.05 kB │ gzip: 0.05 kB
187
195
  ℹ dist/libs/contracts/dist/tests/runner.js  0.04 kB │ gzip: 0.06 kB
188
196
  ℹ dist/libs/contracts/dist/workflow/index.js  0.04 kB │ gzip: 0.05 kB
189
197
  ℹ dist/libs/contracts/dist/server/provider-mcp.js  0.04 kB │ gzip: 0.06 kB
190
- ℹ dist/libs/contracts/dist/data-views/data-views.js  0.03 kB │ gzip: 0.05 kB
191
198
  ℹ dist/libs/contracts/dist/forms/forms.js  0.03 kB │ gzip: 0.05 kB
192
- ℹ dist/libs/contracts/dist/workflow/spec.js  0.03 kB │ gzip: 0.05 kB
193
- ℹ dist/libs/contracts/dist/features.js  0.03 kB │ gzip: 0.05 kB
194
199
  ℹ dist/libs/contracts/dist/server/mcp/registerTools.js  0.03 kB │ gzip: 0.05 kB
195
200
  ℹ dist/libs/contracts/dist/server/rest-elysia.js  0.03 kB │ gzip: 0.05 kB
196
201
  ℹ dist/libs/contracts/dist/server/rest-express.js  0.03 kB │ gzip: 0.05 kB
@@ -224,17 +229,7 @@ $ tsdown
224
229
  ℹ dist/feature.d.ts  0.23 kB │ gzip: 0.16 kB
225
230
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
226
231
  ℹ dist/docs/kb-update-pipeline.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
227
- ℹ 218 files, total: 1292.73 kB
228
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/workflow/runner.js
229
- ╭─[ ../../libs/contracts/dist/workflow/runner.js:2:28 ]
230
- │
231
- 2 │ import { randomUUID } from "node:crypto";
232
-  │ ──────┬──────
233
-  │ ╰──────── Module not found, treating it as an external dependency
234
-  │
235
-  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
236
- ───╯
237
-
232
+ ℹ 223 files, total: 1313.33 kB
238
233
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'turndown' in ../../libs/contracts/dist/presentations/transform-engine.js
239
234
  ╭─[ ../../libs/contracts/dist/presentations/transform-engine.js:3:29 ]
240
235
  │
@@ -245,12 +240,12 @@ $ tsdown
245
240
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
246
241
  ───╯
247
242
 
248
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/experiments/evaluator.js
249
- ╭─[ ../../libs/contracts/dist/experiments/evaluator.js:1:28 ]
243
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'crypto' in ../../libs/contracts/dist/telemetry/tracker.js
244
+ ╭─[ ../../libs/contracts/dist/telemetry/tracker.js:1:28 ]
250
245
  │
251
- 1 │ import { createHash } from "node:crypto";
252
-  │ ──────┬──────
253
-  │ ╰──────── Module not found, treating it as an external dependency
246
+ 1 │ import { randomUUID } from "crypto";
247
+  │ ────┬───
248
+  │ ╰───── Module not found, treating it as an external dependency
254
249
   │
255
250
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
256
251
  ───╯
@@ -265,16 +260,6 @@ $ tsdown
265
260
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
266
261
  ───╯
267
262
 
268
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'crypto' in ../../libs/contracts/dist/telemetry/tracker.js
269
- ╭─[ ../../libs/contracts/dist/telemetry/tracker.js:1:28 ]
270
- │
271
- 1 │ import { randomUUID } from "crypto";
272
-  │ ────┬───
273
-  │ ╰───── Module not found, treating it as an external dependency
274
-  │
275
-  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
276
- ───╯
277
-
278
263
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:timers/promises' in ../../libs/contracts/dist/regenerator/service.js
279
264
  ╭─[ ../../libs/contracts/dist/regenerator/service.js:2:28 ]
280
265
  │
@@ -285,6 +270,26 @@ $ tsdown
285
270
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
286
271
  ───╯
287
272
 
273
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/experiments/evaluator.js
274
+ ╭─[ ../../libs/contracts/dist/experiments/evaluator.js:1:28 ]
275
+ │
276
+ 1 │ import { createHash } from "node:crypto";
277
+  │ ──────┬──────
278
+  │ ╰──────── Module not found, treating it as an external dependency
279
+  │
280
+  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
281
+ ───╯
282
+
283
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/workflow/runner.js
284
+ ╭─[ ../../libs/contracts/dist/workflow/runner.js:2:28 ]
285
+ │
286
+ 2 │ import { randomUUID } from "node:crypto";
287
+  │ ──────┬──────
288
+  │ ╰──────── Module not found, treating it as an external dependency
289
+  │
290
+  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
291
+ ───╯
292
+
288
293
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:buffer' in ../../libs/contracts/dist/server/mcp/registerResources.js
289
294
  ╭─[ ../../libs/contracts/dist/server/mcp/registerResources.js:2:24 ]
290
295
  │
@@ -295,4 +300,4 @@ $ tsdown
295
300
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
296
301
  ───╯
297
302
 
298
- ✔ Build complete in 22168ms
303
+ ✔ Build complete in 22296ms
@@ -37,6 +37,7 @@ $ tsdown
37
37
  ℹ dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js  10.02 kB │ gzip: 3.85 kB
38
38
  ℹ dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map  9.63 kB │ gzip: 2.17 kB
39
39
  ℹ dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js  9.61 kB │ gzip: 3.53 kB
40
+ ℹ dist/libs/contracts/dist/operations/registry.js.map  8.86 kB │ gzip: 2.77 kB
40
41
  ℹ dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map  8.77 kB │ gzip: 2.01 kB
41
42
  ℹ dist/libs/contracts/dist/integrations/operations.js  8.38 kB │ gzip: 1.39 kB
42
43
  ℹ dist/handlers/memory.handlers.js.map  8.17 kB │ gzip: 2.35 kB
@@ -58,6 +59,7 @@ $ tsdown
58
59
  ℹ dist/events.js.map  4.83 kB │ gzip: 0.97 kB
59
60
  ℹ dist/libs/contracts/dist/registry-utils.js.map  4.72 kB │ gzip: 1.50 kB
60
61
  ℹ dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map  4.64 kB │ gzip: 1.68 kB
62
+ ℹ dist/libs/contracts/dist/features.js.map  4.62 kB │ gzip: 1.37 kB
61
63
  ℹ dist/libs/contracts/dist/capabilities/openbanking.js.map  4.45 kB │ gzip: 1.14 kB
62
64
  ℹ dist/libs/contracts/dist/integrations/openbanking/models.js  4.43 kB │ gzip: 0.77 kB
63
65
  ℹ dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map  4.24 kB │ gzip: 1.72 kB
@@ -90,6 +92,7 @@ $ tsdown
90
92
  ℹ dist/libs/contracts/dist/integrations/providers/mistral.js.map  2.93 kB │ gzip: 1.17 kB
91
93
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js  2.80 kB │ gzip: 1.24 kB
92
94
  ℹ dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map  2.79 kB │ gzip: 1.14 kB
95
+ ℹ dist/libs/contracts/dist/presentations/presentations.js.map  2.74 kB │ gzip: 1.06 kB
93
96
  ℹ dist/entities/models.js.map  2.73 kB │ gzip: 0.83 kB
94
97
  ℹ dist/libs/contracts/dist/capabilities/openbanking.js  2.70 kB │ gzip: 0.79 kB
95
98
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map  2.68 kB │ gzip: 1.21 kB
@@ -116,12 +119,14 @@ $ tsdown
116
119
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js  1.91 kB │ gzip: 0.90 kB
117
120
  ℹ dist/libs/contracts/dist/integrations/providers/qdrant.js  1.86 kB │ gzip: 0.87 kB
118
121
  ℹ dist/libs/contracts/dist/contract-registry/schemas.js  1.84 kB │ gzip: 0.60 kB
122
+ ℹ dist/libs/contracts/dist/data-views/data-views.js.map  1.83 kB │ gzip: 0.76 kB
119
123
  ℹ dist/libs/contracts/dist/integrations/providers/google-calendar.js  1.79 kB │ gzip: 0.80 kB
120
124
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js  1.78 kB │ gzip: 0.84 kB
121
125
  ℹ dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map  1.76 kB │ gzip: 0.83 kB
122
126
  ℹ dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map  1.75 kB │ gzip: 0.83 kB
123
127
  ℹ dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map  1.75 kB │ gzip: 0.83 kB
124
128
  ℹ dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map  1.74 kB │ gzip: 0.84 kB
129
+ ℹ dist/libs/contracts/dist/workflow/spec.js.map  1.74 kB │ gzip: 0.74 kB
125
130
  ℹ dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map  1.74 kB │ gzip: 0.82 kB
126
131
  ℹ dist/libs/contracts/dist/integrations/providers/postmark.js  1.74 kB │ gzip: 0.79 kB
127
132
  ℹ dist/libs/contracts/dist/integrations/providers/mistral.js  1.66 kB │ gzip: 0.77 kB
@@ -161,8 +166,13 @@ $ tsdown
161
166
  ℹ dist/libs/contracts/dist/knowledge/index.js  0.25 kB │ gzip: 0.12 kB
162
167
  ℹ dist/libs/contracts/dist/integrations/providers/registry.js  0.24 kB │ gzip: 0.12 kB
163
168
  ℹ dist/libs/contracts/dist/server/index.js  0.24 kB │ gzip: 0.13 kB
169
+ ℹ dist/libs/contracts/dist/presentations/presentations.js  0.23 kB │ gzip: 0.16 kB
170
+ ℹ dist/libs/contracts/dist/operations/registry.js  0.22 kB │ gzip: 0.16 kB
164
171
  ℹ dist/libs/contracts/dist/_virtual/rolldown_runtime.js  0.21 kB │ gzip: 0.17 kB
172
+ ℹ dist/libs/contracts/dist/data-views/data-views.js  0.20 kB │ gzip: 0.15 kB
165
173
  ℹ dist/libs/contracts/dist/server/graphql-pothos.js  0.20 kB │ gzip: 0.11 kB
174
+ ℹ dist/libs/contracts/dist/workflow/spec.js  0.18 kB │ gzip: 0.15 kB
175
+ ℹ dist/libs/contracts/dist/features.js  0.18 kB │ gzip: 0.15 kB
166
176
  ℹ dist/libs/contracts/dist/regenerator/service.js  0.18 kB │ gzip: 0.17 kB
167
177
  ℹ dist/libs/contracts/dist/knowledge/spaces/index.js  0.18 kB │ gzip: 0.11 kB
168
178
  ℹ dist/kb-update-pipeline.feature.d.ts.map  0.16 kB │ gzip: 0.14 kB
@@ -180,17 +190,12 @@ $ tsdown
180
190
  ℹ dist/libs/contracts/dist/client/react/index.js  0.07 kB │ gzip: 0.07 kB
181
191
  ℹ dist/libs/contracts/dist/server/mcp/registerResources.js  0.07 kB │ gzip: 0.09 kB
182
192
  ℹ dist/libs/contracts/dist/presentations/index.js  0.06 kB │ gzip: 0.07 kB
183
- ℹ dist/libs/contracts/dist/operations/registry.js  0.05 kB │ gzip: 0.06 kB
184
- ℹ dist/libs/contracts/dist/presentations/presentations.js  0.05 kB │ gzip: 0.07 kB
185
193
  ℹ dist/libs/contracts/dist/install.js  0.05 kB │ gzip: 0.06 kB
186
194
  ℹ dist/libs/contracts/dist/llm/index.js  0.05 kB │ gzip: 0.05 kB
187
195
  ℹ dist/libs/contracts/dist/tests/runner.js  0.04 kB │ gzip: 0.06 kB
188
196
  ℹ dist/libs/contracts/dist/workflow/index.js  0.04 kB │ gzip: 0.05 kB
189
197
  ℹ dist/libs/contracts/dist/server/provider-mcp.js  0.04 kB │ gzip: 0.06 kB
190
- ℹ dist/libs/contracts/dist/data-views/data-views.js  0.03 kB │ gzip: 0.05 kB
191
198
  ℹ dist/libs/contracts/dist/forms/forms.js  0.03 kB │ gzip: 0.05 kB
192
- ℹ dist/libs/contracts/dist/workflow/spec.js  0.03 kB │ gzip: 0.05 kB
193
- ℹ dist/libs/contracts/dist/features.js  0.03 kB │ gzip: 0.05 kB
194
199
  ℹ dist/libs/contracts/dist/server/mcp/registerTools.js  0.03 kB │ gzip: 0.05 kB
195
200
  ℹ dist/libs/contracts/dist/server/rest-elysia.js  0.03 kB │ gzip: 0.05 kB
196
201
  ℹ dist/libs/contracts/dist/server/rest-express.js  0.03 kB │ gzip: 0.05 kB
@@ -224,7 +229,7 @@ $ tsdown
224
229
  ℹ dist/feature.d.ts  0.23 kB │ gzip: 0.16 kB
225
230
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
226
231
  ℹ dist/docs/kb-update-pipeline.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
227
- ℹ 218 files, total: 1292.73 kB
232
+ ℹ 223 files, total: 1313.33 kB
228
233
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:timers/promises' in ../../libs/contracts/dist/regenerator/service.js
229
234
  ╭─[ ../../libs/contracts/dist/regenerator/service.js:2:28 ]
230
235
  │
@@ -235,6 +240,26 @@ $ tsdown
235
240
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
236
241
  ───╯
237
242
 
243
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/workflow/runner.js
244
+ ╭─[ ../../libs/contracts/dist/workflow/runner.js:2:28 ]
245
+ │
246
+ 2 │ import { randomUUID } from "node:crypto";
247
+  │ ──────┬──────
248
+  │ ╰──────── Module not found, treating it as an external dependency
249
+  │
250
+  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
251
+ ───╯
252
+
253
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'crypto' in ../../libs/contracts/dist/telemetry/tracker.js
254
+ ╭─[ ../../libs/contracts/dist/telemetry/tracker.js:1:28 ]
255
+ │
256
+ 1 │ import { randomUUID } from "crypto";
257
+  │ ────┬───
258
+  │ ╰───── Module not found, treating it as an external dependency
259
+  │
260
+  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
261
+ ───╯
262
+
238
263
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'turndown' in ../../libs/contracts/dist/presentations/transform-engine.js
239
264
  ╭─[ ../../libs/contracts/dist/presentations/transform-engine.js:3:29 ]
240
265
  │
@@ -255,16 +280,6 @@ $ tsdown
255
280
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
256
281
  ───╯
257
282
 
258
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'crypto' in ../../libs/contracts/dist/telemetry/tracker.js
259
- ╭─[ ../../libs/contracts/dist/telemetry/tracker.js:1:28 ]
260
- │
261
- 1 │ import { randomUUID } from "crypto";
262
-  │ ────┬───
263
-  │ ╰───── Module not found, treating it as an external dependency
264
-  │
265
-  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
266
- ───╯
267
-
268
283
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/experiments/evaluator.js
269
284
  ╭─[ ../../libs/contracts/dist/experiments/evaluator.js:1:28 ]
270
285
  │
@@ -275,16 +290,6 @@ $ tsdown
275
290
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
276
291
  ───╯
277
292
 
278
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/workflow/runner.js
279
- ╭─[ ../../libs/contracts/dist/workflow/runner.js:2:28 ]
280
- │
281
- 2 │ import { randomUUID } from "node:crypto";
282
-  │ ──────┬──────
283
-  │ ╰──────── Module not found, treating it as an external dependency
284
-  │
285
-  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
286
- ───╯
287
-
288
293
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:buffer' in ../../libs/contracts/dist/server/mcp/registerResources.js
289
294
  ╭─[ ../../libs/contracts/dist/server/mcp/registerResources.js:2:24 ]
290
295
  │
@@ -295,5 +300,5 @@ $ tsdown
295
300
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
296
301
  ───╯
297
302
 
298
- ✔ Build complete in 23338ms
303
+ ✔ Build complete in 24427ms
299
304
  $ tsc --noEmit
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lssm/example.kb-update-pipeline
2
2
 
3
- ## 0.0.0-canary-20251221164004
3
+ ## 0.0.0-canary-20251221185840
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,7 +9,7 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [66a5dfd]
12
- - @lssm/lib.contracts@0.0.0-canary-20251221164004
13
- - @lssm/lib.identity-rbac@0.0.0-canary-20251221164004
14
- - @lssm/lib.schema@0.0.0-canary-20251221164004
15
- - @lssm/module.notifications@0.0.0-canary-20251221164004
12
+ - @lssm/lib.contracts@0.0.0-canary-20251221185840
13
+ - @lssm/lib.identity-rbac@0.0.0-canary-20251221185840
14
+ - @lssm/lib.schema@0.0.0-canary-20251221185840
15
+ - @lssm/module.notifications@0.0.0-canary-20251221185840
@@ -1 +1,7 @@
1
- import "../registry-utils.js";
1
+ import { init_registry_utils } from "../registry-utils.js";
2
+
3
+ //#region ../../libs/contracts/dist/data-views/data-views.js
4
+ init_registry_utils();
5
+
6
+ //#endregion
7
+ //# sourceMappingURL=data-views.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-views.js","names":[],"sources":["../../../../../../../libs/contracts/dist/data-views/data-views.js"],"sourcesContent":["import { filterBy, getUniqueTags, groupBy, init_registry_utils } from \"../registry-utils.js\";\n\n//#region src/data-views/data-views.ts\ninit_registry_utils();\nfunction keyOf(spec) {\n\treturn `${spec.meta.name}.v${spec.meta.version}`;\n}\nvar DataViewRegistry = class {\n\titems = /* @__PURE__ */ new Map();\n\tregister(spec) {\n\t\tconst key = keyOf(spec);\n\t\tif (this.items.has(key)) throw new Error(`Duplicate data view ${key}`);\n\t\tthis.items.set(key, spec);\n\t\treturn this;\n\t}\n\tlist() {\n\t\treturn [...this.items.values()];\n\t}\n\tget(name, version) {\n\t\tif (version != null) return this.items.get(`${name}.v${version}`);\n\t\tlet candidate;\n\t\tlet max = -Infinity;\n\t\tfor (const spec of this.items.values()) {\n\t\t\tif (spec.meta.name !== name) continue;\n\t\t\tif (spec.meta.version > max) {\n\t\t\t\tmax = spec.meta.version;\n\t\t\t\tcandidate = spec;\n\t\t\t}\n\t\t}\n\t\treturn candidate;\n\t}\n\t/** Filter data views by criteria. */\n\tfilter(criteria) {\n\t\treturn filterBy(this.list(), criteria);\n\t}\n\t/** List data views with specific tag. */\n\tlistByTag(tag) {\n\t\treturn this.list().filter((d) => d.meta.tags?.includes(tag));\n\t}\n\t/** List data views by owner. */\n\tlistByOwner(owner) {\n\t\treturn this.list().filter((d) => d.meta.owners?.includes(owner));\n\t}\n\t/** Group data views by key function. */\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.list(), keyFn);\n\t}\n\t/** Get unique tags from all data views. */\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.list());\n\t}\n};\nfunction dataViewKey(spec) {\n\treturn keyOf(spec);\n}\n\n//#endregion\nexport { DataViewRegistry, dataViewKey };"],"mappings":";;;AAGA,qBAAqB"}
@@ -1 +1,7 @@
1
- import "./registry-utils.js";
1
+ import { init_registry_utils } from "./registry-utils.js";
2
+
3
+ //#region ../../libs/contracts/dist/features.js
4
+ init_registry_utils();
5
+
6
+ //#endregion
7
+ //# sourceMappingURL=features.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features.js","names":[],"sources":["../../../../../../libs/contracts/dist/features.js"],"sourcesContent":["import { filterBy, getUniqueTags, groupBy, init_registry_utils } from \"./registry-utils.js\";\n\n//#region src/features.ts\ninit_registry_utils();\nfunction keyOf(f) {\n\treturn f.meta.key;\n}\n/** In-memory registry for FeatureModuleSpec. */\nvar FeatureRegistry = class {\n\titems = /* @__PURE__ */ new Map();\n\t/** Register a feature module. Throws when the key already exists. */\n\tregister(f) {\n\t\tconst key = keyOf(f);\n\t\tif (this.items.has(key)) throw new Error(`Duplicate feature ${key}`);\n\t\tthis.items.set(key, f);\n\t\treturn this;\n\t}\n\t/** List all registered feature modules. */\n\tlist() {\n\t\treturn [...this.items.values()];\n\t}\n\t/** Get a feature by its key (slug). */\n\tget(key) {\n\t\treturn this.items.get(key);\n\t}\n\t/** Filter features by criteria. */\n\tfilter(criteria) {\n\t\treturn filterBy(this.list(), criteria);\n\t}\n\t/** List features with specific tag. */\n\tlistByTag(tag) {\n\t\treturn this.list().filter((f) => f.meta.tags?.includes(tag));\n\t}\n\t/** List features by owner. */\n\tlistByOwner(owner) {\n\t\treturn this.list().filter((f) => f.meta.owners?.includes(owner));\n\t}\n\t/** Group features by key function. */\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.list(), keyFn);\n\t}\n\t/** Get unique tags from all features. */\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.list());\n\t}\n};\n/** Validate and register a feature against optional registries/descriptors. */\nfunction installFeature(feature, deps) {\n\tif (deps.ops && feature.operations) {\n\t\tfor (const o of feature.operations) if (!deps.ops.getSpec(o.name, o.version)) throw new Error(`installFeature: operation not found ${o.name}.v${o.version}`);\n\t}\n\tif (deps.presentations && feature.presentations) {\n\t\tfor (const p of feature.presentations) if (!deps.presentations.get(p.name, p.version)) throw new Error(`installFeature: presentation not found ${p.name}.v${p.version}`);\n\t}\n\tif (feature.presentationsTargets && deps.descriptorsV2) for (const req of feature.presentationsTargets) {\n\t\tconst d = deps.descriptorsV2.find((x) => x.meta.name === req.name && x.meta.version === req.version);\n\t\tif (!d) throw new Error(`installFeature: V2 descriptor not found ${req.name}.v${req.version}`);\n\t\tfor (const t of req.targets) if (!d.targets.includes(t)) throw new Error(`installFeature: descriptor ${req.name}.v${req.version} missing target ${t}`);\n\t}\n\tif (feature.opToPresentation && feature.opToPresentation.length > 0) for (const link of feature.opToPresentation) {\n\t\tif (deps.ops) {\n\t\t\tif (!deps.ops.getSpec(link.op.name, link.op.version)) throw new Error(`installFeature: linked op not found ${link.op.name}.v${link.op.version}`);\n\t\t}\n\t\tif (deps.presentations) {\n\t\t\tif (!deps.presentations.get(link.pres.name, link.pres.version)) throw new Error(`installFeature: linked presentation not found ${link.pres.name}.v${link.pres.version}`);\n\t\t}\n\t}\n\tif (deps.capabilities && feature.capabilities?.provides) {\n\t\tfor (const cap of feature.capabilities.provides) if (!deps.capabilities.get(cap.key, cap.version)) throw new Error(`installFeature: capability not registered ${cap.key}.v${cap.version}`);\n\t}\n\tif (feature.capabilities?.requires?.length) {\n\t\tif (!deps.capabilities) throw new Error(`installFeature: capability registry required to validate capability requirements for ${feature.meta.key}`);\n\t\tconst provided = feature.capabilities.provides ?? [];\n\t\tfor (const req of feature.capabilities.requires) if (!deps.capabilities.satisfies(req, provided)) throw new Error(`installFeature: capability requirement not satisfied ${req.key}${req.version ? `.v${req.version}` : \"\"}`);\n\t}\n\tdeps.features.register(feature);\n\treturn deps.features;\n}\n/** Ensure declared target requirements exist on the provided descriptors. */\nfunction validateFeatureTargetsV2(feature, descriptors) {\n\tif (!feature.presentationsTargets || feature.presentationsTargets.length === 0) return true;\n\tfor (const req of feature.presentationsTargets) {\n\t\tconst d = descriptors.find((x) => x.meta.name === req.name && x.meta.version === req.version);\n\t\tif (!d) throw new Error(`V2 descriptor not found ${req.name}.v${req.version}`);\n\t\tfor (const t of req.targets) if (!d.targets.includes(t)) throw new Error(`Descriptor ${req.name}.v${req.version} missing target ${t}`);\n\t}\n\treturn true;\n}\n\n//#endregion\nexport { FeatureRegistry, installFeature, validateFeatureTargetsV2 };"],"mappings":";;;AAGA,qBAAqB"}
@@ -1,2 +1,8 @@
1
1
  import "../events.js";
2
- import "../registry-utils.js";
2
+ import { init_registry_utils } from "../registry-utils.js";
3
+
4
+ //#region ../../libs/contracts/dist/operations/registry.js
5
+ init_registry_utils();
6
+
7
+ //#endregion
8
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","names":[],"sources":["../../../../../../../libs/contracts/dist/operations/registry.js"],"sourcesContent":["import { eventKey } from \"../events.js\";\nimport { GroupingStrategies, filterBy, getUniqueOwners, getUniqueTags, groupBy, init_registry_utils } from \"../registry-utils.js\";\nimport { isEmitDeclRef } from \"./operation.js\";\n\n//#region src/operations/registry.ts\ninit_registry_utils();\nfunction opKey(name, version) {\n\treturn `${name}.v${version}`;\n}\n/**\n* In-memory registry for ContractSpecs and their bound handlers.\n* Provides validation, policy enforcement, and guarded event emission at execute time.\n*/\nvar OperationSpecRegistry = class {\n\tspecs = /* @__PURE__ */ new Map();\n\thandlers = /* @__PURE__ */ new Map();\n\t/**\n\t* Registers a OperationSpec definition.\n\t*\n\t* @param spec - The contract specification to register.\n\t* @returns The registry instance for chaining.\n\t* @throws If a spec with the same name and version is already registered.\n\t*/\n\tregister(spec) {\n\t\tconst key = opKey(spec.meta.name, spec.meta.version);\n\t\tif (this.specs.has(key)) throw new Error(`Duplicate spec ${key}`);\n\t\tthis.specs.set(key, spec);\n\t\treturn this;\n\t}\n\t/**\n\t* Binds a runtime handler implementation to a previously registered spec.\n\t*\n\t* @param spec - The spec to bind to.\n\t* @param handler - The async function implementing the business logic.\n\t* @returns The registry instance for chaining.\n\t* @throws If the spec is not found or a handler is already bound.\n\t*/\n\tbind(spec, handler) {\n\t\tconst key = opKey(spec.meta.name, spec.meta.version);\n\t\tif (!this.specs.has(key)) throw new Error(`Cannot bind; spec not found: ${key}`);\n\t\tif (this.handlers.has(key)) throw new Error(`Handler already bound for ${key}`);\n\t\tthis.handlers.set(key, handler);\n\t\treturn this;\n\t}\n\t/**\n\t* Retrieves a registered spec by name and version.\n\t* If version is omitted, returns the highest version found.\n\t*\n\t* @param name - Operation name.\n\t* @param version - (Optional) Specific version.\n\t*/\n\tgetSpec(name, version) {\n\t\tif (version != null) return this.specs.get(opKey(name, version));\n\t\tlet found;\n\t\tlet maxV = -Infinity;\n\t\tfor (const [k, s] of this.specs.entries()) {\n\t\t\tif (!k.startsWith(`${name}.v`)) continue;\n\t\t\tif (s.meta.version > maxV) {\n\t\t\t\tmaxV = s.meta.version;\n\t\t\t\tfound = s;\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}\n\t/**\n\t* Retrieves the bound handler for a spec.\n\t*/\n\tgetHandler(name, version) {\n\t\tconst spec = this.getSpec(name, version);\n\t\tif (!spec) return void 0;\n\t\treturn this.handlers.get(opKey(spec.meta.name, spec.meta.version));\n\t}\n\t/** Iterate all registered specs. */\n\tlistSpecs() {\n\t\treturn [...this.specs.values()];\n\t}\n\t/** Iterate all bound operations (spec+handler). */\n\tlistBound() {\n\t\tconst out = [];\n\t\tfor (const [k, spec] of this.specs.entries()) {\n\t\t\tconst h = this.handlers.get(k);\n\t\t\tif (h) out.push({\n\t\t\t\tspec,\n\t\t\t\thandler: h\n\t\t\t});\n\t\t}\n\t\treturn out;\n\t}\n\t/**\n\t* Filter specs by criteria.\n\t*/\n\tfilter(criteria) {\n\t\treturn filterBy(this.listSpecs(), criteria);\n\t}\n\t/**\n\t* List specs with specific tag.\n\t*/\n\tlistByTag(tag) {\n\t\treturn this.listSpecs().filter((s) => s.meta.tags?.includes(tag));\n\t}\n\t/**\n\t* List specs by owner.\n\t*/\n\tlistByOwner(owner) {\n\t\treturn this.listSpecs().filter((s) => s.meta.owners?.includes(owner));\n\t}\n\t/**\n\t* Group specs by key function.\n\t*/\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.listSpecs(), keyFn);\n\t}\n\t/**\n\t* Group by domain (first segment of name).\n\t*/\n\tgroupByDomain() {\n\t\treturn this.groupBy(GroupingStrategies.byDomain);\n\t}\n\t/**\n\t* Group by tag.\n\t*/\n\tgroupByTag() {\n\t\treturn this.groupBy(GroupingStrategies.byTag);\n\t}\n\t/**\n\t* Get unique tags from all specs.\n\t*/\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.listSpecs());\n\t}\n\t/**\n\t* Get unique owners from all specs.\n\t*/\n\tgetUniqueOwners() {\n\t\treturn getUniqueOwners(this.listSpecs());\n\t}\n\t/**\n\t* Execute an operation by name/version with full runtime protections:\n\t* 1. Validates input against Zod schema.\n\t* 2. Enforces policy (Auth, RBAC, Rate Limits) via PDP.\n\t* 3. Guards event emission to ensure only declared events are sent.\n\t* 4. Validates output against Zod schema (if applicable).\n\t* 5. Tracks telemetry (success/failure).\n\t*\n\t* @param name - Operation name.\n\t* @param version - Operation version (optional, defaults to latest).\n\t* @param rawInput - The raw input payload (e.g. from JSON body).\n\t* @param ctx - The runtime context (actor, tenant, etc.).\n\t*/\n\tasync execute(name, version, rawInput, ctx) {\n\t\tconst baseSpec = this.getSpec(name, version);\n\t\tif (!baseSpec) throw new Error(`Spec not found for ${name}${version ? `.v${version}` : \"\"}`);\n\t\tconst spec = await ctx.specVariantResolver?.resolve({\n\t\t\tname: baseSpec.meta.name,\n\t\t\tversion: baseSpec.meta.version,\n\t\t\tkind: baseSpec.meta.kind\n\t\t}, ctx) ?? baseSpec;\n\t\tlet key = opKey(spec.meta.name, spec.meta.version);\n\t\tlet handler = this.handlers.get(key);\n\t\tif (!handler) {\n\t\t\tconst fallbackKey = opKey(baseSpec.meta.name, baseSpec.meta.version);\n\t\t\thandler = this.handlers.get(fallbackKey);\n\t\t\tkey = fallbackKey;\n\t\t}\n\t\tif (!handler) throw new Error(`No handler bound for ${key}`);\n\t\tconst parsedInput = spec.io.input?.getZod().parse(rawInput);\n\t\tif (ctx.decide) {\n\t\t\tconst [service, command] = spec.meta.name.split(\".\");\n\t\t\tif (!service || !command) throw new Error(`Invalid spec name: ${spec.meta.name}`);\n\t\t\tconst decision = await ctx.decide({\n\t\t\t\tservice,\n\t\t\t\tcommand,\n\t\t\t\tversion: spec.meta.version,\n\t\t\t\tactor: ctx.actor ?? \"anonymous\",\n\t\t\t\tchannel: ctx.channel,\n\t\t\t\troles: ctx.roles,\n\t\t\t\torganizationId: ctx.organizationId,\n\t\t\t\tuserId: ctx.userId,\n\t\t\t\tflags: []\n\t\t\t});\n\t\t\tif (decision.effect === \"deny\") throw new Error(`PolicyDenied: ${spec.meta.name}.v${spec.meta.version}`);\n\t\t\tif (decision.rateLimit && ctx.rateLimit) {\n\t\t\t\tconst key$1 = decision.rateLimit.key ?? \"default\";\n\t\t\t\tconst rpm = decision.rateLimit.rpm ?? 60;\n\t\t\t\tawait ctx.rateLimit(key$1, 1, rpm);\n\t\t\t}\n\t\t}\n\t\tconst allowedEvents = /* @__PURE__ */ new Map();\n\t\tif (spec.sideEffects?.emits) for (const e of spec.sideEffects.emits) if (isEmitDeclRef(e)) allowedEvents.set(`${e.ref.name}.v${e.ref.version}`, e.ref.payload);\n\t\telse allowedEvents.set(`${e.name}.v${e.version}`, e.payload);\n\t\tconst emitGuard = async (eventName, eventVersion, payload) => {\n\t\t\tconst key2 = eventKey(eventName, eventVersion);\n\t\t\tconst schema = allowedEvents.get(key2);\n\t\t\tif (!schema) throw new Error(`UndeclaredEvent: ${key2} not allowed by ${opKey(spec.meta.name, spec.meta.version)}`);\n\t\t\tconst parsed = schema.getZod().parse(payload);\n\t\t\tawait ctx.eventPublisher?.({\n\t\t\t\tname: eventName,\n\t\t\t\tversion: eventVersion,\n\t\t\t\tpayload: parsed,\n\t\t\t\ttraceId: ctx.traceId\n\t\t\t});\n\t\t};\n\t\tif (ctx.appConfig) {\n\t\t\tif (!ctx.branding) ctx.branding = ctx.appConfig.branding;\n\t\t\tif (!ctx.translation) ctx.translation = { config: ctx.appConfig.translation };\n\t\t\telse if (!ctx.translation.config) ctx.translation = {\n\t\t\t\t...ctx.translation,\n\t\t\t\tconfig: ctx.appConfig.translation\n\t\t\t};\n\t\t}\n\t\tconst telemetryContext = ctx.telemetry;\n\t\tconst trackTelemetry = async (trigger, details) => {\n\t\t\tif (!telemetryContext || !trigger?.event) return;\n\t\t\ttry {\n\t\t\t\tconst props = trigger.properties?.(details) ?? {};\n\t\t\t\tawait telemetryContext.track(trigger.event.name, trigger.event.version ?? 1, props, {\n\t\t\t\t\ttenantId: ctx.organizationId ?? void 0,\n\t\t\t\t\torganizationId: ctx.organizationId,\n\t\t\t\t\tuserId: ctx.userId,\n\t\t\t\t\tactor: ctx.actor,\n\t\t\t\t\tchannel: ctx.channel,\n\t\t\t\t\tmetadata: ctx.traceId ? { traceId: ctx.traceId } : void 0\n\t\t\t\t});\n\t\t\t} catch (_error) {}\n\t\t};\n\t\tlet result;\n\t\ttry {\n\t\t\tresult = await handler(parsedInput, {\n\t\t\t\t...ctx,\n\t\t\t\t__emitGuard__: emitGuard\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tif (spec.telemetry?.failure) await trackTelemetry(spec.telemetry.failure, {\n\t\t\t\tinput: parsedInput ?? rawInput,\n\t\t\t\terror\n\t\t\t});\n\t\t\tthrow error;\n\t\t}\n\t\tif (spec.telemetry?.success) await trackTelemetry(spec.telemetry.success, {\n\t\t\tinput: parsedInput ?? rawInput,\n\t\t\toutput: result\n\t\t});\n\t\tconst outputModel = spec.io.output;\n\t\tif (outputModel?.getZod) return outputModel.getZod().parse(result);\n\t\treturn result;\n\t}\n};\n\n//#endregion\nexport { OperationSpecRegistry, opKey };"],"mappings":";;;;AAKA,qBAAqB"}
@@ -1,2 +1,8 @@
1
- import "../registry-utils.js";
1
+ import { init_registry_utils } from "../registry-utils.js";
2
2
  import z from "zod";
3
+
4
+ //#region ../../libs/contracts/dist/presentations/presentations.js
5
+ init_registry_utils();
6
+
7
+ //#endregion
8
+ //# sourceMappingURL=presentations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentations.js","names":[],"sources":["../../../../../../../libs/contracts/dist/presentations/presentations.js"],"sourcesContent":["import { filterBy, getUniqueTags, groupBy, init_registry_utils } from \"../registry-utils.js\";\nimport z from \"zod\";\n\n//#region src/presentations/presentations.ts\ninit_registry_utils();\nfunction keyOf(p) {\n\treturn `${p.meta.name}.v${p.meta.version}`;\n}\n/** In-memory registry for V1 PresentationSpec. */\nvar PresentationRegistry = class {\n\titems = /* @__PURE__ */ new Map();\n\tconstructor(items) {\n\t\tif (items) items.forEach((p) => this.register(p));\n\t}\n\tregister(p) {\n\t\tconst key = keyOf(p);\n\t\tif (this.items.has(key)) throw new Error(`Duplicate presentation ${key}`);\n\t\tthis.items.set(key, p);\n\t\treturn this;\n\t}\n\tlist() {\n\t\treturn [...this.items.values()];\n\t}\n\tget(name, version) {\n\t\tif (version != null) return this.items.get(`${name}.v${version}`);\n\t\tlet candidate;\n\t\tlet max = -Infinity;\n\t\tfor (const [k, p] of this.items.entries()) {\n\t\t\tif (!k.startsWith(`${name}.v`)) continue;\n\t\t\tif (p.meta.version > max) {\n\t\t\t\tmax = p.meta.version;\n\t\t\t\tcandidate = p;\n\t\t\t}\n\t\t}\n\t\treturn candidate;\n\t}\n\t/** Filter presentations by criteria. */\n\tfilter(criteria) {\n\t\treturn filterBy(this.list(), criteria);\n\t}\n\t/** List presentations with specific tag. */\n\tlistByTag(tag) {\n\t\treturn this.list().filter((p) => p.meta.tags?.includes(tag));\n\t}\n\t/** List presentations by owner. */\n\tlistByOwner(owner) {\n\t\treturn this.list().filter((p) => p.meta.owners?.includes(owner));\n\t}\n\t/** Group presentations by key function. */\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.list(), keyFn);\n\t}\n\t/** Get unique tags from all presentations. */\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.list());\n\t}\n};\nfunction jsonSchemaForPresentation(p) {\n\tconst base = {\n\t\tmeta: {\n\t\t\tname: p.meta.name,\n\t\t\tversion: p.meta.version,\n\t\t\tstability: p.meta.stability ?? \"stable\",\n\t\t\ttags: p.meta.tags ?? [],\n\t\t\tdescription: p.meta.description ?? \"\"\n\t\t},\n\t\tkind: p.content.kind\n\t};\n\tif (p.content.kind === \"web_component\") return {\n\t\t...base,\n\t\tframework: p.content.framework,\n\t\tcomponentKey: p.content.componentKey,\n\t\tprops: z.toJSONSchema(p.content.props.getZod())\n\t};\n\tif (p.content.kind === \"markdown\") return {\n\t\t...base,\n\t\tcontent: p.content.content,\n\t\tresourceUri: p.content.resourceUri\n\t};\n\treturn {\n\t\t...base,\n\t\tmimeType: p.content.mimeType,\n\t\tmodel: z.toJSONSchema(p.content.model.getZod())\n\t};\n}\n\n//#endregion\nexport { PresentationRegistry, jsonSchemaForPresentation };"],"mappings":";;;;AAIA,qBAAqB"}
@@ -1 +1,7 @@
1
- import "../registry-utils.js";
1
+ import { init_registry_utils } from "../registry-utils.js";
2
+
3
+ //#region ../../libs/contracts/dist/workflow/spec.js
4
+ init_registry_utils();
5
+
6
+ //#endregion
7
+ //# sourceMappingURL=spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec.js","names":[],"sources":["../../../../../../../libs/contracts/dist/workflow/spec.js"],"sourcesContent":["import { filterBy, getUniqueTags, groupBy, init_registry_utils } from \"../registry-utils.js\";\n\n//#region src/workflow/spec.ts\ninit_registry_utils();\nfunction workflowKey(meta) {\n\treturn `${meta.name}.v${meta.version}`;\n}\nvar WorkflowRegistry = class {\n\titems = /* @__PURE__ */ new Map();\n\tregister(spec) {\n\t\tconst key = workflowKey(spec.meta);\n\t\tif (this.items.has(key)) throw new Error(`Duplicate workflow ${key}`);\n\t\tthis.items.set(key, spec);\n\t\treturn this;\n\t}\n\tlist() {\n\t\treturn [...this.items.values()];\n\t}\n\tget(name, version) {\n\t\tif (version != null) return this.items.get(`${name}.v${version}`);\n\t\tlet candidate;\n\t\tlet max = -Infinity;\n\t\tfor (const spec of this.items.values()) {\n\t\t\tif (spec.meta.name !== name) continue;\n\t\t\tif (spec.meta.version > max) {\n\t\t\t\tmax = spec.meta.version;\n\t\t\t\tcandidate = spec;\n\t\t\t}\n\t\t}\n\t\treturn candidate;\n\t}\n\t/** Filter workflows by criteria. */\n\tfilter(criteria) {\n\t\treturn filterBy(this.list(), criteria);\n\t}\n\t/** List workflows with specific tag. */\n\tlistByTag(tag) {\n\t\treturn this.list().filter((w) => w.meta.tags?.includes(tag));\n\t}\n\t/** List workflows by owner. */\n\tlistByOwner(owner) {\n\t\treturn this.list().filter((w) => w.meta.owners?.includes(owner));\n\t}\n\t/** Group workflows by key function. */\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.list(), keyFn);\n\t}\n\t/** Get unique tags from all workflows. */\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.list());\n\t}\n};\n\n//#endregion\nexport { WorkflowRegistry };"],"mappings":";;;AAGA,qBAAqB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.kb-update-pipeline",
3
- "version": "0.0.0-canary-20251221164004",
3
+ "version": "0.0.0-canary-20251221185840",
4
4
  "description": "Example: KB update automation pipeline with HITL review and auditability.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -36,15 +36,15 @@
36
36
  "test": "bun test"
37
37
  },
38
38
  "dependencies": {
39
- "@lssm/lib.contracts": "0.0.0-canary-20251221164004",
40
- "@lssm/lib.identity-rbac": "0.0.0-canary-20251221164004",
41
- "@lssm/lib.schema": "0.0.0-canary-20251221164004",
42
- "@lssm/module.notifications": "0.0.0-canary-20251221164004",
39
+ "@lssm/lib.contracts": "0.0.0-canary-20251221185840",
40
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251221185840",
41
+ "@lssm/lib.schema": "0.0.0-canary-20251221185840",
42
+ "@lssm/module.notifications": "0.0.0-canary-20251221185840",
43
43
  "zod": "^4.1.13"
44
44
  },
45
45
  "devDependencies": {
46
- "@lssm/tool.tsdown": "0.0.0-canary-20251221164004",
47
- "@lssm/tool.typescript": "0.0.0-canary-20251221164004",
46
+ "@lssm/tool.tsdown": "0.0.0-canary-20251221185840",
47
+ "@lssm/tool.typescript": "0.0.0-canary-20251221185840",
48
48
  "tsdown": "^0.18.1",
49
49
  "typescript": "^5.9.3"
50
50
  },