@contractspec/example.content-generation 1.44.1 → 1.45.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.
@@ -8,18 +8,18 @@ $ tsdown
8
8
  ℹ Cleaning 16 files
9
9
  ℹ dist/generate.js 1.81 kB │ gzip: 0.90 kB
10
10
  ℹ dist/docs/content-generation.docblock.js 1.37 kB │ gzip: 0.69 kB
11
- ℹ dist/example.js 0.84 kB │ gzip: 0.43 kB
11
+ ℹ dist/example.js 0.94 kB │ gzip: 0.48 kB
12
12
  ℹ dist/index.js 0.20 kB │ gzip: 0.13 kB
13
13
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
14
14
  ℹ dist/generate.js.map 2.89 kB │ gzip: 1.31 kB
15
15
  ℹ dist/docs/content-generation.docblock.js.map 1.86 kB │ gzip: 0.88 kB
16
- ℹ dist/example.js.map 1.19 kB │ gzip: 0.60 kB
17
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
16
+ ℹ dist/example.js.map 1.47 kB │ gzip: 0.69 kB
18
17
  ℹ dist/generate.d.ts.map 0.14 kB │ gzip: 0.13 kB
19
- ℹ dist/example.d.ts 1.07 kB │ gzip: 0.43 kB
18
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
19
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
20
20
  ℹ dist/generate.d.ts 0.18 kB │ gzip: 0.15 kB
21
21
  ℹ dist/index.d.ts 0.14 kB │ gzip: 0.10 kB
22
22
  ℹ dist/docs/content-generation.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
23
23
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
24
- ℹ 15 files, total: 11.91 kB
25
- ✔ Build complete in 13938ms
24
+ ℹ 15 files, total: 11.41 kB
25
+ ✔ Build complete in 17260ms
@@ -9,18 +9,18 @@ $ tsdown
9
9
  ℹ Build start
10
10
  ℹ dist/generate.js 1.81 kB │ gzip: 0.90 kB
11
11
  ℹ dist/docs/content-generation.docblock.js 1.37 kB │ gzip: 0.69 kB
12
- ℹ dist/example.js 0.84 kB │ gzip: 0.43 kB
12
+ ℹ dist/example.js 0.94 kB │ gzip: 0.48 kB
13
13
  ℹ dist/index.js 0.20 kB │ gzip: 0.13 kB
14
14
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
15
15
  ℹ dist/generate.js.map 2.89 kB │ gzip: 1.31 kB
16
16
  ℹ dist/docs/content-generation.docblock.js.map 1.86 kB │ gzip: 0.88 kB
17
- ℹ dist/example.js.map 1.19 kB │ gzip: 0.60 kB
18
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
17
+ ℹ dist/example.js.map 1.47 kB │ gzip: 0.69 kB
19
18
  ℹ dist/generate.d.ts.map 0.14 kB │ gzip: 0.13 kB
20
- ℹ dist/example.d.ts 1.07 kB │ gzip: 0.43 kB
19
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
20
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
21
21
  ℹ dist/generate.d.ts 0.18 kB │ gzip: 0.15 kB
22
22
  ℹ dist/index.d.ts 0.14 kB │ gzip: 0.10 kB
23
23
  ℹ dist/docs/content-generation.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
24
24
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
25
- ℹ 15 files, total: 11.91 kB
26
- ✔ Build complete in 16836ms
25
+ ℹ 15 files, total: 11.41 kB
26
+ ✔ Build complete in 20277ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # @contractspec/example.content-generation
2
2
 
3
+ ## 1.45.1
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: improve app config and examples contracts
8
+ - Updated dependencies
9
+ - @contractspec/lib.content-gen@1.45.1
10
+ - @contractspec/lib.contracts@1.45.1
11
+ - @contractspec/lib.logger@1.45.1
12
+ - @contractspec/lib.schema@1.45.1
13
+
14
+ ## 1.45.0
15
+
16
+ ### Minor Changes
17
+
18
+ - e73ca1d: feat: improve app config and examples contracts
19
+ feat: Contract layers support (features, examples, app-configs)
20
+
21
+ ### New CLI Commands
22
+ - `contractspec list layers` - List all contract layers with filtering
23
+
24
+ ### Enhanced Commands
25
+ - `contractspec ci` - New `layers` check category validates features/examples/config
26
+ - `contractspec doctor` - New `layers` health checks
27
+ - `contractspec integrity` - Now shows layer statistics
28
+
29
+ ### New APIs
30
+ - `discoverLayers()` - Scan workspace for all layer files
31
+ - `scanExampleSource()` - Parse ExampleSpec from source code
32
+ - `isExampleFile()` - Check if file is an example spec
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [e73ca1d]
37
+ - @contractspec/lib.content-gen@1.45.0
38
+ - @contractspec/lib.contracts@1.45.0
39
+ - @contractspec/lib.logger@1.45.0
40
+ - @contractspec/lib.schema@1.45.0
41
+
3
42
  ## 1.44.1
4
43
 
5
44
  ### Patch Changes
