@contractspec/bundle.library 3.8.9 → 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.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +31 -0
- package/dist/components/docs/index.js +14 -1
- package/dist/components/docs/specs/SpecsWorkflowsPage.js +14 -1
- package/dist/components/docs/specs/index.js +14 -1
- package/dist/index.js +14 -1
- package/dist/node/components/docs/index.js +14 -1
- package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +14 -1
- package/dist/node/components/docs/specs/index.js +14 -1
- package/dist/node/index.js +14 -1
- package/package.json +24 -24
- package/src/components/docs/specs/SpecsWorkflowsPage.tsx +9 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -2,7 +2,7 @@ $ contractspec-bun-build prebuild
|
|
|
2
2
|
$ bun run build:bundle && bun run build:types
|
|
3
3
|
$ contractspec-bun-build transpile
|
|
4
4
|
[contractspec-bun-build] transpile target=bun root=src entries=307 noBundle=false
|
|
5
|
-
Bundled 307 modules in
|
|
5
|
+
Bundled 307 modules in 202ms
|
|
6
6
|
|
|
7
7
|
application/context-storage/index.js 1.0 KB (entry point)
|
|
8
8
|
presentation/features/templates/types.js 8 bytes (entry point)
|
|
@@ -142,13 +142,13 @@ Bundled 307 modules in 92ms
|
|
|
142
142
|
components/docs/studio/StudioIntegrationsPage.js 0.79 KB (entry point)
|
|
143
143
|
components/docs/studio/StudioOverviewPage.js 6.27 KB (entry point)
|
|
144
144
|
components/docs/studio/StudioVisualBuilderPage.js 0.81 KB (entry point)
|
|
145
|
-
components/docs/specs/index.js
|
|
145
|
+
components/docs/specs/index.js 72.13 KB (entry point)
|
|
146
146
|
components/docs/specs/SpecsCapabilitiesPage.js 7.0 KB (entry point)
|
|
147
147
|
components/docs/specs/SpecsDataViewsPage.js 11.19 KB (entry point)
|
|
148
148
|
components/docs/specs/SpecsOverlaysPage.js 15.14 KB (entry point)
|
|
149
149
|
components/docs/specs/SpecsOverviewPage.js 7.0 KB (entry point)
|
|
150
150
|
components/docs/specs/SpecsPolicyPage.js 17.27 KB (entry point)
|
|
151
|
-
components/docs/specs/SpecsWorkflowsPage.js
|
|
151
|
+
components/docs/specs/SpecsWorkflowsPage.js 14.1 KB (entry point)
|
|
152
152
|
components/docs/safety/index.js 60.48 KB (entry point)
|
|
153
153
|
components/docs/safety/SafetyAuditingPage.js 14.74 KB (entry point)
|
|
154
154
|
components/docs/safety/SafetyMigrationsPage.js 14.94 KB (entry point)
|
|
@@ -313,7 +313,7 @@ Bundled 307 modules in 92ms
|
|
|
313
313
|
application/mcp/contractsMcpTypes.js 8 bytes (entry point)
|
|
314
314
|
|
|
315
315
|
[contractspec-bun-build] transpile target=node root=src entries=307 noBundle=false
|
|
316
|
-
Bundled 307 modules in
|
|
316
|
+
Bundled 307 modules in 145ms
|
|
317
317
|
|
|
318
318
|
application/context-storage/index.js 0.99 KB (entry point)
|
|
319
319
|
presentation/features/templates/types.js 0 KB (entry point)
|
|
@@ -453,13 +453,13 @@ Bundled 307 modules in 125ms
|
|
|
453
453
|
components/docs/studio/StudioIntegrationsPage.js 0.79 KB (entry point)
|
|
454
454
|
components/docs/studio/StudioOverviewPage.js 6.26 KB (entry point)
|
|
455
455
|
components/docs/studio/StudioVisualBuilderPage.js 0.80 KB (entry point)
|
|
456
|
-
components/docs/specs/index.js 71.
|
|
456
|
+
components/docs/specs/index.js 71.97 KB (entry point)
|
|
457
457
|
components/docs/specs/SpecsCapabilitiesPage.js 6.98 KB (entry point)
|
|
458
458
|
components/docs/specs/SpecsDataViewsPage.js 11.16 KB (entry point)
|
|
459
459
|
components/docs/specs/SpecsOverlaysPage.js 15.1 KB (entry point)
|
|
460
460
|
components/docs/specs/SpecsOverviewPage.js 6.99 KB (entry point)
|
|
461
461
|
components/docs/specs/SpecsPolicyPage.js 17.22 KB (entry point)
|
|
462
|
-
components/docs/specs/SpecsWorkflowsPage.js
|
|
462
|
+
components/docs/specs/SpecsWorkflowsPage.js 14.1 KB (entry point)
|
|
463
463
|
components/docs/safety/index.js 60.34 KB (entry point)
|
|
464
464
|
components/docs/safety/SafetyAuditingPage.js 14.69 KB (entry point)
|
|
465
465
|
components/docs/safety/SafetyMigrationsPage.js 14.88 KB (entry point)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
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
|
+
|
|
3
34
|
## 3.8.9
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -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({
|
|
@@ -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({
|
package/dist/node/index.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "3.8.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -rf dist",
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.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.
|
|
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.
|
|
1913
|
+
"@contractspec/tool.bun": "3.7.13"
|
|
1914
1914
|
},
|
|
1915
1915
|
"repository": {
|
|
1916
1916
|
"type": "git",
|
|
@@ -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({
|