@contractspec/bundle.library 3.8.8 → 3.8.10

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.
@@ -1,9 +1,8 @@
1
1
  $ contractspec-bun-build prebuild
2
- $ bun run prebuild && bun run build:bundle && bun run build:types
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 178ms
5
+ Bundled 307 modules in 202ms
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)
@@ -143,13 +142,13 @@ Bundled 307 modules in 178ms
143
142
  components/docs/studio/StudioIntegrationsPage.js 0.79 KB (entry point)
144
143
  components/docs/studio/StudioOverviewPage.js 6.27 KB (entry point)
145
144
  components/docs/studio/StudioVisualBuilderPage.js 0.81 KB (entry point)
146
- components/docs/specs/index.js 71.59 KB (entry point)
145
+ components/docs/specs/index.js 72.13 KB (entry point)
147
146
  components/docs/specs/SpecsCapabilitiesPage.js 7.0 KB (entry point)
148
147
  components/docs/specs/SpecsDataViewsPage.js 11.19 KB (entry point)
149
148
  components/docs/specs/SpecsOverlaysPage.js 15.14 KB (entry point)
150
149
  components/docs/specs/SpecsOverviewPage.js 7.0 KB (entry point)
151
150
  components/docs/specs/SpecsPolicyPage.js 17.27 KB (entry point)
152
- components/docs/specs/SpecsWorkflowsPage.js 13.54 KB (entry point)
151
+ components/docs/specs/SpecsWorkflowsPage.js 14.1 KB (entry point)
153
152
  components/docs/safety/index.js 60.48 KB (entry point)
154
153
  components/docs/safety/SafetyAuditingPage.js 14.74 KB (entry point)
155
154
  components/docs/safety/SafetyMigrationsPage.js 14.94 KB (entry point)
@@ -314,7 +313,7 @@ Bundled 307 modules in 178ms
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 129ms
316
+ Bundled 307 modules in 145ms
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)
@@ -454,13 +453,13 @@ Bundled 307 modules in 129ms
454
453
  components/docs/studio/StudioIntegrationsPage.js 0.79 KB (entry point)
455
454
  components/docs/studio/StudioOverviewPage.js 6.26 KB (entry point)
456
455
  components/docs/studio/StudioVisualBuilderPage.js 0.80 KB (entry point)
457
- components/docs/specs/index.js 71.42 KB (entry point)
456
+ components/docs/specs/index.js 71.97 KB (entry point)
458
457
  components/docs/specs/SpecsCapabilitiesPage.js 6.98 KB (entry point)
459
458
  components/docs/specs/SpecsDataViewsPage.js 11.16 KB (entry point)
460
459
  components/docs/specs/SpecsOverlaysPage.js 15.1 KB (entry point)
461
460
  components/docs/specs/SpecsOverviewPage.js 6.99 KB (entry point)
462
461
  components/docs/specs/SpecsPolicyPage.js 17.22 KB (entry point)
463
- components/docs/specs/SpecsWorkflowsPage.js 13.52 KB (entry point)
462
+ components/docs/specs/SpecsWorkflowsPage.js 14.1 KB (entry point)
464
463
  components/docs/safety/index.js 60.34 KB (entry point)
465
464
  components/docs/safety/SafetyAuditingPage.js 14.69 KB (entry point)
466
465
  components/docs/safety/SafetyMigrationsPage.js 14.88 KB (entry point)
