@skillcdn/console 0.5.0 → 0.5.2

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 (490) hide show
  1. package/README.md +87 -12
  2. package/SKILLCDN.md +3 -3
  3. package/dist/agent-page.d.ts.map +1 -1
  4. package/dist/agent-page.js +7 -6
  5. package/dist/agent-page.js.map +1 -1
  6. package/dist/api.d.ts +9 -7
  7. package/dist/api.d.ts.map +1 -1
  8. package/dist/api.js +8 -6
  9. package/dist/api.js.map +1 -1
  10. package/dist/charts.d.ts +103 -0
  11. package/dist/charts.d.ts.map +1 -0
  12. package/dist/charts.js +182 -0
  13. package/dist/charts.js.map +1 -0
  14. package/dist/cli/cli.d.ts +58 -2
  15. package/dist/cli/cli.d.ts.map +1 -1
  16. package/dist/cli/cli.js +1742 -472
  17. package/dist/cli/cli.js.map +1 -1
  18. package/dist/cli/command-words.d.ts +20 -0
  19. package/dist/cli/command-words.d.ts.map +1 -0
  20. package/dist/cli/command-words.js +51 -0
  21. package/dist/cli/command-words.js.map +1 -0
  22. package/dist/cli/credentials.d.ts +54 -5
  23. package/dist/cli/credentials.d.ts.map +1 -1
  24. package/dist/cli/credentials.js +126 -20
  25. package/dist/cli/credentials.js.map +1 -1
  26. package/dist/cli/directory.d.ts +19 -4
  27. package/dist/cli/directory.d.ts.map +1 -1
  28. package/dist/cli/directory.js +16 -8
  29. package/dist/cli/directory.js.map +1 -1
  30. package/dist/cli/format.d.ts +70 -9
  31. package/dist/cli/format.d.ts.map +1 -1
  32. package/dist/cli/format.js +267 -40
  33. package/dist/cli/format.js.map +1 -1
  34. package/dist/cli/help.d.ts +13 -4
  35. package/dist/cli/help.d.ts.map +1 -1
  36. package/dist/cli/help.js +101 -58
  37. package/dist/cli/help.js.map +1 -1
  38. package/dist/cli/machine-check.d.ts +36 -0
  39. package/dist/cli/machine-check.d.ts.map +1 -0
  40. package/dist/cli/machine-check.js +151 -0
  41. package/dist/cli/machine-check.js.map +1 -0
  42. package/dist/cli/main.js +76 -2
  43. package/dist/cli/main.js.map +1 -1
  44. package/dist/cli/pack.d.ts +69 -60
  45. package/dist/cli/pack.d.ts.map +1 -1
  46. package/dist/cli/pack.js +241 -270
  47. package/dist/cli/pack.js.map +1 -1
  48. package/dist/cli/plugin-check.d.ts +42 -0
  49. package/dist/cli/plugin-check.d.ts.map +1 -1
  50. package/dist/cli/plugin-check.js +221 -36
  51. package/dist/cli/plugin-check.js.map +1 -1
  52. package/dist/cli/plugin-cli.d.ts +6 -1
  53. package/dist/cli/plugin-cli.d.ts.map +1 -1
  54. package/dist/cli/plugin-cli.js +21 -4
  55. package/dist/cli/plugin-cli.js.map +1 -1
  56. package/dist/cli/plugin-main.js +1 -0
  57. package/dist/cli/plugin-main.js.map +1 -1
  58. package/dist/cli/runner-host.d.ts +7 -0
  59. package/dist/cli/runner-host.d.ts.map +1 -1
  60. package/dist/cli/runner-host.js +2 -0
  61. package/dist/cli/runner-host.js.map +1 -1
  62. package/dist/cli/secret-notes.d.ts +8 -0
  63. package/dist/cli/secret-notes.d.ts.map +1 -0
  64. package/dist/cli/secret-notes.js +48 -0
  65. package/dist/cli/secret-notes.js.map +1 -0
  66. package/dist/cli/serve.d.ts +33 -1
  67. package/dist/cli/serve.d.ts.map +1 -1
  68. package/dist/cli/serve.js +252 -3
  69. package/dist/cli/serve.js.map +1 -1
  70. package/dist/client.d.ts +54 -9
  71. package/dist/client.d.ts.map +1 -1
  72. package/dist/client.js +77 -80
  73. package/dist/client.js.map +1 -1
  74. package/dist/components/agent-page.d.ts +164 -8
  75. package/dist/components/agent-page.d.ts.map +1 -1
  76. package/dist/components/agent-page.js +588 -151
  77. package/dist/components/agent-page.js.map +1 -1
  78. package/dist/components/agents.d.ts.map +1 -1
  79. package/dist/components/agents.js +1 -1
  80. package/dist/components/agents.js.map +1 -1
  81. package/dist/components/board.d.ts.map +1 -1
  82. package/dist/components/board.js +3 -2
  83. package/dist/components/board.js.map +1 -1
  84. package/dist/components/categories.js +1 -1
  85. package/dist/components/categories.js.map +1 -1
  86. package/dist/components/charts.d.ts +157 -0
  87. package/dist/components/charts.d.ts.map +1 -0
  88. package/dist/components/charts.js +182 -0
  89. package/dist/components/charts.js.map +1 -0
  90. package/dist/components/decision-list.d.ts.map +1 -1
  91. package/dist/components/decision-list.js +1 -1
  92. package/dist/components/decision-list.js.map +1 -1
  93. package/dist/components/desk-records.d.ts +102 -0
  94. package/dist/components/desk-records.d.ts.map +1 -0
  95. package/dist/components/desk-records.js +221 -0
  96. package/dist/components/desk-records.js.map +1 -0
  97. package/dist/components/desk.d.ts +85 -0
  98. package/dist/components/desk.d.ts.map +1 -0
  99. package/dist/components/desk.js +135 -0
  100. package/dist/components/desk.js.map +1 -0
  101. package/dist/components/event-feed.d.ts.map +1 -1
  102. package/dist/components/event-feed.js +7 -3
  103. package/dist/components/event-feed.js.map +1 -1
  104. package/dist/components/goals.d.ts +2 -0
  105. package/dist/components/goals.d.ts.map +1 -1
  106. package/dist/components/goals.js +1 -1
  107. package/dist/components/goals.js.map +1 -1
  108. package/dist/components/home.d.ts.map +1 -1
  109. package/dist/components/home.js +14 -6
  110. package/dist/components/home.js.map +1 -1
  111. package/dist/components/icon.d.ts +31 -0
  112. package/dist/components/icon.d.ts.map +1 -0
  113. package/dist/components/icon.js +169 -0
  114. package/dist/components/icon.js.map +1 -0
  115. package/dist/components/markdown.d.ts +6 -0
  116. package/dist/components/markdown.d.ts.map +1 -1
  117. package/dist/components/markdown.js +10 -2
  118. package/dist/components/markdown.js.map +1 -1
  119. package/dist/components/people.js +1 -1
  120. package/dist/components/people.js.map +1 -1
  121. package/dist/components/plugin-frame.d.ts.map +1 -1
  122. package/dist/components/plugin-frame.js +7 -0
  123. package/dist/components/plugin-frame.js.map +1 -1
  124. package/dist/components/plugin-settings.d.ts.map +1 -1
  125. package/dist/components/plugin-settings.js +54 -3
  126. package/dist/components/plugin-settings.js.map +1 -1
  127. package/dist/components/projects.d.ts +17 -4
  128. package/dist/components/projects.d.ts.map +1 -1
  129. package/dist/components/projects.js +51 -12
  130. package/dist/components/projects.js.map +1 -1
  131. package/dist/components/rules.d.ts +8 -10
  132. package/dist/components/rules.d.ts.map +1 -1
  133. package/dist/components/rules.js +35 -13
  134. package/dist/components/rules.js.map +1 -1
  135. package/dist/components/sessions.d.ts.map +1 -1
  136. package/dist/components/sessions.js +3 -2
  137. package/dist/components/sessions.js.map +1 -1
  138. package/dist/components/setup.d.ts +9 -3
  139. package/dist/components/setup.d.ts.map +1 -1
  140. package/dist/components/setup.js +12 -6
  141. package/dist/components/setup.js.map +1 -1
  142. package/dist/components/shell.d.ts.map +1 -1
  143. package/dist/components/shell.js +3 -2
  144. package/dist/components/shell.js.map +1 -1
  145. package/dist/components/tokens.js +1 -1
  146. package/dist/components/tokens.js.map +1 -1
  147. package/dist/components/ui.d.ts +5 -2
  148. package/dist/components/ui.d.ts.map +1 -1
  149. package/dist/components/ui.js +10 -7
  150. package/dist/components/ui.js.map +1 -1
  151. package/dist/connect-page.js +1 -1
  152. package/dist/connect-page.js.map +1 -1
  153. package/dist/console.css +1172 -106
  154. package/dist/console.d.ts +5 -0
  155. package/dist/console.d.ts.map +1 -1
  156. package/dist/console.js +52 -39
  157. package/dist/console.js.map +1 -1
  158. package/dist/data.d.ts.map +1 -1
  159. package/dist/data.js +32 -33
  160. package/dist/data.js.map +1 -1
  161. package/dist/desk-page.d.ts +38 -0
  162. package/dist/desk-page.d.ts.map +1 -0
  163. package/dist/desk-page.js +184 -0
  164. package/dist/desk-page.js.map +1 -0
  165. package/dist/desk-records-page.d.ts +18 -0
  166. package/dist/desk-records-page.d.ts.map +1 -0
  167. package/dist/desk-records-page.js +130 -0
  168. package/dist/desk-records-page.js.map +1 -0
  169. package/dist/desk-records.d.ts +247 -0
  170. package/dist/desk-records.d.ts.map +1 -0
  171. package/dist/desk-records.js +543 -0
  172. package/dist/desk-records.js.map +1 -0
  173. package/dist/desk.d.ts +122 -0
  174. package/dist/desk.d.ts.map +1 -0
  175. package/dist/desk.js +211 -0
  176. package/dist/desk.js.map +1 -0
  177. package/dist/feed-stream.d.ts +39 -0
  178. package/dist/feed-stream.d.ts.map +1 -0
  179. package/dist/feed-stream.js +117 -0
  180. package/dist/feed-stream.js.map +1 -0
  181. package/dist/home-tiles.d.ts +19 -3
  182. package/dist/home-tiles.d.ts.map +1 -1
  183. package/dist/home-tiles.js +147 -42
  184. package/dist/home-tiles.js.map +1 -1
  185. package/dist/i18n/en.d.ts +228 -6
  186. package/dist/i18n/en.d.ts.map +1 -1
  187. package/dist/i18n/en.js +309 -9
  188. package/dist/i18n/en.js.map +1 -1
  189. package/dist/i18n/ko.d.ts.map +1 -1
  190. package/dist/i18n/ko.js +366 -85
  191. package/dist/i18n/ko.js.map +1 -1
  192. package/dist/i18n/particles.d.ts +7 -0
  193. package/dist/i18n/particles.d.ts.map +1 -0
  194. package/dist/i18n/particles.js +72 -0
  195. package/dist/i18n/particles.js.map +1 -0
  196. package/dist/icons/glyphs.d.ts +605 -0
  197. package/dist/icons/glyphs.d.ts.map +1 -0
  198. package/dist/icons/glyphs.js +104 -0
  199. package/dist/icons/glyphs.js.map +1 -0
  200. package/dist/icons/index.d.ts +59 -0
  201. package/dist/icons/index.d.ts.map +1 -0
  202. package/dist/icons/index.js +157 -0
  203. package/dist/icons/index.js.map +1 -0
  204. package/dist/index.d.ts +9 -0
  205. package/dist/index.d.ts.map +1 -1
  206. package/dist/index.js +9 -0
  207. package/dist/index.js.map +1 -1
  208. package/dist/limits.d.ts +20 -0
  209. package/dist/limits.d.ts.map +1 -1
  210. package/dist/limits.js +20 -0
  211. package/dist/limits.js.map +1 -1
  212. package/dist/marks.d.ts +9 -0
  213. package/dist/marks.d.ts.map +1 -1
  214. package/dist/marks.js +9 -0
  215. package/dist/marks.js.map +1 -1
  216. package/dist/onboarding.d.ts +6 -0
  217. package/dist/onboarding.d.ts.map +1 -1
  218. package/dist/onboarding.js +5 -5
  219. package/dist/onboarding.js.map +1 -1
  220. package/dist/plugin/context.d.ts +42 -11
  221. package/dist/plugin/context.d.ts.map +1 -1
  222. package/dist/plugin/limits.d.ts +2 -0
  223. package/dist/plugin/limits.d.ts.map +1 -1
  224. package/dist/plugin/limits.js +2 -0
  225. package/dist/plugin/limits.js.map +1 -1
  226. package/dist/plugin/manifest.d.ts +13 -0
  227. package/dist/plugin/manifest.d.ts.map +1 -1
  228. package/dist/plugin/manifest.js +30 -3
  229. package/dist/plugin/manifest.js.map +1 -1
  230. package/dist/plugin/rest-schemas.d.ts +55 -0
  231. package/dist/plugin/rest-schemas.d.ts.map +1 -1
  232. package/dist/plugin/rest-schemas.js +37 -0
  233. package/dist/plugin/rest-schemas.js.map +1 -1
  234. package/dist/plugin/sandbox.d.ts.map +1 -1
  235. package/dist/plugin/sandbox.js +4 -1
  236. package/dist/plugin/sandbox.js.map +1 -1
  237. package/dist/plugin/testing.d.ts +6 -2
  238. package/dist/plugin/testing.d.ts.map +1 -1
  239. package/dist/plugin/testing.js +52 -10
  240. package/dist/plugin/testing.js.map +1 -1
  241. package/dist/plugin/web.d.ts +3 -0
  242. package/dist/plugin/web.d.ts.map +1 -1
  243. package/dist/plugin/web.js +5 -1
  244. package/dist/plugin/web.js.map +1 -1
  245. package/dist/plugin.d.ts +1 -1
  246. package/dist/plugin.d.ts.map +1 -1
  247. package/dist/plugin.js +1 -1
  248. package/dist/plugin.js.map +1 -1
  249. package/dist/records.d.ts +283 -0
  250. package/dist/records.d.ts.map +1 -0
  251. package/dist/records.js +543 -0
  252. package/dist/records.js.map +1 -0
  253. package/dist/routes.d.ts +3 -1
  254. package/dist/routes.d.ts.map +1 -1
  255. package/dist/routes.js +3 -1
  256. package/dist/routes.js.map +1 -1
  257. package/dist/rules.d.ts +30 -11
  258. package/dist/rules.d.ts.map +1 -1
  259. package/dist/rules.js +98 -45
  260. package/dist/rules.js.map +1 -1
  261. package/dist/runner/acp.d.ts +1 -1
  262. package/dist/runner/acp.d.ts.map +1 -1
  263. package/dist/runner/acp.js +32 -21
  264. package/dist/runner/acp.js.map +1 -1
  265. package/dist/runner/awake.d.ts +35 -0
  266. package/dist/runner/awake.d.ts.map +1 -0
  267. package/dist/runner/awake.js +95 -0
  268. package/dist/runner/awake.js.map +1 -0
  269. package/dist/runner/claude.d.ts +1 -1
  270. package/dist/runner/claude.d.ts.map +1 -1
  271. package/dist/runner/claude.js +100 -18
  272. package/dist/runner/claude.js.map +1 -1
  273. package/dist/runner/codex.d.ts +1 -1
  274. package/dist/runner/codex.d.ts.map +1 -1
  275. package/dist/runner/codex.js +20 -17
  276. package/dist/runner/codex.js.map +1 -1
  277. package/dist/runner/config.d.ts +5 -0
  278. package/dist/runner/config.d.ts.map +1 -1
  279. package/dist/runner/config.js +9 -0
  280. package/dist/runner/config.js.map +1 -1
  281. package/dist/runner/desk.d.ts +43 -2
  282. package/dist/runner/desk.d.ts.map +1 -1
  283. package/dist/runner/desk.js +168 -13
  284. package/dist/runner/desk.js.map +1 -1
  285. package/dist/runner/process.d.ts.map +1 -1
  286. package/dist/runner/process.js +11 -4
  287. package/dist/runner/process.js.map +1 -1
  288. package/dist/runner/redact.d.ts +39 -4
  289. package/dist/runner/redact.d.ts.map +1 -1
  290. package/dist/runner/redact.js +81 -5
  291. package/dist/runner/redact.js.map +1 -1
  292. package/dist/runner/runner.d.ts +28 -3
  293. package/dist/runner/runner.d.ts.map +1 -1
  294. package/dist/runner/runner.js +371 -54
  295. package/dist/runner/runner.js.map +1 -1
  296. package/dist/runner/slack.d.ts.map +1 -1
  297. package/dist/runner/slack.js +10 -4
  298. package/dist/runner/slack.js.map +1 -1
  299. package/dist/runner/task-scheduler.d.ts +20 -0
  300. package/dist/runner/task-scheduler.d.ts.map +1 -1
  301. package/dist/runner/task-scheduler.js +34 -4
  302. package/dist/runner/task-scheduler.js.map +1 -1
  303. package/dist/runner/types.d.ts +51 -1
  304. package/dist/runner/types.d.ts.map +1 -1
  305. package/dist/runner/types.js +26 -0
  306. package/dist/runner/types.js.map +1 -1
  307. package/dist/runner.d.ts +6 -6
  308. package/dist/runner.d.ts.map +1 -1
  309. package/dist/runner.js +5 -5
  310. package/dist/runner.js.map +1 -1
  311. package/dist/schemas.d.ts +603 -6
  312. package/dist/schemas.d.ts.map +1 -1
  313. package/dist/schemas.js +156 -20
  314. package/dist/schemas.js.map +1 -1
  315. package/dist/services.d.ts +22 -5
  316. package/dist/services.d.ts.map +1 -1
  317. package/dist/services.js +41 -17
  318. package/dist/services.js.map +1 -1
  319. package/dist/setup-guide.d.ts +17 -4
  320. package/dist/setup-guide.d.ts.map +1 -1
  321. package/dist/setup-guide.js +48 -41
  322. package/dist/setup-guide.js.map +1 -1
  323. package/dist/tokens.d.ts.map +1 -1
  324. package/dist/tokens.js +5 -1
  325. package/dist/tokens.js.map +1 -1
  326. package/dist/vocabulary.d.ts +21 -3
  327. package/dist/vocabulary.d.ts.map +1 -1
  328. package/dist/vocabulary.js +19 -3
  329. package/dist/vocabulary.js.map +1 -1
  330. package/docs/specs/cli.md +73 -44
  331. package/docs/specs/plugins.md +40 -22
  332. package/docs/specs/records.md +113 -0
  333. package/docs/specs/rest.md +30 -21
  334. package/docs/specs/runner.md +46 -22
  335. package/package.json +11 -2
  336. package/skills/building-a-console/SKILL.md +4 -4
  337. package/skills/building-a-plugin/SKILL.md +6 -6
  338. package/skills/deploying-a-console/SKILL.md +4 -4
  339. package/skills/deploying-a-console/references/resources.md +41 -4
  340. package/skills/deploying-a-console/references/running-it-again.md +3 -2
  341. package/skills/keeping-a-desk/SKILL.md +133 -0
  342. package/skills/keeping-a-desk/collections.md +96 -0
  343. package/skills/planning-the-board/SKILL.md +14 -18
  344. package/skills/planning-the-board/references/a-task.md +2 -2
  345. package/skills/planning-the-board/references/project-rules.md +13 -14
  346. package/skills/planning-the-board/references/setting-up.md +15 -13
  347. package/skills/running-an-agent/SKILL.md +47 -56
  348. package/skills/working-the-board/SKILL.md +63 -44
  349. package/skills/working-the-board/references/terms.md +9 -5
  350. package/skills/working-the-board/references/the-pack.md +12 -10
  351. package/skills/working-the-board/references/the-sentence.md +2 -2
  352. package/src/agent-page.tsx +16 -2
  353. package/src/api.ts +109 -3
  354. package/src/charts.ts +250 -0
  355. package/src/cli/cli.ts +2226 -580
  356. package/src/cli/command-words.ts +56 -0
  357. package/src/cli/credentials.ts +181 -20
  358. package/src/cli/directory.ts +28 -10
  359. package/src/cli/format.ts +332 -49
  360. package/src/cli/help.ts +113 -57
  361. package/src/cli/machine-check.ts +223 -0
  362. package/src/cli/main.ts +72 -2
  363. package/src/cli/pack.ts +333 -372
  364. package/src/cli/plugin-check.ts +275 -34
  365. package/src/cli/plugin-cli.ts +28 -4
  366. package/src/cli/plugin-main.ts +1 -0
  367. package/src/cli/runner-host.ts +8 -0
  368. package/src/cli/secret-notes.ts +63 -0
  369. package/src/cli/serve.ts +295 -2
  370. package/src/client.ts +215 -177
  371. package/src/components/agent-page.tsx +1044 -281
  372. package/src/components/agents.tsx +9 -5
  373. package/src/components/board.tsx +3 -15
  374. package/src/components/categories.tsx +2 -2
  375. package/src/components/charts.tsx +680 -0
  376. package/src/components/decision-list.tsx +11 -7
  377. package/src/components/desk-records.tsx +724 -0
  378. package/src/components/desk.tsx +471 -0
  379. package/src/components/event-feed.tsx +12 -3
  380. package/src/components/goals.tsx +33 -25
  381. package/src/components/home.tsx +42 -6
  382. package/src/components/icon.tsx +337 -0
  383. package/src/components/markdown.tsx +22 -2
  384. package/src/components/people.tsx +1 -1
  385. package/src/components/plugin-frame.tsx +7 -0
  386. package/src/components/plugin-settings.tsx +171 -12
  387. package/src/components/projects.tsx +68 -17
  388. package/src/components/rules.tsx +94 -34
  389. package/src/components/sessions.tsx +2 -13
  390. package/src/components/setup.tsx +20 -5
  391. package/src/components/shell.tsx +3 -20
  392. package/src/components/tokens.tsx +1 -1
  393. package/src/components/ui.tsx +16 -8
  394. package/src/connect-page.tsx +1 -1
  395. package/src/console.tsx +104 -62
  396. package/src/data.ts +37 -34
  397. package/src/desk-page.tsx +332 -0
  398. package/src/desk-records-page.tsx +256 -0
  399. package/src/desk-records.ts +808 -0
  400. package/src/desk.ts +329 -0
  401. package/src/feed-stream.ts +144 -0
  402. package/src/home-tiles.ts +170 -46
  403. package/src/i18n/en.ts +323 -11
  404. package/src/i18n/ko.ts +378 -87
  405. package/src/i18n/particles.ts +79 -0
  406. package/src/icons/glyphs.ts +112 -0
  407. package/src/icons/index.ts +195 -0
  408. package/src/index.ts +125 -0
  409. package/src/limits.ts +20 -0
  410. package/src/marks.ts +12 -0
  411. package/src/onboarding.ts +14 -6
  412. package/src/plugin/context.ts +55 -12
  413. package/src/plugin/limits.ts +2 -0
  414. package/src/plugin/manifest.ts +38 -2
  415. package/src/plugin/rest-schemas.ts +41 -0
  416. package/src/plugin/sandbox.ts +4 -1
  417. package/src/plugin/testing.ts +63 -12
  418. package/src/plugin/web.ts +9 -2
  419. package/src/plugin.ts +2 -0
  420. package/src/records.ts +702 -0
  421. package/src/routes.ts +3 -1
  422. package/src/rules.ts +108 -47
  423. package/src/runner/acp.ts +49 -30
  424. package/src/runner/awake.ts +135 -0
  425. package/src/runner/claude.ts +131 -26
  426. package/src/runner/codex.ts +37 -26
  427. package/src/runner/config.ts +9 -0
  428. package/src/runner/desk.ts +200 -15
  429. package/src/runner/process.ts +11 -4
  430. package/src/runner/redact.ts +92 -6
  431. package/src/runner/runner.ts +457 -56
  432. package/src/runner/slack.ts +10 -4
  433. package/src/runner/task-scheduler.ts +36 -4
  434. package/src/runner/types.ts +67 -1
  435. package/src/runner.ts +27 -2
  436. package/src/schemas.ts +177 -18
  437. package/src/services.ts +55 -16
  438. package/src/setup-guide.ts +49 -40
  439. package/src/styles/README.md +16 -5
  440. package/src/styles/base.css +17 -0
  441. package/src/styles/console.css +10 -0
  442. package/src/styles/drawn-by-pages.json +1 -1
  443. package/src/styles/pages/agents.css +103 -1
  444. package/src/styles/pages/board.css +0 -10
  445. package/src/styles/pages/calendar.css +1 -1
  446. package/src/styles/pages/connect.css +0 -10
  447. package/src/styles/pages/decisions.css +3 -1
  448. package/src/styles/pages/desk.css +126 -0
  449. package/src/styles/pages/documents.css +5 -0
  450. package/src/styles/pages/feed.css +5 -2
  451. package/src/styles/pages/home.css +5 -0
  452. package/src/styles/pages/roadmap.css +2 -2
  453. package/src/styles/pages/settings.css +11 -0
  454. package/src/styles/pages/task.css +0 -20
  455. package/src/styles/pages/thread.css +1 -1
  456. package/src/styles/parts/bars.css +80 -0
  457. package/src/styles/parts/calendar.css +1 -1
  458. package/src/styles/parts/callout.css +1 -0
  459. package/src/styles/parts/chart.css +173 -0
  460. package/src/styles/parts/detail.css +22 -0
  461. package/src/styles/parts/empty.css +2 -0
  462. package/src/styles/parts/eyebrow.css +1 -1
  463. package/src/styles/parts/facts.css +1 -1
  464. package/src/styles/parts/figures.css +65 -0
  465. package/src/styles/parts/form.css +2 -1
  466. package/src/styles/parts/icon.css +191 -0
  467. package/src/styles/parts/input.css +14 -4
  468. package/src/styles/parts/legend.css +48 -0
  469. package/src/styles/parts/mark.css +36 -0
  470. package/src/styles/parts/menu.css +1 -7
  471. package/src/styles/parts/page.css +1 -1
  472. package/src/styles/parts/panel.css +10 -0
  473. package/src/styles/parts/person.css +5 -2
  474. package/src/styles/parts/progress.css +5 -2
  475. package/src/styles/parts/rows.css +1 -0
  476. package/src/styles/parts/series.css +32 -0
  477. package/src/styles/parts/settings.css +5 -0
  478. package/src/styles/parts/share.css +25 -0
  479. package/src/styles/parts/spark.css +23 -0
  480. package/src/styles/parts/stat.css +69 -0
  481. package/src/styles/tokens.css +31 -10
  482. package/src/tokens.ts +5 -1
  483. package/src/vocabulary.ts +25 -3
  484. package/template/desk-web/README.md +8 -0
  485. package/template/desk-web/index.html +13 -0
  486. package/template/desk-web/package.json +25 -0
  487. package/template/desk-web/src/main.tsx +24 -0
  488. package/template/desk-web/src/page.tsx +51 -0
  489. package/template/desk-web/tsconfig.json +16 -0
  490. package/template/desk-web/vite.config.ts +15 -0
