dsh-open-artifact 0.10.0 → 0.11.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 (110) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/lib/client.js +1 -1
  3. package/lib/index.js +3 -3
  4. package/package.json +1 -1
  5. package/vendor/artifact-types/whiteboard/SKILL.md +164 -110
  6. package/vendor/artifact-types/whiteboard/reference/drawing.md +81 -0
  7. package/vendor/frame-host/client/comments.css +1 -1
  8. package/vendor/home/assets/index-B07YV3Ry.js +42 -0
  9. package/vendor/home/assets/index-gi88sSy-.css +1 -0
  10. package/vendor/home/index.html +2 -2
  11. package/vendor/open-artifact.mjs +195 -15
  12. package/vendor/shell/assets/{index-Dh87kPxK.js → index-CexfOBjN.js} +17 -17
  13. package/vendor/shell/assets/index-gi88sSy-.css +1 -0
  14. package/vendor/shell/index.html +2 -2
  15. package/vendor/type-server/cli.mjs +377 -212
  16. package/vendor/type-server/editors/data/assets/index-CjRoDeAu.css +1 -0
  17. package/vendor/type-server/editors/data/assets/{index-DCzi7q9K.js → index-zX0LuGi4.js} +54 -54
  18. package/vendor/type-server/editors/data/index.html +2 -2
  19. package/vendor/type-server/editors/design/assets/index-CKznC0fZ.css +1 -0
  20. package/vendor/type-server/editors/design/assets/{index-BxLmdlmH.js → index-e_HSU8qb.js} +85 -85
  21. package/vendor/type-server/editors/design/index.html +2 -2
  22. package/vendor/type-server/editors/design-system/assets/index-BsKW6DA3.css +1 -0
  23. package/vendor/type-server/editors/design-system/assets/{index-Ds9n-dT4.js → index-DdIgsbvR.js} +82 -82
  24. package/vendor/type-server/editors/design-system/index.html +2 -2
  25. package/vendor/type-server/editors/docs/assets/{abnfDiagram-WEYOIA3C-CCbHLmXG.js → abnfDiagram-WEYOIA3C-B_7i_fMm.js} +1 -1
  26. package/vendor/type-server/editors/docs/assets/{architectureDiagram-ZHVYKT53-BxqT-TaD.js → architectureDiagram-ZHVYKT53-DezMXBMz.js} +1 -1
  27. package/vendor/type-server/editors/docs/assets/{blockDiagram-RJAE7QA3-DvWGCBh1.js → blockDiagram-RJAE7QA3-CJ9DL2jC.js} +1 -1
  28. package/vendor/type-server/editors/docs/assets/{c4Diagram-XDPPPE54-C_xj5xaW.js → c4Diagram-XDPPPE54-BnP8m5xz.js} +1 -1
  29. package/vendor/type-server/editors/docs/assets/channel-DscJpC40.js +1 -0
  30. package/vendor/type-server/editors/docs/assets/{chunk-2E7WHVMD-CCYbXEWI.js → chunk-2E7WHVMD-CTgDXoU-.js} +1 -1
  31. package/vendor/type-server/editors/docs/assets/{chunk-2Q5K7J3B-f47yKvBb.js → chunk-2Q5K7J3B-DznzUoFc.js} +1 -1
  32. package/vendor/type-server/editors/docs/assets/{chunk-4EMNKR2T-z3VFyead.js → chunk-4EMNKR2T-BCSy2rSn.js} +1 -1
  33. package/vendor/type-server/editors/docs/assets/{chunk-55XCU76K-CivELzzv.js → chunk-55XCU76K-xDUuM5el.js} +1 -1
  34. package/vendor/type-server/editors/docs/assets/{chunk-5VM5RSS4-DlIRY8_X.js → chunk-5VM5RSS4-DNU0xCD7.js} +1 -1
  35. package/vendor/type-server/editors/docs/assets/{chunk-JWPE2WC7-HkzKqY__.js → chunk-JWPE2WC7-COd8JZsL.js} +1 -1
  36. package/vendor/type-server/editors/docs/assets/{chunk-VQ5W62QI-C-qjyEK4.js → chunk-VQ5W62QI-Bh09T0FY.js} +1 -1
  37. package/vendor/type-server/editors/docs/assets/{chunk-XXDRQBXY-BivI8BFK.js → chunk-XXDRQBXY-DxTKY7cJ.js} +1 -1
  38. package/vendor/type-server/editors/docs/assets/{chunk-ZCHMQSOR-KqD_8-Tt.js → chunk-ZCHMQSOR-82RhpAXb.js} +2 -2
  39. package/vendor/type-server/editors/docs/assets/{classDiagram-v2-4MYWR3UA-DuaNShab.js → classDiagram-v2-4MYWR3UA-CYuW7Mgb.js} +1 -1
  40. package/vendor/type-server/editors/docs/assets/{core-yHLMtw39.js → core-u0e8U8E8.js} +1 -1
  41. package/vendor/type-server/editors/docs/assets/{cose-bilkent-JH36ORCC-Cb03hPRZ.js → cose-bilkent-JH36ORCC-pCRiyKP5.js} +1 -1
  42. package/vendor/type-server/editors/docs/assets/{cynefin-EF2NZ3EQ-DccQ3j78.js → cynefin-EF2NZ3EQ-BeeaBeDT.js} +1 -1
  43. package/vendor/type-server/editors/docs/assets/{cynefinDiagram-WF24UDRP-WUYOObLU.js → cynefinDiagram-WF24UDRP-CIdbjxcu.js} +1 -1
  44. package/vendor/type-server/editors/docs/assets/{dagre-NK4GIZVX-CXFTfkRM.js → dagre-NK4GIZVX-CO1DZTiT.js} +1 -1
  45. package/vendor/type-server/editors/docs/assets/{diagram-CBK3MWTC-DY3u2EqZ.js → diagram-CBK3MWTC-6n-F4OuD.js} +1 -1
  46. package/vendor/type-server/editors/docs/assets/{diagram-I5XIIV2D-DoWMSwXj.js → diagram-I5XIIV2D-ClFemX6E.js} +1 -1
  47. package/vendor/type-server/editors/docs/assets/{diagram-ODIL2UCW-K9h7dbqQ.js → diagram-ODIL2UCW-D2-bjbWt.js} +1 -1
  48. package/vendor/type-server/editors/docs/assets/{diagram-PFBEJUXE-JiA5MGnh.js → diagram-PFBEJUXE-CXopXg-5.js} +1 -1
  49. package/vendor/type-server/editors/docs/assets/{diagram-RJA3I4VV-CsvyNOsg.js → diagram-RJA3I4VV-Czv6dmYV.js} +1 -1
  50. package/vendor/type-server/editors/docs/assets/{diagram-TYUNFSNR-DE6uniOb.js → diagram-TYUNFSNR-BjNMx-3T.js} +1 -1
  51. package/vendor/type-server/editors/docs/assets/{ebnfDiagram-V4P3TTPT-BH-WE16a.js → ebnfDiagram-V4P3TTPT-_k0sEa2w.js} +1 -1
  52. package/vendor/type-server/editors/docs/assets/{elk-QONTBCTQ-DraaXmNq.js → elk-QONTBCTQ-CqBd3h2n.js} +1 -1
  53. package/vendor/type-server/editors/docs/assets/{erDiagram-KYQIGQAA-B277p4np.js → erDiagram-KYQIGQAA-B9F5_-jX.js} +1 -1
  54. package/vendor/type-server/editors/docs/assets/{flowDiagram-IUGLLWBU-CvDTWV3E.js → flowDiagram-IUGLLWBU-U41oIlLX.js} +1 -1
  55. package/vendor/type-server/editors/docs/assets/{ganttDiagram-R7GPNTJY-JC4aNrlv.js → ganttDiagram-R7GPNTJY-ZJ_zMJAN.js} +1 -1
  56. package/vendor/type-server/editors/docs/assets/{gitGraphDiagram-PDYL7XHY-B8mMOCvE.js → gitGraphDiagram-PDYL7XHY-CieQrjc-.js} +1 -1
  57. package/vendor/type-server/editors/docs/assets/{index-zfXZ7Ukr.js → index-6vYo8gmG.js} +56 -56
  58. package/vendor/type-server/editors/docs/assets/index-cY5x9E_f.css +1 -0
  59. package/vendor/type-server/editors/docs/assets/{infoDiagram-MVDRKAX5-Djmc1pjc.js → infoDiagram-MVDRKAX5-DMPI5Suf.js} +1 -1
  60. package/vendor/type-server/editors/docs/assets/{ishikawaDiagram-HPEHV2GE-DO073fGL.js → ishikawaDiagram-HPEHV2GE-BuRoprkK.js} +1 -1
  61. package/vendor/type-server/editors/docs/assets/{journeyDiagram-BOSHW7O7-DCEifD0N.js → journeyDiagram-BOSHW7O7-D7W3L2ot.js} +1 -1
  62. package/vendor/type-server/editors/docs/assets/{kanban-definition-FNSA4HC5-BLuqVH3N.js → kanban-definition-FNSA4HC5-WJaK4bPT.js} +1 -1
  63. package/vendor/type-server/editors/docs/assets/{mermaid.core-C9JSZQDM.js → mermaid.core-DCM4VhdN.js} +4 -4
  64. package/vendor/type-server/editors/docs/assets/{mindmap-definition-6OY57UG3-Cj42POgl.js → mindmap-definition-6OY57UG3-DPE8X6uR.js} +1 -1
  65. package/vendor/type-server/editors/docs/assets/{pegDiagram-ECIUJNBX-DaY0D8Qp.js → pegDiagram-ECIUJNBX-CcbnSx7r.js} +1 -1
  66. package/vendor/type-server/editors/docs/assets/{pieDiagram-GNMPY74T-BbgTm9QY.js → pieDiagram-GNMPY74T-RwtzxnWW.js} +1 -1
  67. package/vendor/type-server/editors/docs/assets/{quadrantDiagram-D57K4MC3-3E0SKgrP.js → quadrantDiagram-D57K4MC3-Cr3B6YHX.js} +1 -1
  68. package/vendor/type-server/editors/docs/assets/{railroadDiagram-Y72NRBL7-v9rvwd2R.js → railroadDiagram-Y72NRBL7-orEcvto7.js} +1 -1
  69. package/vendor/type-server/editors/docs/assets/{requirementDiagram-EQYSW5RA-C-IPSbh1.js → requirementDiagram-EQYSW5RA-BXLlpmup.js} +1 -1
  70. package/vendor/type-server/editors/docs/assets/{sankeyDiagram-SY24JHO5-CHy0QgtA.js → sankeyDiagram-SY24JHO5-BfFpK821.js} +1 -1
  71. package/vendor/type-server/editors/docs/assets/{sequenceDiagram-BLEHNHQU-q_7Z-dSG.js → sequenceDiagram-BLEHNHQU-BKZgD7GW.js} +1 -1
  72. package/vendor/type-server/editors/docs/assets/{sizeCapture-INFHLROL-Bl-3ZeA3.js → sizeCapture-INFHLROL-Bfw2eZ2e.js} +1 -1
  73. package/vendor/type-server/editors/docs/assets/{stateDiagram-v2-A6IESKWZ-D0xEiLqQ.js → stateDiagram-v2-A6IESKWZ-CYAlYi8o.js} +1 -1
  74. package/vendor/type-server/editors/docs/assets/{swimlanes-B3ENRKFQ-BaSCnSNs.js → swimlanes-B3ENRKFQ-DWUE4VvH.js} +1 -1
  75. package/vendor/type-server/editors/docs/assets/swimlanesDiagram-AYQRV4AK-qLlL6L_8.js +8 -0
  76. package/vendor/type-server/editors/docs/assets/{timeline-definition-JXYKGLGB-laSK1Gbu.js → timeline-definition-JXYKGLGB-nEGJneda.js} +1 -1
  77. package/vendor/type-server/editors/docs/assets/{usecaseDiagram-WPOLBNNX-DqIYOeHa.js → usecaseDiagram-WPOLBNNX-DmjJOIUM.js} +1 -1
  78. package/vendor/type-server/editors/docs/assets/{vennDiagram-Q3Y3IDCW-8hnGoLVc.js → vennDiagram-Q3Y3IDCW-Das4vlki.js} +1 -1
  79. package/vendor/type-server/editors/docs/assets/{wardleyDiagram-IVAIDKWA-XhMRAFLS.js → wardleyDiagram-IVAIDKWA-5s6P73-4.js} +1 -1
  80. package/vendor/type-server/editors/docs/assets/{xychartDiagram-4URNHDU4-BQ464r-5.js → xychartDiagram-4URNHDU4-BUuw163G.js} +1 -1
  81. package/vendor/type-server/editors/docs/index.html +2 -2
  82. package/vendor/type-server/editors/sheets/assets/index-CC84xidb.css +1 -0
  83. package/vendor/type-server/editors/sheets/index.html +2 -2
  84. package/vendor/type-server/editors/slides/assets/index-BLkS9E-9.css +1 -0
  85. package/vendor/type-server/editors/slides/assets/{index-BIhLE319.js → index-DAUq3HTZ.js} +97 -97
  86. package/vendor/type-server/editors/slides/assets/{src-BMfNJlFa.js → src-BptKAvUV.js} +1 -1
  87. package/vendor/type-server/editors/slides/index.html +2 -2
  88. package/vendor/type-server/editors/whiteboard/assets/drawing-look-worker-CqBaK5Zd.js +34 -0
  89. package/vendor/type-server/editors/whiteboard/assets/index-CmSIx-yD.js +149 -0
  90. package/vendor/type-server/editors/whiteboard/assets/index-Cy3-qIOd.css +1 -0
  91. package/vendor/type-server/editors/whiteboard/index.html +2 -2
  92. package/vendor/type-server/shell/assets/{index-Dh87kPxK.js → index-CexfOBjN.js} +17 -17
  93. package/vendor/type-server/shell/assets/index-gi88sSy-.css +1 -0
  94. package/vendor/type-server/shell/index.html +2 -2
  95. package/vendor/artifact-types/whiteboard/reference/pictures.md +0 -62
  96. package/vendor/home/assets/index-De10fYe2.css +0 -1
  97. package/vendor/home/assets/index-f0tXVfCg.js +0 -42
  98. package/vendor/shell/assets/index-De10fYe2.css +0 -1
  99. package/vendor/type-server/editors/data/assets/index-BeX-Ft9U.css +0 -1
  100. package/vendor/type-server/editors/design/assets/index-V2itba2A.css +0 -1
  101. package/vendor/type-server/editors/design-system/assets/index-BKtW0tss.css +0 -1
  102. package/vendor/type-server/editors/docs/assets/channel-CAHEXZj4.js +0 -1
  103. package/vendor/type-server/editors/docs/assets/index-CImOD5PH.css +0 -1
  104. package/vendor/type-server/editors/docs/assets/swimlanesDiagram-AYQRV4AK-BVRUngig.js +0 -8
  105. package/vendor/type-server/editors/sheets/assets/index-BuyAElEK.css +0 -1
  106. package/vendor/type-server/editors/slides/assets/index-IlrWLjjI.css +0 -1
  107. package/vendor/type-server/editors/whiteboard/assets/index-CCbNASB4.js +0 -141
  108. package/vendor/type-server/editors/whiteboard/assets/index-Cz68Z3tW.css +0 -1
  109. package/vendor/type-server/shell/assets/index-De10fYe2.css +0 -1
  110. /package/vendor/type-server/editors/sheets/assets/{index-Bz614Fzm.js → index-0OFDO2tc.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,49 @@ agent plugins. Since 0.9.0 they all share one version; before that `dsh-open-art
6
6
  Each entry is written from the commits since the previous tag (`node scripts/changelog.mjs` lists them); see
7
7
  [Releasing](README.md#releasing).
8
8
 
9
+ ## [0.11.0] - 2026-11-20
10
+
11
+ Open live artifacts inside MCP conversations, with steadier whiteboards and more ways to style their content.
12
+
13
+ ### Added
14
+
15
+ - In clients that support MCP Apps, `ShowArtifact` opens an interactive artifact in the conversation. The view can
16
+ go full screen, open in a browser, or send comments back to the agent.
17
+ - Whiteboard drawings have seven styles in light and dark. Table cells support fills and heat maps by row or column.
18
+ The drawing styles, fills and heat maps carry through to PNG exports.
19
+ - Whiteboard text can show a placeholder and starts editing with a click or tap. Link cards let you open, copy or
20
+ edit a link, and F6 moves focus between the toolbars, board and panels.
21
+ - `npm run test-artifacts` opens a browser gallery of editable test artifacts, starting with a whiteboard that
22
+ demonstrates all element types, styles and options.
23
+
24
+ ### Changed
25
+
26
+ - The whiteboard skill documents drawing styles, text placeholders, table formatting and how agents coordinate
27
+ edits on a shared board. Validation reports unknown drawing styles, how much to trim from oversized drawings,
28
+ and claims that still mark an area as being worked on.
29
+ - Clicking a side dot on a whiteboard note or shape adds an adjacent item in available space. Read-only boards show
30
+ a badge, and exported PNGs use the board title as the filename.
31
+ - Number fields snap to their step when dragged unless Alt is held. Color fields explain rejected values and
32
+ announce hue and opacity values for screen readers.
33
+
34
+ ### Fixed
35
+
36
+ - Whiteboard text stays visible and steady during pans and resizes. Panning survives a dropped pointer capture,
37
+ and the board keeps fitting as its view changes size until you interact with it.
38
+ - Growing whiteboard text makes room below it. Resizing rotated notes or text keeps the anchored corner in place,
39
+ and pasted text preserves bold, italics and links.
40
+ - Concurrent moves and resizes of a whiteboard group merge field by field. Merged table cells preserve their
41
+ formatting, and drawings can include dashed arcs.
42
+ - Extra clicks on menus or dismissing a popover no longer activate controls underneath. Popovers configured to
43
+ keep typed input stay open until dismissed, and stepping an empty number field starts from a valid value.
44
+ - Whiteboard crop mode can be canceled with Undo, and embedded pages receive keystrokes once you enter them.
45
+ - Type servers start without flashing a console window on Windows.
46
+
47
+ ### Removed
48
+
49
+ - Whiteboards now use DOM rendering exclusively. The Whiteboard WebGL renderer and its
50
+ `open_artifact_engine=off` URL switch are gone.
51
+
9
52
  ## [0.10.0] - 2026-11-20
10
53
 
11
54
  Follow other viewers from the Shell, link-aware Design and Design System editing, and copying that works in the
@@ -185,6 +228,7 @@ One version for every package, with Docs and Sheets in every plugin.
185
228
  - Plugins for Claude Code, Codex, Cursor, Copilot, ChatGPT and DeepSeek Harness.
186
229
  - English and Chinese READMEs, under Apache-2.0.
187
230
 
231
+ [0.11.0]: https://github.com/JimLiu/open-artifact/compare/v0.10.0...v0.11.0
188
232
  [0.10.0]: https://github.com/JimLiu/open-artifact/compare/v0.9.2...v0.10.0
189
233
  [0.9.2]: https://github.com/JimLiu/open-artifact/compare/v0.9.1...v0.9.2
190
234
  [0.9.1]: https://github.com/JimLiu/open-artifact/compare/v0.9.0...v0.9.1
package/lib/client.js CHANGED
@@ -1,4 +1,4 @@
1
- // dsh-open-artifact 0.10.0: the DSH plugin (browser half). Built by scripts/build.mjs; do not edit.
1
+ // dsh-open-artifact 0.11.0: the DSH plugin (browser half). Built by scripts/build.mjs; do not edit.
2
2
  window.__ModuleLoader__.load({
3
3
  id: "dsh-open-artifact",
4
4
  factory: (require) => {
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // dsh-open-artifact 0.10.0: the DSH plugin (server half). Built by scripts/build.mjs; do not edit.
1
+ // dsh-open-artifact 0.11.0: the DSH plugin (server half). Built by scripts/build.mjs; do not edit.
2
2
 
3
3
  // packages/daemon/src/client.ts
4
4
  import { spawn } from "node:child_process";
@@ -361,7 +361,7 @@ function readJson(file, fallback) {
361
361
  // packages/daemon/package.json
362
362
  var package_default = {
363
363
  name: "@open-artifact/daemon",
364
- version: "0.10.0",
364
+ version: "0.11.0",
365
365
  private: true,
366
366
  type: "module",
367
367
  description: "The Open Artifact daemon (`open-artifact`): type registry, artifact library, type servers, agent tools, wake routing, the Harness API, MCP and the Shell.",
@@ -373,7 +373,7 @@ var package_default = {
373
373
  "./client": "./src/client.ts"
374
374
  },
375
375
  dependencies: {
376
- "@open-artifact/protocol": "0.10.0"
376
+ "@open-artifact/protocol": "0.11.0"
377
377
  },
378
378
  license: "Apache-2.0"
379
379
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-open-artifact",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Open Artifact in DeepSeek Harness: the Artifact, ArtifactData and ArtifactComments tools, comments on artifact pages waking the session that owns them, the Open Artifact page in the sidebar listing the open-artifact library, artifacts the agent opens shown in the session's Browser, and /open-artifact <type> to make a new one.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -69,60 +69,80 @@ pane too, if you have one).
69
69
 
70
70
  ## A good board
71
71
 
72
- A board explains something at a glance: people read its shape before its words.
73
- - Form explains function. Give the whole the shape the idea has: a loop for a cycle, a line for a
74
- process, a tree for what is made of what. When the person names the form, use theirs.
75
- - Draw what could be photographed. To explain a machine, a place or something in nature, draw the real
76
- things as a person standing there would see them, with their surroundings, cut open if the working
77
- parts are inside. Each thing is its own drawn `image`, and the one the ask is about is by far the
78
- largest.
79
- - Don't draw people or parts of them: no figure, face, hand, silhouette or stick figure, even when
80
- someone asks, because a drawn person looks most wrong on a board and takes over from what it is
81
- there to show. Draw what they would use or work on instead. If someone asked you to draw a person,
82
- say to them alone, in a line, that you don't draw people and what you drew; otherwise don't mention
83
- it. Creatures have anatomy, machines have the parts that make them work, and, in a picture asked for
84
- on its own, an idea is staged as a small scene of real things.
85
- - What has nothing to see gets no pictures unless the person asks to draw it: a list, a schedule, a
86
- brainstorm, a comparison of ideas, the workings of software, a network or an organisation.
87
- - Make the thing they name, not blocks about it, at its own fidelity: a sketch, a storyboard or an
88
- illustration (a logo, an icon, a map, a floor plan, a scene) is one drawn `image`; a prototype is an
89
- embed that looks and works like the product. What else must WORK (a calculator, a poll, a moving
90
- chart) is an embed too; a wireframe, like anything only read, is shapes and text.
91
- - Say less. A few words in each thing. What does not help someone understand stays off the board. Give
92
- text longer than a label a width, often 300 to 400, or it runs on one long line.
93
- - Label where the eye already is. A name sits on its part or right beside it. An arrow carries words
94
- only when what it means is not plain.
95
- - Make difference mean something. Things of one kind share a size, a shape and a colour; a colour or
96
- outline marks just one kind, named by a title, label or key. Never more than four marks on a board
97
- unless asked: with five kinds or more, keep them plain under titles. One strong colour, on what
98
- matters most.
99
- - Read left to right, then top to bottom. Line things up, let nothing overlap, and never make a row
100
- turn back. Past 6 steps, a process takes a second row that starts again at the left.
101
- - Keep a new board within about 1,500 × 750. When you start something new, lead with a title and the
102
- one sentence to take away, 10 words at most (`text` in size title, then large).
103
- - Update what your change makes out of date, whoever made it: an old name, number, date or step given
104
- again, and anything worked out from it.
105
- - Set right what your change disturbed, gaps too, in place, in the fewest moves. When you can't tell,
106
- leave it: bigger restructuring waits until someone asks or you offer it, because hand-placed things
107
- carry thinking you can't see. What a person grouped stays grouped, and their words and colours stay
108
- theirs unless the ask concerns them. Offer what you notice beyond the ask, so the board changes only
109
- when they choose. An ask to clean up means fixing what looks wrong, the worst first; a reply that
110
- changes nothing fixes nothing.
111
- - Say each thing once: before you add, find what the board already holds on the subject and work on
112
- that, where it stands. Fill it, extend it, or turn it into the form that is asked, keeping what it
113
- says: never build a new version beside the old one. Only a new subject, or a place they picked or
114
- named, gets new ground and a heading of its own.
115
-
116
- Room: 24 units between neighbours, 64 where an arrow runs between two shapes, 144 where it carries a
117
- label. Align the centres of what an arrow joins.
118
-
119
- ## Writing to a board
120
-
121
- An ask from the board is answered on the board: to explain, compare, sum up or walk through, draw it
122
- there, with one line in your reply. Only a fact, a yes or no or thanks takes words alone.
123
-
124
- **Write a new board at once**, unless you must ask first, and work its layout out as you write: a person
125
- is waiting. Still put in every part, step, label and arrow the ask needs.
72
+ A board shows thinking laid out in space. Seen from a distance, its overall form tells people what kind of thing is in
73
+ front of them; close up, every part is worth reading. Structure you can see is the one thing a board adds over a
74
+ document, so a cluttered board does worse than a plain page would.
75
+
76
+ **The shape of the idea.** The usual miss is a grid of boxes joined by arrows. Lay the whole out in the form the idea
77
+ itself has: a cycle as a loop, a process as a line, a breakdown as a tree, or lanes, a matrix, a map. If the person
78
+ names a form, use theirs.
79
+
80
+ Make what they asked for, not boxes describing it, at the fidelity it calls for. A sketch (even of a screen), a
81
+ storyboard or an illustration such as a logo, icon, map, floor plan, cartoon or scene is one drawn `image`. For a
82
+ prototype or mock-up, build an embed that looks and behaves like the real product; the same goes for anything else
83
+ that has to work, whether an app, a calculator, a poll or a moving chart. A wireframe, like anything people only read,
84
+ is shapes and text.
85
+
86
+ To explain a machine, a place or something in nature, draw the real things as someone standing there would see them, in
87
+ their surroundings, cut open where the working parts are hidden; to show what someone goes through, draw it as a short
88
+ story. Each thing is a drawn `image` of its own, and the one the ask is about is much the largest. A list, a schedule,
89
+ a brainstorm, a comparison of ideas, how software works, a network or an organisation has nothing to look at: it gets
90
+ no pictures unless the person asks for them.
91
+
92
+ **Size and words.** Keep a new board to roughly 1,500 × 750: the page zooms a larger one out to fit, and its words open
93
+ too small to read. Starting something new, lead with a title and the single sentence to take away, ten words at most
94
+ (`text` in size title, then large). Keep each thing to a few words; whatever doesn't help understanding only buries
95
+ what does. Labels go on their part or just next to it, and an arrow gets words only when its meaning isn't obvious.
96
+
97
+ **What people see first.** A board is taken in before a word of it is read. Size tells people what matters and where
98
+ to begin; empty space between two areas tells them the topic has moved on; a box tells them its contents belong
99
+ together as one item. Give a box each to whatever people will drag around, sort, vote on or connect (the ideas of a
100
+ brainstorm, say), and put what they will only read top to bottom in one `text`. Anything that looks the same is taken
101
+ for the same kind of thing, so let a colour or an outline mark a single kind, named by a title, label or key. No more
102
+ than four such marks on a board unless asked, since about four is what people hold in mind; with five kinds or more,
103
+ keep them plain under titles. Spend one strong colour, on what matters most.
104
+
105
+ **Placing things.** The page puts each item exactly where you say, lets items overlap, and you never see them land. So
106
+ place one thing first and work out each next position from it. Steps that don't fit on one row carry on from the left
107
+ of the row below; a side branch begins next to or below the item it splits from, which keeps its arrow short.
108
+
109
+ Room: 24 units between neighbours, 64 where an arrow runs between two shapes, 144 where it has a label. An arrow
110
+ reads as one only when some line shows ahead of its head. Align the centres of what an arrow joins.
111
+
112
+ ## Being a good teammate
113
+
114
+ The board is the team's, and you are on the team. What the person has selected, pinned a comment to or has in view is
115
+ where their attention is: read a short ask as "this, here" unless its words point somewhere else.
116
+
117
+ Where something sits carries meaning: things side by side belong together, and further along a line means later. Find
118
+ the order the board is built on, and add new work at the spot where, by that order, people would expect to find it,
119
+ styled like what surrounds it. A subject the board already covers you extend, or reshape into the form asked for,
120
+ where it stands, pushing its neighbours aside to make room. Never build a second version beside the first: the team is
121
+ left unsure which one counts. Only a new subject, or a place the person picked, gets fresh ground and its own heading,
122
+ near what it relates to, in their view where it fits, and over nothing except inside its own section.
123
+
124
+ On a board other people made, behave like a considerate guest: clean up after yourself, and leave the furniture where
125
+ it stands. Follow a change through to whatever it makes stale, whoever wrote it: an old name, number, date or step
126
+ repeated elsewhere, any figure derived from it, any step that depends on it. Repair what your change pushed out of
127
+ place, in place and in as few moves as possible: when something grows, shift the items next to it along by the same
128
+ amount so the gaps don't change, and what lies on a thing (stickers) moves with it. Beyond that, things placed by hand
129
+ carry thinking you can't see: keep together whatever a person grouped, leave their wording and colours alone unless
130
+ the ask is about them, and offer, rather than make, any change you spot outside the ask, so the board changes only
131
+ when they decide.
132
+
133
+ Asked to tidy up, believe them: they are looking at the board while you are reading coordinates, so even what seems fine
134
+ in the numbers can be better. Fix the worst-looking parts first, and move nothing far from where it was, since everyone
135
+ has to find it again. Read the board fresh, then write only what changes, in one batch (past 500 writes, as few as it
136
+ takes): the new `x`, `y`, `w` and `h` of what moves or resizes, and nothing else.
137
+
138
+ ## Answering
139
+
140
+ When the person wants something made, explained, compared, summed up or walked through, the answer is built on the
141
+ board, even when the ask came from the board itself. Facts, yes-or-no answers, opinions and thanks get words alone.
142
+ When they ask a question, answer that question: don't rebuild or rearrange the board to do it.
143
+
144
+ Afterwards, reply briefly: in their comment thread, a sentence or two; in the conversation, two or three sentences on
145
+ what you arranged, what you assumed and what you left off. Never tool calls or JSON.
126
146
 
127
147
  Ask only when the person alone can tell you something that would make the work meaningfully better.
128
148
  Ask where they are, in the conversation: with a form if your environment offers one, otherwise your
@@ -135,20 +155,28 @@ nobody sees it on the board. Leave it alone unless the person asks you to remove
135
155
  When they ask what you would do, or for options to choose from, change nothing and offer an idea: read
136
156
  the board fresh, then `reference/ideas.md`.
137
157
 
158
+ ## Writing to a board
159
+
160
+ **Write a new board at once**, unless you must ask first, and work its layout out as you write: a person
161
+ is waiting. Still put in every part, step, label and arrow the ask needs.
162
+
138
163
  Every check delays the answer they are waiting for, so don't verify your work with a screenshot or a
139
164
  read-back unless the person asks or you don't know how a write turned out. Standalone, `open-artifact check` once
140
- at the end is enough.
165
+ at the end is enough. Reading the board before you change it is routine housekeeping the person gains nothing from
166
+ hearing about, so never announce that you are reading or checking it.
141
167
 
142
168
  **Claim first.** A claim frames ground at once for everyone; until it lands the board looks like nobody
143
169
  heard. So when you are going to change the board at all, the claim is the very first thing you write,
144
170
  before you have worked anything out. It is a best guess and no commitment: the frame grows around the
145
171
  new elements you add near it (within about 160 units), and you can claim again. Take its size from a
146
- glance at the ask and the open ground. Read the board once first, so the frame lands on open ground,
147
- then claim before you fetch any data: you may take a while, and the frame is how people know you are
172
+ glance at the ask and the open ground. When a selection, a pin or the view already tells you where the work goes,
173
+ claim before you read anything; otherwise read the board once first, so the frame falls on empty space. In both cases,
174
+ claim before you fetch any data: you may take a while, and the frame is how people know you are
148
175
  working. `set` `board/claim-<key>` in a write of its own to the `{x, y, w, h}` you will fill and/or the
149
176
  `{ids}` you will change. `<key>` is the `claim` of the request's context; with none, make one up: a
150
177
  lowercase letter, then 7 lowercase letters or digits. The frame doesn't grow for what you move or
151
- change, so name all of it. Your last write's last entry deletes the claim.
178
+ change, so name all of it. To end the claim, make the last entry of your last write `set` it to `{}` (don't delete
179
+ it); `open-artifact check` warns about a claim that still frames something after the work is done.
152
180
 
153
181
  **Read fresh, write only what changes.** Never rebuild a board: people may be working on it as you
154
182
  write, and a rewrite would lose what they did. Read it (`get` `board/meta`, `list` `elements`), then:
@@ -160,13 +188,9 @@ write, and a rewrite would lose what they did. Read it (`get` `board/meta`, `lis
160
188
  - remove an element and the arrows that end on it, then drop their ids from `order`;
161
189
  - rename the board with `update` `board/meta` `{title}`.
162
190
 
163
- `locked: true` elements can't be moved or removed until someone unlocks them on the board. Put new
164
- elements in free space beside what they belong with, within what the person sees where that fits, and
165
- on top of nothing except inside their section, extending the board down or right when a new subject has
166
- no room. What lies on a thing (stickers) goes with it.
167
-
168
- To clean up, read the board fresh, then write only what changes, in one batch (past 500 writes, as few
169
- as it takes): the new `x`, `y`, `w` and `h` of what moves or resizes, and nothing else.
191
+ `locked: true` elements can't be moved or removed until someone unlocks them on the board. Where new elements go,
192
+ and what to set right around them, is in Being a good teammate; extend the board down or right when a new subject has
193
+ no room.
170
194
 
171
195
  A new board: `set` `board/meta` first (`{"v": 1, "title": …, "order": [ids back to front]}`), then the
172
196
  elements back to front, at most 500 writes in one batch. Upload pictures before you write the elements
@@ -203,29 +227,26 @@ item: never a second one for an artifact that has a card. A link card is wider t
203
227
  room for its 320×56, never resize them. What you make with no such address (a file, another folder) gets no card:
204
228
  give its path in your reply instead. If you can't write to the board, say so and give the link in your reply.
205
229
 
206
- After your last write, reply in 2 or 3 sentences: what you arranged, assumed and left off, never tool
207
- calls or JSON.
208
-
209
230
  ## The element format
210
231
 
211
232
  - `board/meta` is `{v: 1, title, order: [elementId, …]}`, ids back to front.
212
233
  - `elements/<id>` is one element, its fields below without `id`. Ids are 1–40 of
213
234
  `[A-Za-z0-9_.~:@+-]`, not all dots. New ids are `e1`, `e2`, …, above the board's highest `e` number
214
- (`e10` above `e9`): never words.
235
+ (`e10` above `e9`): never words, because an id sits in plain text (it is the file name under `db/elements/`) and
236
+ what the board says shouldn't.
215
237
  - `board/inks`, `board/timer`, `comments/*` and `data/*` belong to the page (custom colours, the shared
216
238
  timer, people's private corners): leave them alone, except `data/users/<you>/idea` as
217
239
  `reference/ideas.md` says.
218
240
 
219
241
  At most 800 elements, 200 KB each, 2 MB in all. Never put other files in a board's folder.
220
242
 
221
- Colours, never more than four marks on a board: a block or section takes yellow | peach | pink | green
222
- | blue | purple | white (left out, a block is green); text, pen lines, arrows and a block's `stroke` take
223
- ink | terracotta | blue | green | purple; either takes any `#rrggbb`. `text` is plain, up to 4,000
224
- characters: `\n` breaks a line, and `**bold**`, `*italic*`, code in backticks and `[label](https://…)`
225
- are the only inline marks, never nested; a line that starts `- ` or `1. ` is a list item; headings and HTML show as
226
- typed. A block too
227
- small for its words is drawn larger, over its neighbours, so fit the box to them generously. Kinds other
228
- than rect, rounded and pill fit fewer words, so make them larger.
243
+ Colours, never more than four marks on a board: a block or section takes yellow | peach | pink | green | blue |
244
+ purple | white (left out, a block is green); text, pen lines, arrows and a block's `stroke` take ink | terracotta |
245
+ blue | green | purple; either takes any `#rrggbb`. `text` is plain, up to 4,000 characters: `\n` breaks a line, and
246
+ `**bold**`, `*italic*`, `***bold italic***`, code in backticks and `[label](https://…)` are the only inline marks,
247
+ never nested; a line that starts `- ` or `1. ` is a list item; headings and HTML show as typed. A block too small for
248
+ its words is drawn larger, over its neighbours, so fit the box to them generously. Kinds other than rect, rounded and
249
+ pill fit fewer words, so make them larger.
229
250
 
230
251
  ```jsonc
231
252
  { "type": "shape", "kind": "rounded", "x": 0, "y": 260, "w": 220, "h": 120, "color": "blue", "size": "body", "text": "One idea" }
@@ -237,8 +258,10 @@ than rect, rounded and pill fit fewer words, so make them larger.
237
258
  // heading. Keep what it holds 24 units inside its edges.
238
259
  { "type": "text", "x": 0, "y": 100, "text": "Launch retro", "size": "title" }
239
260
  // words with no box. size: small 14px | body 16 | large 28 | title 48 | huge 96 (left out: body, color ink). No w or h:
240
- // count about half its size per letter and one and a half times its size per line. "wrap": the width it wraps at (left out:
241
- // never); "textAlign" as a block's, but left by default
261
+ // count about half its size per letter and one and a half times its size per line. "wrap": the width it wraps at,
262
+ // usually 300 to 400 for anything longer than a label (left out, it never wraps and runs on as one long line);
263
+ // "textAlign" as a block's, but left by default. "placeholder": a faint one-line hint (up to 200 characters) shown
264
+ // while its text is empty, for a text people are meant to fill in; give it "text": ""
242
265
  { "type": "stroke", "x": 0, "y": 150, "points": [0, 0, 180, 6], "color": "terracotta", "width": 5 }
243
266
  // a pen line: points [x0, y0, x1, y1, …] relative to (x, y), up to 4,000 points. Three or more are smoothed: for a curve,
244
267
  // a point every 20 units or so; for a sharp corner, write its point twice
@@ -252,16 +275,20 @@ than rect, rounded and pill fit fewer words, so make them larger.
252
275
  { "type": "image", "x": 0, "y": 0, "w": 320, "h": 200, "src": "/_blob/<id>" }
253
276
  // a picture: an upload's url as returned, or a data:image/(webp|jpeg|png);base64 URI up to 100 KB.
254
277
  // "crop": {zoom (1+), x, y (0 to 1; 0.5: the middle)}. "href": an http(s) page it opens
255
- { "type": "image", "x": 0, "y": 0, "w": 440, "h": 300, "by": "agent", "src": "data:image/svg+xml,…" }
256
- // a drawing of yours: see Drawing
278
+ { "type": "image", "x": 0, "y": 0, "w": 440, "h": 300, "by": "agent", "style": "marker", "src": "data:image/svg+xml,…" }
279
+ // a drawing of yours, painted in its "style": see Drawing
257
280
  { "type": "html", "x": 0, "y": 0, "w": 400, "h": 300, "html": "<title>Tip calculator</title><p>…</p>" }
258
281
  // an embed, a small working page for what must work rather than be read. It runs sealed with no network, so inline
259
282
  // everything. To keep what people enter: boardEmbed.load(), .save(object), .onLoad(fn) (below)
260
- { "type": "table", "x": 0, "y": 0, "cols": { "c1": { "at": 1, "w": 160 }, "c2": { "at": 2, "w": 120 } }, "rows": { "r1": { "at": 1, "c1": "Plan", "c2": "Price" }, "r2": { "at": 2, "c1": "Pro", "c2": "$20" } } }
283
+ { "type": "table", "x": 0, "y": 0, "cols": { "c1": { "at": 1, "w": 160 }, "c2": { "at": 2, "w": 120 } }, "rows": { "r1": { "at": 1, "c1": "Plan", "c2": "Price" }, "r2": { "at": 2, "c1": "Pro", "c2": "$20" } }, "fills": { "r2": { "c2": "yellow" } } }
261
284
  // a table, for what is compared point by point: never a grid of blocks. Row 1 is its header, drawn bold. Cells are
262
- // short text. The table takes no w or h: give each column a `w`, at least 10 for each letter of its longest word,
263
- // plus 26, and the table is as wide as they add up to. Its section holds it with 24 clear on every side, and no more
264
- // if the table stands alone there
285
+ // short text. "fills" colours single cells to make what matters stand out, as { row: { column: colour } }: a block
286
+ // colour name gives a soft tint, a "#rrggbb" is used as given (the words switch to a colour that reads on it), and ""
287
+ // clears a cell; other words are ignored. A block put under a table doesn't show through it. "heat" shades a column's
288
+ // or a row's numbers by their value: "heat": { "cols": { "c2": "blue" } }, or "rows" instead, one axis per table and
289
+ // never the header row; "" turns one off. The table takes no w or h: give each column a `w`, at least 10 for each
290
+ // letter of its longest word, plus 26, and the table is as wide as they add up to. Its section holds it with 24 clear
291
+ // on every side, and no more if the table stands alone there
265
292
  ```
266
293
 
267
294
  Read `by` literally: `"by": "agent"` marks what an agent made; anything else, or none, is a person's, whatever
@@ -274,8 +301,9 @@ Don't add `note` elements: they are people's. A note or sticky from you is a rou
274
301
  count those. Leave stickers as they are and add none.
275
302
 
276
303
  An embed holds about 16,000 characters, so stay well under that; beyond it the embed is cut off,
277
- script and all. `localStorage`, `alert`, `confirm`, `prompt`, `eval` and a form's submit don't work in
278
- it, and nobody tells you whether its script ran, so keep the script plain. What runs past its box is cut
304
+ script and all. Inside it `localStorage`, `alert`, `confirm`, `prompt` and `eval` do nothing, and neither does a
305
+ form's submit, so every button that does something is `type='button'` with a click handler (a button inside a form
306
+ submits by default). Nobody tells you whether its script ran, so keep the script plain. What runs past its box is cut
279
307
  off unless a part of it has `overflow: auto`.
280
308
 
281
309
  ## What an embed keeps
@@ -304,28 +332,54 @@ them with `textContent`.
304
332
 
305
333
  ## Drawing
306
334
 
307
- Before drawing or redrawing, read `reference/pictures.md`. It says how to make a picture explain.
308
-
309
- An SVG is a whole `<svg>` with `xmlns` and a viewBox starting at 0 0, using only `g`, `path`, `rect`,
310
- `circle`, `ellipse`, `line`, `polyline` and `polygon`. The board may be light or dark, so leave the
311
- background empty. Words never go inside an SVG (a `<text>` shows the whole picture as a grey box): put
312
- them in blocks or `text` beside it.
313
-
314
- A picture has one of two looks: the one the person names; else clean for what must be exact (geometry,
315
- anything to scale, a floor plan, a circuit, a plotted curve, a logo, an icon), marker for the rest. For
316
- marker, give it lines in `stroke='currentColor'` up to 4 wide and fills with no stroke, and the page
317
- draws them as pen and marker; for clean, put `data-look='clean'` on the `<svg>` tag and it shows as
318
- written.
319
-
320
- Put it on the board as an `image` element with `"by": "agent"`, whose `src` is `data:image/svg+xml,`
321
- and then the SVG, with a `w` and `h` in its viewBox's ratio. The SVG sits in a JSON string, so write it
322
- on one line, with single quotes round every attribute's value, a colour as `%23F6BD78` with no `#`
323
- anywhere, a lone `%` as `%25`, every tag closed, and `&` as `&amp;`. Line breaks and tabs are dropped
324
- before the SVG is read, so a break never stands in for a space. Keep it flat: at most 5 `<g>` inside one
325
- another (and nothing drawn deeper than 4), and at most 64 `opacity` attributes (use `fill-opacity` and
326
- `stroke-opacity`). A picture that breaks one of these shows as a grey box, and the page does not tell you;
327
- `open-artifact check` does. Nothing may stand between the comma and `<svg`, or after `</svg>`. With
328
- `write-db`, `"src": {"$file": "drawing.txt"}` takes the whole URI from a file.
335
+ Before drawing or redrawing, read `reference/drawing.md`: how to draw a picture, and what each style asks of it. This
336
+ section is about how a drawing sits on the board.
337
+
338
+ A drawing is an `image` element with `"by": "agent"`, a `style` (`watercolor`, `comic`, `draft`, `paper`,
339
+ `blueprint`, `marker` or `plain`) and a `src` of `data:image/svg+xml,` followed by the SVG, with a `w` and `h` in its
340
+ viewBox's ratio. The page paints the SVG in that style; `open-artifact check` reports any other `style` word as an
341
+ error, and the page draws such a drawing plain.
342
+
343
+ The SVG sits in a JSON string, so write it on one line, with single quotes round every attribute's value, colours as
344
+ `%23` plus six hex digits (a `#` must never appear), each `%` that isn't an escape as `%25`, every tag closed, and `&`
345
+ as `&amp;`. Line breaks and tabs are dropped before the SVG is read, so a break never stands in for a space. Nothing
346
+ may stand between the comma and `<svg`, or after `</svg>`. A picture that breaks one of these, or the limits in
347
+ `reference/drawing.md`, doesn't show (a grey box or an empty frame takes its place), and the page does not tell you;
348
+ `open-artifact check` does, sizes included. With `write-db`, `"src": {"$file": "drawing.txt"}` takes the whole URI
349
+ from a file.
350
+
351
+ Arrows attach to a drawing and follow it, and people move, resize and delete it as one piece. So whatever someone
352
+ could want to lift out separately gets its own picture, laid over or next to the rest. On a map, the land and the
353
+ roads across it make one drawing, and every landmark set on top is a separate drawing in the matching style (a
354
+ drawing, not a block), labelled outside the map's edge. A floor plan is a single drawing that includes the walls and
355
+ the furniture. A scene stays whole as well, because its parts overlap and pulling one out would leave a gap. Bar
356
+ charts are made from blocks, not drawn.
357
+
358
+ **Sizes.** On its own, when someone just wants a picture, make it around 800 units wide. On an explaining board, scale
359
+ a picture to how much it has to show: 480 to 640 wide when it carries a section of the board (the main one fully drawn,
360
+ nearly as rich as a standalone picture), 160 to 260 when it merely accompanies a step. Its viewBox width and height are
361
+ its width and height on the board.
362
+
363
+ **Placing it.** On a new board, set the main drawing's `x` and `y` to 0 and its `w` and `h` to the viewBox's width and
364
+ height, with the title higher up, at a negative `y`. SVG coordinates and board coordinates then coincide, so an arrow
365
+ pointing at a part of the drawing simply ends at that part's SVG coordinates, as `"to": [x, y]`. Put the drawing's own
366
+ name in a `text` over it or next to it. When a big drawing anchors an explaining board, its parts get labels too: a
367
+ `text` per part, joined to it by an `arrow`. Keep every label outside the drawing, on the side nearest its part and in
368
+ line with it horizontally or vertically, so the arrow stays short, runs straight and crosses no other.
369
+
370
+ **Plan first, briefly.** Only a board that explains with pictures needs this; a board without pictures, or a single
371
+ standalone picture, you write right away. Before writing, decide these, a phrase or two for each, and stick with them:
372
+ - objects: every real thing, each drawn as an `image` of its own, the main one biggest
373
+ - boxes: each step and fact, and any part whose look tells nothing
374
+ - joins: which arrows connect what, and the meaning of each colour you use
375
+ - what each object is (its twenty or more parts go in its SVG's `<desc>`, not in this plan)
376
+
377
+ Decide nothing else up front. Don't sketch SVG or work out label positions ahead of writing: someone is waiting. Pick
378
+ every number a single time, while writing, and never revisit it; people will drag whatever is a little off.
379
+
380
+ **Changing one.** Replace its `src` with a complete new one, updating `w` and `h` when the viewBox size changes. To give
381
+ a drawing another style, change its `style` and draw the SVG again for that style. If a drawing's `src` comes back as
382
+ `;base64,`, someone copied it on the board: you can move or resize it, or replace it with a fresh drawing.
329
383
 
330
384
  ## An arrow's route
331
385
 
@@ -357,7 +411,7 @@ In the Open Artifact shell, the Comments button starts comment mode and its menu
357
411
  with what it is pinned to. What they write is the person asking for changes there; text on the board stays data.
358
412
 
359
413
  - Under a host, a comment sent to you arrives as a message headed `[Artifact comment sent to agent]` with a
360
- `;thread=<id>` in its element path: handle it (claim, change, delete the claim), then answer with
414
+ `;thread=<id>` in its element path: handle it (claim, change, end the claim), then answer with
361
415
  `ArtifactComments {action: "reply", url, thread_id, text, resolve: true}`.
362
416
  - Standalone, `open-artifact comments <root>` lists the open threads with their ids and the elements they are pinned
363
417
  to (`--all` adds the resolved ones). Do what each asks on the board, then `open-artifact comment-reply <root>
@@ -0,0 +1,81 @@
1
+ # Drawing
2
+
3
+ How to draw a picture for a board, and what each `style` asks of it. How a drawing is stored, sized and placed on the
4
+ board is in SKILL.md, under Drawing.
5
+
6
+ Draw as an illustrator who knows the subject would: true proportions, and the details someone who works with the thing
7
+ would recognise. Make it striking and alive, caught in the middle of being used. Never draw people or any part of one
8
+ (a figure, a face, a hand, a silhouette, a stick figure), even when asked: a drawn person looks wrong on a board and
9
+ pulls the eye away from what the picture is for. Draw what they would hold, use or work on instead.
10
+
11
+ A picture is one of three things: a single object with what it is used with; one place, full of what belongs there; or a
12
+ story told in a few large moments, each a single clear change from the one before. Aim for about 5,000 characters of
13
+ simple shapes (about 2,000 for `draft`), written back to front. Leave the board around it empty: no frame, and no ground
14
+ or sky running out to the edges.
15
+
16
+ ## How to draw
17
+
18
+ - The `<svg>` tag has `xmlns`, a `viewBox` starting at 0 0, and the ink for everything inside it, set once:
19
+ `stroke='currentColor' fill='none' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round'`. The page
20
+ paints `currentColor` in the style's own ink, dark on a light board and light on a dark one.
21
+ - Its first child is a `<desc>` of plain text: the viewpoint, then a list of at least twenty actual parts and props
22
+ you are going to draw. Writing it first settles what the picture holds. The whole SVG is one line.
23
+ - Each part is a single closed shape that carries its fill and its edge together. Nearer parts come later in the SVG,
24
+ so they cover the ones behind.
25
+ - Solid things are turned so a corner faces us, with three tones of one colour for the front, the side and the top,
26
+ horizontal edges receding at an angle, and circles foreshortened into ellipses. A creature is a few big masses that
27
+ overlap.
28
+ - Whatever lies on a part follows its form: shading in a deeper tone, highlights in a paler one, markings, all with
29
+ `stroke='none'`; then at least as many fine lines again (`stroke-width='1.2'`): seams, screws, vents, cables, folds.
30
+ - Colours are `%23rrggbb`, `none` or `currentColor`. The board may be light or dark, so paint no background.
31
+
32
+ ## What the page accepts
33
+
34
+ The page draws `g`, `path`, `rect`, `circle`, `ellipse`, `line`, `polyline` and `polygon`, plus a `<desc>` or
35
+ `<title>` holding plain text. Give each attribute once, and keep to geometry, `fill`, `stroke`, `stroke-width`,
36
+ `fill-opacity`, `stroke-linecap`, `stroke-linejoin` and `stroke-dasharray`. Any of these keeps the whole picture from
37
+ showing: the page puts a grey box or an empty frame in its place without saying why, and `open-artifact check` names
38
+ the problem.
39
+
40
+ - a `<text>` with words in it (names belong in `text` elements beside the picture), or an `<image>`, `<use>`,
41
+ `<style>`, `<script>`, `<foreignObject>` or `<filter>`;
42
+ - a `style` attribute, or a `filter`, `mask` or `clip-path` other than `none`;
43
+ - a shape inside five nested `<g>`s, or a 65th `opacity` attribute (use `fill-opacity` instead);
44
+ - more than 36,000 characters of SVG, or a `src` longer than 49,152 characters in all (characters that aren't plain
45
+ ASCII are escaped, so fewer of them fit);
46
+ - a slip in how the SVG is written into its `src` (SKILL.md, Drawing): a `#` anywhere, a `%` not written `%25`, a tag
47
+ left open, a bare `&`, or anything before `<svg` or after `</svg>`.
48
+
49
+ ## Style
50
+
51
+ Every drawing of yours carries a `style`, and the page paints the SVG in it. Any subject can be drawn in any style. Use
52
+ the one the person names, or the closest to what they describe; otherwise choose as an illustrator would, the one that
53
+ does most for this particular drawing, and don't fall back on one out of habit. A board mostly keeps to one style. Each
54
+ style asks for something different in the SVG, so a new style means a new drawing.
55
+
56
+ - `watercolor`: a few loose, wet washes around the subject, set apart from each other, each a different size, none of
57
+ them a ring around it, breaking off into drips and stray spots. Put `stroke='none'` on the `<svg>`: everything is
58
+ fill, at `fill-opacity='.7'` or lighter, and an edge is a darker wash, not a line. Keep the colours close, the light
59
+ from one side and distant things paler, with one clear subject that holds the detail and one real dark.
60
+ - `comic`: a single moment seen from low down, from above or up close. The subject is big and bursts out of a cut-out
61
+ panel of flat, strong colour (`stroke='none'`), jagged for a loud moment, smooth or tilted for a quiet one; any
62
+ further moment gets a panel of its own. Colours are bold and flat, the side in shadow is `%23111111`, and the
63
+ `currentColor` lines are 4 wide for what is near and 2 wide for what is far, with speed lines and impact marks.
64
+ - `draft`: a designer thinking on paper with a pen. First, at the very back, a couple of faint guide lines; over them,
65
+ big loose forms left almost all white, their edges overshooting the corners; then two or three bold colours in broad
66
+ patches, laid on a little off the lines, only where it matters.
67
+ - `paper`: a collage of cut paper. Put `stroke='none'` on the `<svg>`; every part is a flat, saturated fill. Each
68
+ thing is a few bold sheets of its own, with folds in two tones. Land or water takes six sheets or more, none
69
+ following the edge of the next: each swells and dips in its own way, crowded on one side and spread out on the
70
+ other, the lowest the loosest. Going up the stack, the colours shift across the hues the subject really has, ending
71
+ well away from where they began. A place on it is marked by a little icon inside a badge with a white border; a
72
+ route is a white dashed line.
73
+ - `blueprint`: a technical drawing: a big main view, either square to us or isometric, plus a smaller view beside it.
74
+ Shapes are left white and told by their lines: 4 wide around the whole, 2 for the parts, 1 for all the detail that
75
+ makes it real, dimension lines with ticks, straight centre lines dashed as `stroke-dasharray='18 4 3 4'`, and edges
76
+ out of sight dashed as `'8 5'`. Walls are solid dark; mark what the drawing cuts through with `class='cut'` (on the
77
+ shape or on a `<g>` around the shapes) and the page fills it mid grey. Colour
78
+ goes only on what moves or flows, with filled arrowheads. The page lays the blue sheet and its grid behind it.
79
+ - `marker`: drawn with a pen and coloured with markers, bold and definite. Each part is fully coloured, the strongest
80
+ colour going to what matters most; any ground or floor is a patch with a ragged edge, not a band across the picture.
81
+ - `plain`: flat, clean and exact, seen straight on: a diagram or a mark, with only its own few parts.