@contractspec/bundle.library 3.7.7 → 3.8.4
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 +150 -146
- package/CHANGELOG.md +130 -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/generated/docs-index.generated.d.ts +6 -6
- package/dist/components/docs/index.js +4372 -4114
- package/dist/components/docs/libraries/LibrariesAiAgentPage.js +22 -22
- package/dist/components/docs/libraries/LibrariesSupportBotPage.js +1 -2
- package/dist/components/docs/libraries/index.js +23 -24
- package/dist/components/templates/engine/index.d.ts +1 -1
- package/dist/components/templates/engine/index.js +1 -1
- package/dist/index.js +5132 -4874
- 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 +4372 -4114
- package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +22 -22
- package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +1 -2
- package/dist/node/components/docs/libraries/index.js +23 -24
- package/dist/node/components/templates/engine/index.js +1 -1
- package/dist/node/index.js +5132 -4874
- package/package.json +48 -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/src/components/docs/generated/docs-index._common.json +1 -1
- package/src/components/docs/generated/docs-index.ai-chat-assistant.json +8 -0
- package/src/components/docs/generated/docs-index.artisan-knowledge-product.json +18 -0
- package/src/components/docs/generated/docs-index.artisan-payments-stripe.json +34 -0
- package/src/components/docs/generated/docs-index.data-grid-showcase.json +18 -0
- package/src/components/docs/generated/docs-index.generated.ts +6 -6
- package/src/components/docs/generated/docs-index.harness-lab.json +10 -0
- package/src/components/docs/generated/docs-index.locale-jurisdiction-gate.json +8 -0
- package/src/components/docs/generated/docs-index.manifest.json +50 -5
- package/src/components/docs/generated/docs-index.messaging-agent-actions.json +18 -0
- package/src/components/docs/generated/docs-index.mobile-demo-tasks.json +34 -0
- package/src/components/docs/generated/docs-index.opencode-cli.json +2 -2
- package/src/components/docs/generated/docs-index.platform-control-plane.json +250 -0
- package/src/components/docs/generated/docs-index.platform-harness.json +178 -0
- package/src/components/docs/generated/docs-index.platform-integrations.json +22 -14
- package/src/components/docs/generated/docs-index.visualization-showcase.json +18 -0
- package/src/components/docs/libraries/LibrariesAiAgentPage.tsx +20 -17
- package/src/components/docs/libraries/LibrariesSupportBotPage.tsx +1 -2
- package/src/components/templates/engine/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,133 @@
|
|
|
1
1
|
# @contractspec/bundle.library
|
|
2
2
|
|
|
3
|
+
## 3.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 81256ea: Split agent definition contracts out of `@contractspec/lib.ai-agent` and make
|
|
8
|
+
`@contractspec/lib.contracts-spec` the source of truth for agent declaration APIs.
|
|
9
|
+
|
|
10
|
+
Major changes:
|
|
11
|
+
|
|
12
|
+
- Move `AgentSpec`, `AgentToolConfig`, `AgentPolicy`, `AgentRegistry`,
|
|
13
|
+
`createAgentRegistry`, `defineAgent`, and related definition-only types into
|
|
14
|
+
`@contractspec/lib.contracts-spec/agent`.
|
|
15
|
+
- Add `@contractspec/lib.contracts-spec/agent/spec` and
|
|
16
|
+
`@contractspec/lib.contracts-spec/agent/registry` export subpaths.
|
|
17
|
+
- Remove `@contractspec/lib.ai-agent/spec`,
|
|
18
|
+
`@contractspec/lib.ai-agent/spec/spec`, and
|
|
19
|
+
`@contractspec/lib.ai-agent/spec/registry`.
|
|
20
|
+
- Remove the spec layer from the `@contractspec/lib.ai-agent` root barrel so it
|
|
21
|
+
is runtime-focused.
|
|
22
|
+
|
|
23
|
+
Workspace consumers were migrated to import agent-definition contracts from
|
|
24
|
+
`@contractspec/lib.contracts-spec/agent`, and packages that only needed the
|
|
25
|
+
contract layer dropped their direct dependency on `@contractspec/lib.ai-agent`.
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [81256ea]
|
|
28
|
+
- Updated dependencies [2619dd8]
|
|
29
|
+
- Updated dependencies [6de2f1c]
|
|
30
|
+
- Updated dependencies [81256ea]
|
|
31
|
+
- Updated dependencies [a4489bb]
|
|
32
|
+
- Updated dependencies [9cb304e]
|
|
33
|
+
- @contractspec/lib.contracts-spec@5.0.0
|
|
34
|
+
- @contractspec/lib.contracts-runtime-client-react@3.8.0
|
|
35
|
+
- @contractspec/lib.contracts-runtime-server-mcp@3.7.12
|
|
36
|
+
- @contractspec/lib.contracts-integrations@3.8.4
|
|
37
|
+
- @contractspec/lib.schema@3.7.10
|
|
38
|
+
- @contractspec/lib.content-gen@3.7.12
|
|
39
|
+
- @contractspec/lib.contracts-library@3.7.12
|
|
40
|
+
- @contractspec/lib.contracts-runtime-server-graphql@3.7.12
|
|
41
|
+
- @contractspec/lib.contracts-runtime-server-rest@3.7.12
|
|
42
|
+
- @contractspec/lib.design-system@3.8.5
|
|
43
|
+
- @contractspec/lib.example-shared-ui@6.0.12
|
|
44
|
+
- @contractspec/lib.knowledge@3.7.12
|
|
45
|
+
- @contractspec/lib.surface-runtime@0.5.12
|
|
46
|
+
- @contractspec/lib.ui-kit-web@3.9.4
|
|
47
|
+
- @contractspec/module.examples@3.8.4
|
|
48
|
+
- @contractspec/module.context-storage@0.7.12
|
|
49
|
+
|
|
50
|
+
## 3.8.3
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- fix: release
|
|
55
|
+
- Updated dependencies
|
|
56
|
+
- @contractspec/lib.contracts-runtime-server-graphql@3.7.11
|
|
57
|
+
- @contractspec/lib.contracts-runtime-server-rest@3.7.11
|
|
58
|
+
- @contractspec/lib.contracts-runtime-server-mcp@3.7.11
|
|
59
|
+
- @contractspec/lib.contracts-integrations@3.8.3
|
|
60
|
+
- @contractspec/module.context-storage@0.7.11
|
|
61
|
+
- @contractspec/lib.contracts-library@3.7.11
|
|
62
|
+
- @contractspec/lib.example-shared-ui@6.0.11
|
|
63
|
+
- @contractspec/lib.provider-ranking@0.7.9
|
|
64
|
+
- @contractspec/lib.runtime-sandbox@2.7.10
|
|
65
|
+
- @contractspec/lib.surface-runtime@0.5.11
|
|
66
|
+
- @contractspec/lib.contracts-spec@4.1.3
|
|
67
|
+
- @contractspec/lib.design-system@3.8.4
|
|
68
|
+
- @contractspec/lib.ai-providers@3.7.9
|
|
69
|
+
- @contractspec/lib.content-gen@3.7.11
|
|
70
|
+
- @contractspec/module.examples@3.8.3
|
|
71
|
+
- @contractspec/lib.ui-kit-web@3.9.3
|
|
72
|
+
- @contractspec/lib.knowledge@3.7.11
|
|
73
|
+
- @contractspec/lib.ui-link@3.7.9
|
|
74
|
+
- @contractspec/lib.logger@3.7.9
|
|
75
|
+
- @contractspec/lib.schema@3.7.9
|
|
76
|
+
|
|
77
|
+
## 3.8.2
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- 1a44cb6: feat: improve examples to increase coverage of Contracts type
|
|
82
|
+
- Updated dependencies [1a44cb6]
|
|
83
|
+
- @contractspec/lib.contracts-runtime-server-graphql@3.7.10
|
|
84
|
+
- @contractspec/lib.contracts-runtime-server-rest@3.7.10
|
|
85
|
+
- @contractspec/lib.contracts-runtime-server-mcp@3.7.10
|
|
86
|
+
- @contractspec/lib.contracts-integrations@3.8.2
|
|
87
|
+
- @contractspec/module.context-storage@0.7.10
|
|
88
|
+
- @contractspec/lib.contracts-library@3.7.10
|
|
89
|
+
- @contractspec/lib.example-shared-ui@6.0.10
|
|
90
|
+
- @contractspec/lib.provider-ranking@0.7.8
|
|
91
|
+
- @contractspec/lib.runtime-sandbox@2.7.9
|
|
92
|
+
- @contractspec/lib.surface-runtime@0.5.10
|
|
93
|
+
- @contractspec/lib.contracts-spec@4.1.2
|
|
94
|
+
- @contractspec/lib.design-system@3.8.3
|
|
95
|
+
- @contractspec/lib.ai-providers@3.7.8
|
|
96
|
+
- @contractspec/lib.content-gen@3.7.10
|
|
97
|
+
- @contractspec/module.examples@3.8.2
|
|
98
|
+
- @contractspec/lib.ui-kit-web@3.9.2
|
|
99
|
+
- @contractspec/lib.knowledge@3.7.10
|
|
100
|
+
- @contractspec/lib.ui-link@3.7.8
|
|
101
|
+
- @contractspec/lib.logger@3.7.8
|
|
102
|
+
- @contractspec/lib.schema@3.7.8
|
|
103
|
+
|
|
104
|
+
## 3.8.1
|
|
105
|
+
|
|
106
|
+
### Patch Changes
|
|
107
|
+
|
|
108
|
+
- fix: release
|
|
109
|
+
- Updated dependencies
|
|
110
|
+
- @contractspec/lib.contracts-runtime-server-graphql@3.7.9
|
|
111
|
+
- @contractspec/lib.contracts-runtime-server-rest@3.7.9
|
|
112
|
+
- @contractspec/lib.contracts-runtime-server-mcp@3.7.9
|
|
113
|
+
- @contractspec/lib.contracts-integrations@3.8.1
|
|
114
|
+
- @contractspec/module.context-storage@0.7.9
|
|
115
|
+
- @contractspec/lib.contracts-library@3.7.9
|
|
116
|
+
- @contractspec/lib.example-shared-ui@6.0.9
|
|
117
|
+
- @contractspec/lib.runtime-sandbox@2.7.8
|
|
118
|
+
- @contractspec/lib.surface-runtime@0.5.9
|
|
119
|
+
- @contractspec/lib.contracts-spec@4.1.1
|
|
120
|
+
- @contractspec/lib.design-system@3.8.2
|
|
121
|
+
- @contractspec/lib.content-gen@3.7.9
|
|
122
|
+
- @contractspec/module.examples@3.8.1
|
|
123
|
+
- @contractspec/lib.ui-kit-web@3.9.1
|
|
124
|
+
- @contractspec/lib.knowledge@3.7.9
|
|
125
|
+
- @contractspec/lib.ui-link@3.7.7
|
|
126
|
+
- @contractspec/lib.ai-providers@3.7.7
|
|
127
|
+
- @contractspec/lib.logger@3.7.7
|
|
128
|
+
- @contractspec/lib.provider-ranking@0.7.7
|
|
129
|
+
- @contractspec/lib.schema@3.7.7
|
|
130
|
+
|
|
3
131
|
## 3.7.6
|
|
4
132
|
|
|
5
133
|
### Patch Changes
|
|
@@ -231,6 +359,7 @@
|
|
|
231
359
|
### Patch Changes
|
|
232
360
|
|
|
233
361
|
- 27b77db: feat(ai-models): add latest models and align defaults
|
|
362
|
+
|
|
234
363
|
- Add claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5, gpt-5.4, gpt-5-mini
|
|
235
364
|
- Add mistral-large-2512, mistral-medium-2508, mistral-small-2506, devstral-2512
|
|
236
365
|
- Add gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview, gemini-3-flash-preview
|
|
@@ -380,6 +509,7 @@
|
|
|
380
509
|
### Patch Changes
|
|
381
510
|
|
|
382
511
|
- 1fa29a0: feat(bundle.library): add LibraryBundle, WorkspaceShellRenderer, bundles export
|
|
512
|
+
|
|
383
513
|
- Add LibraryBundle and bundles/index for workspace shell composition
|
|
384
514
|
- Add WorkspaceShellRenderer component for dynamic slot rendering
|
|
385
515
|
- 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
|
+
};
|