@contractspec/example.content-generation 3.2.0 → 3.4.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.
@@ -1,32 +1,36 @@
1
- $ contractspec-bun-build prebuild
2
- $ bun run prebuild && bun run build:bundle && bun run build:types
3
- $ contractspec-bun-build prebuild
4
- $ contractspec-bun-build transpile
5
- [contractspec-bun-build] transpile target=bun root=src entries=5
6
- Bundled 5 modules in 21ms
7
-
8
- docs/content-generation.docblock.js 1.37 KB (entry point)
9
- ./index.js 4.0 KB (entry point)
10
- docs/index.js 1.37 KB (entry point)
11
- ./example.js 0.99 KB (entry point)
12
- ./generate.js 1.72 KB (entry point)
13
-
14
- [contractspec-bun-build] transpile target=node root=src entries=5
15
- Bundled 5 modules in 40ms
16
-
17
- docs/content-generation.docblock.js 1.35 KB (entry point)
18
- ./index.js 4.0 KB (entry point)
19
- docs/index.js 1.35 KB (entry point)
20
- ./example.js 0.98 KB (entry point)
21
- ./generate.js 1.71 KB (entry point)
22
-
23
- [contractspec-bun-build] transpile target=browser root=src entries=5
24
- Bundled 5 modules in 14ms
25
-
26
- docs/content-generation.docblock.js 1.35 KB (entry point)
27
- ./index.js 4.0 KB (entry point)
28
- docs/index.js 1.35 KB (entry point)
29
- ./example.js 0.98 KB (entry point)
30
- ./generate.js 1.71 KB (entry point)
31
-
32
- $ contractspec-bun-build types
1
+
2
+ $ contractspec-bun-build prebuild
3
+ $ bun run prebuild && bun run build:bundle && bun run build:types
4
+ $ contractspec-bun-build prebuild
5
+ $ contractspec-bun-build transpile
6
+ [contractspec-bun-build] transpile target=bun root=src entries=6
7
+ Bundled 6 modules in 9ms
8
+
9
+ ./content-generation.feature.js 0.62 KB (entry point)
10
+ ./index.js 4.65 KB (entry point)
11
+ docs/index.js 1.37 KB (entry point)
12
+ docs/content-generation.docblock.js 1.37 KB (entry point)
13
+ ./example.js 0.99 KB (entry point)
14
+ ./generate.js 1.72 KB (entry point)
15
+
16
+ [contractspec-bun-build] transpile target=node root=src entries=6
17
+ Bundled 6 modules in 9ms
18
+
19
+ ./content-generation.feature.js 0.61 KB (entry point)
20
+ ./index.js 4.63 KB (entry point)
21
+ docs/index.js 1.35 KB (entry point)
22
+ docs/content-generation.docblock.js 1.35 KB (entry point)
23
+ ./example.js 0.98 KB (entry point)
24
+ ./generate.js 1.71 KB (entry point)
25
+
26
+ [contractspec-bun-build] transpile target=browser root=src entries=6
27
+ Bundled 6 modules in 6ms
28
+
29
+ ./content-generation.feature.js 0.61 KB (entry point)
30
+ ./index.js 4.63 KB (entry point)
31
+ docs/index.js 1.35 KB (entry point)
32
+ docs/content-generation.docblock.js 1.35 KB (entry point)
33
+ ./example.js 0.98 KB (entry point)
34
+ ./generate.js 1.71 KB (entry point)
35
+
36
+ $ contractspec-bun-build types
@@ -1 +1,2 @@
1
- $ contractspec-bun-build prebuild
1
+
2
+ $ contractspec-bun-build prebuild
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @contractspec/example.content-generation
2
2
 
3
+ ## 3.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0ee467a: feat: improve ai and customization
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [0ee467a]
12
+ - Updated dependencies [56ee8e6]
13
+ - @contractspec/lib.contracts-spec@3.4.0
14
+ - @contractspec/lib.content-gen@3.4.0
15
+ - @contractspec/lib.logger@3.4.0
16
+
17
+ ## 3.3.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 890a0da: fix: stability improvements
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [890a0da]
26
+ - @contractspec/lib.contracts-spec@3.3.0
27
+ - @contractspec/lib.content-gen@3.3.0
28
+ - @contractspec/lib.logger@3.3.0
29
+
3
30
  ## 3.2.0
4
31
 
5
32
  ### Minor Changes