@@ -604,21 +603,21 @@ Bundled 307 modules in 129ms
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.28 KB (entry point)
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.42 KB (entry point)
610
- application/mcp/providerRankingMcp.js 16.37 KB (entry point)
611
- application/mcp/docsMcp.js 33.45 KB (entry point)
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.74 KB (entry point)
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.74 KB (entry point)
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.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix workflow runtime imports for sandboxed workflow execution and keep workflow authoring on safe subpaths.
8
+ - Migration: Keep Node-only workflow runner code out of "use workflow" entrypoints.
9
+ - Deprecations: Importing the broad `@contractspec/lib.contracts-spec/workflow` barrel from sandboxed workflow entrypoints is discouraged.
10
+ - Updated dependencies because of Fix workflow runtime imports for sandboxed workflow execution and keep workflow authoring on safe subpaths.
11
+ - Updated dependencies because of Add versioning-backed release capsules, generated patch notes, and guided upgrade flows.
12
+ - @contractspec/lib.contracts-runtime-server-graphql@3.7.17
13
+ - @contractspec/lib.contracts-runtime-client-react@3.8.5
14
+ - @contractspec/lib.contracts-runtime-server-rest@3.7.17
15
+ - @contractspec/lib.contracts-runtime-server-mcp@3.7.17
16
+ - @contractspec/lib.contracts-integrations@3.8.9
17
+ - @contractspec/module.context-storage@0.7.16
18
+ - @contractspec/lib.contracts-library@3.7.17
19
+ - @contractspec/lib.example-shared-ui@6.0.17
20
+ - @contractspec/lib.provider-ranking@0.7.13
21
+ - @contractspec/lib.runtime-sandbox@2.7.14
22
+ - @contractspec/lib.surface-runtime@0.5.17
23
+ - @contractspec/lib.contracts-spec@5.1.0
24
+ - @contractspec/lib.design-system@3.8.10
25
+ - @contractspec/lib.ai-providers@3.7.13
26
+ - @contractspec/lib.content-gen@3.7.17
27
+ - @contractspec/module.examples@3.8.9
28
+ - @contractspec/lib.ui-kit-web@3.9.9
29
+ - @contractspec/lib.knowledge@3.7.17
30
+ - @contractspec/lib.ui-link@3.7.13
31
+ - @contractspec/lib.logger@3.7.13
32
+ - @contractspec/lib.schema@3.7.14
33
+
34
+ ## 3.8.9
35
+
36
+ ### Patch Changes
37
+
38
+ - 2b59171: fix: crypto package issue due to nodejs only runtime
39
+ - Updated dependencies [2b59171]
40
+ - @contractspec/lib.contracts-runtime-server-graphql@3.7.16
41
+ - @contractspec/lib.contracts-runtime-client-react@3.8.4
42
+ - @contractspec/lib.contracts-runtime-server-rest@3.7.16
43
+ - @contractspec/lib.contracts-runtime-server-mcp@3.7.16
44
+ - @contractspec/lib.contracts-integrations@3.8.8
45
+ - @contractspec/module.context-storage@0.7.15
46
+ - @contractspec/lib.contracts-library@3.7.16
47
+ - @contractspec/lib.example-shared-ui@6.0.16
48
+ - @contractspec/lib.provider-ranking@0.7.12
49
+ - @contractspec/lib.runtime-sandbox@2.7.13
50
+ - @contractspec/lib.surface-runtime@0.5.16
51
+ - @contractspec/lib.contracts-spec@5.0.4
52
+ - @contractspec/lib.design-system@3.8.9
53
+ - @contractspec/lib.ai-providers@3.7.12
54
+ - @contractspec/lib.content-gen@3.7.16
55
+ - @contractspec/module.examples@3.8.8
56
+ - @contractspec/lib.ui-kit-web@3.9.8
57
+ - @contractspec/lib.knowledge@3.7.16
58
+ - @contractspec/lib.ui-link@3.7.12
59
+ - @contractspec/lib.logger@3.7.12
60
+ - @contractspec/lib.schema@3.7.13
61
+
3
62
  ## 3.8.8
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",
@@ -27673,10 +27673,23 @@ function SpecsWorkflowsPage() {
27673
27673
  className: "text-muted-foreground",
27674
27674
  children: "Here's a simplified example of a payment workflow in TypeScript:"
27675
27675
  }),
