@contractspec/example.lifecycle-dashboard 1.44.1 → 1.45.0

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.
@@ -8,18 +8,18 @@ $ tsdown
8
8
  ℹ Cleaning 17 files
9
9
  ℹ dist/snippets/page.js 1.82 kB │ gzip: 0.87 kB
10
10
  ℹ dist/docs/lifecycle-dashboard.docblock.js 0.98 kB │ gzip: 0.56 kB
11
- ℹ dist/example.js 0.81 kB │ gzip: 0.45 kB
11
+ ℹ dist/example.js 0.91 kB │ gzip: 0.50 kB
12
12
  ℹ dist/index.js 0.22 kB │ gzip: 0.14 kB
13
13
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
14
14
  ℹ dist/snippets/page.js.map 1.91 kB │ gzip: 0.91 kB
15
+ ℹ dist/example.js.map 1.44 kB │ gzip: 0.72 kB
15
16
  ℹ dist/docs/lifecycle-dashboard.docblock.js.map 1.32 kB │ gzip: 0.72 kB
16
- ℹ dist/example.js.map 1.16 kB │ gzip: 0.61 kB
17
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
18
17
  ℹ dist/snippets/page.d.ts.map 0.14 kB │ gzip: 0.13 kB
18
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
19
19
  ℹ dist/snippets/page.d.ts 1.89 kB │ gzip: 0.88 kB
20
- ℹ dist/example.d.ts 1.03 kB │ gzip: 0.44 kB
20
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
21
21
  ℹ dist/index.d.ts 0.16 kB │ gzip: 0.11 kB
22
22
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
23
23
  ℹ dist/docs/lifecycle-dashboard.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
24
- ℹ 15 files, total: 11.65 kB
25
- ✔ Build complete in 16202ms
24
+ ℹ 15 files, total: 11.19 kB
25
+ ✔ Build complete in 17362ms
@@ -9,18 +9,18 @@ $ tsdown
9
9
  ℹ Build start
10
10
  ℹ dist/snippets/page.js 1.82 kB │ gzip: 0.87 kB
11
11
  ℹ dist/docs/lifecycle-dashboard.docblock.js 0.98 kB │ gzip: 0.56 kB
12
- ℹ dist/example.js 0.81 kB │ gzip: 0.45 kB
12
+ ℹ dist/example.js 0.91 kB │ gzip: 0.50 kB
13
13
  ℹ dist/index.js 0.22 kB │ gzip: 0.14 kB
14
14
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
15
15
  ℹ dist/snippets/page.js.map 1.91 kB │ gzip: 0.91 kB
16
+ ℹ dist/example.js.map 1.44 kB │ gzip: 0.72 kB
16
17
  ℹ dist/docs/lifecycle-dashboard.docblock.js.map 1.32 kB │ gzip: 0.72 kB
17
- ℹ dist/example.js.map 1.16 kB │ gzip: 0.61 kB
18
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
19
18
  ℹ dist/snippets/page.d.ts.map 0.14 kB │ gzip: 0.13 kB
19
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
20
20
  ℹ dist/snippets/page.d.ts 1.89 kB │ gzip: 0.88 kB
21
- ℹ dist/example.d.ts 1.03 kB │ gzip: 0.44 kB
21
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
22
22
  ℹ dist/index.d.ts 0.16 kB │ gzip: 0.11 kB
23
23
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
24
24
  ℹ dist/docs/lifecycle-dashboard.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
25
- ℹ 15 files, total: 11.65 kB
26
- ✔ Build complete in 15783ms
25
+ ℹ 15 files, total: 11.19 kB
26
+ ✔ Build complete in 20289ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @contractspec/example.lifecycle-dashboard
2
2
 
3
+ ## 1.45.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e73ca1d: feat: improve app config and examples contracts
8
+ feat: Contract layers support (features, examples, app-configs)
9
+
10
+ ### New CLI Commands
11
+ - `contractspec list layers` - List all contract layers with filtering
12
+
13
+ ### Enhanced Commands
14
+ - `contractspec ci` - New `layers` check category validates features/examples/config
15
+ - `contractspec doctor` - New `layers` health checks
16
+ - `contractspec integrity` - Now shows layer statistics
17
+
18
+ ### New APIs
19
+ - `discoverLayers()` - Scan workspace for all layer files
20
+ - `scanExampleSource()` - Parse ExampleSpec from source code
21
+ - `isExampleFile()` - Check if file is an example spec
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [e73ca1d]
26
+ - @contractspec/lib.contracts@1.45.0
27
+ - @contractspec/lib.schema@1.45.0
28
+
3
29
  ## 1.44.1
