@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
@@ -0,0 +1,80 @@
1
+ /* A list of bars: a ranking or a comparison. The rows share the list's columns, so that every
2
+ bar starts at one edge and ends against one scale, and every figure stands over the next.
3
+ In a narrow box a row is its name and its figure on one line and its bar under them; where
4
+ there is room, the name, the bar and the figure stand in one line. */
5
+ .sc-bars {
6
+ display: grid;
7
+ grid-template-columns: fit-content(16rem) minmax(0, 1fr) max-content;
8
+ gap: var(--sc-space-3);
9
+ margin: 0;
10
+ padding: 0;
11
+ list-style: none;
12
+ font-size: var(--sc-text-sm);
13
+ container-type: inline-size;
14
+ }
15
+
16
+ .sc-bars-row {
17
+ display: grid;
18
+ grid-template-columns: subgrid;
19
+ grid-column: 1 / -1;
20
+ align-items: baseline;
21
+ row-gap: var(--sc-space-1);
22
+ }
23
+
24
+ .sc-bars-label {
25
+ grid-column: 1 / 3;
26
+ min-width: 0;
27
+ color: var(--sc-color-text);
28
+ font-weight: var(--sc-weight-medium);
29
+ overflow-wrap: anywhere;
30
+ }
31
+
32
+ .sc-bars-label a {
33
+ color: inherit;
34
+ text-decoration: none;
35
+ }
36
+
37
+ .sc-bars-label a:hover {
38
+ color: var(--sc-color-accent);
39
+ }
40
+
41
+ /* The figure, in the figures that line up: one stands over the next down the list. */
42
+ .sc-bars-value {
43
+ grid-column: 3;
44
+ color: var(--sc-color-text-muted);
45
+ font-feature-settings: var(--sc-numeric);
46
+ text-align: end;
47
+ white-space: nowrap;
48
+ }
49
+
50
+ /* The bar: thin, square where it starts and round where it ends. */
51
+ .sc-bars-bar {
52
+ grid-column: 1 / -1;
53
+ width: 100%;
54
+ height: 0.5rem;
55
+ }
56
+
57
+ .sc-bars-fill {
58
+ rx: var(--sc-radius-sm);
59
+ fill: currentcolor;
60
+ }
61
+
62
+ @container (min-width: 32rem) {
63
+ .sc-bars-row {
64
+ align-items: center;
65
+ }
66
+
67
+ .sc-bars-label {
68
+ grid-column: 1;
69
+ }
70
+
71
+ .sc-bars-bar {
72
+ grid-row: 1;
73
+ grid-column: 2;
74
+ }
75
+
76
+ .sc-bars-value {
77
+ grid-row: 1;
78
+ grid-column: 3;
79
+ }
80
+ }
@@ -0,0 +1,173 @@
1
+ /* A chart over time: columns, or lines, of one to a few series against one scale. It has the
2
+ marks and the axis a reader needs and nothing else: the scale's round amounts at the side,
3
+ a hair of a line across at each, the points' names under it, as many as there is room for.
4
+ Its box is the stylesheet's and every place in it is a share of that box, so it is as wide
5
+ as where it is put. */
6
+ .sc-chart {
7
+ display: grid;
8
+ gap: var(--sc-space-3);
9
+ min-width: 0;
10
+ margin: 0;
11
+ container-type: inline-size;
12
+ }
13
+
14
+ /* The scale at the side, the plot, and the points' names under the plot. The room above is
15
+ for the half of the top amount that stands over the top line. */
16
+ .sc-chart-frame {
17
+ display: grid;
18
+ grid-template-rows: 11rem auto;
19
+ grid-template-columns: auto minmax(0, 1fr);
20
+ column-gap: var(--sc-space-2);
21
+ padding-top: var(--sc-space-2);
22
+ }
23
+
24
+ .sc-chart-short .sc-chart-frame {
25
+ grid-template-rows: 6.5rem auto;
26
+ }
27
+
28
+ /* The scale's amounts from the top down, each in the middle of its line. */
29
+ .sc-chart-axis {
30
+ display: flex;
31
+ flex-direction: column;
32
+ justify-content: space-between;
33
+ }
34
+
35
+ .sc-chart-tick {
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: flex-end;
39
+ height: 0;
40
+ color: var(--sc-color-text-faint);
41
+ font-size: var(--sc-text-xs);
42
+ font-feature-settings: var(--sc-numeric);
43
+ line-height: 1;
44
+ white-space: nowrap;
45
+ }
46
+
47
+ /* The plot: the lines across, the marks over them, and over the marks what answers the
48
+ pointer, each as large as the plot. */
49
+ /* The plot is as tall as its row of the frame and no taller, whatever is drawn in it. */
50
+ .sc-chart-plot {
51
+ display: grid;
52
+ grid-template-rows: minmax(0, 1fr);
53
+ min-width: 0;
54
+ min-height: 0;
55
+ }
56
+
57
+ .sc-chart-plot > * {
58
+ grid-area: 1 / 1;
59
+ width: 100%;
60
+ height: 100%;
61
+ min-width: 0;
62
+ }
63
+
64
+ .sc-chart-grid,
65
+ .sc-chart-lines {
66
+ overflow: visible;
67
+ }
68
+
69
+ .sc-chart-gridline {
70
+ stroke: var(--sc-color-border);
71
+ stroke-width: 1px;
72
+ }
73
+
74
+ /* Zero is where the columns stand: a step stronger than the lines above it. */
75
+ .sc-chart-gridline-zero {
76
+ stroke: color-mix(in srgb, var(--sc-color-border-strong) 55%, transparent);
77
+ }
78
+
79
+ /* The columns: one share of the width a point, the columns of a point side by side with a gap
80
+ in the surface's colour between them. A column stays thin however much room its point has;
81
+ the rest is air. */
82
+ .sc-chart-columns {
83
+ display: grid;
84
+ grid-template-rows: minmax(0, 1fr);
85
+ grid-auto-columns: minmax(0, 1fr);
86
+ grid-auto-flow: column;
87
+ }
88
+
89
+ .sc-chart-slot {
90
+ display: flex;
91
+ justify-content: center;
92
+ gap: 2px;
93
+ min-width: 0;
94
+ min-height: 0;
95
+ padding-inline: 12%;
96
+ }
97
+
98
+ .sc-chart-column {
99
+ flex: 0 1 1.25rem;
100
+ min-width: 0;
101
+ height: 100%;
102
+ }
103
+
104
+ /* A column is square where it stands on zero and round where it ends. */
105
+ .sc-chart-bar {
106
+ rx: var(--sc-radius-sm);
107
+ fill: currentcolor;
108
+ }
109
+
110
+ .sc-chart-line {
111
+ stroke: currentcolor;
112
+ stroke-width: 2px;
113
+ stroke-linecap: round;
114
+ }
115
+
116
+ /* The last amount of a line, and an amount with none beside it: a dot, ringed in the surface's
117
+ colour so that it reads where lines cross. */
118
+ .sc-chart-dot {
119
+ r: 4px;
120
+ fill: currentcolor;
121
+ stroke: var(--sc-color-bg-raised);
122
+ stroke-width: 2px;
123
+ }
124
+
125
+ /* A point's share of the plot answers the pointer over its whole height, so that nobody has to
126
+ aim at a line: it says the point's figures, and is washed while the pointer is on it. */
127
+ .sc-chart-hit {
128
+ fill: transparent;
129
+ }
130
+
131
+ .sc-chart-hit:hover {
132
+ fill: color-mix(in srgb, var(--sc-color-text) 6%, transparent);
133
+ }
134
+
135
+ /* The points' names, each under its point. One the chart has room for only in a wide box
136
+ stays out of a narrow one. */
137
+ .sc-chart-labels {
138
+ display: grid;
139
+ grid-column: 2;
140
+ grid-auto-columns: minmax(0, 1fr);
141
+ grid-auto-flow: column;
142
+ padding-top: var(--sc-space-2);
143
+ color: var(--sc-color-text-faint);
144
+ font-size: var(--sc-text-xs);
145
+ line-height: var(--sc-leading-tight);
146
+ }
147
+
148
+ .sc-chart-label {
149
+ justify-self: center;
150
+ white-space: nowrap;
151
+ }
152
+
153
+ .sc-chart-label-wide {
154
+ visibility: hidden;
155
+ }
156
+
157
+ @container (min-width: 40rem) {
158
+ .sc-chart-label-wide {
159
+ visibility: visible;
160
+ }
161
+ }
162
+
163
+ /* In a narrow box a name at an end of the chart, wider than its point's share, stands inside
164
+ the chart and not past its edge. */
165
+ @container (max-width: 40rem) {
166
+ .sc-chart-label-start {
167
+ justify-self: start;
168
+ }
169
+
170
+ .sc-chart-label-end {
171
+ justify-self: end;
172
+ }
173
+ }
@@ -0,0 +1,65 @@
1
+ /* A table of figures: rows by columns, the names at the start and every number at the end of
2
+ its column, in the figures that line up. What a chart shows, to be read exactly. It scrolls
3
+ sideways in its box where a phone has no room for its columns. */
4
+ .sc-figures-box {
5
+ max-width: 100%;
6
+ overflow-x: auto;
7
+ }
8
+
9
+ .sc-figures {
10
+ width: 100%;
11
+ font-size: var(--sc-text-sm);
12
+ }
13
+
14
+ .sc-figures caption {
15
+ padding-bottom: var(--sc-space-2);
16
+ color: var(--sc-color-text-muted);
17
+ font-size: var(--sc-text-xs);
18
+ text-align: start;
19
+ }
20
+
21
+ .sc-figures th,
22
+ .sc-figures td {
23
+ padding: var(--sc-space-2) var(--sc-space-3);
24
+ border-top: var(--sc-hairline);
25
+ font-weight: var(--sc-weight-normal);
26
+ font-feature-settings: var(--sc-numeric);
27
+ text-align: end;
28
+ white-space: nowrap;
29
+ }
30
+
31
+ .sc-figures th:first-child,
32
+ .sc-figures td:first-child {
33
+ min-width: 7rem;
34
+ padding-inline-start: 0;
35
+ text-align: start;
36
+ white-space: normal;
37
+ overflow-wrap: anywhere;
38
+ }
39
+
40
+ .sc-figures th:last-child,
41
+ .sc-figures td:last-child {
42
+ padding-inline-end: 0;
43
+ }
44
+
45
+ /* The head: the small capitals, as a fact's name is. */
46
+ .sc-figures thead th {
47
+ border-top: 0;
48
+ color: var(--sc-color-text-faint);
49
+ font-size: var(--sc-text-xs);
50
+ font-weight: var(--sc-weight-medium);
51
+ letter-spacing: var(--sc-tracking-wide);
52
+ text-transform: uppercase;
53
+ }
54
+
55
+ .sc-figures tbody th {
56
+ color: var(--sc-color-text);
57
+ font-weight: var(--sc-weight-medium);
58
+ }
59
+
60
+ /* The foot: what the rows come to. */
61
+ .sc-figures tfoot th,
62
+ .sc-figures tfoot td {
63
+ border-top: var(--sc-border-strong);
64
+ font-weight: var(--sc-weight-bold);
65
+ }
@@ -0,0 +1,48 @@
1
+ /* The key of a chart: each series' colour beside its name, and its figure where the chart is a
2
+ whole in parts. There for two series or more; one series is named by the chart's title. */
3
+ .sc-legend {
4
+ display: flex;
5
+ flex-wrap: wrap;
6
+ gap: var(--sc-space-1) var(--sc-space-4);
7
+ margin: 0;
8
+ padding: 0;
9
+ list-style: none;
10
+ color: var(--sc-color-text-muted);
11
+ font-size: var(--sc-text-xs);
12
+ }
13
+
14
+ .sc-legend-item {
15
+ display: inline-flex;
16
+ align-items: baseline;
17
+ gap: var(--sc-space-2);
18
+ min-width: 0;
19
+ }
20
+
21
+ /* The key takes the series' colour from the class beside it; a box for what is filled, a
22
+ stroke for a line. */
23
+ .sc-legend-key {
24
+ flex: none;
25
+ align-self: center;
26
+ width: 0.625rem;
27
+ height: 0.625rem;
28
+ border-radius: var(--sc-radius-sm);
29
+ background: currentcolor;
30
+ }
31
+
32
+ .sc-legend-key-line {
33
+ width: 0.875rem;
34
+ height: 2px;
35
+ border-radius: var(--sc-radius-full);
36
+ }
37
+
38
+ .sc-legend-name {
39
+ min-width: 0;
40
+ overflow-wrap: anywhere;
41
+ }
42
+
43
+ .sc-legend-value {
44
+ color: var(--sc-color-text);
45
+ font-weight: var(--sc-weight-medium);
46
+ font-feature-settings: var(--sc-numeric);
47
+ white-space: nowrap;
48
+ }
@@ -0,0 +1,32 @@
1
+ /* The colour a series is drawn in (ADR-0123): the class sets the colour, and a bar, a column, a
2
+ line, a dot and a legend's key are drawn in it, so that one thing has one colour wherever it
3
+ is shown. Six, told apart pair by pair, also by a reader who does not tell red from green;
4
+ what is past the sixth, or the rest folded into one, wears the neutral. Words never wear
5
+ them: a name stands beside its key in the colour of text. */
6
+ .sc-series-1 {
7
+ color: var(--sc-series-1);
8
+ }
9
+
10
+ .sc-series-2 {
11
+ color: var(--sc-series-2);
12
+ }
13
+
14
+ .sc-series-3 {
15
+ color: var(--sc-series-3);
16
+ }
17
+
18
+ .sc-series-4 {
19
+ color: var(--sc-series-4);
20
+ }
21
+
22
+ .sc-series-5 {
23
+ color: var(--sc-series-5);
24
+ }
25
+
26
+ .sc-series-6 {
27
+ color: var(--sc-series-6);
28
+ }
29
+
30
+ .sc-series-rest {
31
+ color: var(--sc-color-neutral);
32
+ }
@@ -0,0 +1,25 @@
1
+ /* A share: one whole in its parts, as one thin bar with the parts' names and figures under it.
2
+ The parts are told apart by the gap between them, in the colour of the surface, and never by
3
+ a line drawn round them. */
4
+ .sc-share {
5
+ display: grid;
6
+ gap: var(--sc-space-2);
7
+ min-width: 0;
8
+ }
9
+
10
+ .sc-share-bar {
11
+ width: 100%;
12
+ height: 0.75rem;
13
+ overflow: hidden;
14
+ border-radius: var(--sc-radius-full);
15
+ background: var(--sc-color-bg-inset);
16
+ }
17
+
18
+ .sc-share-part {
19
+ fill: currentcolor;
20
+ }
21
+
22
+ .sc-share-gap {
23
+ stroke: var(--sc-color-bg-raised);
24
+ stroke-width: 2px;
25
+ }
@@ -0,0 +1,23 @@
1
+ /* A sparkline: the run of a figure in the room of a word, with no axis. The line is quiet and
2
+ the last amount is the dot, in the series' colour. As wide as the box it is put in, less the
3
+ room its dot needs at the ends. */
4
+ .sc-spark {
5
+ width: calc(100% - 0.5rem);
6
+ max-width: 12rem;
7
+ height: 1.75rem;
8
+ margin-inline: 0.25rem;
9
+ overflow: visible;
10
+ }
11
+
12
+ .sc-spark-line {
13
+ stroke: var(--sc-color-border-strong);
14
+ stroke-width: 2px;
15
+ stroke-linecap: round;
16
+ }
17
+
18
+ .sc-spark-dot {
19
+ r: 3.5px;
20
+ fill: currentcolor;
21
+ stroke: var(--sc-color-bg-raised);
22
+ stroke-width: 2px;
23
+ }
@@ -0,0 +1,69 @@
1
+ /* A figure: a number that matters under its name and, where there is one, how it changed and
2
+ the run it came by. A row of them lays itself out, as many across as there is room for. */
3
+ .sc-stats {
4
+ display: grid;
5
+ grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
6
+ gap: var(--sc-space-3);
7
+ margin: 0;
8
+ }
9
+
10
+ .sc-stat {
11
+ display: grid;
12
+ align-content: start;
13
+ gap: var(--sc-space-1);
14
+ min-width: 0;
15
+ padding: var(--sc-space-4);
16
+ border: var(--sc-border);
17
+ border-radius: var(--sc-radius-md);
18
+ background: var(--sc-color-sheet);
19
+ }
20
+
21
+ .sc-stat > * {
22
+ min-width: 0;
23
+ margin: 0;
24
+ }
25
+
26
+ /* The name of a figure is a fact's name: the small capitals. */
27
+ .sc-stat-label {
28
+ color: var(--sc-color-text-faint);
29
+ font-size: var(--sc-text-xs);
30
+ font-weight: var(--sc-weight-medium);
31
+ letter-spacing: var(--sc-tracking-wide);
32
+ text-transform: uppercase;
33
+ overflow-wrap: anywhere;
34
+ }
35
+
36
+ /* The figure itself, in the face's own figures: the ones that line up are for columns. */
37
+ .sc-stat-value {
38
+ color: var(--sc-color-text);
39
+ font-size: var(--sc-text-2xl);
40
+ font-weight: var(--sc-weight-bold);
41
+ line-height: var(--sc-leading-tight);
42
+ letter-spacing: var(--sc-tracking-tight);
43
+ overflow-wrap: anywhere;
44
+ }
45
+
46
+ /* How it changed: the amount with its sign, then against what. The sign says the direction;
47
+ the tone says whether that is good, where the page knows. */
48
+ .sc-stat-change {
49
+ color: var(--sc-color-text-muted);
50
+ font-size: var(--sc-text-xs);
51
+ }
52
+
53
+ .sc-stat-delta {
54
+ color: var(--sc-color-text);
55
+ font-weight: var(--sc-weight-medium);
56
+ font-feature-settings: var(--sc-numeric);
57
+ }
58
+
59
+ .sc-stat-change-good .sc-stat-delta {
60
+ color: var(--sc-color-success);
61
+ }
62
+
63
+ .sc-stat-change-bad .sc-stat-delta {
64
+ color: var(--sc-color-danger);
65
+ }
66
+
67
+ .sc-stat-trend {
68
+ padding-top: var(--sc-space-1);
69
+ }
@@ -37,17 +37,23 @@
37
37
  --sc-color-warning-line: #e9a23b;
