@skillcdn/console 0.5.0 → 0.5.1

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 (345) hide show
  1. package/README.md +68 -11
  2. package/SKILLCDN.md +3 -3
  3. package/dist/agent-page.d.ts.map +1 -1
  4. package/dist/agent-page.js +3 -2
  5. package/dist/agent-page.js.map +1 -1
  6. package/dist/api.d.ts +7 -6
  7. package/dist/api.d.ts.map +1 -1
  8. package/dist/api.js +6 -5
  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 +26 -2
  15. package/dist/cli/cli.d.ts.map +1 -1
  16. package/dist/cli/cli.js +1304 -383
  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 +65 -8
  31. package/dist/cli/format.d.ts.map +1 -1
  32. package/dist/cli/format.js +242 -37
  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 +92 -54
  37. package/dist/cli/help.js.map +1 -1
  38. package/dist/cli/main.js +76 -2
  39. package/dist/cli/main.js.map +1 -1
  40. package/dist/cli/pack.d.ts +69 -60
  41. package/dist/cli/pack.d.ts.map +1 -1
  42. package/dist/cli/pack.js +241 -270
  43. package/dist/cli/pack.js.map +1 -1
  44. package/dist/cli/plugin-check.d.ts +42 -0
  45. package/dist/cli/plugin-check.d.ts.map +1 -1
  46. package/dist/cli/plugin-check.js +221 -36
  47. package/dist/cli/plugin-check.js.map +1 -1
  48. package/dist/cli/plugin-cli.d.ts +6 -1
  49. package/dist/cli/plugin-cli.d.ts.map +1 -1
  50. package/dist/cli/plugin-cli.js +21 -4
  51. package/dist/cli/plugin-cli.js.map +1 -1
  52. package/dist/cli/plugin-main.js +1 -0
  53. package/dist/cli/plugin-main.js.map +1 -1
  54. package/dist/cli/serve.d.ts +33 -1
  55. package/dist/cli/serve.d.ts.map +1 -1
  56. package/dist/cli/serve.js +252 -3
  57. package/dist/cli/serve.js.map +1 -1
  58. package/dist/client.d.ts +48 -9
  59. package/dist/client.d.ts.map +1 -1
  60. package/dist/client.js +72 -80
  61. package/dist/client.js.map +1 -1
  62. package/dist/components/agent-page.d.ts +64 -1
  63. package/dist/components/agent-page.d.ts.map +1 -1
  64. package/dist/components/agent-page.js +244 -96
  65. package/dist/components/agent-page.js.map +1 -1
  66. package/dist/components/charts.d.ts +157 -0
  67. package/dist/components/charts.d.ts.map +1 -0
  68. package/dist/components/charts.js +182 -0
  69. package/dist/components/charts.js.map +1 -0
  70. package/dist/components/desk-records.d.ts +102 -0
  71. package/dist/components/desk-records.d.ts.map +1 -0
  72. package/dist/components/desk-records.js +221 -0
  73. package/dist/components/desk-records.js.map +1 -0
  74. package/dist/components/desk.d.ts +85 -0
  75. package/dist/components/desk.d.ts.map +1 -0
  76. package/dist/components/desk.js +135 -0
  77. package/dist/components/desk.js.map +1 -0
  78. package/dist/components/event-feed.d.ts.map +1 -1
  79. package/dist/components/event-feed.js +4 -1
  80. package/dist/components/event-feed.js.map +1 -1
  81. package/dist/components/home.d.ts.map +1 -1
  82. package/dist/components/home.js +4 -2
  83. package/dist/components/home.js.map +1 -1
  84. package/dist/components/plugin-settings.d.ts.map +1 -1
  85. package/dist/components/plugin-settings.js +54 -3
  86. package/dist/components/plugin-settings.js.map +1 -1
  87. package/dist/components/projects.d.ts.map +1 -1
  88. package/dist/components/projects.js +27 -7
  89. package/dist/components/projects.js.map +1 -1
  90. package/dist/components/rules.d.ts +8 -10
  91. package/dist/components/rules.d.ts.map +1 -1
  92. package/dist/components/rules.js +35 -13
  93. package/dist/components/rules.js.map +1 -1
  94. package/dist/components/setup.d.ts +9 -3
  95. package/dist/components/setup.d.ts.map +1 -1
  96. package/dist/components/setup.js +10 -4
  97. package/dist/components/setup.js.map +1 -1
  98. package/dist/console.css +677 -7
  99. package/dist/console.d.ts +5 -0
  100. package/dist/console.d.ts.map +1 -1
  101. package/dist/console.js +14 -8
  102. package/dist/console.js.map +1 -1
  103. package/dist/data.d.ts.map +1 -1
  104. package/dist/data.js +32 -33
  105. package/dist/data.js.map +1 -1
  106. package/dist/desk-page.d.ts +38 -0
  107. package/dist/desk-page.d.ts.map +1 -0
  108. package/dist/desk-page.js +184 -0
  109. package/dist/desk-page.js.map +1 -0
  110. package/dist/desk-records-page.d.ts +18 -0
  111. package/dist/desk-records-page.d.ts.map +1 -0
  112. package/dist/desk-records-page.js +130 -0
  113. package/dist/desk-records-page.js.map +1 -0
  114. package/dist/desk-records.d.ts +247 -0
  115. package/dist/desk-records.d.ts.map +1 -0
  116. package/dist/desk-records.js +543 -0
  117. package/dist/desk-records.js.map +1 -0
  118. package/dist/desk.d.ts +122 -0
  119. package/dist/desk.d.ts.map +1 -0
  120. package/dist/desk.js +211 -0
  121. package/dist/desk.js.map +1 -0
  122. package/dist/feed-stream.d.ts +39 -0
  123. package/dist/feed-stream.d.ts.map +1 -0
  124. package/dist/feed-stream.js +117 -0
  125. package/dist/feed-stream.js.map +1 -0
  126. package/dist/home-tiles.d.ts +10 -3
  127. package/dist/home-tiles.d.ts.map +1 -1
  128. package/dist/home-tiles.js +54 -31
  129. package/dist/home-tiles.js.map +1 -1
  130. package/dist/i18n/en.d.ts +180 -5
  131. package/dist/i18n/en.d.ts.map +1 -1
  132. package/dist/i18n/en.js +184 -7
  133. package/dist/i18n/en.js.map +1 -1
  134. package/dist/i18n/ko.d.ts.map +1 -1
  135. package/dist/i18n/ko.js +169 -6
  136. package/dist/i18n/ko.js.map +1 -1
  137. package/dist/index.d.ts +8 -0
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +8 -0
  140. package/dist/index.js.map +1 -1
  141. package/dist/limits.d.ts +11 -0
  142. package/dist/limits.d.ts.map +1 -1
  143. package/dist/limits.js +11 -0
  144. package/dist/limits.js.map +1 -1
  145. package/dist/onboarding.d.ts +6 -0
  146. package/dist/onboarding.d.ts.map +1 -1
  147. package/dist/onboarding.js +3 -3
  148. package/dist/onboarding.js.map +1 -1
  149. package/dist/plugin/context.d.ts +42 -11
  150. package/dist/plugin/context.d.ts.map +1 -1
  151. package/dist/plugin/limits.d.ts +2 -0
  152. package/dist/plugin/limits.d.ts.map +1 -1
  153. package/dist/plugin/limits.js +2 -0
  154. package/dist/plugin/limits.js.map +1 -1
  155. package/dist/plugin/manifest.d.ts +13 -0
  156. package/dist/plugin/manifest.d.ts.map +1 -1
  157. package/dist/plugin/manifest.js +30 -3
  158. package/dist/plugin/manifest.js.map +1 -1
  159. package/dist/plugin/rest-schemas.d.ts +55 -0
  160. package/dist/plugin/rest-schemas.d.ts.map +1 -1
  161. package/dist/plugin/rest-schemas.js +37 -0
  162. package/dist/plugin/rest-schemas.js.map +1 -1
  163. package/dist/plugin/sandbox.d.ts.map +1 -1
  164. package/dist/plugin/sandbox.js +4 -1
  165. package/dist/plugin/sandbox.js.map +1 -1
  166. package/dist/plugin/testing.d.ts +6 -2
  167. package/dist/plugin/testing.d.ts.map +1 -1
  168. package/dist/plugin/testing.js +52 -10
  169. package/dist/plugin/testing.js.map +1 -1
  170. package/dist/plugin.d.ts +1 -1
  171. package/dist/plugin.d.ts.map +1 -1
  172. package/dist/plugin.js +1 -1
  173. package/dist/plugin.js.map +1 -1
  174. package/dist/records.d.ts +283 -0
  175. package/dist/records.d.ts.map +1 -0
  176. package/dist/records.js +543 -0
  177. package/dist/records.js.map +1 -0
  178. package/dist/routes.d.ts +3 -1
  179. package/dist/routes.d.ts.map +1 -1
  180. package/dist/routes.js +3 -1
  181. package/dist/routes.js.map +1 -1
  182. package/dist/rules.d.ts +30 -11
  183. package/dist/rules.d.ts.map +1 -1
  184. package/dist/rules.js +98 -45
  185. package/dist/rules.js.map +1 -1
  186. package/dist/runner/acp.d.ts +1 -1
  187. package/dist/runner/acp.d.ts.map +1 -1
  188. package/dist/runner/acp.js +31 -20
  189. package/dist/runner/acp.js.map +1 -1
  190. package/dist/runner/claude.d.ts +1 -1
  191. package/dist/runner/claude.d.ts.map +1 -1
  192. package/dist/runner/claude.js +85 -15
  193. package/dist/runner/claude.js.map +1 -1
  194. package/dist/runner/codex.d.ts +1 -1
  195. package/dist/runner/codex.d.ts.map +1 -1
  196. package/dist/runner/codex.js +19 -16
  197. package/dist/runner/codex.js.map +1 -1
  198. package/dist/runner/desk.d.ts +43 -2
  199. package/dist/runner/desk.d.ts.map +1 -1
  200. package/dist/runner/desk.js +166 -10
  201. package/dist/runner/desk.js.map +1 -1
  202. package/dist/runner/process.d.ts.map +1 -1
  203. package/dist/runner/process.js +11 -4
  204. package/dist/runner/process.js.map +1 -1
  205. package/dist/runner/redact.d.ts +39 -4
  206. package/dist/runner/redact.d.ts.map +1 -1
  207. package/dist/runner/redact.js +81 -5
  208. package/dist/runner/redact.js.map +1 -1
  209. package/dist/runner/runner.d.ts +15 -1
  210. package/dist/runner/runner.d.ts.map +1 -1
  211. package/dist/runner/runner.js +231 -33
  212. package/dist/runner/runner.js.map +1 -1
  213. package/dist/runner/task-scheduler.d.ts +20 -0
  214. package/dist/runner/task-scheduler.d.ts.map +1 -1
  215. package/dist/runner/task-scheduler.js +34 -4
  216. package/dist/runner/task-scheduler.js.map +1 -1
  217. package/dist/runner/types.d.ts +36 -1
  218. package/dist/runner/types.d.ts.map +1 -1
  219. package/dist/runner/types.js +17 -0
  220. package/dist/runner/types.js.map +1 -1
  221. package/dist/runner.d.ts +6 -6
  222. package/dist/runner.d.ts.map +1 -1
  223. package/dist/runner.js +5 -5
  224. package/dist/runner.js.map +1 -1
  225. package/dist/schemas.d.ts +509 -5
  226. package/dist/schemas.d.ts.map +1 -1
  227. package/dist/schemas.js +76 -16
  228. package/dist/schemas.js.map +1 -1
  229. package/dist/services.d.ts +22 -5
  230. package/dist/services.d.ts.map +1 -1
  231. package/dist/services.js +35 -15
  232. package/dist/services.js.map +1 -1
  233. package/dist/setup-guide.d.ts +3 -1
  234. package/dist/setup-guide.d.ts.map +1 -1
  235. package/dist/setup-guide.js +7 -4
  236. package/dist/setup-guide.js.map +1 -1
  237. package/dist/vocabulary.d.ts +14 -3
  238. package/dist/vocabulary.d.ts.map +1 -1
  239. package/dist/vocabulary.js +13 -3
  240. package/dist/vocabulary.js.map +1 -1
  241. package/docs/specs/cli.md +64 -38
  242. package/docs/specs/plugins.md +27 -20
  243. package/docs/specs/records.md +113 -0
  244. package/docs/specs/rest.md +20 -13
  245. package/docs/specs/runner.md +23 -17
  246. package/package.json +7 -2
  247. package/skills/building-a-console/SKILL.md +4 -4
  248. package/skills/building-a-plugin/SKILL.md +6 -6
  249. package/skills/deploying-a-console/SKILL.md +4 -4
  250. package/skills/deploying-a-console/references/resources.md +41 -4
  251. package/skills/deploying-a-console/references/running-it-again.md +3 -2
  252. package/skills/keeping-a-desk/SKILL.md +133 -0
  253. package/skills/keeping-a-desk/collections.md +96 -0
  254. package/skills/planning-the-board/SKILL.md +14 -18
  255. package/skills/planning-the-board/references/a-task.md +2 -2
  256. package/skills/planning-the-board/references/project-rules.md +13 -14
  257. package/skills/planning-the-board/references/setting-up.md +15 -13
  258. package/skills/running-an-agent/SKILL.md +10 -9
  259. package/skills/working-the-board/SKILL.md +62 -44
  260. package/skills/working-the-board/references/terms.md +9 -5
  261. package/skills/working-the-board/references/the-pack.md +12 -10
  262. package/skills/working-the-board/references/the-sentence.md +2 -2
  263. package/src/agent-page.tsx +3 -1
  264. package/src/api.ts +77 -2
  265. package/src/charts.ts +250 -0
  266. package/src/cli/cli.ts +1698 -476
  267. package/src/cli/command-words.ts +56 -0
  268. package/src/cli/credentials.ts +181 -20
  269. package/src/cli/directory.ts +28 -10
  270. package/src/cli/format.ts +301 -46
  271. package/src/cli/help.ts +102 -54
  272. package/src/cli/main.ts +72 -2
  273. package/src/cli/pack.ts +333 -372
  274. package/src/cli/plugin-check.ts +275 -34
  275. package/src/cli/plugin-cli.ts +28 -4
  276. package/src/cli/plugin-main.ts +1 -0
  277. package/src/cli/serve.ts +295 -2
  278. package/src/client.ts +192 -177
  279. package/src/components/agent-page.tsx +489 -243
  280. package/src/components/charts.tsx +680 -0
  281. package/src/components/desk-records.tsx +724 -0
  282. package/src/components/desk.tsx +471 -0
  283. package/src/components/event-feed.tsx +5 -1
  284. package/src/components/home.tsx +12 -0
  285. package/src/components/plugin-settings.tsx +171 -12
  286. package/src/components/projects.tsx +29 -12
  287. package/src/components/rules.tsx +94 -34
  288. package/src/components/setup.tsx +18 -3
  289. package/src/console.tsx +17 -9
  290. package/src/data.ts +37 -34
  291. package/src/desk-page.tsx +332 -0
  292. package/src/desk-records-page.tsx +256 -0
  293. package/src/desk-records.ts +808 -0
  294. package/src/desk.ts +329 -0
  295. package/src/feed-stream.ts +144 -0
  296. package/src/home-tiles.ts +55 -35
  297. package/src/i18n/en.ts +196 -9
  298. package/src/i18n/ko.ts +178 -8
  299. package/src/index.ts +118 -0
  300. package/src/limits.ts +11 -0
  301. package/src/onboarding.ts +12 -4
  302. package/src/plugin/context.ts +55 -12
  303. package/src/plugin/limits.ts +2 -0
  304. package/src/plugin/manifest.ts +38 -2
  305. package/src/plugin/rest-schemas.ts +41 -0
  306. package/src/plugin/sandbox.ts +4 -1
  307. package/src/plugin/testing.ts +63 -12
  308. package/src/plugin.ts +2 -0
  309. package/src/records.ts +702 -0
  310. package/src/routes.ts +3 -1
  311. package/src/rules.ts +108 -47
  312. package/src/runner/acp.ts +47 -29
  313. package/src/runner/claude.ts +113 -23
  314. package/src/runner/codex.ts +35 -25
  315. package/src/runner/desk.ts +198 -12
  316. package/src/runner/process.ts +11 -4
  317. package/src/runner/redact.ts +92 -6
  318. package/src/runner/runner.ts +275 -34
  319. package/src/runner/task-scheduler.ts +36 -4
  320. package/src/runner/types.ts +47 -1
  321. package/src/runner.ts +27 -2
  322. package/src/schemas.ts +83 -15
  323. package/src/services.ts +49 -14
  324. package/src/setup-guide.ts +6 -2
  325. package/src/styles/README.md +11 -1
  326. package/src/styles/console.css +9 -0
  327. package/src/styles/pages/desk.css +126 -0
  328. package/src/styles/pages/documents.css +5 -0
  329. package/src/styles/parts/bars.css +80 -0
  330. package/src/styles/parts/chart.css +173 -0
  331. package/src/styles/parts/figures.css +65 -0
  332. package/src/styles/parts/legend.css +48 -0
  333. package/src/styles/parts/series.css +32 -0
  334. package/src/styles/parts/share.css +25 -0
  335. package/src/styles/parts/spark.css +23 -0
  336. package/src/styles/parts/stat.css +69 -0
  337. package/src/styles/tokens.css +13 -7
  338. package/src/vocabulary.ts +16 -3
  339. package/template/desk-web/README.md +8 -0
  340. package/template/desk-web/index.html +13 -0
  341. package/template/desk-web/package.json +25 -0
  342. package/template/desk-web/src/main.tsx +24 -0
  343. package/template/desk-web/src/page.tsx +51 -0
  344. package/template/desk-web/tsconfig.json +16 -0
  345. package/template/desk-web/vite.config.ts +15 -0
