# @lssm-tech/lib.content-gen

AI-powered content generation for blog, email, and social

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `5.1.4`
- Package path: `packages/domains/content/content-gen`
- Manifest path: `packages/domains/content/content-gen/package.json`
- Manifest Git blob: `adf54825f6f174fbe9e548a1a404026ff623be37`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/lib.content-gen](https://lssm.co/docs/packages/lib.content-gen/)
- 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/content-gen)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/lib.content-gen.txt)

## Package metadata

```json
{
  "layer": "domains",
  "physicalArea": "content",
  "primaryArea": "content-and-growth",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "sharedLibs",
    "catalogKind": "library",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "stable"
  },
  "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/content-gen/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/README.md",
  "blobSha": "dfd2d8b0e5ed74f538d372896b991da6e31e23c0",
  "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/lib.content-gen

Website: https://contractspec.io

**AI-powered content generation for blog, email, and social.**

## What It Provides

- **Layer**: lib.
- **Consumers**: image-gen, voice, video-gen, bundles.
- Related ContractSpec packages include `@lssm-tech/lib.ai-providers`, `@lssm-tech/lib.contracts-integrations`, `@lssm-tech/lib.contracts-spec`, `@lssm-tech/tool.bun`, `@lssm-tech/tool.typescript`.
- Related ContractSpec packages include `@lssm-tech/lib.ai-providers`, `@lssm-tech/lib.contracts-integrations`, `@lssm-tech/lib.contracts-spec`, `@lssm-tech/tool.bun`, `@lssm-tech/tool.typescript`.

## Installation

`npm install @lssm-tech/lib.content-gen`

or

`bun add @lssm-tech/lib.content-gen`

## Usage

Import the root entrypoint from `@lssm-tech/lib.content-gen`, or choose a documented subpath when you only need one part of the package surface.

`SocialPostGenerator` drafts LinkedIn content without requiring a connected
LinkedIn account. LLM JSON is parsed through `parseSocialPosts`; malformed
posts, unsafe links, invalid channels, and invalid hashtags are discarded
before a caller can approve or publish them through the separate LinkedIn
provider runtime.

The optimization surfaces distinguish generative-engine optimization (`./geo`)
from local-market adaptation (`./geographic`). `./social-optimization` provides
deterministic platform checks. All three return reports; they do not publish or
make campaign decisions.

## Architecture

- `src/generators` is part of the package's public or composition surface.
- `src/i18n` is part of the package's public or composition surface.
- `src/index.ts` is the root public barrel and package entrypoint.
- `src/seo` is part of the package's public or composition surface.
- `src/types.ts` is shared public type definitions.

## Public Entry Points

- Export `.` resolves through `./src/index.ts`.
- Export `./generators` resolves through `./src/generators/index.ts`.
- Export `./generators/blog` resolves through `./src/generators/blog.ts`.
- Export `./generators/email` resolves through `./src/generators/email.ts`.
- Export `./generators/landing-page` resolves through `./src/generators/landing-page.ts`.
- Export `./generators/social` resolves through `./src/generators/social.ts`.
- Export `./i18n` resolves through `./src/i18n/index.ts`.
- Export `./i18n/catalogs` resolves through `./src/i18n/catalogs/index.ts`.
- Export `./i18n/catalogs/en` resolves through `./src/i18n/catalogs/en.ts`.
- Export `./i18n/catalogs/es` resolves through `./src/i18n/catalogs/es.ts`.
- The package publishes 17 total export subpaths; keep docs aligned with `package.json`.

## Local Commands

- `bun run dev` — contractspec-bun-build dev
- `bun run build` — contractspec-bun-build build
- `bun run test` — bun test --pass-with-no-tests
- `bun run lint` — bun lint:fix
- `bun run lint:check` — biome check .
- `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
- `bun run typecheck` — tsgo --noEmit
- `bun run publish:pkg` — bun publish --tolerate-republish --ignore-scripts --verbose
- `bun run publish:pkg:canary` — bun publish:pkg --tag canary
- `bun run clean` — rimraf dist .turbo
- `bun run build:bundle` — contractspec-bun-build transpile
- `bun run build:types` — contractspec-bun-build types
- `bun run prebuild` — contractspec-bun-build prebuild

## Recent Updates