38
38
  --sc-color-danger: #b0273a;
39
39
  --sc-color-danger-subtle: #fadadf;
40
- /* For the plugins' pages (ADR-0054): a state that informs, one neither good nor bad, a palette for figures, tabular numerals. */
40
+ /* For the plugins' pages (ADR-0054): a state that informs, and one neither good nor bad. */
41
41
  --sc-color-info: #1d4ed8;
42
42
  --sc-color-info-subtle: #dbe6ff;
43
43
  --sc-color-neutral: #4b5563;
44
44
  --sc-color-neutral-subtle: #e7eaf0;
45
- --sc-series-1: #2c5bc4;
46
- --sc-series-2: #c2410c;
47
- --sc-series-3: #146b44;
48
- --sc-series-4: #8f6100;
49
- --sc-series-5: #7c3aed;
50
- --sc-series-6: #0e7490;
45
+ /* The series of a chart (ADR-0123): blue, teal, raspberry, coral, violet, green. The console's
46
+ own hues, and a coral between its pink and its orange, each stepped until any two of the
47
+ six are told apart, also by a reader who does not tell red from green, and until each
48
+ stands out on a light ground and on a dark one. No orange among them, which is the point's,
49
+ and no yellow, which at this lightness is a brown. They are marks, never words. */
50
+ --sc-series-1: #285fd4;
51
+ --sc-series-2: #0097ac;
52
+ --sc-series-3: #bb2b76;
53
+ --sc-series-4: #fa4655;
54
+ --sc-series-5: #946ff2;
55
+ --sc-series-6: #04933e;
56
+ /* The figures that line up: for a column of numbers, a scale, a table. */
51
57
  --sc-numeric: "tnum" 1, "lnum" 1;
