@lssm/module.contractspec-examples 0.0.0-canary-20251217060834 → 0.0.0-canary-20251217073102

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.
Files changed (39) hide show
  1. package/dist/builtins.js +75 -1
  2. package/dist/examples/agent-console/dist/example.js +49 -0
  3. package/dist/examples/ai-support-bot/dist/example.js +37 -0
  4. package/dist/examples/analytics-dashboard/dist/example.js +49 -0
  5. package/dist/examples/content-generation/dist/example.js +37 -0
  6. package/dist/examples/crm-pipeline/dist/example.js +44 -0
  7. package/dist/examples/integration-hub/dist/example.js +49 -0
  8. package/dist/examples/integration-stripe/dist/example.js +38 -0
  9. package/dist/examples/kb-update-pipeline/dist/example.js +41 -0
  10. package/dist/examples/knowledge-canon/dist/example.js +38 -0
  11. package/dist/examples/learning-journey-ambient-coach/src/example.js +34 -0
  12. package/dist/examples/learning-journey-crm-onboarding/dist/example.js +33 -0
  13. package/dist/examples/learning-journey-duo-drills/src/example.js +35 -0
  14. package/dist/examples/learning-journey-platform-tour/dist/example.js +37 -0
  15. package/dist/examples/learning-journey-quest-challenges/src/example.js +34 -0
  16. package/dist/examples/learning-journey-registry/dist/example.js +33 -0
  17. package/dist/examples/learning-journey-studio-onboarding/dist/example.js +33 -0
  18. package/dist/examples/learning-journey-ui-coaching/src/example.js +34 -0
  19. package/dist/examples/learning-journey-ui-gamified/src/example.js +34 -0
  20. package/dist/examples/learning-journey-ui-onboarding/src/example.js +34 -0
  21. package/dist/examples/learning-journey-ui-shared/src/example.js +34 -0
  22. package/dist/examples/learning-patterns/dist/example.js +33 -0
  23. package/dist/examples/lifecycle-cli/dist/example.js +36 -0
  24. package/dist/examples/lifecycle-dashboard/dist/example.js +34 -0
  25. package/dist/examples/locale-jurisdiction-gate/dist/example.js +38 -0
  26. package/dist/examples/marketplace/dist/example.js +49 -0
  27. package/dist/examples/openbanking-powens/dist/example.js +38 -0
  28. package/dist/examples/personalization/dist/example.js +37 -0
  29. package/dist/examples/policy-safe-knowledge-assistant/dist/example.js +45 -0
  30. package/dist/examples/saas-boilerplate/dist/example.js +44 -0
  31. package/dist/examples/service-business-os/dist/example.js +44 -0
  32. package/dist/examples/team-hub/dist/example.js +49 -0
  33. package/dist/examples/versioned-knowledge-base/dist/example.js +40 -0
  34. package/dist/examples/wealth-snapshot/dist/example.js +48 -0
  35. package/dist/examples/workflow-system/dist/example.js +49 -0
  36. package/dist/index.js +5 -1
  37. package/dist/registry.js +19 -1
  38. package/dist/validate.js +89 -1
  39. package/package.json +37 -37
