@lssm/example.lifecycle-dashboard 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060804

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,21 @@
1
+
2
+ $ tsdown
3
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
+ ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/lifecycle-dashboard/tsdown.config.js (unrun)
5
+ ℹ entry: src/example.ts, src/index.ts, src/docs/index.ts, src/docs/lifecycle-dashboard.docblock.ts, src/snippets/page.ts
6
+ ℹ target: esnext
7
+ ℹ tsconfig: tsconfig.json
8
+ ℹ Build start
9
+ ℹ Cleaning 12 files
10
+ ℹ dist/snippets/page.js 1.52 kB │ gzip: 0.71 kB
11
+ ℹ dist/docs/lifecycle-dashboard.docblock.js 0.79 kB │ gzip: 0.48 kB
12
+ ℹ dist/example.js 0.55 kB │ gzip: 0.34 kB
13
+ ℹ dist/index.js 0.18 kB │ gzip: 0.13 kB
14
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
15
+ ℹ dist/snippets/page.d.ts 1.85 kB │ gzip: 0.86 kB
16
+ ℹ dist/example.d.ts 0.99 kB │ gzip: 0.42 kB
17
+ ℹ dist/index.d.ts 0.16 kB │ gzip: 0.11 kB
18
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
19
+ ℹ dist/docs/lifecycle-dashboard.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
20
+ ℹ 10 files, total: 6.11 kB
21
+ ✔ Build complete in 5661ms
@@ -8,11 +8,16 @@
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
10
  ℹ Cleaning 7 files
11
- ℹ dist/snippets/page.js 1.52 kB │ gzip: 0.71 kB
12
- ℹ dist/docs/lifecycle-dashboard.docblock.js 0.79 kB │ gzip: 0.48 kB
13
- ℹ dist/example.js 0.55 kB │ gzip: 0.34 kB
14
- ℹ dist/index.js 0.18 kB │ gzip: 0.13 kB
15
- ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
16
- ℹ 5 files, total: 3.08 kB
17
- ✔ Build complete in 25ms
11
+ ℹ dist/snippets/page.js 1.52 kB │ gzip: 0.71 kB
12
+ ℹ dist/docs/lifecycle-dashboard.docblock.js 0.79 kB │ gzip: 0.48 kB
13
+ ℹ dist/example.js 0.55 kB │ gzip: 0.34 kB
14
+ ℹ dist/index.js 0.18 kB │ gzip: 0.13 kB
15
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
16
+ ℹ dist/snippets/page.d.ts 1.85 kB │ gzip: 0.86 kB
17
+ ℹ dist/example.d.ts 0.99 kB │ gzip: 0.42 kB
18
+ ℹ dist/index.d.ts 0.16 kB │ gzip: 0.11 kB
19
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
20
+ ℹ dist/docs/lifecycle-dashboard.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
21
+ ℹ 10 files, total: 6.11 kB
22
+ ✔ Build complete in 6406ms
18
23
  $ tsc --noEmit
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lssm/example.lifecycle-dashboard
2
2
 
