Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .changeset/attachables-core-remove-dead-onaction.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/document-store-initial-state.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/mdma-agui-initial.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/parser-streaming-unknown-type.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/tasklist-webhook-routable-events.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/updateast-retype-on-type-change.md

This file was deleted.

13 changes: 13 additions & 0 deletions demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @mobile-reality/mdma-demo

## 0.0.12

### Patch Changes

- Updated dependencies [b03ad21]
- Updated dependencies [d262328]
- Updated dependencies [b03ad21]
- Updated dependencies [d262328]
- @mobile-reality/mdma-runtime@0.3.0
- @mobile-reality/mdma-parser@0.2.4
- @mobile-reality/mdma-renderer-react@0.4.0
- @mobile-reality/mdma-validator@0.3.1

## 0.0.11

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mobile-reality/mdma-demo",
"private": true,
"version": "0.0.11",
"version": "0.0.12",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
32 changes: 32 additions & 0 deletions packages/agui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# @mobile-reality/mdma-agui

## 0.2.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.
- d90af8c: Add `@mobile-reality/mdma-agui`: a bridge that renders MDMA interactive documents streamed over
the AG-UI protocol and routes user actions (submit / approve / deny) back into the agent run.
Ships a headless core (`createMdmaAgentBridge`) plus an optional React layer
(`useMdmaAgentStream`, `MdmaAgentView`). AG-UI coupling is isolated to a minimal structural agent
interface, so any `@ag-ui/client` `HttpAgent` works without a hard dependency.
- b03ad21: Support tasklist completion and webhook triggers as routable events. The tasklist renderer now
emits `ACTION_TRIGGERED` (its `onComplete` action) on the transition into all-items-checked, and
the webhook renderer gains a trigger button that emits `INTEGRATION_CALLED`. The `mdma-agui`
bridge routes both back into the agent run — alongside form submit, button, and approve/deny — so
completing a checklist or firing a webhook resumes the AG-UI conversation.

### Patch Changes

- d262328: Stop flashing "Unknown component type" while a block is still streaming. When an `mdma` fence is
not yet closed, a valid-YAML-but-unknown type (e.g. a half-streamed `approval-gat` before
`approval-gate` finishes) is now left as a pending block (loading skeleton) instead of being
rendered as an unknown-type error. Once the fence closes, a genuinely unknown type still surfaces
the error as before. Known valid types continue to render live during streaming. The `mdma-agui`
adapter now threads the source into `unified.run()` so the parser can see the raw fences.
2 changes: 1 addition & 1 deletion packages/agui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mobile-reality/mdma-agui",
"version": "0.1.0",
"version": "0.2.0",
"description": "Bridge that renders MDMA interactive documents streamed over the AG-UI protocol and routes user actions back into the agent run.",
"keywords": [
"mdma",
Expand Down
12 changes: 12 additions & 0 deletions packages/attachables-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @mobile-reality/mdma-attachables-core

## 0.2.4

### Patch Changes

- b03ad21: Remove the unused `onAction` methods from the core attachable handlers (form, button, tasklist,
table, callout, approval-gate, webhook). They were never invoked — renderers dispatch store actions
directly — so this is a dead-code cleanup with no behavioral change. Each handler's `definition` and
`initialize` are unchanged.
- Updated dependencies [b03ad21]
- Updated dependencies [d262328]
- @mobile-reality/mdma-runtime@0.3.0

## 0.2.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/attachables-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mobile-reality/mdma-attachables-core",
"version": "0.2.3",
"version": "0.2.4",
"keywords": [
"mdma",
"markdown",
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @mobile-reality/mdma-cli

## 0.2.8

### Patch Changes

- @mobile-reality/mdma-validator@0.3.1

## 0.2.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mobile-reality/mdma-cli",
"version": "0.2.7",
"version": "0.2.8",
"keywords": [
"mdma",
"markdown",
Expand Down
11 changes: 11 additions & 0 deletions packages/parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @mobile-reality/mdma-parser

## 0.2.4

### Patch Changes

- d262328: Stop flashing "Unknown component type" while a block is still streaming. When an `mdma` fence is
not yet closed, a valid-YAML-but-unknown type (e.g. a half-streamed `approval-gat` before
`approval-gate` finishes) is now left as a pending block (loading skeleton) instead of being
rendered as an unknown-type error. Once the fence closes, a genuinely unknown type still surfaces
the error as before. Known valid types continue to render live during streaming. The `mdma-agui`
adapter now threads the source into `unified.run()` so the parser can see the raw fences.

## 0.2.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mobile-reality/mdma-parser",
"version": "0.2.3",
"version": "0.2.4",
"keywords": [
"mdma",
"markdown",
Expand Down
16 changes: 16 additions & 0 deletions packages/renderer-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @mobile-reality/mdma-renderer-react

## 0.4.0

### Minor Changes

- b03ad21: Support tasklist completion and webhook triggers as routable events. The tasklist renderer now
emits `ACTION_TRIGGERED` (its `onComplete` action) on the transition into all-items-checked, and
the webhook renderer gains a trigger button that emits `INTEGRATION_CALLED`. The `mdma-agui`
bridge routes both back into the agent run — alongside form submit, button, and approve/deny — so
completing a checklist or firing a webhook resumes the AG-UI conversation.

### Patch Changes

- Updated dependencies [b03ad21]
- Updated dependencies [d262328]
- @mobile-reality/mdma-runtime@0.3.0

## 0.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mobile-reality/mdma-renderer-react",
"version": "0.3.0",
"version": "0.4.0",
"keywords": [
"mdma",
"markdown",
Expand Down
20 changes: 20 additions & 0 deletions packages/runtime/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @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
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mobile-reality/mdma-runtime",
"version": "0.2.3",
"version": "0.3.0",
"keywords": [
"mdma",
"markdown",
Expand Down
7 changes: 7 additions & 0 deletions packages/validator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @mobile-reality/mdma-validator

## 0.3.1

### Patch Changes

- Updated dependencies [d262328]
- @mobile-reality/mdma-parser@0.2.4

## 0.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/validator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mobile-reality/mdma-validator",
"version": "0.3.0",
"version": "0.3.1",
"keywords": [
"mdma",
"markdown",
Expand Down