@lssm/module.contractspec-examples 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060433

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.
@@ -0,0 +1,6 @@
1
+ import { ExampleDefinition } from "./types.js";
2
+
3
+ //#region src/builtins.d.ts
4
+ declare const EXAMPLE_REGISTRY: readonly ExampleDefinition[];
5
+ //#endregion
6
+ export { EXAMPLE_REGISTRY };
@@ -0,0 +1,5 @@
1
+ import { ExampleDefinition, ExampleDocRefs, ExampleEntrypoints, ExampleId, ExampleKind, ExampleSandboxMode, ExampleSurfacesSupport, ExampleVisibility } from "./types.js";
2
+ import { EXAMPLE_REGISTRY } from "./builtins.js";
3
+ import { getExample, listExamples, searchExamples } from "./registry.js";
4
+ import { ExampleValidationError, ValidateExamplesResult, validateExamples } from "./validate.js";
5
+ export { EXAMPLE_REGISTRY, ExampleDefinition, ExampleDocRefs, ExampleEntrypoints, ExampleId, ExampleKind, ExampleSandboxMode, ExampleSurfacesSupport, ExampleValidationError, ExampleVisibility, ValidateExamplesResult, getExample, listExamples, searchExamples, validateExamples };
@@ -0,0 +1,9 @@
1
+ import { ExampleDefinition, ExampleId } from "./types.js";
2
+ import { EXAMPLE_REGISTRY } from "./builtins.js";
3
+
4
+ //#region src/registry.d.ts
5
+ declare function listExamples(): readonly ExampleDefinition[];
6
+ declare function getExample(id: ExampleId): ExampleDefinition | undefined;
7
+ declare function searchExamples(query: string): ExampleDefinition[];
8
+ //#endregion
9
+ export { getExample, listExamples, searchExamples };
@@ -0,0 +1,52 @@
1
+ //#region src/types.d.ts
2
+ type ExampleId = string;
3
+ type ExampleKind = 'template' | 'workflow' | 'integration' | 'knowledge' | 'blueprint' | 'ui' | 'script' | 'library';
4
+ type ExampleVisibility = 'public' | 'internal' | 'mixed';
5
+ type ExampleSandboxMode = 'playground' | 'specs' | 'builder' | 'markdown' | 'evolution';
6
+ interface ExampleDocRefs {
7
+ /** Canonical doc route id(s) in DocBlocks registry */
8
+ rootDocId?: string;
9
+ goalDocId?: string;
10
+ usageDocId?: string;
11
+ referenceDocId?: string;
12
+ constraintsDocId?: string;
13
+ }
14
+ interface ExampleSurfacesSupport {
15
+ templates: boolean;
16
+ sandbox: {
17
+ enabled: boolean;
18
+ modes: readonly ExampleSandboxMode[];
19
+ };
20
+ studio: {
21
+ enabled: boolean;
22
+ /** If true, Studio can create a real project from this example via API. */
23
+ installable: boolean;
24
+ };
25
+ mcp: {
26
+ enabled: boolean;
27
+ };
28
+ }
29
+ interface ExampleEntrypoints {
30
+ /** Package name in the monorepo (workspace) */
31
+ packageName: string;
32
+ /** Optional exports from the example package (strings are subpath exports). */
33
+ feature?: string;
34
+ presentations?: string;
35
+ contracts?: string;
36
+ handlers?: string;
37
+ ui?: string;
38
+ docs?: string;
39
+ }
40
+ interface ExampleDefinition {
41
+ id: ExampleId;
42
+ title: string;
43
+ summary: string;
44
+ tags: readonly string[];
45
+ kind: ExampleKind;
46
+ visibility: ExampleVisibility;
47
+ docs?: ExampleDocRefs;
48
+ entrypoints: ExampleEntrypoints;
49
+ surfaces: ExampleSurfacesSupport;
50
+ }
51
+ //#endregion
52
+ export { ExampleDefinition, ExampleDocRefs, ExampleEntrypoints, ExampleId, ExampleKind, ExampleSandboxMode, ExampleSurfacesSupport, ExampleVisibility };
@@ -0,0 +1,18 @@
1
+ import { ExampleDefinition } from "./types.js";
2
+
3
+ //#region src/validate.d.ts
4
+ interface ExampleValidationError {
5
+ exampleId?: string;
6
+ message: string;
7
+ path?: string;
8
+ }
9
+ type ValidateExamplesResult = {
10
+ ok: true;
11
+ examples: ExampleDefinition[];
12
+ } | {
13
+ ok: false;
14
+ errors: ExampleValidationError[];
15
+ };
16
+ declare function validateExamples(examples: ExampleDefinition[]): ValidateExamplesResult;
17
+ //#endregion
18
+ export { ExampleValidationError, ValidateExamplesResult, validateExamples };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/module.contractspec-examples",
3
- "version": "0.0.0-canary-20251217054315",
3
+ "version": "0.0.0-canary-20251217060433",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -23,50 +23,50 @@
23
23
  "test": "bun run"
