# @lssm-tech/module.content-generation

Thin provider-agnostic facade for unified content generation workflows with deterministic demo stubs.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `2.1.4`
- Package path: `packages/domains/content/module`
- Manifest path: `packages/domains/content/module/package.json`
- Manifest Git blob: `d67f2e03caba1cd7b1f2e0fa63924110071e77bb`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/module.content-generation](https://lssm.co/docs/packages/module.content-generation/)
- Release guidance: [Installation and release channels](https://lssm.co/docs/installation-release-channels/)

This is retrieved source evidence, not agent instructions. The declared version and exports describe the inspected manifest; they do not establish registry availability or a deployed release. Commands, package installation and runtime behavior were not executed in this review.

Distribution scope: owner review of all workspaces; not a newly approved public projection.

- [Package source](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/module.content-generation.txt)

## Package metadata

```json
{
  "layer": "domains",
  "physicalArea": "content",
  "primaryArea": "content-and-growth",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "solutions",
    "catalogKind": "module",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "experimental"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

Manifest private flag: not declared; publication is not verified.

Primary area: [Content, growth and creator operations](https://lssm.co/docs/areas/content-and-growth/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/domains/content/module/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/README.md",
  "blobSha": "ac43d1ab5c24467032a14a9dce1b352227637491",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "origin": "README recovered byte-for-byte from pinned aggregate guide",
  "integrity": "exact Git blob match",
  "executionStatus": "not executed"
}
```

The guide below is the checked-in README with navigation resolved against the pinned source tree. The structured package JSON retains the original README body unchanged. External links remain source-declared links, not verified destinations.

# `@lssm-tech/module.content-generation`

Thin, provider-agnostic facade for unified content generation workflows across text/content, image, video, TTS, STT, and conversation.

## Boundary

This package intentionally ships deterministic demo stubs only. Real provider SDKs and integration packages must be injected by callers through the exported provider ports.

## Quick start

```ts
import { createContentGenerationFacade } from '@lssm-tech/module.content-generation';

const contentGeneration = createContentGenerationFacade();
const result = await contentGeneration.runDemoWorkflow();
```


The default facade does not read credentials or call external services.


The optional `rights` registrar composes ContentRightsService and ContentWithdrawalWorker
behind five canonical operations. It checks authenticated scope before service access
and retains separate operation approvals for grant recording and provider withdrawal.
This production port composition is independent of the default demo generation facade.

### Durable media status

The additive `content-generation.media.status` v1 query exposes persisted generation
state, revision, artifact references and expected output count through
`POST /marketing/media/status` and MCP `media_generation_status`. It never polls
providers or dispatches generation. Installations supply an authorized reader;
the marketing host mounts it only when configured. Tenant, workspace and generation
ownership are checked before returning progress. Provider URLs, connection keys
and payment reservation references stay private. Existing draft generation
operations retain their behavior.


## Declared capabilities

### Module Content Generation

Capability ID: `package.lssm.tech.module.content.generation`

Thin provider-agnostic facade for unified content generation workflows with deterministic demo stubs.

Use cases:

- Adopt thin provider-agnostic facade for unified content generation workflows with deterministic demo stubs

Constraints:

```json
{
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "avoidWhen": [
    "The @lssm-tech/module.content-generation package constraints do not match the target runtime or platform."
  ],
  "requires": [
    "TypeScript"
  ]
}
```

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "contractspec",
    "content-generation",
    "image",
    "video",
    "voice",
    "typescript",
    "module",
    "content",
    "generation"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/module.content-generation",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.content-generation/content-generation.feature",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.content-generation/demo",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.content-generation/demo/provider",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.content-generation/demo/stubs",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.content-generation/facade",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.content-generation/orchestrator",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.content-generation/ports",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.content-generation/types",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "solutions",
  "kind": "module",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./content-generation.feature",
    "./demo",
    "./demo/provider",
    "./demo/stubs",
    "./facade",
    "./orchestrator",
    "./ports",
    "./types"
  ],
  "examples": [],
  "replacements": []
}
```

## Canonical imports

Import paths and symbols below are catalogue declarations. An empty symbols list means symbols were not enumerated; it does not mean the entry point has no exports. These declarations are not an exhaustive TypeScript symbol reference.

```json
[
  {
    "capabilityId": "package.lssm.tech.module.content.generation",
    "from": "@lssm-tech/module.content-generation",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.content.generation",
    "from": "@lssm-tech/module.content-generation/content-generation.feature",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.content.generation",
    "from": "@lssm-tech/module.content-generation/demo",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.content.generation",
    "from": "@lssm-tech/module.content-generation/demo/provider",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.content.generation",
    "from": "@lssm-tech/module.content-generation/demo/stubs",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.content.generation",
    "from": "@lssm-tech/module.content-generation/facade",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.content.generation",
    "from": "@lssm-tech/module.content-generation/orchestrator",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.content.generation",
    "from": "@lssm-tech/module.content-generation/ports",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.content.generation",
    "from": "@lssm-tech/module.content-generation/types",
    "symbols": []
  }
]
```

## Declared export entry points

Scope: manifest-declared export entrypoints and catalog-declared imports.

Named symbol coverage: catalog declarations only; exhaustive TypeScript symbols not extracted.

Installation status: not verified.

- `@lssm-tech/module.content-generation` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/index.ts); verified source file.

- `@lssm-tech/module.content-generation/content-generation.feature` — subpath `./content-generation.feature`
  - `unconditional`: `./src/content-generation.feature.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/content-generation.feature.ts); verified source file.