3
- ## 0.0.0-canary-20251217054315
3
+ ## 0.0.0-canary-20251217060804
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,26 +9,4 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [66a5dfd]
12
- - @lssm/lib.contracts@0.0.0-canary-20251217054315
13
-
14
- ## 1.42.0
15
-
16
- ### Minor Changes
17
-
18
- - 66a5dfd: initial release
19
-
20
- ### Patch Changes
21
-
22
- - Updated dependencies [66a5dfd]
23
- - @lssm/lib.contracts@1.42.0
24
-
25
- ## 0.0.0-canary-20251217053014
26
-
27
- ### Minor Changes
28
-
29
- - 66a5dfd: initial release
30
-
31
- ### Patch Changes
32
-
33
- - Updated dependencies [66a5dfd]
34
- - @lssm/lib.contracts@0.0.0-canary-20251217053014
12
+ - @lssm/lib.contracts@0.0.0-canary-20251217060804
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,32 @@
1
+ //#region src/example.d.ts
2
+ declare const example: {
3
+ readonly id: "lifecycle-dashboard";
4
+ readonly title: "Lifecycle Dashboard (snippet)";
5
+ readonly summary: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.";
6
+ readonly tags: readonly ["lifecycle", "dashboard", "nextjs", "snippet"];
7
+ readonly kind: "blueprint";
8
+ readonly visibility: "public";
9
+ readonly docs: {
10
+ readonly rootDocId: "docs.examples.lifecycle-dashboard";
11
+ };
12
+ readonly entrypoints: {
13
+ readonly packageName: "@lssm/example.lifecycle-dashboard";
14
+ readonly docs: "./docs";
15
+ };
16
+ readonly surfaces: {
17
+ readonly templates: true;
18
+ readonly sandbox: {
19
+ readonly enabled: true;
20
+ readonly modes: readonly ["markdown", "specs"];
21
+ };
22
+ readonly studio: {
23
+ readonly enabled: true;
24
+ readonly installable: true;
25
+ };
26
+ readonly mcp: {
27
+ readonly enabled: true;
28
+ };
29
+ };
30
+ };
31
+ //#endregion
32
+ export { example as default };
@@ -0,0 +1,3 @@
1
+ import example from "./example.js";
2
+ import { lifecycleDashboardNextPageSnippet } from "./snippets/page.js";
3
+ export { example, lifecycleDashboardNextPageSnippet };
@@ -0,0 +1,10 @@
1
+ //#region src/snippets/page.d.ts
2
+ /**
3
+ * Deterministic snippet for a Next.js App Router page.
4
+ *
5
+ * We keep this as a string so `packages/examples/*` stays design-system-first and
6
+ * avoids raw HTML in runnable application code.
7
+ */
8
+ declare const lifecycleDashboardNextPageSnippet = "'use client';\n\nimport { useEffect, useState } from 'react';\n\ntype StageCard = {\n stage: number;\n name: string;\n confidence: number;\n recommendation?: {\n actions: { id: string; title: string; description: string }[];\n };\n libraries?: { id: string; description: string }[];\n};\n\nexport default function LifecycleDashboardPage() {\n const [card, setCard] = useState<StageCard | null>(null);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<string>();\n\n useEffect(() => {\n void runAssessment();\n }, []);\n\n async function runAssessment() {\n try {\n setLoading(true);\n setError(undefined);\n const response = await fetch('/api/lifecycle/assessments', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ tenantId: 'demo' }),\n });\n if (!response.ok) throw new Error('Failed assessment');\n const data = await response.json();\n setCard({\n stage: data.assessment.stage,\n name: data.assessment.stageName ?? `Stage ${data.assessment.stage}`,\n confidence: data.assessment.confidence,\n recommendation: data.recommendation,\n libraries: data.libraries,\n });\n } catch (err) {\n setError(err instanceof Error ? err.message : 'Unknown error');\n } finally {\n setLoading(false);\n }\n }\n\n // Render using your app's design system components in real code.\n return null;\n}\n";
9
+ //#endregion
10
+ export { lifecycleDashboardNextPageSnippet };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@lssm/example.lifecycle-dashboard",
3
- "version": "0.0.0-canary-20251217054315",
3
+ "version": "0.0.0-canary-20251217060804",
4
4
  "description": "Lifecycle dashboard example (snippet): how to call lifecycle-managed APIs and render a status card.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
9
- ".": "./src/index.ts",
10
- "./docs": "./src/docs/index.ts",
11
- "./docs/lifecycle-dashboard.docblock": "./src/docs/lifecycle-dashboard.docblock.ts",
12
- "./example": "./src/example.ts",
13
- "./snippets/page": "./src/snippets/page.ts",
9
+ ".": "./dist/index.js",
10
+ "./docs": "./dist/docs/index.js",
11
+ "./docs/lifecycle-dashboard.docblock": "./dist/docs/lifecycle-dashboard.docblock.js",
12
+ "./example": "./dist/example.js",
13
+ "./snippets/page": "./dist/snippets/page.js",
14
14
  "./*": "./*"
15
15
  },
16
16
  "scripts": {
@@ -27,11 +27,11 @@
27
27
  "test": "bun test"
28
28
  },
29
29
  "dependencies": {
30
- "@lssm/lib.contracts": "0.0.0-canary-20251217054315"
30
+ "@lssm/lib.contracts": "0.0.0-canary-20251217060804"
31
31
  },
32
32
  "devDependencies": {
33
- "@lssm/tool.tsdown": "0.0.0-canary-20251217054315",
34
- "@lssm/tool.typescript": "0.0.0-canary-20251217054315",
33
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217060804",
34
+ "@lssm/tool.typescript": "0.0.0-canary-20251217060804",
35
35
  "tsdown": "^0.17.4",
36
36
  "typescript": "^5.9.3"
37
37
  },