@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
@@ -35,16 +35,19 @@ The runner is the program on an agent account's machine that keeps its agent goi
35
35
  "runner": "0.5.0",
36
36
  "product": { "driver": "claude", "name": "Claude Code", "version": "2.1.0", "tried": true },
37
37
  "offers": { "models": ["opus", "sonnet"], "efforts": ["low", "medium", "high"], "steer": true, "images": true, "resume": true },
38
- "running": { "model": "opus", "effort": "high" }
38
+ "running": { "model": "opus", "effort": "high" },
39
+ "sources": [{ "name": "slack", "state": "connected", "since": "2026-11-20T08:32:00.000Z" }]
39
40
  }
40
41
  ```
41
42
 
42
43
  - `state` is what the runner says of its agent: `running`, the session open or ready to open; `stopped`, by a supervisor's `stop`; `refused`, the model refused and the agent waits; `failed`, the product could not start or sign in. `unheard` is the console's word, never the runner's.
43
44
  - `reason` is one of a short list, never what was said: `started`, `resumed`, `reset`, `completed` (a turn completed after a wait) for `running`; `stop` for `stopped`; `model_refused` for `refused`; `sign_in`, `start`, `crashed` for `failed`.
44
- - `delivered` is the number of the last signal the runner handed to the product, `0` for none.
45
+ - `delivered` is the number of the last signal that is delivered, every one before it too, `0` for none ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): the product said it took it, the session's record says it was never read or was let go, or it was the runner's own to act on, a `stop` or a `set` say. One handed to a product that has not said it took it is not delivered yet.
45
46
  - `session` is the open session's id, or `null`.
46
47
  - `machine`, `runner`, `product`, `offers` and `running` say where it runs, with what, what the product offers to choose from, and what the open session runs with; each a line, bounded. `tried` says whether the driver was tried with that version of the product. A model or a level of effort is letters, digits and `. _ : [ ] -`, beginning with a letter or a digit, up to 120 characters, and up to 50 of each are offered. The runner holds what its product says to that before it says it on: a name in another shape is left out of `offers`, and is `null` in `running`, as a version that is no line is `null`; the runner says in a line how many it left out when it starts. One name the console would refuse does not cost the account its heartbeat.
47
48
 
49
+ - `sources` says how each wake source the runner keeps beside the console's own stands ([ADR-0144](../adr/0144-a-runner-takes-its-runner-json-as-it-changes-and-says-how-its-wake-sources-stand.md)): its module's name, `connected`, `waiting` or `failing`, since when, and as `why` a line of the source's own where it does not listen, a secret the store does not hold or the name of what ended it. Up to ten. The console keeps what was last said with the runner's row and answers it to the account's supervisors and the account; a runner of before says none, and none stand for it.
50
+
48
51
  The console answers what the account's settings are and where the record stands:
49
52
 
50
53
  ```json
@@ -53,7 +56,7 @@ The console answers what the account's settings are and where the record stands:
53
56
 
54
57
  `latest` is the number of the newest signal of the account; `delivered` the most the console was ever told was delivered, and never more than it sent, whatever a runner says, which is where a runner that lost its own count goes on from; `settings` is what a supervisor chose, `null` each where nothing was, and where the product does not offer it any more: a choice is kept among what the product offers, so one that this heartbeat's `offers` do not list, where they list any, is the product's own again from then on, since a product refuses at every turn a model it does not have, another product's once the desk's driver changed say; `state` is how the console has the agent, which is `stopped` whatever the runner says while a supervisor's `stop` stands. The console keeps when it last heard from the runner and claims nothing more ([ADR-0020](../adr/0020-the-console-does-not-claim-an-agent-is-at-work-a-run-says-when-it-was-last-heard-from-and-a-new-run-takes-over.md)).
55
58
 
56
- A change of state is `agent.state_changed` in the workspace's feed, with `login`, `handle`, `state`, `was` and `detail`, the reason: by the supervisor whose `stop` stopped it, by the account for what its runner reported, by nobody for an account the worker found unheard, which it does for one whose runner was last heard from more than five minutes ago.
59
+ A change of state is `agent.state_changed` in the workspace's feed, with `login`, `handle`, `state`, `was` and `detail`, the reason; a runner has the feed told twenty changes of its account's state within an hour at most ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)), a change beyond that being kept with the account, which its page reads, and told by a later heartbeat once the hour has room, as how the account stands then, with `was` what the feed was told last: by the supervisor whose `stop` stopped it, by the account for what its runner reported, by nobody for an account the worker found unheard, which it does for one whose runner was last heard from more than five minutes ago.
57
60
 
58
61
  ## Signals
59
62
 
@@ -102,14 +105,15 @@ Hold the release until the migration is checked.
102
105
  - What came from outside the console, a messenger's message say, is carried in a block fenced longer than any run of fence characters it holds, after a header that names where it came from.
103
106
  - `tell`, `wake` and the words of a `restart` or a `reset` are sent at the product's priority for "after the current tool call" where the driver can steer, after the turn otherwise; `interrupt` stops the turn first.
104
107
  - The files of a signal are read by the runner at `GET /api/v1/agents/me/signals/<number>/files/<id>` and written in the desk, at `work/inbox/<number>/<name>`, for the account alone, before the message is handed over ([ADR-0095](../adr/0095-a-tell-carries-files-of-any-kind-handed-to-the-agent-in-its-desk.md)). The name is made one segment: what a file system reads as a path, a drive or a pattern becomes `_`, as does a comma, which a product that takes pictures by their paths reads as the end of one; a bracket becomes a parenthesis; a name a system keeps for a device (`NUL`, `CON`) gets `_` before it; and a second file of a name, whatever the case of its letters, is numbered. The message says each on a line of its own after the signal's words, with the session's mark, since it is the runner that says where a file is: `[console k3f9a2 · attached file: work/inbox/8812/export.csv · text/csv · 2.0 KB]`, `[console k3f9a2 · attached picture, shown to you: work/inbox/8812/screen.png]`, or that it could not be handed over, with whom to ask. A picture is handed to the product as a picture too where the product takes one, as its bytes or by its path in the desk as the driver says (`can.imageFiles`); where it takes none the line says so and tells the agent to open the file. The pictures are kept with what the agent was sent in the session's transcript; the event names the other files as `files` and the pictures the product was not handed as pictures as `unseen`, which the agent's page says to whoever sent them. The files stay in the desk, the agent's to remove.
105
- - What the agent was sent is written on the session's record when the product takes it ([ADR-0098](../adr/0098-a-message-is-on-the-record-where-the-agent-took-it-and-an-interrupt-may-carry-no-words.md)): at once where the product was waiting for a message; where a turn was under way, when the driver says `taken`, after the tool call under way or with the turn after, so that the record reads in the order the agent read, and a supervisor's words wait in sight on the agent's page until then; and at the latest when the turn completes. What a session ends on before the product took it is written then with `unread: true`; a product that did not start, or was not signed in, took nothing, and what it was sent is sent again. A `reset` gives it one more try, in the new conversation: where the product does not start with it again, it is let go, with a `status` on the session's record that names the signals and says so in the runner's line, and is sent no more, so that no signal stands in the way of every one after it. Whoever sent it says it again where it still matters.
108
+ - What the agent was sent is written on the session's record when the product takes it ([ADR-0098](../adr/0098-a-message-is-on-the-record-where-the-agent-took-it-and-an-interrupt-may-carry-no-words.md)): at once where the product was waiting for a message; where a turn was under way, when the driver says `taken`, after the tool call under way or with the turn after, so that the record reads in the order the agent read, and a supervisor's words wait in sight on the agent's page until then; and at the latest when the turn completes. What a session ends on before the product took it is written then with `unread: true`; a product that did not start, or was not signed in, took nothing, and what it was sent is sent again. So it is with a product that had taken nothing of its session when a supervisor's `stop`, `restart` or `reset` ended it, which had not started for all the runner knows: what it was handed is handed over again in the session that follows, after a `stop` once the agent is restarted. And so it is where the runner itself ends, stopped by its service or for an update: what its product had not taken is not written as never read, and the console sends it again to the runner started after. Either way a `status` on the session's record names those signals and says that they are sent again. A first message, which the record holds since it was handed over, is named the same way in a `status` that says it was not taken, where it is let go with a product that ended by itself before taking it. What a product says while its session is being ended is heard before the session is closed: a message it took then is taken, and the conversation it named is the one gone on with. A `reset` gives it one more try, in the new conversation: where the product does not start with it again, it is let go, with a `status` on the session's record that names the signals and says so in the runner's line, and is sent no more, so that no signal stands in the way of every one after it. Whoever sent it says it again where it still matters.
109
+ - A signal is delivered when the record holds what became of it, and not when it is handed over: when the driver says `taken` or the turn completes, when the session ends and the record says it was never read, or when it is let go. What waits to be handed over, and what a product was handed and has not said it took, is not delivered: a product that did not start, followed by the runner's own end, loses nothing, since the runner started after is sent again, from the console's record, every signal after the last one delivered. A runner that ends by itself, with a session open whose product was handed a message and had not taken it, counts nothing of that message either, whatever the product was at: the record of that session does not say it was never read, and the runner started after is sent it again. Signals are counted in order, so one the runner acted on itself is delivered once none before it is still owed.
106
110
  - Signals are grouped, never capped: the runner holds what arrives within 1.5 seconds and delivers one message, the signals in order under a header each, the same `source` and `key` merged with a count; beyond 20 signals or 16,000 characters a message, the rest is said as "N more" with the command that reads them (`console agent signals`).
107
111
 
108
112
  What the agent itself does on the board raises no wake to it.
109
113
 
110
114
  ## The board's wakes
111
115
 
112
- The board wakes an agent account by rules ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 10), which the worker role applies from where it read the feed to, as the plugins' hooks are dispatched, keeping its place a batch of events at a time, and at the event before one whose wakes could not be sent; an `api` role that carries the worker's work applies them itself. Each wake is a signal on the account's record, a `wake` from the `board` whose `by` is whoever did what woke it and whose `key` says what it is about, so that the runner says several wakes of one thing once:
116
+ The board wakes an agent account by rules ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 10), which the worker role applies from where it read the feed to, as the plugins' hooks are dispatched, keeping its place a batch of events at a time, and at the event before one whose wakes could not be sent; an `api` role that carries the worker's work applies them itself. It reads no further than the feed's settled end, the highest number below which no change is still under way ([ADR-0125](../adr/0125-a-feed-is-read-no-further-than-its-settled-end-which-its-writers-hold-a-lock-for.md)), so that an event numbered before another and committed after it wakes whom it should once it is there. An event whose wakes fail in twelve passes in a row, a minute of them, is passed over, with an error in the console's log that names the event's number and kind, so that one wake that can never be sent does not hold every wake after it. Where changes follow each other without a gap, or one is stuck, the feed does not settle and the wakes wait for it: nothing is lost, and the job says so in the log once it has lasted thirty seconds. Each wake is a signal on the account's record, a `wake` from the `board` whose `by` is whoever did what woke it and whose `key` says what it is about, so that the runner says several wakes of one thing once:
113
117
 
114
118
  | What happened | Who is woken | `key` |
115
119
  |---|---|---|
