@dexhq/canvas 0.17.0 → 0.18.0

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.
Files changed (174) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/app/canvas/canvas-commands.ts +2 -10
  3. package/app/canvas/canvas-context.tsx +11 -2
  4. package/app/canvas/canvas-document.ts +5 -1
  5. package/app/canvas/canvas-keys.ts +1 -1
  6. package/app/canvas/canvas-model.ts +195 -20
  7. package/app/canvas/canvas-scene.ts +176 -171
  8. package/app/canvas/canvas-ui.ts +4 -11
  9. package/app/canvas/canvas.css +159 -179
  10. package/app/canvas/change-pictures.tsx +156 -0
  11. package/app/canvas/comment-drafts.ts +31 -0
  12. package/app/canvas/comment-layer.tsx +125 -71
  13. package/app/canvas/comments.tsx +38 -2
  14. package/app/canvas/element-picker.ts +20 -0
  15. package/app/canvas/engine/canvas-gestures.ts +15 -3
  16. package/app/canvas/engine/canvas-store.ts +5 -0
  17. package/app/canvas/engine/canvas-view.tsx +22 -5
  18. package/app/canvas/find-bar.tsx +57 -41
  19. package/app/canvas/flow-canvas.tsx +147 -272
  20. package/app/canvas/frame-copies.ts +14 -17
  21. package/app/canvas/frame-drops.ts +15 -7
  22. package/app/canvas/frame-inspector.ts +192 -41
  23. package/app/canvas/frame-node.tsx +123 -75
  24. package/app/canvas/frame-resize.tsx +321 -83
  25. package/app/canvas/insert-hint.tsx +5 -15
  26. package/app/canvas/inspect-layer.tsx +73 -19
  27. package/app/canvas/label-action.tsx +13 -2
  28. package/app/canvas/layout.ts +233 -98
  29. package/app/canvas/live-page.ts +5 -0
  30. package/app/canvas/new-frame.ts +10 -25
  31. package/app/canvas/note-placing.ts +55 -84
  32. package/app/canvas/picked-box.tsx +5 -0
  33. package/app/canvas/picks-menu.tsx +3 -9
  34. package/app/canvas/readable-colour.ts +52 -0
  35. package/app/canvas/request-node.tsx +19 -10
  36. package/app/canvas/scrolling-page.ts +45 -0
  37. package/app/canvas/section-node.tsx +36 -53
  38. package/app/canvas/settle.ts +21 -0
  39. package/app/canvas/snapping.ts +96 -8
  40. package/app/canvas/spec-frame.tsx +8 -5
  41. package/app/canvas/spot-pins.tsx +15 -3
  42. package/app/canvas/stack-frame.tsx +13 -57
  43. package/app/canvas/stack-model.ts +5 -0
  44. package/app/canvas/stack-toggle.tsx +89 -0
  45. package/app/canvas/styles-layer.tsx +23 -43
  46. package/app/canvas/text-layer.tsx +26 -10
  47. package/app/canvas/thread-focus.tsx +18 -1
  48. package/app/canvas/tool-cursors.ts +2 -2
  49. package/app/canvas/toolbar-parts.tsx +48 -8
  50. package/app/canvas/toolbar.tsx +12 -10
  51. package/app/canvas/use-canvas-clipboard.tsx +13 -5
  52. package/app/canvas/use-reveal.ts +86 -0
  53. package/app/editor/extensions.ts +2 -0
  54. package/app/editor/line-break-caret.ts +57 -0
  55. package/app/git/branch-panel.tsx +61 -20
  56. package/app/i18n/locales/en/messages.po +64 -17
  57. package/app/i18n/locales/en/messages.ts +1 -1
  58. package/app/i18n/locales/pseudo/messages.po +64 -17
  59. package/app/i18n/locales/pseudo/messages.ts +1 -1
  60. package/app/icons/glyphs.tsx +2 -0
  61. package/app/live/studio-live.ts +29 -9
  62. package/app/pages/canvas.tsx +1 -1
  63. package/app/pages/commands-settings.tsx +70 -76
  64. package/app/pages/play-bar.tsx +6 -11
  65. package/app/pages/play.tsx +52 -33
  66. package/app/shell/feedback-form.tsx +29 -5
  67. package/app/ui/prompt-editor.tsx +2 -0
  68. package/app/ui/use-field-list.ts +90 -0
  69. package/dist/cli/commands/mcp.mjs +6 -4
  70. package/dist/cli/mcp-relay.mjs +10 -6
  71. package/dist/content/content.d.mts +26 -9
  72. package/dist/content/content.mjs +65 -8
  73. package/dist/content/screenshot.d.mts +2 -0
  74. package/dist/content/screenshot.mjs +3 -0
  75. package/dist/content/snapshot-client.d.mts +2 -0
  76. package/dist/content/snapshot-client.mjs +12 -1
  77. package/dist/inspector.js +96 -19
  78. package/dist/paste/paste.d.mts +5 -0
  79. package/dist/paste/paste.mjs +7 -2
  80. package/dist/server/agent-tools.d.mts +1 -0
  81. package/dist/server/agent-tools.mjs +4 -3
  82. package/dist/server/change-picture-store.d.mts +13 -0
  83. package/dist/server/change-picture-store.mjs +42 -0
  84. package/dist/server/change-pictures.d.mts +25 -0
  85. package/dist/server/change-pictures.mjs +104 -0
  86. package/dist/server/close-check.d.mts +11 -0
  87. package/dist/server/close-check.mjs +37 -5
  88. package/dist/server/comments/agent-actions.d.mts +8 -4
  89. package/dist/server/comments/agent-actions.mjs +16 -7
  90. package/dist/server/comments/close-tools.mjs +7 -5
  91. package/dist/server/comments/files.d.mts +5 -1
  92. package/dist/server/comments/hand-out.d.mts +1 -1
  93. package/dist/server/comments/hand-out.mjs +4 -1
  94. package/dist/server/comments/push.d.mts +19 -10
  95. package/dist/server/comments/push.mjs +45 -30
  96. package/dist/server/comments/studio-files.d.mts +14 -1
  97. package/dist/server/comments/studio-files.mjs +44 -31
  98. package/dist/server/comments/tools.d.mts +1 -1
  99. package/dist/server/comments/workspace.mjs +1 -0
  100. package/dist/server/dev-server.mjs +34 -0
  101. package/dist/server/own-copies.mjs +4 -23
  102. package/dist/server/requests.mjs +57 -3
  103. package/dist/server/response-budget.d.mts +2 -1
  104. package/dist/server/response-budget.mjs +4 -3
  105. package/dist/server/roster.d.mts +19 -8
  106. package/dist/server/roster.mjs +50 -22
  107. package/dist/server/studio-for.d.mts +7 -0
  108. package/dist/server/studio-for.mjs +23 -7
  109. package/dist/server/thread-forms.d.mts +3 -0
  110. package/dist/server/thread-forms.mjs +21 -1
  111. package/dist/server/tools/place-frame.d.mts +1 -0
  112. package/dist/server/tools/place-frame.mjs +33 -9
  113. package/dist/server/tools/result.mjs +2 -2
  114. package/dist/server/tools/snapshot.d.mts +1 -1
  115. package/dist/server/tools/snapshot.mjs +2 -1
  116. package/dist/server/tools/studio-context.d.mts +2 -1
  117. package/dist/server/tools/studio-context.mjs +2 -1
  118. package/dist/server/tools/watch.mjs +29 -12
  119. package/dist/server/work-groups.mjs +1 -1
  120. package/dist/shared/canvas-core.d.mts +39 -5
  121. package/dist/shared/canvas-core.mjs +60 -15
  122. package/dist/shared/canvas-file.d.mts +7 -4
  123. package/dist/shared/change-pictures-core.d.mts +6 -0
  124. package/dist/shared/change-pictures-core.mjs +5 -0
  125. package/dist/shared/page-looks.d.mts +12 -0
  126. package/dist/shared/page-looks.mjs +49 -0
  127. package/dist/shared/snapshot-clipboard.d.mts +6 -0
  128. package/dist/shared/studio-routes.d.mts +11 -0
  129. package/extension/dist/manifest.json +1 -1
  130. package/extension/dist/picker.js +114 -108
  131. package/package.json +4 -3
  132. package/src/cli/commands/mcp.ts +18 -8
  133. package/src/cli/mcp-relay.ts +13 -6
  134. package/src/content/content.ts +90 -16
  135. package/src/content/screenshot.ts +9 -1
  136. package/src/content/snapshot-client.ts +17 -0
  137. package/src/paste/paste.ts +18 -1
  138. package/src/server/agent-tools.ts +5 -4
  139. package/src/server/change-picture-store.ts +71 -0
  140. package/src/server/change-pictures.ts +244 -0
  141. package/src/server/close-check.ts +69 -6
  142. package/src/server/comments/agent-actions.ts +51 -12
  143. package/src/server/comments/close-tools.ts +20 -10
  144. package/src/server/comments/files.ts +10 -2
  145. package/src/server/comments/hand-out.ts +2 -2
  146. package/src/server/comments/push.ts +94 -46
  147. package/src/server/comments/studio-files.ts +77 -46
  148. package/src/server/comments/workspace.ts +1 -0
  149. package/src/server/dev-server.ts +70 -0
  150. package/src/server/own-copies.ts +5 -33
  151. package/src/server/requests.ts +84 -4
  152. package/src/server/response-budget.ts +5 -3
  153. package/src/server/roster.ts +78 -28
  154. package/src/server/studio-for.ts +32 -7
  155. package/src/server/thread-forms.ts +41 -1
  156. package/src/server/tools/place-frame.ts +71 -14
  157. package/src/server/tools/result.ts +2 -2
  158. package/src/server/tools/snapshot.ts +2 -1
  159. package/src/server/tools/studio-context.ts +24 -14
  160. package/src/server/tools/watch.ts +38 -13
  161. package/src/server/work-groups.ts +1 -1
  162. package/src/shared/canvas-core.ts +119 -27
  163. package/src/shared/canvas-file.ts +7 -4
  164. package/src/shared/change-pictures-core.ts +8 -0
  165. package/src/shared/page-looks.ts +133 -0
  166. package/src/shared/snapshot-clipboard.ts +6 -0
  167. package/src/shared/studio-routes.ts +7 -1
  168. package/templates/agents/dex-worker.md +9 -7
  169. package/templates/feedback-workflow.md +1 -1
  170. package/templates/methods/review.md +7 -6
  171. package/templates/rules/canvas-frames.md +8 -7
  172. package/templates/rules/canvas.md +10 -8
  173. package/templates/rules/prototypes.md +5 -3
  174. package/app/canvas/stack-node.tsx +0 -100