@@ -14,6 +14,7 @@ import { daysBetween, today } from "../dates.js";
14
14
  import {
15
15
  added,
16
16
  arranged,
17
+ COMPOSED_HOME,
17
18
  type ComposedTile,
18
19
  columnsFor,
19
20
  composed,
@@ -36,7 +37,10 @@ import {
36
37
  type PlacedTile,
37
38
  resized,
38
39
  rowsOf,
40
+ sameArrangement,
39
41
  sizesAt,
42
+ standsComposed,
43
+ tidied,
40
44
  waitToGiveWay,
41
45
  } from "../home-tiles.js";
42
46
  import { useWords } from "../i18n/index.js";
@@ -63,6 +67,7 @@ import { Badge, Button, Callout, cx, Day, DueBadge, ProgressBar, Workers } from
63
67
  const SPARE_ROWS = 2;
64
68
 
65
69
  const NONE: readonly string[] = [];
70
+ const NOT_PLACED: readonly PlacedTile[] = [];
66
71
 
67
72
  /**
68
73
  * What a project's tile at a glance reads of its board (ADR-0105): the one answer of
@@ -529,8 +534,12 @@ export function HomeGrid(props: HomeGridProps) {
529
534
  const working = draft ?? home;
530
535
  const hidden = working?.hidden ?? NONE;
531
536
  // A width nobody arranged is closed up by trying the sizes the tiles come in: once a render, not
532
- // once a pointer's move.
533
- const placed = useMemo(() => arranged(tiles, working, columns), [tiles, working, columns]);
537
+ // once a pointer's move, and not at all while the page stands composed and nobody arranges
538
+ // it, since the composed page is drawn from its own boxes and reads none of this.
539
+ const placed = useMemo(
540
+ () => (!editing && nobodyArranged(working) ? NOT_PLACED : arranged(tiles, working, columns)),
541
+ [editing, tiles, working, columns],
542
+ );
534
543
  const [drag, setDrag] = useState<Drag | null>(null);
535
544
  const { busy, error, act } = useAction();
536
545
  /** The tile in hand, once it has come loose; nothing while one is merely pressed. */
@@ -747,13 +756,22 @@ export function HomeGrid(props: HomeGridProps) {
747
756
  setDraft(null);
748
757
  props.onDone();
749
758
  };
759
+ /** The page as composed again, every tile back on it: kept by Done like any change, let go by Cancel. */
760
+ const reset = () => setDraft(COMPOSED_HOME);
761
+ // The page closed up (ADR-0139), worked out while it is arranged alone: it tries the sizes the
762
+ // widgets come in, and the way to it is offered only where it would change something.
763
+ const closed = useMemo(
764
+ () => (editing ? tidied(placed, columns) : placed),
765
+ [editing, placed, columns],
766
+ );
767
+ const gaps = editing && !sameArrangement(closed, placed);
750
768
 
751
769
  const nameOfTile = (tile: HomeTile): string =>
752
770
  tile.kind === "project" ? tile.project.name : nameOf(tile.widget.name);
753
771
  // Moved in the page, a frame would load again: the tiles keep the order they came in for as
754
772
  // long as the page is open, and each stands where its style says.
755
- // Someone who has arranged nothing sees the page composed, edge to edge; arranging it puts the
756
- // same tiles on the grid's cells, where they move from (ADR-0082).
773
+ // Someone who has arranged nothing sees the page composed, edge to edge (ADR-0082); arranging
774
+ // it puts the same tiles on the grid's cells, closed up, where they move from (ADR-0139).
757
775
  const composing = !editing && nobodyArranged(working);
758
776
  const boxes: readonly ComposedTile[] = useMemo(
759
777
  () =>
@@ -800,6 +818,22 @@ export function HomeGrid(props: HomeGridProps) {
800
818
  <div className="sc-home-bar">
801
819
  <p className="sc-home-hint">{words.hint}</p>
802
820
  <div className="sc-home-bar-actions">
821
+ <Button
822
+ size="sm"
823
+ variant="ghost"
824
+ disabled={busy || standsComposed(working)}
825
+ onClick={reset}
826
+ >
827
+ {words.reset}
828
+ </Button>
829
+ <Button
830
+ size="sm"
831
+ variant="ghost"
832
+ disabled={busy || !gaps}
833
+ onClick={() => change(closed)}
834
+ >
835
+ {words.tidy}
836
+ </Button>
803
837
  <Button size="sm" variant="ghost" disabled={busy} onClick={cancel}>
804
838
  {allWords.common.cancel}
805
839
  </Button>
@@ -830,13 +864,15 @@ export function HomeGrid(props: HomeGridProps) {
830
864
  ))}
831
865
  </div>
832
866
  )}
