@contractspec/bundle.library 3.7.7 → 3.8.2
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 +148 -144
- package/CHANGELOG.md +56 -0
- package/dist/components/docs/examples/DocsExamplesPage.js +55 -2
- package/dist/components/docs/examples/ExampleShowcasePage.d.ts +5 -0
- package/dist/components/docs/examples/ExampleShowcasePage.js +258 -0
- package/dist/components/docs/examples/exampleShowcaseData.d.ts +10 -0
- package/dist/components/docs/examples/exampleShowcaseData.js +53 -0
- package/dist/components/docs/examples/index.d.ts +1 -0
- package/dist/components/docs/examples/index.js +261 -2
- package/dist/components/docs/index.js +4351 -4092
- package/dist/index.js +5111 -4852
- package/dist/node/components/docs/examples/DocsExamplesPage.js +55 -2
- package/dist/node/components/docs/examples/ExampleShowcasePage.js +257 -0
- package/dist/node/components/docs/examples/exampleShowcaseData.js +52 -0
- package/dist/node/components/docs/examples/index.js +261 -2
- package/dist/node/components/docs/index.js +4351 -4092
- package/dist/node/index.js +5111 -4852
- package/package.json +47 -23
- package/src/components/docs/examples/DocsExamplesPage.tsx +13 -2
- package/src/components/docs/examples/ExampleShowcasePage.tsx +122 -0
- package/src/components/docs/examples/exampleShowcaseData.ts +65 -0
- package/src/components/docs/examples/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# @contractspec/bundle.library
|
|
2
2
|
|
|
3
|
+
## 3.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1a44cb6: feat: improve examples to increase coverage of Contracts type
|
|
8
|
+
- Updated dependencies [1a44cb6]
|
|
9
|
+
- @contractspec/lib.contracts-runtime-server-graphql@3.7.10
|
|
10
|
+
- @contractspec/lib.contracts-runtime-server-rest@3.7.10
|
|
11
|
+
- @contractspec/lib.contracts-runtime-server-mcp@3.7.10
|
|
12
|
+
- @contractspec/lib.contracts-integrations@3.8.2
|
|
13
|
+
- @contractspec/module.context-storage@0.7.10
|
|
14
|
+
- @contractspec/lib.contracts-library@3.7.10
|
|
15
|
+
- @contractspec/lib.example-shared-ui@6.0.10
|
|
16
|
+
- @contractspec/lib.provider-ranking@0.7.8
|
|
17
|
+
- @contractspec/lib.runtime-sandbox@2.7.9
|
|
18
|
+
- @contractspec/lib.surface-runtime@0.5.10
|
|
19
|
+
- @contractspec/lib.contracts-spec@4.1.2
|
|
20
|
+
- @contractspec/lib.design-system@3.8.3
|
|
21
|
+
- @contractspec/lib.ai-providers@3.7.8
|
|
22
|
+
- @contractspec/lib.content-gen@3.7.10
|
|
23
|
+
- @contractspec/module.examples@3.8.2
|
|
24
|
+
- @contractspec/lib.ui-kit-web@3.9.2
|
|
25
|
+
- @contractspec/lib.knowledge@3.7.10
|
|
26
|
+
- @contractspec/lib.ui-link@3.7.8
|
|
27
|
+
- @contractspec/lib.logger@3.7.8
|
|
28
|
+
- @contractspec/lib.schema@3.7.8
|
|
29
|
+
|
|
30
|
+
## 3.8.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- fix: release
|
|
35
|
+
- Updated dependencies
|
|
36
|
+
- @contractspec/lib.contracts-runtime-server-graphql@3.7.9
|
|
37
|
+
- @contractspec/lib.contracts-runtime-server-rest@3.7.9
|
|
38
|
+
- @contractspec/lib.contracts-runtime-server-mcp@3.7.9
|
|
39
|
+
- @contractspec/lib.contracts-integrations@3.8.1
|
|
40
|
+
- @contractspec/module.context-storage@0.7.9
|
|
41
|
+
- @contractspec/lib.contracts-library@3.7.9
|
|
42
|
+
- @contractspec/lib.example-shared-ui@6.0.9
|
|
43
|
+
- @contractspec/lib.runtime-sandbox@2.7.8
|
|
44
|
+
- @contractspec/lib.surface-runtime@0.5.9
|
|
45
|
+
- @contractspec/lib.contracts-spec@4.1.1
|
|
46
|
+
- @contractspec/lib.design-system@3.8.2
|
|
47
|
+
- @contractspec/lib.content-gen@3.7.9
|
|
48
|
+
- @contractspec/module.examples@3.8.1
|
|
49
|
+
- @contractspec/lib.ui-kit-web@3.9.1
|
|
50
|
+
- @contractspec/lib.knowledge@3.7.9
|
|
51
|
+
- @contractspec/lib.ui-link@3.7.7
|
|
52
|
+
- @contractspec/lib.ai-providers@3.7.7
|
|
53
|
+
- @contractspec/lib.logger@3.7.7
|
|
54
|
+
- @contractspec/lib.provider-ranking@0.7.7
|
|
55
|
+
- @contractspec/lib.schema@3.7.7
|
|
56
|
+
|
|
3
57
|
## 3.7.6
|
|
4
58
|
|
|
5
59
|
### Patch Changes
|
|
@@ -231,6 +285,7 @@
|
|
|
231
285
|
### Patch Changes
|
|
232
286
|
|
|
233
287
|
- 27b77db: feat(ai-models): add latest models and align defaults
|
|
288
|
+
|
|
234
289
|
- Add claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5, gpt-5.4, gpt-5-mini
|
|
235
290
|
- Add mistral-large-2512, mistral-medium-2508, mistral-small-2506, devstral-2512
|
|
236
291
|
- Add gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview, gemini-3-flash-preview
|
|
@@ -380,6 +435,7 @@
|
|
|
380
435
|
### Patch Changes
|
|
381
436
|
|
|
382
437
|
- 1fa29a0: feat(bundle.library): add LibraryBundle, WorkspaceShellRenderer, bundles export
|
|
438
|
+
|
|
383
439
|
- Add LibraryBundle and bundles/index for workspace shell composition
|
|
384
440
|
- Add WorkspaceShellRenderer component for dynamic slot rendering
|
|
385
441
|
- Add @contractspec/lib.surface-runtime dependency
|
|
@@ -1,4 +1,54 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
// src/components/docs/examples/exampleShowcaseData.ts
|
|
3
|
+
var EXAMPLE_SHOWCASES = {
|
|
4
|
+
"agent-console": {
|
|
5
|
+
key: "agent-console",
|
|
6
|
+
lead: "Primary meetup path for autonomous agents: typed tools, agent configs, run history, and execution logs in one regenerable surface.",
|
|
7
|
+
sandboxHref: "/sandbox?template=agent-console",
|
|
8
|
+
referenceHref: "/docs/reference/agent-console/agent-console",
|
|
9
|
+
llmsHref: "/llms/example.agent-console",
|
|
10
|
+
repoHref: "https://github.com/lssm-tech/contractspec/tree/main/packages/examples/agent-console",
|
|
11
|
+
localCommands: `bun run --cwd packages/examples/agent-console build
|
|
12
|
+
bun run --cwd packages/examples/agent-console test
|
|
13
|
+
bun run --cwd packages/apps/web-landing dev
|
|
14
|
+
|
|
15
|
+
# Open in the browser
|
|
16
|
+
# http://localhost:3000/sandbox?template=agent-console`
|
|
17
|
+
},
|
|
18
|
+
"ai-chat-assistant": {
|
|
19
|
+
key: "ai-chat-assistant",
|
|
20
|
+
lead: "Secondary meetup path for MCP-aware assistants: reasoning, sources, suggestions, and a minimal contract-backed search tool.",
|
|
21
|
+
sandboxHref: "/sandbox?template=ai-chat-assistant",
|
|
22
|
+
referenceHref: "/docs/reference/ai-chat-assistant/assistant.search",
|
|
23
|
+
llmsHref: "/llms/example.ai-chat-assistant",
|
|
24
|
+
repoHref: "https://github.com/lssm-tech/contractspec/tree/main/packages/examples/ai-chat-assistant",
|
|
25
|
+
localCommands: `bun run --cwd packages/examples/ai-chat-assistant build
|
|
26
|
+
bun run --cwd packages/examples/ai-chat-assistant test
|
|
27
|
+
bun run --cwd packages/apps/web-landing dev
|
|
28
|
+
|
|
29
|
+
# Open in the browser
|
|
30
|
+
# http://localhost:3000/sandbox?template=ai-chat-assistant`
|
|
31
|
+
},
|
|
32
|
+
"messaging-agent-actions": {
|
|
33
|
+
key: "messaging-agent-actions",
|
|
34
|
+
lead: "Live messaging lane for the meetup: inbound Slack, WhatsApp, or Telegram messages route through fixed intents, allowlisted actions, and deterministic confirmations.",
|
|
35
|
+
sandboxHref: "/sandbox?template=messaging-agent-actions",
|
|
36
|
+
referenceHref: "/docs/reference/messaging-agent-actions/messaging.agentActions.process",
|
|
37
|
+
llmsHref: "/llms/example.messaging-agent-actions",
|
|
38
|
+
repoHref: "https://github.com/lssm-tech/contractspec/tree/main/packages/examples/messaging-agent-actions",
|
|
39
|
+
localCommands: `bun run --cwd packages/examples/messaging-agent-actions build
|
|
40
|
+
bun run --cwd packages/examples/messaging-agent-actions test
|
|
41
|
+
bun run --cwd packages/examples/messaging-agent-actions proof
|
|
42
|
+
bun run --cwd packages/apps/web-landing dev
|
|
43
|
+
|
|
44
|
+
# Open in the browser
|
|
45
|
+
# http://localhost:3000/sandbox?template=messaging-agent-actions`
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
function getExampleShowcaseData(key) {
|
|
49
|
+
return EXAMPLE_SHOWCASES[key];
|
|
50
|
+
}
|
|
51
|
+
|
|
2
52
|
// src/components/docs/examples/DocsExamplesPage.tsx
|
|
3
53
|
import { ExampleCatalogDataView } from "@contractspec/lib.contracts-spec/docs";
|
|
4
54
|
import {
|
|
@@ -14,6 +64,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
14
64
|
function buildReferenceRoute(key) {
|
|
15
65
|
return `/docs/reference/${key}/${key}`;
|
|
16
66
|
}
|
|
67
|
+
function buildDocsRoute(key) {
|
|
68
|
+
return getExampleShowcaseData(key)?.sandboxHref ? `/docs/examples/${key}` : buildReferenceRoute(key);
|
|
69
|
+
}
|
|
17
70
|
function DocsExamplesPage() {
|
|
18
71
|
const items = listExamples().map((example) => {
|
|
19
72
|
const title = example.meta.title ?? example.meta.key;
|
|
@@ -21,7 +74,7 @@ function DocsExamplesPage() {
|
|
|
21
74
|
id: example.meta.key,
|
|
22
75
|
title,
|
|
23
76
|
summary: example.meta.summary ?? example.meta.description,
|
|
24
|
-
route:
|
|
77
|
+
route: buildDocsRoute(example.meta.key),
|
|
25
78
|
tags: example.meta.tags,
|
|
26
79
|
sandboxEnabled: example.surfaces.sandbox.enabled
|
|
27
80
|
};
|
|
@@ -59,7 +112,7 @@ function DocsExamplesPage() {
|
|
|
59
112
|
justify: "end",
|
|
60
113
|
children: [
|
|
61
114
|
example.sandboxEnabled ? /* @__PURE__ */ jsx(ButtonLink, {
|
|
62
|
-
href:
|
|
115
|
+
href: `/sandbox?template=${example.id}`,
|
|
63
116
|
size: "sm",
|
|
64
117
|
variant: "outline",
|
|
65
118
|
children: "Sandbox"
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/components/docs/examples/exampleShowcaseData.ts
|
|
3
|
+
var EXAMPLE_SHOWCASES = {
|
|
4
|
+
"agent-console": {
|
|
5
|
+
key: "agent-console",
|
|
6
|
+
lead: "Primary meetup path for autonomous agents: typed tools, agent configs, run history, and execution logs in one regenerable surface.",
|
|
7
|
+
sandboxHref: "/sandbox?template=agent-console",
|
|
8
|
+
referenceHref: "/docs/reference/agent-console/agent-console",
|
|
9
|
+
llmsHref: "/llms/example.agent-console",
|
|
10
|
+
repoHref: "https://github.com/lssm-tech/contractspec/tree/main/packages/examples/agent-console",
|
|
11
|
+
localCommands: `bun run --cwd packages/examples/agent-console build
|
|
12
|
+
bun run --cwd packages/examples/agent-console test
|
|
13
|
+
bun run --cwd packages/apps/web-landing dev
|
|
14
|
+
|
|
15
|
+
# Open in the browser
|
|
16
|
+
# http://localhost:3000/sandbox?template=agent-console`
|
|
17
|
+
},
|
|
18
|
+
"ai-chat-assistant": {
|
|
19
|
+
key: "ai-chat-assistant",
|
|
20
|
+
lead: "Secondary meetup path for MCP-aware assistants: reasoning, sources, suggestions, and a minimal contract-backed search tool.",
|
|
21
|
+
sandboxHref: "/sandbox?template=ai-chat-assistant",
|
|
22
|
+
referenceHref: "/docs/reference/ai-chat-assistant/assistant.search",
|
|
23
|
+
llmsHref: "/llms/example.ai-chat-assistant",
|
|
24
|
+
repoHref: "https://github.com/lssm-tech/contractspec/tree/main/packages/examples/ai-chat-assistant",
|
|
25
|
+
localCommands: `bun run --cwd packages/examples/ai-chat-assistant build
|
|
26
|
+
bun run --cwd packages/examples/ai-chat-assistant test
|
|
27
|
+
bun run --cwd packages/apps/web-landing dev
|
|
28
|
+
|
|
29
|
+
# Open in the browser
|
|
30
|
+
# http://localhost:3000/sandbox?template=ai-chat-assistant`
|
|
31
|
+
},
|
|
32
|
+
"messaging-agent-actions": {
|
|
33
|
+
key: "messaging-agent-actions",
|
|
34
|
+
lead: "Live messaging lane for the meetup: inbound Slack, WhatsApp, or Telegram messages route through fixed intents, allowlisted actions, and deterministic confirmations.",
|
|
35
|
+
sandboxHref: "/sandbox?template=messaging-agent-actions",
|
|
36
|
+
referenceHref: "/docs/reference/messaging-agent-actions/messaging.agentActions.process",
|
|
37
|
+
llmsHref: "/llms/example.messaging-agent-actions",
|
|
38
|
+
repoHref: "https://github.com/lssm-tech/contractspec/tree/main/packages/examples/messaging-agent-actions",
|
|
39
|
+
localCommands: `bun run --cwd packages/examples/messaging-agent-actions build
|
|
40
|
+
bun run --cwd packages/examples/messaging-agent-actions test
|
|
41
|
+
bun run --cwd packages/examples/messaging-agent-actions proof
|
|
42
|
+
bun run --cwd packages/apps/web-landing dev
|
|
43
|
+
|
|
44
|
+
# Open in the browser
|
|
45
|
+
# http://localhost:3000/sandbox?template=messaging-agent-actions`
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
function getExampleShowcaseData(key) {
|
|
49
|
+
return EXAMPLE_SHOWCASES[key];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/components/docs/examples/ExampleShowcasePage.tsx
|
|
53
|
+
import { ButtonLink, CodeBlock } from "@contractspec/lib.design-system";
|
|
54
|
+
import Link from "@contractspec/lib.ui-link";
|
|
55
|
+
import { getExample } from "@contractspec/module.examples";
|
|
56
|
+
import { FileCode2, Play, TerminalSquare } from "lucide-react";
|
|
57
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
58
|
+
function ExampleShowcasePage({ exampleKey }) {
|
|
59
|
+
const showcase = getExampleShowcaseData(exampleKey);
|
|
60
|
+
const example = getExample(exampleKey);
|
|
61
|
+
if (!showcase || !example) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
const title = example.meta.title ?? example.meta.key;
|
|
65
|
+
const summary = example.meta.summary ?? example.meta.description ?? "";
|
|
66
|
+
const packageName = example.entrypoints.packageName;
|
|
67
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
68
|
+
className: "space-y-10",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsxs("section", {
|
|
71
|
+
className: "space-y-5",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ jsx("p", {
|
|
74
|
+
className: "editorial-kicker",
|
|
75
|
+
children: "Meetup-ready example"
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ jsx("h1", {
|
|
78
|
+
className: "editorial-title max-w-5xl",
|
|
79
|
+
children: title
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ jsx("p", {
|
|
82
|
+
className: "editorial-subtitle",
|
|
83
|
+
children: showcase.lead
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ jsx("p", {
|
|
86
|
+
className: "editorial-copy max-w-4xl",
|
|
87
|
+
children: summary
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ jsxs("div", {
|
|
90
|
+
className: "flex flex-wrap gap-3",
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsx(ButtonLink, {
|
|
93
|
+
href: showcase.sandboxHref,
|
|
94
|
+
children: "Open sandbox"
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ jsx(ButtonLink, {
|
|
97
|
+
href: showcase.referenceHref,
|
|
98
|
+
variant: "outline",
|
|
99
|
+
children: "Generated reference"
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ jsxs("section", {
|
|
106
|
+
className: "grid gap-5 lg:grid-cols-3",
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ jsxs("article", {
|
|
109
|
+
className: "editorial-panel space-y-4",
|
|
110
|
+
children: [
|
|
111
|
+
/* @__PURE__ */ jsxs("div", {
|
|
112
|
+
className: "flex items-center gap-3",
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ jsx("div", {
|
|
115
|
+
className: "rounded-full border border-border/80 bg-background/85 p-2",
|
|
116
|
+
children: /* @__PURE__ */ jsx(Play, {
|
|
117
|
+
size: 18
|
|
118
|
+
})
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ jsx("h2", {
|
|
121
|
+
className: "font-semibold text-xl",
|
|
122
|
+
children: "Sandbox preview"
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ jsx("p", {
|
|
127
|
+
className: "editorial-copy text-sm",
|
|
128
|
+
children: "Load the same public browser surface used for the prepared live demo."
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ jsx(ButtonLink, {
|
|
131
|
+
href: showcase.sandboxHref,
|
|
132
|
+
size: "sm",
|
|
133
|
+
children: "Open preview"
|
|
134
|
+
})
|
|
135
|
+
]
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ jsxs("article", {
|
|
138
|
+
className: "editorial-panel space-y-4",
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ jsxs("div", {
|
|
141
|
+
className: "flex items-center gap-3",
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ jsx("div", {
|
|
144
|
+
className: "rounded-full border border-border/80 bg-background/85 p-2",
|
|
145
|
+
children: /* @__PURE__ */ jsx(FileCode2, {
|
|
146
|
+
size: 18
|
|
147
|
+
})
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ jsx("h2", {
|
|
150
|
+
className: "font-semibold text-xl",
|
|
151
|
+
children: "Reference docs"
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ jsx("p", {
|
|
156
|
+
className: "editorial-copy text-sm",
|
|
157
|
+
children: "Inspect the generated contract-facing material instead of relying on marketing summaries."
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ jsx(ButtonLink, {
|
|
160
|
+
href: showcase.referenceHref,
|
|
161
|
+
size: "sm",
|
|
162
|
+
variant: "outline",
|
|
163
|
+
children: "Open reference"
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ jsxs("article", {
|
|
168
|
+
className: "editorial-panel space-y-4",
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ jsxs("div", {
|
|
171
|
+
className: "flex items-center gap-3",
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ jsx("div", {
|
|
174
|
+
className: "rounded-full border border-border/80 bg-background/85 p-2",
|
|
175
|
+
children: /* @__PURE__ */ jsx(TerminalSquare, {
|
|
176
|
+
size: 18
|
|
177
|
+
})
|
|
178
|
+
}),
|
|
179
|
+
/* @__PURE__ */ jsx("h2", {
|
|
180
|
+
className: "font-semibold text-xl",
|
|
181
|
+
children: "Package context"
|
|
182
|
+
})
|
|
183
|
+
]
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ jsx("p", {
|
|
186
|
+
className: "editorial-copy text-sm",
|
|
187
|
+
children: "Use the agent-facing package page for fast repo orientation, then jump to the source directory."
|
|
188
|
+
}),
|
|
189
|
+
/* @__PURE__ */ jsx("p", {
|
|
190
|
+
className: "rounded-[18px] border border-border/70 bg-background/75 px-4 py-3 font-mono text-sm",
|
|
191
|
+
children: packageName
|
|
192
|
+
}),
|
|
193
|
+
/* @__PURE__ */ jsxs("div", {
|
|
194
|
+
className: "flex flex-wrap gap-2",
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ jsx(ButtonLink, {
|
|
197
|
+
href: showcase.llmsHref,
|
|
198
|
+
size: "sm",
|
|
199
|
+
variant: "outline",
|
|
200
|
+
children: "LLMS page"
|
|
201
|
+
}),
|
|
202
|
+
/* @__PURE__ */ jsx(ButtonLink, {
|
|
203
|
+
href: showcase.repoHref,
|
|
204
|
+
size: "sm",
|
|
205
|
+
variant: "outline",
|
|
206
|
+
children: "GitHub source"
|
|
207
|
+
})
|
|
208
|
+
]
|
|
209
|
+
})
|
|
210
|
+
]
|
|
211
|
+
})
|
|
212
|
+
]
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ jsxs("section", {
|
|
215
|
+
className: "editorial-panel space-y-5",
|
|
216
|
+
children: [
|
|
217
|
+
/* @__PURE__ */ jsxs("div", {
|
|
218
|
+
className: "space-y-2",
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ jsx("p", {
|
|
221
|
+
className: "editorial-kicker",
|
|
222
|
+
children: "Talk commands"
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ jsx("h2", {
|
|
225
|
+
className: "editorial-panel-title",
|
|
226
|
+
children: "Exact local commands for the meetup lane"
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ jsx("p", {
|
|
229
|
+
className: "editorial-copy text-sm",
|
|
230
|
+
children: "Use the package build and test first, then launch the web shell and open the prepared sandbox route."
|
|
231
|
+
})
|
|
232
|
+
]
|
|
233
|
+
}),
|
|
234
|
+
/* @__PURE__ */ jsx(CodeBlock, {
|
|
235
|
+
language: "bash",
|
|
236
|
+
filename: `${exampleKey}-meetup-runbook`,
|
|
237
|
+
code: showcase.localCommands
|
|
238
|
+
}),
|
|
239
|
+
/* @__PURE__ */ jsxs("p", {
|
|
240
|
+
className: "text-muted-foreground text-sm",
|
|
241
|
+
children: [
|
|
242
|
+
"For the full fallback order and safe live-edit workflow, use",
|
|
243
|
+
" ",
|
|
244
|
+
/* @__PURE__ */ jsx(Link, {
|
|
245
|
+
href: "https://github.com/lssm-tech/contractspec/blob/main/docs/meetup-agent-examples-runbook.md",
|
|
246
|
+
children: "the meetup runbook"
|
|
247
|
+
}),
|
|
248
|
+
"."
|
|
249
|
+
]
|
|
250
|
+
})
|
|
251
|
+
]
|
|
252
|
+
})
|
|
253
|
+
]
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
export {
|
|
257
|
+
ExampleShowcasePage
|
|
258
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ExampleShowcaseData {
|
|
2
|
+
key: 'agent-console' | 'ai-chat-assistant' | 'messaging-agent-actions';
|
|
3
|
+
lead: string;
|
|
4
|
+
sandboxHref: string;
|
|
5
|
+
referenceHref: string;
|
|
6
|
+
llmsHref: string;
|
|
7
|
+
repoHref: string;
|
|
8
|
+
localCommands: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function getExampleShowcaseData(key: string): ExampleShowcaseData | undefined;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/components/docs/examples/exampleShowcaseData.ts
|
|
3
|
+
var EXAMPLE_SHOWCASES = {
|
|
4
|
+
"agent-console": {
|
|
5
|
+
key: "agent-console",
|
|
6
|
+
lead: "Primary meetup path for autonomous agents: typed tools, agent configs, run history, and execution logs in one regenerable surface.",
|
|
7
|
+
sandboxHref: "/sandbox?template=agent-console",
|
|
8
|
+
referenceHref: "/docs/reference/agent-console/agent-console",
|
|
9
|
+
llmsHref: "/llms/example.agent-console",
|
|
10
|
+
repoHref: "https://github.com/lssm-tech/contractspec/tree/main/packages/examples/agent-console",
|
|
11
|
+
localCommands: `bun run --cwd packages/examples/agent-console build
|
|
12
|
+
bun run --cwd packages/examples/agent-console test
|
|
13
|
+
bun run --cwd packages/apps/web-landing dev
|
|
14
|
+
|
|
15
|
+
# Open in the browser
|
|
16
|
+
# http://localhost:3000/sandbox?template=agent-console`
|
|
17
|
+
},
|
|
18
|
+
"ai-chat-assistant": {
|
|
19
|
+
key: "ai-chat-assistant",
|
|
20
|
+
lead: "Secondary meetup path for MCP-aware assistants: reasoning, sources, suggestions, and a minimal contract-backed search tool.",
|
|
21
|
+
sandboxHref: "/sandbox?template=ai-chat-assistant",
|
|
22
|
+
referenceHref: "/docs/reference/ai-chat-assistant/assistant.search",
|
|
23
|
+
llmsHref: "/llms/example.ai-chat-assistant",
|
|
24
|
+
repoHref: "https://github.com/lssm-tech/contractspec/tree/main/packages/examples/ai-chat-assistant",
|
|
25
|
+
localCommands: `bun run --cwd packages/examples/ai-chat-assistant build
|
|
26
|
+
bun run --cwd packages/examples/ai-chat-assistant test
|
|
27
|
+
bun run --cwd packages/apps/web-landing dev
|
|
28
|
+
|
|
29
|
+
# Open in the browser
|
|
30
|
+
# http://localhost:3000/sandbox?template=ai-chat-assistant`
|
|
31
|
+
},
|
|
32
|
+
"messaging-agent-actions": {
|
|
33
|
+
key: "messaging-agent-actions",
|
|
34
|
+
lead: "Live messaging lane for the meetup: inbound Slack, WhatsApp, or Telegram messages route through fixed intents, allowlisted actions, and deterministic confirmations.",
|
|
35
|
+
sandboxHref: "/sandbox?template=messaging-agent-actions",
|
|
36
|
+
referenceHref: "/docs/reference/messaging-agent-actions/messaging.agentActions.process",
|
|
37
|
+
llmsHref: "/llms/example.messaging-agent-actions",
|
|
38
|
+
repoHref: "https://github.com/lssm-tech/contractspec/tree/main/packages/examples/messaging-agent-actions",
|
|
39
|
+
localCommands: `bun run --cwd packages/examples/messaging-agent-actions build
|
|
40
|
+
bun run --cwd packages/examples/messaging-agent-actions test
|
|
41
|
+
bun run --cwd packages/examples/messaging-agent-actions proof
|
|
42
|
+
bun run --cwd packages/apps/web-landing dev
|
|
43
|
+
|
|
44
|
+
# Open in the browser
|
|
45
|
+
# http://localhost:3000/sandbox?template=messaging-agent-actions`
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
function getExampleShowcaseData(key) {
|
|
49
|
+
return EXAMPLE_SHOWCASES[key];
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
getExampleShowcaseData
|
|
53
|
+
};
|