@@ -383,6 +383,14 @@ msgstr "{SHOW_KEY} to show toolbar"
383
383
  msgid "{title} cover"
384
384
  msgstr "{title} cover"
385
385
 
386
+ #: app/canvas/stack-toggle.tsx
387
+ msgid "{title}: a stack of {count} frames. Open it to see them all, or move it with the left and right arrows."
388
+ msgstr "{title}: a stack of {count} frames. Open it to see them all, or move it with the left and right arrows."
389
+
390
+ #: app/canvas/stack-toggle.tsx
391
+ msgid "{title}: a stack of {count} frames. Open it to see them all."
392
+ msgstr "{title}: a stack of {count} frames. Open it to see them all."
393
+
386
394
  #: app/shell/prototype-menu.tsx
387
395
  msgid "{title}: more"
388
396
  msgstr "{title}: more"
@@ -529,6 +537,10 @@ msgstr "Add it yourself"
529
537
  msgid "Add MCP config"
530
538
  msgstr "Add MCP config"
531
539
 
540
+ #: app/shell/feedback-form.tsx
541
+ msgid "Add more"
542
+ msgstr "Add more"
543
+
532
544
  #: app/canvas/frame-context-menu.tsx
533
545
  msgid "Add to spec"
534
546
  msgstr "Add to spec"
