@contractspec/example.lifecycle-dashboard 3.7.17 → 3.7.18

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.
@@ -2,33 +2,33 @@ $ contractspec-bun-build prebuild
2
2
  $ bun run build:bundle && bun run build:types
3
3
  $ contractspec-bun-build transpile
4
4
  [contractspec-bun-build] transpile target=bun root=src entries=6 noBundle=false
5
- Bundled 6 modules in 25ms
5
+ Bundled 6 modules in 46ms
6
6
 
7
- docs/index.js 0.95 KB (entry point)
8
- ./index.js 4.0 KB (entry point)
9
- docs/lifecycle-dashboard.docblock.js 0.95 KB (entry point)
10
- ./example.js 0.96 KB (entry point)
11
- ./lifecycle-dashboard.feature.js 0.58 KB (entry point)
12
- snippets/page.js 1.58 KB (entry point)
7
+ docs/index.js 0.82 KB (entry point)
8
+ ./index.js 3.46 KB (entry point)
9
+ docs/lifecycle-dashboard.docblock.js 0.82 KB (entry point)
10
+ ./example.js 0.72 KB (entry point)
11
+ ./lifecycle-dashboard.feature.js 441 bytes (entry point)
12
+ snippets/page.js 1.53 KB (entry point)
13
13
 
14
14
  [contractspec-bun-build] transpile target=node root=src entries=6 noBundle=false
15
- Bundled 6 modules in 22ms
15
+ Bundled 6 modules in 26ms
16
16
 
17
- docs/index.js 0.94 KB (entry point)
18
- ./index.js 4.0 KB (entry point)
19
- docs/lifecycle-dashboard.docblock.js 0.94 KB (entry point)
20
- ./example.js 0.95 KB (entry point)
21
- ./lifecycle-dashboard.feature.js 0.57 KB (entry point)
22
- snippets/page.js 1.58 KB (entry point)
17
+ docs/index.js 0.81 KB (entry point)
18
+ ./index.js 3.46 KB (entry point)
19
+ docs/lifecycle-dashboard.docblock.js 0.81 KB (entry point)
20
+ ./example.js 0.71 KB (entry point)
21
+ ./lifecycle-dashboard.feature.js 433 bytes (entry point)
22
+ snippets/page.js 1.52 KB (entry point)
23
23
 
24
24
  [contractspec-bun-build] transpile target=browser root=src entries=6 noBundle=false
25
- Bundled 6 modules in 24ms
25
+ Bundled 6 modules in 31ms
26
26
 
27
- docs/index.js 0.94 KB (entry point)
28
- ./index.js 4.0 KB (entry point)
29
- docs/lifecycle-dashboard.docblock.js 0.94 KB (entry point)
30
- ./example.js 0.95 KB (entry point)
31
- ./lifecycle-dashboard.feature.js 0.57 KB (entry point)
32
- snippets/page.js 1.58 KB (entry point)
27
+ docs/index.js 0.81 KB (entry point)
28
+ ./index.js 3.46 KB (entry point)
29
+ docs/lifecycle-dashboard.docblock.js 0.81 KB (entry point)
30
+ ./example.js 0.71 KB (entry point)
31
+ ./lifecycle-dashboard.feature.js 433 bytes (entry point)
32
+ snippets/page.js 1.52 KB (entry point)
33
33
 
34
34
  $ contractspec-bun-build types
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @contractspec/example.lifecycle-dashboard
2
2
 
3
+ ## 3.7.18
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: auto-bump internal dependents
8
+ - Updated dependencies because of Introduce the Builder v3 control plane as a governed authoring layer over external execution providers.
9
+ - Updated dependencies because of Implement ContractSpec Connect as a first-class spec, runtime, and CLI workflow.
10
+ - @contractspec/lib.contracts-spec@5.2.0
11
+
3
12
  ## 3.7.17
4
13
 
5
14
  ### Patch Changes
