@contractspec/lib.contracts 0.0.0-canary-20260119224949 → 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.
- package/dist/app-config/contracts.d.ts +51 -51
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +55 -55
- package/dist/app-config/runtime.d.ts +1 -1
- package/dist/app-config/spec.d.ts +2 -2
- package/dist/capabilities/capabilities.d.ts +64 -5
- package/dist/capabilities/capabilities.js +125 -0
- package/dist/capabilities/context.d.ts +88 -0
- package/dist/capabilities/context.js +87 -0
- package/dist/capabilities/docs/capabilities.docblock.js +191 -2
- package/dist/capabilities/guards.d.ts +110 -0
- package/dist/capabilities/guards.js +146 -0
- package/dist/capabilities/index.d.ts +4 -1
- package/dist/capabilities/index.js +4 -1
- package/dist/capabilities/validation.d.ts +76 -0
- package/dist/capabilities/validation.js +141 -0
- package/dist/client/react/feature-render.d.ts +2 -2
- package/dist/contract-registry/schemas.d.ts +2 -2
- package/dist/data-views/data-views.d.ts +2 -1
- package/dist/data-views/index.d.ts +2 -1
- package/dist/data-views/registry.d.ts +1 -1
- package/dist/data-views/runtime.d.ts +1 -1
- package/dist/data-views/spec.d.ts +2 -8
- package/dist/data-views/types.d.ts +1 -1
- package/dist/docs/capabilities/documentationSystem.capability.d.ts +7 -0
- package/dist/docs/capabilities/documentationSystem.capability.js +71 -0
- package/dist/docs/capabilities/index.d.ts +2 -0
- package/dist/docs/capabilities/index.js +3 -0
- package/dist/docs/commands/docsGenerate.command.d.ts +95 -0
- package/dist/docs/commands/docsGenerate.command.js +139 -0
- package/dist/docs/commands/docsPublish.command.d.ts +64 -0
- package/dist/docs/commands/docsPublish.command.js +104 -0
- package/dist/docs/commands/index.d.ts +3 -0
- package/dist/docs/commands/index.js +4 -0
- package/dist/docs/constants.d.ts +15 -0
- package/dist/docs/constants.js +18 -0
- package/dist/docs/contracts.d.ts +442 -0
- package/dist/docs/contracts.js +58 -0
- package/dist/docs/ensure-docblocks.d.ts +1 -0
- package/dist/docs/ensure-docblocks.js +1 -0
- package/dist/docs/events/docsGenerated.event.d.ts +62 -0
- package/dist/docs/events/docsGenerated.event.js +53 -0
- package/dist/docs/events/docsPublished.event.d.ts +70 -0
- package/dist/docs/events/docsPublished.event.js +57 -0
- package/dist/docs/events/index.d.ts +3 -0
- package/dist/docs/events/index.js +4 -0
- package/dist/docs/forms/docsSearch.form.d.ts +22 -0
- package/dist/docs/forms/docsSearch.form.js +113 -0
- package/dist/docs/forms/index.d.ts +2 -0
- package/dist/docs/forms/index.js +3 -0
- package/dist/docs/index.d.ts +23 -1
- package/dist/docs/index.js +24 -1
- package/dist/docs/presentations/docsLayout.presentation.d.ts +7 -0
- package/dist/docs/presentations/docsLayout.presentation.js +32 -0
- package/dist/docs/presentations/docsReferencePage.presentation.d.ts +7 -0
- package/dist/docs/presentations/docsReferencePage.presentation.js +32 -0
- package/dist/docs/presentations/index.d.ts +3 -0
- package/dist/docs/presentations/index.js +4 -0
- package/dist/docs/queries/contractReference.query.d.ts +217 -0
- package/dist/docs/queries/contractReference.query.js +122 -0
- package/dist/docs/queries/docsIndex.query.d.ts +272 -0
- package/dist/docs/queries/docsIndex.query.js +130 -0
- package/dist/docs/queries/index.d.ts +3 -0
- package/dist/docs/queries/index.js +4 -0
- package/dist/docs/tech/cli.docblock.js +10 -0
- package/dist/docs/tech/docs-system.docblock.d.ts +1 -0
- package/dist/docs/tech/docs-system.docblock.js +128 -0
- package/dist/docs/views/contractReference.dataView.d.ts +7 -0
- package/dist/docs/views/contractReference.dataView.js +80 -0
- package/dist/docs/views/docsIndex.dataView.d.ts +7 -0
- package/dist/docs/views/docsIndex.dataView.js +136 -0
- package/dist/docs/views/exampleCatalog.dataView.d.ts +7 -0
- package/dist/docs/views/exampleCatalog.dataView.js +91 -0
- package/dist/docs/views/index.d.ts +4 -0
- package/dist/docs/views/index.js +5 -0
- package/dist/events.d.ts +80 -14
- package/dist/events.js +33 -3
- package/dist/examples/schema.d.ts +9 -9
- package/dist/examples/types.d.ts +1 -1
- package/dist/experiments/spec.d.ts +9 -6
- package/dist/features/index.d.ts +2 -2
- package/dist/features/install.d.ts +4 -4
- package/dist/features/types.d.ts +28 -32
- package/dist/forms/forms.d.ts +1 -1
- package/dist/index.d.ts +54 -27
- package/dist/index.js +28 -3
- package/dist/install.d.ts +1 -1
- package/dist/integrations/openbanking/contracts/accounts.d.ts +67 -67
- package/dist/integrations/openbanking/contracts/balances.d.ts +35 -35
- package/dist/integrations/openbanking/contracts/transactions.d.ts +49 -49
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +103 -103
- package/dist/integrations/spec.d.ts +2 -2
- package/dist/jsonschema.d.ts +1 -1
- package/dist/knowledge/operations.d.ts +67 -67
- package/dist/knowledge/spec.d.ts +1 -1
- package/dist/llm/exporters.d.ts +4 -4
- package/dist/llm/types.d.ts +1 -1
- package/dist/markdown.d.ts +2 -2
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/operations/operation.d.ts +8 -2
- package/dist/operations/registry.d.ts +2 -2
- package/dist/ownership.d.ts +133 -8
- package/dist/ownership.js +25 -0
- package/dist/policy/context.d.ts +237 -0
- package/dist/policy/context.js +227 -0
- package/dist/policy/guards.d.ts +145 -0
- package/dist/policy/guards.js +254 -0
- package/dist/policy/index.d.ts +12 -1
- package/dist/policy/index.js +11 -1
- package/dist/policy/spec.d.ts +7 -4
- package/dist/policy/validation.d.ts +67 -0
- package/dist/policy/validation.js +307 -0
- package/dist/presentations/presentations.d.ts +6 -0
- package/dist/presentations/registry.d.ts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/serialization/index.d.ts +3 -0
- package/dist/serialization/index.js +3 -0
- package/dist/serialization/serializers.d.ts +40 -0
- package/dist/serialization/serializers.js +148 -0
- package/dist/serialization/types.d.ts +103 -0
- package/dist/serialization/types.js +0 -0
- package/dist/server/rest-elysia.d.ts +1 -1
- package/dist/server/rest-express.d.ts +1 -1
- package/dist/server/rest-generic.d.ts +1 -1
- package/dist/server/rest-next-app.d.ts +1 -1
- package/dist/server/rest-next-mcp.d.ts +1 -1
- package/dist/server/rest-next-pages.d.ts +1 -1
- package/dist/telemetry/spec.d.ts +1 -1
- package/dist/tests/runner.d.ts +1 -1
- package/dist/tests/spec.d.ts +17 -12
- package/dist/themes.d.ts +8 -5
- package/dist/translations/index.d.ts +6 -0
- package/dist/translations/index.js +5 -0
- package/dist/translations/registry.d.ts +144 -0
- package/dist/translations/registry.js +223 -0
- package/dist/translations/spec.d.ts +126 -0
- package/dist/translations/spec.js +31 -0
- package/dist/translations/validation.d.ts +85 -0
- package/dist/translations/validation.js +328 -0
- package/dist/types.d.ts +140 -14
- package/dist/versioning/index.d.ts +2 -1
- package/dist/versioning/index.js +2 -1
- package/dist/versioning/refs.d.ts +179 -0
- package/dist/versioning/refs.js +161 -0
- package/dist/workflow/context.d.ts +191 -0
- package/dist/workflow/context.js +227 -0
- package/dist/workflow/index.d.ts +6 -3
- package/dist/workflow/index.js +4 -2
- package/dist/workflow/spec.d.ts +4 -11
- package/dist/workflow/validation.d.ts +64 -2
- package/dist/workflow/validation.js +194 -1
- package/dist/workspace-config/contractsrc-schema.js +1 -0
- package/dist/workspace-config/contractsrc-types.d.ts +3 -3
- 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 };
|
|
@@ -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
|
|
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-
|
|
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.
|
|
29
|
-
"@contractspec/tool.typescript": "1.
|
|
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.
|
|
39
|
-
"@contractspec/lib.schema": "1.
|
|
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",
|