@@ -559,6 +571,14 @@ msgstr "Added {0}. Click it to try its props."
559
571
  msgid "Added. Restart {name}, then run your first prompt."
560
572
  msgstr "Added. Restart {name}, then run your first prompt."
561
573
 
574
+ #: app/canvas/change-pictures.tsx
575
+ msgid "After"
576
+ msgstr "After"
577
+
578
+ #: app/canvas/change-pictures.tsx
579
+ msgid "After the change"
580
+ msgstr "After the change"
581
+
562
582
  #: app/canvas/comments.tsx
563
583
  #: app/shell/settings-sections.ts
564
584
  msgid "Agent"
@@ -753,6 +773,14 @@ msgstr "Back, and caught up."
753
773
  msgid "Base branch"
754
774
  msgstr "Base branch"
755
775
 
776
+ #: app/canvas/change-pictures.tsx
777
+ msgid "Before"
778
+ msgstr "Before"
779
+
780
+ #: app/canvas/change-pictures.tsx
781
+ msgid "Before and after"
782
+ msgstr "Before and after"
783
+
756
784
  #: app/pages/canvas-settings.tsx
757
785
  #: app/shell/instructions-editor.tsx
758
786
  msgid "Blocks"
@@ -784,6 +812,10 @@ msgstr "Branch prefix"
784
812
  msgid "Branch: {shown}"
