Expand description
In-process kindling orchestration.
KindlingService exposes capsule lifecycle, observation append,
retrieval, and pin management over the already-ported store, provider, and
filter crates. Consumed in-process by the daemon (kindling-server), by the
CLI, and directly by Rust integrators (e.g. anvil headless flows).
Ports KindlingService from
packages/kindling-core/src/service/kindling-service.ts. Two deliberate
deviations from the TS service:
- Result-typed errors. Every method returns
ServiceResultinstead of throwing; validation failures and lifecycle violations are structuredServiceErrorvariants. - Service-boundary secret masking.
KindlingService::append_observationruns observation content throughkindling_filter::mask_secretsbefore storing, so non-Rust consumers cannot bypass secret filtering. (Masking only — content truncation stays a hook-layer concern.)
Export/import/bundle methods (deferred from PORT-006) are implemented here
by PORT-012; see [export]. They are byte-compatible with the TS bundle
format so exports round-trip across the two implementations.
Modules§
- filter
- Content filtering for kindling observations.
Structs§
- Append
Observation Options - Options for
KindlingService::append_observation. - Append
Outcome - Outcome of
KindlingService::append_observation. - Close
Capsule Options - Options for
KindlingService::close_capsule. - Create
PinOptions - Options for
KindlingService::pin. - Export
Bundle - A portable export bundle. JSON-compatible with the TS
ExportBundle. - Export
Bundle Options - Options for
KindlingService::export. - Export
Dataset - The entity dataset inside an
ExportBundle. Mirrors the TSExportDatasetshape returned byexportDatabase. - Export
Stats - Summary statistics for an
ExportBundle. Mirrors the TSExportStats. - Import
Options - Options for
KindlingService::import. Mirrors the TSImportOptions. - Import
Result - Result of an import. Mirrors the TS
ImportResult, including thedryRunflag echoed back. - Kindling
Service - In-process kindling orchestration service.
- Open
Capsule Options - Options for
KindlingService::open_capsule. - PreCompact
Context - Structured data backing the PreCompact injection.
- Resolved
Pin - A pin resolved to its target’s content, for injection previews.
- Session
Start Context - Structured data backing the SessionStart injection.
Enums§
- Service
Error - Errors produced by
KindlingService.
Constants§
- BUNDLE_
VERSION - Bundle format version. Mirrors the TS
bundleVersion/versionliterals.
Type Aliases§
- Service
Result - Result alias for service operations.