@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
@@ -0,0 +1,79 @@
1
+ // The Korean particles that take one of two forms by the sound a word ends in. A sentence of the
2
+ // Korean pack that carries a name, a title or a field writes the word with the form that fits,
3
+ // where it wrote both, "을(를)".
4
+
5
+ type Ending = "vowel" | "rieul" | "consonant";
6
+
7
+ /** How the Sino-Korean reading of a digit ends: 0 영, 1 일, 2 이, 3 삼, 4 사, 5 오, 6 육, 7 칠, 8 팔, 9 구. */
8
+ const DIGIT_ENDINGS: readonly Ending[] = [
9
+ "consonant",
10
+ "rieul",
11
+ "vowel",
12
+ "consonant",
13
+ "vowel",
14
+ "vowel",
15
+ "consonant",
16
+ "rieul",
17
+ "rieul",
18
+ "vowel",
19
+ ];
20
+
21
+ /**
22
+ * What closes a word without being read: a quote, a bracket, a full stop, a space, and the mark
23
+ * a question or a call ends with, since a decision's question is said by its last word.
24
+ */
25
+ const CLOSERS = /["'”’)\]}>.?!?!\s]+$/u;
26
+
27
+ /**
28
+ * How a word ends when it is read aloud. A Hangul syllable says so itself, a digit by its
29
+ * reading; a Latin word is read as Korean reads a loan word, by its last letters, which is a
30
+ * guess and is right for the common endings (`l`, `m`, `n`, `ng`, a short vowel before `b`, `k`,
31
+ * `p` or `t`, and `ck`). Anything else reads as ending in a vowel.
32
+ */
33
+ function endingOf(word: string): Ending {
34
+ const read = word.replace(CLOSERS, "");
35
+ const last = read.codePointAt(read.length - 1);
36
+ if (last === undefined) {
37
+ return "vowel";
38
+ }
39
+ if (last >= 0xac00 && last <= 0xd7a3) {
40
+ const final = (last - 0xac00) % 28;
41
+ return final === 0 ? "vowel" : final === 8 ? "rieul" : "consonant";
42
+ }
43
+ const letter = read.charAt(read.length - 1).toLowerCase();
44
+ if (letter >= "0" && letter <= "9") {
45
+ return DIGIT_ENDINGS[Number(letter)] ?? "vowel";
46
+ }
47
+ if (letter === "l") {
48
+ return "rieul";
49
+ }
50
+ if (letter === "m" || letter === "n") {
51
+ return "consonant";
52
+ }
53
+ const before = read.charAt(read.length - 2).toLowerCase();
54
+ if (letter === "g" && before === "n") {
55
+ return "consonant";
56
+ }
57
+ if (letter === "k" && before === "c") {
58
+ return "consonant";
59
+ }
60
+ if ("bkpt".includes(letter) && "aeiou".includes(before) && before !== "") {
61
+ return "consonant";
62
+ }
63
+ return "vowel";
64
+ }
65
+
66
+ /** The word as what is acted on: 을 after a consonant, 를 after a vowel. */
67
+ export function asObject(word: string): string {
68
+ return `${word}${endingOf(word) === "vowel" ? "를" : "을"}`;
69
+ }
70
+
71
+ /** The word as who or what acts: 이 after a consonant, 가 after a vowel. */
72
+ export function asSubject(word: string): string {
73
+ return `${word}${endingOf(word) === "vowel" ? "가" : "이"}`;
74
+ }
75
+
76
+ /** The word as what a thing becomes or goes through: 으로 after a consonant but ㄹ, 로 otherwise. */
77
+ export function asWay(word: string): string {
78
+ return `${word}${endingOf(word) === "consonant" ? "으로" : "로"}`;
79
+ }
@@ -0,0 +1,112 @@
1
+ // Written by `pnpm icons` from packages/console/icons, one SVG file a glyph. Do not edit it:
2
+ // change the glyph's file, or groups.json beside it, and run `pnpm icons` again.
3
+ // `pnpm check:icons` holds this module to that folder.
4
+ // biome-ignore-all format: written by a script, a glyph a line
5
+
6
+ /** The elements a glyph is made of. */
7
+ export type GlyphTag = "path" | "circle" | "ellipse" | "rect" | "line" | "polyline" | "polygon";
8
+
9
+ /** One shape of a glyph: an element by its name, with its measures on the grid. */
10
+ export type GlyphShape = readonly [tag: GlyphTag, measures: Readonly<Record<string, string>>];
11
+
12
+ /** The side of the grid every glyph is drawn on. */
13
+ export const ICON_GRID = 20;
14
+
15
+ /** Every glyph of the pack by its name: its shapes in the order they are drawn. */
16
+ export const GLYPHS = {
17
+ "admin": [["path", { d: "M10 2.75l6 2.25v4.5c0 3.75-2.5 6.5-6 7.75-3.5-1.25-6-4-6-7.75V5z" }], ["path", { d: "M7.5 10l1.75 1.75 3.25-3.5" }]],
18
+ "agent": [["rect", { x: "4", y: "6.5", width: "12", height: "10", rx: "2.5" }], ["path", { d: "M10 6.5v-3" }], ["path", { d: "M7.75 10.5v2M12.25 10.5v2" }]],
19
+ "approval": [["path", { d: "M8 3.5h4l-.75 6.5h3.25a1.5 1.5 0 0 1 1.5 1.5v2H4v-2A1.5 1.5 0 0 1 5.5 10h3.25z" }], ["path", { d: "M4 16.5h12" }]],
20
+ "arrow-down": [["path", { d: "M10 4v12M5 11l5 5 5-5" }]],
21
+ "arrow-left": [["path", { d: "M16 10H4M9 5l-5 5 5 5" }]],
22
+ "arrow-right": [["path", { d: "M4 10h12M11 5l5 5-5 5" }]],
23
+ "arrow-up": [["path", { d: "M10 16V4M5 9l5-5 5 5" }]],
24
+ "attachment": [["path", { d: "M15.5 9.5l-5.6 5.6a3.25 3.25 0 0 1-4.6-4.6l6-6a2.25 2.25 0 0 1 3.2 3.2l-5.9 5.9a1.1 1.1 0 0 1-1.6-1.6l5.3-5.3" }]],
25
+ "bell": [["path", { d: "M10 3.5A4.5 4.5 0 0 0 5.5 8v3.5L4 14.5h12l-1.5-3V8A4.5 4.5 0 0 0 10 3.5z" }], ["path", { d: "M8.25 16.75a1.9 1.9 0 0 0 3.5 0" }]],
26
+ "board": [["rect", { x: "3.5", y: "3.5", width: "3.5", height: "10", rx: "1" }], ["rect", { x: "8.25", y: "3.5", width: "3.5", height: "13", rx: "1" }], ["rect", { x: "13", y: "3.5", width: "3.5", height: "7", rx: "1" }]],
27
+ "bookmark": [["path", { d: "M5.5 3.5h9a1 1 0 0 1 1 1V17L10 13.25 4.5 17V4.5a1 1 0 0 1 1-1z" }]],
28
+ "calendar": [["rect", { x: "3.5", y: "4.5", width: "13", height: "12", rx: "2" }], ["path", { d: "M3.5 8.5h13M7 3v3M13 3v3" }]],
29
+ "chart": [["path", { d: "M3.5 16.5h13" }], ["path", { d: "M6 16.5V11M10 16.5V5M14 16.5V8.5" }]],
30
+ "check": [["path", { d: "M4 10.5l4 4 8-9" }]],
31
+ "chevron-down": [["path", { d: "M5 7.5l5 5 5-5" }]],
32
+ "chevron-left": [["path", { d: "M12.5 5l-5 5 5 5" }]],
33
+ "chevron-right": [["path", { d: "M7.5 5l5 5-5 5" }]],
34
+ "chevron-up": [["path", { d: "M5 12.5l5-5 5 5" }]],
35
+ "clock": [["circle", { cx: "10", cy: "10", r: "7" }], ["path", { d: "M10 6v4l2.75 1.75" }]],
36
+ "close": [["path", { d: "M5 5l10 10M15 5L5 15" }]],
37
+ "code": [["path", { d: "M7 6l-4 4 4 4M13 6l4 4-4 4" }], ["path", { d: "M11.5 4.5l-3 11" }]],
38
+ "collapse": [["path", { d: "M6 3.5l4 4 4-4M6 16.5l4-4 4 4" }]],
39
+ "comment": [["path", { d: "M4.5 4h11A1.5 1.5 0 0 1 17 5.5v7a1.5 1.5 0 0 1-1.5 1.5H9l-3.5 3v-3h-1A1.5 1.5 0 0 1 3 12.5v-7A1.5 1.5 0 0 1 4.5 4z" }]],
40
+ "copy": [["rect", { x: "3.5", y: "7", width: "9.5", height: "9.5", rx: "1.5" }], ["path", { d: "M7 7V5a1.5 1.5 0 0 1 1.5-1.5H15A1.5 1.5 0 0 1 16.5 5v6.5A1.5 1.5 0 0 1 15 13h-2" }]],
41
+ "customer": [["rect", { x: "2.75", y: "4.5", width: "14.5", height: "11", rx: "2" }], ["circle", { cx: "7.5", cy: "9", r: "1.75" }], ["path", { d: "M4.75 13.25a2.9 2.9 0 0 1 5.5 0" }], ["path", { d: "M12.5 8.5H15M12.5 11.5H15" }]],
42
+ "decision": [["path", { d: "M10 17v-5.5M10 11.5L4.5 6M10 11.5L15.5 6" }], ["path", { d: "M4.5 9.5V6H8M15.5 9.5V6H12" }]],
43
+ "desktop": [["rect", { x: "2.5", y: "3.5", width: "15", height: "10", rx: "1.5" }], ["path", { d: "M7 16.5h6M10 13.5v3" }]],
44
+ "document": [["path", { d: "M6 2.75h5.5l4 4v9a1.5 1.5 0 0 1-1.5 1.5H6a1.5 1.5 0 0 1-1.5-1.5V4.25A1.5 1.5 0 0 1 6 2.75z" }], ["path", { d: "M11.5 2.75v4h4" }], ["path", { d: "M7.5 10.5h5M7.5 13.5h5" }]],
45
+ "download": [["path", { d: "M10 3.5v9M6 8.5l4 4 4-4" }], ["path", { d: "M4 16.5h12" }]],
46
+ "edit": [["path", { d: "M13.5 3.5l3 3L7 16H4v-3z" }], ["path", { d: "M11.5 5.5l3 3" }]],
47
+ "error": [["circle", { cx: "10", cy: "10", r: "7" }], ["path", { d: "M7.5 7.5l5 5M12.5 7.5l-5 5" }]],
48
+ "expand": [["path", { d: "M6 7.5l4-4 4 4M6 12.5l4 4 4-4" }]],
49
+ "external-link": [["path", { d: "M8.5 4.5h-3A1.5 1.5 0 0 0 4 6v8.5A1.5 1.5 0 0 0 5.5 16H14a1.5 1.5 0 0 0 1.5-1.5v-3" }], ["path", { d: "M11.5 3.5h5v5M16.5 3.5l-7 7" }]],
50
+ "eye": [["path", { d: "M2.75 10c1.6-3.3 4.2-5.25 7.25-5.25S15.65 6.7 17.25 10c-1.6 3.3-4.2 5.25-7.25 5.25S4.35 13.3 2.75 10z" }], ["circle", { cx: "10", cy: "10", r: "2.25" }]],
51
+ "eye-off": [["path", { d: "M2.75 10c1.6-3.3 4.2-5.25 7.25-5.25S15.65 6.7 17.25 10c-1.6 3.3-4.2 5.25-7.25 5.25S4.35 13.3 2.75 10z" }], ["circle", { cx: "10", cy: "10", r: "2.25" }], ["path", { d: "M3.5 3.5l13 13" }]],
52
+ "file": [["path", { d: "M6 2.75h5.5l4 4v9a1.5 1.5 0 0 1-1.5 1.5H6a1.5 1.5 0 0 1-1.5-1.5V4.25A1.5 1.5 0 0 1 6 2.75z" }], ["path", { d: "M11.5 2.75v4h4" }]],
53
+ "filter": [["path", { d: "M3.5 4.5h13l-5 6v5l-3 1.5v-6.5z" }]],
54
+ "finance": [["rect", { x: "2.75", y: "5.5", width: "14.5", height: "9", rx: "1.5" }], ["circle", { cx: "10", cy: "10", r: "2.25" }], ["path", { d: "M5.5 10h.01M14.5 10h.01" }]],
55
+ "flag": [["path", { d: "M5 17V3.5M5 4.5h9.5l-2 3.25 2 3.25H5" }]],
56
+ "folder": [["path", { d: "M3 6a1.5 1.5 0 0 1 1.5-1.5h3.25l1.75 2h6A1.5 1.5 0 0 1 17 8v6.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 14.5z" }]],
57
+ "globe": [["circle", { cx: "10", cy: "10", r: "7" }], ["path", { d: "M3 10h14" }], ["path", { d: "M10 3c2 2 3 4.4 3 7s-1 5-3 7c-2-2-3-4.4-3-7s1-5 3-7z" }]],
58
+ "goal": [["circle", { cx: "10", cy: "10", r: "7" }], ["circle", { cx: "10", cy: "10", r: "3.5" }], ["circle", { cx: "10", cy: "10", r: "0.5" }]],
59
+ "handheld": [["rect", { x: "5.5", y: "2.5", width: "9", height: "15", rx: "2" }], ["path", { d: "M9 14.75h2" }]],
60
+ "home": [["path", { d: "M3.5 9.25L10 3.5l6.5 5.75v6.25A1.5 1.5 0 0 1 15 17H5a1.5 1.5 0 0 1-1.5-1.5z" }], ["path", { d: "M8 17v-4.5h4V17" }]],
61
+ "image": [["rect", { x: "3", y: "4", width: "14", height: "12", rx: "2" }], ["circle", { cx: "7.25", cy: "8", r: "1.25" }], ["path", { d: "M3.5 14l3.75-3.5 2.75 2.5 2.5-2.25 4 3.75" }]],
62
+ "info": [["circle", { cx: "10", cy: "10", r: "7" }], ["path", { d: "M10 9.25v4.25" }], ["path", { d: "M10 6.5h.01" }]],
63
+ "key": [["circle", { cx: "6.5", cy: "13.5", r: "3.25" }], ["path", { d: "M8.8 11.2l7.7-7.7M14.5 5.5l2 2M12 8l1.75 1.75" }]],
64
+ "leave": [["circle", { cx: "10", cy: "10", r: "3.25" }], ["path", { d: "M10 3v1.5M10 15.5V17M3 10h1.5M15.5 10H17" }], ["path", { d: "M5.05 5.05l1.06 1.06M13.89 13.89l1.06 1.06M5.05 14.95l1.06-1.06M13.89 6.11l1.06-1.06" }]],
65
+ "link": [["path", { d: "M8.5 11.5a3.25 3.25 0 0 0 4.6 0l2.5-2.5A3.25 3.25 0 0 0 11 4.4l-1 1" }], ["path", { d: "M11.5 8.5a3.25 3.25 0 0 0-4.6 0L4.4 11A3.25 3.25 0 0 0 9 15.6l1-1" }]],
66
+ "list": [["path", { d: "M7.5 5.5h9M7.5 10h9M7.5 14.5h9" }], ["path", { d: "M3.75 5.5h.01M3.75 10h.01M3.75 14.5h.01" }]],
67
+ "lock": [["rect", { x: "4.5", y: "9", width: "11", height: "8", rx: "2" }], ["path", { d: "M7 9V6.5a3 3 0 0 1 6 0V9" }]],
68
+ "mail": [["rect", { x: "2.75", y: "4.5", width: "14.5", height: "11", rx: "2" }], ["path", { d: "M3.25 6l6.75 5 6.75-5" }]],
69
+ "messenger": [["path", { d: "M3 5.5A1.5 1.5 0 0 1 4.5 4h7A1.5 1.5 0 0 1 13 5.5v4a1.5 1.5 0 0 1-1.5 1.5H7l-2.5 2.25V11A1.5 1.5 0 0 1 3 9.5z" }], ["path", { d: "M15.5 8A1.5 1.5 0 0 1 17 9.5v4a1.5 1.5 0 0 1-1.5 1.5v2.25L13 15H9.5" }]],
70
+ "minus": [["path", { d: "M4 10h12" }]],
71
+ "more": [["circle", { cx: "4.5", cy: "10", r: "0.75" }], ["circle", { cx: "10", cy: "10", r: "0.75" }], ["circle", { cx: "15.5", cy: "10", r: "0.75" }]],
72
+ "more-vertical": [["circle", { cx: "10", cy: "4.5", r: "0.75" }], ["circle", { cx: "10", cy: "10", r: "0.75" }], ["circle", { cx: "10", cy: "15.5", r: "0.75" }]],
73
+ "notice": [["path", { d: "M3 8.5v3a1 1 0 0 0 1 1h2.5l6.5 3.25V4.25L6.5 7.5H4a1 1 0 0 0-1 1z" }], ["path", { d: "M6.5 12.5l.75 4h2l-.75-3" }], ["path", { d: "M15.75 8.25a2.5 2.5 0 0 1 0 3.5" }]],
74
+ "pack": [["path", { d: "M10 2.75l6.5 3.5v7.5L10 17.25l-6.5-3.5v-7.5z" }], ["path", { d: "M3.5 6.25l6.5 3.5 6.5-3.5M10 9.75v7.5" }]],
75
+ "people": [["circle", { cx: "7.25", cy: "7", r: "2.75" }], ["path", { d: "M2.5 16.5a4.75 4.75 0 0 1 9.5 0" }], ["circle", { cx: "13.75", cy: "7.75", r: "2.25" }], ["path", { d: "M13.75 12.5a4 4 0 0 1 3.75 4" }]],
76
+ "person": [["circle", { cx: "10", cy: "6.5", r: "3" }], ["path", { d: "M4 17a6 5.25 0 0 1 12 0" }]],
77
+ "plugin": [["path", { d: "M7 2.75v4M13 2.75v4" }], ["path", { d: "M5 6.75h10v3a5 5 0 0 1-10 0z" }], ["path", { d: "M10 14.75v2.5" }]],
78
+ "plus": [["path", { d: "M10 4v12M4 10h12" }]],
79
+ "project": [["rect", { x: "3", y: "6.5", width: "14", height: "10", rx: "2" }], ["path", { d: "M7.5 6.5V5A1.5 1.5 0 0 1 9 3.5h2A1.5 1.5 0 0 1 12.5 5v1.5" }], ["path", { d: "M3 11h14" }]],
80
+ "refresh": [["path", { d: "M4 10a6 6 0 0 1 10.5-4" }], ["path", { d: "M14.75 2.75v3.5h-3.5" }], ["path", { d: "M16 10a6 6 0 0 1-10.5 4" }], ["path", { d: "M5.25 17.25v-3.5h3.5" }]],
81
+ "run": [["circle", { cx: "10", cy: "10", r: "7" }], ["path", { d: "M8.5 7.25l4.25 2.75-4.25 2.75z" }]],
82
+ "search": [["circle", { cx: "9", cy: "9", r: "5.25" }], ["path", { d: "M12.75 12.75l4 4" }]],
83
+ "send": [["path", { d: "M17 3l-5.25 14-3-5.75L3 8.25z" }], ["path", { d: "M17 3l-8.25 8.25" }]],
84
+ "server": [["rect", { x: "3", y: "3.5", width: "14", height: "5.5", rx: "1.5" }], ["rect", { x: "3", y: "11", width: "14", height: "5.5", rx: "1.5" }], ["path", { d: "M6 6.25h.01M6 13.75h.01" }]],
85
+ "settings": [["path", { d: "M8.72 4.65L9.03 2.81L10.97 2.81L11.28 4.65L12.87 5.31L14.4 4.24L15.76 5.6L14.69 7.13L15.35 8.72L17.19 9.03L17.19 10.97L15.35 11.28L14.69 12.87L15.76 14.4L14.4 15.76L12.87 14.69L11.28 15.35L10.97 17.19L9.03 17.19L8.72 15.35L7.13 14.69L5.6 15.76L4.24 14.4L5.31 12.87L4.65 11.28L2.81 10.97L2.81 9.03L4.65 8.72L5.31 7.13L4.24 5.6L5.6 4.24L7.13 5.31z" }], ["circle", { cx: "10", cy: "10", r: "2.25" }]],
86
+ "skill": [["path", { d: "M10 5.5C8.5 4.25 6.5 3.75 3.5 3.75v11c3 0 5 .5 6.5 1.75 1.5-1.25 3.5-1.75 6.5-1.75v-11c-3 0-5 .5-6.5 1.75z" }], ["path", { d: "M10 5.5v11" }]],
87
+ "sort": [["path", { d: "M6.5 16V4M3.5 7l3-3 3 3" }], ["path", { d: "M13.5 4v12M10.5 13l3 3 3-3" }]],
88
+ "spark": [["path", { d: "M10 3.5q.75 5.25 6 6-5.25.75-6 6-.75-5.25-6-6 5.25-.75 6-6z" }]],
89
+ "star": [["path", { d: "M10 3.25L11.88 7.91L16.9 8.26L13.04 11.49L14.26 16.37L10 13.7L5.74 16.37L6.96 11.49L3.1 8.26L8.12 7.91z" }]],
90
+ "success": [["circle", { cx: "10", cy: "10", r: "7" }], ["path", { d: "M6.75 10.25L9 12.5l4.25-4.75" }]],
91
+ "task": [["rect", { x: "3.5", y: "3.5", width: "13", height: "13", rx: "2.5" }], ["path", { d: "M7 10.25l2.25 2.25 4-4.5" }]],
92
+ "team": [["rect", { x: "7.5", y: "3", width: "5", height: "4", rx: "1" }], ["rect", { x: "3", y: "13", width: "5", height: "4", rx: "1" }], ["rect", { x: "12", y: "13", width: "5", height: "4", rx: "1" }], ["path", { d: "M10 7v3M5.5 13v-1.5A1.5 1.5 0 0 1 7 10h6a1.5 1.5 0 0 1 1.5 1.5V13" }]],
93
+ "token": [["rect", { x: "2.75", y: "6.5", width: "14.5", height: "7", rx: "3.5" }], ["path", { d: "M6.5 10h.01M10 10h.01M13.5 10h.01" }]],
94
+ "trash": [["path", { d: "M3.5 5.5h13" }], ["path", { d: "M8 5.5V4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.5" }], ["path", { d: "M5 5.5l.75 10a1.5 1.5 0 0 0 1.5 1.5h5.5a1.5 1.5 0 0 0 1.5-1.5l.75-10" }], ["path", { d: "M8.5 9v5M11.5 9v5" }]],
95
+ "unlock": [["rect", { x: "4.5", y: "9", width: "11", height: "8", rx: "2" }], ["path", { d: "M7 9V6.5A3 3 0 0 1 12.6 5" }]],
96
+ "upload": [["path", { d: "M10 12.5v-9M6 7.5l4-4 4 4" }], ["path", { d: "M4 16.5h12" }]],
97
+ "video": [["rect", { x: "2.75", y: "5", width: "10.5", height: "10", rx: "2" }], ["path", { d: "M13.25 8.75l4-2.25v7l-4-2.25" }]],
98
+ "warning": [["path", { d: "M10 3.5L17.25 16H2.75z" }], ["path", { d: "M10 8.5v3.5" }], ["path", { d: "M10 14h.01" }]],
99
+ } as const satisfies Readonly<Record<string, readonly GlyphShape[]>>;
100
+
101
+ /** The groups the glyphs stand in, in the order a picker and the catalogue show them. */
102
+ export const ICON_GROUPS = [
103
+ { key: "actions", icons: ["plus", "minus", "close", "check", "edit", "trash", "copy", "search", "filter", "sort", "refresh", "download", "upload", "external-link", "send", "more", "more-vertical"] },
104
+ { key: "directions", icons: ["arrow-up", "arrow-down", "arrow-left", "arrow-right", "chevron-up", "chevron-down", "chevron-left", "chevron-right", "collapse", "expand"] },
105
+ { key: "people", icons: ["person", "people", "agent", "team", "admin"] },
106
+ { key: "work", icons: ["task", "decision", "run", "goal", "calendar", "clock", "flag", "board", "list", "chart"] },
107
+ { key: "files", icons: ["document", "file", "folder", "image", "video", "attachment", "link", "comment", "code", "mail", "bookmark"] },
108
+ { key: "states", icons: ["info", "warning", "error", "success", "lock", "unlock", "eye", "eye-off", "bell", "star", "spark"] },
109
+ { key: "tools", icons: ["settings", "plugin", "key", "token", "skill", "pack", "home", "project", "globe"] },
110
+ { key: "devices", icons: ["desktop", "handheld", "server"] },
111
+ { key: "plugins", icons: ["leave", "notice", "approval", "messenger", "finance", "customer"] },
112
+ ] as const;
@@ -0,0 +1,195 @@
1
+ import { GLYPHS, type GlyphShape, ICON_GRID, ICON_GROUPS } from "./glyphs.js";
2
+
3
+ // The icon pack (ADR-0142): the glyphs the console's pages, a plugin's pages and a prototype
4
+ // draw by name, so that an icon is not chosen or drawn anew wherever one is needed. A glyph is a
5
+ // file under `packages/console/icons`, drawn on one grid with one stroke, and `glyphs.ts` beside
6
+ // this module is what `pnpm icons` writes from that folder: shapes as data, which `Icon` draws as
7
+ // elements. Nothing here reads a glyph from anywhere else, and a name is checked against the
8
+ // pack wherever one arrives from outside.
9
+
10
+ export { GLYPHS, type GlyphShape, type GlyphTag, ICON_GRID, ICON_GROUPS } from "./glyphs.js";
11
+
12
+ /** The name of a glyph of the pack. */
13
+ export type IconName = keyof typeof GLYPHS;
14
+
15
+ /** Every glyph of the pack by name, in the order of the names. */
16
+ export const ICON_NAMES = Object.keys(GLYPHS) as readonly IconName[];
17
+
18
+ /** Whether a value names a glyph of the pack. */
19
+ export function isIconName(value: unknown): value is IconName {
20
+ return typeof value === "string" && Object.hasOwn(GLYPHS, value);
21
+ }
22
+
23
+ /** A group of the pack: its key, and its glyphs in the order they are shown. */
24
+ export interface IconGroup {
25
+ readonly key: string;
26
+ readonly icons: readonly IconName[];
27
+ }
28
+
29
+ /** The groups the glyphs stand in, in the order a picker and the catalogue show them. */
30
+ export const ICON_GROUP_LIST: readonly IconGroup[] = ICON_GROUPS;
31
+
32
+ /**
33
+ * The glyphs a person's words find, in the order the pack shows them, those whose name begins
34
+ * with the words first. Every word typed has to be in a glyph's name or among the words a
35
+ * language pack gives it (`icons.words`), whatever its case. Words that are empty find every
36
+ * glyph.
37
+ */
38
+ export function findIcons(
39
+ query: string,
40
+ words: Readonly<Record<string, string>> = {},
41
+ ): readonly IconName[] {
42
+ const all = ICON_GROUP_LIST.flatMap((group) => group.icons);
43
+ const terms = query.toLowerCase().split(/\s+/).filter(Boolean);
44
+ if (terms.length === 0) {
45
+ return all;
46
+ }
47
+ const whole = terms.join(" ");
48
+ const found = all.filter((name) => {
49
+ const spoken = Object.hasOwn(words, name) ? (words[name] ?? "") : "";
50
+ const hay = `${name} ${name.replaceAll("-", " ")} ${spoken}`.toLowerCase();
51
+ return terms.every((term) => hay.includes(term));
52
+ });
53
+ const begins = (name: string): boolean =>
54
+ name.startsWith(whole) || name.replaceAll("-", " ").startsWith(whole);
55
+ return [...found.filter(begins), ...found.filter((name) => !begins(name))];
56
+ }
57
+
58
+ /**
59
+ * Where a choice stands among a picker's choices while nothing is searched: none first, then
60
+ * the glyphs in the order the pack shows them. A picker opens with the choice in hand there.
61
+ */
62
+ export function iconPlace(value: IconName | null): number {
63
+ return value === null ? 0 : 1 + ICON_GROUP_LIST.flatMap((group) => group.icons).indexOf(value);
64
+ }
65
+
66
+ /** One section of a picker's choices: how many it holds, and how many stand on a row. */
67
+ export interface IconSection {
68
+ readonly size: number;
69
+ readonly columns: number;
70
+ }
71
+
72
+ /**
73
+ * Where a key moves among a picker's choices, which stand in sections one under the other, each
74
+ * a grid of its own: the place of the choice the key leads to, counted through the sections;
75
+ * `-1` for a key that leads up out of the first row, back to the field the words are typed in;
76
+ * nothing for a key that moves nowhere. `at` is where the choice in hand stands, `-1` in the
77
+ * field. Left and right go through the choices in order; up and down keep the column, into the
78
+ * section above or below where a section ends, and to its last choice where a row is short.
79
+ */
80
+ export function iconStep(
81
+ sections: readonly IconSection[],
82
+ at: number,
83
+ key: string,
84
+ ): number | undefined {
85
+ const filled = sections.filter((section) => section.size > 0);
86
+ const total = filled.reduce((sum, section) => sum + section.size, 0);
87
+ if (total === 0) {
88
+ return undefined;
89
+ }
90
+ if (key === "Home") {
91
+ return 0;
92
+ }
93
+ if (key === "End") {
94
+ return total - 1;
95
+ }
96
+ if (at < 0) {
97
+ return key === "ArrowDown" ? 0 : undefined;
98
+ }
99
+ if (key === "ArrowRight") {
100
+ return at + 1 < total ? at + 1 : undefined;
101
+ }
102
+ if (key === "ArrowLeft") {
103
+ return at > 0 ? at - 1 : undefined;
104
+ }
105
+ if (key !== "ArrowDown" && key !== "ArrowUp") {
106
+ return undefined;
107
+ }
108
+ let first = 0;
109
+ for (const [index, section] of filled.entries()) {
110
+ if (at >= first + section.size) {
111
+ first += section.size;
112
+ continue;
113
+ }
114
+ const columns = Math.max(1, section.columns);
115
+ const place = at - first;
116
+ const column = place % columns;
117
+ if (key === "ArrowDown") {
118
+ const lastRow = Math.floor((section.size - 1) / columns);
119
+ if (Math.floor(place / columns) < lastRow) {
120
+ return first + Math.min(place + columns, section.size - 1);
121
+ }
122
+ const below = filled[index + 1];
123
+ return below === undefined
124
+ ? undefined
125
+ : first + section.size + Math.min(column, below.size - 1, Math.max(1, below.columns) - 1);
126
+ }
127
+ if (place >= columns) {
128
+ return at - columns;
129
+ }
130
+ const above = filled[index - 1];
131
+ if (above === undefined) {
132
+ return -1;
133
+ }
134
+ const aboveColumns = Math.max(1, above.columns);
135
+ const lastRowStart = Math.floor((above.size - 1) / aboveColumns) * aboveColumns;
136
+ return first - above.size + Math.min(lastRowStart + column, above.size - 1);
137
+ }
138
+ return undefined;
139
+ }
140
+
141
+ /** The sides a glyph is drawn at, by the name of its size, as the stylesheet has them. */
142
+ const SIZE_CLASSES = {
143
+ xs: "sc-icon-xs",
144
+ sm: "sc-icon-sm",
145
+ md: "sc-icon-md",
146
+ lg: "sc-icon-lg",
147
+ } as const;
148
+
149
+ /**
150
+ * A glyph as an element, for a page that is not React's: what a plugin's bundle or a prototype
151
+ * puts where it wants an icon (`node.append(iconElement("calendar"))`). Drawn as `Icon` draws
152
+ * it, from the pack's data and never from markup, in the colour of the text around it; hidden
153
+ * from a screen reader unless it is given a label. `doc` is the page's document.
154
+ */
155
+ export function iconElement(
156
+ name: IconName,
157
+ options: {
158
+ readonly size?: keyof typeof SIZE_CLASSES | undefined;
159
+ readonly label?: string | undefined;
160
+ } = {},
161
+ doc: Document = document,
162
+ ): SVGSVGElement {
163
+ const space = "http://www.w3.org/2000/svg";
164
+ const svg = doc.createElementNS(space, "svg");
165
+ const says: Readonly<Record<string, string>> = {
166
+ class: `sc-icon ${SIZE_CLASSES[options.size ?? "md"]}`,
167
+ viewBox: `0 0 ${ICON_GRID} ${ICON_GRID}`,
168
+ width: String(ICON_GRID),
169
+ height: String(ICON_GRID),
170
+ fill: "none",
171
+ stroke: "currentColor",
172
+ "stroke-width": "1.5",
173
+ "stroke-linecap": "round",
174
+ "stroke-linejoin": "round",
175
+ focusable: "false",
176
+ };
177
+ for (const [attribute, value] of Object.entries(says)) {
178
+ svg.setAttribute(attribute, value);
179
+ }
180
+ if (options.label !== undefined && options.label.length > 0) {
181
+ svg.setAttribute("role", "img");
182
+ svg.setAttribute("aria-label", options.label);
183
+ } else {
184
+ svg.setAttribute("aria-hidden", "true");
185
+ }
186
+ const shapes: readonly GlyphShape[] = isIconName(name) ? GLYPHS[name] : [];
187
+ for (const [tag, measures] of shapes) {
188
+ const shape = doc.createElementNS(space, tag);
189
+ for (const [attribute, value] of Object.entries(measures)) {
190
+ shape.setAttribute(attribute, value);
191
+ }
192
+ svg.append(shape);
193
+ }
194
+ return svg;
195
+ }
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  // a script that wants none of the pages. The styles are `@skillcdn/console/console.css`.
5
5
 
6
6
  export * from "./api.js";
7
+ export * from "./charts.js";
7
8
  export {
8
9
  AgentAccountForm,
9
10
  type AgentAccountFormProps,
@@ -38,6 +39,29 @@ export {
38
39
  workloadOf,
39
40
  } from "./components/calendar.js";
40
41
  export { CategoryList, type CategoryListProps } from "./components/categories.js";
42
+ export {
43
+ BarList,
44
+ type BarListProps,
45
+ type BarRow,
46
+ Chart,
47
+ type ChartProps,
48
+ type ChartSeries,
49
+ type FigureRow,
50
+ FigureTable,
51
+ type FigureTableProps,
52
+ Legend,
53
+ type LegendItem,
54
+ type LegendProps,
55
+ ShareBar,
56
+ type ShareBarProps,
57
+ type SharePartItem,
58
+ Sparkline,
59
+ type SparklineProps,
60
+ Stat,
61
+ type StatChange,
62
+ type StatProps,
63
+ Stats,
64
+ } from "./components/charts.js";
41
65
  export {
42
66
  CommentCard,
43
67
  type CommentCardProps,
@@ -67,6 +91,35 @@ export {
67
91
  DecisionLog,
68
92
  type DecisionLogProps,
69
93
  } from "./components/decision-list.js";
94
+ export {
95
+ DESK_VIEWS,
96
+ DeskArchive,
97
+ type DeskArchiveProps,
98
+ DeskFiguresView,
99
+ type DeskFiguresViewProps,
100
+ DeskStanding,
101
+ type DeskStandingProps,
102
+ type DeskView,
103
+ DeskViews,
104
+ DeskWords,
105
+ type DeskWordsProps,
106
+ } from "./components/desk.js";
107
+ export {
108
+ DeskCollectionResults,
109
+ type DeskCollectionResultsProps,
110
+ DeskCollections,
111
+ type DeskCollectionsProps,
112
+ DeskCollectionView,
113
+ type DeskCollectionViewProps,
114
+ type DeskFile,
115
+ DeskItemView,
116
+ type DeskItemViewProps,
117
+ DeskNoRecords,
118
+ DeskRecordCrumbs,
119
+ DeskRecordProblems,
120
+ metricWords,
121
+ ratioWords,
122
+ } from "./components/desk-records.js";
70
123
  export {
71
124
  DocumentCrumbs,
72
125
  DocumentFiles,
@@ -100,6 +153,13 @@ export {
100
153
  ProjectTile,
101
154
  type ProjectTileProps,
102
155
  } from "./components/home.js";
156
+ export {
157
+ Icon,
158
+ IconPicker,
159
+ type IconPickerProps,
160
+ type IconProps,
161
+ type IconSize,
162
+ } from "./components/icon.js";
103
163
  export { Markdown, type MarkdownProps } from "./components/markdown.js";
104
164
  export { MyDecisions, type MyDecisionsProps } from "./components/my-decisions.js";
105
165
  export {
@@ -319,6 +379,71 @@ export {
319
379
  weekdays,
320
380
  weekOf,
321
381
  } from "./dates.js";
382
+ export {
383
+ DESK_ENDINGS,
384
+ DESK_PROJECTS,
385
+ DESK_RUNS,
386
+ DESK_STATES,
387
+ DESK_TASKS,
388
+ DESK_WEEKS,
389
+ type DeskCategory,
390
+ type DeskEnding,
391
+ type DeskFigures,
392
+ type DeskHistory,
393
+ type DeskProject,
394
+ type DeskReader,
395
+ type DeskRun,
396
+ type DeskTask,
397
+ type DeskWeek,
398
+ figuresOf,
399
+ readHistory,
400
+ readOpenRuns,
401
+ standingOf,
402
+ withHistory,
403
+ } from "./desk.js";
404
+ export {
405
+ DESK_PAGE_KEY,
406
+ DeskPage,
407
+ type DeskPageProps,
408
+ deskHref,
409
+ deskPage,
410
+ deskViewOf,
411
+ } from "./desk-page.js";
412
+ export {
413
+ bestItems,
414
+ type CollectionRecords,
415
+ type CollectionResults,
416
+ type CollectionSummary,
417
+ type FieldValue,
418
+ fieldsOf,
419
+ figuresOfRows,
420
+ filePath,
421
+ fileSrc,
422
+ httpsLink,
423
+ itemResults,
424
+ lastMadeOn,
425
+ type MetricFigure,
426
+ previewPath,
427
+ previewSrc,
428
+ probeFile,
429
+ type RatioFigure,
430
+ RECORD_BEST,
431
+ RECORD_PREVIEW_KINDS,
432
+ RECORD_WEEKS,
433
+ RECORDS_BASE,
434
+ type RecordFileState,
435
+ type RecordProblem,
436
+ type RecordsAddress,
437
+ type RecordsOverview,
438
+ type RecordsReader,
439
+ readCollection,
440
+ readDeskRecords,
441
+ recordsAddressOf,
442
+ recordsQuery,
443
+ resultsOf,
444
+ statusCounts,
445
+ } from "./desk-records.js";
446
+ export { DeskRecords, type DeskRecordsProps } from "./desk-records-page.js";
322
447
  export { DocsPage, type DocsPageProps } from "./docs-page.js";
323
448
  export {
324
449
  createGlanceReader,
package/src/limits.ts CHANGED
@@ -68,6 +68,13 @@ export const MAX_SIGNAL_KEY_LENGTH = 200;
68
68
  /** A line a runner says of its machine, its product, a model or a level of effort; and how many of those a product offers. */
69
69
  export const MAX_RUNNER_LINE_LENGTH = 120;
70
70
  export const MAX_RUNNER_OFFERS = 50;
71
+ /** How many wake sources a runner says it keeps beside the console's own. */
72
+ export const MAX_RUNNER_SOURCES = 10;
73
+ /** How many wakes an agent account keeps for itself for later at a time, and how far ahead one may be (ADR-0145). */
74
+ export const MAX_OWN_WAKES = 20;
75
+ export const MAX_OWN_WAKE_DAYS = 31;
76
+ /** What a wake to come is called where the account names none. */
77
+ export const OWN_WAKE_KEY = "wake";
71
78
  /** How many signals one page of an account's record carries when none is asked for, and the most it may. */
72
79
  /** How many files a supervisor sends with one tell, pictures among them, together within `MAX_FILE_BYTES`. */
73
80
  export const MAX_SIGNAL_ATTACHMENTS = 8;
@@ -86,6 +93,19 @@ export const MAX_TRANSCRIPT_FACT_LENGTH = 1000;
86
93
  /** How many pictures one event carries, and how many a session hands in within a minute. */
87
94
  export const MAX_TRANSCRIPT_ATTACHMENTS = 8;
88
95
  export const MAX_TRANSCRIPT_FILES_PER_MINUTE = 60;
96
+ /**
97
+ * What an agent account's runner writes in an hour, counted over the hour before each write
98
+ * (ADR-0132): the events one session's transcript takes, the sessions an account begins, the
99
+ * wakes its runner raises itself, and the changes of its state the workspace's feed is told
100
+ * by its runner. Each far above what work is, and what a product that fails again and again,
101
+ * or a wake source that repeats itself, meets.
102
+ */
103
+ export const MAX_TRANSCRIPT_EVENTS_PER_HOUR = 60_000;
104
+ export const MAX_AGENT_SESSIONS_PER_HOUR = 60;
105
+ export const MAX_RUNNER_WAKES_PER_HOUR = 600;
106
+ /** How many wakes an agent account raises for itself within an hour, those kept for later among them when they are raised (ADR-0145). */
107
+ export const MAX_OWN_WAKES_PER_HOUR = 30;
108
+ export const MAX_AGENT_STATE_CHANGES_PER_HOUR = 20;
89
109
  /** How many events one page of a session carries when none is asked for, and the most it may. */
90
110
  export const TRANSCRIPT_PAGE_LIMIT = 100;
91
111
  export const MAX_TRANSCRIPT_PAGE_LIMIT = 500;
package/src/marks.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { type IconName, isIconName } from "./icons/index.js";
1
2
  import { COLOR_NAMES, type ColorName } from "./vocabulary.js";
2
3
 
3
4
  // A project's mark: a symbol on a colour, so that projects tell apart at a glance. A project
@@ -38,3 +39,14 @@ export function projectSymbolOf(project: {
38
39
  const first = [...project.name.trim()][0];
39
40
  return first === undefined ? "?" : first.toUpperCase();
40
41
  }
42
+
43
+ /**
44
+ * The icon of the pack a project's mark shows in its symbol's place (ADR-0142), or nothing: a
45
+ * project that names none, a console older than the field, and a name this pack does not hold,
46
+ * as one a newer console's pack gave, all leave the mark its symbol.
47
+ */
48
+ export function projectGlyphOf(project: {
49
+ readonly glyph?: string | null | undefined;
50
+ }): IconName | undefined {
51
+ return isIconName(project.glyph) ? project.glyph : undefined;
52
+ }