mulmoterminal 10.3.0 → 10.4.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 (115) hide show
  1. package/README.md +21 -11
  2. package/common/fileGrant.ts +24 -0
  3. package/common/keymap.ts +3 -3
  4. package/common/paneCommand.ts +4 -0
  5. package/dist/assets/{abnfDiagram-YUKMZFIV-DffHwWXp.js → abnfDiagram-YUKMZFIV-1a-PY4nd.js} +1 -1
  6. package/dist/assets/{architecture-WOLXFQ4H-B4GNOIk_.js → architecture-WOLXFQ4H-BcfO8oGO.js} +1 -1
  7. package/dist/assets/{architectureDiagram-47P4ROYG-D5vY2SMy.js → architectureDiagram-47P4ROYG-BdKH3Yik.js} +1 -1
  8. package/dist/assets/{blockDiagram-E7TT5TSB-gxkA84ZF.js → blockDiagram-E7TT5TSB-DcHZBO9O.js} +1 -1
  9. package/dist/assets/{c4Diagram-CRA5TL53-CngEYX2_.js → c4Diagram-CRA5TL53-D0T0eOFn.js} +1 -1
  10. package/dist/assets/channel-C9q4RMyO.js +1 -0
  11. package/dist/assets/{chunk-2BW5OAIV-C1ADF1k7.js → chunk-2BW5OAIV-Ck_cbiU5.js} +1 -1
  12. package/dist/assets/{chunk-3YJQHVM4-pLkgFhom.js → chunk-3YJQHVM4-BMcZm-Hv.js} +1 -1
  13. package/dist/assets/{chunk-4EA7E6EY-BlFEFaYB.js → chunk-4EA7E6EY-F7Mst5qX.js} +1 -1
  14. package/dist/assets/{chunk-7TKQ45FW-DyUQ789M.js → chunk-7TKQ45FW-CzqFtEPJ.js} +1 -1
  15. package/dist/assets/{chunk-AW2ZBBNX-CwSnub2W.js → chunk-AW2ZBBNX-3dLb1pnr.js} +1 -1
  16. package/dist/assets/{chunk-DBDB3WZW-DS205Qyg.js → chunk-DBDB3WZW-Bx5h6vuo.js} +1 -1
  17. package/dist/assets/{chunk-E2ZNV5FY-DJUXHUkG.js → chunk-E2ZNV5FY-DsDZphpO.js} +1 -1
  18. package/dist/assets/{chunk-EU5HNXII-BySfkmDB.js → chunk-EU5HNXII-DLxa3y3e.js} +1 -1
  19. package/dist/assets/{chunk-FVRAUYC3-D1mJl1-O.js → chunk-FVRAUYC3-ulNhT-b7.js} +1 -1
  20. package/dist/assets/{chunk-HJ2JQQFS-Digks1Bq.js → chunk-HJ2JQQFS-WPbIPBPU.js} +1 -1
  21. package/dist/assets/{chunk-HTAEGDNF-DxtDWkfP.js → chunk-HTAEGDNF-DtEsRvQq.js} +1 -1
  22. package/dist/assets/{chunk-KQW6MTUR-CrWUVuyL.js → chunk-KQW6MTUR-R3h7c83D.js} +1 -1
  23. package/dist/assets/{chunk-NTY3LDVX-Qm6Ijcog.js → chunk-NTY3LDVX-D6-mE0IG.js} +1 -1
  24. package/dist/assets/{chunk-VPRB5NB3-B5_AFVkH.js → chunk-VPRB5NB3-sIyPxnYU.js} +1 -1
  25. package/dist/assets/{chunk-XC4XBNZT-CdDLMW5_.js → chunk-XC4XBNZT-DMb2Kcdk.js} +1 -1
  26. package/dist/assets/{classDiagram-v2-K4WV4PDN-D_gx4H4g.js → classDiagram-v2-K4WV4PDN-C1kID963.js} +1 -1
  27. package/dist/assets/{cynefin-EF2NZ3EQ-DLm7x61k.js → cynefin-EF2NZ3EQ-BRhDQncU.js} +1 -1
  28. package/dist/assets/{cynefinDiagram-3GCD6N5R-D3u23291.js → cynefinDiagram-3GCD6N5R-DsHxAkmG.js} +1 -1
  29. package/dist/assets/{dagre-W4DXFKR2-D6yfe3LF.js → dagre-W4DXFKR2-C9spv494.js} +1 -1
  30. package/dist/assets/{diagram-2UJZ2QOL-giOHpm1j.js → diagram-2UJZ2QOL-TbP4rnLm.js} +1 -1
  31. package/dist/assets/{diagram-OVF4WLC6-JD_yzXTT.js → diagram-OVF4WLC6-RWG-hpqP.js} +1 -1
  32. package/dist/assets/{diagram-PFPMY2P6-cGOmpWqw.js → diagram-PFPMY2P6-q5FXp7bR.js} +1 -1
  33. package/dist/assets/{diagram-UMYRVEAY-C5pZm3XT.js → diagram-UMYRVEAY-CUZ98qEX.js} +1 -1
  34. package/dist/assets/{diagram-YEKJPTXX-De9PYt7f.js → diagram-YEKJPTXX-CeAtXY_Z.js} +1 -1
  35. package/dist/assets/{diagram-ZIFT7M5P-B8oLndAa.js → diagram-ZIFT7M5P-pTq41yhu.js} +1 -1
  36. package/dist/assets/{dist-CcMtOolI.js → dist-BXNyE9Om.js} +1 -1
  37. package/dist/assets/{dist-BzGF_zMB.js → dist-ColzxW_C.js} +1 -1
  38. package/dist/assets/{dist-CFNmLHs1.js → dist-CpZygVDf.js} +1 -1
  39. package/dist/assets/{dist-jOn8Bz45.js → dist-DVkTItOZ.js} +1 -1
  40. package/dist/assets/{dist-BcMqPpIE.js → dist-DVxnjpk-.js} +1 -1
  41. package/dist/assets/{ebnfDiagram-VR2GEFS7-jt9VmuSq.js → ebnfDiagram-VR2GEFS7-DCOxqnAj.js} +1 -1
  42. package/dist/assets/{elk-IJKZMXRS-BaUCO2zC.js → elk-IJKZMXRS-CtxZtIWh.js} +1 -1
  43. package/dist/assets/{erDiagram-O2IAPWRE-TWu5X3SA.js → erDiagram-O2IAPWRE-DvN6nYqN.js} +1 -1
  44. package/dist/assets/{eventmodeling-K75KTNOO-PtE5pg6R.js → eventmodeling-K75KTNOO-BffcDOZV.js} +1 -1
  45. package/dist/assets/flowDiagram-OXPTDLAJ-ROw4PMg1.js +1 -0
  46. package/dist/assets/{ganttDiagram-R7TSEDQI-C0vjJUP2.js → ganttDiagram-R7TSEDQI-BXtrr88i.js} +1 -1
  47. package/dist/assets/{gitGraph-VSP46ZUC-DUnn2Ks0.js → gitGraph-VSP46ZUC-B9IvIRQT.js} +1 -1
  48. package/dist/assets/{gitGraphDiagram-XJZIOB7I-BV7GpNmB.js → gitGraphDiagram-XJZIOB7I-DPe8wss1.js} +1 -1
  49. package/dist/assets/{index-_LUAJpb4.css → index-BM7QNI7_.css} +1 -1
  50. package/dist/assets/{index-DwFxX9SA.js → index-DCYQH7HO.js} +274 -274
  51. package/dist/assets/{info-OHQRW6UA-DOdKJhVi.js → info-OHQRW6UA-CPNbTLJk.js} +1 -1
  52. package/dist/assets/{infoDiagram-5W2HQ5XZ-KL8E_FFh.js → infoDiagram-5W2HQ5XZ-CJmq2Fo1.js} +1 -1
  53. package/dist/assets/{ishikawaDiagram-K3B6WC7H-v9e_wL9Y.js → ishikawaDiagram-K3B6WC7H-CB7ofYDd.js} +1 -1
  54. package/dist/assets/{journeyDiagram-COXZFDF6-V-bO2NO7.js → journeyDiagram-COXZFDF6-D-WTvHLU.js} +1 -1
  55. package/dist/assets/{kanban-definition-P3RFRI5V-C1VMYlN0.js → kanban-definition-P3RFRI5V-BaIVCZej.js} +1 -1
  56. package/dist/assets/{line-C0diT23N.js → line-DNJ3FEEl.js} +1 -1
  57. package/dist/assets/{manifold-CgYBP_Jl.js → manifold-Dp1qsv9E.js} +1 -1
  58. package/dist/assets/{mermaid-parser.core-CB6lGdQz.js → mermaid-parser.core-C4UlFswH.js} +3 -3
  59. package/dist/assets/{mermaid.core-BKXyfrGA.js → mermaid.core-CuefGF0S.js} +4 -4
  60. package/dist/assets/{mindmap-definition-LZFPQGKD-CwWeSOpr.js → mindmap-definition-LZFPQGKD-BQqVoS5B.js} +1 -1
  61. package/dist/assets/{packet-JDAUHWVQ-3j2l_722.js → packet-JDAUHWVQ-DHl4ttnZ.js} +1 -1
  62. package/dist/assets/{pegDiagram-BGZESJAR-CpUIaMK9.js → pegDiagram-BGZESJAR-Dp-4HUhB.js} +1 -1
  63. package/dist/assets/{pie-XZMESJXO-CJWMFiuF.js → pie-XZMESJXO-ec1rFZSK.js} +1 -1
  64. package/dist/assets/{pieDiagram-CAPJLFHJ-C4Fp7dPt.js → pieDiagram-CAPJLFHJ-uCWBWt0n.js} +1 -1
  65. package/dist/assets/{quadrantDiagram-GDMTTRAM-C0ShPbme.js → quadrantDiagram-GDMTTRAM-C0bx7INP.js} +1 -1
  66. package/dist/assets/{radar-ABXABTNO-DFP6iY8x.js → radar-ABXABTNO-BerQeT63.js} +1 -1
  67. package/dist/assets/{railroad-I3PHUGI6-DR6mwjNv.js → railroad-I3PHUGI6-DGMbnInh.js} +1 -1
  68. package/dist/assets/{railroad-abnf-LNEFI6M7-CO1T6T9c.js → railroad-abnf-LNEFI6M7-C91dtcVh.js} +1 -1
  69. package/dist/assets/{railroad-ebnf-DWYD2UWJ-Cpp3Whnh.js → railroad-ebnf-DWYD2UWJ-BtASeeFU.js} +1 -1
  70. package/dist/assets/{railroad-peg-JR7BVNR7-SC6qrWHg.js → railroad-peg-JR7BVNR7-BLwhWLup.js} +1 -1
  71. package/dist/assets/{railroadDiagram-SM67HX2B-D8arUcue.js → railroadDiagram-SM67HX2B-B6Q62kZe.js} +1 -1
  72. package/dist/assets/{requirementDiagram-X7JNWC4A-BfuROELZ.js → requirementDiagram-X7JNWC4A-BjL8Bux3.js} +1 -1
  73. package/dist/assets/{sankeyDiagram-UM26HJRW-Dx7qQKP3.js → sankeyDiagram-UM26HJRW-6GJJrLTP.js} +1 -1
  74. package/dist/assets/{sequenceDiagram-ZO4K6R2Y-BBZ2GElY.js → sequenceDiagram-ZO4K6R2Y-ePSLSZXA.js} +1 -1
  75. package/dist/assets/{stateDiagram-v2-TBUQTH76-Co9QstCS.js → stateDiagram-v2-TBUQTH76-uf4Kl6c2.js} +1 -1
  76. package/dist/assets/{swimlanes-N4OXWK64-1fO2a_5p.js → swimlanes-N4OXWK64-DqCgHQbo.js} +1 -1
  77. package/dist/assets/swimlanesDiagram-K3J5GTZL-Bsa0QQGU.js +8 -0
  78. package/dist/assets/{timeline-definition-YOQAKGHF-CbNX3ELR.js → timeline-definition-YOQAKGHF-BKUL1fni.js} +1 -1
  79. package/dist/assets/{treeView-D4JQ5SDB-a_Q9p0kF.js → treeView-D4JQ5SDB-CuUTmm1_.js} +1 -1
  80. package/dist/assets/{treemap-SAJKECNS-CygMipNi.js → treemap-SAJKECNS-q3C7gduJ.js} +1 -1
  81. package/dist/assets/{usecaseDiagram-VIAY4XPW-Cy66QR1P.js → usecaseDiagram-VIAY4XPW-QQbvR1nw.js} +1 -1
  82. package/dist/assets/{vennDiagram-BLWOH2XV-E5qHjzJo.js → vennDiagram-BLWOH2XV-BIzDFgsU.js} +1 -1
  83. package/dist/assets/{wardley-7MLQ67FV-D9omOW8l.js → wardley-7MLQ67FV-BCNp2PxX.js} +1 -1
  84. package/dist/assets/{wardleyDiagram-YMQ3BMBF-D7chXcuf.js → wardleyDiagram-YMQ3BMBF-CpEpxLtR.js} +1 -1
  85. package/dist/assets/{xychartDiagram-TAQBALBS-BBAhbweQ.js → xychartDiagram-TAQBALBS-Dt81ggdZ.js} +1 -1
  86. package/dist/index.html +2 -2
  87. package/docs/ChangeLog.md +23 -0
  88. package/docs/facts.json +1 -1
  89. package/docs/guide/en/basics.md +6 -5
  90. package/docs/guide/en/config.md +2 -2
  91. package/docs/guide/en/feature-list.md +4 -1
  92. package/docs/guide/en/features.md +2 -2
  93. package/docs/guide/en/glossary.md +1 -1
  94. package/docs/guide/en/header.md +3 -2
  95. package/docs/guide/en/index.md +2 -2
  96. package/docs/guide/en/pane-tools.md +3 -2
  97. package/docs/guide/en/v10.4.0.md +88 -0
  98. package/docs/guide/ja/basics.md +3 -3
  99. package/docs/guide/ja/config.md +2 -2
  100. package/docs/guide/ja/feature-list.md +4 -1
  101. package/docs/guide/ja/features.md +1 -1
  102. package/docs/guide/ja/glossary.md +1 -1
  103. package/docs/guide/ja/header.md +3 -2
  104. package/docs/guide/ja/index.md +2 -2
  105. package/docs/guide/ja/pane-tools.md +2 -1
  106. package/docs/guide/ja/v10.4.0.md +84 -0
  107. package/package.json +1 -1
  108. package/server/backends/files/fileGrants.ts +95 -0
  109. package/server/backends/files/files.ts +2 -54
  110. package/server/backends/files/sendRawFile.ts +61 -0
  111. package/server/infra/tools/pane-tools.ts +3 -2
  112. package/server/routes/app-routes.ts +2 -0
  113. package/dist/assets/channel-BowpOqgq.js +0 -1
  114. package/dist/assets/flowDiagram-OXPTDLAJ-DoaMFg6K.js +0 -1
  115. package/dist/assets/swimlanesDiagram-K3J5GTZL-rJdkLNc6.js +0 -8