52
58
 
53
59
  /* The ground: a pale field, one gradient from the top. The default UI provides the field's
package/src/vocabulary.ts CHANGED
@@ -94,6 +94,18 @@ export const PERSON_KINDS = ["person", "agent"] as const;
94
94
 
95
95
  export type PersonKind = (typeof PERSON_KINDS)[number];
96
96
 
97
+ /**
98
+ * What the first sign-in of an agent account is held to, under a sign-in at a git host, where
99
+ * a login is whoever's registers it (ADR-0126): `account`, the host said which account the
100
+ * login is when the account was added, and that account alone is let in as it, whatever it is
101
+ * called by then; `member`, the host did not say, and the account is let in where the
102
+ * organization at the host has the login as a member at that sign-in; `login`, the host did not
103
+ * say and the console reads no organization there, so whoever holds the login is let in.
104
+ */
105
+ export const FIRST_SIGN_INS = ["account", "member", "login"] as const;
106
+
107
+ export type FirstSignIn = (typeof FIRST_SIGN_INS)[number];
108
+
97
109
  /**
98
110
  * What holds a session (ADR-0084): a browser a member is signed in on, or the command signed in
99
111
  * as the account itself, which presents its session as a token is presented and is held to what
@@ -305,9 +317,10 @@ export const SKILLS_STATUSES = [
305
317
  export type SkillsStatus = (typeof SKILLS_STATUSES)[number];
306
318
 
307
319
  /**
308
- * Where the rules that hold on a board come from (ADR-0023): the console's own, since the
309
- * organization wrote none; a page the organization or the project wrote; or none, for a
310
- * project that adds nothing to the workspace's.
320
+ * What stands beside the console's rules (ADR-0023, ADR-0120), in the words the API has had
321
+ * from the start: `reference`, the console's rules alone, since the organization adds
322
+ * nothing; `written`, a page the organization or the project wrote, which adds to them; or
323
+ * `none`, for a project that adds nothing to the workspace's.
311
324
  */
