@broject/learn
v0.2.5
Published
Learn store for bro — lesson schema and bd-kv CRUD behind `bro learn`
Maintainers
Readme
@broject/learn
The learn store for bro — lesson schema and bd-kv CRUD behind bro learn.
You probably want the CLI instead —
broships this package already. Install it only when building your own lesson store or connector.
Install
npm i @broject/learnRequires Node ≥ 22. ESM only. Store operations shell out to the bd
CLI (bd kv), so bd must be on PATH and the repo needs an
initialized beads store.
Surface
Lesson/LessonTrigger/HookEvent/Evidence— lesson schema and provenance typesputLesson/getLesson/listLessons/deleteLesson— keyed lesson storematchPath/triggerMatches/parseTraceLine— match lessons to hook contextDEFAULT_LEARN_CONFIG/learnSection— config defaults and schemalearnConnector— registers the learn connectorcaptureLessons/planCapture/applyCapture— distill completed artifacts into lessonsprobeQuestion/rankLessons/recordProbeAnswer— check the store before investigating again