package/dist/console.css CHANGED
@@ -40,17 +40,23 @@
40
40
  --sc-color-warning-line: #e9a23b;
41
41
  --sc-color-danger: #b0273a;
42
42
  --sc-color-danger-subtle: #fadadf;
43
- /* For the plugins' pages (ADR-0054): a state that informs, one neither good nor bad, a palette for figures, tabular numerals. */
43
+ /* For the plugins' pages (ADR-0054): a state that informs, and one neither good nor bad. */
44
44
  --sc-color-info: #1d4ed8;
45
45
  --sc-color-info-subtle: #dbe6ff;
46
46
  --sc-color-neutral: #4b5563;
47
47
  --sc-color-neutral-subtle: #e7eaf0;
48
- --sc-series-1: #2c5bc4;
49
- --sc-series-2: #c2410c;
50
- --sc-series-3: #146b44;
51
- --sc-series-4: #8f6100;
52
- --sc-series-5: #7c3aed;
53
- --sc-series-6: #0e7490;
48
+ /* The series of a chart (ADR-0123): blue, teal, raspberry, coral, violet, green. The console's
49
+ own hues, and a coral between its pink and its orange, each stepped until any two of the
50
+ six are told apart, also by a reader who does not tell red from green, and until each
51
+ stands out on a light ground and on a dark one. No orange among them, which is the point's,
52
+ and no yellow, which at this lightness is a brown. They are marks, never words. */
53
+ --sc-series-1: #285fd4;
54
+ --sc-series-2: #0097ac;
55
+ --sc-series-3: #bb2b76;
56
+ --sc-series-4: #fa4655;
57
+ --sc-series-5: #946ff2;
58
+ --sc-series-6: #04933e;
59
+ /* The figures that line up: for a column of numbers, a scale, a table. */
54
60
  --sc-numeric: "tnum" 1, "lnum" 1;