785
813
  msgstr "Branch: {shown}"
786
814
 
815
+ #: app/git/branch-panel.tsx
816
+ msgid "Branches"
817
+ msgstr "Branches"
818
+
787
819
  #: app/pages/deployment-settings.tsx
788
820
  msgid "Branches, Sync, pull requests and People, which come from git, stay where Dex runs."
789
821
  msgstr "Branches, Sync, pull requests and People, which come from git, stay where Dex runs."
@@ -1027,10 +1059,6 @@ msgstr "Codebase"
1027
1059
  msgid "Codex reads it only in a project you trust: when Codex asks about this folder, trust it."
1028
1060
  msgstr "Codex reads it only in a project you trust: when Codex asks about this folder, trust it."
1029
1061
 
1030
- #: app/canvas/stack-frame.tsx
1031
- msgid "Collapse"
1032
- msgstr "Collapse"
1033
-
1034
1062
  #: app/canvas/styles-layer.tsx
1035
1063
  msgid "Colour"
1036
1064
  msgstr "Colour"
@@ -1561,6 +1589,10 @@ msgstr "Dex is up to date"
1561
1589
  msgid "Dex isn’t responding."
1562
1590
  msgstr "Dex isn’t responding."
1563
1591
 
1592
+ #: app/canvas/change-pictures.tsx
1593
+ msgid "Dex no longer has the pictures of this change."
1594
+ msgstr "Dex no longer has the pictures of this change."
1595
+
1564
1596
  #: app/shell/update-notice.tsx
1565
1597
  msgid "Dex restarted on it."
1566
1598
  msgstr "Dex restarted on it."
@@ -1921,6 +1953,10 @@ msgstr "Focus"
1921
1953
  msgid "Focus ring"
1922
1954
  msgstr "Focus ring"
1923
1955
 
1956
+ #: app/canvas/stack-toggle.tsx
1957
+ msgid "Fold back the stack of {count} frames"
1958
+ msgstr "Fold back the stack of {count} frames"
1959
+
1924
1960
  #: app/canvas/device-icons.ts
1925
1961
  msgid "Foldable"
1926
1962
  msgstr "Foldable"
@@ -2496,6 +2532,10 @@ msgstr "Markup"
2496
2532
  msgid "Markup on a shop’s cart: a task under way in its panel, with a reviewer’s comment on the total, pinned where they clicked."
2497
2533
  msgstr "Markup on a shop’s cart: a task under way in its panel, with a reviewer’s comment on the total, pinned where they clicked."
2498
2534
 
2535
+ #: app/canvas/find-bar.tsx
2536
+ msgid "Matches"
2537
+ msgstr "Matches"
2538
+
2499
2539
  #: app/shell/settings-sections.ts
2500
2540
  msgid "MCP connection"
2501
2541
  msgstr "MCP connection"
@@ -2577,10 +2617,6 @@ msgstr "Move all yours to trash"
2577
2617
  msgid "Move the row: drag it, or press the up and down arrows"
2578
2618
  msgstr "Move the row: drag it, or press the up and down arrows"
2579
2619
 
2580
- #: app/canvas/stack-node.tsx
2581
- msgid "Move the stack: drag it, or press the left and right arrows"
2582
- msgstr "Move the stack: drag it, or press the left and right arrows"
2583
-
2584
2620
  #: app/canvas/removed-views-panel.tsx