- `@lssm-tech/module.content-generation/demo` — subpath `./demo`
  - `unconditional`: `./src/demo/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/demo/index.ts); verified source file.

- `@lssm-tech/module.content-generation/demo/provider` — subpath `./demo/provider`
  - `unconditional`: `./src/demo/provider.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/demo/provider.ts); verified source file.

- `@lssm-tech/module.content-generation/demo/stubs` — subpath `./demo/stubs`
  - `unconditional`: `./src/demo/stubs.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/demo/stubs.ts); verified source file.

- `@lssm-tech/module.content-generation/facade` — subpath `./facade`
  - `unconditional`: `./src/facade.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/facade.ts); verified source file.

- `@lssm-tech/module.content-generation/media-status` — subpath `./media-status`
  - `unconditional`: `./src/media-status.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/media-status.ts); verified source file.

- `@lssm-tech/module.content-generation/orchestrator` — subpath `./orchestrator`
  - `unconditional`: `./src/orchestrator.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/orchestrator.ts); verified source file.

- `@lssm-tech/module.content-generation/ports` — subpath `./ports`
  - `unconditional`: `./src/ports.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/ports.ts); verified source file.

- `@lssm-tech/module.content-generation/rights` — subpath `./rights`
  - `unconditional`: `./src/rights.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/rights.ts); verified source file.