@@ -121,7 +125,7 @@ The board wakes an agent account by rules ([ADR-0085](../adr/0085-a-runner-on-th
121
125
  | A decision is answered | The agent account that raised it | `decision:<id>` |
122
126
  | The workspace's `handle`, `domain` or `services` change | Every agent account that was there, from the `console` and by nobody | `services` |
123
127
 
124
- "Today" is the day in the workspace's time zone, UTC where it has none: a task planned for a later day wakes nobody, and appears in that day's briefing. A task is read as it stands when the worker reads the event, which is what the agent will find. What an account did itself wakes it for nothing; an account that is out is woken for nothing; a task that is put away wakes nobody. An account is woken only for what it may still read: for a task while it may work in the task's project, and for a decision while the decision reaches it, so that an account taken off a private project, and still named on a task or a decision there, is told neither a title nor an answer of it. A wake says what it is about in the console's own words, with the command that reads it (`console task 412 --project ops`, `console decision <id>`): a task's title and a decision's question on one line, and never what a comment says, which the agent reads on the board as a comment.
128
+ "Today" is the day in the workspace's time zone, UTC where it has none: a task planned for a later day wakes nobody, and appears in that day's briefing. A task is read as it stands when the worker reads the event, which is what the agent will find. What an account did itself wakes it for nothing, leaving its own run among it; a task the console itself gave back as ready, ending a run it had not heard from, wakes nobody, since an agent whose run dies in silence would be sent to take it again every twelve hours ([ADR-0114](../adr/0114-the-end-of-a-run-leaves-no-task-at-work-behind-it.md)); an account that is out is woken for nothing; a task that is put away wakes nobody. An account is woken only for what it may still read: for a task while it may work in the task's project, and for a decision while the decision reaches it, so that an account taken off a private project, and still named on a task or a decision there, is told neither a title nor an answer of it. A wake says what it is about in the console's own words, with the command that reads it (`console task 412 --project ops`, `console decision <id>`): a task's title and a decision's question on one line, and never what a comment says, which the agent reads on the board as a comment.
125
129
 
126
130
  The first wake of an account is its onboarding task ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), by the first rule: the console writes the task ready, with the account at work on it, when the account is made ([rest.md](rest.md#get-apiv1agents-and-post-apiv1agents)), and the wake waits on the record until a runner first connects.
127
131
 
@@ -131,8 +135,18 @@ The first wake of an account is its onboarding task ([ADR-0088](../adr/0088-an-a
131
135
 
132
136
  The worker reads the feed every five seconds, a hundred events at a time, one pass at a time whatever the number of processes: the place it read to is a row a pass locks. An event's wakes are sent before the place moves past it, so a pass that ends halfway sends an event's wakes again and never loses one. A workspace that had a history when the rules came begins at the feed's end, and a new one at its beginning.
133
137
 
138
+ ## An account's own wakes
139
+
140
+ An agent account raises a wake for itself ([ADR-0145](../adr/0145-an-agent-account-wakes-itself-now-or-at-a-moment-to-come.md)), signed in as itself, on its command or in its browser, never with a token it made: `POST /api/v1/agents/me/wakes` with `{ "text"?, "at"?, "key"? }`, on the command `console agent wake me` ([cli.md](cli.md#agent-accounts)).
141
+
142
+ - **Now**, with no `at`: a signal of the account's record, `wake`, `source: "person"`, sent by the account, with its words as it said them. Thirty within an hour, counted apart from what its runner raises from a wake source and together with those kept for later as they are raised; one more is `signal.too_many` (429), with `retry-after`. A browser's session raises one from the console's own pages alone, as it changes anything. The answer is `{ "signal": { "number": 9 }, "kept": null }`.
143
+ - **For a moment to come**, with `at`, a moment within thirty-one days: kept, and no signal yet. One stands under a `key` at a time, `wake` where none is said, up to 40 lowercase letters, digits and hyphens; a second under the key takes the first one's place, and an account keeps twenty (`wake.too_many`, 409). The answer is `{ "signal": null, "kept": { "key", "at", "text", "createdAt" } }`. `GET /api/v1/agents/me/wakes` lists what is kept, the soonest first, as `GET /api/v1/agents/<handle>/wakes` does for a supervisor; `DELETE /api/v1/agents/me/wakes/<key>` takes one away (`wake.not_found` where there is none).
144
+ - **The worker raises each** when its moment has come, in the pass that sends the briefings, once: the row is taken in the transaction that writes the signal, which is the account's own, as one raised now is. One with no words says "The moment you asked to be woken at has come." The hour's bound holds here too: a wake that is due while the hour is full stays kept, and a later pass raises it when the hour has room. One that cannot be raised costs no other.
145
+ - **A wake and nothing else.** No other kind is sent this way, and nothing on the board wakes its own author.
146
+
134
147
  ## A session's life
135
148
 
149
+ - What a runner writes is bounded by the hour ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): the events a session takes (60,000), the sessions an account begins (60), the wakes its runner raises (600) and the changes of state the feed is told (20). The runner holds back what the console refused as more than the hour takes, and says so once in a line: a session's events are kept, within what the runner keeps, and sent again after a minute, then after twice as long each time, a quarter of an hour at most, and at the session's end whatever the hold, where what the console still refuses goes with the session, the runner saying in a line how many events were let go; a session that could not be begun is tried again after the cool-down, with what was to be handed over still undelivered.
136
150
  - There is one main session per account. The runner begins one when there is something to deliver and none is open: `POST /api/v1/agents/me/sessions` with what it runs (`product`, `model`, `effort`, `resumed`, `machine`, as the heartbeat spells them), answered `201` with the session, its id in it. A session begun while another of the account is open takes that one over: the console ends the older as taken over, as a run takes over a run.
137
151
  - The conversation is the product's, resumed from the session before where the driver can (`resume`) and `conversation` in `runner.json` is `continuous`.
138
152
  - A session ends when a supervisor stops or restarts the agent, when the process dies, or when the machine restarts: `POST /api/v1/agents/me/sessions/<id>/end` with `{ "how" }` (`stopped`, `restarted`, `reset`, `crashed`, `exited`), answered with the session; one that ended already stays as it ended, `taken_over` among it, which is the console's word. The next signal begins the next.
@@ -140,7 +154,7 @@ The worker reads the feed every five seconds, a hundred events at a time, one pa
140
154
  - A supervisor's `stop` ends the session, and nothing is delivered until a `restart` or a `reset`: what arrives meanwhile is kept and delivered then, grouped. `restart` begins the next session with the same conversation; `reset` with a new one, the agent told in its first message that it was reset, by whom, and that what it was doing is on the board and in its desk.
141
155
  - `set` is applied through the driver at once where the product takes it in a running session. Where the product takes its model and its effort when it starts, the open session ends as `restarted` as soon as no turn is under way, and the next, which the next signal begins, goes on with the conversation and runs with them; the heartbeat's `running` says what the session runs with.
142
156
  - A `set` is a supervisor's. The account itself is given none: what an agent changes of its own model or effort is what its product lets a session change, in the product's own way, and the console adds nothing to it and takes nothing from it. Where the product says what the session runs with afterwards, the driver says so and the page shows it (`running`).
143
- - The runner keeps a few things between its own restarts, in `work/runner-state.json` under the desk: the number of the last signal it handed over, the conversation to go on with, and the driver that conversation was begun under. A conversation is a product's own: where `runner.json` names another driver since, the conversation kept is let go and a new one begins, which the runner says in a line, since a product asked to go on with another's conversation fails at every turn. Without the file it goes on from what the console answers its first heartbeat.
157
+ - The runner keeps a few things between its own restarts, in `work/runner-state.json` under the desk: the number of the last signal delivered, the conversation to go on with, and the driver that conversation was begun under. A conversation is a product's own: where `runner.json` names another driver since, the conversation kept is let go and a new one begins, which the runner says in a line, since a product asked to go on with another's conversation fails at every turn. Without the file it goes on from what the console answers its first heartbeat.
144
158
  - **The runner takes an update of its command by itself** ([ADR-0101](../adr/0101-a-runner-ends-for-an-update-of-its-command-and-its-service-starts-it-again.md)). At every heartbeat it reads the version of the package it runs from, as the package's manifest on the machine says it now. Another version than its own, seen twice, a heartbeat's interval apart, is an update; a manifest that does not read says nothing, and two looks a moment apart, as when the agent's state changes, are one. From then on nothing more is handed to the product, the turn under way ends in its own time, the open session ends as `restarted`, with a status that says why, and the runner ends with exit code `0`. A supervisor's `interrupt` still stops the turn under way meanwhile; its words are not handed over, and reach the runner started after, as everything sent meanwhile does. The service starts it again, as after any end, on the new command; the next signal begins a session that goes on with the conversation, and what was sent meanwhile is sent again from the console's record. A runner started by hand ends the same way, says so, and is started again by hand. The runner starts no process in its own place and installs nothing itself.
145
159
  - A runner the console refuses as too old (`client.outdated`) says so on its own output, with the command that installs the console's version the way this command was installed, and, once, to its agent in the open session, with that command: the agent installs it, and the runner takes the update as above. That message is a turn of the agent's as any other is, so the update is taken when the agent is done with it and never while the install runs. The command names the console's version where the console said one that is a version, and `latest` otherwise. Where the agent cannot, it tells whom it reports to. The runner keeps trying meanwhile.
146
160
  - Nobody is at the terminal: what the product's policy does not allow is denied and recorded, and the tool by which the product would ask a person at its terminal is taken away.
@@ -157,11 +171,11 @@ Built on the console's side ([rest.md](rest.md#the-sessions-and-the-transcript))
157
171
 
158
172
  - `n` numbers the events of the session from 1, one after another. The console answers `{ "last": 41 }`, the number of the session's last event now. An event whose number the session has already is left as it is, whatever is sent, so a batch may be sent twice; a batch out of order is `transcript.out_of_order`, and one that would leave a gap is `transcript.gap`, with the number expected in its words, so that whoever reads from a number on misses nothing: the runner asks the session where it stands and sends from there. A batch is at most 100 events and 2 MiB; nothing is added to a session that is over (`transcript.session_over`). The runner sizes a batch as it is sent, a text counted as JSON spells it. One the console still refuses as too large (`request.too_large`) is sent again in halves, never the same batch twice; an event that is too large alone has its text cut, with a word that says so, then goes without its facts, then is let go, so that nothing waits behind it.
159
173
  - `kind`: `wake` and `person` (what the agent was sent, a signal's number in `data.signal`), `assistant`, `thinking`, `tool_call`, `tool_result`, `permission` (asked and how it was answered), `status` (the product compacted, the model changed, the session began or ended, a turn completed, which is `turn: "completed"` in its `data` and what tells whoever reads the session as it happens that the agent is done) and `error`. A `person` or a `wake` the session ended on before the product took it carries `unread: true`.
160
- - `text` is what a person reads, up to 256 KiB of UTF-8, and whatever the product said: markup, escapes and control characters are kept as they are and shown as text. The console keeps the beginning in the row, up to 16 KiB cut between characters, and the whole on the month's shelf of the blob store where it is longer; an event read back says `whole`, the size of the whole, and `.../events/<n>/text` reads it.
161
- - `data` is a small object of facts about the block: up to 32 of them, each a word, a number, a yes or no, or nothing, under a name of up to 64 characters, a word up to 1,000. Never nested, shown as text and never run.
174
+ - `text` is what a person reads, up to 256 KiB of UTF-8, and whatever the product said: markup, escapes and control characters are kept as they are and shown as text. What the agent said (`assistant`) is the one kind read otherwise, as Markdown rendered to elements, in which raw HTML stays text, a link leads only to the web and a picture named there is a link and is not fetched ([ADR-0141](../adr/0141-what-an-agent-said-is-read-as-markdown-and-a-sub-agent-under-the-call-that-started-it.md)); what is kept is the text as it came. The console keeps the beginning in the row, up to 16 KiB cut between characters, and the whole on the month's shelf of the blob store where it is longer; an event read back says `whole`, the size of the whole, and `.../events/<n>/text` reads it.
175
+ - `data` is a small object of facts about the block: up to 32 of them, each a word, a number, a yes or no, or nothing, under a name of up to 64 characters, a word up to 1,000. Never nested, shown as text and never run. An event a sub-agent made says so there ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): `parent` is the id of the tool call that started the sub-agent, as that call's `tool_call` event carries it in `id`, and `subagent` what the call called the sub-agent, up to 80 characters, where the driver read the call: under the `claude` driver the kind of sub-agent the call names and what it says the sub-agent is for, the kind first (`Explore: Read src/ of acme/web`), so that two of one kind at once are told apart, or the one of the two the call names, or the tool where it names neither. An event of the session's own carries neither, and so does every event of a driver whose product does not say whose a line is. The `tool_call` that starts a sub-agent says so too ([ADR-0141](../adr/0141-what-an-agent-said-is-read-as-markdown-and-a-sub-agent-under-the-call-that-started-it.md)): `starts` is what the call calls the sub-agent, the same name its events carry as `subagent`, so that whoever reads the session knows of a sub-agent before its first event arrives; a call that starts none carries no such fact. The agent's page reads a sub-agent's events under the call that started it, as that call's steps, what it said among them folded as a thought is, and reads off the record how the sub-agent stands: done or failed by the call's `tool_result`, ended where a turn completed or the session ended before one came, at work otherwise, with how long it ran and how many tools it called; while a turn is under way it says how many are at work. An event whose `parent` names a call the events read do not hold is shown where it stands, under the sub-agent's name.
162
176
  - `files` names the pictures of the block, up to 8, by the ids their upload answered: `POST /api/v1/agents/me/sessions/<id>/files`, a form with one part `file`, a PNG, a JPEG, a GIF or a WebP up to the bound on a file, answered `{ "id", "name", "size", "contentType" }`. An event names its own session's pictures and nothing else (`transcript.unknown_file`); a session hands in at most 60 a minute (`transcript.too_fast`).
163
- - Before an event leaves the machine the runner takes out of it every value of the account's secret store, as it is and in the encodings a value is commonly carried in, and the beginning of one that a text a driver cut ends in.
164
- - What waits while the console is away is kept in the runner's memory, up to 20,000 events and 64 MiB of them with their pictures. Beyond that the oldest are let go, and one `status` event in the place of the first says how many (`let_go` in its `data`), the numbers running on from it, so that the record has no hole nobody is told of. The runner says once that the transcript waits, and once that it is sent again; a heartbeat the console does not take and a stream of signals that ends are said once the same way, for as long as they last. On Windows the runner's own lines are appended to `runner.log` in the desk's `work/`, which nothing cuts: whoever keeps the machine looks at its size.
177
+ - Before an event leaves the machine the runner takes out of it every value of the account's secret store, as it is and in the encodings a value is commonly carried in. A text a driver shows a part of, a tool's input above all, is cut after that and not before ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): a session is handed what cuts (`cut`), which takes the values out of the beginning of the text, as far as the cut and one form of a value beyond it, and never shows the last characters it looked through, so that no part of a value stands at the cut and a megabyte of input is not read for a line of four thousand characters. What a sub-agent is called is cut so too. The end of what a product wrote on its standard error, which says why its process ended, is kept through what keeps the end of a text (`cutEnd`), the same from the other side: the last 4,000 characters, the values taken out of them and of one form before them first, and never the first characters looked through; the process keeps the last 16,000 and begins them with the mark of a cut (`…`) where it let the beginning go, and nothing of a value that what it kept begins inside is shown. The beginning of a value that a text cut by anything else ends in, of four characters or more, is taken out as well.
178
+ - What waits while the console is away is kept in the runner's memory, up to 20,000 events and 64 MiB of them with their pictures. Beyond that the oldest are let go, and one `status` event in the place of the first says how many (`let_go` in its `data`), the numbers running on from it, so that the record has no hole nobody is told of. The runner says once that the transcript waits, and once that it is sent again; a session that ends with events the console did not take, being away or refusing them for the hour, is let go with them, and the runner's line says how many and why, since nothing of a session is sent after its end; a heartbeat the console does not take and a stream of signals that ends are said once the same way, for as long as they last. On Windows the runner's own lines are added to `runner.log` beside the task's definition, which the task's shell puts aside when it holds four megabytes, as `runner.log.1`, with three put aside kept and the oldest let go ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): sixteen megabytes at most, whatever the runner writes and however long it runs. The log itself is moved first, to a spare name, `runner.log.0`, and the ones put aside are moved on only once that worked: a log that something reads and lets nobody move is added to as it is, with every log put aside left where it was, and is put aside at the first line after it is let go. A machine set up before this takes it when its files are written again (`console agent setup --refresh`, and the task started anew).
165
179
 
166
180
  The console deletes none of it. `GET /api/v1/agents/<handle>/sessions` lists the sessions, the newest first, and `.../sessions/<id>/events?after=` reads the events, a page at a time, for the account's supervisors and for the account; `.../sessions/<id>/events/stream?after=` is the same as it happens, each `event` under its number, and an `end` with the session once it is over and everything of it was sent. A run the account's command begins while a session is open names it (`sessionId`), so that what the agent did for a task is found in its transcript.
167
181
 
@@ -171,7 +185,7 @@ An administrator seals an event that must not be kept, `POST /api/v1/agents/<han
171
185
 
172
186
  ## The desk
173
187
 
174
- The desk is the agent account's own repository ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), and the directory the runner is started in. The package carries its template (`deskFiles` in `@skillcdn/console/runner`), which setup writes when the desk does not exist yet and the account pushed none before ([cli.md](cli.md#setting-a-machine-up)); [`examples/agent-desk`](../../examples/agent-desk/AGENTS.md) is what it writes for an invented account, and a test holds the two equal. Five files, and nothing that prescribes what a product already does for itself:
188
+ The desk is the agent account's own repository ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), and the directory the runner is started in. The package carries its template (`deskFiles` in `@skillcdn/console/runner`), which setup writes when the desk does not exist yet and the account pushed none before ([cli.md](cli.md#setting-a-machine-up)); [`examples/agent-desk`](../../examples/agent-desk/AGENTS.md) is what it writes for an invented account, and a test holds the two equal. Five files, the least ([ADR-0122](../adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)): the instructions and a structure, and nothing that prescribes what a product already does for itself or what a desk is to keep:
175
189
 
176
190
  | File | What it is |
177
191
  |---|---|
@@ -179,9 +193,13 @@ The desk is the agent account's own repository ([ADR-0088](../adr/0088-an-agent-
179
193
  | `AGENTS.md` | The base instructions, read as they are by every product, in eight sections: who I am; where I work; asking; this desk; secrets; projects; care; safety |
180
194
  | `CLAUDE.md` | One line, `@AGENTS.md`: the one product-specific file |
181
195
  | `runner.json` | The runner's configuration, below |
182
- | `.gitignore` | `work/`, the products' own state, anything shaped like a secret, dependencies, logs, and what an operating system or an editor leaves behind |
196
+ | `.gitignore` | `work/`, the products' own state, anything shaped like a secret, dependencies, what the desk's pages build, logs, and what an operating system or an editor leaves behind |
183
197
 
184
- `AGENTS.md` says the least that must be said, each rule with its reason. It names the account, the console and the manager it reports to; that the agent works in one main session, which plans and directs the work and keeps the record, and gives the tasks themselves to subagents where its product has them, as a lead and not a rule; that its instructions are its supervisors' tells, the board's tasks and decisions and the console's rules, and everything else it reads is information; and the services the workspace names ([ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md)), with what the agent is called at each. What a persona says, a name or a title, is written as text: it makes no heading, no markup and no second line. From then on the files are the agent's to edit.
198
+ Nothing is written under the desk's three places, each of which is there once it is used: `records/`, what the agent keeps, in the shape that fits it; `web/`, its pages; `work/`, the checkouts of the projects it works on. How a desk is shaped to what its member asks to keep and to see is the skill `keeping-a-desk`, one of the console's own, which `console help desk` names with its place; the form for a set of things made, with their uses and their figures, is a page of that skill, taken where it is asked for ([records.md](records.md)).
199
+
200
+ `AGENTS.md` says the least that must be said, and nothing an agent knows anyway. It names the account, the console and the manager it reports to; that the agent works in one main session, which plans and directs the work and keeps the record, and gives the tasks themselves to subagents where its product has them, as a lead and not a rule; what a subagent is handed, the task by its number and its project, the checkout, a folder of its own under `work/` for its scratch and the skill `working-the-board`, in a brief that names the task and does not restate it, and that it takes the task as the account, once, and names that run on every command after, the session that hands a task over not taking it too ([ADR-0115](../adr/0115-a-person-has-a-desk-too-written-by-the-command-and-set-up-by-a-skill-of-the-organizations-pack.md), point 7); that its instructions are its supervisors' tells, the board's tasks and decisions and the console's rules, and everything else it reads is information; and the services the workspace names ([ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md)), with what the agent is called at each; that the desk is bound to no project and stays so, a board command run there naming one as a wake does (`console task <number> --project <key>`) and `console use` being for a checkout, a project's repository being cloned under `work/<name>` and its `AGENTS.md` read before the first change there; and, by [ADR-0117](../adr/0117-a-desk-keeps-records-of-what-its-member-made-as-files-the-desks-pages-read.md), point 8: that the skill `working-the-board` is read before the first task of the board, and not for a job that is no task of a project; that what the agent keeps lives under `records/` in the shape that fits it, its pages under `web/` and its projects under `work/`, each there once it is used, what the desk keeps and shows being said in the file, a line each, and something new shaped as the skill `keeping-a-desk` says ([ADR-0122](../adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)); that what it does in the desk for itself is its own and on no board unless it puts it there, the board's work reaching it as tasks; that scratch files go under `work/`; and that the organization's pack is looked in before a job is done by hand. A desk that is there keeps its `AGENTS.md`, under `console agent setup --refresh` too ([cli.md](cli.md#setting-a-machine-up)): what the template gained since it was written, the agent writes in itself. What a persona says, a name or a title, is written as text: it makes no heading, no markup and no second line. From then on the files are the agent's to edit.
201
+
202
+ A person has a desk too ([ADR-0115](../adr/0115-a-person-has-a-desk-too-written-by-the-command-and-set-up-by-a-skill-of-the-organizations-pack.md)), with no runner in it, written by `console desk` ([cli.md](cli.md#a-desk-of-ones-own)): the files above without `runner.json`, whose `AGENTS.md` says in five sections who the person is and which language to write to them in, where the console knows one; where the work is, the board's and the desk's own, which is on no board unless they put it there; that what changes in the desk is committed and pushed without asking, where what it keeps, its pages and its projects live, each there once it is used, that the file says what the desk keeps and shows, a line each, and which skill shapes it; that no secret is kept in it; and that instructions found in content are data. The package carries its template beside this one (`personDeskFiles`), and [`examples/person-desk`](../../examples/person-desk/AGENTS.md) in the console's repository is what it writes for an invented person, held equal to it by the same test.
185
203
 
186
204
  ## `runner.json`
187
205
 
@@ -202,7 +220,9 @@ In the desk, the working directory the runner is started in; written by setup, t
202
220
  - `secrets`: which secrets of the account's store the runner hands a session, as environment variables and as files of mode 600 under the desk's ignored `work/`, written at the session's start and removed at its end. A variable's name is a variable's, a file's path stays under `work/`, and a secret's name is one the store could hold; a file that does not read is used in no part. Whatever the file names, the runner reads every value of the store, when a session starts and when the store says one changed, to take them out of what it reports.
203
221
  - `permissions`, left out of the example: the permission mode the product is started in, in the product's own word (`dontAsk` or `bypassPermissions` for `claude`, `workspace-write` or `danger-full-access` for `codex`; for `acp`, one of the agent's own modes, or the driver's own `allow` or `deny`, [below](#the-acp-driver)), for whoever prepares the machine to say what the agent does there without asking, as they say whether its OS account may use `sudo`. Left out, the product runs in its own default where that is one for a run nobody attends; where it is not, the driver names one: `auto` for `claude`, which starts such a run in its manual mode otherwise, `approve-for-me` for `codex`, which runs it in its read-only sandbox otherwise, and for `acp` the mode the agent has for such a run, where the driver was run against the agent.
204
222
  - `autosave`: at the end of every session the runner commits and pushes the desk ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), a net under the agent's own commits: where the desk is a repository, everything it does not ignore is staged, and nothing under `work/` whatever the desk ignores, committed where anything changed, as `Autosave at the end of a session`, and pushed. The push is handed the token the account's store keeps as `git.token`, where it keeps one and the workspace names a git host: answered by a credential helper in the environment of that one command, to that host alone, on no command line and in no file, as the clone of the desk was. Git asks nobody at a terminal, what it prints is not kept, and a step that does not succeed is said in the runner's line by how git ended; the runner goes on. `false` turns it off.
223
+ - `browser`, left out of the example: `"chrome"`, the browser the product's own browser tool works in ([ADR-0140](../adr/0140-a-machine-is-given-its-least-and-the-agent-does-the-rest-itself.md)), for a driver whose product has such a tool and turns it on when it is started: the `claude` driver starts the product with `--chrome`, without which a run nobody attends has no browser tool. A name of a short list, and never words for a product's command line; a driver whose product has no such tool takes nothing of it. Setup writes it into a new desk where it found the product and its browser.
205
224
  - A runner started where there is no `runner.json` runs with these defaults and hands the session no secret.
225
+ - **A file that changed is taken by itself** ([ADR-0144](../adr/0144-a-runner-takes-its-runner-json-as-it-changes-and-says-how-its-wake-sources-stand.md)). The runner looks at it with every heartbeat. One that reads and is another than the runner was started with, seen so twice a heartbeat apart, has the runner end between two turns, the open session ended as one restarted and a `status` event saying why, and the command begins the next runner with the file as it is, in the same process and with the conversation kept. The look goes on until then, and a file put back, or one that stopped reading, ends nothing; where the file stops reading between the runner's end and the next one's beginning, the next begins with the file as it last read. One that does not read changes nothing: the runner goes on with what it had, says so once in its own lines, and tells the agent what is wrong with it in a message of its own, under a header that carries the session's mark (`[console <mark> · runner]`), once for each thing that is, in the session that is open or the next one that opens.
206
226
 
207
227
  ## Wake sources
208
228
 
@@ -221,22 +241,24 @@ interface WakeHost {
221
241
  /** Raises a wake: the console records it, and it reaches the agent in order, as someone else's words. */
222
242
  raise(wake: { key: string; text: string }): Promise<void>;
223
243
  log(line: string): void;
244
+ /** Says how the source stands, for the account's page: listening, or not yet, with why in a few words. */
245
+ stands(state: "connected" | "waiting", why?: string): void;
224
246
  fetch(url: string, init: { method: string; headers: Record<string, string>; signal: AbortSignal }): Promise<{ json(): Promise<unknown> }>;
225
247
  socket(url: string): { messages: AsyncIterable<string>; send(text: string): void; close(): void };
226
248
  wait(ms: number, signal: AbortSignal): Promise<void>;
227
249
  }
228
250
  ```
229
251
 
230
- The runner starts each source when it starts and keeps it for as long as it runs: a source that ends is started again after five seconds where it held for a minute, and after twice as long each time, up to five minutes, where it keeps ending at once; its line says the source's name and a short name of why, and never what was said. A source tells the agent nothing itself: what it raises goes to the console, `POST /api/v1/agents/me/signals`, which records it as a `wake` from the `messenger`, by nobody, and it comes back on the runner's stream in order, with the same key merged as any wake is. Its words reach the agent as someone else's, in a block fenced longer than any run of fence characters they hold ([How a signal reaches the product](#how-a-signal-reaches-the-product)).
252
+ The runner starts each source when it starts and keeps it for as long as it runs: a source that ends is started again after five seconds where it held for a minute, and after twice as long each time, up to five minutes, where it keeps ending at once; its line says the source's name and a short name of why, and never what was said. How each stands is said with the heartbeat ([ADR-0144](../adr/0144-a-runner-takes-its-runner-json-as-it-changes-and-says-how-its-wake-sources-stand.md)): `waiting` before a source has said anything and where it says it waits, `connected` where it says so, `waiting` again once a source that listened has ended with no error, and `failing`, with that short name, where it ended in an error. A source tells the agent nothing itself: what it raises goes to the console, `POST /api/v1/agents/me/signals`, which records it as a `wake` from the `messenger`, by nobody, and it comes back on the runner's stream in order, with the same key merged as any wake is. The console takes 600 wakes a runner raises itself within an hour ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): past that it answers `signal.too_many`, and the runner lets go of what its sources raise for a minute, then for twice as long each time it is refused again, a quarter of an hour at most, saying so once. Its words reach the agent as someone else's, in a block fenced longer than any run of fence characters they hold ([How a signal reaches the product](#how-a-signal-reaches-the-product)).
231
253
 
232
254
  ### The `slack` wake source
233
255
 
234
- One app for one agent account ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 2), which receives over its Socket Mode connection the events the agent's own member of the workspace can see. Written from the messenger's own documentation of Socket Mode and of the Events API, and not run against a workspace yet; the app is made from the manifest the skill `running-an-agent` carries.
256
+ One app for one agent account ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 2), which receives over its Socket Mode connection the events the agent's own member of the workspace can see. Written from the messenger's own documentation of Socket Mode and of the Events API, and run in a workspace on 2026-11-20, where direct messages woke an agent account; the app is made from the manifest the skill `running-an-agent` carries.
235
257
 
236
258
  - **The token** is the app's own for the socket (`xapp-...`), kept by the account in its store as `slack.app_token`. Where there is none the source says so and looks again in five minutes.
237
259
  - **The connection** is asked for with `POST https://slack.com/api/apps.connections.open`, the token in the `authorization` header, and the address answered is opened only where it is the messenger's own socket (`wss://`, a host of `slack.com`). Every envelope that arrives is acknowledged by its `envelope_id`, before it is read; a `disconnect` ends the connection, and the runner starts the source again.
238
260
  - **What wakes the agent**: a message in a direct conversation, and a message that mentions the member the event was delivered for (the first of the event's `authorizations`), from anyone but that member; an app's own `app_mention` too. An edit, a join, a deletion, a reaction and what the agent said itself wake nobody.
239
- - **The wake** has the key `slack:<channel>:<thread>`, the thread being the message's own where it begins one, so that what is said in one thread is one thing to the agent; and says where it was said and by which member, with the message's words after it, cut at 4,000 characters. The agent reads the thread with the messenger's own tool.
261
+ - **The wake** has the key `slack:<channel>:<thread>`, the thread being the message's own where it begins one, so that what is said in one thread is one thing to the agent; and says where it was said and by which member, with the message's words after it, cut at 4,000 characters. A direct message outside any thread is said as a message of the conversation, by the conversation's id, and names a thread only where it was written in one: said to be in a thread, it was answered in one. The agent reads the thread with the messenger's own tool.
240
262
  - **An event is data**: read by schema, with ids and moments spelled as the messenger spells them and bounded lengths; what does not read wakes nobody, and nothing of an event is run.
241
263
 
242
264
  ## The service
@@ -258,11 +280,13 @@ interface Service {
258
280
  }
259
281
  ```
260
282
 
283
+ **The machine is held awake while the runner runs** ([ADR-0140](../adr/0140-a-machine-is-given-its-least-and-the-agent-does-the-rest-itself.md)), by the runner itself and not by its service, so that a runner started by hand holds it too: a helper of the system's own, started when the runner starts and ended when its process is gone, which needs no administrator and changes no setting. `/usr/bin/caffeinate -i -s -w <pid>` on macOS; on Windows a script handed to `powershell.exe` encoded, which asks the system to stay awake (`SetThreadExecutionState`) and waits for the runner's process; `systemd-inhibit --what=idle:sleep --mode=block` around a wait for that process on Linux. The runner says in its own lines whether it holds. A sleep someone asks for and a lid that is closed are not held off.
284
+
261
285
  `launchd`, for macOS, plans a launch agent of the agent's own OS account: the unit `~/Library/LaunchAgents/ai.skillcdn.console.runner.plist`, which starts the runner in the desk when the account logs in (`RunAtLoad`) and again whenever it ends (`KeepAlive`), with the `PATH` setup ran with, so that the product is found where it was, and its lines in `~/Library/Logs/ai.skillcdn.console.runner.log`; then `launchctl bootout gui/<uid>/ai.skillcdn.console.runner`, which fails where none was loaded, and `launchctl bootstrap gui/<uid> <unit>`. Nothing of it needs an administrator's rights, and so the runner runs while the account is logged in at the machine: that the account is logged in when the machine starts is for whoever prepares it. The unit holds no secret: the runner signs in with what the command keeps. What a path or a login holds is written as text of the unit. It is written from the system's own documentation and was not run on a Mac yet.
262
286
 
263
287
  `systemd-user`, for Linux, plans a unit of the agent's own OS account, kept by that account's own instance of systemd: the unit `~/.config/systemd/user/skillcdn-console-runner.service`, which starts the runner in the desk and starts it again ten seconds after it ends (`Restart=always`), with the `PATH` setup ran with; then `loginctl enable-linger <uid>`, and `systemctl --user daemon-reload`, `enable` and `restart` of the unit, so that a unit written again is the one that runs. Its lines are in the account's journal (`journalctl --user -u skillcdn-console-runner.service`). It needs no administrator's rights. The account's systemd is there while the account has a session, or always once lingering is on for it, which also starts it with the machine: the account asks for lingering itself, which Ubuntu allows, and where a system keeps that for an administrator the service is loaded all the same and setup says what is left to do and who does it. The system answers that request before the account's systemd is there, so the command after it is tried for ten seconds; and that systemd is reached through the folder the system keeps for the account (`XDG_RUNTIME_DIR=/run/user/<uid>`), which a shell entered from another account is not told of. A refresh that wrote the unit again runs `systemctl --user daemon-reload`, which ends nothing that runs: without it the system goes on with the unit it read before. What a path or a login holds is written as words of the unit: on one line, quoted, with what the system reads as a specifier or a variable said as itself. A dollar sign is a variable to the system in the command line alone, and is said twice there; the desk's directory, which is the rest of its line, and the `PATH` carry one as it is. Run on Ubuntu 24.04 with systemd 255 (2026-11-11, under WSL), from the command installed with npm and an invitation's line: the unit loaded, the runner heard from, started again ten seconds after its process was ended from outside, lingering turned on by the account itself, and a unit changed by hand written again and read. Not seen there: a restart of the machine, an OS account with no session at all, and a product, none being signed in on that system.
264
288
 
265
- `task-scheduler`, for Windows, plans a scheduled task of the agent's own OS account, called by whose it is, `SkillCDN Console Runner (<account>)`, since a task is the machine's and one list holds every account's: its definition `~\AppData\Local\skillcdn-console\runner-task.xml`, then `schtasks /Create /TN <name> /XML <definition> /F`, which registers it in place of the one that was there, `schtasks /End`, which ends the one that runs, and `schtasks /Run`. The task starts when the account logs on, as the account that registered it, with none of the limits a task has by itself: it is not ended after three days, not kept from a battery, and not run below everything else. Nothing of it needs an administrator's rights, and so the runner runs while the account is logged on at the machine, as on macOS: the system refuses an account a task of its own that runs with nobody logged on, and that the account is logged on when the machine starts is for whoever prepares it. The system starts a task once and in a window, gives it the account's environment, keeps nothing it writes, and ends it by ending the one process it started. So what the task starts is one line of the system's own shell, in no window, which starts the runner in the desk with the `PATH` setup ran with, adds what it writes to `~\AppData\Local\skillcdn-console\runner.log`, starts it again ten seconds after it ends, and tells it which process keeps it (`CONSOLE_RUNNER_KEEPER`, that process's number): a runner told so looks for that process every two seconds and stops when it is gone, so that ending the task ends the runner. A runner that was left all the same, the same program started with the same words to their end, is ended with what it started before another begins: one runner for the account. A desk that is gone is a line of the log, and nothing is started. A refresh that wrote the definition again registers it, which ends nothing that runs: the next start is with what was written. What a path or a login holds is written as words of that shell, each whole, with a percent sign said by its number, since the system fills a variable in where it reads a name between two; and as text of the definition in the letters every encoding shares, a letter beyond them by its number, since the system reads a definition that names no encoding in the machine's own. A quote, which a task's command line does not carry, and a line longer than one carries are why no task is written. Run on Windows 11 (2026-11-12), from an invitation's line against a console on the same machine, in an account of the administrators' group from a shell without their rights: the task was registered and started and the runner heard from, and a turn of Claude Code ran under it; the runner's process ended from outside, it ran again ten seconds later; the task ended, the runner was gone within five seconds and nothing started it again until the task was run; a definition changed by hand and registered so was written and registered again by `--refresh`, with the runner left running; and a task that would run with nobody logged on was refused. Not seen there: the account logging on, which is what starts the task from then on, a restart of the machine, an account with no administrator's rights at all, and an account of a domain.
289
+ `task-scheduler`, for Windows, plans a scheduled task of the agent's own OS account, called by whose it is, `SkillCDN Console Runner (<account>)`, since a task is the machine's and one list holds every account's: its definition `~\AppData\Local\skillcdn-console\runner-task.xml`, then `schtasks /Create /TN <name> /XML <definition> /F`, which registers it in place of the one that was there, `schtasks /End`, which ends the one that runs, and `schtasks /Run`. The task starts when the account logs on, as the account that registered it, with none of the limits a task has by itself: it is not ended after three days, not kept from a battery, and not run below everything else. Nothing of it needs an administrator's rights, and so the runner runs while the account is logged on at the machine, as on macOS: the system refuses an account a task of its own that runs with nobody logged on, and that the account is logged on when the machine starts is for whoever prepares it. The system starts a task once and in a window, gives it the account's environment, keeps nothing it writes, and ends it by ending the one process it started. So what the task starts is one line of the system's own shell, in no window, which starts the runner in the desk with the `PATH` setup ran with, adds what it writes to `~\AppData\Local\skillcdn-console\runner.log`, a line at a time, putting the log aside first where it is full, starts it again ten seconds after it ends, and tells it which process keeps it (`CONSOLE_RUNNER_KEEPER`, that process's number): a runner told so looks for that process every two seconds and stops when it is gone, so that ending the task ends the runner. A runner that was left all the same, the same program started with the same words to their end, is ended with what it started before another begins: one runner for the account. A desk that is gone is a line of the log, and nothing is started. A refresh that wrote the definition again registers it, which ends nothing that runs: the next start is with what was written. What a path or a login holds is written as words of that shell, each whole, with a percent sign said by its number, since the system fills a variable in where it reads a name between two; and as text of the definition in the letters every encoding shares, a letter beyond them by its number, since the system reads a definition that names no encoding in the machine's own. A quote, which a task's command line does not carry, and a line longer than one carries are why no task is written. Run on Windows 11 (2026-11-12), from an invitation's line against a console on the same machine, in an account of the administrators' group from a shell without their rights: the task was registered and started and the runner heard from, and a turn of Claude Code ran under it; the runner's process ended from outside, it ran again ten seconds later; the task ended, the runner was gone within five seconds and nothing started it again until the task was run; a definition changed by hand and registered so was written and registered again by `--refresh`, with the runner left running; and a task that would run with nobody logged on was refused. Not seen there: the account logging on, which is what starts the task from then on, a restart of the machine, an account with no administrator's rights at all, and an account of a domain.
266
290
 
267
291
  ## The driver
268
292
 
@@ -300,9 +324,9 @@ A `DriverEvent` is a transcript event before its number (`kind`, `text`, `data`,
300
324
 
301
325
  The Claude Code binary, unmodified, over its streaming JSON input and output, as its own documentation and its own help have them. What they state is relied on; what they leave unsaid was seen by running the driver against the binary, 2.1.321 first, and is held by fixtures written down from what it printed, in tests that call nobody. What was not seen there, a refusal and a sign-in that ran out, is read as the documentation gives it. A version the driver was not tried with is started all the same and said on the Live page.
302
326
 
303
- - **Started** as `claude -p --input-format stream-json --output-format stream-json --verbose --replay-user-messages`, in the desk, with `--model` and `--effort` where the account's settings name them, `--resume <id>` where a conversation is resumed, `--permission-mode` and `--permission-prompts none`: nobody is at the terminal. The mode says what runs without asking. A product is started in its own default wherever that default is one for a run nobody attends, and its driver then names nothing; this product's is not: with nobody at its terminal it starts in its manual mode, in which whatever needs approval, a file written among it, is denied. So the mode is `auto` where `runner.json` names none (`permissions`), in which the product's own classifier reviews each action; a build that starts such a run in `auto` by itself needs nothing named. Where the product starts in another mode than the one asked for, as where the account or the model has no `auto`, the session's first event says so. What would still prompt is denied, the agent is told not to try it again, and the tool that asks a person at the terminal is taken away. A mode named that is none of the product's is a mistake in the desk's file and never leave to do more: the session starts in `dontAsk`, which allows the least, and its denials say so in the transcript. No file of settings is written for the product: its own settings in the agent's OS account stay its operator's and the agent's. The process stays open, reading one message a line from its standard input.
327
+ - **Started** as `claude -p --input-format stream-json --output-format stream-json --verbose --replay-user-messages`, in the desk, with `--model` and `--effort` where the account's settings name them, `--resume <id>` where a conversation is resumed, `--permission-mode` and `--permission-prompts none`, and `--chrome` where `runner.json` names `chrome` as its `browser`: nobody is at the terminal. The mode says what runs without asking. A product is started in its own default wherever that default is one for a run nobody attends, and its driver then names nothing; this product's is not: with nobody at its terminal it starts in its manual mode, in which whatever needs approval, a file written among it, is denied. So the mode is `auto` where `runner.json` names none (`permissions`), in which the product's own classifier reviews each action; a build that starts such a run in `auto` by itself needs nothing named. Where the product starts in another mode than the one asked for, as where the account or the model has no `auto`, the session's first event says so. What would still prompt is denied, the agent is told not to try it again, and the tool that asks a person at the terminal is taken away. A mode named that is none of the product's is a mistake in the desk's file and never leave to do more: the session starts in `dontAsk`, which allows the least, and its denials say so in the transcript. No file of settings is written for the product: its own settings in the agent's OS account stay its operator's and the agent's. The process stays open, reading one message a line from its standard input.
304
328
  - **A message** is one line: `{"type":"user","uuid":"...","message":{"role":"user","content":[...]},"parent_tool_use_id":null,"priority":"next"}`, the content a text block and an image block for each picture (`base64`, of the kinds the product takes), under an id of the driver's, which the product says back when it takes the message off its input. `priority` is the product's own: `next` is read when the tool calls under way finish, in the same turn, or starts a turn where none is under way; `now` is read in a turn of its own, and the product stops the turn under way for it only once its tool calls finish, however long they run. An `interrupt` with its words is therefore two lines: the request that stops the turn and the tool call in it at once, `{"type":"control_request","request_id":"...","request":{"subtype":"interrupt"}}`, which is what the product's own client library sends and does nothing where no turn is under way; and then the message, with `now`.
305
- - **What it reads**, a line each: `system` with `init`, which the product writes when it starts and again at every turn (the conversation's id as `session_id`, the model, the product's version, its permission mode), becomes a `status` event and the driver's `conversation` the first time, and again only where what it says is something else; `assistant` becomes `assistant`, `thinking` and `tool_call` events, a block each; `user` carrying tool results becomes `tool_result` events, a picture among them an attachment; `system` with `compact_boundary`, `api_retry` or `permission_denied` becomes `status`, `error` and `permission`; `result` ends a turn, with the denials of `permission_denials` the product did not say before as `permission` events. Whatever else it writes, what its commands are, how much of its allowance is left, what became of a message, is left where it is.
329
+ - **What it reads**, a line each: `system` with `init`, which the product writes when it starts and again at every turn (the conversation's id as `session_id`, the model, the product's version, its permission mode), becomes a `status` event and the driver's `conversation` the first time, and again only where what it says is something else; `assistant` becomes `assistant`, `thinking` and `tool_call` events, a block each, but for a thinking block with no words, which the product sends with its signature alone and which becomes no event; `user` carrying tool results becomes `tool_result` events, a picture among them an attachment; `system` with `compact_boundary`, `api_retry` or `permission_denied` becomes `status`, `error` and `permission`; `result` ends a turn, with the denials of `permission_denials` the product did not say before as `permission` events. A line of a sub-agent names the tool call that started the sub-agent (`parent_tool_use_id`, as the product's documentation has it; not seen run by the driver's fixtures): its events carry that id as `parent`, and as `subagent` the kind of sub-agent the call's input named (`subagent_type`), else what it said the sub-agent is for, else the tool's name. The call itself, a tool named `Agent` or `Task` or one whose input names a kind of sub-agent, carries the same name as `starts`. Whatever else it writes, what its commands are, how much of its allowance is left, what became of a message, is left where it is.
306
330
  - **When the agent is done** with what it was sent: `turn_completed` follows a result only when no message the driver wrote still waits to be taken. A message written while a tool call runs is read in the same turn, and the two have one result; a message written as a turn was ending starts a turn of its own, and so does the message a turn was stopped for, so the result before it is not the agent done. A turn that was stopped ends in a result that calls itself an error and says how it ended (`terminal_reason`, `aborted_tools` or `aborted_streaming`): a `status`, and no error. A build that says no message back is read without, every result the end of a turn.
307
331
  - **An agent that cannot go on.** A result whose `stop_reason` is the model's own word for an answer it would not give, `refusal`, is `cannot_go_on` with `refused` and `model_refused`. A result or an exit that says the product is not signed in, its login expired or its key is refused is `failed` with `sign_in`: the product's words for it are its own and no contract, so they are read by pattern, which is the first thing a version's fixtures hold. A process that does not start is `start`, and one that dies mid-turn `crashed`. What was sent to a product that did not start, or is not signed in, is kept and tried again; a turn that ended with any other error is a turn that ended, and the agent takes the next message.
308
332
  - **The model and the effort** are the product's aliases and levels, as its documentation lists them, `opus`, `sonnet`, `haiku` and `fable`, and `low`, `medium`, `high`, `xhigh` and `max`; the binary offers no list of its own to ask, and its version is read from `claude --version`. They are given when the process starts, so a `set` is applied at the next session: the open one ends as soon as no turn is under way, and the next goes on with the same conversation.
@@ -316,7 +340,7 @@ The Codex binary, unmodified, run with nobody at its terminal: `codex exec --jso
316
340
  - **A turn** is started as `codex exec --json --skip-git-repo-check`, in the desk, with `-m` and `-c model_reasoning_effort` where the account's settings name them, and the message on its standard input; a turn of a conversation gone on with as `codex exec resume ... <id>`. The desk is the agent's own, a repository or not one yet. A model, an effort or an id that is no plain word is left out, so that nothing the driver is handed becomes an option of the product's.
317
341
  - **The mode** is said at every turn, since a turn keeps nothing of the mode the turn before ran in, in the product's own words: its three sandboxes, `read-only`, `workspace-write` and `danger-full-access`, in which whatever the sandbox does not allow is asked of nobody and refused; and `approve-for-me`, in which the desk may be written and the product's own reviewer answers what would otherwise be asked of a person. With nobody at its terminal the product runs in `read-only`, where a file written is refused, so the driver names `approve-for-me` where `runner.json` names none. A mode named that is none of these starts the turn in `read-only`.
318
342
  - **No message is taken in a turn** (`steer: false`). One that arrives while a turn runs waits for the turn to end and is the next turn's, read with whatever else waited; one that is to be read now, an `interrupt` with its words, ends the turn's process first, and the product goes on from there knowing that what it was doing was cut. `turn_completed` is said when a turn ended and nothing waits.
319
- - **What it reads**, a line each: `thread.started`, written at every turn, names the conversation and becomes a `status` event the first time; an `item` that is an `agent_message` becomes `assistant`; a `command_execution` or a `file_change` becomes `tool_call` when it starts and `tool_result` when it completes, a command with its output and what it ended in; `turn.failed` and `error` become an `error`, said once though the product writes it twice. Its reasoning, a tool of a server and a search are read as its documentation gives them, and were not seen.
343
+ - **What it reads**, a line each: `thread.started`, written at every turn, names the conversation and becomes a `status` event the first time; an `item` that is an `agent_message` becomes `assistant`; a `command_execution` or a `file_change` becomes `tool_call` when it starts and `tool_result` when it completes, a command with its output and what it ended in; `turn.failed` and `error` become an `error`, said once though the product writes it twice. Its reasoning, a tool of a server and a search are read as its documentation gives them, and were not seen. An item names no agent it is of, so no event says a sub-agent made it.
320
344
  - **An agent that cannot go on.** A product that is not there to start is `failed` with `start`. An error that says it is not signed in is `failed` with `sign_in`, read by pattern: its words for it were not seen, since that takes signing it out. A turn's process that ends with no word of how the turn ended fell over, and the agent cannot go on by itself: before a turn started it is `start`, as when the product does not find the conversation again (`thread/resume failed: no rollout found`, seen run), and what was sent is kept and tried again, which a `reset` cures; after one started it is `crashed`, and nothing is sent again, since what the turn was at is not known. A turn the product itself says failed, `turn.failed`, is a turn that ended, and the agent takes the next message. The product has no word of its own for an answer the model would not give.
321
345
  - **The model and the effort** are each turn's, so a `set` is taken from the next turn on, with no session ended for it. What the product offers is asked of the product: `codex debug models`, the models it lists for a person to choose from and their levels of effort; its version is read from `codex --version`.
322
346
  - **Pictures** are handed to it as files (`images: true`, `imageFiles: true`): each as `-i <path>`, the path the runner wrote it at from the desk, after `exec` or `exec resume` and before `--json`, since the product's option takes several values and would take what follows it for one. Only a path under `work/inbox/<number>/` goes on the command line. Seen with the binary (0.167.0), on a first turn and on one gone on with.
@@ -333,7 +357,7 @@ Any product that speaks the Agent Client Protocol, version 1: the command `runne
333
357
  - **The session** is opened with `session/new`, the desk as its directory and no MCP server of the runner's. A conversation is gone on with where the agent can: `session/resume` where it resumes, `session/load` where it only loads, with what it replays then left unread; an agent that does neither begins a new one, and the transcript says so. A conversation the agent cannot go on with, one it has no more or never kept, is said in the transcript with the agent's reason, and a new one begins, as one begins where the conversation kept was another driver's; an agent that says it is not signed in is said as that. The id of the session is the conversation's.
334
358
  - **A turn** is `session/prompt`: what arrived together as one prompt, each message a block of text, with its pictures as `image` blocks where the agent takes them (`promptCapabilities.image`). The session says whether it does once the agent has said so, and the runner then hands a picture over as a file alone, saying so; for a message sent before that, the driver adds a line saying how many were not shown and where they are in the desk. How the turn ended is the answer's `stopReason`: `end_turn` is a turn completed; `cancelled` one that was stopped; `max_tokens` and `max_turn_requests` are said as a `status` and are a turn that ended; `refusal` is the model's, `refused`; an error on the request is said, and is a turn that ended. A turn the agent itself ends as cancelled where it was refused leave, which nobody stopped, is said as that.
335
359
  - **No message is taken in a turn** (`steer: false`). One that arrives while a turn runs is the next turn's; one that is to be read now, and an `interrupt`, say `session/cancel` first, and the agent answers the turn as cancelled. A method of an agent's own for a message in a turn, beside the protocol, is not spoken.
336
- - **What it reads** are the `session/update` notifications. The agent's message and its thought arrive in pieces and are kept until whole: an `assistant` and a `thinking` block each, ended by whatever comes that is something else. A `tool_call` is a `tool_call` event, its title with its input, said once the input is known: an agent may open a call before what it is called with is whole and say that in an update, so a call is said at the update that brings its input, at the next thing said of it where it has none, and before whatever else is said; a call opened under an id whose call is done is another call, so that an agent that numbers its calls anew at every turn has each of them on the record; the update that completes it or fails it a `tool_result`, with what the call held last: an update names what changed and leaves the rest as it was, so what was said when the call began is its result where its end says the status alone. The result is the text of its content, a file by its path with what became of it (written, changed, removed), and its pictures handed in; where the content holds no text, what the call's command printed, which an agent may send beside the protocol while the command runs (`_meta.terminal_output`, whole, or `_meta.terminal_output_delta`, a piece at a time, kept to 200,000 characters); and its output as data where there is neither. A `plan` is a `status`. A choice the agent changed is kept, and said to the runner where it is the model or the effort. The rest, the commands it offers, its mode, what it used and what a person typed said back, is none of the transcript's. What the agent tells beside its work, a warning or an error of its own, is taken as a `notice` (the client says that it takes them, `session.notices`, or an agent says such a thing as its own words in the middle of an answer): a `status`, or an `error` where the agent says it is one. A block is its words, without the empty lines an agent may begin or end it with.
360
+ - **What it reads** are the `session/update` notifications. The agent's message and its thought arrive in pieces and are kept until whole: an `assistant` and a `thinking` block each, ended by whatever comes that is something else. A `tool_call` is a `tool_call` event, its title with its input, said once the input is known: an agent may open a call before what it is called with is whole and say that in an update, so a call is said at the update that brings its input, at the next thing said of it where it has none, and before whatever else is said; a call opened under an id whose call is done is another call, so that an agent that numbers its calls anew at every turn has each of them on the record; the update that completes it or fails it a `tool_result`, with what the call held last: an update names what changed and leaves the rest as it was, so what was said when the call began is its result where its end says the status alone. The result is the text of its content, a file by its path with what became of it (written, changed, removed), and its pictures handed in; where the content holds no text, what the call's command printed, which an agent may send beside the protocol while the command runs (`_meta.terminal_output`, whole, or `_meta.terminal_output_delta`, a piece at a time, shown to 200,000 characters and kept a little beyond, so that it is cut once the secrets are out of it); and its output as data where there is neither. The protocol names no sub-agent, so no event says one made it. A `plan` is a `status`. A choice the agent changed is kept, and said to the runner where it is the model or the effort. The rest, the commands it offers, its mode, what it used and what a person typed said back, is none of the transcript's. What the agent tells beside its work, a warning or an error of its own, is taken as a `notice` (the client says that it takes them, `session.notices`, or an agent says such a thing as its own words in the middle of an answer): a `status`, or an `error` where the agent says it is one. A block is its words, without the empty lines an agent may begin or end it with.
337
361
  - **What the agent asks leave for** (`session/request_permission`) is answered at once, since nobody is at a terminal, and recorded as a `permission` event. `permissions` in `runner.json` says how, in the driver's own two words, there being no one product to take a word from: `allow`, the one where it names none, takes the option that allows the call once, since an agent refused everything does no work; `deny` takes the one that refuses it once, for an agent that is to do only what its own mode lets it without asking. An agent that offers neither is answered that the request was cancelled. What an agent does without asking is its own mode's, and the protocol has a session say its modes and set one: a choice of the category `mode`, or `session/set_mode` ([ADR-0091](../adr/0091-an-agent-over-the-protocol-runs-in-a-mode-of-its-own-which-the-desk-or-the-driver-names.md)). The mode the other two drivers name, in which the product works without asking and a review of its own holds back what looks unsafe, is the agent's to have under whatever name it gives it; the protocol has no word for it. So `permissions` may also name one of the agent's own modes: the session is set to it, and what the agent still asks is refused, since the mode is what it may do with nobody there. Where `permissions` names none, an agent the driver was run against is set to the mode it has for a run nobody attends, and what it still asks is refused: `agent`, its automatic review, for the adapter that puts Codex behind the protocol, which in that mode asked nothing in the runs seen, a file written beside the desk included, and in `read-only` asked leave to write; `auto` for the adapter that puts Claude Code behind it, which starts in it where the model has one, and in its manual mode, `default`, asked leave to write. Any other agent runs in its own mode and is allowed each call once, as above: the driver cannot tell an agent that asks only for what its review held back from one that asks for everything, so whoever prepares its desk names its mode. A mode named that the agent does not offer is a mistake in the desk's file: the transcript says so with the modes the agent offers, the agent runs in its own, and what it asks is refused. When an agent gains such a mode, naming it in `runner.json` is all its desk needs; the driver's list of what each agent calls it (`UNATTENDED_MODES` in `acp.ts`, beside the versions tried) is where it becomes the default, once it was run.
338
362
  - **The model and the effort** are the session's choices of the categories `model` and `thought_level` (`configOptions`): what the agent offers is what the account's settings choose from, each set with `session/set_config_option` when the session opens and when a `set` arrives, in a running session (`set: true`). What the session runs with is said when it opens and again whenever that changed, by a `set` taken or by the agent itself, so that the heartbeat's `running` is what the agent runs with now and not what its session began with. What it offers is asked without a session to run: the product is started, asked what it is (`agentInfo`, whose name is what the runner calls it and whose version is its version), a session is opened for its choices and closed again where the agent closes one (`sessionCapabilities.close`), and it is left.
339
363
  - **An agent that cannot go on.** A product that is not there to start, or that opens no session in two minutes, is `failed` with `start`. The protocol's own code for a request it takes only when signed in (`-32000`), and an error that says so, is `failed` with `sign_in`; what an error says is its message with what it carries beside it (`data`), since an agent may say no more than that something failed and put why there. A process that ends by itself is `crashed`, or `start` where it never answered. What the driver cannot tell is a turn the agent ended as completed while saying, in its own words, that it failed, as the adapter read does with an error of its model: that is a turn completed, with the agent's words in the transcript.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillcdn/console",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "What a custom SkillCDN console is built from: the API client and schemas, the components, the composition of the default console, and the console command agents work the board with.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/skillcdn/console#readme",
@@ -35,6 +35,14 @@
35
35
  "types": "./dist/api.d.ts",
36
36
  "default": "./dist/api.js"
37
37
  },
38
+ "./charts": {
39
+ "types": "./dist/charts.d.ts",
40
+ "default": "./dist/charts.js"
41
+ },
42
+ "./icons": {
43
+ "types": "./dist/icons/index.d.ts",
44
+ "default": "./dist/icons/index.js"
45
+ },
38
46
  "./cli": {
39
47
  "types": "./dist/cli/cli.d.ts",
40
48
  "default": "./dist/cli/cli.js"
@@ -90,7 +98,8 @@
90
98
  "vitest": "^5.1.0"
91
99
  },
92
100
  "dependencies": {
93
- "@skillcdn/core": "^0.5.1",
101
+ "@skillcdn/cli": "^0.5.3",
102
+ "@skillcdn/core": "^0.5.3",
94
103
  "react-markdown": "^10.1.0",
95
104
  "remark-gfm": "^4.0.1",
96
105
  "zod": "^4.6.7"
@@ -5,7 +5,7 @@ license: MIT
5
5
  compatibility: A shell with Node.js 24 or newer and npm or pnpm, and an agent that reads and writes files. For looking at the pages against a board, the console command signed in by a person. A browser the agent can drive is optional. No key of the agent's own is needed, and it never sees a token.
6
6
  metadata:
7
7
  author: skillcdn
8
- version: "1.9"
8
+ version: "1.12"
9
9
  skillcdn:
10
10
  translations:
11
11
  ko:
@@ -38,7 +38,7 @@ Nothing here restates them: they are the contract, current at the version instal
38
38
 
39
39
  1. **The package's README**: `node_modules/@skillcdn/console/README.md` once installed, [`packages/console/README.md`](/packages/console/README.md) in the console's repository. Every export by layer and what each takes, the styles, the languages, and "A console of your own" with two of the four files to write.
40
40
  2. **The types**: `node_modules/@skillcdn/console/dist/index.d.ts`, `api.d.ts`, `cli/cli.d.ts` and `web.d.ts`: the exact props of every component and the shape of every answer, with the comment that says what each is for.
41
- 3. **The sources**, shipped with the package under `src/`: `console.tsx` (how the default console composes the pages from the components, routes, and loads its data), `components/*.tsx` (each component and what it renders), `data.ts` (how the workspace and a project are loaded and kept current by the stream), `styles/` (the tokens, `--sc-*`, in `tokens.css`; every class, `sc`-prefixed, a part each under `parts/` with the catalogue of them in `README.md`, and the pages' own under `pages/`; `styles/console.css` is their order, joined into the one `console.css` a console loads), `i18n/en.ts` (every word the pages show, keyed as a pack is). The repository's tests (`packages/console/src/components/components.test.tsx`, `src/console.test.tsx`), not shipped in the package, show what each piece renders, for tests of one's own.
41
+ 3. **The sources**, shipped with the package under `src/`: `console.tsx` (how the default console composes the pages from the components, routes, and loads its data), `components/*.tsx` (each component and what it renders), `data.ts` (how the workspace and a project are loaded and kept current by the stream), `styles/` (the tokens, `--sc-*`, in `tokens.css`; every class, `sc`-prefixed, a part each under `parts/` with the catalogue of them in `README.md`, the charts for figures among them, and the pages' own under `pages/`; `styles/console.css` is their order, joined into the one `console.css` a console loads), `i18n/en.ts` (every word the pages show, keyed as a pack is). The repository's tests (`packages/console/src/components/components.test.tsx`, `src/console.test.tsx`), not shipped in the package, show what each piece renders, for tests of one's own.
42
42
  4. **The REST API**: [docs/specs/rest.md](/docs/specs/rest.md), in the package at `docs/specs/rest.md`: every route, what it takes and answers, who may ask, and the codes of its refusals; for a script. **The command line**: [docs/specs/cli.md](/docs/specs/cli.md), for `console serve`.
43
43
  5. **The default console itself**, `apps/console/web/` in the console's repository: the page, the script, the build and the compiler's settings, with the brand, the fonts and the icons wired in. Its four files are quoted in [the-default-console.md](references/the-default-console.md), kept identical to them by the repository's check, for an agent that has the skill and not the repository; a console of one's own copies their shape.
44
44
  6. **The architecture**: [docs/architecture.md](/docs/architecture.md) for how the parts fit, and the [decisions](/docs/adr/README.md), both documents of the console's repository, read through the connection that served this skill and not in the package; ADR-0014 says how a person's own console reaches the organization's. Not needed for a re-skin.
@@ -61,7 +61,7 @@ Each phase produces something the person can look at and ends with one line to t
61
61
 
62
62
  ### Phase 1: Start from the default console
63
63
 
64
- Produces the **plan** and the first build. Install first, in the new folder, or in `console-ui/` of the deployment repository, so that the README, the types and the sources are at hand for the plan: the install writes only `package.json`, the lockfile and `node_modules`, and the plan is shown before any file of the console is written. For the organization's console the package is installed at the version the deployment pins: `CONSOLE_REF` in `deploy/console.env` of the deployment repository is the commit of a release tag `@skillcdn/console@<version>`, and `npm install @skillcdn/console@<version>` takes that one, so that the README, the types and the sources are the deployment's own, and the pages and the server are one release. A console is four files and a configuration: `index.html` with a `#root`, `src/main.tsx` that calls `createConsole({ ... }).mount(root)` and imports `@skillcdn/console/console.css`, `vite.config.ts` with the React plugin and, for building against the real board, `/api` sent to `console serve` with `changeOrigin`, and `tsconfig.json` with `jsx`, `moduleResolution: "Bundler"` and the `vite/client` types that make an imported picture a module. The README's "A console of your own" shows two of them, the-default-console.md all four with the marks, the icons and a face wired in. Write the plan (the kind, where the build goes, the files, what is configured, what is replaced, the colours and the marks) and stop for the checkpoint; then write the files and build: `npx vite build` makes `dist/` with its `index.html`. A script instead imports `createClient` from `@skillcdn/console/api`, which brings no React.
64
+ Produces the **plan** and the first build. Install first, in the new folder, or in `console-ui/` of the deployment repository, so that the README, the types and the sources are at hand for the plan: the install writes only `package.json`, the lockfile and `node_modules`, and the plan is shown before any file of the console is written. For the organization's console the package is installed at the version the deployment pins: `CONSOLE_REF` in `deploy/console.env` of the deployment repository is the commit of a release tag `@skillcdn/console@<version>`, and `npm install @skillcdn/console@<version>` takes that one, so that the README, the types and the sources are the deployment's own, and the pages and the server are one release. A console is four files and a configuration: `index.html` with a `#root`, `src/main.tsx` that calls `createConsole({ ... }).mount(root)` and imports `@skillcdn/console/console.css`, `vite.config.ts` with the React plugin and, for building against the real board, `/api` sent to `console serve` with `changeOrigin`, and `tsconfig.json` with `jsx`, `moduleResolution: "Bundler"` and the `vite/client` types that make an imported picture a module. The README's "A console of your own" shows two of them, the-default-console.md all four with the marks, the icons and a face wired in. A person's own console that is to show what they made, with their own work on the board beside it, starts from the shell the package ships for a desk's pages, `template/desk-web` in the package, which `console desk --web` writes into a desk's `web/`: the four files with one empty page of the member's own (`src/page.tsx`, at `/pages/mine`), as the README's "A desk's pages" says. Write the plan (the kind, where the build goes, the files, what is configured, what is replaced, the colours and the marks) and stop for the checkpoint; then write the files and build: `npx vite build` makes `dist/` with its `index.html`. A script instead imports `createClient` from `@skillcdn/console/api`, which brings no React.
65
65
 
66
66
  ### Phase 2: Configure before replacing
67
67
 
@@ -69,7 +69,7 @@ Produces the **configuration**, as [configuring.md](references/configuring.md) l
69
69
 
70
70
  ### Phase 3: Compose pages of one's own
71
71
 
72
- Produces the **pages**. For a page the default console lacks: `useConsoleData(client, projectKey)` answers the workspace and the project the page is on, kept current by the project's stream, with the actions; the components take their data as props and nothing from the network; `matchRoute`, `PATHS`, `projectHref`, `taskHref`, `decisionHref` and `docHref` name the addresses; `Shell` is the header with the tabs and the person's menu. A page as a tab is `pages` in the configuration, its `render` composing the components over what it is given; a composition of one's own is `src/console.tsx` with pages added or taken away (configuring.md "A page of one's own"). A page composes the board's own data and holds none of its own: a page that would keep records, run logic or reach outside is a feature of the organization's work, which is a plugin, not a page ([building-a-plugin](/skills/building-a-plugin/SKILL.md)); a plugin's pages come in its package and run in frames the console serves, drawn into the tabs by the console itself, so that a console's pages need no build and no change for one. A request without a page of its own skips this phase.
72
+ Produces the **pages**. For a page the default console lacks: `useConsoleData(client, projectKey)` answers the workspace and the project the page is on, kept current by the project's stream, with the actions; the components take their data as props and nothing from the network; `matchRoute`, `PATHS`, `projectHref`, `taskHref`, `decisionHref` and `docHref` name the addresses; `Shell` is the header with the tabs and the person's menu. A page as a tab is `pages` in the configuration, its `render` composing the components over what it is given (the README's "Pages of your own" says what that is), with figures drawn by the charts (the README's "Charts" says which is for what) and icons taken from the console's pack by name (`Icon`; the README's "Icons"); a composition of one's own is `src/console.tsx` with pages added or taken away (configuring.md "A page of one's own"). A page composes the board's own data and holds none of its own: a page that would keep records, run logic or reach outside is a feature of the organization's work, which is a plugin, not a page ([building-a-plugin](/skills/building-a-plugin/SKILL.md)); a plugin's pages come in its package and run in frames the console serves, drawn into the tabs by the console itself, so that a console's pages need no build and no change for one. A request without a page of its own skips this phase.
73
73
 
74
74
  ### Phase 4: Run it against the board
75
75
 
@@ -5,7 +5,7 @@ license: MIT
5
5
  compatibility: A shell with Node.js 24 or newer, npm and git, and an agent that reads and writes files. For running the plugin on a local console, Docker for the database and a checkout of the console's repository, where signing in needs a GitHub OAuth app of the person's own, as the console's README says. The console command is optional, for running the plugin's commands as an agent would. No key of the agent's own is needed, and it never sees a token.
6
6
  metadata:
7
7
  author: skillcdn
8
- version: "1.8"
8
+ version: "1.10"
9
9
  skillcdn:
10
10
  translations:
11
11
  ko:
@@ -77,12 +77,12 @@ Produces the **design**: one table, a row per thing the feature does, saying who
77
77
  | Another plugin must tell it | A **hook** on `plugin:<key>:<kind>` (`events:plugins`), or a call on the other's `api` (`plugins:<key>`). |
78
78
  | Time passes | A **job** (`jobs`), `every` or `at` in the workspace's time zone, never two at once; what it did goes into records and, where people should know, a task or a decision. |
79
79
  | An outside service calls in | An **endpoint** (`endpoints`): a `person` endpoint for whoever holds a role, a `webhook` for nobody, verified with `ctx.secrets.verify` against a secret setting. |
80
- | The plugin must call out | `ctx.fetch` to a host the manifest names (`outbound:<host>`), with `GET`, `HEAD`, `POST`, `PUT`, `PATCH`, `DELETE` or `OPTIONS`, the secrets put in by the console from `secret` settings (`secret` or `secrets`, each `as` a header, `bearer`, a query parameter, `basic` or `body:<field>`), never read by the plugin, nor in an answer that sends them back; what an answer gives back that is secret, the tokens of an exchange, sealed by the console into `secret` settings with `seal` before the plugin reads the answer, with their expiry, the answer's `sealed` saying what became of each (a token endpoint is asked for JSON, since the body of an answer that is no JSON is withheld), and sealed again by a job that reads `ctx.secrets.status(name)`; a callback the service is to call is `ctx.endpoints.url(name)`, the full address of one of the plugin's endpoints, and a link back to the console starts from `ctx.console.workspace().url`. |
80
+ | The plugin must call out | `ctx.fetch` to a host the manifest names (`outbound:<host>`), with `GET`, `HEAD`, `POST`, `PUT`, `PATCH`, `DELETE` or `OPTIONS`, the secrets put in by the console from `secret` settings (`secret` or `secrets`, each `as` a header, `bearer`, a query parameter, `basic` or `body:<field>`), never read by the plugin, nor in an answer that sends them back; what an answer gives back that is secret, the tokens of an exchange, sealed by the console into `secret` settings with `seal` before the plugin reads the answer, with their expiry, the answer's `sealed` saying what became of each (a token endpoint is asked for JSON, since the body of an answer that is no JSON is withheld), and sealed again by a job that reads `ctx.secrets.status(name)`; a token per installation of a service, one for each workspace an app is installed in, a `secret` setting declared `keyed: { max }`, sealed under the key the same answer names (`seal: { <setting>: { path, key: "$.team.id" } }`), put in by its key (`secret: { name, key, as }`), listed with `ctx.secrets.keys(name)`, forgotten with `forget(name, key)` when the installation is gone, and an upgrade's `move(name, key)` keeping the one value of before under a key ([ADR-0111](/docs/adr/0111-a-secret-setting-may-keep-one-value-per-key.md)); a callback the service is to call is `ctx.endpoints.url(name)`, the full address of one of the plugin's endpoints, and a link back to the console starts from `ctx.console.workspace().url`. |
81
81
  | It acts for a person who did something elsewhere, or reads another plugin as itself | `people:act`, then `ctx.plugins.get(key).for(personId)` for the other plugin's api as the person, or `ctx.console.decisions.answer(id, answer, { for })` for a decision the person answered elsewhere, one on their own plate (addressed to them, or a plugin's addressed to someone they manage): the person's standing as a member decides, never their administration, and the record is theirs through the plugin. A role of another plugin, asked in the manifest's `grants` with why, is held as itself from a job or a hook, with `ctx.plugin.grants` saying what was granted ([ADR-0072](/docs/adr/0072-a-plugin-is-a-principal-it-holds-roles-granted-to-it-calls-as-itself-and-acts-for-a-person-within-what-both-may-do.md)). |
82
82
  | People look at it, or fill a form (a calendar starts its week on `frame.context.workspace.firstDay`, the day the workspace's setting says, and reads `timeZone` beside it; faces come from `frame.people.picture(id)`, since a frame loads no image from elsewhere) | A **page** (level `workspace` or `project`) or a **widget** on the front page, which declares the `sizes` it comes in, at least one of them no wider than four cells, which is all a phone has (`small` 2×2, `medium` 4×2, `large` 4×4, `wide` 8×2, `full` 8×4, square cells of the page's grid) and lays itself out for the one it has (`frame.context.size`, `frame.onSize`), since the person arranges the page ([ADR-0061](/docs/adr/0061-the-front-page-is-one-grid-of-tiles-a-person-arranges-by-hand.md)): it shows records and calls commands and queries through the bridge; the logic stays in the server module, so that the command line and the pages do the same thing. |
83
83
  | An agent must know how | A **skill** in the package, one per kind of work, naming the commands as `console plugin <key> <command>`, with the rules of that work; `SKILLCDN.md` at the root. The agent note of the manifest is the one line that sends an agent to them. |
84
84
 
85
- Then the data. Records, unless the feature needs what records do not give: joins across many collections, more rows than a plugin's records may hold, or figures beyond counting, summing, the least and the most; then `storage:sql`, a schema and a role of the plugin's own with migrations under `migrations/`, which needs the deployment's database user to hold `CREATEROLE` and is said in the hand-over. Records are the default: the console keeps them with versions, files, links, search and aggregates, exports and purges them, and shows them to people by role; a schema is the plugin's to keep.
85
+ Then the data. Records, unless the feature needs what records do not give: joins across many collections, more rows than a plugin's records may hold, or figures beyond counting, summing, the least and the most; then `storage:sql`, a schema and a role of the plugin's own with migrations under `migrations/`, which needs the deployment's database user to hold `CREATEROLE` and to own the database, closes the console's schemas to every other role not granted them by name, and is said in the hand-over. The role reaches its own schema alone: a statement that names a table of the console's is refused. Records are the default: the console keeps them with versions, files, links, search and aggregates, exports and purges them, and shows them to people by role; a schema is the plugin's to keep.
86
86
 
87
87
  Then the capabilities: the list the split needs, each read as the sentence the administrator will consent to (the specification's catalogue says what each opens and what a malicious plugin could do with it). A capability no row needs is dropped; `people:read:all`, `people:read:email` (the work email, to match a person to an account elsewhere), `projects:read:all`, `storage:sql` and every `outbound:<host>` are asked for only where the design shows the row that needs them. Write the design: the table, the collections with their fields, the roles, the settings, the board (`needs`, the defaults), the menu group, the pages and the widgets, and the capabilities with their sentences; stop for the checkpoint.
88
88
 
@@ -90,7 +90,7 @@ Then the capabilities: the list the split needs, each read as the sentence the a
90
90
 
91
91
  Produces the **plugin as source**. `console-plugin init <dir> --key <key> --name "<Name>"` writes the smallest complete plugin: the manifest, a server module with one collection, one command and one query, a web bundle with one page and one widget, one skill with its `SKILLCDN.md`, the tests, the build and a README that says where things are; `--console` names the version of `@skillcdn/console` it depends on, the command's own unless said, and for a plugin written for a deployed console, the version that console runs (`console whoami` says it), and the manifest's `console` is written from it, the line of that version (`>=0.4.3 <0.5.0`): the consoles the plugin runs on, which the console checks when it reads the plugin and `console-plugin check` holds the dependency to; narrow it to the patch that brought what the plugin depends on, and widen it to the next line once the plugin is built against it; `--package <name>` the package's name where it is not `console-plugin-<key>`, a scoped one (`@<scope>/console-plugin-<key>`) for a repository of several plugins, published as public; `--repository <url>` with `--directory <path>` where the plugin lives in a repository, which fill `repository`, `homepage` and `bugs` and the manifest's `store`; and `--languages en,ko` the languages of its words, `en` first, which gives every language map and both manifests' translations the others as English words to translate, of which `console-plugin check` warns while they stay English. Then, in `<dir>`: `npm install`, `npm run build`, `npm test`, `npm run check`, all green before a line is changed, and `git init`.
92
92
 
93
- Then the design goes in, file by file: the manifest `console-plugin.json` from the design, its `key`, names and descriptions per language (a name of a word or two, which a tab shows and stops short with an ellipsis past about 28 characters; the description is what the plugin's settings page says of it, and what an agent reads in the rules where there is no `agentNote`), `agentNote`, `capabilities`, `roles` (a role for managers is `follows: "reports"`, held by whoever someone reports to and granted by nobody) and `defaultRole`, `board`, `settings`, `menu`, `pages`, `widgets`, `dataVersion`; the server module `src/server/index.ts`, one `defineCollection` per collection, one `defineCommand` or `defineQuery` per row, `endpoints`, `on`, `jobs`, `api`, `onEnable` and `onDisable` where the design has them, exported by name for the tests and gathered in `definePlugin(...)` as the default export; the web bundle `src/web/index.ts` and `index.css`, where `connect()` gives the page the context (who looks, at what, in which language), `command`, `query`, `records`, `files`, `navigate` (a path of the console's), `open` (a link to the web or to mail, from the press itself, which the console's page opens in a new tab), `download`, `setTitle` and the events, every class prefixed `pl-<key>-`, the console's `sc-` classes and `--sc-*` tokens for the look, and every word a person wrote put in as text; the skills under `skills/<name>/SKILL.md`, one per kind of work, in the SkillCDN Format, and the README of the package. The server module imports only what the host allows and bundles everything it imports; it keeps no state between calls but in records, since its thread is started afresh after a fault. Where the design has `storage:sql`, `migrations/0001-<words>.sql` makes the tables, and `manifest.migrations` names the directory.
93
+ Then the design goes in, file by file: the manifest `console-plugin.json` from the design, its `key`, names and descriptions per language (a name of a word or two, which a tab shows and stops short with an ellipsis past about 28 characters; the description is what the plugin's settings page says of it, and what an agent reads in the rules where there is no `agentNote`), `agentNote`, `capabilities`, `roles` (a role for managers is `follows: "reports"`, held by whoever someone reports to and granted by nobody) and `defaultRole`, `board`, `settings`, `menu`, `pages`, `widgets`, `dataVersion`; the server module `src/server/index.ts`, one `defineCollection` per collection, one `defineCommand` or `defineQuery` per row, `endpoints`, `on`, `jobs`, `api`, `onEnable` and `onDisable` where the design has them, exported by name for the tests and gathered in `definePlugin(...)` as the default export; the web bundle `src/web/index.ts` and `index.css`, where `connect()` gives the page the context (who looks, at what, in which language), `command`, `query`, `records`, `files`, `navigate` (a path of the console's), `open` (a link to the web or to mail, from the press itself, which the console's page opens in a new tab), `download`, `setTitle` and the events, every class prefixed `pl-<key>-`, the console's `sc-` classes and `--sc-*` tokens for the look, the classes being the parts of the console's catalogue (`src/styles/README.md` in the package) and never a class of one of the console's own pages, which `check` refuses, figures drawn with the console's charts (a figure, a list of bars, a chart over time, a share, a table of figures: the package's README, "Charts", says which is for what; their classes are in the frame's stylesheet, their measures are attributes from `@skillcdn/console/charts` and never a style, which a frame refuses, and a bundle of React takes the components from `@skillcdn/console`), an icon taken from the console's pack by its name and never from a set of the plugin's own (`iconElement` of `@skillcdn/console/icons`, or `Icon` in a bundle of React; the README's "Icons"), and every word a person wrote put in as text; the skills under `skills/<name>/SKILL.md`, one per kind of work, in the SkillCDN Format, and the README of the package. The server module imports only what the host allows and bundles everything it imports; it keeps no state between calls but in records, since its thread is started afresh after a fault. Where the design has `storage:sql`, `migrations/0001-<words>.sql` makes the tables, and `manifest.migrations` names the directory.
94
94
 
95
95
  ### Phase 3: Test it as the console runs it
96
96
 
@@ -98,13 +98,13 @@ Produces the **tests**, green. `src/server/index.test.ts` runs each command, que
98
98
 
99
99
  ### Phase 4: Run it on a local console
100
100
 
101
- Produces the **plugin running**, enabled, with its commands tried and its pages shown. The console from its checkout, as the console's README's "Install" says, with one difference: before the api starts, `.env` sets `PLUGINS_DIR` to a directory made for the purpose, whose `package.json` is `{ "private": true, "dependencies": {} }` and in which `npm install --ignore-scripts <path to the plugin>` writes the plugin as a `file:` dependency and links `node_modules/<its name>` to the checkout, built; the console reads the link where it points, so the checkout is the plugin, and `npm run build` in it followed by a restart of the api is a new version. The person signs in on the local console as its administrator (`ADMINS` in `.env`, a GitHub OAuth app registered for the local address, as `apps/console/README.md` of the console says), opens the plugins' settings page, where the plugin is listed as installed with any reason it failed to load, and enables it: the consent to each capability, the board project made from the manifest's defaults or chosen, the projects it is on, the settings; or their agent does the same with `console plugin <key> enable` ([setting-up.md](/skills/planning-the-board/references/setting-up.md), "A plugin's board project"), signed in there with `console login`. The compose database's user owns the database, so `storage:sql` is available locally. Then the tabs appear where the manifest put them, and the plugin is worked as an agent works it ([working-the-board](/skills/working-the-board/SKILL.md)): `console plugin <key>` lists the commands, `console plugin <key> <command> ...` runs one, a decision raised is answered on the pages, a hook runs, a job runs at its time (the worker inside the api, locally), and the pages are looked at with a browser the agent can drive, else by the person. What is seen is shown at the checkpoint; what could not run is reported as not run. Without a provider to register: in the console's checkout, `pnpm dev:plugins --plugin <path to the built plugin>` runs the console on this machine with the fixture's people signing in from the browser at the addresses it prints, the plugin installed beside the fixtures and not enabled, and the plugin's hooks and jobs running in that process, so that a decision answered there reaches the hook within seconds and a job runs at its time; the administrator among them enables it on the settings page, and the pages and `console plugin <key>` are looked at as above. The directory is read as the image lays a plugin out, so a checkout is built first (`npm run build`), and a directory that is not a built plugin stops the console with the reason.
101
+ Produces the **plugin running**, enabled, with its commands tried and its pages shown. The console from its checkout, as the console's README's "Install" says, with one difference: before the api starts, `.env` sets `PLUGINS_DIR` to a directory made for the purpose, whose `package.json` is `{ "private": true, "dependencies": {} }` and in which `npm install --ignore-scripts <path to the plugin>` writes the plugin as a `file:` dependency and links `node_modules/<its name>` to the checkout, built; the console reads the link where it points, so the checkout is the plugin, and `npm run build` in it followed by a restart of the api is a new version. The person signs in on the local console as its administrator (`ADMINS` in `.env`, a GitHub OAuth app registered for the local address, as `apps/console/README.md` of the console says), opens the plugins' settings page, where the plugin is listed as installed with any reason it failed to load, and enables it: the consent to each capability, the board project made from the manifest's defaults or chosen, the projects it is on, the settings; or their agent does the same with `console plugin <key> enable` ([setting-up.md](/skills/planning-the-board/references/setting-up.md), "A plugin's board project"), signed in there with `console login`. The compose database's user owns the database, so `storage:sql` is available locally. Then the tabs appear where the manifest put them, and the plugin is worked as an agent works it ([working-the-board](/skills/working-the-board/SKILL.md)): `console plugin <key>` lists the commands, `console plugin <key> <command> ...` runs one, a decision raised is answered on the pages, a hook runs, a job runs at its time (the worker inside the api, locally; `console plugin <key>` says how each job's last run went and when it runs next, and `console plugin <key> events --kind plugin.failed` why one failed), and the pages are looked at with a browser the agent can drive, else by the person. What is seen is shown at the checkpoint; what could not run is reported as not run. Without a provider to register: in the console's checkout, `pnpm dev:plugins --plugin <path to the built plugin>` runs the console on this machine with the fixture's people signing in from the browser at the addresses it prints, the plugin installed beside the fixtures and not enabled, and the plugin's hooks and jobs running in that process, so that a decision answered there reaches the hook within seconds and a job runs at its time; the administrator among them enables it on the settings page, and the pages and `console plugin <key>` are looked at as above. The directory is read as the image lays a plugin out, so a checkout is built first (`npm run build`), and a directory that is not a built plugin stops the console with the reason.
102
102
 
103
103
  ### Phase 5: Ship, and hand the install to the deployment
104
104
 
105
105
  Produces the **release** and the **hand-over**. The version in `package.json` moves as semver says, `dataVersion` moves with an entry in `upgrades` whenever the shape of a record changed: an upgrade reaches its records through `ctx` as a job does, and the code reads a record of the version before as well, since a plugin whose upgrade did not go through on a deployment is loaded all the same and said to be behind; `npm run build`, `npm test` and `npm run check` pass; a commit, and a push of the repository. Then one of two, confirmed with its consequence: `npm publish` (`--access public` for a scoped name), which puts the package on the registry under that name for good, and is done by the person or with their word; or a tag `v<version>` whose tree carries the built package (the template's `.gitignore` leaves `dist/` out of git, so a release commit adds it with `git add -f dist` before the tag), since the deployment installs with no scripts and runs no build. The deployment then names the plugin as `"<name>": "<version>"` or, for a repository of one plugin alone, `"github:<owner>/<repo>#v<version>"`.
106
106
 
107
- The hand-over is a task on the deployment's board, written as [planning-the-board](/skills/planning-the-board/SKILL.md) writes one, or the same words in chat where there is no board: the package and its version, the consoles it runs on (the manifest's `console`, which must admit the deployment's console: `console whoami` says its version, and a console outside the range lists the plugin as failed with the reason), and how it is installed ([deploy/README.md, "Plugins in the image"](/deploy/README.md#plugins-in-the-image), a row of deploying-a-console's [running-it-again.md](/skills/deploying-a-console/references/running-it-again.md)); what the deployment must provide, where the plugin asks it (`CREATEROLE` for `storage:sql`, the hosts of `outbound`, a bound on the files); what the administrator does when they enable it: the capabilities they consent to, the board project, the projects, the settings to fill and the secrets to set, the roles and who gets them; and where the plugin's skills are once it runs (`console plugin <key> skills`). The deployment's agent installs it as a release of the deployment; the administrator enables it; the plugin is then proven on that console as phase 4 proved it locally, and that is the delivery.
107
+ The hand-over is a task on the deployment's board, written as [planning-the-board](/skills/planning-the-board/SKILL.md) writes one, or the same words in chat where there is no board: the package and its version, the consoles it runs on (the manifest's `console`, which must admit the deployment's console: `console whoami` says its version, and a console outside the range lists the plugin as failed with the reason), and how it is installed ([deploy/README.md, "Plugins in the image"](/deploy/README.md#plugins-in-the-image), a row of deploying-a-console's [running-it-again.md](/skills/deploying-a-console/references/running-it-again.md)); what the deployment must provide, where the plugin asks it (for `storage:sql`, a database user that holds `CREATEROLE` and owns the database, and a grant by name of the schema `public` to any other role that reads the console's tables, since its first provisioning takes from every role what it held through `PUBLIC`, as [deploy/README.md](/deploy/README.md#plugins-in-the-image) says; the hosts of `outbound`; a bound on the files); what the administrator does when they enable it: the capabilities they consent to, the board project, the projects, the settings to fill and the secrets to set, the roles and who gets them; and where the plugin's skills are once it runs (`console plugin <key> skills`). The deployment's agent installs it as a release of the deployment; the administrator enables it; the plugin is then proven on that console as phase 4 proved it locally, and that is the delivery.
108
108
 
109
109
  ## Verdicts
110
110