package/README.md CHANGED
@@ -168,7 +168,7 @@ copying from a web page usually does, so that pasting text keeps working.
168
168
 
169
169
  **Clicking a file path** — the other direction. A path an agent *prints* becomes a link, and
170
170
  **what it opens is chosen by its extension**, so each kind arrives as the thing it is rather
171
- than as bytes (files within the session's working directory only):
171
+ than as bytes:
172
172
 
173
173
  | A clicked … | opens as |
174
174
  |---|---|
@@ -180,22 +180,29 @@ than as bytes (files within the session's working directory only):
180
180
  | images, PDF, SVG, video, audio | raw bytes in a new tab, which the browser renders better than an editor would |
181
181
  | everything else — `.xlsx`, `.docx`, `.zip`, a `Makefile` | the app's own **Files** view. A tab cannot display these, so opening one there is not a view — it is a download starting with no warning. The pane names the file and offers **Open in OS**, which hands it to the application that owns it (Excel for an `.xlsx`) |
182
182
 
183
+ **A path outside the session's working directory opens too** — absolute, `~/…`, or `../` climbing out.
184
+ Markdown, JSON, tables and source open against the file's own directory. An HTML page, an image, a PDF,
185
+ an SVG, a video or an audio file opens in a new tab through a **one-file link**: the app asks the server
186
+ for it with a same-origin POST, and only that file is served under it — not its directory, and not the
187
+ image an HTML page links beside itself. The link lasts until the server restarts (or until many newer links push it out); seeking a video works.
188
+ A file that is not there says so in the tab.
189
+
183
190
  **A line after the path is followed.** `src/a.ts:42`, `src/a.ts:42:7` (gcc, clang, `eslint -f unix`,
184
191
  stack traces) and `src/a.ts(12,5)` (tsc) are one link. In the pane, and in the Files view, the file
185
192
  opens as text with the caret on that line and column — an HTML page, an SVG or a table included, and a
186
193
  tab reading in Preview switches to Edit. An image, a PDF, a video or an audio file has no line to go
187
194
  to and simply opens as itself. A route that renders the file in a new tab (`.md`, `.json`,
188
- `.csv`, `.html` with no cell enlarged) ignores the line. When the pane beside an enlarged cell takes
189
- the click, the keyboard stays in the terminal; the full-screen Files view, with no terminal beside it,
195
+ `.csv`, `.html` with no pane to take it) ignores the line. When the pane takes the click, the
196
+ keyboard stays in the terminal; the full-screen Files view, with no terminal beside it,
190
197
  puts it in the editor. (ESLint's default output puts the path on a line of its own, with no line number to follow.)
191
198
 
192
- **While a grid cell is enlarged, the [Files pane](#files-view-browse--edit) takes the click first** — every
199
+ **While a grid cell is enlarged, or a pane is open beside the tiled grid, the [Files pane](#files-view-browse--edit) takes the click first** — every
193
200
  row above, since the pane is the same editor with a Preview for Markdown, HTML and SVG, shows an
194
201
  image as a picture and a PDF in a frame, and plays a video or an audio file with the browser's own
195
202
  controls (seeking included, whatever the file's size). The file opens *beside* the terminal
196
203
  that printed it, and the pane opens itself if it was closed. It declines, leaving the routing
197
- above untouched, when nothing is enlarged, or when the path is not under that cell's own directory
198
- (the pane cannot walk above its root). A file too large to edit as text still offers **Open in OS**.
204
+ above untouched, when nothing is enlarged and no pane is beside the tiles, or when the path is not
205
+ under the directory of the cell the pane belongs to (the pane cannot walk above its root). A file too large to edit as text still offers **Open in OS**.
199
206
 
200
207
  Highlighting in the Files view covers the JS/TS family, JSON and Markdown (the modes
201
208
  `cmEditor.ts` bundles); other languages open as plain text.
@@ -1326,7 +1333,10 @@ the same explorer + editor on the right, rooted at that cell's directory. Drag t
1326
1333
  (or focus it and use ←/→, Home, End) to resize — the terminal keeps a floor, so a squeeze
1327
1334
  shrinks the pane rather than reflowing xterm into garbage. It works in both zoomed layouts
1328
1335
  (cockpit roster and thumbnail filmstrip), the pane re-roots as you walk the zoom between
1329
- terminals, and whether it's open plus how wide it is are remembered per browser.
1336
+ terminals, and whether it's open plus how wide it is are remembered per browser. Without
1337
+ enlarging anything, a tile's **History** / **Tools** menu (or *Browse files in the app*) opens
1338
+ the same pane to the right of the tiled grid; it stays on that tile until another tile's menu
1339
+ asks for it, and only an enlarged cell's pane can take the full width.
1330
1340
 
1331
1341
  **Coming back looks the way you left it.** The pane remembers the open file, the directories
1332
1342
  you had expanded, and — for a file with a Preview — whether you were reading it in **Preview** or
@@ -1389,8 +1399,8 @@ goes to the tab that file already has. A link that climbs above the pane's folde
1389
1399
  the pane says so; an external link opens in a new browser tab, and a `#heading` link scrolls the
1390
1400
  document.
1391
1401
 
1392
- The toggle is not the only way in: while a cell is enlarged, **clicking a file path the agent
1393
- printed** opens it here too, rather than in a new tab or full-screen — see
1402
+ The toggle is not the only way in: while a cell is enlarged, or this pane is open beside the tiled
1403
+ grid, **clicking a file path the agent printed** opens it here too, rather than in a new tab or full-screen — see
1394
1404
  [Clicking a file path](#clicking-a-file-path).
1395
1405
 
1396
1406
  **Open a file by name instead of walking the tree.** The pane's header has a **search** button
@@ -1834,7 +1844,7 @@ narrow and tall for one record you are discussing — and each position keeps it
1834
1844
  isn't available yet (Codex writes its rollout only once the turn ends).
1835
1845
  - **Tools pane** (the cell header's **Tools** menu, beside the Canvas, Collections and **Restart the agent**) — the available GUI tools plus a live tool-call history for the active
1836
1846
  session.
1837
- - **Prompts pane** — the prompts *you* sent the enlarged cell's session, newest first, from
1847
+ - **Prompts pane** — the prompts *you* sent that cell's session, newest first, from
1838
1848
  `GET /api/transcript/prompts`. The mirror of the Timeline above: that one is what the agent
1839
1849
  ran, this one is what you asked it for — for when several cells are running and you can no
1840
1850
  longer remember which one you told what. Read-only; click a long prompt to open it in place.
@@ -1842,7 +1852,7 @@ narrow and tall for one record you are discussing — and each position keeps it
1842
1852
  prompt history, codex's rollout), so a prompt sent mid-turn is there and text a skill
1843
1853
  injected is not. A `/clear` draws a line: the pane shows what you have asked *since*, the
1844
1854
  same way the header, the title and the last reply all stop describing the ended conversation.
1845
- - **Conversation pane** — the enlarged cell's conversation, read as TURNS rather than as the
1855
+ - **Conversation pane** — that cell's conversation, read as TURNS rather than as the
1846
1856
  screen, from `GET /api/transcript/view`. A Claude cell runs on the alternate screen, so the
1847
1857
  terminal keeps no scrollback worth scrolling; this reads the agent's own transcript instead,
1848
1858
  and **scrolling up walks the session back to its first turn**, a page at a time.
@@ -0,0 +1,24 @@
1
+ // A file outside every directory the server already serves, opened in a tab by a click (#3024).
2
+ // The raw route refuses such a file, because a cross-site page could embed it; instead the app asks
3
+ // for a one-file URL with a same-origin POST, and only that file is served under it. Both sides
4
+ // decide from these: the browser which clicks go this way, the server which files it will grant.
5
+ import { HTML_FILE_NAME } from "./filesPage.js";
6
+ import { rawContentType } from "./rawContentType.js";
7
+
8
+ export const FILE_GRANT_ROUTE = "/api/files/grant";
9
+ export const GRANTED_FILE_ROUTE = "/api/files/granted";
10
+
11
+ /** How a granted file is sent: an HTML page under the preview CSP, anything else as the raw route
12
+ * sends it. Null for a type a tab would not show, which keeps going where it went before. */
13
+ export type GrantKind = "page" | "raw";
14
+
15
+ const SHOWN_RAW = /^(image|video|audio)\/|^application\/pdf$/;
16
+
17
+ export function grantKind(name: string): GrantKind | null {
18
+ if (HTML_FILE_NAME.test(name)) return "page";
19
+ return SHOWN_RAW.test(rawContentType(name)) ? "raw" : null;
20
+ }
21
+
22
+ /** The POST's answer: the URL to open, or why there is none. `missing` is its own reason so the tab
23
+ * can say the file is not there, rather than that it was refused. */
24
+ export type FileGrantResult = { ok: true; url: string } | { ok: false; reason: "missing" | "refused" };
package/common/keymap.ts CHANGED
@@ -98,9 +98,9 @@ export const TERMINAL_SCOPED_ACTIONS: readonly KeymapAction[] = ["copy", "paste"
98
98
  // Here rather than beside gridShortcutFor because BOTH sides decide from it: the grid dispatches on
99
99
  // it, and validateKeymap has to know that these decline the key — the handler returns WITHOUT
100
100
  // stopping the event, so a `send` on the same keystroke fires instead (codex on #1906).
101
- // `files-find` and `files-search` are here because the pane they open exists only in the ENLARGED
102
- // row (see docs/grid-view-modes.md) — a tiled grid has nowhere to put it, so the key declines
103
- // rather than guessing which of nine terminals was meant.
101
+ // `files-find` and `files-search` are here because the key names no cell: a pane CAN sit beside the
102
+ // tiled grid (docs/grid-view-modes.md), but only one a tile's menu opened, so un-zoomed the key
103
+ // declines rather than guessing which of nine terminals was meant.
104
104
  export const NEEDS_A_CURRENT_TERMINAL: readonly KeymapAction[] = [
105
105
  "zoom-next",
106
106
  "zoom-prev",
@@ -127,3 +127,7 @@ export function checkSummary(check: Pick<PaneCheck, "title" | "items">, answers:
127
127
  const head = `Check results for "${oneLine(check.title)}" (${tally}):`;
128
128
  return [head, ...lines].join(" ");
129
129
  }
130
+
131
+ /** Typed in when the user puts the card away unanswered, so an agent told to wait for the results is
132
+ * not left waiting for a message that will never come. */
133
+ export const checkClosedNotice = (check: Pick<PaneCheck, "title">): string => `Check "${oneLine(check.title)}" was closed without answers.`;
@@ -1 +1 @@
1
- import{m as e,t}from"./mermaid-parser.core-CB6lGdQz.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-JH1jZ6Eh.js";import"./chunk-VPRB5NB3-B5_AFVkH.js";import{n as i,r as a,t as o}from"./chunk-AW2ZBBNX-CwSnub2W.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-BKXyfrGA.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
1
+ import{m as e,t}from"./mermaid-parser.core-C4UlFswH.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-JH1jZ6Eh.js";import"./chunk-VPRB5NB3-sIyPxnYU.js";import{n as i,r as a,t as o}from"./chunk-AW2ZBBNX-3dLb1pnr.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-CuefGF0S.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{M as createArchitectureServices}from"./mermaid-parser.core-CB6lGdQz.js";
1
+ import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{M as createArchitectureServices}from"./mermaid-parser.core-C4UlFswH.js";