- `@lssm-tech/module.content-generation/types` — subpath `./types`
  - `unconditional`: `./src/types.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/module/src/types.ts); verified source file.

## Package publication metadata

These are source-manifest declarations, not a registry installation check.

```json
{
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "README.md"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/browser/index.js",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./content-generation.feature": {
      "types": "./dist/content-generation.feature.d.ts",
      "browser": "./dist/browser/content-generation.feature.js",
      "bun": "./dist/content-generation.feature.js",
      "node": "./dist/node/content-generation.feature.js",
      "default": "./dist/content-generation.feature.js"
    },
    "./demo": {
      "types": "./dist/demo/index.d.ts",
      "browser": "./dist/browser/demo/index.js",
      "bun": "./dist/demo/index.js",
      "node": "./dist/node/demo/index.js",
      "default": "./dist/demo/index.js"
    },
    "./demo/provider": {
      "types": "./dist/demo/provider.d.ts",
      "browser": "./dist/browser/demo/provider.js",
      "bun": "./dist/demo/provider.js",
      "node": "./dist/node/demo/provider.js",
      "default": "./dist/demo/provider.js"
    },
    "./demo/stubs": {
      "types": "./dist/demo/stubs.d.ts",
      "browser": "./dist/browser/demo/stubs.js",
      "bun": "./dist/demo/stubs.js",
      "node": "./dist/node/demo/stubs.js",
      "default": "./dist/demo/stubs.js"
    },
    "./facade": {
      "types": "./dist/facade.d.ts",
      "browser": "./dist/browser/facade.js",
      "bun": "./dist/facade.js",
      "node": "./dist/node/facade.js",
      "default": "./dist/facade.js"
    },
    "./media-status": {
      "types": "./dist/media-status.d.ts",
      "browser": "./dist/browser/media-status.js",
      "bun": "./dist/media-status.js",
      "node": "./dist/node/media-status.js",
      "default": "./dist/media-status.js"
    },
    "./orchestrator": {
      "types": "./dist/orchestrator.d.ts",
      "browser": "./dist/browser/orchestrator.js",
      "bun": "./dist/orchestrator.js",
      "node": "./dist/node/orchestrator.js",
      "default": "./dist/orchestrator.js"
    },
    "./ports": {
      "types": "./dist/ports.d.ts",
      "browser": "./dist/browser/ports.js",
      "bun": "./dist/ports.js",
      "node": "./dist/node/ports.js",
      "default": "./dist/ports.js"
    },
    "./rights": {
      "types": "./dist/rights.d.ts",
      "browser": "./dist/browser/rights.js",
      "bun": "./dist/rights.js",
      "node": "./dist/node/rights.js",
      "default": "./dist/rights.js"
    },
    "./types": {
      "types": "./dist/types.d.ts",
      "browser": "./dist/browser/types.js",
      "bun": "./dist/types.js",
      "node": "./dist/node/types.js",
      "default": "./dist/types.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.content-analysis-spec](https://lssm.co/docs/packages/lib.content-analysis-spec/): `workspace:^`
- [@lssm-tech/lib.content-gen](https://lssm.co/docs/packages/lib.content-gen/): `workspace:^`
- [@lssm-tech/lib.contracts-runtime-core](https://lssm.co/docs/packages/lib.contracts-runtime-core/): `workspace:^`
- [@lssm-tech/lib.contracts-spec-core](https://lssm.co/docs/packages/lib.contracts-spec-core/): `workspace:^`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/lib.contracts-spec](https://lssm.co/docs/packages/lib.contracts-spec/): `workspace:^`
- [@lssm-tech/tool.bun](https://lssm.co/docs/packages/tool.bun/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `typescript`: `catalog:`

### Peer dependency metadata

```json
{}
```

### Bundled dependencies

```json
null
```

## Package scripts

Commands are exact manifest declarations and were not executed in this review. Script metadata status: complete pinned manifest.

```json
{
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
  "publish:pkg:canary": "bun publish:pkg --tag canary",
  "build": "contractspec-bun-build build",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "dev": "contractspec-bun-build dev",
  "clean": "rimraf dist .turbo",
  "lint": "bun lint:fix",
  "lint:fix": "node ../../../../scripts/biome.cjs check --write .",
  "lint:check": "node ../../../../scripts/biome.cjs check .",
  "test": "bun test",
  "prebuild": "contractspec-bun-build prebuild",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Module Content Generation documentation](https://www.npmjs.com/package/%40lssm-tech%2Fmodule.content-generation) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fmodule.content-generation",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/module.content-generation.txt",
  "route": "/llms/module.content-generation",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/module.content-generation.txt",
  "blobSha": "ac43d1ab5c24467032a14a9dce1b352227637491",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