55
61
 
56
62
  /* The ground: a pale field, one gradient from the top. The default UI provides the field's
@@ -4180,6 +4186,537 @@ select.sc-input-quiet {
4180
4186
  cursor: not-allowed;
4181
4187
  }
4182
4188
 
4189
+ /* parts/series.css */
4190
+ /* The colour a series is drawn in (ADR-0123): the class sets the colour, and a bar, a column, a
4191
+ line, a dot and a legend's key are drawn in it, so that one thing has one colour wherever it
4192
+ is shown. Six, told apart pair by pair, also by a reader who does not tell red from green;
4193
+ what is past the sixth, or the rest folded into one, wears the neutral. Words never wear
4194
+ them: a name stands beside its key in the colour of text. */
4195
+ .sc-series-1 {
4196
+ color: var(--sc-series-1);
4197
+ }
4198
+
4199
+ .sc-series-2 {
4200
+ color: var(--sc-series-2);
4201
+ }
4202
+
4203
+ .sc-series-3 {
4204
+ color: var(--sc-series-3);
4205
+ }
4206
+
4207
+ .sc-series-4 {
4208
+ color: var(--sc-series-4);
4209
+ }
4210
+
4211
+ .sc-series-5 {
4212
+ color: var(--sc-series-5);
4213
+ }
4214
+
4215
+ .sc-series-6 {
4216
+ color: var(--sc-series-6);
4217
+ }
4218
+
4219
+ .sc-series-rest {
4220
+ color: var(--sc-color-neutral);
4221
+ }
4222
+
4223
+ /* parts/legend.css */
4224
+ /* The key of a chart: each series' colour beside its name, and its figure where the chart is a
4225
+ whole in parts. There for two series or more; one series is named by the chart's title. */
4226
+ .sc-legend {
4227
+ display: flex;
4228
+ flex-wrap: wrap;
4229
+ gap: var(--sc-space-1) var(--sc-space-4);
4230
+ margin: 0;
4231
+ padding: 0;
4232
+ list-style: none;
4233
+ color: var(--sc-color-text-muted);
4234
+ font-size: var(--sc-text-xs);
4235
+ }
4236
+
4237
+ .sc-legend-item {
4238
+ display: inline-flex;
4239
+ align-items: baseline;
4240
+ gap: var(--sc-space-2);
4241
+ min-width: 0;
4242
+ }
4243
+
4244
+ /* The key takes the series' colour from the class beside it; a box for what is filled, a
4245
+ stroke for a line. */
4246
+ .sc-legend-key {
4247
+ flex: none;
4248
+ align-self: center;
4249
+ width: 0.625rem;
4250
+ height: 0.625rem;
4251
+ border-radius: var(--sc-radius-sm);
4252
+ background: currentcolor;
4253
+ }
4254
+
4255
+ .sc-legend-key-line {
4256
+ width: 0.875rem;
4257
+ height: 2px;
4258
+ border-radius: var(--sc-radius-full);
4259
+ }
4260
+
4261
+ .sc-legend-name {
4262
+ min-width: 0;
4263
+ overflow-wrap: anywhere;
4264
+ }
4265
+
4266
+ .sc-legend-value {
4267
+ color: var(--sc-color-text);
4268
+ font-weight: var(--sc-weight-medium);
4269
+ font-feature-settings: var(--sc-numeric);
4270
+ white-space: nowrap;
4271
+ }
4272
+
4273
+ /* parts/stat.css */
4274
+ /* A figure: a number that matters under its name and, where there is one, how it changed and
4275
+ the run it came by. A row of them lays itself out, as many across as there is room for. */
4276
+ .sc-stats {
4277
+ display: grid;
4278
+ grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
4279
+ gap: var(--sc-space-3);
4280
+ margin: 0;
4281
+ }
4282
+
4283
+ .sc-stat {
4284
+ display: grid;
4285
+ align-content: start;
4286
+ gap: var(--sc-space-1);
4287
+ min-width: 0;
4288
+ padding: var(--sc-space-4);
4289
+ border: var(--sc-border);
4290
+ border-radius: var(--sc-radius-md);
4291
+ background: var(--sc-color-sheet);
4292
+ }
4293
+
4294
+ .sc-stat > * {
4295
+ min-width: 0;
4296
+ margin: 0;
4297
+ }
4298
+
4299
+ /* The name of a figure is a fact's name: the small capitals. */
4300
+ .sc-stat-label {
4301
+ color: var(--sc-color-text-faint);
4302
+ font-size: var(--sc-text-xs);
4303
+ font-weight: var(--sc-weight-medium);
4304
+ letter-spacing: var(--sc-tracking-wide);
4305
+ text-transform: uppercase;
4306
+ overflow-wrap: anywhere;
4307
+ }
4308
+
4309
+ /* The figure itself, in the face's own figures: the ones that line up are for columns. */
4310
+ .sc-stat-value {
4311
+ color: var(--sc-color-text);
4312
+ font-size: var(--sc-text-2xl);
4313
+ font-weight: var(--sc-weight-bold);
4314
+ line-height: var(--sc-leading-tight);
4315
+ letter-spacing: var(--sc-tracking-tight);
4316
+ overflow-wrap: anywhere;
4317
+ }
4318
+
4319
+ /* How it changed: the amount with its sign, then against what. The sign says the direction;
4320
+ the tone says whether that is good, where the page knows. */
4321
+ .sc-stat-change {
4322
+ color: var(--sc-color-text-muted);
4323
+ font-size: var(--sc-text-xs);
4324
+ }
4325
+
4326
+ .sc-stat-delta {
4327
+ color: var(--sc-color-text);
4328
+ font-weight: var(--sc-weight-medium);
4329
+ font-feature-settings: var(--sc-numeric);
4330
+ }
4331
+
4332
+ .sc-stat-change-good .sc-stat-delta {
4333
+ color: var(--sc-color-success);
4334
+ }
4335
+
4336
+ .sc-stat-change-bad .sc-stat-delta {
4337
+ color: var(--sc-color-danger);
4338
+ }
4339
+
4340
+ .sc-stat-trend {
4341
+ padding-top: var(--sc-space-1);
4342
+ }
4343
+
4344
+ /* parts/spark.css */
4345
+ /* A sparkline: the run of a figure in the room of a word, with no axis. The line is quiet and
4346
+ the last amount is the dot, in the series' colour. As wide as the box it is put in, less the
4347
+ room its dot needs at the ends. */
4348
+ .sc-spark {
4349
+ width: calc(100% - 0.5rem);
4350
+ max-width: 12rem;
4351
+ height: 1.75rem;
4352
+ margin-inline: 0.25rem;
4353
+ overflow: visible;
4354
+ }
4355
+
4356
+ .sc-spark-line {
4357
+ stroke: var(--sc-color-border-strong);
4358
+ stroke-width: 2px;
4359
+ stroke-linecap: round;
4360
+ }
4361
+
4362
+ .sc-spark-dot {
4363
+ r: 3.5px;
4364
+ fill: currentcolor;
4365
+ stroke: var(--sc-color-bg-raised);
4366
+ stroke-width: 2px;
4367
+ }
4368
+
4369
+ /* parts/bars.css */
4370
+ /* A list of bars: a ranking or a comparison. The rows share the list's columns, so that every
4371
+ bar starts at one edge and ends against one scale, and every figure stands over the next.
4372
+ In a narrow box a row is its name and its figure on one line and its bar under them; where
4373
+ there is room, the name, the bar and the figure stand in one line. */
4374
+ .sc-bars {
4375
+ display: grid;
4376
+ grid-template-columns: fit-content(16rem) minmax(0, 1fr) max-content;
4377
+ gap: var(--sc-space-3);
4378
+ margin: 0;
4379
+ padding: 0;
4380
+ list-style: none;
4381
+ font-size: var(--sc-text-sm);
4382
+ container-type: inline-size;
4383
+ }
4384
+
4385
+ .sc-bars-row {
4386
+ display: grid;
4387
+ grid-template-columns: subgrid;
4388
+ grid-column: 1 / -1;
4389
+ align-items: baseline;
4390
+ row-gap: var(--sc-space-1);
4391
+ }
4392
+
4393
+ .sc-bars-label {
4394
+ grid-column: 1 / 3;
4395
+ min-width: 0;
4396
+ color: var(--sc-color-text);
4397
+ font-weight: var(--sc-weight-medium);
4398
+ overflow-wrap: anywhere;
4399
+ }
4400
+
4401
+ .sc-bars-label a {
4402
+ color: inherit;
4403
+ text-decoration: none;
4404
+ }
4405
+
4406
+ .sc-bars-label a:hover {
4407
+ color: var(--sc-color-accent);
4408
+ }
4409
+
4410
+ /* The figure, in the figures that line up: one stands over the next down the list. */
4411
+ .sc-bars-value {
4412
+ grid-column: 3;
4413
+ color: var(--sc-color-text-muted);
4414
+ font-feature-settings: var(--sc-numeric);
4415
+ text-align: end;
4416
+ white-space: nowrap;
4417
+ }
4418
+
4419
+ /* The bar: thin, square where it starts and round where it ends. */
4420
+ .sc-bars-bar {
4421
+ grid-column: 1 / -1;
4422
+ width: 100%;
4423
+ height: 0.5rem;
4424
+ }
4425
+
4426
+ .sc-bars-fill {
4427
+ rx: var(--sc-radius-sm);
4428
+ fill: currentcolor;
4429
+ }
4430
+
4431
+ @container (min-width: 32rem) {
4432
+ .sc-bars-row {
4433
+ align-items: center;
4434
+ }
4435
+
4436
+ .sc-bars-label {
4437
+ grid-column: 1;
4438
+ }
4439
+
4440
+ .sc-bars-bar {
4441
+ grid-row: 1;
4442
+ grid-column: 2;
4443
+ }
4444
+
4445
+ .sc-bars-value {
4446
+ grid-row: 1;
4447
+ grid-column: 3;
4448
+ }
4449
+ }
4450
+
4451
+ /* parts/share.css */
4452
+ /* A share: one whole in its parts, as one thin bar with the parts' names and figures under it.
4453
+ The parts are told apart by the gap between them, in the colour of the surface, and never by
4454
+ a line drawn round them. */
4455
+ .sc-share {
4456
+ display: grid;
4457
+ gap: var(--sc-space-2);
4458
+ min-width: 0;
4459
+ }
4460
+
4461
+ .sc-share-bar {
4462
+ width: 100%;
4463
+ height: 0.75rem;
4464
+ overflow: hidden;
4465
+ border-radius: var(--sc-radius-full);
4466
+ background: var(--sc-color-bg-inset);
4467
+ }
4468
+
4469
+ .sc-share-part {
4470
+ fill: currentcolor;
4471
+ }
4472
+
4473
+ .sc-share-gap {
4474
+ stroke: var(--sc-color-bg-raised);
4475
+ stroke-width: 2px;
4476
+ }
4477
+
4478
+ /* parts/chart.css */
4479
+ /* A chart over time: columns, or lines, of one to a few series against one scale. It has the
4480
+ marks and the axis a reader needs and nothing else: the scale's round amounts at the side,
4481
+ a hair of a line across at each, the points' names under it, as many as there is room for.
4482
+ Its box is the stylesheet's and every place in it is a share of that box, so it is as wide
4483
+ as where it is put. */
4484
+ .sc-chart {
4485
+ display: grid;
4486
+ gap: var(--sc-space-3);
4487
+ min-width: 0;
4488
+ margin: 0;
4489
+ container-type: inline-size;
4490
+ }
4491
+
4492
+ /* The scale at the side, the plot, and the points' names under the plot. The room above is
4493
+ for the half of the top amount that stands over the top line. */
4494
+ .sc-chart-frame {
4495
+ display: grid;
4496
+ grid-template-rows: 11rem auto;
4497
+ grid-template-columns: auto minmax(0, 1fr);
4498
+ column-gap: var(--sc-space-2);
4499
+ padding-top: var(--sc-space-2);
4500
+ }
4501
+
4502
+ .sc-chart-short .sc-chart-frame {
4503
+ grid-template-rows: 6.5rem auto;
4504
+ }
4505
+
4506
+ /* The scale's amounts from the top down, each in the middle of its line. */
4507
+ .sc-chart-axis {
4508
+ display: flex;
4509
+ flex-direction: column;
4510
+ justify-content: space-between;
4511
+ }
4512
+
4513
+ .sc-chart-tick {
4514
+ display: flex;
4515
+ align-items: center;
4516
+ justify-content: flex-end;
4517
+ height: 0;
4518
+ color: var(--sc-color-text-faint);
4519
+ font-size: var(--sc-text-xs);
4520
+ font-feature-settings: var(--sc-numeric);
4521
+ line-height: 1;
4522
+ white-space: nowrap;
4523
+ }
4524
+
4525
+ /* The plot: the lines across, the marks over them, and over the marks what answers the
4526
+ pointer, each as large as the plot. */
4527
+ /* The plot is as tall as its row of the frame and no taller, whatever is drawn in it. */
4528
+ .sc-chart-plot {
4529
+ display: grid;
4530
+ grid-template-rows: minmax(0, 1fr);
4531
+ min-width: 0;
4532
+ min-height: 0;
4533
+ }
4534
+
4535
+ .sc-chart-plot > * {
4536
+ grid-area: 1 / 1;
4537
+ width: 100%;
4538
+ height: 100%;
4539
+ min-width: 0;
4540
+ }
4541
+
4542
+ .sc-chart-grid,
4543
+ .sc-chart-lines {
4544
+ overflow: visible;
4545
+ }
4546
+
4547
+ .sc-chart-gridline {
4548
+ stroke: var(--sc-color-border);
4549
+ stroke-width: 1px;
4550
+ }
4551
+
4552
+ /* Zero is where the columns stand: a step stronger than the lines above it. */
4553
+ .sc-chart-gridline-zero {
4554
+ stroke: color-mix(in srgb, var(--sc-color-border-strong) 55%, transparent);
4555
+ }
4556
+
4557
+ /* The columns: one share of the width a point, the columns of a point side by side with a gap
4558
+ in the surface's colour between them. A column stays thin however much room its point has;
4559
+ the rest is air. */
4560
+ .sc-chart-columns {
4561
+ display: grid;
4562
+ grid-template-rows: minmax(0, 1fr);
4563
+ grid-auto-columns: minmax(0, 1fr);
4564
+ grid-auto-flow: column;
4565
+ }
4566
+
4567
+ .sc-chart-slot {
4568
+ display: flex;
4569
+ justify-content: center;
4570
+ gap: 2px;
4571
+ min-width: 0;
4572
+ min-height: 0;
4573
+ padding-inline: 12%;
4574
+ }
4575
+
4576
+ .sc-chart-column {
4577
+ flex: 0 1 1.25rem;
4578
+ min-width: 0;
4579
+ height: 100%;
4580
+ }
4581
+
4582
+ /* A column is square where it stands on zero and round where it ends. */
4583
+ .sc-chart-bar {
4584
+ rx: var(--sc-radius-sm);
4585
+ fill: currentcolor;
4586
+ }
4587
+
4588
+ .sc-chart-line {
4589
+ stroke: currentcolor;
4590
+ stroke-width: 2px;
4591
+ stroke-linecap: round;
4592
+ }
4593
+
4594
+ /* The last amount of a line, and an amount with none beside it: a dot, ringed in the surface's
4595
+ colour so that it reads where lines cross. */
4596
+ .sc-chart-dot {
4597
+ r: 4px;
4598
+ fill: currentcolor;
4599
+ stroke: var(--sc-color-bg-raised);
4600
+ stroke-width: 2px;
4601
+ }
4602
+
4603
+ /* A point's share of the plot answers the pointer over its whole height, so that nobody has to
4604
+ aim at a line: it says the point's figures, and is washed while the pointer is on it. */
4605
+ .sc-chart-hit {
4606
+ fill: transparent;
4607
+ }
4608
+
4609
+ .sc-chart-hit:hover {
4610
+ fill: color-mix(in srgb, var(--sc-color-text) 6%, transparent);
4611
+ }
4612
+
4613
+ /* The points' names, each under its point. One the chart has room for only in a wide box
4614
+ stays out of a narrow one. */
4615
+ .sc-chart-labels {
4616
+ display: grid;
4617
+ grid-column: 2;
4618
+ grid-auto-columns: minmax(0, 1fr);
4619
+ grid-auto-flow: column;
4620
+ padding-top: var(--sc-space-2);
4621
+ color: var(--sc-color-text-faint);
4622
+ font-size: var(--sc-text-xs);
4623
+ line-height: var(--sc-leading-tight);
4624
+ }
4625
+
4626
+ .sc-chart-label {
4627
+ justify-self: center;
4628
+ white-space: nowrap;
4629
+ }
4630
+
4631
+ .sc-chart-label-wide {
4632
+ visibility: hidden;
4633
+ }
4634
+
4635
+ @container (min-width: 40rem) {
4636
+ .sc-chart-label-wide {
4637
+ visibility: visible;
4638
+ }
4639
+ }
4640
+
4641
+ /* In a narrow box a name at an end of the chart, wider than its point's share, stands inside
4642
+ the chart and not past its edge. */
4643
+ @container (max-width: 40rem) {
4644
+ .sc-chart-label-start {
4645
+ justify-self: start;
4646
+ }
4647
+
4648
+ .sc-chart-label-end {
4649
+ justify-self: end;
4650
+ }
4651
+ }
4652
+
4653
+ /* parts/figures.css */
4654
+ /* A table of figures: rows by columns, the names at the start and every number at the end of
4655
+ its column, in the figures that line up. What a chart shows, to be read exactly. It scrolls
4656
+ sideways in its box where a phone has no room for its columns. */
4657
+ .sc-figures-box {
4658
+ max-width: 100%;
4659
+ overflow-x: auto;
4660
+ }
4661
+
4662
+ .sc-figures {
4663
+ width: 100%;
4664
+ font-size: var(--sc-text-sm);
4665
+ }
4666
+
4667
+ .sc-figures caption {
4668
+ padding-bottom: var(--sc-space-2);
4669
+ color: var(--sc-color-text-muted);
4670
+ font-size: var(--sc-text-xs);
4671
+ text-align: start;
4672
+ }
4673
+
4674
+ .sc-figures th,
4675
+ .sc-figures td {
4676
+ padding: var(--sc-space-2) var(--sc-space-3);
4677
+ border-top: var(--sc-hairline);
4678
+ font-weight: var(--sc-weight-normal);
4679
+ font-feature-settings: var(--sc-numeric);
4680
+ text-align: end;
4681
+ white-space: nowrap;
4682
+ }
4683
+
4684
+ .sc-figures th:first-child,
4685
+ .sc-figures td:first-child {
4686
+ min-width: 7rem;
4687
+ padding-inline-start: 0;
4688
+ text-align: start;
4689
+ white-space: normal;
4690
+ overflow-wrap: anywhere;
4691
+ }
4692
+
4693
+ .sc-figures th:last-child,
4694
+ .sc-figures td:last-child {
4695
+ padding-inline-end: 0;
4696
+ }
4697
+
4698
+ /* The head: the small capitals, as a fact's name is. */
4699
+ .sc-figures thead th {
4700
+ border-top: 0;
4701
+ color: var(--sc-color-text-faint);
4702
+ font-size: var(--sc-text-xs);
4703
+ font-weight: var(--sc-weight-medium);
4704
+ letter-spacing: var(--sc-tracking-wide);
4705
+ text-transform: uppercase;
4706
+ }
4707
+
4708
+ .sc-figures tbody th {
4709
+ color: var(--sc-color-text);
4710
+ font-weight: var(--sc-weight-medium);
4711
+ }
4712
+
4713
+ /* The foot: what the rows come to. */
4714
+ .sc-figures tfoot th,
4715
+ .sc-figures tfoot td {
4716
+ border-top: var(--sc-border-strong);
4717
+ font-weight: var(--sc-weight-bold);
4718
+ }
4719
+
4183
4720
  /* pages/decisions.css */
