@lssm/module.contractspec-examples 0.0.0-canary-20251217083314 → 1.41.1
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/dist/builtins.js +1 -75
- package/dist/index.js +1 -5
- package/dist/registry.js +1 -19
- package/dist/validate.js +1 -89
- package/package.json +38 -38
- package/dist/builtins.d.ts +0 -6
- package/dist/examples/agent-console/dist/example.js +0 -49
- package/dist/examples/ai-support-bot/dist/example.js +0 -37
- package/dist/examples/analytics-dashboard/dist/example.js +0 -49
- package/dist/examples/content-generation/dist/example.js +0 -37
- package/dist/examples/crm-pipeline/dist/example.js +0 -44
- package/dist/examples/integration-hub/dist/example.js +0 -49
- package/dist/examples/integration-stripe/dist/example.js +0 -38
- package/dist/examples/kb-update-pipeline/dist/example.js +0 -41
- package/dist/examples/knowledge-canon/dist/example.js +0 -38
- package/dist/examples/learning-journey-ambient-coach/dist/example.js +0 -33
- package/dist/examples/learning-journey-crm-onboarding/dist/example.js +0 -33
- package/dist/examples/learning-journey-duo-drills/dist/example.js +0 -34
- package/dist/examples/learning-journey-platform-tour/dist/example.js +0 -37
- package/dist/examples/learning-journey-quest-challenges/dist/example.js +0 -33
- package/dist/examples/learning-journey-registry/dist/example.js +0 -33
- package/dist/examples/learning-journey-studio-onboarding/dist/example.js +0 -33
- package/dist/examples/learning-journey-ui-coaching/dist/example.js +0 -33
- package/dist/examples/learning-journey-ui-gamified/dist/example.js +0 -33
- package/dist/examples/learning-journey-ui-onboarding/dist/example.js +0 -33
- package/dist/examples/learning-journey-ui-shared/dist/example.js +0 -33
- package/dist/examples/learning-patterns/dist/example.js +0 -33
- package/dist/examples/lifecycle-cli/dist/example.js +0 -36
- package/dist/examples/lifecycle-dashboard/dist/example.js +0 -34
- package/dist/examples/locale-jurisdiction-gate/dist/example.js +0 -38
- package/dist/examples/marketplace/dist/example.js +0 -49
- package/dist/examples/openbanking-powens/dist/example.js +0 -38
- package/dist/examples/personalization/dist/example.js +0 -37
- package/dist/examples/policy-safe-knowledge-assistant/dist/example.js +0 -45
- package/dist/examples/saas-boilerplate/dist/example.js +0 -44
- package/dist/examples/service-business-os/dist/example.js +0 -44
- package/dist/examples/team-hub/dist/example.js +0 -49
- package/dist/examples/versioned-knowledge-base/dist/example.js +0 -40
- package/dist/examples/wealth-snapshot/dist/example.js +0 -48
- package/dist/examples/workflow-system/dist/example.js +0 -49
- package/dist/index.d.ts +0 -5
- package/dist/registry.d.ts +0 -9
- package/dist/types.d.ts +0 -52
- package/dist/validate.d.ts +0 -18
|
@@ -1,45 +0,0 @@
|
|
|
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 };
|
|
@@ -1,44 +0,0 @@
|
|
|
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 };
|
|
@@ -1,44 +0,0 @@
|
|
|
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 };
|
|
@@ -1,49 +0,0 @@
|
|
|
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 };
|
|
@@ -1,40 +0,0 @@
|
|
|
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 };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
//#region ../../examples/wealth-snapshot/dist/example.js
|
|
2
|
-
var example_default = {
|
|
3
|
-
id: "wealth-snapshot",
|
|
4
|
-
title: "Wealth Snapshot",
|
|
5
|
-
summary: "Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.",
|
|
6
|
-
tags: [
|
|
7
|
-
"finance",
|
|
8
|
-
"net-worth",
|
|
9
|
-
"goals"
|
|
10
|
-
],
|
|
11
|
-
kind: "template",
|
|
12
|
-
visibility: "public",
|
|
13
|
-
docs: {
|
|
14
|
-
rootDocId: "docs.examples.wealth-snapshot",
|
|
15
|
-
goalDocId: "docs.examples.wealth-snapshot.goal",
|
|
16
|
-
usageDocId: "docs.examples.wealth-snapshot.usage",
|
|
17
|
-
constraintsDocId: "docs.examples.wealth-snapshot.constraints"
|
|
18
|
-
},
|
|
19
|
-
entrypoints: {
|
|
20
|
-
packageName: "@lssm/example.wealth-snapshot",
|
|
21
|
-
feature: "./feature",
|
|
22
|
-
contracts: "./contracts",
|
|
23
|
-
presentations: "./presentations",
|
|
24
|
-
handlers: "./handlers",
|
|
25
|
-
docs: "./docs"
|
|
26
|
-
},
|
|
27
|
-
surfaces: {
|
|
28
|
-
templates: true,
|
|
29
|
-
sandbox: {
|
|
30
|
-
enabled: true,
|
|
31
|
-
modes: [
|
|
32
|
-
"playground",
|
|
33
|
-
"specs",
|
|
34
|
-
"builder",
|
|
35
|
-
"markdown",
|
|
36
|
-
"evolution"
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
studio: {
|
|
40
|
-
enabled: true,
|
|
41
|
-
installable: true
|
|
42
|
-
},
|
|
43
|
-
mcp: { enabled: true }
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
export { example_default };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
//#region ../../examples/workflow-system/dist/example.js
|
|
2
|
-
var example_default = {
|
|
3
|
-
id: "workflow-system",
|
|
4
|
-
title: "Workflow / Approval System",
|
|
5
|
-
summary: "State-machine driven approvals with RBAC, audit trail, notifications, and jobs.",
|
|
6
|
-
tags: [
|
|
7
|
-
"workflow",
|
|
8
|
-
"approval",
|
|
9
|
-
"state-machine",
|
|
10
|
-
"rbac"
|
|
11
|
-
],
|
|
12
|
-
kind: "template",
|
|
13
|
-
visibility: "public",
|
|
14
|
-
docs: {
|
|
15
|
-
rootDocId: "docs.examples.workflow-system",
|
|
16
|
-
goalDocId: "docs.examples.workflow-system.goal",
|
|
17
|
-
usageDocId: "docs.examples.workflow-system.usage",
|
|
18
|
-
constraintsDocId: "docs.examples.workflow-system.constraints"
|
|
19
|
-
},
|
|
20
|
-
entrypoints: {
|
|
21
|
-
packageName: "@lssm/example.workflow-system",
|
|
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 };
|
package/dist/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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 };
|
package/dist/registry.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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 };
|
package/dist/types.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
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 };
|
package/dist/validate.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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 };
|