@@ -0,0 +1,33 @@
1
+ //#region ../../examples/learning-journey-studio-onboarding/dist/example.js
2
+ var example_default = {
3
+ id: "learning-journey-studio-onboarding",
4
+ title: "Learning Journey — Studio Getting Started",
5
+ summary: "Onboarding track guiding a new Studio user through template spawn, spec edit, regeneration, playground, and evolution.",
6
+ tags: [
7
+ "learning",
8
+ "onboarding",
9
+ "studio"
10
+ ],
11
+ kind: "template",
12
+ visibility: "public",
13
+ docs: { rootDocId: "docs.learning-journey.studio-onboarding" },
14
+ entrypoints: {
15
+ packageName: "@lssm/example.learning-journey-studio-onboarding",
16
+ docs: "./docs"
17
+ },
18
+ surfaces: {
19
+ templates: true,
20
+ sandbox: {
21
+ enabled: true,
22
+ modes: ["playground", "markdown"]
23
+ },
24
+ studio: {
25
+ enabled: true,
26
+ installable: true
27
+ },
28
+ mcp: { enabled: true }
29
+ }
30
+ };
31
+
32
+ //#endregion
33
+ export { example_default };
@@ -0,0 +1,34 @@
1
+ //#region ../../examples/learning-journey-ui-coaching/src/example.ts
2
+ const example = {
3
+ id: "learning-journey-ui-coaching",
4
+ title: "Learning Journey UI — Coaching",
5
+ summary: "UI mini-app for coaching patterns: tips, engagement meter, progress.",
6
+ tags: [
7
+ "learning",
8
+ "ui",
9
+ "coaching"
10
+ ],
11
+ kind: "ui",
12
+ visibility: "public",
13
+ docs: { rootDocId: "docs.examples.learning-journey-ui-coaching" },
14
+ entrypoints: {
15
+ packageName: "@lssm/example.learning-journey-ui-coaching",
16
+ docs: "./docs"
17
+ },
18
+ surfaces: {
19
+ templates: true,
20
+ sandbox: {
21
+ enabled: true,
22
+ modes: ["playground", "markdown"]
23
+ },
24
+ studio: {
25
+ enabled: true,
26
+ installable: true
27
+ },
28
+ mcp: { enabled: true }
29
+ }
30
+ };
31
+ var example_default = example;
32
+
33
+ //#endregion
34
+ export { example_default as default };
@@ -0,0 +1,34 @@
1
+ //#region ../../examples/learning-journey-ui-gamified/src/example.ts
2
+ const example = {
3
+ id: "learning-journey-ui-gamified",
4
+ title: "Learning Journey UI — Gamified",
5
+ summary: "UI mini-app for gamified learning: flashcards, mastery ring, calendar.",
6
+ tags: [
7
+ "learning",
8
+ "ui",
9
+ "gamified"
10
+ ],
11
+ kind: "ui",
12
+ visibility: "public",
13
+ docs: { rootDocId: "docs.examples.learning-journey-ui-gamified" },
14
+ entrypoints: {
15
+ packageName: "@lssm/example.learning-journey-ui-gamified",
16
+ docs: "./docs"
17
+ },
18
+ surfaces: {
19
+ templates: true,
20
+ sandbox: {
21
+ enabled: true,
22
+ modes: ["playground", "markdown"]
23
+ },
24
+ studio: {
25
+ enabled: true,
26
+ installable: true
27
+ },
28
+ mcp: { enabled: true }
29
+ }
30
+ };
31
+ var example_default = example;
32
+
33
+ //#endregion
34
+ export { example_default as default };
@@ -0,0 +1,34 @@
1
+ //#region ../../examples/learning-journey-ui-onboarding/src/example.ts
2
+ const example = {
3
+ id: "learning-journey-ui-onboarding",
4
+ title: "Learning Journey UI — Onboarding",
5
+ summary: "UI mini-app for onboarding patterns: checklists, code snippets, journey map.",
6
+ tags: [
7
+ "learning",
8
+ "ui",
9
+ "onboarding"
10
+ ],
11
+ kind: "ui",
12
+ visibility: "public",
13
+ docs: { rootDocId: "docs.examples.learning-journey-ui-onboarding" },
14
+ entrypoints: {
15
+ packageName: "@lssm/example.learning-journey-ui-onboarding",
16
+ docs: "./docs"
17
+ },
18
+ surfaces: {
19
+ templates: true,
20
+ sandbox: {
21
+ enabled: true,
22
+ modes: ["playground", "markdown"]
23
+ },
24
+ studio: {
25
+ enabled: true,
26
+ installable: true
27
+ },
28
+ mcp: { enabled: true }
29
+ }
30
+ };
31
+ var example_default = example;
32
+
33
+ //#endregion
34
+ export { example_default as default };
@@ -0,0 +1,34 @@
1
+ //#region ../../examples/learning-journey-ui-shared/src/example.ts
2
+ const example = {
3
+ id: "learning-journey-ui-shared",
4
+ title: "Learning Journey UI — Shared",
5
+ summary: "Shared UI components and hooks for learning journey mini-apps.",
6
+ tags: [
7
+ "learning",
8
+ "ui",
9
+ "shared"
10
+ ],
11
+ kind: "ui",
12
+ visibility: "public",
13
+ docs: { rootDocId: "docs.examples.learning-journey-ui-shared" },
14
+ entrypoints: {
15
+ packageName: "@lssm/example.learning-journey-ui-shared",
16
+ docs: "./docs"
17
+ },
18
+ surfaces: {
19
+ templates: true,
20
+ sandbox: {
21
+ enabled: true,
22
+ modes: ["playground", "markdown"]
23
+ },
24
+ studio: {
25
+ enabled: true,
26
+ installable: true
27
+ },
28
+ mcp: { enabled: true }
29
+ }
30
+ };
31
+ var example_default = example;
32
+
33
+ //#endregion
34
+ export { example_default as default };
@@ -0,0 +1,33 @@
1
+ //#region ../../examples/learning-patterns/dist/example.js
2
+ var example_default = {
3
+ id: "learning-patterns",
4
+ title: "Learning Patterns",
5
+ summary: "Domain-agnostic learning archetypes implemented as Learning Journey tracks.",
6
+ tags: [
7
+ "learning",
8
+ "journey",
9
+ "patterns"
10
+ ],
11
+ kind: "library",
12
+ visibility: "public",
13
+ docs: { rootDocId: "docs.examples.learning-patterns" },
14
+ entrypoints: {
15
+ packageName: "@lssm/example.learning-patterns",
16
+ docs: "./docs"
17
+ },
18
+ surfaces: {
19
+ templates: true,
20
+ sandbox: {
21
+ enabled: true,
22
+ modes: ["markdown", "specs"]
23
+ },
24
+ studio: {
25
+ enabled: true,
26
+ installable: true
27
+ },
28
+ mcp: { enabled: true }
29
+ }
30
+ };
31
+
32
+ //#endregion
33
+ export { example_default };
@@ -0,0 +1,36 @@
1
+ //#region ../../examples/lifecycle-cli/dist/example.js
2
+ var example_default = {
3
+ id: "lifecycle-cli",
4
+ title: "Lifecycle CLI",
5
+ summary: "Tiny script showing how to run the lifecycle managed service from a CLI (no HTTP server required).",
6
+ tags: [
7
+ "lifecycle",
8
+ "cli",
9
+ "demo"
10
+ ],
11
+ kind: "script",
12
+ visibility: "public",
13
+ docs: {
14
+ rootDocId: "docs.examples.lifecycle-cli",
15
+ usageDocId: "docs.examples.lifecycle-cli.usage"
16
+ },
17
+ entrypoints: {
18
+ packageName: "@lssm/example.lifecycle-cli",
19
+ docs: "./docs"
20
+ },
21
+ surfaces: {
22
+ templates: true,
23
+ sandbox: {
24
+ enabled: true,
25
+ modes: ["markdown"]
26
+ },
27
+ studio: {
28
+ enabled: true,
29
+ installable: true
30
+ },
31
+ mcp: { enabled: true }
32
+ }
33
+ };
34
+
35
+ //#endregion
36
+ export { example_default };
@@ -0,0 +1,34 @@
1
+ //#region ../../examples/lifecycle-dashboard/dist/example.js
2
+ var example_default = {
3
+ id: "lifecycle-dashboard",
4
+ title: "Lifecycle Dashboard (snippet)",
5
+ summary: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",
6
+ tags: [
7
+ "lifecycle",
8
+ "dashboard",
9
+ "nextjs",
10
+ "snippet"
11
+ ],
12
+ kind: "blueprint",
13
+ visibility: "public",
14
+ docs: { rootDocId: "docs.examples.lifecycle-dashboard" },
15
+ entrypoints: {
16
+ packageName: "@lssm/example.lifecycle-dashboard",
17
+ docs: "./docs"
18
+ },
19
+ surfaces: {
20
+ templates: true,
21
+ sandbox: {
22
+ enabled: true,
23
+ modes: ["markdown", "specs"]
24
+ },
25
+ studio: {
26
+ enabled: true,
27
+ installable: true
28
+ },
29
+ mcp: { enabled: true }
30
+ }
31
+ };
32
+
33
+ //#endregion
34
+ export { example_default };
@@ -0,0 +1,38 @@
1
+ //#region ../../examples/locale-jurisdiction-gate/dist/example.js
2
+ var example_default = {
3
+ id: "locale-jurisdiction-gate",
4
+ title: "Locale / Jurisdiction Gate",
5
+ summary: "Fail-closed gating for assistant calls: locale + jurisdiction + kbSnapshotId + allowedScope must be explicit, answers must cite a snapshot.",
6
+ tags: [
7
+ "policy",
8
+ "locale",
9
+ "jurisdiction",
10
+ "assistant",
11
+ "gating"
12
+ ],
13
+ kind: "knowledge",
14
+ visibility: "public",
15
+ docs: { rootDocId: "docs.examples.locale-jurisdiction-gate" },
16
+ entrypoints: {
17
+ packageName: "@lssm/example.locale-jurisdiction-gate",
18
+ feature: "./feature",
19
+ contracts: "./contracts",
20
+ handlers: "./handlers",
21
+ docs: "./docs"
22
+ },
23
+ surfaces: {
24
+ templates: true,
25
+ sandbox: {
26
+ enabled: true,
27
+ modes: ["markdown", "specs"]
28
+ },
29
+ studio: {
30
+ enabled: true,
31
+ installable: true
32
+ },
33
+ mcp: { enabled: true }
34
+ }
35
+ };
36
+
37
+ //#endregion
38
+ export { example_default };
@@ -0,0 +1,49 @@
1
+ //#region ../../examples/marketplace/dist/example.js
2
+ var example_default = {
3
+ id: "marketplace",
4
+ title: "Marketplace (2-sided)",
5
+ summary: "Two-sided marketplace with stores, products, orders, payouts, and reviews (multi-actor flows).",
6
+ tags: [
7
+ "marketplace",
8
+ "orders",
9
+ "payouts",
10
+ "reviews"
11
+ ],
12
+ kind: "template",
13
+ visibility: "public",
14
+ docs: {
15
+ rootDocId: "docs.examples.marketplace",
16
+ goalDocId: "docs.examples.marketplace.goal",
17
+ usageDocId: "docs.examples.marketplace.usage",
18
+ constraintsDocId: "docs.examples.marketplace.constraints"
19
+ },
20
+ entrypoints: {
21
+ packageName: "@lssm/example.marketplace",
22
+ feature: "./feature",
23
+ contracts: "./contracts",
24
+ presentations: "./presentations",
25
+ handlers: "./handlers",
26
+ docs: "./docs"
27
+ },
28
+ surfaces: {
29
+ templates: true,
30
+ sandbox: {
31
+ enabled: true,
32
+ modes: [
33
+ "playground",
34
+ "specs",
35
+ "builder",
36
+ "markdown",
37
+ "evolution"
38
+ ]
39
+ },
40
+ studio: {
41
+ enabled: true,
42
+ installable: true
43
+ },
44
+ mcp: { enabled: true }
45
+ }
46
+ };
47
+
48
+ //#endregion
49
+ export { example_default };
@@ -0,0 +1,38 @@
1
+ //#region ../../examples/openbanking-powens/dist/example.js
2
+ var example_default = {
3
+ id: "openbanking-powens",
4
+ title: "Open Banking — Powens",
5
+ summary: "OAuth callback + webhook handler patterns for Powens open banking integration (provider + workflow orchestration).",
6
+ tags: [
7
+ "openbanking",
8
+ "powens",
9
+ "oauth",
10
+ "webhooks",
11
+ "integrations"
12
+ ],
13
+ kind: "integration",
14
+ visibility: "public",
15
+ docs: {
16
+ rootDocId: "docs.examples.openbanking-powens",
17
+ usageDocId: "docs.examples.openbanking-powens.usage"
18
+ },
19
+ entrypoints: {
20
+ packageName: "@lssm/example.openbanking-powens",
21
+ docs: "./docs"
22
+ },
23
+ surfaces: {
24
+ templates: true,
25
+ sandbox: {
26
+ enabled: true,
27
+ modes: ["markdown", "specs"]
28
+ },
29
+ studio: {
30
+ enabled: true,
31
+ installable: true
32
+ },
33
+ mcp: { enabled: true }
34
+ }
35
+ };
36
+
37
+ //#endregion
38
+ export { example_default };
@@ -0,0 +1,37 @@
1
+ //#region ../../examples/personalization/dist/example.js
2
+ var example_default = {
3
+ id: "personalization",
4
+ title: "Personalization Patterns",
5
+ summary: "Small examples for behavior tracking, overlay-based UI customization, and tenant workflow extension.",
6
+ tags: [
7
+ "personalization",
8
+ "overlays",
9
+ "behavior",
10
+ "workflows"
11
+ ],
12
+ kind: "library",
13
+ visibility: "public",
14
+ docs: {
15
+ rootDocId: "docs.examples.personalization",
16
+ usageDocId: "docs.examples.personalization.usage"
17
+ },
18
+ entrypoints: {
19
+ packageName: "@lssm/example.personalization",
20
+ docs: "./docs"
21
+ },
22
+ surfaces: {
23
+ templates: true,
24
+ sandbox: {
25
+ enabled: true,
26
+ modes: ["markdown", "specs"]
27
+ },
28
+ studio: {
29
+ enabled: true,
30
+ installable: true
31
+ },
32
+ mcp: { enabled: true }
33
+ }
34
+ };
35
+
36
+ //#endregion
37
+ export { example_default };
@@ -0,0 +1,45 @@
1
+ //#region ../../examples/policy-safe-knowledge-assistant/dist/example.js
2
+ var example_default = {
3
+ id: "policy-safe-knowledge-assistant",
4
+ title: "Policy-safe Knowledge Assistant",
5
+ summary: "All-in-one template: locale/jurisdiction gating + versioned KB snapshots + HITL update pipeline + learning hub.",
6
+ tags: [
7
+ "assistant",
8
+ "knowledge",
9
+ "policy",
10
+ "hitl",
11
+ "learning"
12
+ ],
13
+ kind: "template",
14
+ visibility: "public",
15
+ docs: {
16
+ goalDocId: "docs.examples.policy-safe-knowledge-assistant.goal",
17
+ usageDocId: "docs.examples.policy-safe-knowledge-assistant.usage"
18
+ },
19
+ entrypoints: {
20
+ packageName: "@lssm/example.policy-safe-knowledge-assistant",
21
+ feature: "./feature",
22
+ docs: "./docs"
23
+ },
24
+ surfaces: {
25
+ templates: true,
26
+ sandbox: {
27
+ enabled: true,
28
+ modes: [
29
+ "playground",
30
+ "specs",
31
+ "builder",
32
+ "markdown",
33
+ "evolution"
34
+ ]
35
+ },
36
+ studio: {
37
+ enabled: true,
38
+ installable: true
39
+ },
40
+ mcp: { enabled: true }
41
+ }
42
+ };
43
+
44
+ //#endregion
45
+ export { example_default };
@@ -0,0 +1,44 @@
1
+ //#region ../../examples/saas-boilerplate/dist/example.js
2
+ var example_default = {
3
+ id: "saas-boilerplate",
4
+ title: "SaaS Boilerplate",
5
+ summary: "Multi-tenant SaaS foundation with orgs, projects, settings, billing usage, and RBAC.",
6
+ tags: [
7
+ "saas",
8
+ "multi-tenant",
9
+ "billing",
10
+ "rbac"
11
+ ],
12
+ kind: "template",
13
+ visibility: "public",
14
+ docs: { rootDocId: "docs.examples.saas-boilerplate" },
15
+ entrypoints: {
16
+ packageName: "@lssm/example.saas-boilerplate",
17
+ feature: "./feature",
18
+ contracts: "./contracts",
19
+ presentations: "./presentations",
20
+ handlers: "./handlers",
21
+ docs: "./docs"
22
+ },
23
+ surfaces: {
24
+ templates: true,
25
+ sandbox: {
26
+ enabled: true,
27
+ modes: [
28
+ "playground",
29
+ "specs",
30
+ "builder",
31
+ "markdown",
32
+ "evolution"
33
+ ]
34
+ },
35
+ studio: {
36
+ enabled: true,
37
+ installable: true
38
+ },
39
+ mcp: { enabled: true }
40
+ }
41
+ };
42
+
43
+ //#endregion
44
+ export { example_default };
@@ -0,0 +1,44 @@
1
+ //#region ../../examples/service-business-os/dist/example.js
2
+ var example_default = {
3
+ id: "service-business-os",
4
+ title: "Service Business OS",
5
+ summary: "Service business operating system: jobs, clients, scheduling, invoicing, and ops dashboards.",
6
+ tags: [
7
+ "service-business",
8
+ "jobs",
9
+ "scheduling",
10
+ "invoicing"
11
+ ],
12
+ kind: "template",
13
+ visibility: "public",
14
+ docs: { rootDocId: "docs.examples.service-business-os" },
15
+ entrypoints: {
16
+ packageName: "@lssm/example.service-business-os",
17
+ feature: "./feature",
18
+ contracts: "./contracts",
19
+ presentations: "./presentations",
20
+ handlers: "./handlers",
21
+ docs: "./docs"
22
+ },
23
+ surfaces: {
24
+ templates: true,
25
+ sandbox: {
26
+ enabled: true,
27
+ modes: [
28
+ "playground",
29
+ "specs",
30
+ "builder",
31
+ "markdown",
32
+ "evolution"
33
+ ]
34
+ },
35
+ studio: {
36
+ enabled: true,
37
+ installable: true
38
+ },
39
+ mcp: { enabled: true }
40
+ }
41
+ };
42
+
43
+ //#endregion
44
+ export { example_default };
@@ -0,0 +1,49 @@
1
+ //#region ../../examples/team-hub/dist/example.js
2
+ var example_default = {
3
+ id: "team-hub",
4
+ title: "Team Hub",
5
+ summary: "Internal collaboration hub with spaces, tasks, rituals, and announcements.",
6
+ tags: [
7
+ "tasks",
8
+ "rituals",
9
+ "announcements",
10
+ "collaboration"
11
+ ],
12
+ kind: "template",
13
+ visibility: "public",
14
+ docs: {
15
+ rootDocId: "docs.examples.team-hub",
16
+ goalDocId: "docs.examples.team-hub.goal",
17
+ usageDocId: "docs.examples.team-hub.usage",
18
+ constraintsDocId: "docs.examples.team-hub.constraints"
19
+ },
20
+ entrypoints: {
21
+ packageName: "@lssm/example.team-hub",
22
+ feature: "./feature",
23
+ contracts: "./contracts",
24
+ presentations: "./presentations",
25
+ handlers: "./handlers",
26
+ docs: "./docs"
27
+ },
28
+ surfaces: {
29
+ templates: true,
30
+ sandbox: {
31
+ enabled: true,
32
+ modes: [
33
+ "playground",
34
+ "specs",
35
+ "builder",
36
+ "markdown",
37
+ "evolution"
38
+ ]
39
+ },
40
+ studio: {
41
+ enabled: true,
42
+ installable: true
43
+ },
44
+ mcp: { enabled: true }
45
+ }
46
+ };
47
+
48
+ //#endregion
49
+ export { example_default };
@@ -0,0 +1,40 @@
1
+ //#region ../../examples/versioned-knowledge-base/dist/example.js
2
+ var example_default = {
3
+ id: "versioned-knowledge-base",
4
+ title: "Versioned Knowledge Base",
5
+ summary: "Curated KB with immutable sources, reviewable rule versions, and published snapshots.",
6
+ tags: [
7
+ "knowledge",
8
+ "versioning",
9
+ "snapshots"
10
+ ],
11
+ kind: "knowledge",
12
+ visibility: "public",
13
+ docs: { rootDocId: "docs.examples.versioned-knowledge-base" },
14
+ entrypoints: {
15
+ packageName: "@lssm/example.versioned-knowledge-base",
16
+ feature: "./feature",
17
+ contracts: "./contracts",
18
+ handlers: "./handlers",
19
+ docs: "./docs"
20
+ },
21
+ surfaces: {
22
+ templates: true,
23
+ sandbox: {
24
+ enabled: true,
25
+ modes: [
26
+ "markdown",
27
+ "specs",
28
+ "builder"
29
+ ]
30
+ },
31
+ studio: {
32
+ enabled: true,
33
+ installable: true
34
+ },
35
+ mcp: { enabled: true }
36
+ }
37
+ };
38
+
39
+ //#endregion
40
+ export { example_default };