@@ -1,22 +1,8 @@
1
- // src/docs/lifecycle-dashboard.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
- var blocks = [
4
- {
5
- id: "docs.examples.lifecycle-dashboard",
6
- title: "Lifecycle Dashboard (example snippet)",
7
- summary: "Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/examples/lifecycle-dashboard",
11
- tags: ["lifecycle", "dashboard", "example"],
12
- body: `## What this example shows
1
+ import{registerDocBlocks as m}from"@contractspec/lib.contracts-spec/docs";var f=[{id:"docs.examples.lifecycle-dashboard",title:"Lifecycle Dashboard (example snippet)",summary:"Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",kind:"reference",visibility:"public",route:"/docs/examples/lifecycle-dashboard",tags:["lifecycle","dashboard","example"],body:`## What this example shows
13
2
  - A simple client-driven fetch to \`POST /api/lifecycle/assessments\`.
14
3
  - A card-shaped UI pattern for stage + confidence + recommendations.
15
4
 
16
5
  ## Notes
17
6
  - Keep your app design-system-first (no raw HTML in application code).
18
7
  - Add explicit loading/error/empty states with accessible messaging.
19
- - Implement API routes in your app as thin adapters over lifecycle-managed services.`
20
- }
21
- ];
22
- registerDocBlocks(blocks);
8
+ - Implement API routes in your app as thin adapters over lifecycle-managed services.`}];m(f);
@@ -1,22 +1,8 @@
1
- // src/docs/lifecycle-dashboard.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
- var blocks = [
4
- {
5
- id: "docs.examples.lifecycle-dashboard",
6
- title: "Lifecycle Dashboard (example snippet)",
7
- summary: "Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/examples/lifecycle-dashboard",
11
- tags: ["lifecycle", "dashboard", "example"],
12
- body: `## What this example shows
1
+ import{registerDocBlocks as f}from"@contractspec/lib.contracts-spec/docs";var h=[{id:"docs.examples.lifecycle-dashboard",title:"Lifecycle Dashboard (example snippet)",summary:"Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",kind:"reference",visibility:"public",route:"/docs/examples/lifecycle-dashboard",tags:["lifecycle","dashboard","example"],body:`## What this example shows
13
2
  - A simple client-driven fetch to \`POST /api/lifecycle/assessments\`.
14
3
  - A card-shaped UI pattern for stage + confidence + recommendations.
15
4
 
16
5
  ## Notes
17
6
  - Keep your app design-system-first (no raw HTML in application code).
18
7
  - Add explicit loading/error/empty states with accessible messaging.
19
- - Implement API routes in your app as thin adapters over lifecycle-managed services.`
20
- }
21
- ];
22
- registerDocBlocks(blocks);
8
+ - Implement API routes in your app as thin adapters over lifecycle-managed services.`}];f(h);
@@ -1,32 +1 @@
1
- // src/example.ts
2
- import { defineExample } from "@contractspec/lib.contracts-spec";
3
- var example = defineExample({
4
- meta: {
5
- key: "lifecycle-dashboard",
6
- version: "1.0.0",
7
- title: "Lifecycle Dashboard (snippet)",
8
- description: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",
9
- kind: "blueprint",
10
- visibility: "public",
11
- stability: "experimental",
12
- owners: ["@platform.core"],
13
- tags: ["lifecycle", "dashboard", "nextjs", "snippet"]
14
- },
15
- docs: {
16
- rootDocId: "docs.examples.lifecycle-dashboard"
17
- },
18
- entrypoints: {
19
- packageName: "@contractspec/example.lifecycle-dashboard",
20
- docs: "./docs"
21
- },
22
- surfaces: {
23
- templates: true,
24
- sandbox: { enabled: true, modes: ["markdown", "specs"] },
25
- studio: { enabled: true, installable: true },
26
- mcp: { enabled: true }
27
- }
28
- });
29
- var example_default = example;
30
- export {
31
- example_default as default
32
- };
1
+ import{defineExample as g}from"@contractspec/lib.contracts-spec";var h=g({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard (snippet)",description:"A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",kind:"blueprint",visibility:"public",stability:"experimental",owners:["@platform.core"],tags:["lifecycle","dashboard","nextjs","snippet"]},docs:{rootDocId:"docs.examples.lifecycle-dashboard"},entrypoints:{packageName:"@contractspec/example.lifecycle-dashboard",docs:"./docs"},surfaces:{templates:!0,sandbox:{enabled:!0,modes:["markdown","specs"]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}}),q=h;export{q as default};
@@ -1,73 +1,11 @@
1
- // src/docs/lifecycle-dashboard.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
- var blocks = [
4
- {
5
- id: "docs.examples.lifecycle-dashboard",
6
- title: "Lifecycle Dashboard (example snippet)",
7
- summary: "Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/examples/lifecycle-dashboard",
11
- tags: ["lifecycle", "dashboard", "example"],
12
- body: `## What this example shows
1
+ import{registerDocBlocks as e}from"@contractspec/lib.contracts-spec/docs";var s=[{id:"docs.examples.lifecycle-dashboard",title:"Lifecycle Dashboard (example snippet)",summary:"Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",kind:"reference",visibility:"public",route:"/docs/examples/lifecycle-dashboard",tags:["lifecycle","dashboard","example"],body:`## What this example shows
13
2
  - A simple client-driven fetch to \`POST /api/lifecycle/assessments\`.
14
3
  - A card-shaped UI pattern for stage + confidence + recommendations.
15
4
 
16
5
  ## Notes
17
6
  - Keep your app design-system-first (no raw HTML in application code).
18
7
  - Add explicit loading/error/empty states with accessible messaging.
19
- - Implement API routes in your app as thin adapters over lifecycle-managed services.`
20
- }
21
- ];
22
- registerDocBlocks(blocks);
23
- // src/example.ts
24
- import { defineExample } from "@contractspec/lib.contracts-spec";
25
- var example = defineExample({
26
- meta: {
27
- key: "lifecycle-dashboard",
28
- version: "1.0.0",
29
- title: "Lifecycle Dashboard (snippet)",
30
- description: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",
31
- kind: "blueprint",
32
- visibility: "public",
33
- stability: "experimental",
34
- owners: ["@platform.core"],
35
- tags: ["lifecycle", "dashboard", "nextjs", "snippet"]
36
- },
37
- docs: {
38
- rootDocId: "docs.examples.lifecycle-dashboard"
39
- },
40
- entrypoints: {
41
- packageName: "@contractspec/example.lifecycle-dashboard",
42
- docs: "./docs"
43
- },
44
- surfaces: {
45
- templates: true,
46
- sandbox: { enabled: true, modes: ["markdown", "specs"] },
47
- studio: { enabled: true, installable: true },
48
- mcp: { enabled: true }
49
- }
50
- });
51
- var example_default = example;
52
-
53
- // src/lifecycle-dashboard.feature.ts
54
- import { defineFeature } from "@contractspec/lib.contracts-spec";
55
- var LifecycleDashboardFeature = defineFeature({
56
- meta: {
57
- key: "lifecycle-dashboard",
58
- version: "1.0.0",
59
- title: "Lifecycle Dashboard",
60
- description: "Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",
61
- domain: "lifecycle",
62
- owners: ["@examples"],
63
- tags: ["lifecycle", "dashboard", "status"],
64
- stability: "experimental"
65
- },
66
- docs: ["docs.examples.lifecycle-dashboard"]
67
- });
68
-
69
- // src/snippets/page.ts
70
- var lifecycleDashboardNextPageSnippet = `'use client';
8
+ - Implement API routes in your app as thin adapters over lifecycle-managed services.`}];e(s);import{defineExample as t}from"@contractspec/lib.contracts-spec";var a=t({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard (snippet)",description:"A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",kind:"blueprint",visibility:"public",stability:"experimental",owners:["@platform.core"],tags:["lifecycle","dashboard","nextjs","snippet"]},docs:{rootDocId:"docs.examples.lifecycle-dashboard"},entrypoints:{packageName:"@contractspec/example.lifecycle-dashboard",docs:"./docs"},surfaces:{templates:!0,sandbox:{enabled:!0,modes:["markdown","specs"]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}}),n=a;import{defineFeature as r}from"@contractspec/lib.contracts-spec";var f=r({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard",description:"Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",domain:"lifecycle",owners:["@examples"],tags:["lifecycle","dashboard","status"],stability:"experimental"},docs:["docs.examples.lifecycle-dashboard"]});var u=`'use client';
71
9
 
72
10
  import { useEffect, useState } from 'react';
73
11
 
@@ -118,9 +56,4 @@ export default function LifecycleDashboardPage() {
118
56
  // Render using your app's design system components in real code.
119
57
  return null;
120
58
  }
121
- `;
122
- export {
123
- lifecycleDashboardNextPageSnippet,
124
- example_default as example,
125
- LifecycleDashboardFeature
126
- };
59
+ `;export{u as lifecycleDashboardNextPageSnippet,n as example,f as LifecycleDashboardFeature};
@@ -1,18 +1 @@
1
- // src/lifecycle-dashboard.feature.ts
2
- import { defineFeature } from "@contractspec/lib.contracts-spec";
3
- var LifecycleDashboardFeature = defineFeature({
4
- meta: {
5
- key: "lifecycle-dashboard",
6
- version: "1.0.0",
7
- title: "Lifecycle Dashboard",
8
- description: "Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",
9
- domain: "lifecycle",
10
- owners: ["@examples"],
11
- tags: ["lifecycle", "dashboard", "status"],
12
- stability: "experimental"
13
- },
14
- docs: ["docs.examples.lifecycle-dashboard"]
15
- });
16
- export {
17
- LifecycleDashboardFeature
18
- };
1
+ import{defineFeature as g}from"@contractspec/lib.contracts-spec";var j=g({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard",description:"Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",domain:"lifecycle",owners:["@examples"],tags:["lifecycle","dashboard","status"],stability:"experimental"},docs:["docs.examples.lifecycle-dashboard"]});export{j as LifecycleDashboardFeature};
@@ -1,5 +1,4 @@
1
- // src/snippets/page.ts
2
- var lifecycleDashboardNextPageSnippet = `'use client';
1
+ var e=`'use client';
3
2
 
4
3
  import { useEffect, useState } from 'react';
5
4
 
@@ -50,7 +49,4 @@ export default function LifecycleDashboardPage() {
50
49
  // Render using your app's design system components in real code.
51
50
  return null;
52
51
  }
53
- `;
54
- export {
55
- lifecycleDashboardNextPageSnippet
56
- };
52
+ `;export{e as lifecycleDashboardNextPageSnippet};
@@ -1,23 +1,9 @@
1
1
  // @bun
2
- // src/docs/lifecycle-dashboard.docblock.ts
3
- import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
4
- var blocks = [
5
- {
6
- id: "docs.examples.lifecycle-dashboard",
7
- title: "Lifecycle Dashboard (example snippet)",
8
- summary: "Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",
9
- kind: "reference",
10
- visibility: "public",
11
- route: "/docs/examples/lifecycle-dashboard",
12
- tags: ["lifecycle", "dashboard", "example"],
13
- body: `## What this example shows
2
+ import{registerDocBlocks as m}from"@contractspec/lib.contracts-spec/docs";var f=[{id:"docs.examples.lifecycle-dashboard",title:"Lifecycle Dashboard (example snippet)",summary:"Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",kind:"reference",visibility:"public",route:"/docs/examples/lifecycle-dashboard",tags:["lifecycle","dashboard","example"],body:`## What this example shows
14
3
  - A simple client-driven fetch to \`POST /api/lifecycle/assessments\`.
15
4
  - A card-shaped UI pattern for stage + confidence + recommendations.
16
5
 
17
6
  ## Notes
18
7
  - Keep your app design-system-first (no raw HTML in application code).
19
8
  - Add explicit loading/error/empty states with accessible messaging.
20
- - Implement API routes in your app as thin adapters over lifecycle-managed services.`
21
- }
22
- ];
23
- registerDocBlocks(blocks);
9
+ - Implement API routes in your app as thin adapters over lifecycle-managed services.`}];m(f);
@@ -1,23 +1,9 @@
1
1
  // @bun
2
- // src/docs/lifecycle-dashboard.docblock.ts
3
- import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
4
- var blocks = [
5
- {
6
- id: "docs.examples.lifecycle-dashboard",
7
- title: "Lifecycle Dashboard (example snippet)",
8
- summary: "Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",
9
- kind: "reference",
10
- visibility: "public",
11
- route: "/docs/examples/lifecycle-dashboard",
12
- tags: ["lifecycle", "dashboard", "example"],
13
- body: `## What this example shows
2
+ import{registerDocBlocks as f}from"@contractspec/lib.contracts-spec/docs";var h=[{id:"docs.examples.lifecycle-dashboard",title:"Lifecycle Dashboard (example snippet)",summary:"Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",kind:"reference",visibility:"public",route:"/docs/examples/lifecycle-dashboard",tags:["lifecycle","dashboard","example"],body:`## What this example shows
14
3
  - A simple client-driven fetch to \`POST /api/lifecycle/assessments\`.
15
4
  - A card-shaped UI pattern for stage + confidence + recommendations.
16
5
 
17
6
  ## Notes
18
7
  - Keep your app design-system-first (no raw HTML in application code).
19
8
  - Add explicit loading/error/empty states with accessible messaging.
20
- - Implement API routes in your app as thin adapters over lifecycle-managed services.`
21
- }
22
- ];
23
- registerDocBlocks(blocks);
9
+ - Implement API routes in your app as thin adapters over lifecycle-managed services.`}];f(h);
package/dist/example.js CHANGED
@@ -1,33 +1,2 @@
1
1
  // @bun
2
- // src/example.ts
3
- import { defineExample } from "@contractspec/lib.contracts-spec";
4
- var example = defineExample({
5
- meta: {
6
- key: "lifecycle-dashboard",
7
- version: "1.0.0",
8
- title: "Lifecycle Dashboard (snippet)",
9
- description: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",
10
- kind: "blueprint",
11
- visibility: "public",
12
- stability: "experimental",
13
- owners: ["@platform.core"],
14
- tags: ["lifecycle", "dashboard", "nextjs", "snippet"]
15
- },
16
- docs: {
17
- rootDocId: "docs.examples.lifecycle-dashboard"
18
- },
19
- entrypoints: {
20
- packageName: "@contractspec/example.lifecycle-dashboard",
21
- docs: "./docs"
22
- },
23
- surfaces: {
24
- templates: true,
25
- sandbox: { enabled: true, modes: ["markdown", "specs"] },
26
- studio: { enabled: true, installable: true },
27
- mcp: { enabled: true }
28
- }
29
- });
30
- var example_default = example;
31
- export {
32
- example_default as default
33
- };
2
+ import{defineExample as g}from"@contractspec/lib.contracts-spec";var h=g({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard (snippet)",description:"A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",kind:"blueprint",visibility:"public",stability:"experimental",owners:["@platform.core"],tags:["lifecycle","dashboard","nextjs","snippet"]},docs:{rootDocId:"docs.examples.lifecycle-dashboard"},entrypoints:{packageName:"@contractspec/example.lifecycle-dashboard",docs:"./docs"},surfaces:{templates:!0,sandbox:{enabled:!0,modes:["markdown","specs"]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}}),q=h;export{q as default};
package/dist/index.js CHANGED
@@ -1,74 +1,12 @@
1
1
  // @bun
2
- // src/docs/lifecycle-dashboard.docblock.ts
3
- import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
4
- var blocks = [
5
- {
6
- id: "docs.examples.lifecycle-dashboard",
7
- title: "Lifecycle Dashboard (example snippet)",
8
- summary: "Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",
9
- kind: "reference",
10
- visibility: "public",
11
- route: "/docs/examples/lifecycle-dashboard",
12
- tags: ["lifecycle", "dashboard", "example"],
13
- body: `## What this example shows
2
+ import{registerDocBlocks as e}from"@contractspec/lib.contracts-spec/docs";var s=[{id:"docs.examples.lifecycle-dashboard",title:"Lifecycle Dashboard (example snippet)",summary:"Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",kind:"reference",visibility:"public",route:"/docs/examples/lifecycle-dashboard",tags:["lifecycle","dashboard","example"],body:`## What this example shows
14
3
  - A simple client-driven fetch to \`POST /api/lifecycle/assessments\`.
15
4
  - A card-shaped UI pattern for stage + confidence + recommendations.
16
5
 
17
6
  ## Notes
18
7
  - Keep your app design-system-first (no raw HTML in application code).
19
8
  - Add explicit loading/error/empty states with accessible messaging.
20
- - Implement API routes in your app as thin adapters over lifecycle-managed services.`
21
- }
22
- ];
23
- registerDocBlocks(blocks);
24
- // src/example.ts
25
- import { defineExample } from "@contractspec/lib.contracts-spec";
26
- var example = defineExample({
27
- meta: {
28
- key: "lifecycle-dashboard",
29
- version: "1.0.0",
30
- title: "Lifecycle Dashboard (snippet)",
31
- description: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",
32
- kind: "blueprint",
33
- visibility: "public",
34
- stability: "experimental",
35
- owners: ["@platform.core"],
36
- tags: ["lifecycle", "dashboard", "nextjs", "snippet"]
37
- },
38
- docs: {
39
- rootDocId: "docs.examples.lifecycle-dashboard"
40
- },
41
- entrypoints: {
42
- packageName: "@contractspec/example.lifecycle-dashboard",
43
- docs: "./docs"
44
- },
45
- surfaces: {
46
- templates: true,
47
- sandbox: { enabled: true, modes: ["markdown", "specs"] },
48
- studio: { enabled: true, installable: true },
49
- mcp: { enabled: true }
50
- }
51
- });
52
- var example_default = example;
53
-
54
- // src/lifecycle-dashboard.feature.ts
55
- import { defineFeature } from "@contractspec/lib.contracts-spec";
56
- var LifecycleDashboardFeature = defineFeature({
57
- meta: {
58
- key: "lifecycle-dashboard",
59
- version: "1.0.0",
60
- title: "Lifecycle Dashboard",
61
- description: "Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",
62
- domain: "lifecycle",
63
- owners: ["@examples"],
64
- tags: ["lifecycle", "dashboard", "status"],
65
- stability: "experimental"
66
- },
67
- docs: ["docs.examples.lifecycle-dashboard"]
68
- });
69
-
70
- // src/snippets/page.ts
71
- var lifecycleDashboardNextPageSnippet = `'use client';
9
+ - Implement API routes in your app as thin adapters over lifecycle-managed services.`}];e(s);import{defineExample as t}from"@contractspec/lib.contracts-spec";var a=t({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard (snippet)",description:"A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",kind:"blueprint",visibility:"public",stability:"experimental",owners:["@platform.core"],tags:["lifecycle","dashboard","nextjs","snippet"]},docs:{rootDocId:"docs.examples.lifecycle-dashboard"},entrypoints:{packageName:"@contractspec/example.lifecycle-dashboard",docs:"./docs"},surfaces:{templates:!0,sandbox:{enabled:!0,modes:["markdown","specs"]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}}),n=a;import{defineFeature as r}from"@contractspec/lib.contracts-spec";var f=r({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard",description:"Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",domain:"lifecycle",owners:["@examples"],tags:["lifecycle","dashboard","status"],stability:"experimental"},docs:["docs.examples.lifecycle-dashboard"]});var u=`'use client';
72
10
 
73
11
  import { useEffect, useState } from 'react';
74
12
 
@@ -119,9 +57,4 @@ export default function LifecycleDashboardPage() {
119
57
  // Render using your app's design system components in real code.
120
58
  return null;
121
59
  }
122
- `;
123
- export {
124
- lifecycleDashboardNextPageSnippet,
125
- example_default as example,
126
- LifecycleDashboardFeature
127
- };
60
+ `;export{u as lifecycleDashboardNextPageSnippet,n as example,f as LifecycleDashboardFeature};
@@ -1,19 +1,2 @@
1
1
  // @bun
2
- // src/lifecycle-dashboard.feature.ts
3
- import { defineFeature } from "@contractspec/lib.contracts-spec";
4
- var LifecycleDashboardFeature = defineFeature({
5
- meta: {
6
- key: "lifecycle-dashboard",
7
- version: "1.0.0",
8
- title: "Lifecycle Dashboard",
9
- description: "Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",
10
- domain: "lifecycle",
11
- owners: ["@examples"],
12
- tags: ["lifecycle", "dashboard", "status"],
13
- stability: "experimental"
14
- },
15
- docs: ["docs.examples.lifecycle-dashboard"]
16
- });
17
- export {
18
- LifecycleDashboardFeature
19
- };
2
+ import{defineFeature as g}from"@contractspec/lib.contracts-spec";var j=g({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard",description:"Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",domain:"lifecycle",owners:["@examples"],tags:["lifecycle","dashboard","status"],stability:"experimental"},docs:["docs.examples.lifecycle-dashboard"]});export{j as LifecycleDashboardFeature};
@@ -1,22 +1,8 @@
1
- // src/docs/lifecycle-dashboard.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
- var blocks = [
4
- {
5
- id: "docs.examples.lifecycle-dashboard",
6
- title: "Lifecycle Dashboard (example snippet)",
7
- summary: "Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/examples/lifecycle-dashboard",
11
- tags: ["lifecycle", "dashboard", "example"],
12
- body: `## What this example shows
1
+ import{registerDocBlocks as m}from"@contractspec/lib.contracts-spec/docs";var f=[{id:"docs.examples.lifecycle-dashboard",title:"Lifecycle Dashboard (example snippet)",summary:"Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",kind:"reference",visibility:"public",route:"/docs/examples/lifecycle-dashboard",tags:["lifecycle","dashboard","example"],body:`## What this example shows
13
2
  - A simple client-driven fetch to \`POST /api/lifecycle/assessments\`.
14
3
  - A card-shaped UI pattern for stage + confidence + recommendations.
15
4
 
16
5
  ## Notes
17
6
  - Keep your app design-system-first (no raw HTML in application code).
18
7
  - Add explicit loading/error/empty states with accessible messaging.
19
- - Implement API routes in your app as thin adapters over lifecycle-managed services.`
20
- }
21
- ];
22
- registerDocBlocks(blocks);
8
+ - Implement API routes in your app as thin adapters over lifecycle-managed services.`}];m(f);
@@ -1,22 +1,8 @@
1
- // src/docs/lifecycle-dashboard.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
- var blocks = [
4
- {
5
- id: "docs.examples.lifecycle-dashboard",
6
- title: "Lifecycle Dashboard (example snippet)",
7
- summary: "Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/examples/lifecycle-dashboard",
11
- tags: ["lifecycle", "dashboard", "example"],
12
- body: `## What this example shows
1
+ import{registerDocBlocks as f}from"@contractspec/lib.contracts-spec/docs";var h=[{id:"docs.examples.lifecycle-dashboard",title:"Lifecycle Dashboard (example snippet)",summary:"Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",kind:"reference",visibility:"public",route:"/docs/examples/lifecycle-dashboard",tags:["lifecycle","dashboard","example"],body:`## What this example shows
13
2
  - A simple client-driven fetch to \`POST /api/lifecycle/assessments\`.
14
3
  - A card-shaped UI pattern for stage + confidence + recommendations.
15
4
 
16
5
  ## Notes
17
6
  - Keep your app design-system-first (no raw HTML in application code).
18
7
  - Add explicit loading/error/empty states with accessible messaging.
19
- - Implement API routes in your app as thin adapters over lifecycle-managed services.`
20
- }
21
- ];
22
- registerDocBlocks(blocks);
8
+ - Implement API routes in your app as thin adapters over lifecycle-managed services.`}];f(h);
@@ -1,32 +1 @@
1
- // src/example.ts
2
- import { defineExample } from "@contractspec/lib.contracts-spec";
3
- var example = defineExample({
4
- meta: {
5
- key: "lifecycle-dashboard",
6
- version: "1.0.0",
7
- title: "Lifecycle Dashboard (snippet)",
8
- description: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",
9
- kind: "blueprint",
10
- visibility: "public",
11
- stability: "experimental",
12
- owners: ["@platform.core"],
13
- tags: ["lifecycle", "dashboard", "nextjs", "snippet"]
14
- },
15
- docs: {
16
- rootDocId: "docs.examples.lifecycle-dashboard"
17
- },
18
- entrypoints: {
19
- packageName: "@contractspec/example.lifecycle-dashboard",
20
- docs: "./docs"
21
- },
22
- surfaces: {
23
- templates: true,
24
- sandbox: { enabled: true, modes: ["markdown", "specs"] },
25
- studio: { enabled: true, installable: true },
26
- mcp: { enabled: true }
27
- }
28
- });
29
- var example_default = example;
30
- export {
31
- example_default as default
32
- };
1
+ import{defineExample as g}from"@contractspec/lib.contracts-spec";var h=g({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard (snippet)",description:"A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",kind:"blueprint",visibility:"public",stability:"experimental",owners:["@platform.core"],tags:["lifecycle","dashboard","nextjs","snippet"]},docs:{rootDocId:"docs.examples.lifecycle-dashboard"},entrypoints:{packageName:"@contractspec/example.lifecycle-dashboard",docs:"./docs"},surfaces:{templates:!0,sandbox:{enabled:!0,modes:["markdown","specs"]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}}),q=h;export{q as default};
@@ -1,73 +1,11 @@
1
- // src/docs/lifecycle-dashboard.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
- var blocks = [
4
- {
5
- id: "docs.examples.lifecycle-dashboard",
6
- title: "Lifecycle Dashboard (example snippet)",
7
- summary: "Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/examples/lifecycle-dashboard",
11
- tags: ["lifecycle", "dashboard", "example"],
12
- body: `## What this example shows
1
+ import{registerDocBlocks as e}from"@contractspec/lib.contracts-spec/docs";var s=[{id:"docs.examples.lifecycle-dashboard",title:"Lifecycle Dashboard (example snippet)",summary:"Minimal dashboard page pattern that calls lifecycle-managed API routes and renders a status card.",kind:"reference",visibility:"public",route:"/docs/examples/lifecycle-dashboard",tags:["lifecycle","dashboard","example"],body:`## What this example shows
13
2
  - A simple client-driven fetch to \`POST /api/lifecycle/assessments\`.
14
3
  - A card-shaped UI pattern for stage + confidence + recommendations.
15
4
 
16
5
  ## Notes
17
6
  - Keep your app design-system-first (no raw HTML in application code).
18
7
  - Add explicit loading/error/empty states with accessible messaging.
19
- - Implement API routes in your app as thin adapters over lifecycle-managed services.`
20
- }
21
- ];
22
- registerDocBlocks(blocks);
23
- // src/example.ts
24
- import { defineExample } from "@contractspec/lib.contracts-spec";
25
- var example = defineExample({
26
- meta: {
27
- key: "lifecycle-dashboard",
28
- version: "1.0.0",
29
- title: "Lifecycle Dashboard (snippet)",
30
- description: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",
31
- kind: "blueprint",
32
- visibility: "public",
33
- stability: "experimental",
34
- owners: ["@platform.core"],
35
- tags: ["lifecycle", "dashboard", "nextjs", "snippet"]
36
- },
37
- docs: {
38
- rootDocId: "docs.examples.lifecycle-dashboard"
39
- },
40
- entrypoints: {
41
- packageName: "@contractspec/example.lifecycle-dashboard",
42
- docs: "./docs"
43
- },
44
- surfaces: {
45
- templates: true,
46
- sandbox: { enabled: true, modes: ["markdown", "specs"] },
47
- studio: { enabled: true, installable: true },
48
- mcp: { enabled: true }
49
- }
50
- });
51
- var example_default = example;
52
-
53
- // src/lifecycle-dashboard.feature.ts
54
- import { defineFeature } from "@contractspec/lib.contracts-spec";
55
- var LifecycleDashboardFeature = defineFeature({
56
- meta: {
57
- key: "lifecycle-dashboard",
58
- version: "1.0.0",
59
- title: "Lifecycle Dashboard",
60
- description: "Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",
61
- domain: "lifecycle",
62
- owners: ["@examples"],
63
- tags: ["lifecycle", "dashboard", "status"],
64
- stability: "experimental"
65
- },
66
- docs: ["docs.examples.lifecycle-dashboard"]
67
- });
68
-
69
- // src/snippets/page.ts
70
- var lifecycleDashboardNextPageSnippet = `'use client';
8
+ - Implement API routes in your app as thin adapters over lifecycle-managed services.`}];e(s);import{defineExample as t}from"@contractspec/lib.contracts-spec";var a=t({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard (snippet)",description:"A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",kind:"blueprint",visibility:"public",stability:"experimental",owners:["@platform.core"],tags:["lifecycle","dashboard","nextjs","snippet"]},docs:{rootDocId:"docs.examples.lifecycle-dashboard"},entrypoints:{packageName:"@contractspec/example.lifecycle-dashboard",docs:"./docs"},surfaces:{templates:!0,sandbox:{enabled:!0,modes:["markdown","specs"]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}}),n=a;import{defineFeature as r}from"@contractspec/lib.contracts-spec";var f=r({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard",description:"Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",domain:"lifecycle",owners:["@examples"],tags:["lifecycle","dashboard","status"],stability:"experimental"},docs:["docs.examples.lifecycle-dashboard"]});var u=`'use client';
71
9
 
72
10
  import { useEffect, useState } from 'react';
73
11
 
@@ -118,9 +56,4 @@ export default function LifecycleDashboardPage() {
118
56
  // Render using your app's design system components in real code.
119
57
  return null;
120
58
  }
121
- `;
122
- export {
123
- lifecycleDashboardNextPageSnippet,
124
- example_default as example,
125
- LifecycleDashboardFeature
126
- };
59
+ `;export{u as lifecycleDashboardNextPageSnippet,n as example,f as LifecycleDashboardFeature};
@@ -1,18 +1 @@
1
- // src/lifecycle-dashboard.feature.ts
2
- import { defineFeature } from "@contractspec/lib.contracts-spec";
3
- var LifecycleDashboardFeature = defineFeature({
4
- meta: {
5
- key: "lifecycle-dashboard",
6
- version: "1.0.0",
7
- title: "Lifecycle Dashboard",
8
- description: "Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",
9
- domain: "lifecycle",
10
- owners: ["@examples"],
11
- tags: ["lifecycle", "dashboard", "status"],
12
- stability: "experimental"
13
- },
14
- docs: ["docs.examples.lifecycle-dashboard"]
15
- });
16
- export {
17
- LifecycleDashboardFeature
18
- };
1
+ import{defineFeature as g}from"@contractspec/lib.contracts-spec";var j=g({meta:{key:"lifecycle-dashboard",version:"1.0.0",title:"Lifecycle Dashboard",description:"Lifecycle API usage snippet with status cards and lifecycle-managed endpoints",domain:"lifecycle",owners:["@examples"],tags:["lifecycle","dashboard","status"],stability:"experimental"},docs:["docs.examples.lifecycle-dashboard"]});export{j as LifecycleDashboardFeature};
@@ -1,5 +1,4 @@
1
- // src/snippets/page.ts
2
- var lifecycleDashboardNextPageSnippet = `'use client';
1
+ var e=`'use client';
3
2
 
4
3
  import { useEffect, useState } from 'react';
5
4
 
@@ -50,7 +49,4 @@ export default function LifecycleDashboardPage() {
50
49
  // Render using your app's design system components in real code.
51
50
  return null;
52
51
  }
53
- `;
54
- export {
55
- lifecycleDashboardNextPageSnippet
56
- };
52
+ `;export{e as lifecycleDashboardNextPageSnippet};
@@ -1,6 +1,5 @@
1
1
  // @bun
2
- // src/snippets/page.ts
3
- var lifecycleDashboardNextPageSnippet = `'use client';
2
+ var e=`'use client';
4
3
 
5
4
  import { useEffect, useState } from 'react';
6
5
 
@@ -51,7 +50,4 @@ export default function LifecycleDashboardPage() {
51
50
  // Render using your app's design system components in real code.
52
51
  return null;
53
52
  }
54
- `;
55
- export {
56
- lifecycleDashboardNextPageSnippet
57
- };
53
+ `;export{e as lifecycleDashboardNextPageSnippet};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.lifecycle-dashboard",
3
- "version": "3.7.17",
3
+ "version": "3.7.18",
4
4
  "description": "Lifecycle dashboard example (snippet): how to call lifecycle-managed APIs and render a status card.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -57,19 +57,19 @@
57
57
  "dev": "contractspec-bun-build dev",
58
58
  "clean": "rimraf dist .turbo",
59
59
  "lint": "bun lint:fix",
60
- "lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
61
- "lint:check": "biome check .",
60
+ "lint:fix": "node ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .",
61
+ "lint:check": "node ../../../scripts/biome.cjs check .",
62
62
  "test": "bun test --pass-with-no-tests",
63
63
  "prebuild": "contractspec-bun-build prebuild",
64
64
  "typecheck": "tsc --noEmit"
65
65
  },
66
66
  "dependencies": {
67
- "@contractspec/lib.contracts-spec": "5.1.0"
67
+ "@contractspec/lib.contracts-spec": "5.2.0"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@contractspec/tool.typescript": "3.7.13",
71
71
  "typescript": "^5.9.3",
72
- "@contractspec/tool.bun": "3.7.13"
72
+ "@contractspec/tool.bun": "3.7.14"
73
73
  },
74
74
  "publishConfig": {
75
75
  "access": "public",