- Replace eslint+prettier by biomejs to optimize speed.
- Resolve lint, build, and test failures across voice, workspace, library, and composio.
- Add first-class transport, auth, versioning, and BYOK support across all integrations.
- Add AI provider ranking system with ranking-driven model selection.
- Add full i18n support across all 10 packages (en/fr/es, 460 keys).

## Notes

Use `./generators/marketing-copy` for strictly parsed, review-required drafts across
ads, blogs, landing pages, LinkedIn and X. It requires an explicit qualified LLM,
brand revision, brief and clock; it has no silent fallback to fabricated output.

Use `./media/workflow` for durable asynchronous generation with explicit authority,
idempotent cost reservation, storage, provider and asset-import ports. It persists
provider job IDs before importing assets and can resume after import failure.
An uncertain submission without a job ID remains unresolved and is not resubmitted.

`./generators/marketing-plan` provides durable goal-to-plan generation. It reserves
a request ID before inference, validates suggested inputs against registered operation
schemas, derives approval requirements from those contracts, and never executes
suggested work. Hosts authorize inference cost, sanitize knowledge, validate referenced
resources and own proposal storage. Missing prerequisites become reviewable questions.

- Generator interface is shared across media libs (image-gen, voice, video-gen); keep it stable.
- i18n keys must stay in sync with consuming packages.


`media/rights` provides ContentRightsService for scoped asset/likeness/voice/music/paid
amplification permissions. The service authorizes grant, use, revocation and withdrawal
actions through host policy. Revocation atomically queues existing uses for withdrawal
and blocks future registration. Host execution must recheck current rights immediately
before provider use; registration alone is not a publishing mandate.


`media/withdrawal` provides ContentWithdrawalWorker. It authorizes removal, persists a
claim before the first provider call, and uses read-only reconciliation thereafter.
Missing or ambiguous receipts remain unknown. Confirmed/unavailable outcomes require
evidence and update the registered use atomically. Provider adapters must independently
verify publication ownership and current removal authority.


The native X withdrawal integration test exercises the complete rights-to-removal path
through SQL claims, a lost DELETE response and read-only absence confirmation. No second
DELETE is sent. Native HTTP responses remain simulated pending account qualification.


Call `assertRegisteredUse` immediately before provider use to re-read the current grant
and withdrawal state. A previously registered use is rejected after revocation. The
check supplements, rather than grants, publication/generation authority; it is not a
lease over a later external request.


MediaGenerationWorkflow persists each completed output import immediately. Running jobs may expose a partial ordered artifactRefs prefix after later ingestion fails. Recovery reuses the idempotent ingestor and rejects changed artifact identities without issuing another paid generation.


Completed provider output cardinality is persisted before ingestion. Later polling cannot shrink or expand that set; partial imports cannot become falsely complete because an output disappears from a response.


Media workflow callbacks receive isolated request/generation snapshots. Returned persisted generation records are parsed before use, and mutations by authorization/provider/storage adapters cannot alter the approved request or in-flight job identity.


Use MediaGenerationWorkflow.get for authorized persisted status and partial artifact inspection without provider calls. Use refresh only when explicitly reconciling provider progress and ingesting completed outputs.


## Declared capabilities

### Lib Content Gen

Capability ID: `package.lssm.tech.lib.content.gen`

AI-powered content generation for blog, email, and social

Use cases:

- Adopt ai-powered content generation for blog, email, and social

Constraints:

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

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "contractspec",
    "content",
    "ai",
    "generation",
    "seo",
    "typescript",
    "lib",
    "gen"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/lib.content-gen",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/content-gen.feature",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/generators",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/generators/blog",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/generators/email",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/generators/landing-page",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/generators/social",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/geo",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/geo/optimizer",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/geographic",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/geographic/optimizer",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.content-gen/i18n",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "sharedLibs",
  "kind": "library",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./content-gen.feature",
    "./generators",
    "./generators/blog",
    "./generators/email",
    "./generators/landing-page",
    "./generators/social",
    "./geo",
    "./geo/optimizer",
    "./geographic",
    "./geographic/optimizer",
    "./i18n",
    "./i18n/catalogs",
    "./i18n/catalogs/en",
    "./i18n/catalogs/es",
    "./i18n/catalogs/fr",
    "./i18n/keys",
    "./i18n/locale",
    "./i18n/messages",
    "./llmo",
    "./llmo/emitter",
    "./llmo/optimizer",
    "./seo",
    "./seo/optimizer",
    "./social-optimization",
    "./social-optimization/optimizer",
    "./types",
    "./generators/marketing-copy",
    "./media/workflow",
    "./generators/marketing-plan"
  ],
  "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.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/content-gen.feature",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/generators",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/generators/blog",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/generators/email",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/generators/landing-page",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/generators/social",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/geo",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/geo/optimizer",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/geographic",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/geographic/optimizer",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.content.gen",
    "from": "@lssm-tech/lib.content-gen/i18n",
    "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/lib.content-gen` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/src/index.ts); verified source file.

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

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

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

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