@@ -0,0 +1,21 @@
1
+ // src/content-generation.feature.ts
2
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
3
+ var ContentGenerationFeature = defineFeature({
4
+ meta: {
5
+ key: "content-generation",
6
+ version: "1.0.0",
7
+ title: "Content Generation",
8
+ description: "AI content generation for blog posts, landing pages, emails, and social media",
9
+ domain: "content",
10
+ owners: ["@examples"],
11
+ tags: ["content", "ai", "generation"],
12
+ stability: "experimental"
13
+ },
14
+ docs: [
15
+ "docs.examples.content-generation",
16
+ "docs.examples.content-generation.usage"
17
+ ]
18
+ });
19
+ export {
20
+ ContentGenerationFeature
21
+ };
@@ -1,3 +1,22 @@
1
+ // src/content-generation.feature.ts
2
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
3
+ var ContentGenerationFeature = defineFeature({
4
+ meta: {
5
+ key: "content-generation",
6
+ version: "1.0.0",
7
+ title: "Content Generation",
8
+ description: "AI content generation for blog posts, landing pages, emails, and social media",
9
+ domain: "content",
10
+ owners: ["@examples"],
11
+ tags: ["content", "ai", "generation"],
12
+ stability: "experimental"
13
+ },
14
+ docs: [
15
+ "docs.examples.content-generation",
16
+ "docs.examples.content-generation.usage"
17
+ ]
18
+ });
19
+
1
20
  // src/docs/content-generation.docblock.ts
2
21
  import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