833
- {shown.length === 0 && !editing && (props.empty ?? null)}
867
+ {/* What stands on the page, composed or arranged: the tiles drawn, not the arranged ones,
868
+ which are not worked out while the page stands composed. */}
869
+ {boxes.length === 0 && !editing && (props.empty ?? null)}
834
870
  <ul
835
871
  ref={grid}
836
872
  className="sc-home-grid"
837
873
  aria-label={allWords.projects.list}
838
874
  data-columns={columns}
839
- hidden={shown.length === 0 && !editing}
875
+ hidden={boxes.length === 0 && !editing}
840
876
  style={
841
877
  {
842
878
  "--sc-home-columns": columns,
@@ -0,0 +1,337 @@
1
+ import {
2
+ createElement,
3
+ type KeyboardEvent,
4
+ useEffect,
5
+ useId,
6
+ useLayoutEffect,
7
+ useRef,
8
+ useState,
9
+ } from "react";
10
+ import { useWords } from "../i18n/index.js";
11
+ import {
12
+ findIcons,
13
+ GLYPHS,
14
+ type GlyphShape,
15
+ ICON_GRID,
16
+ ICON_GROUP_LIST,
17
+ type IconName,
18
+ type IconSection,
19
+ iconPlace,
20
+ iconStep,
21
+ isIconName,
22
+ } from "../icons/index.js";
23
+ import { opensAbove } from "./picker.js";
24
+ import { cx } from "./ui.js";
25
+
26
+ // A glyph of the icon pack by its name (ADR-0142), and the way to choose one. A glyph is drawn
27
+ // from the pack's data as elements, in the colour of the text it stands in, and never from
28
+ // markup: a name that is none of the pack's draws an empty box of the same size. The picker
29
+ // offers the pack by its groups and finds a glyph by words in the reader's language.
30
+
31
+ export type IconSize = "xs" | "sm" | "md" | "lg";
32
+
33
+ export interface IconProps {
34
+ readonly name: IconName;
35
+ /** `xs` a caret beside a word, `sm` in a line of text, `md` where it stands by itself (the default), `lg` in an empty state or on a card. */
36
+ readonly size?: IconSize | undefined;
37
+ /** What the glyph says, where it stands for words; left out, it is an ornament beside words and hidden from a screen reader. */
38
+ readonly label?: string | undefined;
39
+ readonly className?: string | undefined;
40
+ }
41
+
42
+ /** The side a glyph is drawn at where no stylesheet says: a line of text's. */
43
+ const PLAIN_SIDE = 20;
44
+
45
+ export function Icon(props: IconProps) {
46
+ const shapes: readonly GlyphShape[] = isIconName(props.name) ? GLYPHS[props.name] : [];
47
+ // The measures and the stroke stand on the element too, so that a page without the console's
48
+ // stylesheet, a prototype's, draws the glyph as the pack means it.
49
+ const drawn = {
50
+ className: cx("sc-icon", `sc-icon-${props.size ?? "md"}`, props.className),
51
+ viewBox: `0 0 ${ICON_GRID} ${ICON_GRID}`,
52
+ width: PLAIN_SIDE,
53
+ height: PLAIN_SIDE,
54
+ fill: "none",
55
+ stroke: "currentColor",
56
+ strokeWidth: "1.5",
57
+ strokeLinecap: "round",
58
+ strokeLinejoin: "round",
59
+ focusable: "false",
60
+ } as const;
61
+ // A glyph's shapes are fixed, in a fixed order: each is told apart by its place.
62
+ const lines = shapes.map(([tag, measures], index) =>
63
+ createElement(tag, { key: index, ...measures }),
64
+ );
65
+ return props.label !== undefined && props.label.length > 0 ? (
66
+ <svg {...drawn} role="img" aria-label={props.label}>
67
+ {lines}
68
+ </svg>
69
+ ) : (
70
+ <svg {...drawn} aria-hidden="true">
71
+ {lines}
72
+ </svg>
73
+ );
74
+ }
75
+
76
+ export interface IconPickerProps {
77
+ /** The glyph chosen, or `null` for none. */
78
+ readonly value: IconName | null;
79
+ readonly onChange: (value: IconName | null) => void;
80
+ /** The field's name, for the button and the list. */
81
+ readonly label: string;
82
+ /** What choosing none means, in the field and as the first choice; the pack's word for none when left out. */
83
+ readonly none?: string | undefined;
84
+ /** The button's id, where a label points at it. */
85
+ readonly id?: string | undefined;
86
+ readonly disabled?: boolean | undefined;
87
+ }
88
+
89
+ /** How many tiles stand on a row of a grid as the browser laid it out; one where it cannot be read. */
90
+ function columnsOf(grid: Element | null): number {
91
+ if (grid === null || typeof getComputedStyle === "undefined") {
92
+ return 1;
93
+ }
94
+ const tracks = getComputedStyle(grid).gridTemplateColumns.split(" ").filter(Boolean).length;
95
+ return Math.max(1, tracks);
96
+ }
97
+
98
+ /**
99
+ * Choosing a glyph of the pack, or none: a field that shows the choice and opens the pack under
100
+ * it, with a box to find a glyph by words, the choice of none first, and the glyphs in their
101
+ * groups. The words typed keep the focus; the arrows move over the glyphs, Enter chooses,
102
+ * Escape closes, and the focus is back on the field afterwards.
103
+ */
104
+ export function IconPicker(props: IconPickerProps) {
105
+ const all = useWords();
106
+ const words = all.icons;
107
+ const groupWords: Readonly<Record<string, string>> = words.groups;
108
+ const none = props.none ?? words.none;
109
+ const listId = useId();
110
+ const [open, setOpen] = useState(false);
111
+ const [query, setQuery] = useState("");
112
+ const [active, setActive] = useState(-1);
113
+ const [above, setAbove] = useState(false);
114
+ const trigger = useRef<HTMLButtonElement>(null);
115
+ const field = useRef<HTMLInputElement>(null);
116
+ const panel = useRef<HTMLDivElement>(null);
117
+
118
+ const searching = query.trim().length > 0;
119
+ /** What is offered, section by section: none first while nothing is searched, then the groups, or what the words found. */
120
+ const sections: readonly {
121
+ readonly key: string;
122
+ readonly heading: string | undefined;
123
+ readonly icons: readonly (IconName | null)[];
124
+ }[] = searching
125
+ ? [{ key: "found", heading: undefined, icons: findIcons(query, words.words) }]
126
+ : [
127
+ { key: "none", heading: undefined, icons: [null] },
128
+ ...ICON_GROUP_LIST.map((group) => ({
129
+ key: group.key,
130
+ heading: Object.hasOwn(groupWords, group.key)
131
+ ? (groupWords[group.key] ?? group.key)
132
+ : group.key,
133
+ icons: group.icons,
134
+ })),
135
+ ];
136
+ const choices = sections.flatMap((section) => section.icons);
137
+
138
+ /** Opens the pack with the choice in hand, so that it is in sight and the keys go on from it. */
139
+ const show = () => {
140
+ setActive(iconPlace(props.value));
141
+ setOpen(true);
142
+ };
143
+ const close = (refocus: boolean) => {
144
+ setOpen(false);
145
+ setQuery("");
146
+ setActive(-1);
147
+ if (refocus) {
148
+ trigger.current?.focus();
149
+ }
150
+ };
151
+ const choose = (choice: IconName | null) => {
152
+ props.onChange(choice);
153
+ close(true);
154
+ };
155
+
156
+ // Opened, the words are typed at once; the pack opens above the field only where the window
157
+ // has no room below it and more above, measured before anything is painted.
158
+ useLayoutEffect(() => {
159
+ if (!open || trigger.current === null || panel.current === null) {
160
+ return;
161
+ }
162
+ setAbove(
163
+ opensAbove(
164
+ trigger.current.getBoundingClientRect(),
165
+ panel.current.offsetHeight,
166
+ window.innerHeight,
167
+ ),
168
+ );
169
+ field.current?.focus();
170
+ }, [open]);
171
+
172
+ // The choice in hand is kept in sight as the keys move it.
173
+ useEffect(() => {
174
+ if (open && active >= 0) {
175
+ document.getElementById(`${listId}-${active}`)?.scrollIntoView?.({ block: "nearest" });
176
+ }
177
+ }, [open, active, listId]);
178
+
179
+ const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {
180
+ if (event.key === "Escape") {
181
+ event.preventDefault();
182
+ event.stopPropagation();
183
+ close(true);
184
+ return;
185
+ }
186
+ if (event.key === "Enter") {
187
+ // A choice, or nothing: the form around the field is never sent by this key.
188
+ event.preventDefault();
189
+ const chosen = active >= 0 ? choices[active] : searching ? choices[0] : undefined;
190
+ if (chosen !== undefined) {
191
+ choose(chosen);
192
+ }
193
+ return;
194
+ }
195
+ if (event.key === "Tab") {
196
+ close(false);
197
+ return;
198
+ }
199
+ // Left and right move the caret in the words until a glyph is in hand; Home and End too.
200
+ const moves =
201
+ event.key === "ArrowDown" ||
202
+ event.key === "ArrowUp" ||
203
+ (active >= 0 &&
204
+ (event.key === "ArrowLeft" ||
205
+ event.key === "ArrowRight" ||
206
+ event.key === "Home" ||
207
+ event.key === "End"));
208
+ if (!moves) {
209
+ return;
210
+ }
211
+ event.preventDefault();
212
+ // Every grid of the pack is as wide as the next, so the first says how many stand on a row.
213
+ const columns = columnsOf(panel.current?.querySelector(".sc-icon-grid") ?? null);
214
+ const laid: IconSection[] = sections.map((section) => ({
215
+ size: section.icons.length,
216
+ columns: section.key === "none" ? 1 : columns,
217
+ }));
218
+ const next = iconStep(laid, active, event.key);
219
+ if (next !== undefined) {
220
+ setActive(next);
221
+ }
222
+ };
223
+
224
+ let place = 0;
225
+ return (
226
+ <div className="sc-icon-picker">
227
+ <button
228
+ type="button"
229
+ ref={trigger}
230
+ id={props.id}
231
+ className="sc-input sc-icon-picker-field"
232
+ aria-haspopup="listbox"
233
+ aria-expanded={open}
234
+ aria-label={`${props.label}: ${props.value ?? none}`}
235
+ disabled={props.disabled}
236
+ onClick={() => (open ? close(false) : show())}
237
+ onKeyDown={(event) => {
238
+ if (!open && (event.key === "ArrowDown" || event.key === "ArrowUp")) {
239
+ event.preventDefault();
240
+ show();
241
+ }
242
+ }}
243
+ >
244
+ {props.value !== null && <Icon name={props.value} size="sm" />}
245
+ <span className="sc-icon-picker-value">{props.value ?? none}</span>
246
+ <Icon name="chevron-down" size="sm" className="sc-icon-picker-caret" />
247
+ </button>
248
+ {open && (
249
+ // The pack under its field. A press anywhere in it keeps the focus on the words, so that
250
+ // the bar it scrolls by and the room between its tiles close nothing.
251
+ // biome-ignore lint/a11y/noStaticElementInteractions: the press is kept from taking the focus off the words, and does nothing else
252
+ <div
253
+ ref={panel}
254
+ className={cx("sc-icon-picker-panel", above && "sc-icon-picker-panel-above")}
255
+ onMouseDown={(event) => {
256
+ if (event.target !== field.current) {
257
+ event.preventDefault();
258
+ }
259
+ }}
260
+ >
261
+ <input
262
+ ref={field}
263
+ className="sc-input"
264
+ type="text"
265
+ role="combobox"
266
+ aria-label={words.search}
267
+ aria-expanded="true"
268
+ aria-controls={listId}
269
+ aria-autocomplete="list"
270
+ aria-activedescendant={active >= 0 ? `${listId}-${active}` : undefined}
271
+ autoComplete="off"
272
+ spellCheck={false}
273
+ placeholder={words.search}
274
+ value={query}
275
+ onChange={(event) => {
276
+ setQuery(event.target.value);
277
+ setActive(-1);
278
+ }}
279
+ onBlur={() => close(false)}
280
+ onKeyDown={onKeyDown}
281
+ />
282
+ <div className="sc-icon-picker-list" id={listId} role="listbox" aria-label={props.label}>
283
+ {sections.map((section) => (
284
+ // biome-ignore lint/a11y/useSemanticElements: a fieldset draws a frame and a legend of its own; a group of options is this
285
+ <div
286
+ key={section.key}
287
+ className="sc-icon-picker-group"
288
+ role="group"
289
+ aria-label={section.heading}
290
+ >
291
+ {section.heading !== undefined && (
292
+ <p className="sc-eyebrow" aria-hidden="true">
293
+ {section.heading}
294
+ </p>
295
+ )}
296
+ <div className={section.key === "none" ? "sc-icon-picker-none" : "sc-icon-grid"}>
297
+ {section.icons.map((choice) => {
298
+ const at = place;
299
+ place += 1;
300
+ const chosen = choice === props.value;
301
+ return (
302
+ <div
303
+ key={choice ?? "none"}
304
+ id={`${listId}-${at}`}
305
+ role="option"
306
+ tabIndex={-1}
307
+ aria-selected={chosen}
308
+ aria-label={choice ?? none}
309
+ title={choice ?? undefined}
310
+ className={cx(
311
+ "sc-icon-tile",
312
+ choice === null && "sc-icon-tile-none",
313
+ at === active && "sc-icon-tile-active",
314
+ chosen && "sc-icon-tile-chosen",
315
+ )}
316
+ onMouseDown={(event) => {
317
+ event.preventDefault();
318
+ choose(choice);
319
+ }}
320
+ onMouseEnter={() => setActive(at)}
321
+ >
322
+ {choice === null ? none : <Icon name={choice} />}
323
+ </div>
324
+ );
325
+ })}
326
+ </div>
327
+ </div>
328
+ ))}
329
+ {choices.length === 0 && (
330
+ <p className="sc-icon-picker-note sc-muted">{words.nothingFound}</p>
331
+ )}
332
+ </div>
333
+ </div>
334
+ )}
335
+ </div>
336
+ );
337
+ }
@@ -7,11 +7,14 @@ import { useRemotePictureSrc } from "./remote-pictures.js";
7
7
  // What people and agents write is untrusted. It is rendered as React elements, never as HTML:
8
8
  // raw HTML in the source stays text, links are limited to a few schemes and open elsewhere,
9
9
  // and a picture from elsewhere, named over https, is read through the console (ADR-0048),
10
- // lazily and without a referrer. A link whose destination is a document's path (ADR-0009)
11
- // leads to the document's page, when the page knows where.
10
+ // lazily and without a referrer, or, where the page says so, not read at all and left a link
11
+ // (ADR-0141). A link whose destination is a document's path (ADR-0009) leads to the document's
12
+ // page, when the page knows where.
12
13
 
13
14
  const SAFE_LINK = /^(https?:|mailto:)/i;
14
15
  const SAFE_IMAGE = /^https:\/\//i;
16
+ /** Where a picture left unread may lead whoever opens it: a page, over the web. */
17
+ const SAFE_PICTURE_LINK = /^https?:\/\//i;
15
18
 
16
19
  export interface MarkdownProps {
17
20
  readonly source: string;
@@ -28,6 +31,12 @@ export interface MarkdownProps {
28
31
  * left out, such a picture is only seen where it is.
29
32
  */
30
33
  readonly onOpenPicture?: ((picture: Picture, opener: HTMLElement) => void) | undefined;
34
+ /**
35
+ * Whether a picture named in the text is left unread: shown as its words, a link to where it
36
+ * is for whoever chooses to open it, and nothing fetched by the page showing the text. For
37
+ * what an agent's session wrote, which nobody looked at before it is shown (ADR-0141).
38
+ */
39
+ readonly picturesAsLinks?: boolean | undefined;
31
40
  }
32
41
 
33
42
  export function Markdown(props: MarkdownProps) {
@@ -63,6 +72,17 @@ export function Markdown(props: MarkdownProps) {
63
72
  return <span>{children}</span>;
64
73
  },
65
74
  img({ src, alt, title }) {
75
+ if (props.picturesAsLinks === true) {
76
+ const where = typeof src === "string" ? src : "";
77
+ const words = alt === undefined || alt.length === 0 ? where : alt;
78
+ return SAFE_PICTURE_LINK.test(where) ? (
79
+ <a href={where} target="_blank" rel="noopener noreferrer nofollow ugc">
80
+ {words}
81
+ </a>
82
+ ) : (
83
+ <span className="sc-prose-image-text">{words}</span>
84
+ );
85
+ }
66
86
  const named = typeof src === "string" ? props.fileSrc?.(src) : undefined;
67
87
  const url =
68
88
  named ?? (typeof src === "string" && SAFE_IMAGE.test(src) ? remote(src) : undefined);
@@ -245,7 +245,7 @@ export function PeopleList(props: PeopleListProps) {
245
245
  <span className="sc-person-you">{words.common.you}</span>
246
246
  )}
247
247
  </span>
248
- {title !== "" && <span className="sc-person-card-title">{title}</span>}
248
+ {title !== "" && !writesTitle && <span className="sc-person-card-title">{title}</span>}
249
249
  <span className="sc-person-card-note">
250
250
  {typeof person.handle === "string" && <>@{person.handle} · </>}
251
251
  {person.name !== null && <>{person.login} · </>}
@@ -490,6 +490,13 @@ export function PluginFrame(props: PluginFrameProps) {
490
490
  // sandbox so that the page it shows is a page as any.
491
491
  sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox"
492
492
  referrerPolicy="origin"
493
+ // A page's frame is as tall as its page, and the console's page is what scrolls: the frame
494
+ // never scrolls itself, whatever its document's overflow, as the HTML standard renders
495
+ // `scrolling="no"`. A frame shorter than its page, by the fraction of a pixel a rounding
496
+ // leaves or while its height catches up with a page that grew, would otherwise take the
497
+ // wheel over it, and Firefox holds the wheel to what it scrolled first. A page at the most
498
+ // a frame grows to scrolls the rest of itself inside.
499
+ scrolling={isWidget || height >= MAX_PAGE_HEIGHT ? undefined : "no"}
493
500
  // Loaded, with its scripts run: a page that never says it is ready is shown as it is.
494
501
  onLoad={drawnSoon}
495
502
  />