- `@lssm-tech/lib.content-gen/generators/landing-page` — subpath `./generators/landing-page`
  - `unconditional`: `./src/generators/landing-page.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/src/generators/landing-page.ts); verified source file.

- `@lssm-tech/lib.content-gen/generators/marketing-copy` — subpath `./generators/marketing-copy`
  - `unconditional`: `./src/generators/marketing-copy.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/src/generators/marketing-copy.ts); verified source file.

- `@lssm-tech/lib.content-gen/generators/marketing-plan` — subpath `./generators/marketing-plan`
  - `unconditional`: `./src/generators/marketing-plan.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/src/generators/marketing-plan.ts); verified source file.

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

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

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

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

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

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

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

- `@lssm-tech/lib.content-gen/i18n/catalogs/en` — subpath `./i18n/catalogs/en`
  - `unconditional`: `./src/i18n/catalogs/en.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/src/i18n/catalogs/en.ts); verified source file.

- `@lssm-tech/lib.content-gen/i18n/catalogs/es` — subpath `./i18n/catalogs/es`
  - `unconditional`: `./src/i18n/catalogs/es.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/src/i18n/catalogs/es.ts); verified source file.

- `@lssm-tech/lib.content-gen/i18n/catalogs/fr` — subpath `./i18n/catalogs/fr`
  - `unconditional`: `./src/i18n/catalogs/fr.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/src/i18n/catalogs/fr.ts); verified source file.

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

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

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

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

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

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

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

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

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

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

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

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

