@lssm/example.content-generation 1.41.0 → 1.42.2

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,25 @@
1
+ $ tsdown
2
+ ℹ tsdown v0.18.3 powered by rolldown v1.0.0-beta.57
3
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/content-generation/tsdown.config.js
4
+ ℹ entry: src/example.ts, src/generate.ts, src/index.ts, src/docs/content-generation.docblock.ts, src/docs/index.ts
5
+ ℹ target: esnext
6
+ ℹ tsconfig: tsconfig.json
7
+ ℹ Build start
8
+ ℹ Cleaning 16 files
9
+ ℹ dist/generate.js 1.79 kB │ gzip: 0.90 kB
10
+ ℹ dist/docs/content-generation.docblock.js 1.36 kB │ gzip: 0.69 kB
11
+ ℹ dist/example.js 0.82 kB │ gzip: 0.43 kB
12
+ ℹ dist/index.js 0.20 kB │ gzip: 0.13 kB
13
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
14
+ ℹ dist/generate.js.map 2.85 kB │ gzip: 1.30 kB
15
+ ℹ dist/docs/content-generation.docblock.js.map 1.85 kB │ gzip: 0.88 kB
16
+ ℹ dist/example.js.map 1.18 kB │ gzip: 0.59 kB
17
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
18
+ ℹ dist/generate.d.ts.map 0.14 kB │ gzip: 0.13 kB
19
+ ℹ dist/example.d.ts 1.06 kB │ gzip: 0.43 kB
20
+ ℹ dist/generate.d.ts 0.18 kB │ gzip: 0.15 kB
21
+ ℹ dist/index.d.ts 0.14 kB │ gzip: 0.10 kB
22
+ ℹ dist/docs/content-generation.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
23
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
24
+ ℹ 15 files, total: 11.78 kB
25
+ ✔ Build complete in 13503ms
@@ -1,16 +1,26 @@
1
- $ bun build:bundle && bun build:types
1
+ $ bun build:types && bun build:bundle
2
+ $ tsc --noEmit
2
3
  $ tsdown
3
- ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
+ ℹ tsdown v0.18.3 powered by rolldown v1.0.0-beta.57
4
5
  ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/content-generation/tsdown.config.js
5
6
  ℹ entry: src/example.ts, src/generate.ts, src/index.ts, src/docs/content-generation.docblock.ts, src/docs/index.ts
6
7
  ℹ target: esnext
7
8
  ℹ tsconfig: tsconfig.json
8
9
  ℹ Build start