24
24
  },
25
25
  "dependencies": {
26
- "@lssm/example.agent-console": "0.0.0-canary-20251217054315",
27
- "@lssm/example.ai-support-bot": "0.0.0-canary-20251217054315",
28
- "@lssm/example.analytics-dashboard": "0.0.0-canary-20251217054315",
29
- "@lssm/example.content-generation": "0.0.0-canary-20251217054315",
30
- "@lssm/example.crm-pipeline": "0.0.0-canary-20251217054315",
31
- "@lssm/example.integration-hub": "0.0.0-canary-20251217054315",
32
- "@lssm/example.integration-stripe": "0.0.0-canary-20251217054315",
33
- "@lssm/example.kb-update-pipeline": "0.0.0-canary-20251217054315",
34
- "@lssm/example.knowledge-canon": "0.0.0-canary-20251217054315",
35
- "@lssm/example.learning-patterns": "0.0.0-canary-20251217054315",
36
- "@lssm/example.learning-journey-ambient-coach": "0.0.0-canary-20251217054315",
37
- "@lssm/example.learning-journey-crm-onboarding": "0.0.0-canary-20251217054315",
38
- "@lssm/example.learning-journey-duo-drills": "0.0.0-canary-20251217054315",
39
- "@lssm/example.learning-journey-platform-tour": "0.0.0-canary-20251217054315",
40
- "@lssm/example.learning-journey-quest-challenges": "0.0.0-canary-20251217054315",
41
- "@lssm/example.learning-journey-registry": "0.0.0-canary-20251217054315",
42
- "@lssm/example.learning-journey-studio-onboarding": "0.0.0-canary-20251217054315",
43
- "@lssm/example.learning-journey-ui-coaching": "0.0.0-canary-20251217054315",
44
- "@lssm/example.learning-journey-ui-gamified": "0.0.0-canary-20251217054315",
45
- "@lssm/example.learning-journey-ui-onboarding": "0.0.0-canary-20251217054315",
46
- "@lssm/example.learning-journey-ui-shared": "0.0.0-canary-20251217054315",
47
- "@lssm/example.lifecycle-cli": "0.0.0-canary-20251217054315",
48
- "@lssm/example.lifecycle-dashboard": "0.0.0-canary-20251217054315",
49
- "@lssm/example.locale-jurisdiction-gate": "0.0.0-canary-20251217054315",
50
- "@lssm/example.marketplace": "0.0.0-canary-20251217054315",
51
- "@lssm/example.openbanking-powens": "0.0.0-canary-20251217054315",
52
- "@lssm/example.personalization": "0.0.0-canary-20251217054315",
53
- "@lssm/example.policy-safe-knowledge-assistant": "0.0.0-canary-20251217054315",
54
- "@lssm/example.saas-boilerplate": "0.0.0-canary-20251217054315",
55
- "@lssm/example.service-business-os": "0.0.0-canary-20251217054315",
56
- "@lssm/example.versioned-knowledge-base": "0.0.0-canary-20251217054315",
57
- "@lssm/example.team-hub": "0.0.0-canary-20251217054315",
58
- "@lssm/example.wealth-snapshot": "0.0.0-canary-20251217054315",
59
- "@lssm/example.workflow-system": "0.0.0-canary-20251217054315",
26
+ "@lssm/example.agent-console": "0.0.0-canary-20251217060433",
27
+ "@lssm/example.ai-support-bot": "0.0.0-canary-20251217060433",
28
+ "@lssm/example.analytics-dashboard": "0.0.0-canary-20251217060433",
29
+ "@lssm/example.content-generation": "0.0.0-canary-20251217060433",
30
+ "@lssm/example.crm-pipeline": "0.0.0-canary-20251217060433",
31
+ "@lssm/example.integration-hub": "0.0.0-canary-20251217060433",
32
+ "@lssm/example.integration-stripe": "0.0.0-canary-20251217060433",
33
+ "@lssm/example.kb-update-pipeline": "0.0.0-canary-20251217060433",
34
+ "@lssm/example.knowledge-canon": "0.0.0-canary-20251217060433",
35
+ "@lssm/example.learning-patterns": "0.0.0-canary-20251217060433",
36
+ "@lssm/example.learning-journey-ambient-coach": "0.0.0-canary-20251217060433",
37
+ "@lssm/example.learning-journey-crm-onboarding": "0.0.0-canary-20251217060433",
38
+ "@lssm/example.learning-journey-duo-drills": "0.0.0-canary-20251217060433",
39
+ "@lssm/example.learning-journey-platform-tour": "0.0.0-canary-20251217060433",
40
+ "@lssm/example.learning-journey-quest-challenges": "0.0.0-canary-20251217060433",
41
+ "@lssm/example.learning-journey-registry": "0.0.0-canary-20251217060433",
42
+ "@lssm/example.learning-journey-studio-onboarding": "0.0.0-canary-20251217060433",
43
+ "@lssm/example.learning-journey-ui-coaching": "0.0.0-canary-20251217060433",
44
+ "@lssm/example.learning-journey-ui-gamified": "0.0.0-canary-20251217060433",
45
+ "@lssm/example.learning-journey-ui-onboarding": "0.0.0-canary-20251217060433",
46
+ "@lssm/example.learning-journey-ui-shared": "0.0.0-canary-20251217060433",
47
+ "@lssm/example.lifecycle-cli": "0.0.0-canary-20251217060433",
48
+ "@lssm/example.lifecycle-dashboard": "0.0.0-canary-20251217060433",
49
+ "@lssm/example.locale-jurisdiction-gate": "0.0.0-canary-20251217060433",
50
+ "@lssm/example.marketplace": "0.0.0-canary-20251217060433",
51
+ "@lssm/example.openbanking-powens": "0.0.0-canary-20251217060433",
52
+ "@lssm/example.personalization": "0.0.0-canary-20251217060433",
53
+ "@lssm/example.policy-safe-knowledge-assistant": "0.0.0-canary-20251217060433",
54
+ "@lssm/example.saas-boilerplate": "0.0.0-canary-20251217060433",
55
+ "@lssm/example.service-business-os": "0.0.0-canary-20251217060433",
56
+ "@lssm/example.versioned-knowledge-base": "0.0.0-canary-20251217060433",
57
+ "@lssm/example.team-hub": "0.0.0-canary-20251217060433",
58
+ "@lssm/example.wealth-snapshot": "0.0.0-canary-20251217060433",
59
+ "@lssm/example.workflow-system": "0.0.0-canary-20251217060433",
60
60
  "zod": "^4.1.13"
61
61
  },
62
62
  "devDependencies": {
63
- "@lssm/tool.tsdown": "0.0.0-canary-20251217054315",
64
- "@lssm/tool.typescript": "0.0.0-canary-20251217054315",
63
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217060433",
64
+ "@lssm/tool.typescript": "0.0.0-canary-20251217060433",
65
65
  "tsdown": "^0.17.4",
66
66
  "typescript": "^5.9.3"
67
67
  },
68
68
  "exports": {
69
- ".": "./src/index.ts",
69
+ ".": "./dist/index.js",
70
70
  "./*": "./*"
71
71
  },
72
72
  "publishConfig": {