- `@lssm-tech/lib.content-gen/social-optimization/optimizer` — subpath `./social-optimization/optimizer`
  - `unconditional`: `./src/social-optimization/optimizer.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/src/social-optimization/optimizer.ts); verified source file.

- `@lssm-tech/lib.content-gen/types` — subpath `./types`
  - `unconditional`: `./src/types.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/content/content-gen/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-gen.feature": {
      "types": "./dist/content-gen.feature.d.ts",
      "browser": "./dist/browser/content-gen.feature.js",
      "bun": "./dist/content-gen.feature.js",
      "node": "./dist/node/content-gen.feature.js",
      "default": "./dist/content-gen.feature.js"
    },
    "./generators": {
      "types": "./dist/generators/index.d.ts",
      "browser": "./dist/browser/generators/index.js",
      "bun": "./dist/generators/index.js",
      "node": "./dist/node/generators/index.js",
      "default": "./dist/generators/index.js"
    },
    "./generators/blog": {
      "types": "./dist/generators/blog.d.ts",
      "browser": "./dist/browser/generators/blog.js",
      "bun": "./dist/generators/blog.js",
      "node": "./dist/node/generators/blog.js",
      "default": "./dist/generators/blog.js"
    },
    "./generators/email": {
      "types": "./dist/generators/email.d.ts",
      "browser": "./dist/browser/generators/email.js",
      "bun": "./dist/generators/email.js",
      "node": "./dist/node/generators/email.js",
      "default": "./dist/generators/email.js"
    },
    "./generators/landing-page": {
      "types": "./dist/generators/landing-page.d.ts",
      "browser": "./dist/browser/generators/landing-page.js",
      "bun": "./dist/generators/landing-page.js",
      "node": "./dist/node/generators/landing-page.js",
      "default": "./dist/generators/landing-page.js"
    },
    "./generators/marketing-copy": {
      "types": "./dist/generators/marketing-copy.d.ts",
      "browser": "./dist/browser/generators/marketing-copy.js",
      "bun": "./dist/generators/marketing-copy.js",
      "node": "./dist/node/generators/marketing-copy.js",
      "default": "./dist/generators/marketing-copy.js"
    },
    "./generators/marketing-plan": {
      "types": "./dist/generators/marketing-plan.d.ts",
      "browser": "./dist/browser/generators/marketing-plan.js",
      "bun": "./dist/generators/marketing-plan.js",
      "node": "./dist/node/generators/marketing-plan.js",
      "default": "./dist/generators/marketing-plan.js"
    },
    "./generators/social": {
      "types": "./dist/generators/social.d.ts",
      "browser": "./dist/browser/generators/social.js",
      "bun": "./dist/generators/social.js",
      "node": "./dist/node/generators/social.js",
      "default": "./dist/generators/social.js"
    },
    "./geo": {
      "types": "./dist/geo/index.d.ts",
      "browser": "./dist/browser/geo/index.js",
      "bun": "./dist/geo/index.js",
      "node": "./dist/node/geo/index.js",
      "default": "./dist/geo/index.js"
    },
    "./geo/optimizer": {
      "types": "./dist/geo/optimizer.d.ts",
      "browser": "./dist/browser/geo/optimizer.js",
      "bun": "./dist/geo/optimizer.js",
      "node": "./dist/node/geo/optimizer.js",
      "default": "./dist/geo/optimizer.js"
    },
    "./geographic": {
      "types": "./dist/geographic/index.d.ts",
      "browser": "./dist/browser/geographic/index.js",
      "bun": "./dist/geographic/index.js",
      "node": "./dist/node/geographic/index.js",
      "default": "./dist/geographic/index.js"
    },
    "./geographic/optimizer": {
      "types": "./dist/geographic/optimizer.d.ts",
      "browser": "./dist/browser/geographic/optimizer.js",
      "bun": "./dist/geographic/optimizer.js",
      "node": "./dist/node/geographic/optimizer.js",
      "default": "./dist/geographic/optimizer.js"
    },
    "./i18n": {
      "types": "./dist/i18n/index.d.ts",
      "browser": "./dist/browser/i18n/index.js",
      "bun": "./dist/i18n/index.js",
      "node": "./dist/node/i18n/index.js",
      "default": "./dist/i18n/index.js"
    },
    "./i18n/catalogs": {
      "types": "./dist/i18n/catalogs/index.d.ts",
      "browser": "./dist/browser/i18n/catalogs/index.js",
      "bun": "./dist/i18n/catalogs/index.js",
      "node": "./dist/node/i18n/catalogs/index.js",
      "default": "./dist/i18n/catalogs/index.js"
    },
    "./i18n/catalogs/en": {
      "types": "./dist/i18n/catalogs/en.d.ts",
      "browser": "./dist/browser/i18n/catalogs/en.js",
      "bun": "./dist/i18n/catalogs/en.js",
      "node": "./dist/node/i18n/catalogs/en.js",
      "default": "./dist/i18n/catalogs/en.js"
    },
    "./i18n/catalogs/es": {
      "types": "./dist/i18n/catalogs/es.d.ts",
      "browser": "./dist/browser/i18n/catalogs/es.js",
      "bun": "./dist/i18n/catalogs/es.js",
      "node": "./dist/node/i18n/catalogs/es.js",
      "default": "./dist/i18n/catalogs/es.js"
    },
    "./i18n/catalogs/fr": {
      "types": "./dist/i18n/catalogs/fr.d.ts",
      "browser": "./dist/browser/i18n/catalogs/fr.js",
      "bun": "./dist/i18n/catalogs/fr.js",
      "node": "./dist/node/i18n/catalogs/fr.js",
      "default": "./dist/i18n/catalogs/fr.js"
    },
    "./i18n/keys": {
      "types": "./dist/i18n/keys.d.ts",
      "browser": "./dist/browser/i18n/keys.js",
      "bun": "./dist/i18n/keys.js",
      "node": "./dist/node/i18n/keys.js",
      "default": "./dist/i18n/keys.js"
    },
    "./i18n/locale": {
      "types": "./dist/i18n/locale.d.ts",
      "browser": "./dist/browser/i18n/locale.js",
      "bun": "./dist/i18n/locale.js",
      "node": "./dist/node/i18n/locale.js",
      "default": "./dist/i18n/locale.js"
    },
    "./i18n/messages": {
      "types": "./dist/i18n/messages.d.ts",
      "browser": "./dist/browser/i18n/messages.js",
      "bun": "./dist/i18n/messages.js",
      "node": "./dist/node/i18n/messages.js",
      "default": "./dist/i18n/messages.js"
    },
    "./llmo": {
      "types": "./dist/llmo/index.d.ts",
      "browser": "./dist/browser/llmo/index.js",
      "bun": "./dist/llmo/index.js",
      "node": "./dist/node/llmo/index.js",
      "default": "./dist/llmo/index.js"
    },
    "./llmo/emitter": {
      "types": "./dist/llmo/emitter.d.ts",
      "browser": "./dist/browser/llmo/emitter.js",
      "bun": "./dist/llmo/emitter.js",
      "node": "./dist/node/llmo/emitter.js",
      "default": "./dist/llmo/emitter.js"
    },
    "./llmo/optimizer": {
      "types": "./dist/llmo/optimizer.d.ts",
      "browser": "./dist/browser/llmo/optimizer.js",
      "bun": "./dist/llmo/optimizer.js",
      "node": "./dist/node/llmo/optimizer.js",
      "default": "./dist/llmo/optimizer.js"
    },
    "./media/rights": {
      "types": "./dist/media/rights.d.ts",
      "browser": "./dist/browser/media/rights.js",
      "bun": "./dist/media/rights.js",
      "node": "./dist/node/media/rights.js",
      "default": "./dist/media/rights.js"
    },
    "./media/withdrawal": {
      "types": "./dist/media/withdrawal.d.ts",
      "browser": "./dist/browser/media/withdrawal.js",
      "bun": "./dist/media/withdrawal.js",
      "node": "./dist/node/media/withdrawal.js",
      "default": "./dist/media/withdrawal.js"
    },
    "./media/workflow": {
      "types": "./dist/media/workflow.d.ts",
      "browser": "./dist/browser/media/workflow.js",
      "bun": "./dist/media/workflow.js",
      "node": "./dist/node/media/workflow.js",
      "default": "./dist/media/workflow.js"
    },
    "./seo": {
      "types": "./dist/seo/index.d.ts",
      "browser": "./dist/browser/seo/index.js",
      "bun": "./dist/seo/index.js",
      "node": "./dist/node/seo/index.js",
      "default": "./dist/seo/index.js"
    },
    "./seo/optimizer": {
      "types": "./dist/seo/optimizer.d.ts",
      "browser": "./dist/browser/seo/optimizer.js",
      "bun": "./dist/seo/optimizer.js",
      "node": "./dist/node/seo/optimizer.js",
      "default": "./dist/seo/optimizer.js"
    },
    "./social-optimization": {
      "types": "./dist/social-optimization/index.d.ts",
      "browser": "./dist/browser/social-optimization/index.js",
      "bun": "./dist/social-optimization/index.js",
      "node": "./dist/node/social-optimization/index.js",
      "default": "./dist/social-optimization/index.js"
    },
    "./social-optimization/optimizer": {
      "types": "./dist/social-optimization/optimizer.d.ts",
      "browser": "./dist/browser/social-optimization/optimizer.js",
      "bun": "./dist/social-optimization/optimizer.js",
      "node": "./dist/node/social-optimization/optimizer.js",
      "default": "./dist/social-optimization/optimizer.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.ai-providers](https://lssm.co/docs/packages/lib.ai-providers/): `workspace:^`
- [@lssm-tech/lib.content-analysis-spec](https://lssm.co/docs/packages/lib.content-analysis-spec/): `workspace:^`
- [@lssm-tech/lib.contracts-integrations](https://lssm.co/docs/packages/lib.contracts-integrations/): `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:^`
- [@lssm-tech/lib.growth-spec](https://lssm.co/docs/packages/lib.growth-spec/): `workspace:^`
- [@lssm-tech/lib.translation-runtime](https://lssm.co/docs/packages/lib.translation-runtime/): `workspace:^`
- `zod`: `catalog:`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@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 --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .",
  "lint:check": "node ../../../../scripts/biome.cjs check .",
  "test": "bun test --pass-with-no-tests",
  "prebuild": "contractspec-bun-build prebuild",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Lib Content Gen documentation](https://www.npmjs.com/package/%40lssm-tech%2Flib.content-gen) — declared link; destination not verified.

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

## Existing agent-guide projection

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