pmx-canvas 0.1.9 → 0.1.10
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 +71 -0
- package/dist/canvas/index.js +27 -27
- package/dist/json-render/index.css +1 -1
- package/dist/json-render/index.js +92 -92
- package/dist/types/client/canvas/auto-fit.d.ts +1 -1
- package/dist/types/json-render/catalog.d.ts +316 -310
- package/package.json +1 -1
- package/src/cli/agent.ts +26 -4
- package/src/cli/index.ts +1 -1
- package/src/client/canvas/auto-fit.ts +2 -2
- package/src/json-render/catalog.ts +9 -0
- package/src/json-render/renderer/index.css +61 -0
- package/src/json-render/renderer/index.tsx +22 -0
- package/src/json-render/server.ts +0 -11
- package/src/server/canvas-validation.ts +9 -2
- package/src/server/diagram-presets.ts +48 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,76 @@
|
|
|
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.1.10] - 2026-05-01
|
|
7
|
+
|
|
8
|
+
Agent-ergonomics and correctness pass on top of 0.1.9. Tightens
|
|
9
|
+
structured-frame auto-fit behavior, restores semantic Badge variants in
|
|
10
|
+
json-render, repairs Excalidraw bound-text references on the way out,
|
|
11
|
+
fixes `pmx-canvas fit` routing through the top-level CLI, and grows the
|
|
12
|
+
`node update` surface with `--pinned` and `--node-height`.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **`pmx-canvas node update --pinned <true|false>`.** Agents can flip a
|
|
17
|
+
node's pin state directly through `node update` without round-tripping
|
|
18
|
+
through `pin add`/`pin remove`. The flag goes through the same
|
|
19
|
+
PATCH path as the rest of `node update`, so it composes with geometry
|
|
20
|
+
and arrange-lock flags.
|
|
21
|
+
- **`pmx-canvas node update --node-height` alias.** `--node-height` is now
|
|
22
|
+
accepted as an alias for `--height` on `node update`, matching the
|
|
23
|
+
alias already supported on `node add`. Passing both `--height` and
|
|
24
|
+
`--node-height` rejects with a clear error.
|
|
25
|
+
- **AGENTS.md mirrors CLAUDE.md for harness-agnostic guidance.** The
|
|
26
|
+
AGENTS.md guidance file is now a complete, self-contained mirror of
|
|
27
|
+
the project instructions in CLAUDE.md so any coding agent harness
|
|
28
|
+
finds the same architecture rules, TypeScript guardrails, build
|
|
29
|
+
commands, and testing conventions.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- **`pmx-canvas fit` routes through the top-level CLI.** The `fit`
|
|
34
|
+
subcommand was added to the agent dispatcher in 0.1.9 but was missing
|
|
35
|
+
from the top-level CLI's known-subcommand list, so `pmx-canvas fit`
|
|
36
|
+
was being treated as a server-startup invocation. It now routes to
|
|
37
|
+
the agent CLI like every other subcommand.
|
|
38
|
+
- **All explicit graph and json-render frames are preserved by auto-fit.**
|
|
39
|
+
The client-side auto-fit guard previously only respected explicit
|
|
40
|
+
heights when they exceeded the 600px content-fit cap. It now treats
|
|
41
|
+
all `graph` and `json-render` nodes as having explicit visual frames,
|
|
42
|
+
so agent-authored sizes survive expand-and-close cycles regardless of
|
|
43
|
+
the chosen height.
|
|
44
|
+
- **json-render Badge keeps semantic variants.** The 0.1.6 normalizer
|
|
45
|
+
that mapped `success`/`info`/`warning`/`error`/`danger` to the
|
|
46
|
+
shadcn-default `default`/`secondary`/`outline`/`destructive` set has
|
|
47
|
+
been removed. The json-render catalog now declares these variants as
|
|
48
|
+
first-class, and the bundled renderer ships a Badge component that
|
|
49
|
+
styles them, so dashboards keep their intended traffic-light
|
|
50
|
+
semantics instead of collapsing to a generic neutral palette.
|
|
51
|
+
|
|
52
|
+
### Fixed
|
|
53
|
+
|
|
54
|
+
- **Group containment accepts the canonical children list.** Layout
|
|
55
|
+
validation flagged group/child overlaps as containment violations
|
|
56
|
+
whenever the child only carried `parentGroup` via the parent's
|
|
57
|
+
`children` array instead of the back-reference field. The check now
|
|
58
|
+
treats either side of the relationship as authoritative, so grouped
|
|
59
|
+
nodes pinned via `data.children` are no longer reported as overlap
|
|
60
|
+
violations.
|
|
61
|
+
- **Excalidraw tool input repairs one-sided bound-text references.**
|
|
62
|
+
When a text element points at a container via `containerId` but the
|
|
63
|
+
container's `boundElements` list is missing the reverse pointer, the
|
|
64
|
+
diagram preset now reattaches the missing reference before sending
|
|
65
|
+
the elements to the Excalidraw MCP app. This stops labels from
|
|
66
|
+
silently dropping out of agent-authored diagrams.
|
|
67
|
+
|
|
68
|
+
### Internal
|
|
69
|
+
|
|
70
|
+
- Regression coverage for: structured-frame auto-fit preservation across
|
|
71
|
+
graph and json-render heights (including small frames), `node update
|
|
72
|
+
--pinned` end-to-end through CLI/HTTP, top-level CLI routing for the
|
|
73
|
+
`fit` subcommand, group-children list containment validation, and
|
|
74
|
+
Excalidraw bound-text repair on the diagram preset.
|
|
75
|
+
|
|
6
76
|
## [0.1.9] - 2026-05-01
|
|
7
77
|
|
|
8
78
|
Workflow ergonomics pass for agent-authored boards. This release tightens
|
|
@@ -164,6 +234,7 @@ otherwise have to discover by trial and error.
|
|
|
164
234
|
- Regression coverage for snapshot flat-`id` aliases on both MCP and
|
|
165
235
|
HTTP surfaces, plus async / top-level-`await` WebView script bodies.
|
|
166
236
|
|
|
237
|
+
[0.1.10]: https://github.com/pskoett/pmx-canvas/releases/tag/v0.1.10
|
|
167
238
|
[0.1.9]: https://github.com/pskoett/pmx-canvas/releases/tag/v0.1.9
|
|
168
239
|
[0.1.8]: https://github.com/pskoett/pmx-canvas/releases/tag/v0.1.8
|
|
169
240
|
[0.1.7]: https://github.com/pskoett/pmx-canvas/releases/tag/v0.1.7
|