@lssm/example.lifecycle-dashboard 0.0.0-canary-20251217034842 → 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,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 2415ms
@@ -1,16 +1,23 @@
1
- $ bun build:bundle && bun build:types
2
- $ tsdown
3
- ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
- ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/lifecycle-dashboard/tsdown.config.js
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
- ℹ dist/snippets/page.js 1.52 kB │ gzip: 0.71 kB
10
- ℹ dist/docs/lifecycle-dashboard.docblock.js 0.79 kB │ gzip: 0.48 kB
11
- ℹ dist/example.js 0.55 kB │ gzip: 0.34 kB
12
- ℹ dist/index.js 0.18 kB │ gzip: 0.13 kB
13
- ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
14
- ℹ 5 files, total: 3.08 kB
15
- ✔ Build complete in 30ms
16
- $ tsc --noEmit
1
+
2
+ $ bun build:bundle && bun build:types
3
+ $ tsdown
4
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
5
+ ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/lifecycle-dashboard/tsdown.config.js (unrun)
6
+ ℹ entry: src/example.ts, src/index.ts, src/docs/index.ts, src/docs/lifecycle-dashboard.docblock.ts, src/snippets/page.ts
7
+ ℹ target: esnext
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
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
+ ℹ 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
23
+ $ tsc --noEmit
package/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # @lssm/example.lifecycle-dashboard
2
2
 
3
- ## 0.0.0-canary-20251217034842
3
+ ## 0.0.0-canary-20251217060433
4
+
5
+ ### Minor Changes
6
+
7
+ - 66a5dfd: initial release
4
8
 
5
9
  ### Patch Changes
6
10
 
7
- - Updated dependencies [3086383]
8
- - @lssm/lib.contracts@0.0.0-canary-20251217034842
11
+ - Updated dependencies [66a5dfd]
12
+ - @lssm/lib.contracts@0.0.0-canary-20251217060433
@@ -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,19 +1,21 @@
1
1
  {
2
2
  "name": "@lssm/example.lifecycle-dashboard",
3
- "version": "0.0.0-canary-20251217034842",
3
+ "version": "0.0.0-canary-20251217060433",
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": {
17
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
18
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
17
19
  "build": "bun build:bundle && bun build:types",
18
20
  "build:bundle": "tsdown",
19
21
  "build:types": "tsc --noEmit",
@@ -25,11 +27,11 @@
25
27
  "test": "bun test"
26
28
  },
27
29
  "dependencies": {
28
- "@lssm/lib.contracts": "workspace:*"
30
+ "@lssm/lib.contracts": "0.0.0-canary-20251217060433"
29
31
  },
30
32
  "devDependencies": {
31
- "@lssm/tool.tsdown": "workspace:*",
32
- "@lssm/tool.typescript": "workspace:*",
33
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217060433",
34
+ "@lssm/tool.typescript": "0.0.0-canary-20251217060433",
33
35
  "tsdown": "^0.17.4",
34
36
  "typescript": "^5.9.3"
35
37
  },