@contractspec/module.examples 3.7.5 → 3.7.7
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/README.md +54 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +61 -55
- package/dist/node/index.js +61 -55
- package/dist/runtime/context.d.ts +6 -6
- package/dist/runtime/installer.d.ts +2 -2
- package/dist/runtime/registry.d.ts +1 -1
- package/package.json +56 -56
package/README.md
CHANGED
|
@@ -1,21 +1,65 @@
|
|
|
1
1
|
# @contractspec/module.examples
|
|
2
2
|
|
|
3
|
-
Website: https://contractspec.io
|
|
3
|
+
Website: https://contractspec.io
|
|
4
4
|
|
|
5
|
+
**Example contract specifications collection.**
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
## What It Provides
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
- **Layer**: module.
|
|
10
|
+
- **Consumers**: apps (web-landing, docs), bundles (contractspec-studio).
|
|
11
|
+
- Related ContractSpec packages include `@contractspec/example.agent-console`, `@contractspec/example.ai-chat-assistant`, `@contractspec/example.ai-support-bot`, `@contractspec/example.analytics-dashboard`, `@contractspec/example.calendar-google`, `@contractspec/example.content-generation`, ...
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
## Installation
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
- Pure validators to enforce minimum required metadata across examples
|
|
15
|
+
`npm install @contractspec/module.examples`
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
or
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
- Deterministic outputs from explicit inputs
|
|
19
|
-
- Strong typing (no `any`)
|
|
19
|
+
`bun add @contractspec/module.examples`
|
|
20
20
|
|
|
21
|
+
## Usage
|
|
21
22
|
|
|
23
|
+
Import the root entrypoint from `@contractspec/module.examples`, or choose a documented subpath when you only need one part of the package surface.
|
|
24
|
+
|
|
25
|
+
## Architecture
|
|
26
|
+
|
|
27
|
+
- `src/builtins.ts` is part of the package's public or composition surface.
|
|
28
|
+
- `src/index.ts` is the root public barrel and package entrypoint.
|
|
29
|
+
- `src/registry.test.ts` is part of the package's public or composition surface.
|
|
30
|
+
- `src/registry.ts` is part of the package's public or composition surface.
|
|
31
|
+
- `src/runtime` is part of the package's public or composition surface.
|
|
32
|
+
|
|
33
|
+
## Public Entry Points
|
|
34
|
+
|
|
35
|
+
- Export `.` resolves through `./src/index.ts`.
|
|
36
|
+
|
|
37
|
+
## Local Commands
|
|
38
|
+
|
|
39
|
+
- `bun run dev` — contractspec-bun-build dev
|
|
40
|
+
- `bun run build` — bun run prebuild && bun run build:bundle && bun run build:types
|
|
41
|
+
- `bun run test` — bun test
|
|
42
|
+
- `bun run lint` — bun lint:fix
|
|
43
|
+
- `bun run lint:check` — biome check .
|
|
44
|
+
- `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
|
|
45
|
+
- `bun run typecheck` — tsc --noEmit
|
|
46
|
+
- `bun run publish:pkg` — bun publish --tolerate-republish --ignore-scripts --verbose
|
|
47
|
+
- `bun run publish:pkg:canary` — bun publish:pkg --tag canary
|
|
48
|
+
- `bun run clean` — rimraf dist .turbo
|
|
49
|
+
- `bun run build:bundle` — contractspec-bun-build transpile
|
|
50
|
+
- `bun run build:types` — contractspec-bun-build types
|
|
51
|
+
- `bun run generate:registry` — bun ../../../scripts/generate-example-registry.ts --write
|
|
52
|
+
- `bun run prebuild` — bun run generate:registry && contractspec-bun-build prebuild
|
|
53
|
+
|
|
54
|
+
## Recent Updates
|
|
55
|
+
|
|
56
|
+
- Replace eslint+prettier by biomejs to optimize speed.
|
|
57
|
+
- Add table capabilities.
|
|
58
|
+
- Stability.
|
|
59
|
+
- Vnext ai-native.
|
|
60
|
+
|
|
61
|
+
## Notes
|
|
62
|
+
|
|
63
|
+
- This module is a thin aggregator -- business logic belongs in individual example packages under `packages/examples/`.
|
|
64
|
+
- Adding a new example requires both creating the example package and wiring it as a dependency here.
|
|
65
|
+
- Depends on ~30 example workspace packages; keep the dependency list in sync with `packages/examples/`.
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pure types + registries for ContractSpec examples.
|
|
5
5
|
*/
|
|
6
6
|
export * from './registry';
|
|
7
|
+
export * from './runtime/context';
|
|
7
8
|
export * from './runtime/engine';
|
|
8
9
|
export * from './runtime/installer';
|
|
9
10
|
export * from './runtime/registry';
|
|
10
|
-
export * from './runtime/context';
|
package/dist/index.js
CHANGED
|
@@ -118,12 +118,41 @@ function getExample(key) {
|
|
|
118
118
|
function searchExamples(query) {
|
|
119
119
|
return globalRegistry.search(query);
|
|
120
120
|
}
|
|
121
|
-
// src/runtime/
|
|
121
|
+
// src/runtime/context.tsx
|
|
122
|
+
import { ApolloProvider } from "@apollo/client/react";
|
|
123
|
+
import { web as web2 } from "@contractspec/lib.runtime-sandbox";
|
|
124
|
+
import { useEffect, useMemo, useState } from "react";
|
|
122
125
|
import {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
createAgentHandlers
|
|
127
|
+
} from "@contractspec/example.agent-console";
|
|
128
|
+
import {
|
|
129
|
+
createAnalyticsHandlers
|
|
130
|
+
} from "@contractspec/example.analytics-dashboard";
|
|
131
|
+
import {
|
|
132
|
+
createCrmHandlers
|
|
133
|
+
} from "@contractspec/example.crm-pipeline";
|
|
134
|
+
import {
|
|
135
|
+
createIntegrationHandlers
|
|
136
|
+
} from "@contractspec/example.integration-hub";
|
|
137
|
+
import {
|
|
138
|
+
createMarketplaceHandlers
|
|
139
|
+
} from "@contractspec/example.marketplace";
|
|
140
|
+
import {
|
|
141
|
+
createPolicySafeKnowledgeAssistantHandlers
|
|
142
|
+
} from "@contractspec/example.policy-safe-knowledge-assistant";
|
|
143
|
+
import {
|
|
144
|
+
createSaasHandlers
|
|
145
|
+
} from "@contractspec/example.saas-boilerplate";
|
|
146
|
+
import {
|
|
147
|
+
createWorkflowHandlers
|
|
148
|
+
} from "@contractspec/example.workflow-system";
|
|
149
|
+
import {
|
|
150
|
+
TemplateRuntimeContext,
|
|
151
|
+
useTemplateComponents,
|
|
152
|
+
useTemplateRuntime
|
|
153
|
+
} from "@contractspec/lib.example-shared-ui";
|
|
154
|
+
|
|
155
|
+
// src/runtime/engine.ts
|
|
127
156
|
import {
|
|
128
157
|
agentDashboardMarkdownRenderer,
|
|
129
158
|
agentListMarkdownRenderer,
|
|
@@ -132,36 +161,41 @@ import {
|
|
|
132
161
|
toolRegistryMarkdownRenderer
|
|
133
162
|
} from "@contractspec/example.agent-console";
|
|
134
163
|
import {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
} from "@contractspec/example.saas-boilerplate";
|
|
164
|
+
analyticsDashboardMarkdownRenderer,
|
|
165
|
+
dashboardListMarkdownRenderer,
|
|
166
|
+
queryBuilderMarkdownRenderer
|
|
167
|
+
} from "@contractspec/example.analytics-dashboard";
|
|
140
168
|
import {
|
|
141
169
|
crmDashboardMarkdownRenderer,
|
|
142
170
|
crmPipelineMarkdownRenderer,
|
|
143
171
|
crmPipelineReactRenderer
|
|
144
172
|
} from "@contractspec/example.crm-pipeline";
|
|
145
173
|
import {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
} from "@contractspec/example.
|
|
174
|
+
connectionListMarkdownRenderer,
|
|
175
|
+
integrationDashboardMarkdownRenderer,
|
|
176
|
+
syncConfigMarkdownRenderer
|
|
177
|
+
} from "@contractspec/example.integration-hub";
|
|
150
178
|
import {
|
|
151
179
|
marketplaceDashboardMarkdownRenderer,
|
|
152
180
|
orderListMarkdownRenderer,
|
|
153
181
|
productCatalogMarkdownRenderer
|
|
154
182
|
} from "@contractspec/example.marketplace";
|
|
155
183
|
import {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
184
|
+
projectListMarkdownRenderer,
|
|
185
|
+
projectListReactRenderer,
|
|
186
|
+
saasBillingMarkdownRenderer,
|
|
187
|
+
saasDashboardMarkdownRenderer
|
|
188
|
+
} from "@contractspec/example.saas-boilerplate";
|
|
160
189
|
import {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
} from "@contractspec/example.
|
|
190
|
+
workflowDashboardMarkdownRenderer,
|
|
191
|
+
workflowDefinitionListMarkdownRenderer,
|
|
192
|
+
workflowInstanceDetailMarkdownRenderer
|
|
193
|
+
} from "@contractspec/example.workflow-system";
|
|
194
|
+
import {
|
|
195
|
+
createDefaultTransformEngine,
|
|
196
|
+
registerBasicValidation,
|
|
197
|
+
registerDefaultReactRenderer
|
|
198
|
+
} from "@contractspec/lib.contracts-spec/presentations/transform-engine";
|
|
165
199
|
function createTemplateTransformEngine() {
|
|
166
200
|
const engine = createDefaultTransformEngine();
|
|
167
201
|
registerDefaultReactRenderer(engine);
|
|
@@ -205,6 +239,10 @@ function getTemplateEngine() {
|
|
|
205
239
|
function resetTemplateEngine() {
|
|
206
240
|
templateEngine = null;
|
|
207
241
|
}
|
|
242
|
+
|
|
243
|
+
// src/runtime/installer.ts
|
|
244
|
+
import { web } from "@contractspec/lib.runtime-sandbox";
|
|
245
|
+
|
|
208
246
|
// src/runtime/registry.ts
|
|
209
247
|
var PRESENTATIONS_BY_TEMPLATE = {
|
|
210
248
|
"saas-boilerplate": [
|
|
@@ -454,7 +492,6 @@ class ContractSpecRegistryClient {
|
|
|
454
492
|
}
|
|
455
493
|
|
|
456
494
|
// src/runtime/installer.ts
|
|
457
|
-
import { web } from "@contractspec/lib.runtime-sandbox";
|
|
458
495
|
"use client";
|
|
459
496
|
var { LocalRuntimeServices } = web;
|
|
460
497
|
var SAVE_TEMPLATE_MUTATION = `
|
|
@@ -560,39 +597,8 @@ function toBase64(bytes) {
|
|
|
560
597
|
});
|
|
561
598
|
return btoa(binary);
|
|
562
599
|
}
|
|
600
|
+
|
|
563
601
|
// src/runtime/context.tsx
|
|
564
|
-
import { useEffect, useMemo, useState } from "react";
|
|
565
|
-
import { ApolloProvider } from "@apollo/client/react";
|
|
566
|
-
import { web as web2 } from "@contractspec/lib.runtime-sandbox";
|
|
567
|
-
import {
|
|
568
|
-
createCrmHandlers
|
|
569
|
-
} from "@contractspec/example.crm-pipeline";
|
|
570
|
-
import {
|
|
571
|
-
createSaasHandlers
|
|
572
|
-
} from "@contractspec/example.saas-boilerplate";
|
|
573
|
-
import {
|
|
574
|
-
createAgentHandlers
|
|
575
|
-
} from "@contractspec/example.agent-console";
|
|
576
|
-
import {
|
|
577
|
-
createWorkflowHandlers
|
|
578
|
-
} from "@contractspec/example.workflow-system";
|
|
579
|
-
import {
|
|
580
|
-
createMarketplaceHandlers
|
|
581
|
-
} from "@contractspec/example.marketplace";
|
|
582
|
-
import {
|
|
583
|
-
createIntegrationHandlers
|
|
584
|
-
} from "@contractspec/example.integration-hub";
|
|
585
|
-
import {
|
|
586
|
-
createAnalyticsHandlers
|
|
587
|
-
} from "@contractspec/example.analytics-dashboard";
|
|
588
|
-
import {
|
|
589
|
-
createPolicySafeKnowledgeAssistantHandlers
|
|
590
|
-
} from "@contractspec/example.policy-safe-knowledge-assistant";
|
|
591
|
-
import {
|
|
592
|
-
TemplateRuntimeContext,
|
|
593
|
-
useTemplateRuntime,
|
|
594
|
-
useTemplateComponents
|
|
595
|
-
} from "@contractspec/lib.example-shared-ui";
|
|
596
602
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
597
603
|
"use client";
|
|
598
604
|
var { LocalRuntimeServices: LocalRuntimeServices2 } = web2;
|
package/dist/node/index.js
CHANGED
|
@@ -117,12 +117,41 @@ function getExample(key) {
|
|
|
117
117
|
function searchExamples(query) {
|
|
118
118
|
return globalRegistry.search(query);
|
|
119
119
|
}
|
|
120
|
-
// src/runtime/
|
|
120
|
+
// src/runtime/context.tsx
|
|
121
|
+
import { ApolloProvider } from "@apollo/client/react";
|
|
122
|
+
import { web as web2 } from "@contractspec/lib.runtime-sandbox";
|
|
123
|
+
import { useEffect, useMemo, useState } from "react";
|
|
121
124
|
import {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
createAgentHandlers
|
|
126
|
+
} from "@contractspec/example.agent-console";
|
|
127
|
+
import {
|
|
128
|
+
createAnalyticsHandlers
|
|
129
|
+
} from "@contractspec/example.analytics-dashboard";
|
|
130
|
+
import {
|
|
131
|
+
createCrmHandlers
|
|
132
|
+
} from "@contractspec/example.crm-pipeline";
|
|
133
|
+
import {
|
|
134
|
+
createIntegrationHandlers
|
|
135
|
+
} from "@contractspec/example.integration-hub";
|
|
136
|
+
import {
|
|
137
|
+
createMarketplaceHandlers
|
|
138
|
+
} from "@contractspec/example.marketplace";
|
|
139
|
+
import {
|
|
140
|
+
createPolicySafeKnowledgeAssistantHandlers
|
|
141
|
+
} from "@contractspec/example.policy-safe-knowledge-assistant";
|
|
142
|
+
import {
|
|
143
|
+
createSaasHandlers
|
|
144
|
+
} from "@contractspec/example.saas-boilerplate";
|
|
145
|
+
import {
|
|
146
|
+
createWorkflowHandlers
|
|
147
|
+
} from "@contractspec/example.workflow-system";
|
|
148
|
+
import {
|
|
149
|
+
TemplateRuntimeContext,
|
|
150
|
+
useTemplateComponents,
|
|
151
|
+
useTemplateRuntime
|
|
152
|
+
} from "@contractspec/lib.example-shared-ui";
|
|
153
|
+
|
|
154
|
+
// src/runtime/engine.ts
|
|
126
155
|
import {
|
|
127
156
|
agentDashboardMarkdownRenderer,
|
|
128
157
|
agentListMarkdownRenderer,
|
|
@@ -131,36 +160,41 @@ import {
|
|
|
131
160
|
toolRegistryMarkdownRenderer
|
|
132
161
|
} from "@contractspec/example.agent-console";
|
|
133
162
|
import {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
} from "@contractspec/example.saas-boilerplate";
|
|
163
|
+
analyticsDashboardMarkdownRenderer,
|
|
164
|
+
dashboardListMarkdownRenderer,
|
|
165
|
+
queryBuilderMarkdownRenderer
|
|
166
|
+
} from "@contractspec/example.analytics-dashboard";
|
|
139
167
|
import {
|
|
140
168
|
crmDashboardMarkdownRenderer,
|
|
141
169
|
crmPipelineMarkdownRenderer,
|
|
142
170
|
crmPipelineReactRenderer
|
|
143
171
|
} from "@contractspec/example.crm-pipeline";
|
|
144
172
|
import {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
} from "@contractspec/example.
|
|
173
|
+
connectionListMarkdownRenderer,
|
|
174
|
+
integrationDashboardMarkdownRenderer,
|
|
175
|
+
syncConfigMarkdownRenderer
|
|
176
|
+
} from "@contractspec/example.integration-hub";
|
|
149
177
|
import {
|
|
150
178
|
marketplaceDashboardMarkdownRenderer,
|
|
151
179
|
orderListMarkdownRenderer,
|
|
152
180
|
productCatalogMarkdownRenderer
|
|
153
181
|
} from "@contractspec/example.marketplace";
|
|
154
182
|
import {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
183
|
+
projectListMarkdownRenderer,
|
|
184
|
+
projectListReactRenderer,
|
|
185
|
+
saasBillingMarkdownRenderer,
|
|
186
|
+
saasDashboardMarkdownRenderer
|
|
187
|
+
} from "@contractspec/example.saas-boilerplate";
|
|
159
188
|
import {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
} from "@contractspec/example.
|
|
189
|
+
workflowDashboardMarkdownRenderer,
|
|
190
|
+
workflowDefinitionListMarkdownRenderer,
|
|
191
|
+
workflowInstanceDetailMarkdownRenderer
|
|
192
|
+
} from "@contractspec/example.workflow-system";
|
|
193
|
+
import {
|
|
194
|
+
createDefaultTransformEngine,
|
|
195
|
+
registerBasicValidation,
|
|
196
|
+
registerDefaultReactRenderer
|
|
197
|
+
} from "@contractspec/lib.contracts-spec/presentations/transform-engine";
|
|
164
198
|
function createTemplateTransformEngine() {
|
|
165
199
|
const engine = createDefaultTransformEngine();
|
|
166
200
|
registerDefaultReactRenderer(engine);
|
|
@@ -204,6 +238,10 @@ function getTemplateEngine() {
|
|
|
204
238
|
function resetTemplateEngine() {
|
|
205
239
|
templateEngine = null;
|
|
206
240
|
}
|
|
241
|
+
|
|
242
|
+
// src/runtime/installer.ts
|
|
243
|
+
import { web } from "@contractspec/lib.runtime-sandbox";
|
|
244
|
+
|
|
207
245
|
// src/runtime/registry.ts
|
|
208
246
|
var PRESENTATIONS_BY_TEMPLATE = {
|
|
209
247
|
"saas-boilerplate": [
|
|
@@ -453,7 +491,6 @@ class ContractSpecRegistryClient {
|
|
|
453
491
|
}
|
|
454
492
|
|
|
455
493
|
// src/runtime/installer.ts
|
|
456
|
-
import { web } from "@contractspec/lib.runtime-sandbox";
|
|
457
494
|
"use client";
|
|
458
495
|
var { LocalRuntimeServices } = web;
|
|
459
496
|
var SAVE_TEMPLATE_MUTATION = `
|
|
@@ -559,39 +596,8 @@ function toBase64(bytes) {
|
|
|
559
596
|
});
|
|
560
597
|
return btoa(binary);
|
|
561
598
|
}
|
|
599
|
+
|
|
562
600
|
// src/runtime/context.tsx
|
|
563
|
-
import { useEffect, useMemo, useState } from "react";
|
|
564
|
-
import { ApolloProvider } from "@apollo/client/react";
|
|
565
|
-
import { web as web2 } from "@contractspec/lib.runtime-sandbox";
|
|
566
|
-
import {
|
|
567
|
-
createCrmHandlers
|
|
568
|
-
} from "@contractspec/example.crm-pipeline";
|
|
569
|
-
import {
|
|
570
|
-
createSaasHandlers
|
|
571
|
-
} from "@contractspec/example.saas-boilerplate";
|
|
572
|
-
import {
|
|
573
|
-
createAgentHandlers
|
|
574
|
-
} from "@contractspec/example.agent-console";
|
|
575
|
-
import {
|
|
576
|
-
createWorkflowHandlers
|
|
577
|
-
} from "@contractspec/example.workflow-system";
|
|
578
|
-
import {
|
|
579
|
-
createMarketplaceHandlers
|
|
580
|
-
} from "@contractspec/example.marketplace";
|
|
581
|
-
import {
|
|
582
|
-
createIntegrationHandlers
|
|
583
|
-
} from "@contractspec/example.integration-hub";
|
|
584
|
-
import {
|
|
585
|
-
createAnalyticsHandlers
|
|
586
|
-
} from "@contractspec/example.analytics-dashboard";
|
|
587
|
-
import {
|
|
588
|
-
createPolicySafeKnowledgeAssistantHandlers
|
|
589
|
-
} from "@contractspec/example.policy-safe-knowledge-assistant";
|
|
590
|
-
import {
|
|
591
|
-
TemplateRuntimeContext,
|
|
592
|
-
useTemplateRuntime,
|
|
593
|
-
useTemplateComponents
|
|
594
|
-
} from "@contractspec/lib.example-shared-ui";
|
|
595
601
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
596
602
|
"use client";
|
|
597
603
|
var { LocalRuntimeServices: LocalRuntimeServices2 } = web2;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type PropsWithChildren } from 'react';
|
|
2
|
-
import type { TransformEngine } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
|
|
3
|
-
import { type CrmHandlers } from '@contractspec/example.crm-pipeline';
|
|
4
|
-
import { type SaasHandlers } from '@contractspec/example.saas-boilerplate';
|
|
5
2
|
import { type AgentHandlers } from '@contractspec/example.agent-console';
|
|
6
|
-
import { type WorkflowHandlers } from '@contractspec/example.workflow-system';
|
|
7
|
-
import { type MarketplaceHandlers } from '@contractspec/example.marketplace';
|
|
8
|
-
import { type IntegrationHandlers } from '@contractspec/example.integration-hub';
|
|
9
3
|
import { type AnalyticsHandlers } from '@contractspec/example.analytics-dashboard';
|
|
4
|
+
import { type CrmHandlers } from '@contractspec/example.crm-pipeline';
|
|
5
|
+
import { type IntegrationHandlers } from '@contractspec/example.integration-hub';
|
|
6
|
+
import { type MarketplaceHandlers } from '@contractspec/example.marketplace';
|
|
10
7
|
import { type PolicySafeKnowledgeAssistantHandlers } from '@contractspec/example.policy-safe-knowledge-assistant';
|
|
8
|
+
import { type SaasHandlers } from '@contractspec/example.saas-boilerplate';
|
|
9
|
+
import { type WorkflowHandlers } from '@contractspec/example.workflow-system';
|
|
10
|
+
import type { TransformEngine } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
|
|
11
11
|
import { type TemplateRuntimeProviderProps } from '@contractspec/lib.example-shared-ui';
|
|
12
12
|
/**
|
|
13
13
|
* Template-specific handlers created from the runtime database
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type RegistryTemplateSummary } from './registry-client';
|
|
1
|
+
import type { InstallTemplateOptions, SaveTemplateOptions, SaveTemplateResult, TemplateDefinition, TemplateFilter, TemplateId } from '@contractspec/lib.example-shared-ui';
|
|
3
2
|
import { web } from '@contractspec/lib.runtime-sandbox';
|
|
3
|
+
import { type RegistryTemplateSummary } from './registry-client';
|
|
4
4
|
declare const LocalRuntimeServices: typeof web.LocalRuntimeServices;
|
|
5
5
|
type LocalRuntimeServices = InstanceType<typeof LocalRuntimeServices>;
|
|
6
6
|
export interface TemplateInstallerOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TemplateDefinition,
|
|
1
|
+
import type { TemplateDefinition, TemplateFilter, TemplateId } from '@contractspec/lib.example-shared-ui';
|
|
2
2
|
export declare const TEMPLATE_REGISTRY: TemplateDefinition[];
|
|
3
3
|
export declare function listTemplates(filter?: TemplateFilter): TemplateDefinition[];
|
|
4
4
|
export declare function getTemplate(id: TemplateId): TemplateDefinition | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/module.examples",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.7",
|
|
4
4
|
"description": "Example contract specifications collection",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dev": "contractspec-bun-build dev",
|
|
25
25
|
"clean": "rimraf dist .turbo",
|
|
26
26
|
"lint": "bun lint:fix",
|
|
27
|
-
"lint:fix": "
|
|
28
|
-
"lint:check": "
|
|
27
|
+
"lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
|
|
28
|
+
"lint:check": "biome check .",
|
|
29
29
|
"test": "bun test",
|
|
30
30
|
"generate:registry": "bun ../../../scripts/generate-example-registry.ts --write",
|
|
31
31
|
"prebuild": "bun run generate:registry && contractspec-bun-build prebuild",
|
|
@@ -33,63 +33,63 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@apollo/client": "^4.1.6",
|
|
36
|
-
"@contractspec/example.agent-console": "3.7.
|
|
37
|
-
"@contractspec/example.ai-chat-assistant": "3.7.
|
|
38
|
-
"@contractspec/example.ai-support-bot": "3.7.
|
|
39
|
-
"@contractspec/example.analytics-dashboard": "3.
|
|
40
|
-
"@contractspec/example.calendar-google": "3.7.
|
|
41
|
-
"@contractspec/example.content-generation": "3.7.
|
|
42
|
-
"@contractspec/example.crm-pipeline": "3.7.
|
|
43
|
-
"@contractspec/example.email-gmail": "3.7.
|
|
44
|
-
"@contractspec/example.in-app-docs": "3.7.
|
|
45
|
-
"@contractspec/example.integration-hub": "3.7.
|
|
46
|
-
"@contractspec/example.integration-posthog": "3.7.
|
|
47
|
-
"@contractspec/example.integration-stripe": "3.7.
|
|
48
|
-
"@contractspec/example.integration-supabase": "3.7.
|
|
49
|
-
"@contractspec/example.voice-providers": "3.7.
|
|
50
|
-
"@contractspec/example.kb-update-pipeline": "3.7.
|
|
51
|
-
"@contractspec/example.knowledge-canon": "3.7.
|
|
52
|
-
"@contractspec/example.learning-journey-ambient-coach": "3.7.
|
|
53
|
-
"@contractspec/example.learning-journey-crm-onboarding": "3.7.
|
|
54
|
-
"@contractspec/example.learning-journey-duo-drills": "3.7.
|
|
55
|
-
"@contractspec/example.learning-journey-platform-tour": "3.7.
|
|
56
|
-
"@contractspec/example.learning-journey-quest-challenges": "3.7.
|
|
57
|
-
"@contractspec/example.learning-journey-registry": "3.7.
|
|
58
|
-
"@contractspec/example.learning-journey-studio-onboarding": "3.7.
|
|
59
|
-
"@contractspec/example.learning-journey-ui-coaching": "3.7.
|
|
60
|
-
"@contractspec/example.learning-journey-ui-gamified": "3.7.
|
|
61
|
-
"@contractspec/example.learning-journey-ui-onboarding": "3.7.
|
|
62
|
-
"@contractspec/example.learning-journey-ui-shared": "3.7.
|
|
63
|
-
"@contractspec/example.learning-patterns": "3.7.
|
|
64
|
-
"@contractspec/example.lifecycle-cli": "3.7.
|
|
65
|
-
"@contractspec/example.lifecycle-dashboard": "3.7.
|
|
66
|
-
"@contractspec/example.locale-jurisdiction-gate": "3.7.
|
|
67
|
-
"@contractspec/example.marketplace": "3.7.
|
|
68
|
-
"@contractspec/example.meeting-recorder-providers": "3.7.
|
|
69
|
-
"@contractspec/example.openbanking-powens": "3.7.
|
|
70
|
-
"@contractspec/example.personalization": "3.7.
|
|
71
|
-
"@contractspec/example.pocket-family-office": "3.7.
|
|
72
|
-
"@contractspec/example.policy-safe-knowledge-assistant": "3.7.
|
|
73
|
-
"@contractspec/example.product-intent": "3.7.
|
|
74
|
-
"@contractspec/example.project-management-sync": "3.7.
|
|
75
|
-
"@contractspec/example.saas-boilerplate": "3.7.
|
|
76
|
-
"@contractspec/example.service-business-os": "3.7.
|
|
77
|
-
"@contractspec/example.team-hub": "3.7.
|
|
78
|
-
"@contractspec/example.versioned-knowledge-base": "3.7.
|
|
79
|
-
"@contractspec/example.video-api-showcase": "3.7.
|
|
80
|
-
"@contractspec/example.video-docs-terminal": "3.7.
|
|
81
|
-
"@contractspec/example.video-marketing-clip": "3.7.
|
|
82
|
-
"@contractspec/example.wealth-snapshot": "3.7.
|
|
83
|
-
"@contractspec/example.workflow-system": "3.7.
|
|
84
|
-
"@contractspec/lib.contracts-spec": "
|
|
85
|
-
"@contractspec/lib.example-shared-ui": "6.0.
|
|
86
|
-
"@contractspec/lib.runtime-sandbox": "2.7.
|
|
36
|
+
"@contractspec/example.agent-console": "3.7.7",
|
|
37
|
+
"@contractspec/example.ai-chat-assistant": "3.7.7",
|
|
38
|
+
"@contractspec/example.ai-support-bot": "3.7.7",
|
|
39
|
+
"@contractspec/example.analytics-dashboard": "3.8.0",
|
|
40
|
+
"@contractspec/example.calendar-google": "3.7.7",
|
|
41
|
+
"@contractspec/example.content-generation": "3.7.7",
|
|
42
|
+
"@contractspec/example.crm-pipeline": "3.7.7",
|
|
43
|
+
"@contractspec/example.email-gmail": "3.7.7",
|
|
44
|
+
"@contractspec/example.in-app-docs": "3.7.7",
|
|
45
|
+
"@contractspec/example.integration-hub": "3.7.7",
|
|
46
|
+
"@contractspec/example.integration-posthog": "3.7.7",
|
|
47
|
+
"@contractspec/example.integration-stripe": "3.7.7",
|
|
48
|
+
"@contractspec/example.integration-supabase": "3.7.7",
|
|
49
|
+
"@contractspec/example.voice-providers": "3.7.7",
|
|
50
|
+
"@contractspec/example.kb-update-pipeline": "3.7.7",
|
|
51
|
+
"@contractspec/example.knowledge-canon": "3.7.7",
|
|
52
|
+
"@contractspec/example.learning-journey-ambient-coach": "3.7.7",
|
|
53
|
+
"@contractspec/example.learning-journey-crm-onboarding": "3.7.7",
|
|
54
|
+
"@contractspec/example.learning-journey-duo-drills": "3.7.7",
|
|
55
|
+
"@contractspec/example.learning-journey-platform-tour": "3.7.7",
|
|
56
|
+
"@contractspec/example.learning-journey-quest-challenges": "3.7.7",
|
|
57
|
+
"@contractspec/example.learning-journey-registry": "3.7.7",
|
|
58
|
+
"@contractspec/example.learning-journey-studio-onboarding": "3.7.7",
|
|
59
|
+
"@contractspec/example.learning-journey-ui-coaching": "3.7.7",
|
|
60
|
+
"@contractspec/example.learning-journey-ui-gamified": "3.7.7",
|
|
61
|
+
"@contractspec/example.learning-journey-ui-onboarding": "3.7.7",
|
|
62
|
+
"@contractspec/example.learning-journey-ui-shared": "3.7.7",
|
|
63
|
+
"@contractspec/example.learning-patterns": "3.7.7",
|
|
64
|
+
"@contractspec/example.lifecycle-cli": "3.7.7",
|
|
65
|
+
"@contractspec/example.lifecycle-dashboard": "3.7.7",
|
|
66
|
+
"@contractspec/example.locale-jurisdiction-gate": "3.7.7",
|
|
67
|
+
"@contractspec/example.marketplace": "3.7.7",
|
|
68
|
+
"@contractspec/example.meeting-recorder-providers": "3.7.7",
|
|
69
|
+
"@contractspec/example.openbanking-powens": "3.7.7",
|
|
70
|
+
"@contractspec/example.personalization": "3.7.7",
|
|
71
|
+
"@contractspec/example.pocket-family-office": "3.7.7",
|
|
72
|
+
"@contractspec/example.policy-safe-knowledge-assistant": "3.7.7",
|
|
73
|
+
"@contractspec/example.product-intent": "3.7.7",
|
|
74
|
+
"@contractspec/example.project-management-sync": "3.7.7",
|
|
75
|
+
"@contractspec/example.saas-boilerplate": "3.7.7",
|
|
76
|
+
"@contractspec/example.service-business-os": "3.7.7",
|
|
77
|
+
"@contractspec/example.team-hub": "3.7.7",
|
|
78
|
+
"@contractspec/example.versioned-knowledge-base": "3.7.7",
|
|
79
|
+
"@contractspec/example.video-api-showcase": "3.7.7",
|
|
80
|
+
"@contractspec/example.video-docs-terminal": "3.7.7",
|
|
81
|
+
"@contractspec/example.video-marketing-clip": "3.7.7",
|
|
82
|
+
"@contractspec/example.wealth-snapshot": "3.7.7",
|
|
83
|
+
"@contractspec/example.workflow-system": "3.7.7",
|
|
84
|
+
"@contractspec/lib.contracts-spec": "4.0.0",
|
|
85
|
+
"@contractspec/lib.example-shared-ui": "6.0.7",
|
|
86
|
+
"@contractspec/lib.runtime-sandbox": "2.7.6",
|
|
87
87
|
"zod": "^4.3.5"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@contractspec/tool.typescript": "3.7.
|
|
90
|
+
"@contractspec/tool.typescript": "3.7.6",
|
|
91
91
|
"typescript": "^5.9.3",
|
|
92
|
-
"@contractspec/tool.bun": "3.7.
|
|
92
|
+
"@contractspec/tool.bun": "3.7.6"
|
|
93
93
|
},
|
|
94
94
|
"exports": {
|
|
95
95
|
".": {
|