27676
+ /* @__PURE__ */ jsxs120("p", {
27677
+ className: "text-muted-foreground text-sm",
27678
+ children: [
27679
+ "For Vercel Workflow and other VM-evaluated runtimes, author workflow specs from",
27680
+ " ",
27681
+ /* @__PURE__ */ jsx122("code", {
27682
+ className: "rounded bg-background/50 px-2 py-1",
27683
+ children: "@contractspec/lib.contracts-spec/workflow/spec"
27684
+ }),
27685
+ " ",
27686
+ "rather than the broad workflow barrel."
27687
+ ]
27688
+ }),
27676
27689
  /* @__PURE__ */ jsx122("div", {
27677
27690
  className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
27678
27691
  children: /* @__PURE__ */ jsx122("pre", {
27679
- children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
27692
+ children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
27680
27693
  import { ValidatePaymentMethod, ChargePayment, SendEmail } from './specs';
27681
27694
 
27682
27695
  export const PaymentFlow = defineWorkflow({
@@ -163,10 +163,23 @@ function SpecsWorkflowsPage() {
163
163
  className: "text-muted-foreground",
164
164
  children: "Here's a simplified example of a payment workflow in TypeScript:"
165
165
  }),
166
+ /* @__PURE__ */ jsxs("p", {
167
+ className: "text-muted-foreground text-sm",
168
+ children: [
169
+ "For Vercel Workflow and other VM-evaluated runtimes, author workflow specs from",
170
+ " ",
171
+ /* @__PURE__ */ jsx("code", {
172
+ className: "rounded bg-background/50 px-2 py-1",
173
+ children: "@contractspec/lib.contracts-spec/workflow/spec"
174
+ }),
175
+ " ",
176
+ "rather than the broad workflow barrel."
177
+ ]
178
+ }),
166
179
  /* @__PURE__ */ jsx("div", {
167
180
  className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
168
181
  children: /* @__PURE__ */ jsx("pre", {
169
- children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
182
+ children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
170
183
  import { ValidatePaymentMethod, ChargePayment, SendEmail } from './specs';
171
184
 
172
185
  export const PaymentFlow = defineWorkflow({
@@ -1714,10 +1714,23 @@ function SpecsWorkflowsPage() {
1714
1714
  className: "text-muted-foreground",
1715
1715
  children: "Here's a simplified example of a payment workflow in TypeScript:"
1716
1716
  }),
1717
+ /* @__PURE__ */ jsxs6("p", {
1718
+ className: "text-muted-foreground text-sm",
1719
+ children: [
1720
+ "For Vercel Workflow and other VM-evaluated runtimes, author workflow specs from",
1721
+ " ",
1722
+ /* @__PURE__ */ jsx6("code", {
1723
+ className: "rounded bg-background/50 px-2 py-1",
1724
+ children: "@contractspec/lib.contracts-spec/workflow/spec"
1725
+ }),
1726
+ " ",
1727
+ "rather than the broad workflow barrel."
1728
+ ]
1729
+ }),
1717
1730
  /* @__PURE__ */ jsx6("div", {
1718
1731
  className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
1719
1732
  children: /* @__PURE__ */ jsx6("pre", {
1720
- children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
1733
+ children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
1721
1734
  import { ValidatePaymentMethod, ChargePayment, SendEmail } from './specs';
1722
1735
 
1723
1736
  export const PaymentFlow = defineWorkflow({
package/dist/index.js CHANGED
@@ -27824,10 +27824,23 @@ function SpecsWorkflowsPage() {
27824
27824
  className: "text-muted-foreground",
27825
27825
  children: "Here's a simplified example of a payment workflow in TypeScript:"
27826
27826
  }),
27827
+ /* @__PURE__ */ jsxs120("p", {
27828
+ className: "text-muted-foreground text-sm",
27829
+ children: [
27830
+ "For Vercel Workflow and other VM-evaluated runtimes, author workflow specs from",
27831
+ " ",
27832
+ /* @__PURE__ */ jsx122("code", {
27833
+ className: "rounded bg-background/50 px-2 py-1",
27834
+ children: "@contractspec/lib.contracts-spec/workflow/spec"
27835
+ }),
27836
+ " ",
27837
+ "rather than the broad workflow barrel."
27838
+ ]
27839
+ }),
27827
27840
  /* @__PURE__ */ jsx122("div", {
27828
27841
  className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
27829
27842
  children: /* @__PURE__ */ jsx122("pre", {
27830
- children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
27843
+ children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
27831
27844
  import { ValidatePaymentMethod, ChargePayment, SendEmail } from './specs';
27832
27845
 
27833
27846
  export const PaymentFlow = defineWorkflow({
@@ -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",
@@ -27672,10 +27672,23 @@ function SpecsWorkflowsPage() {
27672
27672
  className: "text-muted-foreground",
27673
27673
  children: "Here's a simplified example of a payment workflow in TypeScript:"
27674
27674
  }),
27675
+ /* @__PURE__ */ jsxs120("p", {
27676
+ className: "text-muted-foreground text-sm",
27677
+ children: [
27678
+ "For Vercel Workflow and other VM-evaluated runtimes, author workflow specs from",
27679
+ " ",
27680
+ /* @__PURE__ */ jsx122("code", {
27681
+ className: "rounded bg-background/50 px-2 py-1",
27682
+ children: "@contractspec/lib.contracts-spec/workflow/spec"
27683
+ }),
27684
+ " ",
27685
+ "rather than the broad workflow barrel."
27686
+ ]
27687
+ }),
27675
27688
  /* @__PURE__ */ jsx122("div", {
27676
27689
  className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
27677
27690
  children: /* @__PURE__ */ jsx122("pre", {
27678
- children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
27691
+ children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
27679
27692
  import { ValidatePaymentMethod, ChargePayment, SendEmail } from './specs';
27680
27693
 
27681
27694
  export const PaymentFlow = defineWorkflow({
@@ -162,10 +162,23 @@ function SpecsWorkflowsPage() {
162
162
  className: "text-muted-foreground",
163
163
  children: "Here's a simplified example of a payment workflow in TypeScript:"
164
164
  }),
165
+ /* @__PURE__ */ jsxs("p", {
166
+ className: "text-muted-foreground text-sm",
167
+ children: [
168
+ "For Vercel Workflow and other VM-evaluated runtimes, author workflow specs from",
169
+ " ",
170
+ /* @__PURE__ */ jsx("code", {
171
+ className: "rounded bg-background/50 px-2 py-1",
172
+ children: "@contractspec/lib.contracts-spec/workflow/spec"
173
+ }),
174
+ " ",
175
+ "rather than the broad workflow barrel."
176
+ ]
177
+ }),
165
178
  /* @__PURE__ */ jsx("div", {
166
179
  className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
167
180
  children: /* @__PURE__ */ jsx("pre", {
168
- children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
181
+ children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
169
182
  import { ValidatePaymentMethod, ChargePayment, SendEmail } from './specs';
170
183
 
171
184
  export const PaymentFlow = defineWorkflow({
@@ -1713,10 +1713,23 @@ function SpecsWorkflowsPage() {
1713
1713
  className: "text-muted-foreground",
1714
1714
  children: "Here's a simplified example of a payment workflow in TypeScript:"
1715
1715
  }),
1716
+ /* @__PURE__ */ jsxs6("p", {
1717
+ className: "text-muted-foreground text-sm",
1718
+ children: [
1719
+ "For Vercel Workflow and other VM-evaluated runtimes, author workflow specs from",
1720
+ " ",
1721
+ /* @__PURE__ */ jsx6("code", {
1722
+ className: "rounded bg-background/50 px-2 py-1",
1723
+ children: "@contractspec/lib.contracts-spec/workflow/spec"
1724
+ }),
1725
+ " ",
1726
+ "rather than the broad workflow barrel."
1727
+ ]
1728
+ }),
1716
1729
  /* @__PURE__ */ jsx6("div", {
1717
1730
  className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
1718
1731
  children: /* @__PURE__ */ jsx6("pre", {
1719
- children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
1732
+ children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
1720
1733
  import { ValidatePaymentMethod, ChargePayment, SendEmail } from './specs';
1721
1734
 
1722
1735
  export const PaymentFlow = defineWorkflow({
@@ -27823,10 +27823,23 @@ function SpecsWorkflowsPage() {
27823
27823
  className: "text-muted-foreground",
27824
27824
  children: "Here's a simplified example of a payment workflow in TypeScript:"
27825
27825
  }),
27826
+ /* @__PURE__ */ jsxs120("p", {
27827
+ className: "text-muted-foreground text-sm",
27828
+ children: [
27829
+ "For Vercel Workflow and other VM-evaluated runtimes, author workflow specs from",
27830
+ " ",
27831
+ /* @__PURE__ */ jsx122("code", {
27832
+ className: "rounded bg-background/50 px-2 py-1",
27833
+ children: "@contractspec/lib.contracts-spec/workflow/spec"
27834
+ }),
27835
+ " ",
27836
+ "rather than the broad workflow barrel."
27837
+ ]
27838
+ }),
27826
27839
  /* @__PURE__ */ jsx122("div", {
27827
27840
  className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
27828
27841
  children: /* @__PURE__ */ jsx122("pre", {
27829
- children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
27842
+ children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
27830
27843
  import { ValidatePaymentMethod, ChargePayment, SendEmail } from './specs';
27831
27844
 
27832
27845
  export const PaymentFlow = defineWorkflow({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/bundle.library",
3
- "version": "3.8.8",
3
+ "version": "3.8.10",
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 prebuild && bun run build:bundle && bun run build:types",
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",
@@ -1868,23 +1868,23 @@
1868
1868
  "dependencies": {
1869
1869
  "@apollo/client": "^4.1.6",
1870
1870
  "@modelcontextprotocol/sdk": "^1.28.0",
1871
- "@contractspec/lib.ai-providers": "3.7.11",
1872
- "@contractspec/lib.contracts-spec": "5.0.3",
1873
- "@contractspec/lib.contracts-library": "3.7.15",
1874
- "@contractspec/lib.content-gen": "3.7.15",
1875
- "@contractspec/lib.contracts-runtime-server-mcp": "3.7.15",
1876
- "@contractspec/lib.design-system": "3.8.8",
1877
- "@contractspec/lib.surface-runtime": "0.5.15",
1878
- "@contractspec/lib.provider-ranking": "0.7.11",
1879
- "@contractspec/lib.example-shared-ui": "6.0.15",
1880
- "@contractspec/lib.knowledge": "3.7.15",
1881
- "@contractspec/lib.logger": "3.7.11",
1882
- "@contractspec/lib.runtime-sandbox": "2.7.12",
1883
- "@contractspec/lib.schema": "3.7.12",
1884
- "@contractspec/lib.ui-kit-web": "3.9.7",
1885
- "@contractspec/lib.ui-link": "3.7.11",
1886
- "@contractspec/module.context-storage": "0.7.14",
1887
- "@contractspec/module.examples": "3.8.7",
1871
+ "@contractspec/lib.ai-providers": "3.7.13",
1872
+ "@contractspec/lib.contracts-spec": "5.1.0",
1873
+ "@contractspec/lib.contracts-library": "3.7.17",
1874
+ "@contractspec/lib.content-gen": "3.7.17",
1875
+ "@contractspec/lib.contracts-runtime-server-mcp": "3.7.17",
1876
+ "@contractspec/lib.design-system": "3.8.10",
1877
+ "@contractspec/lib.surface-runtime": "0.5.17",
1878
+ "@contractspec/lib.provider-ranking": "0.7.13",
1879
+ "@contractspec/lib.example-shared-ui": "6.0.17",
1880
+ "@contractspec/lib.knowledge": "3.7.17",
1881
+ "@contractspec/lib.logger": "3.7.13",
1882
+ "@contractspec/lib.runtime-sandbox": "2.7.14",
1883
+ "@contractspec/lib.schema": "3.7.14",
1884
+ "@contractspec/lib.ui-kit-web": "3.9.9",
1885
+ "@contractspec/lib.ui-link": "3.7.13",
1886
+ "@contractspec/module.context-storage": "0.7.16",
1887
+ "@contractspec/module.examples": "3.8.9",
1888
1888
  "@dnd-kit/core": "^6.1.0",
1889
1889
  "@dnd-kit/sortable": "^10.0.0",
1890
1890
  "@dnd-kit/utilities": "^3.2.2",
@@ -1900,17 +1900,17 @@
1900
1900
  "posthog-react-native": "^4.37.6",
1901
1901
  "react-hook-form": "^7.72.0",
1902
1902
  "zod": "^4.3.5",
1903
- "@contractspec/lib.contracts-integrations": "3.8.7",
1904
- "@contractspec/lib.contracts-runtime-server-rest": "3.7.15",
1905
- "@contractspec/lib.contracts-runtime-server-graphql": "3.7.15",
1906
- "@contractspec/lib.contracts-runtime-client-react": "3.8.3"
1903
+ "@contractspec/lib.contracts-integrations": "3.8.9",
1904
+ "@contractspec/lib.contracts-runtime-server-rest": "3.7.17",
1905
+ "@contractspec/lib.contracts-runtime-server-graphql": "3.7.17",
1906
+ "@contractspec/lib.contracts-runtime-client-react": "3.8.5"
1907
1907
  },
1908
1908
  "devDependencies": {
1909
1909
  "@types/react": "~19.2.14",
1910
- "@contractspec/tool.typescript": "3.7.11",
1910
+ "@contractspec/tool.typescript": "3.7.13",
1911
1911
  "typescript": "^5.9.3",
1912
1912
  "@types/bun": "~1.3.11",
1913
- "@contractspec/tool.bun": "3.7.11"
1913
+ "@contractspec/tool.bun": "3.7.13"
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
 
@@ -95,8 +95,16 @@ export function SpecsWorkflowsPage() {
95
95
  <p className="text-muted-foreground">
96
96
  Here's a simplified example of a payment workflow in TypeScript:
97
97
  </p>
98
+ <p className="text-muted-foreground text-sm">
99
+ For Vercel Workflow and other VM-evaluated runtimes, author workflow
100
+ specs from{' '}
101
+ <code className="rounded bg-background/50 px-2 py-1">
102
+ @contractspec/lib.contracts-spec/workflow/spec
103
+ </code>{' '}
104
+ rather than the broad workflow barrel.
105
+ </p>
98
106
  <div className="overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm">
99
- <pre>{`import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
107
+ <pre>{`import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
100
108
  import { ValidatePaymentMethod, ChargePayment, SendEmail } from './specs';
101
109
 
102
110
  export const PaymentFlow = defineWorkflow({
@@ -1 +0,0 @@
1
- $ contractspec-bun-build prebuild