Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.82 KB

File metadata and controls

50 lines (33 loc) · 1.82 KB

@mobile-reality/mdma-runtime

0.3.0

Minor Changes

  • b03ad21: Add an initialState option to createDocumentStore for hydrating component values at store creation — e.g. restoring a persisted conversation fetched from a backend. Keyed by component id → its values map (symmetric with getState()), it overlays AST defaults without emitting audit events or marking fields touched, and applies only to freshly-created components so a streaming re-parse never clobbers in-flight edits. mdma-agui threads initialState through parseMdma, the bridge, and MdmaAgentView/useMdmaAgentStream, so re-opened conversations render pre-populated.

Patch Changes

  • d262328: Fix DocumentStore.updateAst freezing a component's type for the lifetime of its id. During streaming, an early partial parse can produce a placeholder/truncated type (e.g. approval-gat before approval-gate finishes streaming); updateAst now re-initializes a component when its type changes between parses, while still preserving in-flight state (values, touched) when the type is unchanged.

0.2.3

Patch Changes

  • Updated dependencies [5bb8529]
    • @mobile-reality/mdma-spec@0.3.0

0.2.2

Patch Changes

  • d972139: Add npm keywords for discoverability
  • Updated dependencies [d972139]
    • @mobile-reality/mdma-spec@0.2.2

0.2.1

Patch Changes

  • f6ae6c5: Serialize File instances in FIELD_CHANGED payloads before audit-log append and redaction, so uploaded files keep { name, size, type, lastModified } in the trail instead of being JSON-flattened to {}. Exports a new serializeFiles helper for consumers (e.g. UI subscribers on eventBus) that need the same conversion.
  • Updated dependencies [9ba720a]
    • @mobile-reality/mdma-spec@0.2.1

0.2.0

Major Changes

  • 4d37c6d: Added validator to the project