9
- ℹ dist/generate.js 1.34 kB │ gzip: 0.78 kB
10
- ℹ dist/docs/content-generation.docblock.js 1.15 kB │ gzip: 0.62 kB
11
- ℹ dist/example.js 0.57 kB │ gzip: 0.33 kB
12
- ℹ dist/index.js 0.17 kB │ gzip: 0.12 kB
13
- ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
14
- ℹ 5 files, total: 3.26 kB
15
- ✔ Build complete in 30ms
16
- $ tsc --noEmit
10
+ ℹ dist/generate.js 1.79 kB │ gzip: 0.90 kB
11
+ ℹ dist/docs/content-generation.docblock.js 1.36 kB │ gzip: 0.69 kB
12
+ ℹ dist/example.js 0.82 kB │ gzip: 0.43 kB
13
+ ℹ dist/index.js 0.20 kB │ gzip: 0.13 kB
14
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
15
+ ℹ dist/generate.js.map 2.85 kB │ gzip: 1.30 kB
16
+ ℹ dist/docs/content-generation.docblock.js.map 1.85 kB │ gzip: 0.88 kB
17
+ ℹ dist/example.js.map 1.18 kB │ gzip: 0.59 kB
18
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
19
+ ℹ dist/generate.d.ts.map 0.14 kB │ gzip: 0.13 kB
20
+ ℹ dist/example.d.ts 1.06 kB │ gzip: 0.43 kB
21
+ ℹ dist/generate.d.ts 0.18 kB │ gzip: 0.15 kB
22
+ ℹ dist/index.d.ts 0.14 kB │ gzip: 0.10 kB
23
+ ℹ dist/docs/content-generation.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
24
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
25
+ ℹ 15 files, total: 11.78 kB
26
+ ✔ Build complete in 16062ms
package/CHANGELOG.md ADDED
@@ -0,0 +1,37 @@
1
+ # @lssm/example.content-generation
2
+
3
+ ## 1.42.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f9ac4c: fix
8
+ - Updated dependencies [1f9ac4c]
9
+ - @lssm/lib.content-gen@1.42.2
10
+ - @lssm/lib.contracts@1.42.2
11
+ - @lssm/lib.logger@1.42.2
12
+ - @lssm/lib.schema@1.42.2
13
+
14
+ ## 1.42.1
15
+
16
+ ### Patch Changes
17
+
18
+ - f043995: Fix release
19
+ - Updated dependencies [f043995]
20
+ - @lssm/lib.content-gen@1.42.1
21
+ - @lssm/lib.contracts@1.42.1
22
+ - @lssm/lib.logger@1.42.1
23
+ - @lssm/lib.schema@1.42.1
24
+
25
+ ## 1.42.0
26
+
27
+ ### Minor Changes
28
+
29
+ - 8eefd9c: initial release
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [8eefd9c]
34
+ - @lssm/lib.content-gen@1.42.0
35
+ - @lssm/lib.contracts@1.42.0
36
+ - @lssm/lib.logger@1.42.0
37
+ - @lssm/lib.schema@1.42.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Content Generation Example
2
2
 
3
+ Website: https://contractspec.lssm.tech/
4
+
5
+
3
6
  Shows how to take a ContractSpec content brief and produce marketing assets with `@lssm/lib.content-gen`.
4
7
 
5
8
  ## Generates
@@ -0,0 +1 @@
1
+ export { };
@@ -1,16 +1,29 @@
1
- import{registerDocBlocks as e}from"@lssm/lib.contracts/docs";e([{id:`docs.examples.content-generation`,title:`Content Generation (example)`,summary:`Generate a consistent set of marketing assets from a typed ContentBrief (blog, landing hero, email, social, SEO).`,kind:`reference`,visibility:`public`,route:`/docs/examples/content-generation`,tags:[`content`,`marketing`,`example`],body:`## What this example shows
2
- - A spec-first-ish interface for content brief inputs (typed, validated).
3
- - Deterministic orchestration of generators (same input → same structure).
1
+ import { registerDocBlocks } from "@lssm/lib.contracts/docs";
4
2
 
5
- ## Outputs
6
- - Blog intro
7
- - Landing hero
8
- - Email subject/body
9
- - Social post bodies
10
- - SEO metadata`},{id:`docs.examples.content-generation.usage`,title:`Content Generation — Usage`,summary:`How to run the example and extend the brief.`,kind:`usage`,visibility:`public`,route:`/docs/examples/content-generation/usage`,tags:[`content`,`usage`],body:`## Usage
11
- - Call \`runContentGenerationExample()\`.
12
- - Modify the \`ContentBrief\` fields to drive different outputs.
3
+ //#region src/docs/content-generation.docblock.ts
4
+ registerDocBlocks([{
5
+ id: "docs.examples.content-generation",
6
+ title: "Content Generation (example)",
7
+ summary: "Generate a consistent set of marketing assets from a typed ContentBrief (blog, landing hero, email, social, SEO).",
8
+ kind: "reference",
9
+ visibility: "public",
10
+ route: "/docs/examples/content-generation",
11
+ tags: [
12
+ "content",
13
+ "marketing",
14
+ "example"
15
+ ],
16
+ body: `## What this example shows\n- A spec-first-ish interface for content brief inputs (typed, validated).\n- Deterministic orchestration of generators (same input → same structure).\n\n## Outputs\n- Blog intro\n- Landing hero\n- Email subject/body\n- Social post bodies\n- SEO metadata`
17
+ }, {
18
+ id: "docs.examples.content-generation.usage",
19
+ title: "Content Generation — Usage",
20
+ summary: "How to run the example and extend the brief.",
21
+ kind: "usage",
22
+ visibility: "public",
23
+ route: "/docs/examples/content-generation/usage",
24
+ tags: ["content", "usage"],
25
+ body: `## Usage\n- Call \`runContentGenerationExample()\`.\n- Modify the \`ContentBrief\` fields to drive different outputs.\n\n## Guardrails\n- Avoid PII in briefs.\n- Keep output logging structured; no raw \`console.log\` in library code.`
26
+ }]);
13
27
 
