@contractspec/bundle.library 3.8.7 → 3.8.9
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 +9 -10
- package/CHANGELOG.md +59 -0
- package/dist/application/index.js +1 -1
- package/dist/application/mcp/cliMcp.js +1 -1
- package/dist/application/mcp/common.js +1 -1
- package/dist/application/mcp/contractsMcp.js +1 -1
- package/dist/application/mcp/docsMcp.js +1 -1
- package/dist/application/mcp/index.js +1 -1
- package/dist/application/mcp/internalMcp.js +1 -1
- package/dist/application/mcp/providerRankingMcp.js +1 -1
- package/dist/node/application/index.js +1 -1
- package/dist/node/application/mcp/cliMcp.js +1 -1
- package/dist/node/application/mcp/common.js +1 -1
- package/dist/node/application/mcp/contractsMcp.js +1 -1
- package/dist/node/application/mcp/docsMcp.js +1 -1
- package/dist/node/application/mcp/index.js +1 -1
- package/dist/node/application/mcp/internalMcp.js +1 -1
- package/dist/node/application/mcp/providerRankingMcp.js +1 -1
- package/package.json +31 -31
- package/src/application/mcp/common.ts +1 -1
- package/src/components/docs/generated/loader.ts +13 -8
- package/.turbo/turbo-prebuild.log +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
$ contractspec-bun-build prebuild
|
|
2
|
-
$ bun run
|
|
3
|
-
$ contractspec-bun-build prebuild
|
|
2
|
+
$ bun run build:bundle && bun run build:types
|
|
4
3
|
$ contractspec-bun-build transpile
|
|
5
4
|
[contractspec-bun-build] transpile target=bun root=src entries=307 noBundle=false
|
|
6
|
-
Bundled 307 modules in
|
|
5
|
+
Bundled 307 modules in 92ms
|
|
7
6
|
|
|
8
7
|
application/context-storage/index.js 1.0 KB (entry point)
|
|
9
8
|
presentation/features/templates/types.js 8 bytes (entry point)
|
|
@@ -314,7 +313,7 @@ Bundled 307 modules in 130ms
|
|
|
314
313
|
application/mcp/contractsMcpTypes.js 8 bytes (entry point)
|
|
315
314
|
|
|
316
315
|
[contractspec-bun-build] transpile target=node root=src entries=307 noBundle=false
|
|
317
|
-
Bundled 307 modules in
|
|
316
|
+
Bundled 307 modules in 125ms
|
|
318
317
|
|
|
319
318
|
application/context-storage/index.js 0.99 KB (entry point)
|
|
320
319
|
presentation/features/templates/types.js 0 KB (entry point)
|
|
@@ -604,21 +603,21 @@ Bundled 307 modules in 110ms
|
|
|
604
603
|
components/docs/advanced/AdvancedMCPPage.js 12.94 KB (entry point)
|
|
605
604
|
components/docs/advanced/AdvancedOverlayEditorPage.js 3.70 KB (entry point)
|
|
606
605
|
application/mcp/docsMcp.catalog.js 12.68 KB (entry point)
|
|
607
|
-
application/index.js 69.
|
|
606
|
+
application/index.js 69.27 KB (entry point)
|
|
608
607
|
application/mcp/index.js 68.29 KB (entry point)
|
|
609
|
-
application/mcp/internalMcp.js 12.
|
|
610
|
-
application/mcp/providerRankingMcp.js 16.
|
|
611
|
-
application/mcp/docsMcp.js 33.
|
|
608
|
+
application/mcp/internalMcp.js 12.41 KB (entry point)
|
|
609
|
+
application/mcp/providerRankingMcp.js 16.36 KB (entry point)
|
|
610
|
+
application/mcp/docsMcp.js 33.44 KB (entry point)
|
|
612
611
|
application/mcp/docsMcp.prompts.js 17.00 KB (entry point)
|
|
613
612
|
application/mcp/docsMcp.resources.js 17.18 KB (entry point)
|
|
614
613
|
application/mcp/docsMcp.tools.js 17.43 KB (entry point)
|
|
615
614
|
application/mcp/docsMcp.data.js 5.12 KB (entry point)
|
|
616
615
|
application/mcp/docsMcp.reference.js 7.54 KB (entry point)
|
|
617
616
|
features/contracts-registry.js 5.64 KB (entry point)
|
|
618
|
-
application/mcp/cliMcp.js 13.
|
|
617
|
+
application/mcp/cliMcp.js 13.73 KB (entry point)
|
|
619
618
|
application/mcp/contractsMcp.js 16.95 KB (entry point)
|
|
620
619
|
infrastructure/elysia/logger.js 0.77 KB (entry point)
|
|
621
|
-
application/mcp/common.js 5.
|
|
620
|
+
application/mcp/common.js 5.73 KB (entry point)
|
|
622
621
|
application/mcp/normalizeMcpRequest.js 0.91 KB (entry point)
|
|
623
622
|
application/mcp/contractsMcpResources.js 3.52 KB (entry point)
|
|
624
623
|
application/mcp/contractsMcpTools.js 6.73 KB (entry point)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# @contractspec/bundle.library
|
|
2
2
|
|
|
3
|
+
## 3.8.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2b59171: fix: crypto package issue due to nodejs only runtime
|
|
8
|
+
- Updated dependencies [2b59171]
|
|
9
|
+
- @contractspec/lib.contracts-runtime-server-graphql@3.7.16
|
|
10
|
+
- @contractspec/lib.contracts-runtime-client-react@3.8.4
|
|
11
|
+
- @contractspec/lib.contracts-runtime-server-rest@3.7.16
|
|
12
|
+
- @contractspec/lib.contracts-runtime-server-mcp@3.7.16
|
|
13
|
+
- @contractspec/lib.contracts-integrations@3.8.8
|
|
14
|
+
- @contractspec/module.context-storage@0.7.15
|
|
15
|
+
- @contractspec/lib.contracts-library@3.7.16
|
|
16
|
+
- @contractspec/lib.example-shared-ui@6.0.16
|
|
17
|
+
- @contractspec/lib.provider-ranking@0.7.12
|
|
18
|
+
- @contractspec/lib.runtime-sandbox@2.7.13
|
|
19
|
+
- @contractspec/lib.surface-runtime@0.5.16
|
|
20
|
+
- @contractspec/lib.contracts-spec@5.0.4
|
|
21
|
+
- @contractspec/lib.design-system@3.8.9
|
|
22
|
+
- @contractspec/lib.ai-providers@3.7.12
|
|
23
|
+
- @contractspec/lib.content-gen@3.7.16
|
|
24
|
+
- @contractspec/module.examples@3.8.8
|
|
25
|
+
- @contractspec/lib.ui-kit-web@3.9.8
|
|
26
|
+
- @contractspec/lib.knowledge@3.7.16
|
|
27
|
+
- @contractspec/lib.ui-link@3.7.12
|
|
28
|
+
- @contractspec/lib.logger@3.7.12
|
|
29
|
+
- @contractspec/lib.schema@3.7.13
|
|
30
|
+
|
|
31
|
+
## 3.8.8
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- cce2b13: Add first-class Workflow DevKit support for `WorkflowSpec`, including new runtime metadata, stricter validation for Workflow-backed workflows, a dedicated Workflow DevKit integration package, CLI artifact generation, and Workflow-aware chat route helpers exposed from `@contractspec/module.ai-chat/core/workflow` so standard chat imports do not pull Workflow-only runtime assets into non-Workflow builds.
|
|
36
|
+
|
|
37
|
+
Also harden supporting runtime surfaces by reusing Playwright browser instances in the harness runtime, mapping design-system button `onPress` handlers correctly to DOM clicks, and switching the workspace git adapter to argument-safe subprocess calls while tightening slow test coverage around those flows.
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [cce2b13]
|
|
40
|
+
- @contractspec/lib.contracts-runtime-server-graphql@3.7.15
|
|
41
|
+
- @contractspec/lib.contracts-runtime-client-react@3.8.3
|
|
42
|
+
- @contractspec/lib.contracts-runtime-server-rest@3.7.15
|
|
43
|
+
- @contractspec/lib.contracts-runtime-server-mcp@3.7.15
|
|
44
|
+
- @contractspec/lib.contracts-integrations@3.8.7
|
|
45
|
+
- @contractspec/module.context-storage@0.7.14
|
|
46
|
+
- @contractspec/lib.contracts-library@3.7.15
|
|
47
|
+
- @contractspec/lib.example-shared-ui@6.0.15
|
|
48
|
+
- @contractspec/lib.provider-ranking@0.7.11
|
|
49
|
+
- @contractspec/lib.runtime-sandbox@2.7.12
|
|
50
|
+
- @contractspec/lib.surface-runtime@0.5.15
|
|
51
|
+
- @contractspec/lib.contracts-spec@5.0.3
|
|
52
|
+
- @contractspec/lib.design-system@3.8.8
|
|
53
|
+
- @contractspec/lib.ai-providers@3.7.11
|
|
54
|
+
- @contractspec/lib.content-gen@3.7.15
|
|
55
|
+
- @contractspec/module.examples@3.8.7
|
|
56
|
+
- @contractspec/lib.ui-kit-web@3.9.7
|
|
57
|
+
- @contractspec/lib.knowledge@3.7.15
|
|
58
|
+
- @contractspec/lib.ui-link@3.7.11
|
|
59
|
+
- @contractspec/lib.logger@3.7.11
|
|
60
|
+
- @contractspec/lib.schema@3.7.12
|
|
61
|
+
|
|
3
62
|
## 3.8.7
|
|
4
63
|
|
|
5
64
|
### Patch Changes
|
|
@@ -72,11 +72,11 @@ function normalizeMcpRequest(request) {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// src/application/mcp/common.ts
|
|
75
|
-
import { randomUUID } from "crypto";
|
|
76
75
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
77
76
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
78
77
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
79
78
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
79
|
+
import { randomUUID } from "crypto";
|
|
80
80
|
import { Elysia } from "elysia";
|
|
81
81
|
var baseCtx = {
|
|
82
82
|
actor: "anonymous",
|
|
@@ -46,11 +46,11 @@ function normalizeMcpRequest(request) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// src/application/mcp/common.ts
|
|
49
|
-
import { randomUUID } from "crypto";
|
|
50
49
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
51
50
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
52
51
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
53
52
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
53
|
+
import { randomUUID } from "crypto";
|
|
54
54
|
import { Elysia } from "elysia";
|
|
55
55
|
var baseCtx = {
|
|
56
56
|
actor: "anonymous",
|
|
@@ -19,11 +19,11 @@ function normalizeMcpRequest(request) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// src/application/mcp/common.ts
|
|
22
|
-
import { randomUUID } from "crypto";
|
|
23
22
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
24
23
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
25
24
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
26
25
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
26
|
+
import { randomUUID } from "crypto";
|
|
27
27
|
import { Elysia } from "elysia";
|
|
28
28
|
var baseCtx = {
|
|
29
29
|
actor: "anonymous",
|
|
@@ -46,11 +46,11 @@ function normalizeMcpRequest(request) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// src/application/mcp/common.ts
|
|
49
|
-
import { randomUUID } from "crypto";
|
|
50
49
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
51
50
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
52
51
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
53
52
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
53
|
+
import { randomUUID } from "crypto";
|
|
54
54
|
import { Elysia } from "elysia";
|
|
55
55
|
var baseCtx = {
|
|
56
56
|
actor: "anonymous",
|
|
@@ -46,11 +46,11 @@ function normalizeMcpRequest(request) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// src/application/mcp/common.ts
|
|
49
|
-
import { randomUUID } from "crypto";
|
|
50
49
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
51
50
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
52
51
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
53
52
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
53
|
+
import { randomUUID } from "crypto";
|
|
54
54
|
import { Elysia } from "elysia";
|
|
55
55
|
var baseCtx = {
|
|
56
56
|
actor: "anonymous",
|
|
@@ -46,11 +46,11 @@ function normalizeMcpRequest(request) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// src/application/mcp/common.ts
|
|
49
|
-
import { randomUUID } from "crypto";
|
|
50
49
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
51
50
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
52
51
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
53
52
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
53
|
+
import { randomUUID } from "crypto";
|
|
54
54
|
import { Elysia } from "elysia";
|
|
55
55
|
var baseCtx = {
|
|
56
56
|
actor: "anonymous",
|
|
@@ -46,11 +46,11 @@ function normalizeMcpRequest(request) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// src/application/mcp/common.ts
|
|
49
|
-
import { randomUUID } from "crypto";
|
|
50
49
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
51
50
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
52
51
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
53
52
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
53
|
+
import { randomUUID } from "crypto";
|
|
54
54
|
import { Elysia } from "elysia";
|
|
55
55
|
var baseCtx = {
|
|
56
56
|
actor: "anonymous",
|
|
@@ -46,11 +46,11 @@ function normalizeMcpRequest(request) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// src/application/mcp/common.ts
|
|
49
|
-
import { randomUUID } from "crypto";
|
|
50
49
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
51
50
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
52
51
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
53
52
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
53
|
+
import { randomUUID } from "crypto";
|
|
54
54
|
import { Elysia } from "elysia";
|
|
55
55
|
var baseCtx = {
|
|
56
56
|
actor: "anonymous",
|
|
@@ -71,11 +71,11 @@ function normalizeMcpRequest(request) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// src/application/mcp/common.ts
|
|
74
|
-
import { randomUUID } from "node:crypto";
|
|
75
74
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
76
75
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
77
76
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
78
77
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
78
|
+
import { randomUUID } from "crypto";
|
|
79
79
|
import { Elysia } from "elysia";
|
|
80
80
|
var baseCtx = {
|
|
81
81
|
actor: "anonymous",
|
|
@@ -45,11 +45,11 @@ function normalizeMcpRequest(request) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// src/application/mcp/common.ts
|
|
48
|
-
import { randomUUID } from "node:crypto";
|
|
49
48
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
50
49
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
51
50
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
52
51
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
52
|
+
import { randomUUID } from "crypto";
|
|
53
53
|
import { Elysia } from "elysia";
|
|
54
54
|
var baseCtx = {
|
|
55
55
|
actor: "anonymous",
|
|
@@ -18,11 +18,11 @@ function normalizeMcpRequest(request) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
// src/application/mcp/common.ts
|
|
21
|
-
import { randomUUID } from "node:crypto";
|
|
22
21
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
23
22
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
24
23
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
25
24
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
25
|
+
import { randomUUID } from "crypto";
|
|
26
26
|
import { Elysia } from "elysia";
|
|
27
27
|
var baseCtx = {
|
|
28
28
|
actor: "anonymous",
|
|
@@ -45,11 +45,11 @@ function normalizeMcpRequest(request) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// src/application/mcp/common.ts
|
|
48
|
-
import { randomUUID } from "node:crypto";
|
|
49
48
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
50
49
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
51
50
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
52
51
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
52
|
+
import { randomUUID } from "crypto";
|
|
53
53
|
import { Elysia } from "elysia";
|
|
54
54
|
var baseCtx = {
|
|
55
55
|
actor: "anonymous",
|
|
@@ -45,11 +45,11 @@ function normalizeMcpRequest(request) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// src/application/mcp/common.ts
|
|
48
|
-
import { randomUUID } from "node:crypto";
|
|
49
48
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
50
49
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
51
50
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
52
51
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
52
|
+
import { randomUUID } from "crypto";
|
|
53
53
|
import { Elysia } from "elysia";
|
|
54
54
|
var baseCtx = {
|
|
55
55
|
actor: "anonymous",
|
|
@@ -45,11 +45,11 @@ function normalizeMcpRequest(request) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// src/application/mcp/common.ts
|
|
48
|
-
import { randomUUID } from "node:crypto";
|
|
49
48
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
50
49
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
51
50
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
52
51
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
52
|
+
import { randomUUID } from "crypto";
|
|
53
53
|
import { Elysia } from "elysia";
|
|
54
54
|
var baseCtx = {
|
|
55
55
|
actor: "anonymous",
|
|
@@ -45,11 +45,11 @@ function normalizeMcpRequest(request) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// src/application/mcp/common.ts
|
|
48
|
-
import { randomUUID } from "node:crypto";
|
|
49
48
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
50
49
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
51
50
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
52
51
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
52
|
+
import { randomUUID } from "crypto";
|
|
53
53
|
import { Elysia } from "elysia";
|
|
54
54
|
var baseCtx = {
|
|
55
55
|
actor: "anonymous",
|
|
@@ -45,11 +45,11 @@ function normalizeMcpRequest(request) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// src/application/mcp/common.ts
|
|
48
|
-
import { randomUUID } from "node:crypto";
|
|
49
48
|
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
50
49
|
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
51
50
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
52
51
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
52
|
+
import { randomUUID } from "crypto";
|
|
53
53
|
import { Elysia } from "elysia";
|
|
54
54
|
var baseCtx = {
|
|
55
55
|
actor: "anonymous",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/bundle.library",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -rf dist",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"lint": "bun run lint:fix",
|
|
9
9
|
"lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
|
|
10
10
|
"lint:check": "biome check .",
|
|
11
|
-
"build": "bun run
|
|
11
|
+
"build": "bun run build:bundle && bun run build:types",
|
|
12
12
|
"build:bundle": "contractspec-bun-build transpile",
|
|
13
13
|
"build:types": "contractspec-bun-build types",
|
|
14
14
|
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
@@ -1867,50 +1867,50 @@
|
|
|
1867
1867
|
},
|
|
1868
1868
|
"dependencies": {
|
|
1869
1869
|
"@apollo/client": "^4.1.6",
|
|
1870
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
1871
|
-
"@contractspec/lib.ai-providers": "3.7.
|
|
1872
|
-
"@contractspec/lib.contracts-spec": "5.0.
|
|
1873
|
-
"@contractspec/lib.contracts-library": "3.7.
|
|
1874
|
-
"@contractspec/lib.content-gen": "3.7.
|
|
1875
|
-
"@contractspec/lib.contracts-runtime-server-mcp": "3.7.
|
|
1876
|
-
"@contractspec/lib.design-system": "3.8.
|
|
1877
|
-
"@contractspec/lib.surface-runtime": "0.5.
|
|
1878
|
-
"@contractspec/lib.provider-ranking": "0.7.
|
|
1879
|
-
"@contractspec/lib.example-shared-ui": "6.0.
|
|
1880
|
-
"@contractspec/lib.knowledge": "3.7.
|
|
1881
|
-
"@contractspec/lib.logger": "3.7.
|
|
1882
|
-
"@contractspec/lib.runtime-sandbox": "2.7.
|
|
1883
|
-
"@contractspec/lib.schema": "3.7.
|
|
1884
|
-
"@contractspec/lib.ui-kit-web": "3.9.
|
|
1885
|
-
"@contractspec/lib.ui-link": "3.7.
|
|
1886
|
-
"@contractspec/module.context-storage": "0.7.
|
|
1887
|
-
"@contractspec/module.examples": "3.8.
|
|
1870
|
+
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
1871
|
+
"@contractspec/lib.ai-providers": "3.7.12",
|
|
1872
|
+
"@contractspec/lib.contracts-spec": "5.0.4",
|
|
1873
|
+
"@contractspec/lib.contracts-library": "3.7.16",
|
|
1874
|
+
"@contractspec/lib.content-gen": "3.7.16",
|
|
1875
|
+
"@contractspec/lib.contracts-runtime-server-mcp": "3.7.16",
|
|
1876
|
+
"@contractspec/lib.design-system": "3.8.9",
|
|
1877
|
+
"@contractspec/lib.surface-runtime": "0.5.16",
|
|
1878
|
+
"@contractspec/lib.provider-ranking": "0.7.12",
|
|
1879
|
+
"@contractspec/lib.example-shared-ui": "6.0.16",
|
|
1880
|
+
"@contractspec/lib.knowledge": "3.7.16",
|
|
1881
|
+
"@contractspec/lib.logger": "3.7.12",
|
|
1882
|
+
"@contractspec/lib.runtime-sandbox": "2.7.13",
|
|
1883
|
+
"@contractspec/lib.schema": "3.7.13",
|
|
1884
|
+
"@contractspec/lib.ui-kit-web": "3.9.8",
|
|
1885
|
+
"@contractspec/lib.ui-link": "3.7.12",
|
|
1886
|
+
"@contractspec/module.context-storage": "0.7.15",
|
|
1887
|
+
"@contractspec/module.examples": "3.8.8",
|
|
1888
1888
|
"@dnd-kit/core": "^6.1.0",
|
|
1889
1889
|
"@dnd-kit/sortable": "^10.0.0",
|
|
1890
1890
|
"@dnd-kit/utilities": "^3.2.2",
|
|
1891
|
-
"@electric-sql/pglite": "^0.4.
|
|
1891
|
+
"@electric-sql/pglite": "^0.4.2",
|
|
1892
1892
|
"@scaleway/sdk": "^3.4.1",
|
|
1893
1893
|
"@scaleway/sdk-client": "^2.2.1",
|
|
1894
1894
|
"drizzle-orm": "^0.45.1",
|
|
1895
1895
|
"elysia": "^1.4.28",
|
|
1896
1896
|
"framer-motion": "^12.38.0",
|
|
1897
|
-
"lucide-react": "^
|
|
1898
|
-
"posthog-js": "^1.
|
|
1897
|
+
"lucide-react": "^1.6.0",
|
|
1898
|
+
"posthog-js": "^1.363.5",
|
|
1899
1899
|
"posthog-node": "^5.28.4",
|
|
1900
|
-
"posthog-react-native": "^4.37.
|
|
1901
|
-
"react-hook-form": "^7.
|
|
1900
|
+
"posthog-react-native": "^4.37.6",
|
|
1901
|
+
"react-hook-form": "^7.72.0",
|
|
1902
1902
|
"zod": "^4.3.5",
|
|
1903
|
-
"@contractspec/lib.contracts-integrations": "3.8.
|
|
1904
|
-
"@contractspec/lib.contracts-runtime-server-rest": "3.7.
|
|
1905
|
-
"@contractspec/lib.contracts-runtime-server-graphql": "3.7.
|
|
1906
|
-
"@contractspec/lib.contracts-runtime-client-react": "3.8.
|
|
1903
|
+
"@contractspec/lib.contracts-integrations": "3.8.8",
|
|
1904
|
+
"@contractspec/lib.contracts-runtime-server-rest": "3.7.16",
|
|
1905
|
+
"@contractspec/lib.contracts-runtime-server-graphql": "3.7.16",
|
|
1906
|
+
"@contractspec/lib.contracts-runtime-client-react": "3.8.4"
|
|
1907
1907
|
},
|
|
1908
1908
|
"devDependencies": {
|
|
1909
1909
|
"@types/react": "~19.2.14",
|
|
1910
|
-
"@contractspec/tool.typescript": "3.7.
|
|
1910
|
+
"@contractspec/tool.typescript": "3.7.12",
|
|
1911
1911
|
"typescript": "^5.9.3",
|
|
1912
1912
|
"@types/bun": "~1.3.11",
|
|
1913
|
-
"@contractspec/tool.bun": "3.7.
|
|
1913
|
+
"@contractspec/tool.bun": "3.7.12"
|
|
1914
1914
|
},
|
|
1915
1915
|
"repository": {
|
|
1916
1916
|
"type": "git",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { randomUUID } from 'node:crypto';
|
|
2
1
|
import type { IntegrationAuthType } from '@contractspec/lib.contracts-integrations/integrations';
|
|
3
2
|
import { createMcpServer } from '@contractspec/lib.contracts-runtime-server-mcp/provider-mcp';
|
|
4
3
|
import type {
|
|
@@ -11,6 +10,7 @@ import { PresentationRegistry } from '@contractspec/lib.contracts-spec/presentat
|
|
|
11
10
|
import { Logger } from '@contractspec/lib.logger';
|
|
12
11
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
13
12
|
import { WebStandardStreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js';
|
|
13
|
+
import { randomUUID } from 'crypto';
|
|
14
14
|
import { Elysia } from 'elysia';
|
|
15
15
|
import { normalizeMcpRequest } from './normalizeMcpRequest';
|
|
16
16
|
|
|
@@ -20,25 +20,27 @@ function chunkKeyForId(id: string): string {
|
|
|
20
20
|
|
|
21
21
|
async function loadManifest(): Promise<DocsIndexManifest> {
|
|
22
22
|
if (!manifestPromise) {
|
|
23
|
-
manifestPromise = readFile(
|
|
24
|
-
(
|
|
25
|
-
|
|
23
|
+
manifestPromise = readFile(
|
|
24
|
+
join(baseDir, /* turbopackIgnore: true */ DOCS_INDEX_MANIFEST),
|
|
25
|
+
'utf8'
|
|
26
|
+
).then((content) => JSON.parse(content) as DocsIndexManifest);
|
|
26
27
|
}
|
|
27
28
|
return manifestPromise;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
function resolveContentRoot(manifest: DocsIndexManifest): string {
|
|
31
32
|
const root = manifest.contentRoot ?? '.';
|
|
32
|
-
return join(baseDir, root);
|
|
33
|
+
return join(baseDir, /* turbopackIgnore: true */ root);
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
async function loadChunk(fileName: string): Promise<DocsIndexEntry[]> {
|
|
36
37
|
const cached = chunkCache.get(fileName);
|
|
37
38
|
if (cached) return cached;
|
|
38
39
|
|
|
39
|
-
const load = readFile(
|
|
40
|
-
(
|
|
41
|
-
|
|
40
|
+
const load = readFile(
|
|
41
|
+
join(baseDir, /* turbopackIgnore: true */ fileName),
|
|
42
|
+
'utf8'
|
|
43
|
+
).then((content) => JSON.parse(content) as DocsIndexEntry[]);
|
|
42
44
|
chunkCache.set(fileName, load);
|
|
43
45
|
return load;
|
|
44
46
|
}
|
|
@@ -74,7 +76,10 @@ export async function getGeneratedDocById(id: string): Promise<{
|
|
|
74
76
|
const entry = entries.find((doc) => doc.id === id);
|
|
75
77
|
if (!entry || !entry.contentPath) return null;
|
|
76
78
|
|
|
77
|
-
const contentPath = join(
|
|
79
|
+
const contentPath = join(
|
|
80
|
+
resolveContentRoot(manifest),
|
|
81
|
+
/* turbopackIgnore: true */ entry.contentPath
|
|
82
|
+
);
|
|
78
83
|
try {
|
|
79
84
|
const content = await readFile(contentPath, 'utf8');
|
|
80
85
|
return { entry, content };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ contractspec-bun-build prebuild
|