@contractspec/bundle.library 3.8.2 → 3.8.5
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/.turbo/turbo-build.log +130 -116
- package/CHANGELOG.md +80 -0
- package/dist/application/index.js +806 -131
- package/dist/application/mcp/cliMcp.js +21 -2
- package/dist/application/mcp/common.js +21 -2
- package/dist/application/mcp/common.test.d.ts +1 -0
- package/dist/application/mcp/contractsMcp.js +21 -2
- package/dist/application/mcp/docsMcp.catalog.d.ts +2 -0
- package/dist/application/mcp/docsMcp.catalog.js +382 -0
- package/dist/application/mcp/docsMcp.d.ts +5 -1
- package/dist/application/mcp/docsMcp.data.d.ts +85 -0
- package/dist/application/mcp/docsMcp.data.js +148 -0
- package/dist/application/mcp/docsMcp.js +776 -101
- package/dist/application/mcp/docsMcp.prompts.d.ts +3 -0
- package/dist/application/mcp/docsMcp.prompts.js +522 -0
- package/dist/application/mcp/docsMcp.reference.d.ts +24 -0
- package/dist/application/mcp/docsMcp.reference.js +236 -0
- package/dist/application/mcp/docsMcp.resources.d.ts +3 -0
- package/dist/application/mcp/docsMcp.resources.js +520 -0
- package/dist/application/mcp/docsMcp.test.d.ts +1 -0
- package/dist/application/mcp/docsMcp.tools.d.ts +3 -0
- package/dist/application/mcp/docsMcp.tools.js +519 -0
- package/dist/application/mcp/index.js +806 -131
- package/dist/application/mcp/internalMcp.js +21 -2
- package/dist/application/mcp/normalizeMcpRequest.d.ts +1 -0
- package/dist/application/mcp/normalizeMcpRequest.js +22 -0
- package/dist/application/mcp/providerRankingMcp.js +21 -2
- package/dist/components/docs/generated/docs-index.generated.d.ts +6 -6
- package/dist/components/docs/index.js +23 -24
- package/dist/components/docs/libraries/LibrariesAiAgentPage.js +22 -22
- package/dist/components/docs/libraries/LibrariesSupportBotPage.js +1 -2
- package/dist/components/docs/libraries/index.js +23 -24
- package/dist/components/templates/engine/index.d.ts +1 -1
- package/dist/components/templates/engine/index.js +1 -1
- package/dist/features/index.js +15 -15
- package/dist/index.js +194 -195
- package/dist/node/application/index.js +806 -131
- package/dist/node/application/mcp/cliMcp.js +21 -2
- package/dist/node/application/mcp/common.js +21 -2
- package/dist/node/application/mcp/contractsMcp.js +21 -2
- package/dist/node/application/mcp/docsMcp.catalog.js +381 -0
- package/dist/node/application/mcp/docsMcp.data.js +147 -0
- package/dist/node/application/mcp/docsMcp.js +776 -101
- package/dist/node/application/mcp/docsMcp.prompts.js +521 -0
- package/dist/node/application/mcp/docsMcp.reference.js +235 -0
- package/dist/node/application/mcp/docsMcp.resources.js +519 -0
- package/dist/node/application/mcp/docsMcp.tools.js +518 -0
- package/dist/node/application/mcp/index.js +806 -131
- package/dist/node/application/mcp/internalMcp.js +21 -2
- package/dist/node/application/mcp/normalizeMcpRequest.js +21 -0
- package/dist/node/application/mcp/providerRankingMcp.js +21 -2
- package/dist/node/components/docs/index.js +23 -24
- package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +22 -22
- package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +1 -2
- package/dist/node/components/docs/libraries/index.js +23 -24
- package/dist/node/components/templates/engine/index.js +1 -1
- package/dist/node/features/index.js +15 -15
- package/dist/node/index.js +194 -195
- package/dist/node/presentation/features/hooks/index.js +12 -12
- package/dist/node/presentation/features/hooks/useContractsRegistry.js +12 -12
- package/dist/node/presentation/features/index.js +12 -12
- package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +12 -12
- package/dist/node/presentation/features/organisms/FeatureEventsList.js +12 -12
- package/dist/node/presentation/features/organisms/FeatureFormsList.js +12 -12
- package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +12 -12
- package/dist/node/presentation/features/organisms/index.js +12 -12
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +12 -12
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +12 -12
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +12 -12
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +12 -12
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +12 -12
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +12 -12
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +12 -12
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +12 -12
- package/dist/presentation/features/hooks/index.js +12 -12
- package/dist/presentation/features/hooks/useContractsRegistry.js +12 -12
- package/dist/presentation/features/index.js +12 -12
- package/dist/presentation/features/organisms/FeatureDataViewsList.js +12 -12
- package/dist/presentation/features/organisms/FeatureEventsList.js +12 -12
- package/dist/presentation/features/organisms/FeatureFormsList.js +12 -12
- package/dist/presentation/features/organisms/FeaturePresentationsList.js +12 -12
- package/dist/presentation/features/organisms/index.js +12 -12
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +12 -12
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +12 -12
- package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +12 -12
- package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +12 -12
- package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +12 -12
- package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +12 -12
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +12 -12
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +12 -12
- package/package.json +108 -23
- package/src/application/mcp/common.test.ts +64 -0
- package/src/application/mcp/common.ts +5 -2
- package/src/application/mcp/docsMcp.catalog.ts +2 -0
- package/src/application/mcp/docsMcp.data.ts +196 -0
- package/src/application/mcp/docsMcp.prompts.ts +165 -0
- package/src/application/mcp/docsMcp.reference.ts +152 -0
- package/src/application/mcp/docsMcp.resources.ts +194 -0
- package/src/application/mcp/docsMcp.test.ts +148 -0
- package/src/application/mcp/docsMcp.tools.ts +183 -0
- package/src/application/mcp/docsMcp.ts +13 -177
- package/src/application/mcp/normalizeMcpRequest.ts +30 -0
- package/src/components/docs/generated/docs-index._common.json +1 -1
- package/src/components/docs/generated/docs-index.ai-chat-assistant.json +8 -0
- package/src/components/docs/generated/docs-index.artisan-knowledge-product.json +18 -0
- package/src/components/docs/generated/docs-index.artisan-payments-stripe.json +34 -0
- package/src/components/docs/generated/docs-index.data-grid-showcase.json +18 -0
- package/src/components/docs/generated/docs-index.generated.ts +6 -6
- package/src/components/docs/generated/docs-index.harness-lab.json +10 -0
- package/src/components/docs/generated/docs-index.locale-jurisdiction-gate.json +8 -0
- package/src/components/docs/generated/docs-index.manifest.json +50 -5
- package/src/components/docs/generated/docs-index.messaging-agent-actions.json +18 -0
- package/src/components/docs/generated/docs-index.mobile-demo-tasks.json +34 -0
- package/src/components/docs/generated/docs-index.opencode-cli.json +2 -2
- package/src/components/docs/generated/docs-index.platform-control-plane.json +250 -0
- package/src/components/docs/generated/docs-index.platform-harness.json +178 -0
- package/src/components/docs/generated/docs-index.platform-integrations.json +22 -14
- package/src/components/docs/generated/docs-index.visualization-showcase.json +18 -0
- package/src/components/docs/libraries/LibrariesAiAgentPage.tsx +20 -17
- package/src/components/docs/libraries/LibrariesSupportBotPage.tsx +1 -2
- package/src/components/templates/engine/index.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -1,13 +1,155 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
// src/features/
|
|
2
|
+
// src/features/contracts-registry.ts
|
|
3
|
+
import {
|
|
4
|
+
EventRegistry,
|
|
5
|
+
OperationSpecRegistry
|
|
6
|
+
} from "@contractspec/lib.contracts-spec";
|
|
3
7
|
import {
|
|
8
|
+
DataViewRegistry
|
|
9
|
+
} from "@contractspec/lib.contracts-spec/data-views";
|
|
10
|
+
import {
|
|
11
|
+
ContractReferenceDataView,
|
|
4
12
|
ContractReferenceQuery,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
DocsGenerateCommand,
|
|
14
|
+
DocsGeneratedEvent,
|
|
15
|
+
DocsIndexDataView,
|
|
8
16
|
DocsIndexQuery,
|
|
9
|
-
|
|
17
|
+
DocsLayoutPresentation,
|
|
18
|
+
DocsPublishCommand,
|
|
19
|
+
DocsPublishedEvent,
|
|
20
|
+
DocsReferencePagePresentation,
|
|
21
|
+
DocsSearchForm,
|
|
22
|
+
ExampleCatalogDataView
|
|
10
23
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
24
|
+
import { FormRegistry } from "@contractspec/lib.contracts-spec/forms";
|
|
25
|
+
import {
|
|
26
|
+
PresentationRegistry
|
|
27
|
+
} from "@contractspec/lib.contracts-spec/presentations";
|
|
28
|
+
import {
|
|
29
|
+
serializeDataViewSpec,
|
|
30
|
+
serializeEventSpec,
|
|
31
|
+
serializeFormSpec,
|
|
32
|
+
serializeOperationSpec,
|
|
33
|
+
serializePresentationSpec
|
|
34
|
+
} from "@contractspec/lib.contracts-spec/serialization";
|
|
35
|
+
var operationRegistry = null;
|
|
36
|
+
function createContractSpecOperationRegistry() {
|
|
37
|
+
const registry = new OperationSpecRegistry;
|
|
38
|
+
registry.register(DocsIndexQuery).register(ContractReferenceQuery).register(DocsGenerateCommand).register(DocsPublishCommand);
|
|
39
|
+
return registry;
|
|
40
|
+
}
|
|
41
|
+
function getContractSpecOperationRegistry() {
|
|
42
|
+
if (!operationRegistry) {
|
|
43
|
+
operationRegistry = createContractSpecOperationRegistry();
|
|
44
|
+
}
|
|
45
|
+
return operationRegistry;
|
|
46
|
+
}
|
|
47
|
+
function resolveOperationSpec(key, version) {
|
|
48
|
+
return getContractSpecOperationRegistry().get(key, version);
|
|
49
|
+
}
|
|
50
|
+
var eventRegistry = null;
|
|
51
|
+
function createContractSpecEventRegistry() {
|
|
52
|
+
const registry = new EventRegistry;
|
|
53
|
+
registry.register(DocsGeneratedEvent).register(DocsPublishedEvent);
|
|
54
|
+
return registry;
|
|
55
|
+
}
|
|
56
|
+
function getContractSpecEventRegistry() {
|
|
57
|
+
if (!eventRegistry) {
|
|
58
|
+
eventRegistry = createContractSpecEventRegistry();
|
|
59
|
+
}
|
|
60
|
+
return eventRegistry;
|
|
61
|
+
}
|
|
62
|
+
function resolveEventSpec(key, version) {
|
|
63
|
+
return getContractSpecEventRegistry().get(key, version);
|
|
64
|
+
}
|
|
65
|
+
var presentationRegistry = null;
|
|
66
|
+
function createContractSpecPresentationRegistry() {
|
|
67
|
+
const registry = new PresentationRegistry;
|
|
68
|
+
registry.register(DocsLayoutPresentation).register(DocsReferencePagePresentation);
|
|
69
|
+
return registry;
|
|
70
|
+
}
|
|
71
|
+
function getContractSpecPresentationRegistry() {
|
|
72
|
+
if (!presentationRegistry) {
|
|
73
|
+
presentationRegistry = createContractSpecPresentationRegistry();
|
|
74
|
+
}
|
|
75
|
+
return presentationRegistry;
|
|
76
|
+
}
|
|
77
|
+
function resolvePresentationSpec(key, version) {
|
|
78
|
+
return getContractSpecPresentationRegistry().get(key, version);
|
|
79
|
+
}
|
|
80
|
+
var dataViewRegistry = null;
|
|
81
|
+
function createContractSpecDataViewRegistry() {
|
|
82
|
+
const registry = new DataViewRegistry;
|
|
83
|
+
registry.register(DocsIndexDataView).register(ContractReferenceDataView).register(ExampleCatalogDataView);
|
|
84
|
+
return registry;
|
|
85
|
+
}
|
|
86
|
+
function getContractSpecDataViewRegistry() {
|
|
87
|
+
if (!dataViewRegistry) {
|
|
88
|
+
dataViewRegistry = createContractSpecDataViewRegistry();
|
|
89
|
+
}
|
|
90
|
+
return dataViewRegistry;
|
|
91
|
+
}
|
|
92
|
+
function resolveDataViewSpec(key, version) {
|
|
93
|
+
return getContractSpecDataViewRegistry().get(key, version);
|
|
94
|
+
}
|
|
95
|
+
var formRegistry = null;
|
|
96
|
+
function createContractSpecFormRegistry() {
|
|
97
|
+
const registry = new FormRegistry;
|
|
98
|
+
registry.register(DocsSearchForm);
|
|
99
|
+
return registry;
|
|
100
|
+
}
|
|
101
|
+
function getContractSpecFormRegistry() {
|
|
102
|
+
if (!formRegistry) {
|
|
103
|
+
formRegistry = createContractSpecFormRegistry();
|
|
104
|
+
}
|
|
105
|
+
return formRegistry;
|
|
106
|
+
}
|
|
107
|
+
function resolveFormSpec(key, _version) {
|
|
108
|
+
return getContractSpecFormRegistry().get(key);
|
|
109
|
+
}
|
|
110
|
+
function resolveSerializedOperationSpec(key, version) {
|
|
111
|
+
const spec = resolveOperationSpec(key, version);
|
|
112
|
+
return serializeOperationSpec(spec) ?? undefined;
|
|
113
|
+
}
|
|
114
|
+
function resolveSerializedEventSpec(key, version) {
|
|
115
|
+
const spec = resolveEventSpec(key, version);
|
|
116
|
+
return serializeEventSpec(spec) ?? undefined;
|
|
117
|
+
}
|
|
118
|
+
function resolveSerializedPresentationSpec(key, version) {
|
|
119
|
+
const spec = resolvePresentationSpec(key, version);
|
|
120
|
+
return serializePresentationSpec(spec) ?? undefined;
|
|
121
|
+
}
|
|
122
|
+
function resolveSerializedDataViewSpec(key, version) {
|
|
123
|
+
const spec = resolveDataViewSpec(key, version);
|
|
124
|
+
return serializeDataViewSpec(spec) ?? undefined;
|
|
125
|
+
}
|
|
126
|
+
function resolveSerializedFormSpec(key, version) {
|
|
127
|
+
const spec = resolveFormSpec(key, version);
|
|
128
|
+
return serializeFormSpec(spec) ?? undefined;
|
|
129
|
+
}
|
|
130
|
+
function resetContractSpecOperationRegistry() {
|
|
131
|
+
operationRegistry = null;
|
|
132
|
+
}
|
|
133
|
+
function resetContractSpecEventRegistry() {
|
|
134
|
+
eventRegistry = null;
|
|
135
|
+
}
|
|
136
|
+
function resetContractSpecPresentationRegistry() {
|
|
137
|
+
presentationRegistry = null;
|
|
138
|
+
}
|
|
139
|
+
function resetContractSpecDataViewRegistry() {
|
|
140
|
+
dataViewRegistry = null;
|
|
141
|
+
}
|
|
142
|
+
function resetContractSpecFormRegistry() {
|
|
143
|
+
formRegistry = null;
|
|
144
|
+
}
|
|
145
|
+
function resetAllContractSpecRegistries() {
|
|
146
|
+
resetContractSpecOperationRegistry();
|
|
147
|
+
resetContractSpecEventRegistry();
|
|
148
|
+
resetContractSpecPresentationRegistry();
|
|
149
|
+
resetContractSpecDataViewRegistry();
|
|
150
|
+
resetContractSpecFormRegistry();
|
|
151
|
+
}
|
|
152
|
+
|
|
11
153
|
// src/components/docs/docsManifest.ts
|
|
12
154
|
var DOCS_PRIMARY_SECTIONS = [
|
|
13
155
|
{
|
|
@@ -6103,7 +6245,7 @@ function getExampleShowcaseData(key) {
|
|
|
6103
6245
|
}
|
|
6104
6246
|
|
|
6105
6247
|
// src/components/docs/examples/DocsExamplesPage.tsx
|
|
6106
|
-
import { ExampleCatalogDataView } from "@contractspec/lib.contracts-spec/docs";
|
|
6248
|
+
import { ExampleCatalogDataView as ExampleCatalogDataView2 } from "@contractspec/lib.contracts-spec/docs";
|
|
6107
6249
|
import {
|
|
6108
6250
|
ButtonLink,
|
|
6109
6251
|
DataViewList,
|
|
@@ -6133,9 +6275,9 @@ function DocsExamplesPage() {
|
|
|
6133
6275
|
};
|
|
6134
6276
|
}).sort((a, b) => a.title.localeCompare(b.title));
|
|
6135
6277
|
const listSpec = {
|
|
6136
|
-
...
|
|
6278
|
+
...ExampleCatalogDataView2,
|
|
6137
6279
|
view: {
|
|
6138
|
-
...
|
|
6280
|
+
...ExampleCatalogDataView2.view,
|
|
6139
6281
|
kind: "list"
|
|
6140
6282
|
}
|
|
6141
6283
|
};
|
|
@@ -19329,10 +19471,17 @@ function LibrariesAiAgentPage() {
|
|
|
19329
19471
|
}),
|
|
19330
19472
|
/* @__PURE__ */ jsx76(CodeBlock35, {
|
|
19331
19473
|
language: "typescript",
|
|
19332
|
-
code: `import { defineAgent, AgentRegistry } from '@contractspec/lib.
|
|
19474
|
+
code: `import { defineAgent, AgentRegistry } from '@contractspec/lib.contracts-spec/agent';
|
|
19333
19475
|
|
|
19334
19476
|
const SupportBot = defineAgent({
|
|
19335
|
-
meta: {
|
|
19477
|
+
meta: {
|
|
19478
|
+
key: 'support.bot',
|
|
19479
|
+
version: '1.0.0',
|
|
19480
|
+
description: 'Resolve tickets and escalate low-confidence decisions.',
|
|
19481
|
+
owners: ['support'],
|
|
19482
|
+
tags: ['support'],
|
|
19483
|
+
stability: 'experimental',
|
|
19484
|
+
},
|
|
19336
19485
|
instructions: 'Resolve tickets. Escalate when confidence < 0.75.',
|
|
19337
19486
|
tools: [{ name: 'support_resolve_ticket' }],
|
|
19338
19487
|
policy: {
|
|
@@ -19354,19 +19503,17 @@ const registry = new AgentRegistry().register(SupportBot);`
|
|
|
19354
19503
|
}),
|
|
19355
19504
|
/* @__PURE__ */ jsx76(CodeBlock35, {
|
|
19356
19505
|
language: "typescript",
|
|
19357
|
-
code: `import {
|
|
19506
|
+
code: `import { createUnifiedAgent, ApprovalWorkflow } from '@contractspec/lib.ai-agent';
|
|
19358
19507
|
|
|
19359
|
-
const
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
approvalWorkflow: new ApprovalWorkflow(),
|
|
19508
|
+
const approvals = new ApprovalWorkflow();
|
|
19509
|
+
const agent = createUnifiedAgent(SupportBot, {
|
|
19510
|
+
backend: 'ai-sdk',
|
|
19511
|
+
tools: new Map([['support_resolve_ticket', async (input) => resolveTicket(input)]]),
|
|
19364
19512
|
});
|
|
19365
19513
|
|
|
19366
|
-
const result = await
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
}`
|
|
19514
|
+
const result = await agent.run(ticket.body);
|
|
19515
|
+
// Route low-confidence or manual-review flows through approvals when needed.
|
|
19516
|
+
`
|
|
19370
19517
|
})
|
|
19371
19518
|
]
|
|
19372
19519
|
}),
|
|
@@ -19383,26 +19530,21 @@ if (result.approvalRequestId) {
|
|
|
19383
19530
|
/* @__PURE__ */ jsxs76("li", {
|
|
19384
19531
|
children: [
|
|
19385
19532
|
/* @__PURE__ */ jsx76("code", {
|
|
19386
|
-
children: "
|
|
19533
|
+
children: "createUnifiedAgent"
|
|
19387
19534
|
}),
|
|
19388
19535
|
", ",
|
|
19389
19536
|
/* @__PURE__ */ jsx76("code", {
|
|
19390
|
-
children: "
|
|
19537
|
+
children: "ContractSpecAgent"
|
|
19391
19538
|
}),
|
|
19392
19539
|
",",
|
|
19393
19540
|
" ",
|
|
19394
19541
|
/* @__PURE__ */ jsx76("code", {
|
|
19395
|
-
children: "
|
|
19542
|
+
children: "UnifiedAgent"
|
|
19396
19543
|
})
|
|
19397
19544
|
]
|
|
19398
19545
|
}),
|
|
19399
|
-
/* @__PURE__ */
|
|
19400
|
-
children:
|
|
19401
|
-
/* @__PURE__ */ jsx76("code", {
|
|
19402
|
-
children: "ToolExecutor"
|
|
19403
|
-
}),
|
|
19404
|
-
" with schema-enforced tool definitions"
|
|
19405
|
-
]
|
|
19546
|
+
/* @__PURE__ */ jsx76("li", {
|
|
19547
|
+
children: "MCP, operation-backed, memory, and subagent tool adapters"
|
|
19406
19548
|
}),
|
|
19407
19549
|
/* @__PURE__ */ jsxs76("li", {
|
|
19408
19550
|
children: [
|
|
@@ -22944,10 +23086,9 @@ const draft = await responder.draft(ticket, resolution, classification);`
|
|
|
22944
23086
|
/* @__PURE__ */ jsx97(CodeBlock55, {
|
|
22945
23087
|
language: "typescript",
|
|
22946
23088
|
code: `import { createSupportTools } from '@contractspec/lib.support-bot/bot';
|
|
22947
|
-
import { ToolExecutor } from '@contractspec/lib.ai-agent';
|
|
22948
23089
|
|
|
22949
23090
|
const tools = createSupportTools({ resolver, classifier, responder });
|
|
22950
|
-
|
|
23091
|
+
// Pass these tools into your host runtime or agent adapter.`
|
|
22951
23092
|
})
|
|
22952
23093
|
]
|
|
22953
23094
|
}),
|
|
@@ -24021,8 +24162,8 @@ OTEL_TRACES_SAMPLER_ARG=0.1`
|
|
|
24021
24162
|
}
|
|
24022
24163
|
// src/components/docs/reference/DocsReferenceIndexClient.tsx
|
|
24023
24164
|
import {
|
|
24024
|
-
DocsIndexDataView,
|
|
24025
|
-
DocsSearchForm
|
|
24165
|
+
DocsIndexDataView as DocsIndexDataView2,
|
|
24166
|
+
DocsSearchForm as DocsSearchForm2
|
|
24026
24167
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
24027
24168
|
import {
|
|
24028
24169
|
DataViewList as DataViewList2,
|
|
@@ -24073,7 +24214,7 @@ function DocsReferenceIndexClient({
|
|
|
24073
24214
|
return matchesQuery(entry, query);
|
|
24074
24215
|
});
|
|
24075
24216
|
}, [filters, normalizedEntries]);
|
|
24076
|
-
const searchForm = formRenderer.render(
|
|
24217
|
+
const searchForm = formRenderer.render(DocsSearchForm2, {
|
|
24077
24218
|
defaultValues: {
|
|
24078
24219
|
query: filters.query ?? "",
|
|
24079
24220
|
visibility: filters.visibility ?? "",
|
|
@@ -24110,7 +24251,7 @@ function DocsReferenceIndexClient({
|
|
|
24110
24251
|
children: searchForm
|
|
24111
24252
|
}),
|
|
24112
24253
|
/* @__PURE__ */ jsx105(DataViewList2, {
|
|
24113
|
-
spec:
|
|
24254
|
+
spec: DocsIndexDataView2,
|
|
24114
24255
|
items: filteredEntries,
|
|
24115
24256
|
emptyState: /* @__PURE__ */ jsx105(Muted2, {
|
|
24116
24257
|
children: "No reference docs match your filters."
|
|
@@ -24349,7 +24490,7 @@ function DocsMarkdownContent({ content }) {
|
|
|
24349
24490
|
}
|
|
24350
24491
|
|
|
24351
24492
|
// src/components/docs/reference/DocsReferenceContent.tsx
|
|
24352
|
-
import { ContractReferenceDataView } from "@contractspec/lib.contracts-spec/docs";
|
|
24493
|
+
import { ContractReferenceDataView as ContractReferenceDataView2 } from "@contractspec/lib.contracts-spec/docs";
|
|
24353
24494
|
import { DataViewRenderer } from "@contractspec/lib.design-system";
|
|
24354
24495
|
import { VStack as VStack4 } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
24355
24496
|
import { jsx as jsx108, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
@@ -24388,11 +24529,11 @@ function DocsReferenceContent({
|
|
|
24388
24529
|
}
|
|
24389
24530
|
};
|
|
24390
24531
|
const detailSpec = {
|
|
24391
|
-
...
|
|
24532
|
+
...ContractReferenceDataView2,
|
|
24392
24533
|
meta: {
|
|
24393
|
-
...
|
|
24394
|
-
title: entry.title ??
|
|
24395
|
-
description: summary ??
|
|
24534
|
+
...ContractReferenceDataView2.meta,
|
|
24535
|
+
title: entry.title ?? ContractReferenceDataView2.meta.title,
|
|
24536
|
+
description: summary ?? ContractReferenceDataView2.meta.description
|
|
24396
24537
|
}
|
|
24397
24538
|
};
|
|
24398
24539
|
return /* @__PURE__ */ jsxs107(VStack4, {
|
|
@@ -32194,157 +32335,6 @@ var contractspecBlueprint = {
|
|
|
32194
32335
|
routes: contractspecRoutes,
|
|
32195
32336
|
notes: "ContractSpec platform blueprint - defines the app's capabilities, features, and configuration."
|
|
32196
32337
|
};
|
|
32197
|
-
// src/features/contracts-registry.ts
|
|
32198
|
-
import {
|
|
32199
|
-
EventRegistry,
|
|
32200
|
-
OperationSpecRegistry
|
|
32201
|
-
} from "@contractspec/lib.contracts-spec";
|
|
32202
|
-
import {
|
|
32203
|
-
DataViewRegistry
|
|
32204
|
-
} from "@contractspec/lib.contracts-spec/data-views";
|
|
32205
|
-
import {
|
|
32206
|
-
ContractReferenceDataView as ContractReferenceDataView2,
|
|
32207
|
-
ContractReferenceQuery as ContractReferenceQuery2,
|
|
32208
|
-
DocsGenerateCommand,
|
|
32209
|
-
DocsGeneratedEvent,
|
|
32210
|
-
DocsIndexDataView as DocsIndexDataView2,
|
|
32211
|
-
DocsIndexQuery as DocsIndexQuery3,
|
|
32212
|
-
DocsLayoutPresentation,
|
|
32213
|
-
DocsPublishCommand,
|
|
32214
|
-
DocsPublishedEvent,
|
|
32215
|
-
DocsReferencePagePresentation,
|
|
32216
|
-
DocsSearchForm as DocsSearchForm2,
|
|
32217
|
-
ExampleCatalogDataView as ExampleCatalogDataView2
|
|
32218
|
-
} from "@contractspec/lib.contracts-spec/docs";
|
|
32219
|
-
import { FormRegistry } from "@contractspec/lib.contracts-spec/forms";
|
|
32220
|
-
import {
|
|
32221
|
-
PresentationRegistry
|
|
32222
|
-
} from "@contractspec/lib.contracts-spec/presentations";
|
|
32223
|
-
import {
|
|
32224
|
-
serializeDataViewSpec,
|
|
32225
|
-
serializeEventSpec,
|
|
32226
|
-
serializeFormSpec,
|
|
32227
|
-
serializeOperationSpec,
|
|
32228
|
-
serializePresentationSpec
|
|
32229
|
-
} from "@contractspec/lib.contracts-spec/serialization";
|
|
32230
|
-
var operationRegistry = null;
|
|
32231
|
-
function createContractSpecOperationRegistry() {
|
|
32232
|
-
const registry = new OperationSpecRegistry;
|
|
32233
|
-
registry.register(DocsIndexQuery3).register(ContractReferenceQuery2).register(DocsGenerateCommand).register(DocsPublishCommand);
|
|
32234
|
-
return registry;
|
|
32235
|
-
}
|
|
32236
|
-
function getContractSpecOperationRegistry() {
|
|
32237
|
-
if (!operationRegistry) {
|
|
32238
|
-
operationRegistry = createContractSpecOperationRegistry();
|
|
32239
|
-
}
|
|
32240
|
-
return operationRegistry;
|
|
32241
|
-
}
|
|
32242
|
-
function resolveOperationSpec(key, version) {
|
|
32243
|
-
return getContractSpecOperationRegistry().get(key, version);
|
|
32244
|
-
}
|
|
32245
|
-
var eventRegistry = null;
|
|
32246
|
-
function createContractSpecEventRegistry() {
|
|
32247
|
-
const registry = new EventRegistry;
|
|
32248
|
-
registry.register(DocsGeneratedEvent).register(DocsPublishedEvent);
|
|
32249
|
-
return registry;
|
|
32250
|
-
}
|
|
32251
|
-
function getContractSpecEventRegistry() {
|
|
32252
|
-
if (!eventRegistry) {
|
|
32253
|
-
eventRegistry = createContractSpecEventRegistry();
|
|
32254
|
-
}
|
|
32255
|
-
return eventRegistry;
|
|
32256
|
-
}
|
|
32257
|
-
function resolveEventSpec(key, version) {
|
|
32258
|
-
return getContractSpecEventRegistry().get(key, version);
|
|
32259
|
-
}
|
|
32260
|
-
var presentationRegistry = null;
|
|
32261
|
-
function createContractSpecPresentationRegistry() {
|
|
32262
|
-
const registry = new PresentationRegistry;
|
|
32263
|
-
registry.register(DocsLayoutPresentation).register(DocsReferencePagePresentation);
|
|
32264
|
-
return registry;
|
|
32265
|
-
}
|
|
32266
|
-
function getContractSpecPresentationRegistry() {
|
|
32267
|
-
if (!presentationRegistry) {
|
|
32268
|
-
presentationRegistry = createContractSpecPresentationRegistry();
|
|
32269
|
-
}
|
|
32270
|
-
return presentationRegistry;
|
|
32271
|
-
}
|
|
32272
|
-
function resolvePresentationSpec(key, version) {
|
|
32273
|
-
return getContractSpecPresentationRegistry().get(key, version);
|
|
32274
|
-
}
|
|
32275
|
-
var dataViewRegistry = null;
|
|
32276
|
-
function createContractSpecDataViewRegistry() {
|
|
32277
|
-
const registry = new DataViewRegistry;
|
|
32278
|
-
registry.register(DocsIndexDataView2).register(ContractReferenceDataView2).register(ExampleCatalogDataView2);
|
|
32279
|
-
return registry;
|
|
32280
|
-
}
|
|
32281
|
-
function getContractSpecDataViewRegistry() {
|
|
32282
|
-
if (!dataViewRegistry) {
|
|
32283
|
-
dataViewRegistry = createContractSpecDataViewRegistry();
|
|
32284
|
-
}
|
|
32285
|
-
return dataViewRegistry;
|
|
32286
|
-
}
|
|
32287
|
-
function resolveDataViewSpec(key, version) {
|
|
32288
|
-
return getContractSpecDataViewRegistry().get(key, version);
|
|
32289
|
-
}
|
|
32290
|
-
var formRegistry = null;
|
|
32291
|
-
function createContractSpecFormRegistry() {
|
|
32292
|
-
const registry = new FormRegistry;
|
|
32293
|
-
registry.register(DocsSearchForm2);
|
|
32294
|
-
return registry;
|
|
32295
|
-
}
|
|
32296
|
-
function getContractSpecFormRegistry() {
|
|
32297
|
-
if (!formRegistry) {
|
|
32298
|
-
formRegistry = createContractSpecFormRegistry();
|
|
32299
|
-
}
|
|
32300
|
-
return formRegistry;
|
|
32301
|
-
}
|
|
32302
|
-
function resolveFormSpec(key, _version) {
|
|
32303
|
-
return getContractSpecFormRegistry().get(key);
|
|
32304
|
-
}
|
|
32305
|
-
function resolveSerializedOperationSpec(key, version) {
|
|
32306
|
-
const spec = resolveOperationSpec(key, version);
|
|
32307
|
-
return serializeOperationSpec(spec) ?? undefined;
|
|
32308
|
-
}
|
|
32309
|
-
function resolveSerializedEventSpec(key, version) {
|
|
32310
|
-
const spec = resolveEventSpec(key, version);
|
|
32311
|
-
return serializeEventSpec(spec) ?? undefined;
|
|
32312
|
-
}
|
|
32313
|
-
function resolveSerializedPresentationSpec(key, version) {
|
|
32314
|
-
const spec = resolvePresentationSpec(key, version);
|
|
32315
|
-
return serializePresentationSpec(spec) ?? undefined;
|
|
32316
|
-
}
|
|
32317
|
-
function resolveSerializedDataViewSpec(key, version) {
|
|
32318
|
-
const spec = resolveDataViewSpec(key, version);
|
|
32319
|
-
return serializeDataViewSpec(spec) ?? undefined;
|
|
32320
|
-
}
|
|
32321
|
-
function resolveSerializedFormSpec(key, version) {
|
|
32322
|
-
const spec = resolveFormSpec(key, version);
|
|
32323
|
-
return serializeFormSpec(spec) ?? undefined;
|
|
32324
|
-
}
|
|
32325
|
-
function resetContractSpecOperationRegistry() {
|
|
32326
|
-
operationRegistry = null;
|
|
32327
|
-
}
|
|
32328
|
-
function resetContractSpecEventRegistry() {
|
|
32329
|
-
eventRegistry = null;
|
|
32330
|
-
}
|
|
32331
|
-
function resetContractSpecPresentationRegistry() {
|
|
32332
|
-
presentationRegistry = null;
|
|
32333
|
-
}
|
|
32334
|
-
function resetContractSpecDataViewRegistry() {
|
|
32335
|
-
dataViewRegistry = null;
|
|
32336
|
-
}
|
|
32337
|
-
function resetContractSpecFormRegistry() {
|
|
32338
|
-
formRegistry = null;
|
|
32339
|
-
}
|
|
32340
|
-
function resetAllContractSpecRegistries() {
|
|
32341
|
-
resetContractSpecOperationRegistry();
|
|
32342
|
-
resetContractSpecEventRegistry();
|
|
32343
|
-
resetContractSpecPresentationRegistry();
|
|
32344
|
-
resetContractSpecDataViewRegistry();
|
|
32345
|
-
resetContractSpecFormRegistry();
|
|
32346
|
-
}
|
|
32347
|
-
|
|
32348
32338
|
// src/features/docs.feature.ts
|
|
32349
32339
|
var DocsFeature = {
|
|
32350
32340
|
meta: {
|
|
@@ -32376,6 +32366,15 @@ var DocsFeature = {
|
|
|
32376
32366
|
}
|
|
32377
32367
|
};
|
|
32378
32368
|
|
|
32369
|
+
// src/features/docs/docs.contracts.ts
|
|
32370
|
+
import {
|
|
32371
|
+
ContractReferenceQuery as ContractReferenceQuery2,
|
|
32372
|
+
DocSummaryModel,
|
|
32373
|
+
DocsIndexInput,
|
|
32374
|
+
DocsIndexOutput,
|
|
32375
|
+
DocsIndexQuery as DocsIndexQuery2,
|
|
32376
|
+
DocsIndexQuery as DocsIndexQuery3
|
|
32377
|
+
} from "@contractspec/lib.contracts-spec/docs";
|
|
32379
32378
|
// src/features/mcp.feature.ts
|
|
32380
32379
|
var MCPFeature = {
|
|
32381
32380
|
meta: {
|
|
@@ -32492,7 +32491,7 @@ export {
|
|
|
32492
32491
|
getContractSpecFeatureRegistry,
|
|
32493
32492
|
getContractSpecEventRegistry,
|
|
32494
32493
|
getContractSpecDataViewRegistry,
|
|
32495
|
-
|
|
32494
|
+
DocsIndexQuery2 as docsSearchSpec,
|
|
32496
32495
|
createContractSpecPresentationRegistry,
|
|
32497
32496
|
createContractSpecOperationRegistry,
|
|
32498
32497
|
createContractSpecFormRegistry,
|
|
@@ -32627,7 +32626,7 @@ export {
|
|
|
32627
32626
|
EcosystemIntegrationsPage,
|
|
32628
32627
|
DocsReferencePage,
|
|
32629
32628
|
DocsReferenceIndexPage,
|
|
32630
|
-
|
|
32629
|
+
DocsIndexQuery3 as DocsIndexQuery,
|
|
32631
32630
|
DocsIndexPage,
|
|
32632
32631
|
DocsFeature,
|
|
32633
32632
|
DocsExamplesPage,
|
|
@@ -32640,7 +32639,7 @@ export {
|
|
|
32640
32639
|
DOCS_PRIMARY_SECTIONS,
|
|
32641
32640
|
DOCS_PAGES,
|
|
32642
32641
|
ConversationList,
|
|
32643
|
-
ContractReferenceQuery,
|
|
32642
|
+
ContractReferenceQuery2 as ContractReferenceQuery,
|
|
32644
32643
|
ContractFirstApiPage,
|
|
32645
32644
|
CompatibilityPage,
|
|
32646
32645
|
ComparisonWorkflowEnginesPage,
|