package/dist/example.d.ts CHANGED
@@ -1,34 +1,7 @@
1
+ import { ExampleSpec } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.d.ts
2
- declare const example: {
3
- readonly id: "content-generation";
4
- readonly title: "Content Generation";
5
- readonly summary: "Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.";
6
- readonly tags: readonly ["content", "marketing", "generation", "ai"];
7
- readonly kind: "script";
8
- readonly visibility: "public";
9
- readonly docs: {
10
- readonly rootDocId: "docs.examples.content-generation";
11
- readonly usageDocId: "docs.examples.content-generation.usage";
12
- };
13
- readonly entrypoints: {
14
- readonly packageName: "@contractspec/example.content-generation";
15
- readonly docs: "./docs";
16
- };
17
- readonly surfaces: {
18
- readonly templates: true;
19
- readonly sandbox: {
20
- readonly enabled: true;
21
- readonly modes: readonly ["markdown"];
22
- };
23
- readonly studio: {
24
- readonly enabled: true;
25
- readonly installable: true;
26
- };
27
- readonly mcp: {
28
- readonly enabled: true;
29
- };
30
- };
31
- };
4
+ declare const example: ExampleSpec;
32
5
  //#endregion
33
6
  export { example as default };
34
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,EAsBI,EAAA,oBAAA"}
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: "content-generation",
4
- title: "Content Generation",
5
- summary: "Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.",
6
- tags: [
7
- "content",
8
- "marketing",
9
- "generation",
10
- "ai"
11
- ],
12
- kind: "script",
13
- visibility: "public",
3
+ meta: {
4
+ key: "content-generation",
5
+ version: "1.0.0",
6
+ title: "Content Generation",
7
+ description: "Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.",
8
+ kind: "script",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "content",
14
+ "marketing",
15
+ "generation",
16
+ "ai"
17
+ ]
18
+ },
14
19
  docs: {
15
20
  rootDocId: "docs.examples.content-generation",
16
21
  usageDocId: "docs.examples.content-generation.usage"
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'content-generation',\n title: 'Content Generation',\n summary:\n 'Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.',\n tags: ['content', 'marketing', 'generation', 'ai'],\n kind: 'script',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.content-generation',\n usageDocId: 'docs.examples.content-generation.usage',\n },\n entrypoints: {\n packageName: '@contractspec/example.content-generation',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown'] },\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;EAAW;EAAa;EAAc;EAAK;CAClD,MAAM;CACN,YAAY;CACZ,MAAM;EACJ,WAAW;EACX,YAAY;EACb;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,WAAW;GAAE;EAC/C,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: 'content-generation',\n version: '1.0.0',\n title: 'Content Generation',\n description:\n 'Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.',\n kind: 'script',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['content', 'marketing', 'generation', 'ai'],\n },\n docs: {\n rootDocId: 'docs.examples.content-generation',\n usageDocId: 'docs.examples.content-generation.usage',\n },\n entrypoints: {\n packageName: '@contractspec/example.content-generation',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown'] },\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;GAAW;GAAa;GAAc;GAAK;EACnD;CACD,MAAM;EACJ,WAAW;EACX,YAAY;EACb;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,WAAW;GAAE;EAC/C,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.content-generation",
3
- "version": "1.44.1",
3
+ "version": "1.45.1",
4
4
  "description": "Content generation example using @contractspec/lib.content-gen.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,14 +27,14 @@
27
27
  "test": "bun test"
28
28
  },
29
29
  "dependencies": {
30
- "@contractspec/lib.schema": "1.44.1",
31
- "@contractspec/lib.contracts": "1.44.1",
32
- "@contractspec/lib.content-gen": "1.44.1",
33
- "@contractspec/lib.logger": "1.44.1"
30
+ "@contractspec/lib.schema": "1.45.1",
31
+ "@contractspec/lib.contracts": "1.45.1",
32
+ "@contractspec/lib.content-gen": "1.45.1",
33
+ "@contractspec/lib.logger": "1.45.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@contractspec/tool.tsdown": "1.44.1",
37
- "@contractspec/tool.typescript": "1.44.1",
36
+ "@contractspec/tool.tsdown": "1.45.1",
37
+ "@contractspec/tool.typescript": "1.45.1",
38
38
  "tsdown": "^0.18.3",
39
39
  "typescript": "^5.9.3"
40
40
  },
package/src/example.ts CHANGED
@@ -1,11 +1,18 @@
1
- const example = {
2
- id: 'content-generation',
3
- title: 'Content Generation',
4
- summary:
5
- 'Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.',
6
- tags: ['content', 'marketing', 'generation', 'ai'],
7
- kind: 'script',
8
- visibility: 'public',
1
+ import type { ExampleSpec } from '@contractspec/lib.contracts';
2
+
3
+ const example: ExampleSpec = {
4
+ meta: {
5
+ key: 'content-generation',
6
+ version: '1.0.0',
7
+ title: 'Content Generation',
8
+ description:
9
+ 'Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.',
10
+ kind: 'script',
11
+ visibility: 'public',
12
+ stability: 'experimental',
13
+ owners: ['@platform.core'],
14
+ tags: ['content', 'marketing', 'generation', 'ai'],
15
+ },
9
16
  docs: {
10
17
  rootDocId: 'docs.examples.content-generation',
11
18
  usageDocId: 'docs.examples.content-generation.usage',
@@ -20,6 +27,6 @@ const example = {
20
27
  studio: { enabled: true, installable: true },
21
28
  mcp: { enabled: true },
22
29
  },
23
- } as const;
30
+ };
24
31
 
25
32
  export default example;