@contractspec/lib.contracts 0.0.0-canary-20260119225944 → 0.0.0-canary-20260128200020

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 (155) hide show
  1. package/dist/app-config/contracts.d.ts +51 -51
  2. package/dist/app-config/events.d.ts +27 -27
  3. package/dist/app-config/lifecycle-contracts.d.ts +55 -55
  4. package/dist/app-config/runtime.d.ts +1 -1
  5. package/dist/app-config/spec.d.ts +2 -2
  6. package/dist/capabilities/capabilities.d.ts +64 -5
  7. package/dist/capabilities/capabilities.js +125 -0
  8. package/dist/capabilities/context.d.ts +88 -0
  9. package/dist/capabilities/context.js +87 -0
  10. package/dist/capabilities/docs/capabilities.docblock.js +191 -2
  11. package/dist/capabilities/guards.d.ts +110 -0
  12. package/dist/capabilities/guards.js +146 -0
  13. package/dist/capabilities/index.d.ts +4 -1
  14. package/dist/capabilities/index.js +4 -1
  15. package/dist/capabilities/validation.d.ts +76 -0
  16. package/dist/capabilities/validation.js +141 -0
  17. package/dist/client/react/feature-render.d.ts +2 -2
  18. package/dist/contract-registry/schemas.d.ts +2 -2
  19. package/dist/data-views/data-views.d.ts +2 -1
  20. package/dist/data-views/index.d.ts +2 -1
  21. package/dist/data-views/registry.d.ts +1 -1
  22. package/dist/data-views/runtime.d.ts +1 -1
  23. package/dist/data-views/spec.d.ts +2 -8
  24. package/dist/data-views/types.d.ts +1 -1
  25. package/dist/docs/capabilities/documentationSystem.capability.d.ts +7 -0
  26. package/dist/docs/capabilities/documentationSystem.capability.js +71 -0
  27. package/dist/docs/capabilities/index.d.ts +2 -0
  28. package/dist/docs/capabilities/index.js +3 -0
  29. package/dist/docs/commands/docsGenerate.command.d.ts +95 -0
  30. package/dist/docs/commands/docsGenerate.command.js +139 -0
  31. package/dist/docs/commands/docsPublish.command.d.ts +64 -0
  32. package/dist/docs/commands/docsPublish.command.js +104 -0
  33. package/dist/docs/commands/index.d.ts +3 -0
  34. package/dist/docs/commands/index.js +4 -0
  35. package/dist/docs/constants.d.ts +15 -0
  36. package/dist/docs/constants.js +18 -0
  37. package/dist/docs/contracts.d.ts +442 -0
  38. package/dist/docs/contracts.js +58 -0
  39. package/dist/docs/ensure-docblocks.d.ts +1 -0
  40. package/dist/docs/ensure-docblocks.js +1 -0
  41. package/dist/docs/events/docsGenerated.event.d.ts +62 -0
  42. package/dist/docs/events/docsGenerated.event.js +53 -0
  43. package/dist/docs/events/docsPublished.event.d.ts +70 -0
  44. package/dist/docs/events/docsPublished.event.js +57 -0
  45. package/dist/docs/events/index.d.ts +3 -0
  46. package/dist/docs/events/index.js +4 -0
  47. package/dist/docs/forms/docsSearch.form.d.ts +22 -0
  48. package/dist/docs/forms/docsSearch.form.js +113 -0
  49. package/dist/docs/forms/index.d.ts +2 -0
  50. package/dist/docs/forms/index.js +3 -0
  51. package/dist/docs/index.d.ts +23 -2
  52. package/dist/docs/index.js +24 -1
  53. package/dist/docs/presentations/docsLayout.presentation.d.ts +7 -0
  54. package/dist/docs/presentations/docsLayout.presentation.js +32 -0
  55. package/dist/docs/presentations/docsReferencePage.presentation.d.ts +7 -0
  56. package/dist/docs/presentations/docsReferencePage.presentation.js +32 -0
  57. package/dist/docs/presentations/index.d.ts +3 -0
  58. package/dist/docs/presentations/index.js +4 -0
  59. package/dist/docs/queries/contractReference.query.d.ts +217 -0
  60. package/dist/docs/queries/contractReference.query.js +122 -0
  61. package/dist/docs/queries/docsIndex.query.d.ts +272 -0
  62. package/dist/docs/queries/docsIndex.query.js +130 -0
  63. package/dist/docs/queries/index.d.ts +3 -0
  64. package/dist/docs/queries/index.js +4 -0
  65. package/dist/docs/tech/cli.docblock.js +10 -0
  66. package/dist/docs/tech/docs-system.docblock.d.ts +1 -0
  67. package/dist/docs/tech/docs-system.docblock.js +128 -0
  68. package/dist/docs/views/contractReference.dataView.d.ts +7 -0
  69. package/dist/docs/views/contractReference.dataView.js +80 -0
  70. package/dist/docs/views/docsIndex.dataView.d.ts +7 -0
  71. package/dist/docs/views/docsIndex.dataView.js +136 -0
  72. package/dist/docs/views/exampleCatalog.dataView.d.ts +7 -0
  73. package/dist/docs/views/exampleCatalog.dataView.js +91 -0
  74. package/dist/docs/views/index.d.ts +4 -0
  75. package/dist/docs/views/index.js +5 -0
  76. package/dist/events.d.ts +80 -14
  77. package/dist/events.js +33 -3
  78. package/dist/examples/schema.d.ts +19 -19
  79. package/dist/examples/types.d.ts +1 -1
  80. package/dist/experiments/spec.d.ts +9 -6
  81. package/dist/features/index.d.ts +2 -2
  82. package/dist/features/install.d.ts +4 -4
  83. package/dist/features/types.d.ts +28 -32
  84. package/dist/forms/forms.d.ts +1 -1
  85. package/dist/index.d.ts +54 -28
  86. package/dist/index.js +28 -3
  87. package/dist/install.d.ts +1 -1
  88. package/dist/integrations/openbanking/contracts/accounts.d.ts +67 -67
  89. package/dist/integrations/openbanking/contracts/balances.d.ts +35 -35
  90. package/dist/integrations/openbanking/contracts/transactions.d.ts +49 -49
  91. package/dist/integrations/openbanking/models.d.ts +55 -55
  92. package/dist/integrations/operations.d.ts +103 -103
  93. package/dist/integrations/spec.d.ts +2 -2
  94. package/dist/jsonschema.d.ts +1 -1
  95. package/dist/knowledge/operations.d.ts +67 -67
  96. package/dist/knowledge/spec.d.ts +1 -1
  97. package/dist/llm/exporters.d.ts +4 -4
  98. package/dist/llm/types.d.ts +1 -1
  99. package/dist/markdown.d.ts +2 -2
  100. package/dist/onboarding-base.d.ts +29 -29
  101. package/dist/operations/operation.d.ts +8 -2
  102. package/dist/operations/registry.d.ts +2 -2
  103. package/dist/ownership.d.ts +133 -8
  104. package/dist/ownership.js +25 -0
  105. package/dist/policy/context.d.ts +237 -0
  106. package/dist/policy/context.js +227 -0
  107. package/dist/policy/guards.d.ts +145 -0
  108. package/dist/policy/guards.js +254 -0
  109. package/dist/policy/index.d.ts +12 -1
  110. package/dist/policy/index.js +11 -1
  111. package/dist/policy/spec.d.ts +7 -4
  112. package/dist/policy/validation.d.ts +67 -0
  113. package/dist/policy/validation.js +307 -0
  114. package/dist/presentations/presentations.d.ts +6 -0
  115. package/dist/presentations/registry.d.ts +1 -1
  116. package/dist/registry.d.ts +1 -1
  117. package/dist/serialization/index.d.ts +3 -0
  118. package/dist/serialization/index.js +3 -0
  119. package/dist/serialization/serializers.d.ts +40 -0
  120. package/dist/serialization/serializers.js +148 -0
  121. package/dist/serialization/types.d.ts +103 -0
  122. package/dist/serialization/types.js +0 -0
  123. package/dist/server/rest-elysia.d.ts +1 -1
  124. package/dist/server/rest-express.d.ts +1 -1
  125. package/dist/server/rest-generic.d.ts +1 -1
  126. package/dist/server/rest-next-app.d.ts +1 -1
  127. package/dist/server/rest-next-mcp.d.ts +1 -1
  128. package/dist/server/rest-next-pages.d.ts +1 -1
  129. package/dist/telemetry/spec.d.ts +1 -1
  130. package/dist/tests/runner.d.ts +1 -1
  131. package/dist/tests/spec.d.ts +17 -12
  132. package/dist/themes.d.ts +8 -5
  133. package/dist/translations/index.d.ts +6 -0
  134. package/dist/translations/index.js +5 -0
  135. package/dist/translations/registry.d.ts +144 -0
  136. package/dist/translations/registry.js +223 -0
  137. package/dist/translations/spec.d.ts +126 -0
  138. package/dist/translations/spec.js +31 -0
  139. package/dist/translations/validation.d.ts +85 -0
  140. package/dist/translations/validation.js +328 -0
  141. package/dist/types.d.ts +140 -14
  142. package/dist/versioning/index.d.ts +2 -1
  143. package/dist/versioning/index.js +2 -1
  144. package/dist/versioning/refs.d.ts +179 -0
  145. package/dist/versioning/refs.js +161 -0
  146. package/dist/workflow/context.d.ts +191 -0
  147. package/dist/workflow/context.js +227 -0
  148. package/dist/workflow/index.d.ts +6 -3
  149. package/dist/workflow/index.js +4 -2
  150. package/dist/workflow/spec.d.ts +4 -11
  151. package/dist/workflow/validation.d.ts +64 -2
  152. package/dist/workflow/validation.js +194 -1
  153. package/dist/workspace-config/contractsrc-schema.js +1 -0
  154. package/dist/workspace-config/contractsrc-types.d.ts +3 -3
  155. package/package.json +47 -8
