module.content-generation
Thin provider-agnostic facade for unified content generation workflows with deterministic demo stubs.
@lssm-tech/module.content-generationbun add @lssm-tech/module.content-generationManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
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
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.
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
4 declarations
@lssm-tech/lib.contracts-runtime-coreworkspace:^
Read the package manual ↗@lssm-tech/lib.contracts-spec-coreworkspace:^
Read the package manual ↗@lssm-tech/lib.content-analysis-specworkspace:^
Read the package manual ↗@lssm-tech/lib.content-genworkspace:^
Read the package manual ↗
Declared capabilities
Thin provider-agnostic facade for unified content generation workflows with deterministic demo stubs.
Scripts
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build buildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typesdevcontractspec-bun-build devcleanrimraf dist .turbolintbun lint:fixlint:fixnode ../../../../scripts/biome.cjs check --write .lint:checknode ../../../../scripts/biome.cjs check .testbun testprebuildcontractspec-bun-build prebuildtypechecktsgo --noEmit