# @lilith/seed-corpus

Seed corpus ingestion pipeline for Lilith wisdom platform

TypeScript package. Built with tsc/tsup; consumed by other workspaces.

## Scripts

| Command              | Definition                                                       |
| -------------------- | ---------------------------------------------------------------- |
| `pnpm ingest`        | node ingestion/ingest.js                                         |
| `pnpm ingest:batch`  | node ingestion/batch-ingest.js                                   |
| `pnpm test`          | node --experimental-vm-modules node_modules/.bin/jest            |
| `pnpm test:coverage` | node --experimental-vm-modules node_modules/.bin/jest --coverage |
| `pnpm validate`      | node ingestion/validate.js                                       |

## Layout

- `data/`
- `ingestion/`
- `tests/`

## Working on this package

The fastest local loop is via Nx:

```bash
pnpm nx test lilith-seed-corpus
pnpm nx lint lilith-seed-corpus
pnpm nx build lilith-seed-corpus
```

When Nx is unhappy (usually because another worktree has duplicate project
names), bypass it with the underlying tools from this directory:

```bash
npx tsc --noEmit
npx vitest run
```

See the [root README](../../../README.md) for monorepo-wide conventions (catalog
deps, commit format, git workflow). See the
[Contributor Guide](../../../docs/CONTRIBUTING.md) for the full PR workflow.
