@kohaku-ui/lineage
v0.4.0
Published
View and component lineage for kohaku, with the promotion (L2 to L1) and fixation (L1 to L0) state machines.
Readme
@kohaku-ui/lineage
View and component lineage for kohaku, with the promotion (L2 to L1) and fixation (L1 to L0) state machines.
Part of kohaku, a reference implementation of the Kohaku Protocol: UI treated as data (a declarative UI Spec), with generation separated from rendering.
npm install @kohaku-ui/lineage zodAPI notes
createPromotions({ suggestSchema, suggestConcurrency, ... }):suggestSchemais the optional schema-extraction hook run at auto-nomination;suggestConcurrencybounds how many candidates' extractions run at once (default 4,DEFAULT_SUGGEST_CONCURRENCY).Promotions.approve(artifactId, draft, reviewer, scope?):scope.acknowledgedSuggestionis recorded into thecomponent.schemaEditedaudit event'sacknowledgedfield (additive; recorded, not enforced). The configured judge receivesdraftonPromotionJudgeContext.draft, so it scores the schema actually being registered rather than only the candidate's machine-generated suggestion.summarizeLineage().review.acceptedAsIscounts an approval as a "zero-edit approval" only when the reviewer made no edits (changedis empty) and explicitly acknowledged the suggestion (acknowledged: true).
The packages in this scope share a single version and are designed to be installed together.
- Documentation: https://github.com/yosuque/kohaku#readme
- Source: https://github.com/yosuque/kohaku/tree/main/packages/lineage
Licensed under the Apache License, Version 2.0.