312
325
  export const RULES_SOURCES = ["reference", "written", "none"] as const;
313
326
 
@@ -0,0 +1,8 @@
1
+ # __TITLE__: the pages
2
+
3
+ The pages of my desk: a console of my own, built from `@skillcdn/console` and served from this machine by `console serve`, with the token my `console` command holds, which the pages never see. It is the organization's console with the pages I add to it. There is one, mine, and it is empty until I say what I want to see: an agent working in this desk builds it from what I ask. Of the desk the pages read `../records` and nothing else.
4
+
5
+ - **Build it:** `npm install`, then `npm run build`, which says nothing of its own where it went well and leaves the pages in `dist/`.
6
+ - **Serve it:** `npm run serve`, which is `console serve dist --records ../records`, then open `http://127.0.0.1:11197/`. Ctrl+C stops it.
7
+ - **Change it:** `src/page.tsx` is my page, and its comments say what a page is given, what it may read and what it is built from (`node_modules/@skillcdn/console/README.md`, "Pages of your own"); `src/main.tsx` lists the pages, and a page more is a file beside it and an entry more. `npm run dev` beside `console serve --records ../records` shows a change as it is made.
8
+ - **Keep it current:** `@skillcdn/console` here is at the version of the `console` command that wrote these files; raise the two together.
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta name="color-scheme" content="light" />
7
+ <title>__TITLE__</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "desk-web",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "description": "The pages of my desk: a console of my own, served from this machine by console serve.",
6
+ "type": "module",
7
+ "scripts": {
8
+ "dev": "vite",
9
+ "build": "tsc -p tsconfig.json --noEmit && vite build --logLevel warn",
10
+ "serve": "console serve dist --records ../records"
11
+ },
12
+ "dependencies": {
13
+ "@skillcdn/console": "__VERSION__",
14
+ "pretendard": "1.3.9",
15
+ "react": "^19.3.1",
16
+ "react-dom": "^19.3.1"
17
+ },
18
+ "devDependencies": {
19
+ "@types/react": "^19.3.0",
20
+ "@types/react-dom": "^19.3.0",
21
+ "@vitejs/plugin-react": "^6.2.1",
22
+ "typescript": "^7.0.2",
23
+ "vite": "^8.3.5"
24
+ }
25
+ }
@@ -0,0 +1,24 @@
1
+ import { createConsole, customPageHref } from "@skillcdn/console";
2
+ // The styles ship with the package; the build bundles them next to the script.
3
+ import "@skillcdn/console/console.css";
4
+ // The Korean face of the console's pages, in the subsets a browser fetches as it needs them;
5
+ // the package's stylesheet names it first and falls through to the system's faces.
6
+ import "pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css";
7
+ import { page } from "./page.js";
8
+
9
+ // The pages of this desk: a console of my own, built from the package and served from this
10
+ // machine by `console serve`. It is the organization's console with the pages I add to it:
11
+ // `pages` below lists them, each written in a file beside this one, and a page more is a file
12
+ // more and an entry more. page.tsx is the first, and says what a page is given, what it may
13
+ // read and what it is built from.
14
+
15
+ const container = document.getElementById("root");
16
+ if (container === null) {
17
+ throw new Error("the page has no #root element");
18
+ }
19
+ // My page is what this console opens on: the address without a path is the page's.
20
+ if (window.location.pathname === "/") {
21
+ window.history.replaceState(null, "", customPageHref(page.key));
22
+ }
23
+ // What the page is called until the server names the board: the title index.html gives it.
24
+ createConsole({ title: document.title, pages: [page] }).mount(container);