@@ -171,6 +171,199 @@ function detectCycles(adjacency, issues) {
171
171
  };
172
172
  for (const node of adjacency.keys()) dfs(node);
173
173
  }
174
+ /**
175
+ * Validate workflow consistency across registries.
176
+ *
177
+ * Checks that:
178
+ * - All workflow specs are internally valid
179
+ * - Operations referenced by steps exist
180
+ * - Forms referenced by steps exist
181
+ * - Capabilities required by steps exist
182
+ *
183
+ * @param deps - Registry dependencies
184
+ * @returns Validation result
185
+ */
186
+ function validateWorkflowConsistency(deps) {
187
+ const issues = [];
188
+ for (const workflow of deps.workflows.list()) {
189
+ const specIssues = validateWorkflowSpec(workflow, {
190
+ operations: deps.operations,
191
+ forms: deps.forms
192
+ });
193
+ issues.push(...specIssues.map((i) => ({
194
+ ...i,
195
+ message: `[${workflow.meta.key}.v${workflow.meta.version}] ${i.message}`
196
+ })));
197
+ if (deps.capabilities) {
198
+ for (const step of workflow.definition.steps) for (const capRef of step.requiredCapabilities ?? []) if (!deps.capabilities.get(capRef.key, capRef.version)) issues.push({
199
+ level: "error",
200
+ message: `[${workflow.meta.key}.v${workflow.meta.version}] Step "${step.id}" references unknown capability "${capRef.key}.v${capRef.version}"`,
201
+ context: {
202
+ stepId: step.id,
203
+ capability: capRef
204
+ }
205
+ });
206
+ }
207
+ if (workflow.definition.compensation && deps.operations) {
208
+ for (const compStep of workflow.definition.compensation.steps) if (!deps.operations.get(compStep.operation.key, compStep.operation.version)) issues.push({
209
+ level: "error",
210
+ message: `[${workflow.meta.key}.v${workflow.meta.version}] Compensation for step "${compStep.stepId}" references unknown operation "${compStep.operation.key}.v${compStep.operation.version}"`,
211
+ context: {
212
+ stepId: compStep.stepId,
213
+ operation: compStep.operation
214
+ }
215
+ });
216
+ }
217
+ if (workflow.definition.sla?.stepDurationMs) {
218
+ const stepIds = new Set(workflow.definition.steps.map((s) => s.id));
219
+ for (const stepId of Object.keys(workflow.definition.sla.stepDurationMs)) if (!stepIds.has(stepId)) issues.push({
220
+ level: "warning",
221
+ message: `[${workflow.meta.key}.v${workflow.meta.version}] SLA references unknown step "${stepId}"`,
222
+ context: { stepId }
223
+ });
224
+ }
225
+ }
226
+ return {
227
+ valid: issues.filter((i) => i.level === "error").length === 0,
228
+ issues
229
+ };
230
+ }
231
+ /**
232
+ * Assert workflow consistency across registries.
233
+ *
234
+ * @param deps - Registry dependencies
235
+ * @throws {WorkflowValidationError} If validation fails
236
+ */
237
+ function assertWorkflowConsistency(deps) {
238
+ const result = validateWorkflowConsistency(deps);
239
+ if (!result.valid) throw new WorkflowValidationError("Workflow consistency check failed", result.issues);
240
+ }
241
+ /**
242
+ * Validate SLA configuration is reasonable.
243
+ *
244
+ * @param spec - Workflow spec to validate
245
+ * @returns Array of validation issues
246
+ */
247
+ function validateSlaConfig(spec) {
248
+ const issues = [];
249
+ const sla = spec.definition.sla;
250
+ if (!sla) return issues;
251
+ if (sla.totalDurationMs !== void 0 && sla.totalDurationMs <= 0) issues.push({
252
+ level: "error",
253
+ message: "SLA totalDurationMs must be positive",
254
+ context: { totalDurationMs: sla.totalDurationMs }
255
+ });
256
+ if (sla.stepDurationMs) {
257
+ for (const [stepId, duration] of Object.entries(sla.stepDurationMs)) if (duration <= 0) issues.push({
258
+ level: "error",
259
+ message: `SLA stepDurationMs for "${stepId}" must be positive`,
260
+ context: {
261
+ stepId,
262
+ duration
263
+ }
264
+ });
265
+ const stepDurationsSum = Object.values(sla.stepDurationMs).reduce((sum, d) => sum + d, 0);
266
+ if (sla.totalDurationMs && stepDurationsSum > sla.totalDurationMs) issues.push({
267
+ level: "warning",
268
+ message: `Sum of step durations (${stepDurationsSum}ms) exceeds total duration (${sla.totalDurationMs}ms)`,
269
+ context: {
270
+ stepDurationsSum,
271
+ totalDurationMs: sla.totalDurationMs
272
+ }
273
+ });
274
+ }
275
+ return issues;
276
+ }
277
+ /**
278
+ * Validate compensation configuration.
279
+ *
280
+ * @param spec - Workflow spec to validate
281
+ * @returns Array of validation issues
282
+ */
283
+ function validateCompensation(spec) {
284
+ const issues = [];
285
+ const compensation = spec.definition.compensation;
286
+ if (!compensation) return issues;
287
+ const stepIds = new Set(spec.definition.steps.map((s) => s.id));
288
+ const coveredSteps = /* @__PURE__ */ new Set();
289
+ for (const compStep of compensation.steps) {
290
+ if (!stepIds.has(compStep.stepId)) issues.push({
291
+ level: "error",
292
+ message: `Compensation references unknown step "${compStep.stepId}"`,
293
+ context: { stepId: compStep.stepId }
294
+ });
295
+ if (coveredSteps.has(compStep.stepId)) issues.push({
296
+ level: "warning",
297
+ message: `Multiple compensation handlers for step "${compStep.stepId}"`,
298
+ context: { stepId: compStep.stepId }
299
+ });
300
+ coveredSteps.add(compStep.stepId);
301
+ if (!compStep.operation?.key || !compStep.operation?.version) issues.push({
302
+ level: "error",
303
+ message: `Compensation for step "${compStep.stepId}" must specify operation with key and version`,
304
+ context: { stepId: compStep.stepId }
305
+ });
306
+ }
307
+ const automationSteps = spec.definition.steps.filter((s) => s.type === "automation");
308
+ for (const step of automationSteps) if (!coveredSteps.has(step.id)) issues.push({
309
+ level: "warning",
310
+ message: `Automation step "${step.id}" has no compensation handler`,
311
+ context: { stepId: step.id }
312
+ });
313
+ return issues;
314
+ }
315
+ /**
316
+ * Validate retry configuration.
317
+ *
318
+ * @param spec - Workflow spec to validate
319
+ * @returns Array of validation issues
320
+ */
321
+ function validateRetryConfig(spec) {
322
+ const issues = [];
323
+ for (const step of spec.definition.steps) {
324
+ if (!step.retry) continue;
325
+ if (step.retry.maxAttempts <= 0) issues.push({
326
+ level: "error",
327
+ message: `Step "${step.id}" retry maxAttempts must be positive`,
328
+ context: {
329
+ stepId: step.id,
330
+ maxAttempts: step.retry.maxAttempts
331
+ }
332
+ });
333
+ if (step.retry.delayMs <= 0) issues.push({
334
+ level: "error",
335
+ message: `Step "${step.id}" retry delayMs must be positive`,
336
+ context: {
337
+ stepId: step.id,
338
+ delayMs: step.retry.delayMs
339
+ }
340
+ });
341
+ if (step.retry.maxDelayMs !== void 0 && step.retry.maxDelayMs < step.retry.delayMs) issues.push({
342
+ level: "warning",
343
+ message: `Step "${step.id}" retry maxDelayMs (${step.retry.maxDelayMs}) is less than delayMs (${step.retry.delayMs})`,
344
+ context: { stepId: step.id }
345
+ });
346
+ }
347
+ return issues;
348
+ }
349
+ /**
350
+ * Perform comprehensive workflow validation.
351
+ *
352
+ * @param spec - Workflow spec to validate
353
+ * @param options - Validation options
354
+ * @returns Validation result
355
+ */
356
+ function validateWorkflowComprehensive(spec, options = {}) {
357
+ const issues = [];
358
+ issues.push(...validateWorkflowSpec(spec, options));
359
+ issues.push(...validateSlaConfig(spec));
360
+ issues.push(...validateCompensation(spec));
361
+ issues.push(...validateRetryConfig(spec));
362
+ return {
363
+ valid: issues.filter((i) => i.level === "error").length === 0,
364
+ issues
365
+ };
366
+ }
174
367
 