4
30
 
5
31
  ### Patch Changes
package/dist/example.d.ts CHANGED
@@ -1,33 +1,7 @@
1
+ import { ExampleSpec } from "@contractspec/lib.contracts";
2
+
1
3
  //#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: "@contractspec/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
- };
4
+ declare const example: ExampleSpec;
31
5
  //#endregion
32
6
  export { example as default };
33
7
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EAqBI,EAAA,qBAAA"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
package/dist/example.js CHANGED
@@ -1,16 +1,21 @@
1
1
  //#region src/example.ts
2
2
  const example = {
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",
3
+ meta: {
4
+ key: "lifecycle-dashboard",
5
+ version: "1.0.0",
6
+ title: "Lifecycle Dashboard (snippet)",
7
+ description: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",
8
+ kind: "blueprint",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "lifecycle",
14
+ "dashboard",
15
+ "nextjs",
16
+ "snippet"
17
+ ]
18
+ },
14
19
  docs: { rootDocId: "docs.examples.lifecycle-dashboard" },
15
20
  entrypoints: {
16
21
  packageName: "@contractspec/example.lifecycle-dashboard",
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'lifecycle-dashboard',\n title: 'Lifecycle Dashboard (snippet)',\n summary:\n 'A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.',\n tags: ['lifecycle', 'dashboard', 'nextjs', 'snippet'],\n kind: 'blueprint',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.lifecycle-dashboard',\n },\n entrypoints: {\n packageName: '@contractspec/example.lifecycle-dashboard',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAa;EAAa;EAAU;EAAU;CACrD,MAAM;CACN,YAAY;CACZ,MAAM,EACJ,WAAW,qCACZ;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,YAAY,QAAQ;GAAE;EACxD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
1
+ {"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'lifecycle-dashboard',\n version: '1.0.0',\n title: 'Lifecycle Dashboard (snippet)',\n description:\n 'A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.',\n kind: 'blueprint',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['lifecycle', 'dashboard', 'nextjs', 'snippet'],\n },\n docs: {\n rootDocId: 'docs.examples.lifecycle-dashboard',\n },\n entrypoints: {\n packageName: '@contractspec/example.lifecycle-dashboard',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAa;GAAa;GAAU;GAAU;EACtD;CACD,MAAM,EACJ,WAAW,qCACZ;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,YAAY,QAAQ;GAAE;EACxD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.lifecycle-dashboard",
3
- "version": "1.44.1",
3
+ "version": "1.45.0",
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",
@@ -27,12 +27,12 @@
27
27
  "test": "bun test"
28
28
  },
29
29
  "dependencies": {
30
- "@contractspec/lib.schema": "1.44.1",
31
- "@contractspec/lib.contracts": "1.44.1"
30
+ "@contractspec/lib.schema": "1.45.0",
31
+ "@contractspec/lib.contracts": "1.45.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@contractspec/tool.tsdown": "1.44.1",
35
- "@contractspec/tool.typescript": "1.44.1",
34
+ "@contractspec/tool.tsdown": "1.45.0",
35
+ "@contractspec/tool.typescript": "1.45.0",
36
36
  "tsdown": "^0.18.3",
37
37
  "typescript": "^5.9.3"
38
38
  },
package/src/example.ts CHANGED
@@ -1,11 +1,18 @@
1
- const example = {
2
- id: 'lifecycle-dashboard',
3
- title: 'Lifecycle Dashboard (snippet)',
4
- summary:
5
- 'A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.',
6
- tags: ['lifecycle', 'dashboard', 'nextjs', 'snippet'],
7
- kind: 'blueprint',
8
- visibility: 'public',
1
+ import type { ExampleSpec } from '@contractspec/lib.contracts';
2
+
3
+ const example: ExampleSpec = {
4
+ meta: {
5
+ key: 'lifecycle-dashboard',
6
+ version: '1.0.0',
7
+ title: 'Lifecycle Dashboard (snippet)',
8
+ description:
9
+ '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
+ },
9
16
  docs: {
10
17
  rootDocId: 'docs.examples.lifecycle-dashboard',
11
18
  },
@@ -19,6 +26,6 @@ const example = {
19
26
  studio: { enabled: true, installable: true },
20
27
  mcp: { enabled: true },
21
28
  },
22
- } as const;
29
+ };
23
30
 
24
31
  export default example;