2585
2621
  msgid "Move to trash"
2586
2622
  msgstr "Move to trash"
@@ -3177,6 +3213,10 @@ msgstr "Pasted {0}"
3177
3213
  msgid "Pasted a snapshot."
3178
3214
  msgstr "Pasted a snapshot."
3179
3215
 
3216
+ #: app/canvas/use-canvas-clipboard.tsx
3217
+ msgid "Pasted a snapshot. Part of it was sized by the page's scripts, so it keeps that size when you resize the frame."
3218
+ msgstr "Pasted a snapshot. Part of it was sized by the page's scripts, so it keeps that size when you resize the frame."
3219
+
3180
3220
  #: app/canvas/use-canvas-clipboard.tsx
3181
3221
  msgid "Pasting…"
3182
3222
  msgstr "Pasting…"
@@ -3992,6 +4032,10 @@ msgstr "Show reviews or their comments"
3992
4032
  msgid "Show teammates’ frames"
3993
4033
  msgstr "Show teammates’ frames"
3994
4034
 
4035
+ #: app/canvas/change-pictures.tsx
4036
+ msgid "Show the change"
4037
+ msgstr "Show the change"
4038
+
3995
4039
  #: app/canvas/grid-panel.tsx
3996
4040
  msgid "Show the grid"
3997
4041
  msgstr "Show the grid"
@@ -4112,14 +4156,6 @@ msgstr "Specs"
4112
4156
  msgid "Stack"
4113
4157
  msgstr "Stack"
4114
4158
 
4115
- #: app/canvas/stack-frame.tsx
4116
- msgid "Stack of {count}"
4117
- msgstr "Stack of {count}"
4118
-
4119
- #: app/canvas/stack-frame.tsx
4120
- msgid "Stack of {count} frames. Open it to see them all."
4121
- msgstr "Stack of {count} frames. Open it to see them all."
4122
-
4123
4159
  #: app/shell/connect-agent.tsx
4124
4160
  msgid "Start {name} in this project"
4125
4161
  msgstr "Start {name} in this project"
@@ -4344,6 +4380,10 @@ msgstr "That image could not be read."
4344
4380
  msgid "That section is someone else's: place the note on one of yours, or outside any section."
4345
4381
  msgstr "That section is someone else's: place the note on one of yours, or outside any section."
4346
4382
 
4383
+ #: app/canvas/note-placing.ts
4384
+ msgid "That section is someone else's: place the section header on one of yours, or outside any section."
4385
+ msgstr "That section is someone else's: place the section header on one of yours, or outside any section."
4386
+
4347
4387
  #: app/canvas/spec-placing.tsx
4348
4388
  msgid "That section is someone else's: place the slide on one of yours, or outside any section."
4349
4389
  msgstr "That section is someone else's: place the slide on one of yours, or outside any section."
@@ -4420,6 +4460,14 @@ msgstr "The export failed."
4420
4460
  msgid "The first time, it asks whether to use the dex MCP server: choose “Use this MCP server”, not the one it picks for you. If it was turned down before, run /mcp in Claude Code and enable dex."
4421
4461
  msgstr "The first time, it asks whether to use the dex MCP server: choose “Use this MCP server”, not the one it picks for you. If it was turned down before, run /mcp in Claude Code and enable dex."
4422
4462
 
4463
+ #: app/canvas/change-pictures.tsx
4464
+ msgid "The frame after the change"
4465
+ msgstr "The frame after the change"
4466
+
4467
+ #: app/canvas/change-pictures.tsx
4468
+ msgid "The frame before the change"
4469
+ msgstr "The frame before the change"
4470
+
4423
4471
  #: app/canvas/use-canvas-editor.ts
4424
4472
  msgid "The frame could not be added."
4425
4473
  msgstr "The frame could not be added."
@@ -4760,7 +4808,6 @@ msgid "Unsaved changes"
4760
4808
  msgstr "Unsaved changes"
4761
4809
 
4762
4810
  #: app/canvas/frame-context-menu.tsx
4763
- #: app/canvas/stack-frame.tsx
4764
4811
  msgid "Unstack"
4765
4812
  msgstr "Unstack"
4766
4813