chalkbridge 1.1.2 → 1.1.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 CHANGED
@@ -1,5 +1,121 @@
1
1
  # chalkbridge
2
2
 
3
+ ## 1.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - c0c4810: Declare `author` in the published manifest.
8
+
9
+ No `repository`, `homepage` or `bugs`: the source is private, so those fields would put
10
+ dead links on a public npm page. The author string carries the portfolio URL, which is
11
+ the one destination that actually resolves for a reader.
12
+
13
+ ## 1.1.2
14
+
15
+ **Arrows stay attached when you drag the box they point at.**
16
+
17
+ Reported as arrows never being attached to icons and some rectangles: drag the shape and
18
+ the arrow stays put, its endpoints sitting exactly where they were drawn. The dividing line
19
+ was not the shape type — it was which arrows were *elbowed*.
20
+
21
+ `arrowType: "elbow"` set upstream's `elbowed` flag, and that flag is not decoration.
22
+ `ExcalidrawElbowArrowElement` narrows **both** bindings to `FixedPointBinding`, which adds
23
+ a `fixedPoint`. Every binding Chalkbridge produces comes from
24
+ `convertToExcalidrawElements`, which derives the plain `focus`/`gap` form and no
25
+ `fixedPoint` — so an elbow arrow carried a binding the renderer could not use, and moving
26
+ the shape did nothing to it.
27
+
28
+ - **Right angles are recorded as `customData.chalk.route`**, and the arrow ships as a plain
29
+ multi-point arrow with `roundness: null`. The same square corners, with a binding the
30
+ renderer honours.
31
+ - **Old scenes repair on contact.** An arrow still carrying the flag loses it the first time
32
+ anything moves under it, so nothing needs migrating.
33
+ - The `boundElements` half was correct throughout — measured across rectangle, ellipse,
34
+ diamond and image, every shape listed its arrows and no arrow had an unbound end.
35
+
36
+ Verified on a scene built from scratch with an icon among the shapes, then moving the icon
37
+ and two others: all seven endpoints on moved shapes followed, each still inside the binding
38
+ gap.
39
+
40
+ ## 1.1.1
41
+
42
+ **Layouts that read, and arrows that meet the boxes they name.**
43
+
44
+ Everything here came from one rendered diagram — nineteen boxes, twenty-four bound arrows —
45
+ and every claim was measured before and after rather than eyeballed.
46
+
47
+ - **`layout-layered` no longer scatters a graph containing a cycle.** Ranking is a
48
+ fixed-point iteration and a ring has no fixed point, so the loop spent its whole pass
49
+ budget instead of settling: nineteen boxes with four small rings reached a **maximum rank
50
+ of 61**, and the drawing came out **11,072 px wide with a 5,824 px hole in it**. Cycles
51
+ are broken before ranking now — which the function had documented since it was written
52
+ and no code ever did. The same boxes land **1,760 px wide in six even columns**, and the
53
+ dropped edge is still drawn, running backwards against the flow.
54
+ - **Arrows route around what is in the way.** Both previous routes were computed from the
55
+ two boxes at the ends and nothing else, so both drew through whatever sat between them —
56
+ five of thirteen arrows in one sample, and two of sixteen in another *while already
57
+ elbowed*. `domain/scene/route.ts` searches a sparse grid with A\* and a turn penalty, and
58
+ only detours when the direct line actually hits something. Both samples now measure **0
59
+ through a box**.
60
+ - **Every bound endpoint is a fixed point of the renderer's own rule.** Excalidraw
61
+ re-derives a bound endpoint on every paint from the *adjacent* point, discarding what the
62
+ file said — so being on the boundary was not enough. Seventeen of twenty-nine arrows
63
+ drifted between file and canvas, by 8 to 105 px, while every stored endpoint sat
64
+ correctly on its box. Now **zero of twenty-nine**.
65
+ - **`layout-radial` and `layout-tree` are new.** Radial rings a hub; tree puts it on the
66
+ left and fans the rest out, which reads better whenever labels are wide, because a ring
67
+ long enough to seat its members crosses its own middle.
68
+ - **`chalk_describe_scene` ends with a `layout:` line** naming which of the three the graph
69
+ wants and what decided it, since Claude cannot see the canvas.
70
+ - **A resize refits its container's caption**, which was translated by the container's
71
+ *origin* delta — a quantity a resize does not change.
72
+ - **A free-standing note wraps.** 261 characters came out 2,651 px wide and 25 px tall, one
73
+ line. `chalk_annotate` also looks for somewhere clear instead of landing on whatever ran
74
+ under its anchor.
75
+ - **Arrow captions stop printing through each other**, and `layout-tree` sizes its column
76
+ gaps to the captions crossing them.
77
+
78
+ `@dagrejs/dagre` was evaluated behind a port and not adopted: benchmarked over five graph
79
+ shapes with edge labels given to both engines it is a tie, and 18% wider on the shape
80
+ closest to the reported diagram. ELK is the stronger engine and is EPL-2.0, which the
81
+ licence suite forbids by name.
82
+
83
+ ## 1.1.0
84
+
85
+ **Diagrams that come out readable the first time.**
86
+
87
+ Drawing an eight-box architecture diagram used to take about 27 minutes and end with boxes
88
+ resized by hand and elements dragged out from under their frames. The same diagram is now
89
+ sixteen tool calls with nothing repositioned afterwards.
90
+
91
+ - **Shapes are sized to their labels.** Node has no canvas, so every shape was a flat
92
+ 180×80 whatever it said — and a long label wrapped past the bottom of an 80 px box, where
93
+ the container clipped it away entirely. Advance widths for the bundled font are now
94
+ measured (`adr/0006`, superseding `adr/0004`).
95
+ - **Collisions are reported instead of photographed.** `chalk_describe_scene` ends with an
96
+ `overlaps:` section, and every write tool returns `overlapWarning`. Previously the only
97
+ way to ask "did that land badly?" was a rendered image.
98
+ - **Frames follow what they hold.** A frame was sized to its contents once, when it was
99
+ created; every later move slid the children out and left the box behind.
100
+ - **Icons belong to a box.** `chalk_place_icon` takes `attachTo` and `placement`, so an
101
+ attached icon travels with its element through every layout.
102
+ - **Elbow arrows actually bend**, and arrows leaving the same face of a box fan out rather
103
+ than stacking in one lane.
104
+ - **`layout-layered` leaves room for what it draws.** Edges spanning more than one rank get
105
+ a reserved corridor, and the gap between ranks is sized to the widest caption crossing it.
106
+
107
+ ## 1.0.4
108
+
109
+ **Icons that render, and arrows that will bind to them.**
110
+
111
+ - **An icon reached the canvas as an invisible element.** The image and its file have to
112
+ land in the same commit; they did not, so the element was there and nothing was drawn.
113
+ - **An arrow would not bind to an icon.** Upstream's binding switch covers exactly
114
+ `rectangle | ellipse | diamond`, and Chalkbridge produces three types it does not —
115
+ `image`, `embeddable`, `frame`. Each now gets a rectangular stand-in during expansion, so
116
+ the binding is still *derived* rather than hand-written (invariant 16).
117
+ - A README that explains what the thing is before explaining how to build it.
118
+
3
119
  ## 1.0.3
4
120
 
5
121
  **An upgrade now actually arrives, a bridge can be stopped, and it ends when you are
package/dist/cli.js CHANGED
@@ -5663,7 +5663,7 @@ function readEnv(source) {
5663
5663
  }
5664
5664
 
5665
5665
  // src/composition/container.ts
5666
- var PACKAGE_VERSION = "1.1.2";
5666
+ var PACKAGE_VERSION = "1.1.4";
5667
5667
  function readRuntime() {
5668
5668
  return {
5669
5669
  env: process.env,
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "chalkbridge",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "description": "Self-hosted Excalidraw canvas for Claude Code to draw and reason on architecture diagrams.",
6
6
  "license": "MIT",
7
+ "author": "Manideep Kadambari (https://phoenixcodes.dev)",
7
8
  "keywords": [
8
9
  "excalidraw",
9
10
  "mcp",