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