175
368
  //#endregion
176
- export { WorkflowValidationError, assertWorkflowSpecValid, validateWorkflowSpec };
369
+ export { WorkflowValidationError, assertWorkflowConsistency, assertWorkflowSpecValid, validateCompensation, validateRetryConfig, validateSlaConfig, validateWorkflowComprehensive, validateWorkflowConsistency, validateWorkflowSpec };
@@ -374,6 +374,7 @@ const ContractsrcSchema = z$2.object({
374
374
  "claude-code",
375
375
  "openai-codex",
376
376
  "claude-agent-sdk",
377
+ "opencode",
377
378
  "opencode-sdk"
378
379
  ]).default("simple").optional(),
379
380
  customEndpoint: z$2.url().nullable().optional(),
@@ -238,7 +238,7 @@ interface LintRules {
238
238
  'require-owners-format'?: RuleSeverity;
239
239
  /** Require event names to use past tense */
240
240
  'event-past-tense'?: RuleSeverity;
241
- /** Warn on TODO comments */
241
+ /** Warn on placeholder comments */
242
242
  'no-todo'?: RuleSeverity;
243
243
  /** Require workflow transitions */
244
244
  'workflow-transitions'?: RuleSeverity;
@@ -293,7 +293,7 @@ type HooksConfig = Record<string, string[]>;
293
293
  interface ContractsrcFileConfig {
294
294
  aiProvider?: 'claude' | 'openai' | 'ollama' | 'custom';
295
295
  aiModel?: string;
296
- agentMode?: 'simple' | 'cursor' | 'claude-code' | 'openai-codex' | 'claude-agent-sdk' | 'opencode-sdk';
296
+ agentMode?: 'simple' | 'cursor' | 'claude-code' | 'openai-codex' | 'claude-agent-sdk' | 'opencode' | 'opencode-sdk';
297
297
  customEndpoint?: string | null;
298
298
  customApiKey?: string | null;
299
299
  outputDir?: string;
@@ -321,7 +321,7 @@ interface ContractsrcFileConfig {
321
321
  */
322
322
  interface ResolvedContractsrcConfig extends ContractsrcFileConfig {
323
323
  aiProvider: 'claude' | 'openai' | 'ollama' | 'custom';
324
- agentMode: 'simple' | 'cursor' | 'claude-code' | 'openai-codex' | 'claude-agent-sdk' | 'opencode-sdk';
324
+ agentMode: 'simple' | 'cursor' | 'claude-code' | 'openai-codex' | 'claude-agent-sdk' | 'opencode' | 'opencode-sdk';
325
325
  outputDir: string;
326
326
  conventions: {
327
327
  models: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.contracts",
3
- "version": "0.0.0-canary-20260119225944",
3
+ "version": "0.0.0-canary-20260128200020",
4
4
  "description": "Core contract specification definitions and runtime",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -14,7 +14,7 @@
14
14
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
15
15
  "publish:pkg:canary": "bun publish:pkg --tag canary",
16
16
  "build": "bun build:types && bun build:bundle",
17
- "build:bundle": "tsdown",
17
+ "build:bundle": "NODE_OPTIONS=--max-old-space-size=8192 tsdown",
18
18
  "build:types": "tsc --noEmit",
19
19
  "dev": "bun build:bundle --watch",
20
20
  "registry:build": "bun run scripts/build-registry.ts",
@@ -25,18 +25,19 @@
25
25
  "test": "bun test"
26
26
  },
27
27
  "devDependencies": {
28
- "@contractspec/tool.tsdown": "1.48.0",
29
- "@contractspec/tool.typescript": "1.48.0",
28
+ "@contractspec/tool.tsdown": "1.52.0",
29
+ "@contractspec/tool.typescript": "1.52.0",
30
30
  "@types/express": "^5.0.3",
31
31
  "@types/turndown": "^5.0.6",
32
32
  "tsdown": "^0.19.0",
33
- "typescript": "^5.9.3"
33
+ "typescript": "^5.9.3",
34
+ "vitest": "^4.0.18"
34
35
  },
35
36
  "dependencies": {
36
37
  "@aws-sdk/client-secrets-manager": "^3.966.0",
37
38
  "@aws-sdk/client-sqs": "^3.966.0",
38
- "@contractspec/lib.logger": "1.48.0",
39
- "@contractspec/lib.schema": "1.48.0",
39
+ "@contractspec/lib.logger": "1.52.0",
40
+ "@contractspec/lib.schema": "1.52.0",
40
41
  "@elevenlabs/elevenlabs-js": "^2.30.0",
41
42
  "@google-cloud/secret-manager": "^6.1.1",
42
43
  "@google-cloud/storage": "^7.18.0",
@@ -95,8 +96,11 @@
95
96
  "./app-config/validation": "./dist/app-config/validation.js",
96
97
  "./capabilities": "./dist/capabilities/index.js",
97
98
  "./capabilities/capabilities": "./dist/capabilities/capabilities.js",
99
+ "./capabilities/context": "./dist/capabilities/context.js",
98
100
  "./capabilities/docs/capabilities.docblock": "./dist/capabilities/docs/capabilities.docblock.js",
101
+ "./capabilities/guards": "./dist/capabilities/guards.js",
99
102
  "./capabilities/openbanking": "./dist/capabilities/openbanking.js",
103
+ "./capabilities/validation": "./dist/capabilities/validation.js",
100
104
  "./client": "./dist/client/index.js",
101
105
  "./client/react": "./dist/client/react/index.js",
102
106
  "./client/react/drivers/rn-reusables": "./dist/client/react/drivers/rn-reusables.js",
@@ -116,8 +120,26 @@
116
120
  "./data-views/types": "./dist/data-views/types.js",
117
121
  "./docs": "./dist/docs/index.js",
118
122
  "./docs/accessibility_wcag_compliance_specs.docblock": "./dist/docs/accessibility_wcag_compliance_specs.docblock.js",
123
+ "./docs/capabilities": "./dist/docs/capabilities/index.js",
124
+ "./docs/capabilities/documentationSystem.capability": "./dist/docs/capabilities/documentationSystem.capability.js",
125
+ "./docs/commands": "./dist/docs/commands/index.js",
126
+ "./docs/commands/docsGenerate.command": "./dist/docs/commands/docsGenerate.command.js",
127
+ "./docs/commands/docsPublish.command": "./dist/docs/commands/docsPublish.command.js",
128
+ "./docs/constants": "./dist/docs/constants.js",
129
+ "./docs/contracts": "./dist/docs/contracts.js",
130
+ "./docs/ensure-docblocks": "./dist/docs/ensure-docblocks.js",
131
+ "./docs/events": "./dist/docs/events/index.js",
132
+ "./docs/events/docsGenerated.event": "./dist/docs/events/docsGenerated.event.js",
133
+ "./docs/events/docsPublished.event": "./dist/docs/events/docsPublished.event.js",
134
+ "./docs/forms": "./dist/docs/forms/index.js",
135
+ "./docs/forms/docsSearch.form": "./dist/docs/forms/docsSearch.form.js",
119
136
  "./docs/meta.docs": "./dist/docs/meta.docs.js",
120
- "./docs/presentations": "./dist/docs/presentations.js",
137
+ "./docs/presentations": "./dist/docs/presentations/index.js",
138
+ "./docs/presentations/docsLayout.presentation": "./dist/docs/presentations/docsLayout.presentation.js",
139
+ "./docs/presentations/docsReferencePage.presentation": "./dist/docs/presentations/docsReferencePage.presentation.js",
140
+ "./docs/queries": "./dist/docs/queries/index.js",
141
+ "./docs/queries/contractReference.query": "./dist/docs/queries/contractReference.query.js",
142
+ "./docs/queries/docsIndex.query": "./dist/docs/queries/docsIndex.query.js",
121
143
  "./docs/registry": "./dist/docs/registry.js",
122
144
  "./docs/tech-contracts.docs": "./dist/docs/tech-contracts.docs.js",
123
145
  "./docs/tech/auth/better-auth-nextjs.docblock": "./dist/docs/tech/auth/better-auth-nextjs.docblock.js",
@@ -131,6 +153,7 @@
131
153
  "./docs/tech/contracts/tests.docblock": "./dist/docs/tech/contracts/tests.docblock.js",
132
154
  "./docs/tech/contracts/themes.docblock": "./dist/docs/tech/contracts/themes.docblock.js",
133
155
  "./docs/tech/contracts/vertical-pocket-family-office.docblock": "./dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js",
156
+ "./docs/tech/docs-system.docblock": "./dist/docs/tech/docs-system.docblock.js",
134
157
  "./docs/tech/lifecycle-stage-system.docblock": "./dist/docs/tech/lifecycle-stage-system.docblock.js",
135
158
  "./docs/tech/llm/llm-integration.docblock": "./dist/docs/tech/llm/llm-integration.docblock.js",
136
159
  "./docs/tech/mcp-endpoints.docblock": "./dist/docs/tech/mcp-endpoints.docblock.js",
@@ -148,6 +171,10 @@
148
171
  "./docs/tech/telemetry-ingest.docblock": "./dist/docs/tech/telemetry-ingest.docblock.js",
149
172
  "./docs/tech/vscode-extension.docblock": "./dist/docs/tech/vscode-extension.docblock.js",
150
173
  "./docs/types": "./dist/docs/types.js",
174
+ "./docs/views": "./dist/docs/views/index.js",
175
+ "./docs/views/contractReference.dataView": "./dist/docs/views/contractReference.dataView.js",
176
+ "./docs/views/docsIndex.dataView": "./dist/docs/views/docsIndex.dataView.js",
177
+ "./docs/views/exampleCatalog.dataView": "./dist/docs/views/exampleCatalog.dataView.js",
151
178
  "./events": "./dist/events.js",
152
179
  "./examples": "./dist/examples/index.js",
153
180
  "./examples/docs/examples.docblock": "./dist/examples/docs/examples.docblock.js",
@@ -282,11 +309,14 @@
282
309
  "./operations/registry": "./dist/operations/registry.js",
283
310
  "./ownership": "./dist/ownership.js",
284
311
  "./policy": "./dist/policy/index.js",
312
+ "./policy/context": "./dist/policy/context.js",
285
313
  "./policy/docs/policy.docblock": "./dist/policy/docs/policy.docblock.js",
286
314
  "./policy/engine": "./dist/policy/engine.js",
315
+ "./policy/guards": "./dist/policy/guards.js",
287
316
  "./policy/opa-adapter": "./dist/policy/opa-adapter.js",
288
317
  "./policy/registry": "./dist/policy/registry.js",
289
318
  "./policy/spec": "./dist/policy/spec.js",
319
+ "./policy/validation": "./dist/policy/validation.js",
290
320
  "./presentations": "./dist/presentations/index.js",
291
321
  "./presentations/docs/presentations-conventions.docblock": "./dist/presentations/docs/presentations-conventions.docblock.js",
292
322
  "./presentations/presentations": "./dist/presentations/presentations.js",
@@ -306,6 +336,9 @@
306
336
  "./registry-utils": "./dist/registry-utils.js",
307
337
  "./resources": "./dist/resources.js",
308
338
  "./schema-to-markdown": "./dist/schema-to-markdown.js",
339
+ "./serialization": "./dist/serialization/index.js",
340
+ "./serialization/serializers": "./dist/serialization/serializers.js",
341
+ "./serialization/types": "./dist/serialization/types.js",
309
342
  "./server": "./dist/server/index.js",
310
343
  "./server/contracts-adapter-hydration": "./dist/server/contracts-adapter-hydration.js",
311
344
  "./server/contracts-adapter-input": "./dist/server/contracts-adapter-input.js",
@@ -332,10 +365,15 @@
332
365
  "./tests/runner": "./dist/tests/runner.js",
333
366
  "./tests/spec": "./dist/tests/spec.js",
334
367
  "./themes": "./dist/themes.js",
368
+ "./translations": "./dist/translations/index.js",
335
369
  "./translations/catalog": "./dist/translations/catalog.js",
370
+ "./translations/registry": "./dist/translations/registry.js",
371
+ "./translations/spec": "./dist/translations/spec.js",
336
372
  "./translations/tenant": "./dist/translations/tenant.js",
373
+ "./translations/validation": "./dist/translations/validation.js",
337
374
  "./types": "./dist/types.js",
338
375
  "./versioning": "./dist/versioning/index.js",
376
+ "./versioning/refs": "./dist/versioning/refs.js",
339
377
  "./versioning/types": "./dist/versioning/types.js",
340
378
  "./versioning/utils": "./dist/versioning/utils.js",
341
379
  "./workflow": "./dist/workflow/index.js",
@@ -343,6 +381,7 @@
343
381
  "./workflow/adapters/db-adapter": "./dist/workflow/adapters/db-adapter.js",
344
382
  "./workflow/adapters/file-adapter": "./dist/workflow/adapters/file-adapter.js",
345
383
  "./workflow/adapters/memory-store": "./dist/workflow/adapters/memory-store.js",
384
+ "./workflow/context": "./dist/workflow/context.js",
346
385
  "./workflow/expression": "./dist/workflow/expression.js",
347
386
  "./workflow/overview.docblock": "./dist/workflow/overview.docblock.js",
348
387
  "./workflow/runner": "./dist/workflow/runner.js",