A smallest-possible TypeScript adapter that exercises the full capture lifecycle
through @eddacraft/kindling.
- Opens a
sessioncapsule - Appends two observations (a message and an error)
- Retrieves context for the query
JWT - Closes the capsule with a summary
See docs/adapters/cookbook.md for the step-by-step guide.
-
Node.js >= 20 and pnpm
-
The
kindlingbinary onPATH:curl -fsSL https://raw.githubusercontent.com/eddacraft/kindling/main/install.sh | shOr build from source:
cargo build -p eddacraft-kindling --bin kindling
From the repository root:
pnpm install
pnpm --filter @eddacraft/kindling run build
pnpm --filter kindling-adapter-minimal devExpected output includes a health check, capsule id, retrieve candidates, and a closed capsule status.
If you have copied this example outside the monorepo:
npm install @eddacraft/kindling
npx tsc index.ts --module nodenext --moduleResolution nodenext --target es2022
node index.js| Problem | Fix |
|---|---|
DaemonUnavailableError |
Ensure kindling is on PATH, or set $KINDLING_BIN to your binary. |
| Empty retrieve results | Observations need a moment to index; retry, or check scopeIds match. |
| Schema mismatch | Upgrade the CLI and client to the same version. |