Skip to content

dokan v0.1.2 — last-result-as-input (beta/preview)

Pre-release
Pre-release

Choose a tag to compare

@helios-code helios-code released this 25 Jun 22:11
· 24 commits to main since this release
254f2c2

dokan v0.1.2 — beta / preview

Stateful monitors on a stateless runtime.

What's new

  • feed_prev_result (opt-in per script, default false). When true, dokan injects the most-recent prior run's structured result of the same script into the next run's DOKAN_INPUT.prev_result (any exit code — a monitor's exit-1 verdict still carries its state; null on the first run).
  • A monitor can now keep a cross-run diff — read prev_result.state → diff → emit new state in ::dokan:result:: + exit nonzero on change — with no host files and no external store, staying deterministic and isolated.
  • false = unchanged behavior for every existing script. Surfaced on get_script.

Schema-additive (ALTER TABLE ... ADD COLUMN IF NOT EXISTS), exec.rs untouched (merge happens in the dispatch path). Still honest beta/preview — see SECURITY.md. Full notes in CHANGELOG.md.