22
  var blocks = [
@@ -118,5 +137,6 @@ async function runContentGenerationExample() {
118
137
  }
119
138
  export {
120
139
  runContentGenerationExample,
121
- example_default as example
140
+ example_default as example,
141
+ ContentGenerationFeature
122
142
  };
@@ -0,0 +1 @@
1
+ export declare const ContentGenerationFeature: import("@contractspec/lib.contracts-spec").FeatureModuleSpec;
@@ -0,0 +1,22 @@
1
+ // @bun
2
+ // src/content-generation.feature.ts
3
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
4
+ var ContentGenerationFeature = defineFeature({
5
+ meta: {
6
+ key: "content-generation",
7
+ version: "1.0.0",
8
+ title: "Content Generation",
9
+ description: "AI content generation for blog posts, landing pages, emails, and social media",
10
+ domain: "content",
11
+ owners: ["@examples"],
12
+ tags: ["content", "ai", "generation"],
13
+ stability: "experimental"
14
+ },
15
+ docs: [
16
+ "docs.examples.content-generation",
17
+ "docs.examples.content-generation.usage"
18
+ ]
19
+ });
20
+ export {
21
+ ContentGenerationFeature
22
+ };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './generate';
2
+ export * from './content-generation.feature';
2
3
  export { default as example } from './example';
3
4
  import './docs';
package/dist/index.js CHANGED
@@ -1,4 +1,23 @@
1
1
  // @bun
2
+ // src/content-generation.feature.ts
3
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
4
+ var ContentGenerationFeature = defineFeature({
5
+ meta: {
6
+ key: "content-generation",
7
+ version: "1.0.0",
8
+ title: "Content Generation",
9
+ description: "AI content generation for blog posts, landing pages, emails, and social media",
10
+ domain: "content",
11
+ owners: ["@examples"],
12
+ tags: ["content", "ai", "generation"],
13
+ stability: "experimental"
14
+ },
15
+ docs: [
16
+ "docs.examples.content-generation",
17
+ "docs.examples.content-generation.usage"
18
+ ]
19
+ });
20
+
2
21
  // src/docs/content-generation.docblock.ts
3
22
  import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
4
23
  var blocks = [
@@ -119,5 +138,6 @@ async function runContentGenerationExample() {
119
138
  }
120
139
  export {
121
140
  runContentGenerationExample,
122
- example_default as example
141
+ example_default as example,
142
+ ContentGenerationFeature
123
143
  };
@@ -0,0 +1,21 @@
1
+ // src/content-generation.feature.ts
2
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
3
+ var ContentGenerationFeature = defineFeature({
4
+ meta: {
5
+ key: "content-generation",
6
+ version: "1.0.0",
7
+ title: "Content Generation",
8
+ description: "AI content generation for blog posts, landing pages, emails, and social media",
9
+ domain: "content",
10
+ owners: ["@examples"],
11
+ tags: ["content", "ai", "generation"],
12
+ stability: "experimental"
13
+ },
14
+ docs: [
15
+ "docs.examples.content-generation",
16
+ "docs.examples.content-generation.usage"
17
+ ]
18
+ });
19
+ export {
20
+ ContentGenerationFeature
21
+ };
@@ -1,3 +1,22 @@
1
+ // src/content-generation.feature.ts
2
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
3
+ var ContentGenerationFeature = defineFeature({
4
+ meta: {
5
+ key: "content-generation",
6
+ version: "1.0.0",
7
+ title: "Content Generation",
8
+ description: "AI content generation for blog posts, landing pages, emails, and social media",
9
+ domain: "content",
10
+ owners: ["@examples"],
11
+ tags: ["content", "ai", "generation"],
12
+ stability: "experimental"
13
+ },
14
+ docs: [
15
+ "docs.examples.content-generation",
16
+ "docs.examples.content-generation.usage"
17
+ ]
18
+ });
19
+
1
20
  // src/docs/content-generation.docblock.ts
2
21
  import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
22
  var blocks = [
@@ -118,5 +137,6 @@ async function runContentGenerationExample() {
118
137
  }
119
138
  export {
120
139
  runContentGenerationExample,
121
- example_default as example
140
+ example_default as example,
141
+ ContentGenerationFeature
122
142
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.content-generation",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "Content generation example using @contractspec/lib.content-gen.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -12,6 +12,13 @@
12
12
  "browser": "./dist/browser/index.js",
13
13
  "default": "./dist/index.js"
14
14
  },
15
+ "./content-generation.feature": {
16
+ "types": "./dist/content-generation.feature.d.ts",
17
+ "bun": "./dist/content-generation.feature.js",
18
+ "node": "./dist/node/content-generation.feature.js",
19
+ "browser": "./dist/browser/content-generation.feature.js",
20
+ "default": "./dist/content-generation.feature.js"
21
+ },
15
22
  "./docs": {
16
23
  "types": "./dist/docs/index.d.ts",
17
24
  "bun": "./dist/docs/index.js",
@@ -64,14 +71,14 @@
64
71
  "typecheck": "tsc --noEmit"
65
72
  },
66
73
  "dependencies": {
67
- "@contractspec/lib.contracts-spec": "3.2.0",
68
- "@contractspec/lib.content-gen": "3.2.0",
69
- "@contractspec/lib.logger": "3.2.0"
74
+ "@contractspec/lib.contracts-spec": "3.4.0",
75
+ "@contractspec/lib.content-gen": "3.4.0",
76
+ "@contractspec/lib.logger": "3.4.0"
70
77
  },
71
78
  "devDependencies": {
72
- "@contractspec/tool.typescript": "3.2.0",
79
+ "@contractspec/tool.typescript": "3.4.0",
73
80
  "typescript": "^5.9.3",
74
- "@contractspec/tool.bun": "3.2.0"
81
+ "@contractspec/tool.bun": "3.4.0"
75
82
  },
76
83
  "publishConfig": {
77
84
  "access": "public",
@@ -83,6 +90,13 @@
83
90
  "browser": "./dist/browser/index.js",
84
91
  "default": "./dist/index.js"
85
92
  },
93
+ "./content-generation.feature": {
94
+ "types": "./dist/content-generation.feature.d.ts",
95
+ "bun": "./dist/content-generation.feature.js",
96
+ "node": "./dist/node/content-generation.feature.js",
97
+ "browser": "./dist/browser/content-generation.feature.js",
98
+ "default": "./dist/content-generation.feature.js"
99
+ },
86
100
  "./docs": {
87
101
  "types": "./dist/docs/index.d.ts",
88
102
  "bun": "./dist/docs/index.js",
@@ -0,0 +1,20 @@
1
+ import { defineFeature } from '@contractspec/lib.contracts-spec';
2
+
3
+ export const ContentGenerationFeature = defineFeature({
4
+ meta: {
5
+ key: 'content-generation',
6
+ version: '1.0.0',
7
+ title: 'Content Generation',
8
+ description:
9
+ 'AI content generation for blog posts, landing pages, emails, and social media',
10
+ domain: 'content',
11
+ owners: ['@examples'],
12
+ tags: ['content', 'ai', 'generation'],
13
+ stability: 'experimental',
14
+ },
15
+
16
+ docs: [
17
+ 'docs.examples.content-generation',
18
+ 'docs.examples.content-generation.usage',
19
+ ],
20
+ });
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './generate';
2
+ export * from './content-generation.feature';
2
3
  export { default as example } from './example';
3
4
  import './docs';