koel_core 1.1.1
koel_core: ^1.1.1 copied to clipboard
AG-UI protocol kernel for Dart — events, errors, pipeline, reducer, JSON Patch.
1.1.1 #
- FIX (packaging): republish with the generated sources (
*.freezed.dart,*.g.dart) included in the archive..gitignoreexcluded them from the 1.1.0 upload (dart pub publishhonors.gitignorewhen no.pubignoreexists), so everypartdirective pointed at a missing file and the package was uncompilable for hosted consumers. Generated files are now committed to git and gated bypublish-dry+ the codegen-drift CI lane. No API changes —ChatSession.regenerate()/ChatSession.updateState()ship unchanged from 1.1.0.
1.1.0 #
- NEW:
ChatSession.regenerate()— regenerates the answer to the last user turn with CopilotKitreloadMessagesparity: truncates the committed transcript back to (and including) the last user message (original id preserved for server-side dedupe-by-id history merges), clears in-flight transients (pendingMessage,pendingToolCalls—setMessagesreplace-the-transcript semantics), and re-runs the agent without appending a new user message, so the old answer is replaced, not duplicated. No-op when the transcript has no user turn. Likesend(), it does not guard against an in-flight run — callers gate on their own streaming state. - NEW:
ChatSession.updateState(Map<String, dynamic> patch)— shallow-merges a patch into the shared agentChatState.statemid-session and re-emits, so the next run carries it inRunAgentInput.statewithout recreating the session. Mirrors CopilotKitagent.setState({ ...agent.state, ...patch }). - INTERNAL: the run machinery shared by
send()andregenerate()is extracted into a private_run();send()behavior is unchanged.
1.0.0 #
First stable release. The koel foundation (koel_core + koel_http +
koel_lints) ships lock-step at 1.0.0, conformant to the AG-UI protocol
release/2026-05-26 (commit d74e2dfc1e11bebdff419c2cbd347c811555411d).
- Protocol kernel (
koel_core): the closed 28-type sealedAgUiEventregistry with theUnknownAgUiEventforward-compat fallback, the sealedKoelErrorhierarchy, vendored RFC 6902 JSON Patch, the four-stage event pipeline (decode → verify → reduce → dispatch), theChatStatereducer, the interceptor chain,SessionStorage, and theKoelClient/ChatSessionAPI. - HTTP transport (
koel_http): the framework-free SSE parser,HttpAgentnative transport with cancellation propagation, chunk synthesis, connection-lifecycle hooks, and the interceptor suite (retry, auth, logging, event-trace, Sentry, PII redaction). - Lint profile (
koel_lints): the koel analysis ruleset built on the first-partyanalysis_server_plugin. - Conformance: the
AgUiEvent_equalstructural-equality rule (byte-equalUint8List) is finalized and pinned inkoel_core/CONFORMANCE.md; the SC-1..SC-5 release gates (conformance, coverage, analyze, API stability, no vestigial code) are green.
0.0.1 #
- Initial scaffold.