14
- ## Guardrails
15
- - Avoid PII in briefs.
16
- - Keep output logging structured; no raw \`console.log\` in library code.`}]);
28
+ //#endregion
29
+ //# sourceMappingURL=content-generation.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-generation.docblock.js","names":[],"sources":["../../src/docs/content-generation.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@lssm/lib.contracts/docs';\nimport { registerDocBlocks } from '@lssm/lib.contracts/docs';\n\nconst blocks: DocBlock[] = [\n {\n id: 'docs.examples.content-generation',\n title: 'Content Generation (example)',\n summary:\n 'Generate a consistent set of marketing assets from a typed ContentBrief (blog, landing hero, email, social, SEO).',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/content-generation',\n tags: ['content', 'marketing', 'example'],\n body: `## What this example shows\\n- A spec-first-ish interface for content brief inputs (typed, validated).\\n- Deterministic orchestration of generators (same input → same structure).\\n\\n## Outputs\\n- Blog intro\\n- Landing hero\\n- Email subject/body\\n- Social post bodies\\n- SEO metadata`,\n },\n {\n id: 'docs.examples.content-generation.usage',\n title: 'Content Generation — Usage',\n summary: 'How to run the example and extend the brief.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/content-generation/usage',\n tags: ['content', 'usage'],\n body: `## Usage\\n- Call \\`runContentGenerationExample()\\`.\\n- Modify the \\`ContentBrief\\` fields to drive different outputs.\\n\\n## Guardrails\\n- Avoid PII in briefs.\\n- Keep output logging structured; no raw \\`console.log\\` in library code.`,\n },\n];\n\nregisterDocBlocks(blocks);\n"],"mappings":";;;AA2BA,kBAxB2B,CACzB;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAW;EAAa;EAAU;CACzC,MAAM;CACP,EACD;CACE,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM,CAAC,WAAW,QAAQ;CAC1B,MAAM;CACP,CACF,CAEwB"}
@@ -0,0 +1 @@
1
+ export { };
@@ -1 +1 @@
1
- import"./content-generation.docblock.js";
1
+ import "./content-generation.docblock.js";
@@ -0,0 +1,34 @@
1
+ //#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 @lssm/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: "@lssm/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
+ };
32
+ //#endregion
33
+ export { example as default };
34
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EAsBI,EAAA,oBAAA"}
package/dist/example.js CHANGED
@@ -1 +1,39 @@
1
- var e={id:`content-generation`,title:`Content Generation`,summary:`Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @lssm/lib.content-gen.`,tags:[`content`,`marketing`,`generation`,`ai`],kind:`script`,visibility:`public`,docs:{rootDocId:`docs.examples.content-generation`,usageDocId:`docs.examples.content-generation.usage`},entrypoints:{packageName:`@lssm/example.content-generation`,docs:`./docs`},surfaces:{templates:!0,sandbox:{enabled:!0,modes:[`markdown`]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}};export{e as default};
1
+ //#region src/example.ts
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 @lssm/lib.content-gen.",
6
+ tags: [
7
+ "content",
8
+ "marketing",
9
+ "generation",
10
+ "ai"
11
+ ],
12
+ kind: "script",
13
+ visibility: "public",
14
+ docs: {
15
+ rootDocId: "docs.examples.content-generation",
16
+ usageDocId: "docs.examples.content-generation.usage"
17
+ },
18
+ entrypoints: {
19
+ packageName: "@lssm/example.content-generation",
20
+ docs: "./docs"
21
+ },
22
+ surfaces: {
23
+ templates: true,
24
+ sandbox: {
25
+ enabled: true,
26
+ modes: ["markdown"]
27
+ },
28
+ studio: {
29
+ enabled: true,
30
+ installable: true
31
+ },
32
+ mcp: { enabled: true }
33
+ }
34
+ };
35
+ var example_default = example;
36
+
37
+ //#endregion
38
+ export { example_default as default };
39
+ //# sourceMappingURL=example.js.map
@@ -0,0 +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 @lssm/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: '@lssm/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"}
@@ -0,0 +1,5 @@
1
+ //#region src/generate.d.ts
2
+ declare function runContentGenerationExample(): Promise<void>;
3
+ //#endregion
4
+ export { runContentGenerationExample };
5
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","names":[],"sources":["../src/generate.ts"],"sourcesContent":[],"mappings":";iBAkBsB,2BAAA,CAAA,GAA+B"}
package/dist/generate.js CHANGED
@@ -1 +1,48 @@
1
- import{BlogGenerator as e,EmailCampaignGenerator as t,LandingPageGenerator as n,SocialPostGenerator as r}from"@lssm/lib.content-gen/generators";import{SeoOptimizer as i}from"@lssm/lib.content-gen/seo";import{LogLevel as a,Logger as o}from"@lssm/lib.logger";const s=new o({level:process.env.NODE_ENV===`production`?a.INFO:a.DEBUG,environment:process.env.NODE_ENV||`development`,enableColors:process.env.NODE_ENV!==`production`});async function c(){let a={title:`AI-Native Operations Copilot`,summary:`Automates support resolutions, growth playbooks, and DevOps rituals.`,problems:[`Support queues pile up after hours`,`Growth teams lack fresh experiments`],solutions:[`Stateful AI agents grounded in your knowledge spaces`,`CI-safe approval workflows for human review`,`Analytics + experimentation stack built into ContractSpec`],metrics:[`80% auto-resolution rate`,`10+ experiments shipped weekly`],audience:{role:`COO`,industry:`Fintech`,maturity:`scaleup`},callToAction:`Book a 15‑minute pilot run`},o=await new e().generate(a),c=await new n().generate(a),l=await new t().generate({brief:a,variant:`announcement`}),u=await new r().generate(a),d=new i().optimize(a);s.info(`Generated content assets`,{blogIntro:o.intro,landingHero:c.hero,emailSubject:l.subject,socialPosts:u.map(e=>e.body),seo:d})}export{c as runContentGenerationExample};
1
+ import { BlogGenerator, EmailCampaignGenerator, LandingPageGenerator, SocialPostGenerator } from "@lssm/lib.content-gen/generators";
2
+ import { SeoOptimizer } from "@lssm/lib.content-gen/seo";
3
+ import { LogLevel, Logger } from "@lssm/lib.logger";
4
+
5
+ //#region src/generate.ts
6
+ const logger = new Logger({
7
+ level: process.env.NODE_ENV === "production" ? LogLevel.INFO : LogLevel.DEBUG,
8
+ environment: process.env.NODE_ENV || "development",
9
+ enableColors: process.env.NODE_ENV !== "production"
10
+ });
11
+ async function runContentGenerationExample() {
12
+ const brief = {
13
+ title: "AI-Native Operations Copilot",
14
+ summary: "Automates support resolutions, growth playbooks, and DevOps rituals.",
15
+ problems: ["Support queues pile up after hours", "Growth teams lack fresh experiments"],
16
+ solutions: [
17
+ "Stateful AI agents grounded in your knowledge spaces",
18
+ "CI-safe approval workflows for human review",
19
+ "Analytics + experimentation stack built into ContractSpec"
20
+ ],
21
+ metrics: ["80% auto-resolution rate", "10+ experiments shipped weekly"],
22
+ audience: {
23
+ role: "COO",
24
+ industry: "Fintech",
25
+ maturity: "scaleup"
26
+ },
27
+ callToAction: "Book a 15‑minute pilot run"
28
+ };
29
+ const blog = await new BlogGenerator().generate(brief);
30
+ const landing = await new LandingPageGenerator().generate(brief);
31
+ const email = await new EmailCampaignGenerator().generate({
32
+ brief,
33
+ variant: "announcement"
34
+ });
35
+ const social = await new SocialPostGenerator().generate(brief);
36
+ const seo = new SeoOptimizer().optimize(brief);
37
+ logger.info("Generated content assets", {
38
+ blogIntro: blog.intro,
39
+ landingHero: landing.hero,
40
+ emailSubject: email.subject,
41
+ socialPosts: social.map((post) => post.body),
42
+ seo
43
+ });
44
+ }
45
+
46
+ //#endregion
47
+ export { runContentGenerationExample };
48
+ //# sourceMappingURL=generate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.js","names":["brief: ContentBrief"],"sources":["../src/generate.ts"],"sourcesContent":["import {\n BlogGenerator,\n EmailCampaignGenerator,\n LandingPageGenerator,\n SocialPostGenerator,\n} from '@lssm/lib.content-gen/generators';\nimport { SeoOptimizer } from '@lssm/lib.content-gen/seo';\nimport type { ContentBrief } from '@lssm/lib.content-gen';\nimport { Logger, LogLevel } from '@lssm/lib.logger';\nimport type { LoggerConfig } from '@lssm/lib.logger/types';\n\nconst logger = new Logger({\n level: process.env.NODE_ENV === 'production' ? LogLevel.INFO : LogLevel.DEBUG,\n environment:\n (process.env.NODE_ENV as LoggerConfig['environment']) || 'development',\n enableColors: process.env.NODE_ENV !== 'production',\n});\n\nexport async function runContentGenerationExample(): Promise<void> {\n const brief: ContentBrief = {\n title: 'AI-Native Operations Copilot',\n summary:\n 'Automates support resolutions, growth playbooks, and DevOps rituals.',\n problems: [\n 'Support queues pile up after hours',\n 'Growth teams lack fresh experiments',\n ],\n solutions: [\n 'Stateful AI agents grounded in your knowledge spaces',\n 'CI-safe approval workflows for human review',\n 'Analytics + experimentation stack built into ContractSpec',\n ],\n metrics: ['80% auto-resolution rate', '10+ experiments shipped weekly'],\n audience: { role: 'COO', industry: 'Fintech', maturity: 'scaleup' },\n callToAction: 'Book a 15‑minute pilot run',\n };\n\n const blog = await new BlogGenerator().generate(brief);\n const landing = await new LandingPageGenerator().generate(brief);\n const email = await new EmailCampaignGenerator().generate({\n brief,\n variant: 'announcement',\n });\n const social = await new SocialPostGenerator().generate(brief);\n const seo = new SeoOptimizer().optimize(brief);\n\n logger.info('Generated content assets', {\n blogIntro: blog.intro,\n landingHero: landing.hero,\n emailSubject: email.subject,\n socialPosts: social.map((post) => post.body),\n seo,\n });\n}\n"],"mappings":";;;;;AAWA,MAAM,SAAS,IAAI,OAAO;CACxB,OAAO,QAAQ,IAAI,aAAa,eAAe,SAAS,OAAO,SAAS;CACxE,aACG,QAAQ,IAAI,YAA4C;CAC3D,cAAc,QAAQ,IAAI,aAAa;CACxC,CAAC;AAEF,eAAsB,8BAA6C;CACjE,MAAMA,QAAsB;EAC1B,OAAO;EACP,SACE;EACF,UAAU,CACR,sCACA,sCACD;EACD,WAAW;GACT;GACA;GACA;GACD;EACD,SAAS,CAAC,4BAA4B,iCAAiC;EACvE,UAAU;GAAE,MAAM;GAAO,UAAU;GAAW,UAAU;GAAW;EACnE,cAAc;EACf;CAED,MAAM,OAAO,MAAM,IAAI,eAAe,CAAC,SAAS,MAAM;CACtD,MAAM,UAAU,MAAM,IAAI,sBAAsB,CAAC,SAAS,MAAM;CAChE,MAAM,QAAQ,MAAM,IAAI,wBAAwB,CAAC,SAAS;EACxD;EACA,SAAS;EACV,CAAC;CACF,MAAM,SAAS,MAAM,IAAI,qBAAqB,CAAC,SAAS,MAAM;CAC9D,MAAM,MAAM,IAAI,cAAc,CAAC,SAAS,MAAM;AAE9C,QAAO,KAAK,4BAA4B;EACtC,WAAW,KAAK;EAChB,aAAa,QAAQ;EACrB,cAAc,MAAM;EACpB,aAAa,OAAO,KAAK,SAAS,KAAK,KAAK;EAC5C;EACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import example from "./example.js";
2
+ import { runContentGenerationExample } from "./generate.js";
3
+ export { example, runContentGenerationExample };
package/dist/index.js CHANGED
@@ -1 +1,5 @@
1
- import e from"./example.js";import{runContentGenerationExample as t}from"./generate.js";import"./docs/index.js";export{e as example,t as runContentGenerationExample};
1
+ import example_default from "./example.js";
2
+ import { runContentGenerationExample } from "./generate.js";
3
+ import "./docs/index.js";
4
+
5
+ export { example_default as example, runContentGenerationExample };
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "@lssm/example.content-generation",
3
- "version": "1.41.0",
3
+ "version": "1.42.2",
4
4
  "description": "Content generation example using @lssm/lib.content-gen.",
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/content-generation.docblock": "./src/docs/content-generation.docblock.ts",
12
- "./example": "./src/example.ts",
13
- "./generate": "./src/generate.ts",
9
+ ".": "./dist/index.js",
10
+ "./docs": "./dist/docs/index.js",
11
+ "./docs/content-generation.docblock": "./dist/docs/content-generation.docblock.js",
12
+ "./example": "./dist/example.js",
13
+ "./generate": "./dist/generate.js",
14
14
  "./*": "./*"