4184
4721
  /* Sources: components/decision-list.tsx, components/decision-form.tsx, components/my-decisions.tsx */
4185
4722
 
@@ -5638,6 +6175,11 @@ select.sc-input-quiet {
5638
6175
  font-size: var(--sc-text-sm);
5639
6176
  }
5640
6177
 
6178
+ /* What the organization adds stands off the console's rules above it (ADR-0120). */
6179
+ .sc-rules-added {
6180
+ margin-top: var(--sc-space-6);
6181
+ }
6182
+
5641
6183
  /* The ways to change the rules stand off the text, as a form's actions do. */
5642
6184
  .sc-rules-actions {
5643
6185
  display: flex;
@@ -9188,6 +9730,134 @@ a.sc-tile-glance:focus-visible {
9188
9730
  gap: var(--sc-space-6) var(--sc-work-gap);
9189
9731
  }
9190
9732
 
9733
+ /* pages/desk.css */
9734
+ /* Sources: components/desk.tsx, desk-page.tsx, components/desk-records.tsx, desk-records-page.tsx */
9735
+
9736
+ /* The views of a desk stand as the people's and the agents' do. */
9737
+ .sc-desk-views {
9738
+ margin-bottom: var(--sc-space-5);
9739
+ }
9740
+
9741
+ /* The lists of a desk: two side by side where each still has a reading width, one under the
9742
+ other below that, as the lists of a plate are, so that their rows line up. */
9743
+ .sc-desk-lists {
9744
+ display: grid;
9745
+ grid-template-columns: repeat(
9746
+ auto-fill,
9747
+ minmax(min(100%, max(24rem, calc((100% - var(--sc-space-7)) / 2))), 1fr)
9748
+ );
9749
+ align-items: start;
9750
+ gap: var(--sc-space-6) var(--sc-space-7);
9751
+ }
9752
+
9753
+ /* The figures, one group under the other. */
9754
+ .sc-desk-figures {
9755
+ display: grid;
9756
+ gap: var(--sc-space-6);
9757
+ }
9758
+
9759
+ /* Two panes of figures side by side where the window has the room. */
9760
+ .sc-desk-pair {
9761
+ display: grid;
9762
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
9763
+ align-items: start;
9764
+ gap: var(--sc-space-5);
9765
+ }
9766
+
9767
+ .sc-desk-pair .sc-panel {
9768
+ margin-bottom: 0;
9769
+ }
9770
+
9771
+ /* The archive: the words it is found by over its lists. */
9772
+ .sc-desk-archive {
9773
+ display: grid;
9774
+ gap: var(--sc-space-5);
9775
+ }
9776
+
9777
+ .sc-desk-search {
9778
+ display: flex;
9779
+ gap: var(--sc-space-2);
9780
+ }
9781
+
9782
+ .sc-desk-search .sc-input {
9783
+ flex: 1;
9784
+ max-width: 32rem;
9785
+ }
9786
+
9787
+ /* A desk of one's own on the Agents page: its words over the command, under what is above. */
9788
+ .sc-desk-command {
9789
+ display: grid;
9790
+ gap: var(--sc-space-3);
9791
+ margin-top: var(--sc-space-5);
9792
+ }
9793
+
9794
+ /* The records: what could not be read over what could, and the way down over both. */
9795
+ .sc-desk-records {
9796
+ display: grid;
9797
+ gap: var(--sc-space-4);
9798
+ }
9799
+
9800
+ /* The items of a collection as cards, as many across as the window has room for. */
9801
+ .sc-desk-cards {
9802
+ display: grid;
9803
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
9804
+ align-items: start;
9805
+ gap: var(--sc-space-4);
9806
+ margin: 0;
9807
+ padding: 0;
9808
+ list-style: none;
9809
+ }
9810
+
9811
+ .sc-desk-cards .sc-panel {
9812
+ margin-bottom: 0;
9813
+ }
9814
+
9815
+ .sc-desk-card {
9816
+ display: grid;
9817
+ gap: var(--sc-space-2);
9818
+ min-width: 0;
9819
+ }
9820
+
9821
+ /* A card's preview: the card's width, one shape whatever the picture's own. */
9822
+ .sc-desk-card-picture {
9823
+ display: block;
9824
+ width: 100%;
9825
+ aspect-ratio: 4 / 3;
9826
+ object-fit: cover;
9827
+ }
9828
+
9829
+ /* One item: its head over its two columns. */
9830
+ .sc-desk-item {
9831
+ display: grid;
9832
+ gap: var(--sc-space-5);
9833
+ }
9834
+
9835
+ .sc-desk-item-picture {
9836
+ display: block;
9837
+ max-width: 100%;
9838
+ max-height: 28rem;
9839
+ object-fit: contain;
9840
+ }
9841
+
9842
+ /* What was written about an item keeps its own lines. */
9843
+ .sc-desk-words {
9844
+ white-space: pre-wrap;
9845
+ overflow-wrap: anywhere;
9846
+ }
9847
+
9848
+ /* A file shown in place takes a line of its own under its name, no taller than a reading. */
9849
+ .sc-desk-file-media {
9850
+ flex: 1 1 100%;
9851
+ width: 100%;
9852
+ max-height: 28rem;
9853
+ object-fit: contain;
9854
+ }
9855
+
9856
+ .sc-desk-file-frame {
9857
+ flex: 1 1 100%;
9858
+ height: 32rem;
9859
+ }
9860
+
9191
9861
  /* pages/plugins.css */
9192
9862
  /* Sources: components/plugin-settings.tsx, components/plugin-frame.tsx */
9193
9863
 
package/dist/console.d.ts CHANGED
@@ -70,6 +70,11 @@ export interface CustomPageContext {
70
70
  /** The client, for what the data does not carry. */
71
71
  readonly client: ConsoleClient;
72
72
  readonly navigation: Navigation;
73
+ /**
74
+ * The query of the address the page is at, as the browser has it (`?view=figures`), or `""`:
75
+ * how a page of one's own is shown is said by its address, as every page's is (ADR-0010).
76
+ */
77
+ readonly search: string;
73
78
  /** The words of the language the pages speak, and its tag. */
74
79
  readonly words: Messages;
75
80
  readonly language: string;