pmx-canvas 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/Readme.md +2 -1
- package/dist/canvas/index.js +83 -83
- package/dist/json-render/index.js +47 -47
- package/dist/types/cli/agent.d.ts +13 -8
- package/dist/types/cli/commands/apps.d.ts +1 -0
- package/dist/types/cli/commands/ax.d.ts +1 -0
- package/dist/types/cli/commands/copilot.d.ts +1 -0
- package/dist/types/cli/commands/edges.d.ts +1 -0
- package/dist/types/cli/commands/groups.d.ts +1 -0
- package/dist/types/cli/commands/history.d.ts +1 -0
- package/dist/types/cli/commands/nodes.d.ts +1 -0
- package/dist/types/cli/commands/pins.d.ts +1 -0
- package/dist/types/cli/commands/query.d.ts +1 -0
- package/dist/types/cli/commands/view.d.ts +1 -0
- package/dist/types/cli/commands/webview.d.ts +1 -0
- package/dist/types/cli/shared.d.ts +73 -0
- package/dist/types/client/canvas/ExpandedNodeOverlay.d.ts +1 -1
- package/dist/types/client/nodes/HtmlNode.d.ts +1 -1
- package/dist/types/client/nodes/McpAppNode.d.ts +1 -1
- package/dist/types/client/nodes/use-ax-surface-bridge.d.ts +20 -0
- package/dist/types/server/canvas-operations.d.ts +2 -0
- package/dist/types/server/diagram-presets.d.ts +8 -0
- package/dist/types/server/operations/composites.d.ts +0 -9
- package/dist/types/shared/ax-surface-protocol.d.ts +18 -0
- package/docs/bun-webview-integration.md +5 -0
- package/docs/environment.md +48 -0
- package/docs/node-types.md +5 -0
- package/docs/plans/plan-009-tech-debt-backlog.md +27 -9
- package/docs/screenshot.png +0 -0
- package/package.json +8 -5
- package/skills/pmx-canvas/evals/evals.json +5 -5
- package/skills/pmx-canvas/references/full-reference.md +8 -1
- package/src/cli/agent.ts +22 -3512
- package/src/cli/commands/apps.ts +165 -0
- package/src/cli/commands/ax.ts +604 -0
- package/src/cli/commands/copilot.ts +43 -0
- package/src/cli/commands/edges.ts +73 -0
- package/src/cli/commands/groups.ts +81 -0
- package/src/cli/commands/history.ts +220 -0
- package/src/cli/commands/nodes.ts +954 -0
- package/src/cli/commands/pins.ts +42 -0
- package/src/cli/commands/query.ts +223 -0
- package/src/cli/commands/view.ts +186 -0
- package/src/cli/commands/webview.ts +227 -0
- package/src/cli/shared.ts +860 -0
- package/src/client/canvas/ExpandedNodeOverlay.tsx +3 -2
- package/src/client/nodes/ExtAppFrame.tsx +53 -49
- package/src/client/nodes/HtmlNode.tsx +8 -51
- package/src/client/nodes/McpAppNode.tsx +12 -47
- package/src/client/nodes/use-ax-surface-bridge.ts +71 -0
- package/src/json-render/renderer/index.tsx +3 -2
- package/src/mcp/server.ts +0 -47
- package/src/server/canvas-operations.ts +8 -0
- package/src/server/diagram-presets.ts +15 -1
- package/src/server/html-surface.ts +11 -6
- package/src/server/operations/composites.ts +1 -13
- package/src/server/operations/invoker.ts +10 -3
- package/src/server/operations/mcp.ts +51 -1
- package/src/server/operations/ops/app.ts +5 -0
- package/src/server/server.ts +2 -0
- package/src/shared/ax-surface-protocol.ts +22 -0
- package/dist/types/client/canvas/ContextPinHud.d.ts +0 -1
- package/src/client/canvas/ContextPinHud.tsx +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,51 @@
|
|
|
3
3
|
All notable changes to `pmx-canvas` are documented here. This project follows
|
|
4
4
|
[Semantic Versioning](https://semver.org/).
|
|
5
5
|
|
|
6
|
+
## [0.3.4] - 2026-08-03
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- A client component test harness (happy-dom + Testing Library) with the
|
|
11
|
+
first 20 render tests, plus dedicated suites for the semantic watch
|
|
12
|
+
reducer and the canvas schema (46 new tests). Test files are now
|
|
13
|
+
typechecked, and CI fails when total coverage drops below the recorded
|
|
14
|
+
floor.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- App tiles now show a spinner and a "Connecting to <app>..." overlay while an
|
|
19
|
+
app frame boots or recovers, instead of a dark tile body (0.3.3 report: the
|
|
20
|
+
transient black window during automatic recovery).
|
|
21
|
+
- Composite tools now name the missing field when a required argument for the
|
|
22
|
+
chosen action is absent, instead of failing deep in the handler or silently
|
|
23
|
+
doing nothing.
|
|
24
|
+
- A pending code-graph recompute timer no longer outlives its server across
|
|
25
|
+
start/stop cycles.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- The sandboxed-surface AX bridge (the listener that validates and submits
|
|
30
|
+
iframe interactions) is now one shared implementation across html, app, and
|
|
31
|
+
viewer nodes, with the protocol tags defined in a single module. No behavior
|
|
32
|
+
change — this hardens a security boundary that was previously copy-pasted.
|
|
33
|
+
- The CLI dispatches every canvas command through the operation registry's
|
|
34
|
+
HTTP invoker instead of hand-written request paths; success output is
|
|
35
|
+
unchanged. One failure-path improvement: a failed `pmx-canvas batch` now
|
|
36
|
+
prints the full result envelope (`ok:false`, `failedIndex`, partial
|
|
37
|
+
`results`, `refs`) on stdout and exits 1, instead of a bare stderr error.
|
|
38
|
+
|
|
39
|
+
### Docs
|
|
40
|
+
|
|
41
|
+
- WebView backend preflight: prefer webkit on macOS; the chrome backend can
|
|
42
|
+
show an "Allow remote debugging?" dialog that must be approved promptly, and
|
|
43
|
+
`PMX_CANVAS_WEBVIEW_TIMEOUT_MS` can be raised for slow starts.
|
|
44
|
+
- Skill evals: the two file-node eval prompts now reference the bundled
|
|
45
|
+
fixture paths, so a literal eval run works in any workspace.
|
|
46
|
+
- Web-artifact builds are documented as POSIX-only (the build pipeline runs
|
|
47
|
+
bash scripts); already-built artifacts render on every platform.
|
|
48
|
+
- All `PMX_*` environment variables are documented in
|
|
49
|
+
[`docs/environment.md`](docs/environment.md).
|
|
50
|
+
|
|
6
51
|
## [0.3.3] - 2026-07-08
|
|
7
52
|
|
|
8
53
|
### Fixed
|
|
@@ -2734,6 +2779,7 @@ otherwise have to discover by trial and error.
|
|
|
2734
2779
|
- Regression coverage for snapshot flat-`id` aliases on both MCP and
|
|
2735
2780
|
HTTP surfaces, plus async / top-level-`await` WebView script bodies.
|
|
2736
2781
|
|
|
2782
|
+
[0.3.4]: https://github.com/pskoett/pmx-canvas/releases/tag/v0.3.4
|
|
2737
2783
|
[0.3.3]: https://github.com/pskoett/pmx-canvas/releases/tag/v0.3.3
|
|
2738
2784
|
[0.3.2]: https://github.com/pskoett/pmx-canvas/releases/tag/v0.3.2
|
|
2739
2785
|
[0.3.1]: https://github.com/pskoett/pmx-canvas/releases/tag/v0.3.1
|
package/Readme.md
CHANGED
|
@@ -107,7 +107,8 @@ the DB so SQLite WAL data is checkpointed into the file.
|
|
|
107
107
|
|
|
108
108
|
Harness-agnostic. Drive the canvas from [MCP](docs/mcp.md) (27 tools,
|
|
109
109
|
14 resources, change notifications), the [CLI](docs/cli.md), the
|
|
110
|
-
[HTTP API](docs/http-api.md), or the [Bun SDK](docs/sdk.md)
|
|
110
|
+
[HTTP API](docs/http-api.md), or the [Bun SDK](docs/sdk.md) — all
|
|
111
|
+
[environment variables documented here](docs/environment.md). Works with
|
|
111
112
|
Claude Code, GitHub Copilot CLI, Codex, Cursor, Windsurf, or any agent
|
|
112
113
|
that can spawn an MCP stdio server, call a CLI, or hit an HTTP endpoint.
|
|
113
114
|
|