15
15
  },
16
16
  "scripts": {
17
- "build": "bun build:bundle && bun build:types",
17
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
18
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
19
+ "build": "bun build:types && bun build:bundle",
18
20
  "build:bundle": "tsdown",
19
21
  "build:types": "tsc --noEmit",
20
22
  "dev": "bun build:bundle --watch",
@@ -25,14 +27,15 @@
25
27
  "test": "bun test"
26
28
  },
27
29
  "dependencies": {
28
- "@lssm/lib.content-gen": "workspace:*",
29
- "@lssm/lib.contracts": "workspace:*",
30
- "@lssm/lib.logger": "workspace:*"
30
+ "@lssm/lib.schema": "1.42.2",
31
+ "@lssm/lib.contracts": "1.42.2",
32
+ "@lssm/lib.content-gen": "1.42.2",
33
+ "@lssm/lib.logger": "1.42.2"
31
34
  },
32
35
  "devDependencies": {
33
- "@lssm/tool.tsdown": "workspace:*",
34
- "@lssm/tool.typescript": "workspace:*",
35
- "tsdown": "^0.17.4",
36
+ "@lssm/tool.tsdown": "1.42.2",
37
+ "@lssm/tool.typescript": "1.42.2",
38
+ "tsdown": "^0.18.3",
36
39
  "typescript": "^5.9.3"
37
40
  },
38
41
  "publishConfig": {
@@ -44,7 +47,14 @@
44
47
  "./example": "./dist/example.js",
45
48
  "./generate": "./dist/generate.js",
46
49
  "./*": "./*"
47
- }
50
+ },
51
+ "registry": "https://registry.npmjs.org/"
48
52
  },
49
- "module": "./dist/index.js"
53
+ "module": "./dist/index.js",
54
+ "license": "MIT",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "https://github.com/lssm-tech/contractspec.git",
58
+ "directory": "packages/examples/content-generation"
59
+ }
50
60
  }