@skillcdn/console 0.4.7 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (599) hide show
  1. package/README.md +74 -14
  2. package/SKILLCDN.md +5 -3
  3. package/dist/agent-page.d.ts +44 -0
  4. package/dist/agent-page.d.ts.map +1 -0
  5. package/dist/agent-page.js +415 -0
  6. package/dist/agent-page.js.map +1 -0
  7. package/dist/agent-stream.d.ts +52 -0
  8. package/dist/agent-stream.d.ts.map +1 -0
  9. package/dist/agent-stream.js +155 -0
  10. package/dist/agent-stream.js.map +1 -0
  11. package/dist/api.d.ts +12 -6
  12. package/dist/api.d.ts.map +1 -1
  13. package/dist/api.js +11 -5
  14. package/dist/api.js.map +1 -1
  15. package/dist/avatar.d.ts +137 -0
  16. package/dist/avatar.d.ts.map +1 -0
  17. package/dist/avatar.js +1216 -0
  18. package/dist/avatar.js.map +1 -0
  19. package/dist/charts.d.ts +103 -0
  20. package/dist/charts.d.ts.map +1 -0
  21. package/dist/charts.js +182 -0
  22. package/dist/charts.js.map +1 -0
  23. package/dist/cli/cli.d.ts +39 -1
  24. package/dist/cli/cli.d.ts.map +1 -1
  25. package/dist/cli/cli.js +2424 -296
  26. package/dist/cli/cli.js.map +1 -1
  27. package/dist/cli/command-words.d.ts +20 -0
  28. package/dist/cli/command-words.d.ts.map +1 -0
  29. package/dist/cli/command-words.js +51 -0
  30. package/dist/cli/command-words.js.map +1 -0
  31. package/dist/cli/credentials.d.ts +59 -5
  32. package/dist/cli/credentials.d.ts.map +1 -1
  33. package/dist/cli/credentials.js +128 -16
  34. package/dist/cli/credentials.js.map +1 -1
  35. package/dist/cli/directory.d.ts +19 -4
  36. package/dist/cli/directory.d.ts.map +1 -1
  37. package/dist/cli/directory.js +16 -8
  38. package/dist/cli/directory.js.map +1 -1
  39. package/dist/cli/format.d.ts +91 -8
  40. package/dist/cli/format.d.ts.map +1 -1
  41. package/dist/cli/format.js +386 -57
  42. package/dist/cli/format.js.map +1 -1
  43. package/dist/cli/help.d.ts +13 -4
  44. package/dist/cli/help.d.ts.map +1 -1
  45. package/dist/cli/help.js +202 -62
  46. package/dist/cli/help.js.map +1 -1
  47. package/dist/cli/main.js +94 -0
  48. package/dist/cli/main.js.map +1 -1
  49. package/dist/cli/pack.d.ts +69 -36
  50. package/dist/cli/pack.d.ts.map +1 -1
  51. package/dist/cli/pack.js +241 -188
  52. package/dist/cli/pack.js.map +1 -1
  53. package/dist/cli/plugin-check.d.ts +42 -0
  54. package/dist/cli/plugin-check.d.ts.map +1 -1
  55. package/dist/cli/plugin-check.js +221 -36
  56. package/dist/cli/plugin-check.js.map +1 -1
  57. package/dist/cli/plugin-cli.d.ts +6 -1
  58. package/dist/cli/plugin-cli.d.ts.map +1 -1
  59. package/dist/cli/plugin-cli.js +21 -4
  60. package/dist/cli/plugin-cli.js.map +1 -1
  61. package/dist/cli/plugin-main.js +1 -0
  62. package/dist/cli/plugin-main.js.map +1 -1
  63. package/dist/cli/runner-host.d.ts +36 -0
  64. package/dist/cli/runner-host.d.ts.map +1 -0
  65. package/dist/cli/runner-host.js +154 -0
  66. package/dist/cli/runner-host.js.map +1 -0
  67. package/dist/cli/serve.d.ts +33 -1
  68. package/dist/cli/serve.d.ts.map +1 -1
  69. package/dist/cli/serve.js +275 -6
  70. package/dist/cli/serve.js.map +1 -1
  71. package/dist/cli/setup-machine.d.ts +36 -0
  72. package/dist/cli/setup-machine.d.ts.map +1 -0
  73. package/dist/cli/setup-machine.js +109 -0
  74. package/dist/cli/setup-machine.js.map +1 -0
  75. package/dist/client.d.ts +189 -10
  76. package/dist/client.d.ts.map +1 -1
  77. package/dist/client.js +192 -57
  78. package/dist/client.js.map +1 -1
  79. package/dist/compat.d.ts +1 -1
  80. package/dist/compat.js +2 -2
  81. package/dist/components/agent-page.d.ts +384 -0
  82. package/dist/components/agent-page.d.ts.map +1 -0
  83. package/dist/components/agent-page.js +985 -0
  84. package/dist/components/agent-page.js.map +1 -0
  85. package/dist/components/agents.d.ts +102 -0
  86. package/dist/components/agents.d.ts.map +1 -0
  87. package/dist/components/agents.js +246 -0
  88. package/dist/components/agents.js.map +1 -0
  89. package/dist/components/calendar.d.ts +17 -17
  90. package/dist/components/calendar.d.ts.map +1 -1
  91. package/dist/components/calendar.js +7 -2
  92. package/dist/components/calendar.js.map +1 -1
  93. package/dist/components/charts.d.ts +157 -0
  94. package/dist/components/charts.d.ts.map +1 -0
  95. package/dist/components/charts.js +182 -0
  96. package/dist/components/charts.js.map +1 -0
  97. package/dist/components/comments.d.ts +2 -0
  98. package/dist/components/comments.d.ts.map +1 -1
  99. package/dist/components/comments.js +1 -1
  100. package/dist/components/comments.js.map +1 -1
  101. package/dist/components/connect.d.ts.map +1 -1
  102. package/dist/components/connect.js +7 -2
  103. package/dist/components/connect.js.map +1 -1
  104. package/dist/components/decision-form.d.ts +21 -0
  105. package/dist/components/decision-form.d.ts.map +1 -1
  106. package/dist/components/decision-form.js +20 -6
  107. package/dist/components/decision-form.js.map +1 -1
  108. package/dist/components/decision-list.d.ts +24 -0
  109. package/dist/components/decision-list.d.ts.map +1 -1
  110. package/dist/components/decision-list.js +54 -5
  111. package/dist/components/decision-list.js.map +1 -1
  112. package/dist/components/desk-records.d.ts +102 -0
  113. package/dist/components/desk-records.d.ts.map +1 -0
  114. package/dist/components/desk-records.js +221 -0
  115. package/dist/components/desk-records.js.map +1 -0
  116. package/dist/components/desk.d.ts +85 -0
  117. package/dist/components/desk.d.ts.map +1 -0
  118. package/dist/components/desk.js +135 -0
  119. package/dist/components/desk.js.map +1 -0
  120. package/dist/components/event-feed.d.ts.map +1 -1
  121. package/dist/components/event-feed.js +26 -1
  122. package/dist/components/event-feed.js.map +1 -1
  123. package/dist/components/home.d.ts +12 -1
  124. package/dist/components/home.d.ts.map +1 -1
  125. package/dist/components/home.js +175 -16
  126. package/dist/components/home.js.map +1 -1
  127. package/dist/components/my-decisions.d.ts +5 -0
  128. package/dist/components/my-decisions.d.ts.map +1 -1
  129. package/dist/components/my-decisions.js +3 -3
  130. package/dist/components/my-decisions.js.map +1 -1
  131. package/dist/components/people.d.ts +17 -0
  132. package/dist/components/people.d.ts.map +1 -1
  133. package/dist/components/people.js +55 -19
  134. package/dist/components/people.js.map +1 -1
  135. package/dist/components/picker.d.ts +2 -0
  136. package/dist/components/picker.d.ts.map +1 -1
  137. package/dist/components/picker.js +1 -1
  138. package/dist/components/picker.js.map +1 -1
  139. package/dist/components/pictures.d.ts +38 -10
  140. package/dist/components/pictures.d.ts.map +1 -1
  141. package/dist/components/pictures.js +195 -40
  142. package/dist/components/pictures.js.map +1 -1
  143. package/dist/components/plugin-events.d.ts +29 -0
  144. package/dist/components/plugin-events.d.ts.map +1 -0
  145. package/dist/components/plugin-events.js +139 -0
  146. package/dist/components/plugin-events.js.map +1 -0
  147. package/dist/components/plugin-frame.d.ts.map +1 -1
  148. package/dist/components/plugin-frame.js +14 -37
  149. package/dist/components/plugin-frame.js.map +1 -1
  150. package/dist/components/plugin-settings.d.ts.map +1 -1
  151. package/dist/components/plugin-settings.js +58 -7
  152. package/dist/components/plugin-settings.js.map +1 -1
  153. package/dist/components/projects.d.ts.map +1 -1
  154. package/dist/components/projects.js +30 -10
  155. package/dist/components/projects.js.map +1 -1
  156. package/dist/components/rules.d.ts +8 -10
  157. package/dist/components/rules.d.ts.map +1 -1
  158. package/dist/components/rules.js +36 -14
  159. package/dist/components/rules.js.map +1 -1
  160. package/dist/components/sessions.d.ts.map +1 -1
  161. package/dist/components/sessions.js +8 -4
  162. package/dist/components/sessions.js.map +1 -1
  163. package/dist/components/setup.d.ts +59 -0
  164. package/dist/components/setup.d.ts.map +1 -0
  165. package/dist/components/setup.js +93 -0
  166. package/dist/components/setup.js.map +1 -0
  167. package/dist/components/sign-in.js +1 -1
  168. package/dist/components/sign-in.js.map +1 -1
  169. package/dist/components/task-form.d.ts.map +1 -1
  170. package/dist/components/task-form.js +2 -2
  171. package/dist/components/task-form.js.map +1 -1
  172. package/dist/components/task-list.d.ts +7 -6
  173. package/dist/components/task-list.d.ts.map +1 -1
  174. package/dist/components/task-list.js.map +1 -1
  175. package/dist/components/task-view.d.ts +3 -0
  176. package/dist/components/task-view.d.ts.map +1 -1
  177. package/dist/components/task-view.js +1 -1
  178. package/dist/components/task-view.js.map +1 -1
  179. package/dist/components/ui.d.ts +78 -8
  180. package/dist/components/ui.d.ts.map +1 -1
  181. package/dist/components/ui.js +88 -9
  182. package/dist/components/ui.js.map +1 -1
  183. package/dist/components/work.d.ts +5 -5
  184. package/dist/components/work.d.ts.map +1 -1
  185. package/dist/components/work.js.map +1 -1
  186. package/dist/components/workspace.d.ts +17 -0
  187. package/dist/components/workspace.d.ts.map +1 -1
  188. package/dist/components/workspace.js +129 -2
  189. package/dist/components/workspace.js.map +1 -1
  190. package/dist/connect-page.d.ts.map +1 -1
  191. package/dist/connect-page.js +5 -2
  192. package/dist/connect-page.js.map +1 -1
  193. package/dist/console.css +7551 -4580
  194. package/dist/console.d.ts +20 -0
  195. package/dist/console.d.ts.map +1 -1
  196. package/dist/console.js +331 -57
  197. package/dist/console.js.map +1 -1
  198. package/dist/data.d.ts +22 -1
  199. package/dist/data.d.ts.map +1 -1
  200. package/dist/data.js +62 -34
  201. package/dist/data.js.map +1 -1
  202. package/dist/desk-page.d.ts +38 -0
  203. package/dist/desk-page.d.ts.map +1 -0
  204. package/dist/desk-page.js +184 -0
  205. package/dist/desk-page.js.map +1 -0
  206. package/dist/desk-records-page.d.ts +18 -0
  207. package/dist/desk-records-page.d.ts.map +1 -0
  208. package/dist/desk-records-page.js +130 -0
  209. package/dist/desk-records-page.js.map +1 -0
  210. package/dist/desk-records.d.ts +247 -0
  211. package/dist/desk-records.d.ts.map +1 -0
  212. package/dist/desk-records.js +543 -0
  213. package/dist/desk-records.js.map +1 -0
  214. package/dist/desk.d.ts +122 -0
  215. package/dist/desk.d.ts.map +1 -0
  216. package/dist/desk.js +211 -0
  217. package/dist/desk.js.map +1 -0
  218. package/dist/feed-stream.d.ts +39 -0
  219. package/dist/feed-stream.d.ts.map +1 -0
  220. package/dist/feed-stream.js +117 -0
  221. package/dist/feed-stream.js.map +1 -0
  222. package/dist/glances.d.ts +39 -0
  223. package/dist/glances.d.ts.map +1 -0
  224. package/dist/glances.js +94 -0
  225. package/dist/glances.js.map +1 -0
  226. package/dist/home-tiles.d.ts +69 -5
  227. package/dist/home-tiles.d.ts.map +1 -1
  228. package/dist/home-tiles.js +347 -9
  229. package/dist/home-tiles.js.map +1 -1
  230. package/dist/i18n/en.d.ts +773 -3
  231. package/dist/i18n/en.d.ts.map +1 -1
  232. package/dist/i18n/en.js +770 -9
  233. package/dist/i18n/en.js.map +1 -1
  234. package/dist/i18n/ko.d.ts.map +1 -1
  235. package/dist/i18n/ko.js +736 -9
  236. package/dist/i18n/ko.js.map +1 -1
  237. package/dist/index.d.ts +19 -7
  238. package/dist/index.d.ts.map +1 -1
  239. package/dist/index.js +17 -5
  240. package/dist/index.js.map +1 -1
  241. package/dist/limits.d.ts +67 -0
  242. package/dist/limits.d.ts.map +1 -1
  243. package/dist/limits.js +67 -0
  244. package/dist/limits.js.map +1 -1
  245. package/dist/onboarding.d.ts +21 -0
  246. package/dist/onboarding.d.ts.map +1 -0
  247. package/dist/onboarding.js +43 -0
  248. package/dist/onboarding.js.map +1 -0
  249. package/dist/persona.d.ts +34 -0
  250. package/dist/persona.d.ts.map +1 -0
  251. package/dist/persona.js +71 -0
  252. package/dist/persona.js.map +1 -0
  253. package/dist/plugin/context.d.ts +42 -11
  254. package/dist/plugin/context.d.ts.map +1 -1
  255. package/dist/plugin/limits.d.ts +2 -0
  256. package/dist/plugin/limits.d.ts.map +1 -1
  257. package/dist/plugin/limits.js +2 -0
  258. package/dist/plugin/limits.js.map +1 -1
  259. package/dist/plugin/manifest.d.ts +13 -0
  260. package/dist/plugin/manifest.d.ts.map +1 -1
  261. package/dist/plugin/manifest.js +34 -4
  262. package/dist/plugin/manifest.js.map +1 -1
  263. package/dist/plugin/rest-schemas.d.ts +56 -0
  264. package/dist/plugin/rest-schemas.d.ts.map +1 -1
  265. package/dist/plugin/rest-schemas.js +42 -0
  266. package/dist/plugin/rest-schemas.js.map +1 -1
  267. package/dist/plugin/sandbox.d.ts.map +1 -1
  268. package/dist/plugin/sandbox.js +4 -1
  269. package/dist/plugin/sandbox.js.map +1 -1
  270. package/dist/plugin/testing.d.ts +6 -2
  271. package/dist/plugin/testing.d.ts.map +1 -1
  272. package/dist/plugin/testing.js +52 -10
  273. package/dist/plugin/testing.js.map +1 -1
  274. package/dist/plugin.d.ts +1 -1
  275. package/dist/plugin.d.ts.map +1 -1
  276. package/dist/plugin.js +1 -1
  277. package/dist/plugin.js.map +1 -1
  278. package/dist/records.d.ts +283 -0
  279. package/dist/records.d.ts.map +1 -0
  280. package/dist/records.js +543 -0
  281. package/dist/records.js.map +1 -0
  282. package/dist/router.d.ts +50 -3
  283. package/dist/router.d.ts.map +1 -1
  284. package/dist/router.js +78 -7
  285. package/dist/router.js.map +1 -1
  286. package/dist/routes.d.ts +12 -2
  287. package/dist/routes.d.ts.map +1 -1
  288. package/dist/routes.js +14 -1
  289. package/dist/routes.js.map +1 -1
  290. package/dist/rules.d.ts +30 -11
  291. package/dist/rules.d.ts.map +1 -1
  292. package/dist/rules.js +99 -42
  293. package/dist/rules.js.map +1 -1
  294. package/dist/runner/acp.d.ts +20 -0
  295. package/dist/runner/acp.d.ts.map +1 -0
  296. package/dist/runner/acp.js +1132 -0
  297. package/dist/runner/acp.js.map +1 -0
  298. package/dist/runner/claude.d.ts +13 -0
  299. package/dist/runner/claude.d.ts.map +1 -0
  300. package/dist/runner/claude.js +615 -0
  301. package/dist/runner/claude.js.map +1 -0
  302. package/dist/runner/codex.d.ts +19 -0
  303. package/dist/runner/codex.d.ts.map +1 -0
  304. package/dist/runner/codex.js +597 -0
  305. package/dist/runner/codex.js.map +1 -0
  306. package/dist/runner/config.d.ts +35 -0
  307. package/dist/runner/config.d.ts.map +1 -0
  308. package/dist/runner/config.js +74 -0
  309. package/dist/runner/config.js.map +1 -0
  310. package/dist/runner/desk.d.ts +81 -0
  311. package/dist/runner/desk.d.ts.map +1 -0
  312. package/dist/runner/desk.js +303 -0
  313. package/dist/runner/desk.js.map +1 -0
  314. package/dist/runner/launchd.d.ts +7 -0
  315. package/dist/runner/launchd.d.ts.map +1 -0
  316. package/dist/runner/launchd.js +78 -0
  317. package/dist/runner/launchd.js.map +1 -0
  318. package/dist/runner/message.d.ts +66 -0
  319. package/dist/runner/message.d.ts.map +1 -0
  320. package/dist/runner/message.js +181 -0
  321. package/dist/runner/message.js.map +1 -0
  322. package/dist/runner/modules.d.ts +13 -0
  323. package/dist/runner/modules.d.ts.map +1 -0
  324. package/dist/runner/modules.js +30 -0
  325. package/dist/runner/modules.js.map +1 -0
  326. package/dist/runner/process.d.ts +7 -0
  327. package/dist/runner/process.d.ts.map +1 -0
  328. package/dist/runner/process.js +65 -0
  329. package/dist/runner/process.js.map +1 -0
  330. package/dist/runner/redact.d.ts +48 -0
  331. package/dist/runner/redact.d.ts.map +1 -0
  332. package/dist/runner/redact.js +214 -0
  333. package/dist/runner/redact.js.map +1 -0
  334. package/dist/runner/registry.d.ts +37 -0
  335. package/dist/runner/registry.d.ts.map +1 -0
  336. package/dist/runner/registry.js +26 -0
  337. package/dist/runner/registry.js.map +1 -0
  338. package/dist/runner/runner.d.ts +130 -0
  339. package/dist/runner/runner.d.ts.map +1 -0
  340. package/dist/runner/runner.js +1551 -0
  341. package/dist/runner/runner.js.map +1 -0
  342. package/dist/runner/slack.d.ts +16 -0
  343. package/dist/runner/slack.d.ts.map +1 -0
  344. package/dist/runner/slack.js +157 -0
  345. package/dist/runner/slack.js.map +1 -0
  346. package/dist/runner/systemd-user.d.ts +7 -0
  347. package/dist/runner/systemd-user.d.ts.map +1 -0
  348. package/dist/runner/systemd-user.js +93 -0
  349. package/dist/runner/systemd-user.js.map +1 -0
  350. package/dist/runner/task-scheduler.d.ts +38 -0
  351. package/dist/runner/task-scheduler.d.ts.map +1 -0
  352. package/dist/runner/task-scheduler.js +216 -0
  353. package/dist/runner/task-scheduler.js.map +1 -0
  354. package/dist/runner/types.d.ts +315 -0
  355. package/dist/runner/types.d.ts.map +1 -0
  356. package/dist/runner/types.js +24 -0
  357. package/dist/runner/types.js.map +1 -0
  358. package/dist/runner.d.ts +18 -0
  359. package/dist/runner.d.ts.map +1 -0
  360. package/dist/runner.js +20 -0
  361. package/dist/runner.js.map +1 -0
  362. package/dist/schemas.d.ts +6082 -1295
  363. package/dist/schemas.d.ts.map +1 -1
  364. package/dist/schemas.js +930 -31
  365. package/dist/schemas.js.map +1 -1
  366. package/dist/services.d.ts +110 -0
  367. package/dist/services.d.ts.map +1 -0
  368. package/dist/services.js +305 -0
  369. package/dist/services.js.map +1 -0
  370. package/dist/setup-guide.d.ts +64 -0
  371. package/dist/setup-guide.d.ts.map +1 -0
  372. package/dist/setup-guide.js +256 -0
  373. package/dist/setup-guide.js.map +1 -0
  374. package/dist/setup-page.d.ts +6 -0
  375. package/dist/setup-page.d.ts.map +1 -0
  376. package/dist/setup-page.js +29 -0
  377. package/dist/setup-page.js.map +1 -0
  378. package/dist/sse.d.ts +15 -0
  379. package/dist/sse.d.ts.map +1 -0
  380. package/dist/sse.js +73 -0
  381. package/dist/sse.js.map +1 -0
  382. package/dist/tab-title.d.ts +6 -0
  383. package/dist/tab-title.d.ts.map +1 -0
  384. package/dist/tab-title.js +22 -0
  385. package/dist/tab-title.js.map +1 -0
  386. package/dist/tokens.d.ts.map +1 -1
  387. package/dist/tokens.js +3 -0
  388. package/dist/tokens.js.map +1 -1
  389. package/dist/use-action.d.ts +5 -2
  390. package/dist/use-action.d.ts.map +1 -1
  391. package/dist/use-action.js +6 -1
  392. package/dist/use-action.js.map +1 -1
  393. package/dist/vocabulary.d.ts +84 -4
  394. package/dist/vocabulary.d.ts.map +1 -1
  395. package/dist/vocabulary.js +115 -3
  396. package/dist/vocabulary.js.map +1 -1
  397. package/docs/specs/cli.md +147 -41
  398. package/docs/specs/plugins.md +37 -27
  399. package/docs/specs/records.md +113 -0
  400. package/docs/specs/rest.md +155 -20
  401. package/docs/specs/runner.md +347 -0
  402. package/package.json +12 -3
  403. package/skills/building-a-console/SKILL.md +4 -4
  404. package/skills/building-a-console/references/configuring.md +1 -0
  405. package/skills/building-a-plugin/SKILL.md +7 -7
  406. package/skills/deploying-a-console/SKILL.md +4 -4
  407. package/skills/deploying-a-console/references/resources.md +48 -8
  408. package/skills/deploying-a-console/references/running-it-again.md +3 -2
  409. package/skills/keeping-a-desk/SKILL.md +133 -0
  410. package/skills/keeping-a-desk/collections.md +96 -0
  411. package/skills/planning-the-board/SKILL.md +14 -18
  412. package/skills/planning-the-board/references/a-task.md +2 -2
  413. package/skills/planning-the-board/references/project-rules.md +13 -14
  414. package/skills/planning-the-board/references/setting-up.md +22 -9
  415. package/skills/running-an-agent/SKILL.md +107 -0
  416. package/skills/running-an-agent/references/slack-app.md +61 -0
  417. package/skills/working-the-board/SKILL.md +66 -39
  418. package/skills/working-the-board/references/terms.md +9 -5
  419. package/skills/working-the-board/references/the-pack.md +14 -9
  420. package/skills/working-the-board/references/the-sentence.md +2 -2
  421. package/src/agent-page.tsx +1039 -0
  422. package/src/agent-stream.ts +199 -0
  423. package/src/api.ts +317 -2
  424. package/src/avatar.ts +1506 -0
  425. package/src/charts.ts +250 -0
  426. package/src/cli/cli.ts +3210 -503
  427. package/src/cli/command-words.ts +56 -0
  428. package/src/cli/credentials.ts +188 -16
  429. package/src/cli/directory.ts +28 -10
  430. package/src/cli/format.ts +470 -67
  431. package/src/cli/help.ts +233 -61
  432. package/src/cli/main.ts +89 -0
  433. package/src/cli/pack.ts +332 -263
  434. package/src/cli/plugin-check.ts +275 -34
  435. package/src/cli/plugin-cli.ts +28 -4
  436. package/src/cli/plugin-main.ts +1 -0
  437. package/src/cli/runner-host.ts +188 -0
  438. package/src/cli/serve.ts +320 -5
  439. package/src/cli/setup-machine.ts +153 -0
  440. package/src/client.ts +711 -126
  441. package/src/compat.ts +2 -2
  442. package/src/components/agent-page.tsx +1946 -0
  443. package/src/components/agents.tsx +638 -0
  444. package/src/components/calendar.tsx +74 -53
  445. package/src/components/charts.tsx +680 -0
  446. package/src/components/comments.tsx +3 -0
  447. package/src/components/connect.tsx +37 -2
  448. package/src/components/decision-form.tsx +89 -51
  449. package/src/components/decision-list.tsx +140 -4
  450. package/src/components/desk-records.tsx +724 -0
  451. package/src/components/desk.tsx +471 -0
  452. package/src/components/event-feed.tsx +30 -1
  453. package/src/components/home.tsx +353 -12
  454. package/src/components/my-decisions.tsx +8 -2
  455. package/src/components/people.tsx +300 -203
  456. package/src/components/picker.tsx +3 -1
  457. package/src/components/pictures.tsx +256 -44
  458. package/src/components/plugin-events.ts +159 -0
  459. package/src/components/plugin-frame.tsx +14 -38
  460. package/src/components/plugin-settings.tsx +178 -22
  461. package/src/components/projects.tsx +33 -15
  462. package/src/components/rules.tsx +96 -36
  463. package/src/components/sessions.tsx +7 -4
  464. package/src/components/setup.tsx +252 -0
  465. package/src/components/sign-in.tsx +1 -1
  466. package/src/components/task-form.tsx +11 -2
  467. package/src/components/task-list.tsx +7 -6
  468. package/src/components/task-view.tsx +4 -0
  469. package/src/components/ui.tsx +169 -25
  470. package/src/components/work.tsx +9 -9
  471. package/src/components/workspace.tsx +345 -4
  472. package/src/connect-page.tsx +15 -2
  473. package/src/console.tsx +657 -83
  474. package/src/data.ts +109 -43
  475. package/src/desk-page.tsx +332 -0
  476. package/src/desk-records-page.tsx +256 -0
  477. package/src/desk-records.ts +808 -0
  478. package/src/desk.ts +329 -0
  479. package/src/feed-stream.ts +144 -0
  480. package/src/glances.ts +132 -0
  481. package/src/home-tiles.ts +411 -9
  482. package/src/i18n/en.ts +828 -10
  483. package/src/i18n/ko.ts +792 -10
  484. package/src/index.ts +172 -3
  485. package/src/limits.ts +67 -0
  486. package/src/onboarding.ts +84 -0
  487. package/src/persona.ts +100 -0
  488. package/src/plugin/context.ts +55 -12
  489. package/src/plugin/limits.ts +2 -0
  490. package/src/plugin/manifest.ts +42 -3
  491. package/src/plugin/rest-schemas.ts +46 -0
  492. package/src/plugin/sandbox.ts +4 -1
  493. package/src/plugin/testing.ts +63 -12
  494. package/src/plugin.ts +2 -0
  495. package/src/records.ts +702 -0
  496. package/src/router.ts +120 -10
  497. package/src/routes.ts +17 -1
  498. package/src/rules.ts +109 -44
  499. package/src/runner/acp.ts +1267 -0
  500. package/src/runner/claude.ts +695 -0
  501. package/src/runner/codex.ts +691 -0
  502. package/src/runner/config.ts +97 -0
  503. package/src/runner/desk.ts +377 -0
  504. package/src/runner/launchd.ts +86 -0
  505. package/src/runner/message.ts +232 -0
  506. package/src/runner/modules.ts +30 -0
  507. package/src/runner/process.ts +72 -0
  508. package/src/runner/redact.ts +242 -0
  509. package/src/runner/registry.ts +67 -0
  510. package/src/runner/runner.ts +1879 -0
  511. package/src/runner/slack.ts +180 -0
  512. package/src/runner/systemd-user.ts +103 -0
  513. package/src/runner/task-scheduler.ts +236 -0
  514. package/src/runner/types.ts +334 -0
  515. package/src/runner.ts +110 -0
  516. package/src/schemas.ts +1183 -30
  517. package/src/services.ts +424 -0
  518. package/src/setup-guide.ts +336 -0
  519. package/src/setup-page.tsx +46 -0
  520. package/src/sse.ts +84 -0
  521. package/src/styles/README.md +111 -0
  522. package/src/styles/base.css +130 -0
  523. package/src/styles/console.css +85 -7095
  524. package/src/styles/drawn-by-pages.json +256 -0
  525. package/src/styles/pages/agents.css +1195 -0
  526. package/src/styles/pages/board.css +380 -0
  527. package/src/styles/pages/calendar.css +214 -0
  528. package/src/styles/pages/connect.css +182 -0
  529. package/src/styles/pages/decisions.css +370 -0
  530. package/src/styles/pages/desk.css +126 -0
  531. package/src/styles/pages/documents.css +273 -0
  532. package/src/styles/pages/feed.css +118 -0
  533. package/src/styles/pages/home.css +718 -0
  534. package/src/styles/pages/people.css +90 -0
  535. package/src/styles/pages/plugins.css +212 -0
  536. package/src/styles/pages/roadmap.css +377 -0
  537. package/src/styles/pages/settings.css +171 -0
  538. package/src/styles/pages/shell.css +208 -0
  539. package/src/styles/pages/sign-in.css +178 -0
  540. package/src/styles/pages/task.css +108 -0
  541. package/src/styles/pages/thread.css +331 -0
  542. package/src/styles/pages/work.css +68 -0
  543. package/src/styles/parts/avatar.css +82 -0
  544. package/src/styles/parts/badge.css +227 -0
  545. package/src/styles/parts/bars.css +80 -0
  546. package/src/styles/parts/button.css +99 -0
  547. package/src/styles/parts/calendar.css +547 -0
  548. package/src/styles/parts/callout.css +41 -0
  549. package/src/styles/parts/category.css +8 -0
  550. package/src/styles/parts/chart.css +173 -0
  551. package/src/styles/parts/chip.css +90 -0
  552. package/src/styles/parts/code.css +48 -0
  553. package/src/styles/parts/count.css +27 -0
  554. package/src/styles/parts/crumbs.css +61 -0
  555. package/src/styles/parts/detail.css +110 -0
  556. package/src/styles/parts/empty.css +21 -0
  557. package/src/styles/parts/eyebrow.css +9 -0
  558. package/src/styles/parts/facts.css +147 -0
  559. package/src/styles/parts/figures.css +65 -0
  560. package/src/styles/parts/files.css +38 -0
  561. package/src/styles/parts/filters.css +42 -0
  562. package/src/styles/parts/form.css +109 -0
  563. package/src/styles/parts/frame.css +45 -0
  564. package/src/styles/parts/input.css +243 -0
  565. package/src/styles/parts/legend.css +48 -0
  566. package/src/styles/parts/links.css +37 -0
  567. package/src/styles/parts/mark.css +79 -0
  568. package/src/styles/parts/menu.css +147 -0
  569. package/src/styles/parts/page.css +174 -0
  570. package/src/styles/parts/pager.css +19 -0
  571. package/src/styles/parts/panel.css +33 -0
  572. package/src/styles/parts/person.css +257 -0
  573. package/src/styles/parts/picker.css +185 -0
  574. package/src/styles/parts/progress.css +25 -0
  575. package/src/styles/parts/prose.css +128 -0
  576. package/src/styles/parts/rows.css +63 -0
  577. package/src/styles/parts/series.css +32 -0
  578. package/src/styles/parts/settings.css +101 -0
  579. package/src/styles/parts/share.css +25 -0
  580. package/src/styles/parts/spark.css +23 -0
  581. package/src/styles/parts/spinner.css +29 -0
  582. package/src/styles/parts/stat.css +69 -0
  583. package/src/styles/parts/steps.css +68 -0
  584. package/src/styles/parts/tabs.css +175 -0
  585. package/src/styles/parts/text.css +61 -0
  586. package/src/styles/parts/toggle.css +71 -0
  587. package/src/styles/parts/workers.css +37 -0
  588. package/src/styles/tokens.css +295 -0
  589. package/src/tab-title.ts +25 -0
  590. package/src/tokens.ts +3 -0
  591. package/src/use-action.ts +7 -2
  592. package/src/vocabulary.ts +151 -3
  593. package/template/desk-web/README.md +8 -0
  594. package/template/desk-web/index.html +13 -0
  595. package/template/desk-web/package.json +25 -0
  596. package/template/desk-web/src/main.tsx +24 -0
  597. package/template/desk-web/src/page.tsx +51 -0
  598. package/template/desk-web/tsconfig.json +16 -0
  599. package/template/desk-web/vite.config.ts +15 -0
package/docs/specs/cli.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## Signing in
7
7
 
8
- A person installs the package where the agent runs, or has the agent install it, and the command connects once ([ADR-0011](../adr/0011-an-agent-connects-with-a-short-code-a-person-approves-and-the-token-is-never-shown.md)): `console login --url <origin>` asks the console to connect, prints the address of the console's own page and a code of eight characters, and waits, up to the thirty minutes the code is good for; the person opens the address signed in, checks that the page shows the same code, names the agent and approves; and the command receives a token of its own, which it never prints. An agent that can run commands does this itself and relays the address and the code to its person; `--agent <name>` says what it calls itself; left out, the command names the agent it runs under where its environment says so (Claude Code, Codex), else `An agent`; the machine's name follows (`Claude Code on <machine>`), and the pages show the name before `on` with the whole on hover. A token made by hand on the Agents page is read from standard input with `--token-stdin` instead, for a script or a job, and checked against the console (`GET /api/v1/me` must know the person). Either way the command keeps the token as a login, with the console's address, the person's login there and the workspace's time zone as the console last said it (at `login`, `whoami` or `workspace`; the moments the command prints are in it, as ISO 8601 with its offset, and as the API gives them, in UTC, while none is known or with `--json`; [ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)), in `$XDG_CONFIG_HOME/skillcdn-console/credentials.json` (`~/.config/skillcdn-console/credentials.json` when `XDG_CONFIG_HOME` is unset), readable by the person alone where the system can say so and written whole in one step ([ADR-0027](../adr/0027-the-command-keeps-a-login-per-console-and-a-token-goes-only-to-the-console-that-issued-it.md)). One machine holds a login per console and account: `login` at a second console adds one beside the first, the first is the default console, `--default` makes another the default, and `login` repeated for the same console and account replaces the token, giving the old one up at the console. `console logins` lists them, never a token. `logout [--url <origin>] [--account <login>]` gives one login's token up at its console (`DELETE /api/v1/me/token`) and forgets it; a console out of reach leaves the token to the Agents page, where its person or an administrator removes it; a console that refuses the token because its person is out (`auth.deactivated`, `auth.not_admitted`, [ADR-0044](../adr/0044-a-token-of-a-person-who-is-out-is-kept-and-refused-with-the-reason-until-they-are-back-in.md)) keeps it for when they are back in, and the command forgets it here. A token is never taken on the command line, never typed, and never printed, and a file the command cannot read as its own is never written over: the command says so and stops.
8
+ A person installs the package where the agent runs, or has the agent install it, and the command connects once ([ADR-0011](../adr/0011-an-agent-connects-with-a-short-code-a-person-approves-and-the-token-is-never-shown.md)): `console login --url <origin>` asks the console to connect, prints the address of the console's own page and a code of eight characters, and waits, up to the thirty minutes the code is good for; the person opens the address signed in, checks that the page shows the same code, names the agent and approves; and the command receives a token of its own, which it never prints. An agent that can run commands does this itself, in two calls ([ADR-0129](../adr/0129-a-login-under-an-agent-says-its-code-and-ends-and-the-next-call-waits.md)): where no terminal shows the command's words as they are printed, the host that runs an agent's commands shows them when the command ends, so the call that begins a connection prints the address and the code, then a line that says to tell the person both now, in a message of its own, before the command is run again, and a line that names the command to run again, how long a call of it waits (up to ninety seconds; at a terminal told `--wait 0`, while the code lasts) and, apart from that, the moment the code lasts until; it keeps the connection that waits beside the logins, and ends at once with `0`. The telling has a sentence of its own, before the one that names the command, since an agent that read the two in one ran the command first and told its person after, and the call's wait is said apart from the code's end, which an agent took for the wait. The next `console login` for that console begins no new code, claims the one kept, and waits for the approval, ninety seconds a call, ending with `3` and the words to wait on while the code lasts. `--wait <seconds>` says another wait for either call, and at a terminal too, where a wait that ran out keeps the connection the same way; with none said, a terminal's call waits where it stands and keeps nothing. What is kept of a connection that waits is its secret, its code, its page and its end, in the credentials file under its mode, for as long as the code lasts: it is never printed, `console logins` names the code and its end, `console logout` forgets it, a login kept at that console ends it, and whatever the command keeps anew carries none whose code ran out. A connection kept whose code ran out, or that the console no longer knows (`connect.not_found`: it ran out there, or a person said it was not theirs), is forgotten and said, and a new code begun in the same call. `--agent <name>` says what it calls itself; left out, the command names the agent it runs under where its environment says so (Claude Code, Codex), else `An agent`; the machine's name follows (`Claude Code on <machine>`), and the pages show the name before `on` with the whole on hover. A token made by hand on the Agents page is read from standard input with `--token-stdin` instead, for a script or a job, and checked against the console (`GET /api/v1/me` must know the person). Either way the command keeps the token as a login, with the console's address, the person's login there and the workspace's time zone as the console last said it (at `login`, `whoami` or `workspace`; the moments the command prints are in it, as ISO 8601 with its offset, and as the API gives them, in UTC, while none is known or with `--json`; [ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)), in `$XDG_CONFIG_HOME/skillcdn-console/credentials.json` (`~/.config/skillcdn-console/credentials.json` when `XDG_CONFIG_HOME` is unset), readable by the person alone where the system can say so and written whole in one step ([ADR-0027](../adr/0027-the-command-keeps-a-login-per-console-and-a-token-goes-only-to-the-console-that-issued-it.md)). One machine holds a login per console and account: `login` at a second console adds one beside the first, the first is the default console, `--default` makes another the default, and `login` repeated for the same console and account replaces the token, giving the old one up at the console. `console logins` lists them, never a token. `logout [--url <origin>] [--account <login>]` gives one login's token up at its console (`DELETE /api/v1/me/token`) and forgets it; a console out of reach leaves the token to the Agents page, where its person or an administrator removes it; a console that refuses the token because its person is out (`auth.deactivated`, `auth.not_admitted`, [ADR-0044](../adr/0044-a-token-of-a-person-who-is-out-is-kept-and-refused-with-the-reason-until-they-are-back-in.md)) keeps it for when they are back in, and the command forgets it here. A token is never taken on the command line, never typed, and never printed, and a file the command cannot read as its own is never written over: the command says so and stops. Nor is the file written in a shape the command would not read back: what a console answered, the connection that waits or the login a token becomes, is held to the file's own bounds before anything is kept, and where it is beyond them the command says that the address answered what it cannot keep and stops with `1`, with nothing written and no token given up for it; what `POST /api/v1/connect` answers is read within the same bounds ([rest.md](rest.md#connecting-an-agent)).
9
9
 
10
10
  Which console a command talks to is decided first, and the token is then the one for that console alone: the address is `--url <origin>`, else `CONSOLE_URL` in the environment, else the console `.skillcdn-console.json` binds the directory to, else the default login; the token is `CONSOLE_TOKEN` where `CONSOLE_URL` names that address (the two are a pair, for a hook or a job, and one without the other is refused), else the login kept for the address, for the account `--account <login>` or the directory names, or the one account there. A console nobody is signed in to here gets no request, whatever is kept for another; several accounts at one console with nothing to say which stop the command. An address is `https`, or `http` on this machine alone (`localhost`), and a redirect is never followed, so that a token travels to the console it was issued by and nowhere else. `whoami` and every refusal name the console and the account.
11
11
 
@@ -15,41 +15,81 @@ The command names its version on every request, as the product token of its `use
15
15
 
16
16
  ## The project
17
17
 
18
- The board is a project's ([ADR-0008](../adr/0008-a-workspace-holds-projects-and-what-a-person-may-see-and-change-is-decided-per-project.md)), and every command on it works in one: the one `--project <key>` names, else `CONSOLE_PROJECT` in the environment, else the one `.skillcdn-console.json` names in the working directory or the nearest directory above it. `console use <key> [--url <origin>] [--account <login>]` writes that file, after checking that the console knows the project to the person: the project; the console, where that is not the default login here or `--url` says so; and the account, where the console has several logins or `--account` says so; never a token, and a key the file does not know is dropped on reading. It is meant to be committed in a private repository, so that everyone who works in the checkout, and every agent they run in it, is in the same project at the same console without saying so, and left out of a public one, which it may bind to the organization's console. With none of the three, a command on the board says so and exits with `1`. `console projects` lists the projects the person may work in, with what they are in each; a project the person may not see is not found, as if it were not there.
18
+ The board is a project's ([ADR-0008](../adr/0008-a-workspace-holds-projects-and-what-a-person-may-see-and-change-is-decided-per-project.md)), and every command on it works in one: the one `--project <key>` names, else `CONSOLE_PROJECT` in the environment, else the one `.skillcdn-console.json` names in the working directory or the nearest directory above it. `console use <key> [--url <origin>] [--account <login>]` writes that file, after checking that the console knows the project to the person: the project; the console the command talked to, every time, since what is the default login on one machine is another console's on the next ([ADR-0112](../adr/0112-a-binding-names-its-console-and-whoami-asks-the-console-for-the-project.md)); and the account only where `--account` says so, or where the directory named it before, so that a file to be committed carries nobody's account unasked; never a token, and a key the file does not know is dropped on reading. A file from before, with the project alone, is still read, and means the default login. It is meant to be committed in a private repository, so that everyone who works in the checkout, and every agent they run in it, is in the same project at the same console without saying so, and left out of a public one, which it may bind to the organization's console. With none of the three, a command on the board says so and exits with `1`; `skills` and `skill` read the organization's pack then ([ADR-0113](../adr/0113-the-organizations-pack-is-read-where-no-project-is-named-by-every-member.md)), since a directory that names no project, a desk or a folder a repository is about to be made in, is where the skill that sets one up is looked for. `console whoami` says which of the three named the project, and whether the console has it, before any command on the board is run. A project the console does not have, or does not show the member, is refused by every command as `project.not_found`; where the directory's file or the environment named the key, which whoever runs the command has not in front of them, the refusal says what `whoami`'s says, on every command that works in that project: the key, the console, what named it, and the two things to do. `console projects` lists the projects the person may work in, with what they are in each; a project the person may not see is not found, as if it were not there.
19
19
 
20
20
  ## The commands
21
21
 
22
+ A table a group, each row a command: what it asks the console, and what it says. `...` is `/api/v1/projects/<key>`, the project the command works in. Everywhere: `--json` prints the console's own answer as JSON, in the shapes of `@skillcdn/console/api`; `--url <origin>` names the console this one command talks to, which must be one signed in to here; `--account <login>` the account there, where several are; `--project <key>` the project. A Markdown body given as `-` is read from standard input. A day is given as `2026-10-24`, `today`, `tomorrow` or `+7` (days from today by this machine's clock); `--due overdue` keeps the open tasks past their day, `--due week` those due by the last day of this week, the week beginning as the workspace says (`console workspace`) or, left to the language, as the person's language has it, else this machine's ([ADR-0039](../adr/0039-this-week-is-the-plans-unit-and-the-week-begins-as-the-workspace-says.md)). Every argument is bounded and checked by the console, as the REST API's schemas say; the command sends it as it was given.
23
+
24
+ ### Commands to sign in and to name the project
25
+
22
26
  | Command | Asks the console | Says |
23
27
  |---|---|---|
24
- | `login --url <origin> [--agent <name>] [--token-stdin] [--default]` | `POST /api/v1/connect`, then `POST /api/v1/connect/claim` until a person approved, then `GET /api/v1/me` with the token; `DELETE /api/v1/me/token` with the token a repeated login replaces | the address and the code for a person; then who the token is, and whether this is the default console; keeps the login |
25
- | `logins` | nothing | one line per login: the console, the account, what the token is called, since when, and which is the default; never a token |
26
- | `logout [--url <origin>] [--account <login>]` | `DELETE /api/v1/me/token` | that the login's token is given up and forgotten, or that the console keeps it while its person is out, or that the console was out of reach and the token is left to the Agents page |
27
- | `whoami` | `GET /api/v1/me` | the login, the role, the workspace, the address, and the project this directory works in; with a project, where the organization's rules are read and where the skill working-the-board is on this machine; then the command's version and where it is installed, the console's version and the range it takes, and the update to make when they differ. Keeps the workspace's time zone on the login it used, so that the moments the command prints are in it from then on ([ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)) |
28
+ | `login --url <origin> [--agent <name>] [--self] [--token-stdin] [--default] [--wait <seconds>]` | `POST /api/v1/connect`, then `POST /api/v1/connect/claim` until a person approved, in the same call at a terminal and in the next where there is none ([ADR-0129](../adr/0129-a-login-under-an-agent-says-its-code-and-ends-and-the-next-call-waits.md)), then `GET /api/v1/me` with the token; `DELETE /api/v1/me/token` with the token a repeated login replaces | the address and the code for a person, and when the wait for them ends, printed as a moment is: in the workspace's time zone where a login at that console kept it, else in the machine's own, since an agent passes the moment on to a person, and as the API gave it where the machine says none; then who the token is, whether this is the default console, and where the token, or the session's secret of `--self`, is kept: the credentials file by its path at a terminal, and, where no terminal shows the words and an agent reads them, only that the command keeps it on this machine and never shows it, since that file is the one an agent must never open; last, what is bound to a project and nothing of a next step (`Only a project's checkout is bound to it: console use <key> (console projects lists them).`), since a desk, or a folder that is no checkout of a project's repository, is bound to none; keeps the login |
29
+ | `logins` | nothing | one line per login: the console, the account, what the token is called or that the command is signed in as the account itself, since when, and which is the default; never a token or a session's secret; then one line per connection that waits for a person while its code lasts: the console, the code, its end and the command that waits for it, never its secret (`waiting` on `--json`) |
30
+ | `manager` | `GET /api/v1/me/manager` | whom the person reports to, a person or an agent account, with what they do and what they are; and the administrators, who stand in, where they report to nobody or their manager is out ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)). Needs no project |
31
+ | `logout [--url <origin>] [--account <login>]` | `DELETE /api/v1/me/token` | that the login's token is given up and forgotten, or that the console keeps it while its person is out, or that the console was out of reach and the token is left to the Agents page; a connection that waited for a person at that console is forgotten with it, and where nobody is signed in at that console, or as the account named, it is forgotten all the same and said so, with `0`, where the command otherwise refuses with nothing to forget |
32
+ | `whoami` | `GET /api/v1/me`, and `GET /api/v1/projects/<key>` where a project is named | the login and the role, an agent account by its handle first (`@mira (carol, member)`), the workspace, the address, and the project this directory works in, asked of the console ([ADR-0112](../adr/0112-a-binding-names-its-console-and-whoami-asks-the-console-for-the-project.md)): its key, its name, and what named it, `.skillcdn-console.json` with the directory that holds it, `CONSOLE_PROJECT` or `--project` (`; project web (The web app), named by .skillcdn-console.json in /work/app`), or `no project named here`. A project the console does not have, or does not show the member, is said on that line, and the command ends with exit `1` and `project.not_found` after the lines below, the message naming the key, the console and what named it, then the two things a person can do about it: where the project is there and the member is not in it, one of its owners lists them (`console member add <login> --project <key>`, with the member's login); where the key is wrong, the directory is bound to the right one, the key the repository's agreement names or the one the person says, with `console use <key>`, or `CONSOLE_PROJECT` is set to it; both are said as what is done and by whom, never as a command to whoever reads, since which key is right is not the reader's to choose; `--json` carries `project`, `projectName` and `projectSource`. Then, in one line, what is read before the first task, the rules (`console rules`) and the skill working-the-board, that one command's flags are read with `console help <command>`, and last where the skill is on this machine, in a directory that names no project too, as an agent account's desk does: the sentence of a checkout's agreement says that this answer says how, and the line names nothing else to read; then the command's version and where it is installed, the console's version and the range it takes, and the update to make when they differ. Keeps the workspace's time zone on the login it used, so that the moments the command prints are in it from then on ([ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)) |
28
33
  | `projects` | `GET /api/v1/projects` | one line per project: key, name, what the person is in it, what waits in it |
29
- | `use <key> [--url <origin>] [--account <login>]` | `GET /api/v1/projects/<key>` | that the directory works in the project from now on, at which console and as which account where it binds them, and that `console rules` says what its people ask; then the sentence for the checkout's agreement (AGENTS.md, or CLAUDE.md), to be copied as it is; writes `.skillcdn-console.json` |
30
- | `work [--person <login>]` | `GET /api/v1/work`, `GET /api/v1/people/<id>/work` | what is on the person's plate across their projects: the open tasks they work on, the sooner due first, each with its project; and the decisions waiting for their answer ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)). `--person` shows another person's plate, for an administrator or an owner of a project they are in: the open tasks they work on within the projects the asker may see, without the decisions. The tasks done or dropped lately, which the answer carries as `closed` for the week on the plate's page, are in `--json` only. Needs no project |
31
- | `tasks [--state <state>] [--open] [--mine] [--category <key>] [--goal <id>] [--due <day\|today\|week\|overdue>] [--unassigned] [--search <words>] [--archived] [--limit <n>] [--offset <n>]` | `GET .../tasks` with the filters and the page (`--mine` and `--unassigned` not together; `--search` is `q=`, the words of a title or a number, how a task is found as a parent, [ADR-0037](../adr/0037-a-task-has-one-owner-and-any-number-of-workers-and-a-parent-or-a-goal-is-found-by-search.md)) | one line per task: number, state, priority, title, owner, workers, category, due day, what waits on it, and whether it is put away; the tasks put away are left out unless `--archived` asks for them alone; a page at a time |
32
- | `task <number\|id>` | `GET .../tasks/<ref>`, the decisions about it, the runs on it, `GET .../tasks/<id>/comments` | the task in full, with its plan and its moments, and the discussion on it: each comment whole, with its files and the command that reads each |
33
- | `task new <title> [--body <markdown>\|--file <path>] [--state <state>] [--priority <priority>] [--category <key>] [--goal <id>] [--starts <day>] [--due <day>] [--worker <login\|me\|none>]... [--parent <number\|id>]` | `POST .../tasks` | the number and the id; `--worker` given again, or with commas between, names several, in place of the workers there were, and `none` alone nobody |
34
+ | `use <key> [--url <origin>] [--account <login>]` | `GET /api/v1/projects/<key>` | that the directory works in the project from now on, at which console, and as which account where it binds one, that the file names the project and the console and never a token, and that `console rules` says what its people ask; then the sentence for the checkout's agreement (AGENTS.md, or CLAUDE.md), to be copied as it is, which has an agent run `console whoami` before its first step and work the task through the console when that names a project or the file is in the checkout, as the answer of `whoami` says how, and names nothing else to read; writes `.skillcdn-console.json` |
35
+
36
+ ### Commands for work, tasks and goals
37
+
38
+ | Command | Asks the console | Says |
39
+ |---|---|---|
40
+ | `work [--person <login>]` | `GET /api/v1/work`, `GET /api/v1/people/<id>/work` | what is on the person's plate across their projects: the open tasks they work on, the sooner due first, each with its project; and the decisions waiting for their answer, each with who asked it, whom it is for and when it was asked, which is since when it waits ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)). `--person` shows another person's plate, for an administrator or an owner of a project they are in: the open tasks they work on within the projects the asker may see, without the decisions. The tasks done or dropped lately, which the answer carries as `closed` for the week on the plate's page, are in `--json` only. Needs no project |
41
+ | `tasks [--state <state>] [--open] [--mine] [--category <key>] [--goal <id>] [--due <day\|today\|week\|overdue>] [--unassigned] [--search <words>] [--archived] [--limit <n>] [--offset <n>]` | `GET .../tasks?brief=true` with the filters and the page, the tasks without their bodies, which no line shows, and whole on `--json` (`--mine` and `--unassigned` not together; `--search` is `q=`, the words of a title or a number, how a task is found as a parent, [ADR-0037](../adr/0037-a-task-has-one-owner-and-any-number-of-workers-and-a-parent-or-a-goal-is-found-by-search.md)) | one line per task: number, state, priority, title, owner, workers, category, due day, what waits on it, and whether it is put away; the tasks put away are left out unless `--archived` asks for them alone; a page at a time; a search that finds nothing says so with the words it looked for, and, where they were several, that every one must be in a title and fewer find more |
42
+ | `task <number\|id>` | `GET .../tasks/<ref>`, the decisions about it, the runs on it without their reports (`GET .../runs?task=&brief=true`; whole on `--json`), `GET .../tasks/<id>/comments` | the task in full, after its id the address of its page on a line of its own (`page: <origin>/projects/<key>/tasks/<number>`, made from the console's origin and the pages' route and asked of no console, so that an agent that tells a person of the task links the task and not the console's front page), with its plan and its moments, and the discussion on it: each comment whole, with its files and the command that reads each |
43
+ | `task new <title> [--body <markdown>\|--file <path>] [--state <state>] [--priority <priority>] [--category <key>] [--goal <id>] [--starts <day>] [--due <day>] [--worker <login\|me\|none>]... [--parent <number\|id>] [--take [--rules <mark>] [--agent <name>]]` | `POST .../tasks`; with `--take`, then what `take` asks, from `POST .../runs` on | the number, the id and the address of the task's page, as `task` prints it (with `--take`, once, in the task's lines after the take); `--worker` given again, or with commas between, names several, in place of the workers there were, and `none` alone nobody. With `--take` the task is written and taken in one command, in that order: what `task new` prints, the number first, then what `take` prints, `--rules` and `--agent` as `take` has them, and on `--json` what `take` answers with the task as it was written beside it (`written`). The task is written `ready` where no state is said, since an idea is not taken; a state that cannot be taken (`done`, `dropped`) is refused before anything is written, as are `--rules` and `--agent` without `--take`. Where the take fails after the task was written, the task's two lines are on the output (on `--json`, `{ "written": ... }` alone), and the error says, before the console's own words for the refusal, that the task is written and was not taken, and that `console take <number>` is the way on: the task is not written a second time. Where the run began and only a read after it failed, the error says that the task is written and taken, by which run, and that it is neither written nor taken again (on `--json`, `{ "written": ..., "run": ... }`), since a second take would end the run that began. The exit code is the refusal's |
34
44
  | `task edit <number\|id> [--title <title>] [--body ...] [the same flags; `none` clears a field]` | `GET .../tasks/<ref>`, then `PATCH .../tasks/<id>` | the task in full, as it is now |
35
45
  | `task archive <number\|id>` | `GET .../tasks/<ref>`, then `POST .../tasks/<id>/archive` | the task's line, put away ([ADR-0029](../adr/0029-a-task-done-or-dropped-is-put-away-out-of-the-board-and-open-by-its-number.md)), whatever its state ([ADR-0030](../adr/0030-a-task-is-put-away-from-any-state.md)): out of the listings, the board and the calendar, open by its number still |
36
46
  | `task archive --goal <id>` | `POST .../tasks/archive` | how many done or dropped tasks of the goal were put away; for an owner |
37
47
  | `task restore <number\|id>` | `GET .../tasks/<ref>`, then `POST .../tasks/<id>/restore` | the task's line, back on the board |
38
48
  | `goals [--category <key>] [--state <state>] [--search <words>] [--limit <n>] [--offset <n>]` | `GET .../goals?category=&state=&q=&limit=&offset=` | one line per goal of the roadmap: id, state, title, category, the days it starts and is meant to be reached by, how far it is ([ADR-0026](../adr/0026-a-goal-is-planned-in-days-and-sorted-into-a-category-and-the-roadmap-is-read-as-months.md)); `--search` keeps those whose title has the words; a page at a time |
39
- | `goal <id>` | `GET .../goals/<id>`, `GET .../tasks?goal=` | the goal in full, with its plan and the tasks that work towards it |
49
+ | `goal <id>` | `GET .../goals/<id>`, `GET .../tasks?goal=&brief=true` (whole on `--json`) | the goal in full, with its plan and the tasks that work towards it |
40
50
  | `goal new <title> [--body <markdown>\|--file <path>] [--state <state>] [--category <key>] [--starts <day>] [--due <day>]` | `POST .../goals` | the title and the id; for an owner of the project |
41
51
  | `goal edit <id> [--title <title>] [--body ...] [--state <state>] [--category <key\|none>] [--starts <day\|none>] [--due <day\|none>]` | `PATCH .../goals/<id>` | the goal in full, as it is now |
52
+
53
+ ### Commands for the workspace and its people
54
+
55
+ | Command | Asks the console | Says |
56
+ |---|---|---|
42
57
  | `categories` | `GET /api/v1/categories` | one line per category: key, name, colour |
43
58
  | `workspace` | `GET /api/v1/me` | the workspace's settings ([ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)): its name, who sees whom on the People page (`everyone`, or `shared_projects`), the day the calendars begin a week on, its time zone, its language for whoever has none of their own ([ADR-0081](../adr/0081-a-workspace-has-a-language-for-whoever-has-none-of-their-own.md)), where the organization's skills come from, and the most days a token may last. Keeps the time zone on the login, as `whoami` does. Needs no project |
44
- | `workspace edit [--people-visibility <everyone\|shared-projects>] [--week-start <auto\|monday\|sunday>] [--time-zone <zone\|none>] [--language <en\|ko\|none>]` | `PATCH /api/v1/workspace` | the settings as they are now; for an administrator. The time zone is an IANA name the console knows (`request.invalid` otherwise), and `none` takes it away; the command keeps the zone on its login and prints moments in it from then on. The language is one the console speaks, and `none` takes it away, English then |
59
+ | `workspace edit [--people-visibility <everyone\|shared-projects>] [--week-start <auto\|monday\|sunday>] [--time-zone <zone\|none>] [--language <en\|ko\|none>] [--handle <name\|none>] [--domain <domain\|none>] [--service <role>=<kind\|none>[,<parameter>=<value>]...]...` | `PATCH /api/v1/workspace` | the settings as they are now; for an administrator. The time zone is an IANA name the console knows (`request.invalid` otherwise), and `none` takes it away; the command keeps the zone on its login and prints moments in it from then on. The language is one the console speaks, and `none` takes it away, English then. `--handle`, `--domain` and `--service` name what the workspace's agents work with ([ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md)): the organization's short name, its domain, and a service for a role, `identity`, `git` or `messenger`, as `git=github,organization=acme`, given again for another role, `=none` to take one away; `console workspace` prints them |
45
60
  | `workspace pack-token --connect` | `POST /api/v1/workspace/pack-token/connect`, then `POST .../pack-token/connect/claim` at the interval the deployment named, until the token is kept or the request ended | the page at SkillCDN and the code for a person who may open the repository, then that the pack is connected and the workspace's settings as they are now, never the token; `1` when the code expired, the request was declined or SkillCDN refused; for an administrator ([ADR-0036](../adr/0036-a-private-pack-is-connected-with-a-code-a-person-approves-from-the-projects-settings.md)) |
46
61
  | `workspace pack-token --stdin`, `workspace pack-token --remove` | `PUT /api/v1/workspace/pack-token` with the token read from standard input, or `DELETE /api/v1/workspace/pack-token` | the workspace's settings as they are now, saying when its SkillCDN token was set and never the token: what every project with no address and no token of its own reads the organization's pack with; for an administrator |
47
- | `people` | `GET /api/v1/people` | one line per person the person sees (everyone, or, while the workspace narrows the people a member sees, those they share a project with and the administrators): login, name, role in the workspace, and `deactivated` for one taken out; then, where they see everyone, one line per login let in that nobody has signed in with yet. Needs no project |
62
+ | `people` | `GET /api/v1/people` | one line per person the person sees (everyone, or, while the workspace narrows the people a member sees, those they share a project with, the administrators and their own reporting line): login, name and what they do where a title says, role in the workspace, and `deactivated` for one taken out; an agent account with its handle after its login (`carol @mira`), as `agent account`, and `not signed in yet` while nobody has signed in with it; then, where they see everyone, one line per login let in that nobody has signed in with yet. Needs no project |
48
63
  | `person role <login> <admin\|member>` | `GET /api/v1/people?login=` for the id, then `PATCH /api/v1/people/<id>` | the person as they are now; for an administrator |
49
64
  | `person manager <login> <manager login\|none>` | `GET /api/v1/people?login=` for both ids, then `PATCH /api/v1/people/<id>` with `managerId` | the person as they are now, with whom they report to: the reporting line of the directory, another active person who does not report to them, or none; for an administrator (`person.invalid_manager`); `console people` shows it beside each person |
65
+ | `person title <login> "<title>"\|none` | `GET /api/v1/people?login=` for the id, then `PATCH /api/v1/people/<id>` with `title` | the person as they are now, with what they do after their name: a line up to `MAX_PERSON_TITLE_LENGTH`, or none; every member's, for an administrator, and of an agent account for its supervisors too ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)) |
50
66
  | `person email <login> <address\|none>` | `GET /api/v1/people?login=` for the id, then `PATCH /api/v1/people/<id>` with `email` | the person with their work email, which `console people` prints in angle brackets where the console answers one, to an administrator and for oneself ([ADR-0069](../adr/0069-the-directory-keeps-a-work-email-read-by-an-administrator-the-person-and-a-plugin-allowed-to.md)); for an administrator |
51
67
  | `person add <login> [--host gh\|google]`, `person remove <login>` | `POST /api/v1/listings`; `GET /api/v1/people` for the id, then `DELETE /api/v1/listings/<id>` | the login let in (the host read off the login unless `--host` says: an address is Google's, anything else the git host's), or that it is no longer; for an administrator ([ADR-0022](../adr/0022-who-is-in-is-the-consoles-own-record-and-an-administrator-keeps-it.md)) |
52
68
  | `person deactivate <login>`, `person reactivate <login>` | `GET /api/v1/people?login=` for the id, then `PATCH /api/v1/people/<id>` with `status` | the person as they are now: out, refused on every request with their agents, or back in; for an administrator; never a person the organization let in |
69
+
70
+ ### Commands for agent accounts
71
+
72
+ | Command | Asks the console | Says |
73
+ |---|---|---|
74
+ | `agents` | `GET /api/v1/agents` | one line per agent account the person sees or supervises ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)): the handle (`@mira`), the name and what it does, the login it signs in with, whom it reports to where the person sees them, and `not signed in yet` or `deactivated` where so. Needs no project |
75
+ | `agent new <handle> [--login <login>] [--name "<name>"] [--title "<title>"] [--manager <login\|me>] [--host gh\|google] [--seed <seed>] [--convert]` | `GET /api/v1/people?login=` for the manager's id, then `POST /api/v1/agents`, with `convert: true` where `--convert` says that the member who carries the login is to become the account | the account's line, and what happens next: the account it signs in with, by its login: at Google Workspace it is made before its machine is set up, and its first sign-in binds it; at a git host it has to be the organization's already, and the line says what its first sign-in is held to ([ADR-0126](../adr/0126-an-agent-account-at-a-git-host-is-bound-to-the-hosts-account-when-it-is-added.md)), confirmed where the organization said which account the login is, so that only that account is let in, and not confirmed where it has no member called so, could not be asked, or is not read by this console, with who is let in then; the account's line says the same in a word while it waits (`its account confirmed at the host`, `its account not confirmed`); its first task, by its number, where the console made its onboarding with it; and that a machine comes next, with `console agent invite`. Without `--login`, the login is what the workspace's identity service makes of the workspace's short name, the handle and the domain (`mira@acme.example`), and the command asks for one where the workspace names no such service. For an administrator ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)): the handle, which never changes; the login it signs in with, the host read off its shape unless `--host` says; the name, the handle capitalized when left out; the manager, whoever makes it when left out; the project it starts in, the directory's or `--project`. The console rolls the avatar, from `--seed` where one is given. The pages make one from proposals instead |
76
+ | `agent <handle> [--avatar <file>] [--account <service>=<name\|none>]... [--day-start <HH:MM\|none>] [--day-end <HH:MM\|none>]` | `GET /api/v1/agents/<handle>`; with `--account`, `PATCH /api/v1/agents/<handle>` | the account's line; how it stands ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md)), its state, why, since when, and when its runner was last heard from; for a supervisor and for the account, what its runner last said of itself, the model and the effort it is set to and runs with, and how many of its signals were delivered; and whether the person supervises it; the handle with the `@` or without. With `--avatar`, the account's avatar as a PNG file of 1024 pixels a side, written to the path given or into a directory under `<handle>.png`: drawn by the command from the `avatarParts` the console answers, for the profile of the agent's account elsewhere. With `--account`, given once for each, the accounts the agent holds elsewhere are recorded on it ([ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md)): what it is called at a service, by the service's short name (`--account github=acme-mira`), and never a secret; `=none` takes one away; by the account itself, or a supervisor. The account's lines say them as `accounts elsewhere`. `--day-start` and `--day-end` keep the hours of its day ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md)), an hour as `09:00` in the workspace's time zone, `none` for the usual start or no end, by the account itself or a supervisor: the console sends its briefings by them, and the account's lines say them as `day`. Needs no project |
77
+ | `secrets` | `GET /api/v1/agents/me/secrets` | one line per secret of the account's own store ([ADR-0087](../adr/0087-an-agent-account-keeps-its-secrets-in-a-store-of-its-own-that-only-it-reads.md)): its name, when it was set, `seeded by a supervisor` where one set it, and the day it ends on where one was said; never a value. For an agent account signed in as itself. Needs no project |
78
+ | `secret <name>` | `GET /api/v1/agents/me/secrets/<name>` | the value and nothing else, for whatever reads it next; the reading is noted on the account's record |
79
+ | `secret <name> --set [--file <path>] [--expires <day\|none>]`, `secret <name> --remove` | `PUT`, `DELETE /api/v1/agents/me/secrets/<name>` | the secret as it is kept, without its value; or that it is removed. The value is typed unseen at the terminal, or read whole from standard input when piped, or from `--file`; never an argument |
80
+ | `agent secrets <handle>` | `GET /api/v1/agents/<handle>/secrets` | the names of the account's secrets, as `secrets` prints them; for a supervisor. Refused to the account itself as to anyone who supervises it not, and then in words that name the account's own commands, `console secrets` and `console secret <name>` |
81
+ | `agent secret <handle> <name> [--file <path>] [--expires <day\|none>]`, `agent secret <handle> <name> --remove` | `PUT`, `DELETE /api/v1/agents/<handle>/secrets/<name>` | that the secret is seeded, which only the account reads back, or removed; for a supervisor. The value is given as `secret --set` takes it |
82
+ | `agent invite <handle> [--revoke]` | `POST`, `DELETE /api/v1/agents/<handle>/invitation` | the day the invitation is good until, the one line to say to the agent's product on its machine, which carries the command with its code, shown this once, and the address where a person reads the same guide, `/setup/<code>`; or that the invitation is taken away. Made again, it takes the place of the one before. For a supervisor ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md), [rest.md](rest.md#the-invitation-apiv1agentshandleinvitation-and-get-apiv1setupcode)). The code is no credential |
83
+ | `agent setup --console <origin> --code <code>` | `GET /api/v1/setup/<code>` at the console the line names, with no token | the guide of that account's setup, as Markdown with every line to run on a line of its own: the account and how it signs in, then what has to be there before the line, what the agent asks the person at the machine for and what the command does, what the agent does when it starts, how it signs in elsewhere in a browser, and what it asks for where it cannot, in the words of the services its workspace names ([ADR-0094](../adr/0094-the-account-an-agent-signs-in-with-is-named-and-who-makes-it-is-the-organizations-to-say.md)). `--guide` stops there, and `--json` prints what the code opened and the guide in its parts. Otherwise the command goes on, as [Setting a machine up](#setting-a-machine-up) says. Run in the agent's OS account on the machine being set up, signed in nowhere yet; `--url` is read as `--console`, and the code as a person types one. Needs no login and no project. A code that opens nothing ends in 1 and says who makes another; what is no code or no origin is a misuse (2) and asks nothing of any console |
84
+ | `agent setup --refresh [--desk <dir>]` | `GET /api/v1/me` | what was written of the desk and of the service, and the services the workspace names now with what the account is called at each. For the agent account's own command, in its desk, when the services or the account changed |
85
+ | `agent tell <handle> "<words>"`, `agent interrupt\|stop\|restart\|reset\|wake <handle> ["<words>"]`, an `interrupt` without words having the agent read now what it was told and has not come to; the words also from `--file <path>`, or from standard input as `-` | `POST /api/v1/agents/<handle>/signals` | the signal as it is on the account's record: its number, its kind, who sent it and through which agent, when, and its first words. For a supervisor ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), [runner.md](runner.md#signals)): `tell` says something to the agent, taken after the tool call under way; `interrupt` stops its turn first; `stop` ends its session, and it stays stopped until `restart`, which goes on with the same conversation, or `reset`, which begins a new one; `wake` says there is something to do. Needs no project |
86
+ | `agent set <handle> [--model <name\|none>] [--effort <level\|none>]` | `POST /api/v1/agents/<handle>/signals` with `kind: "set"` | the signal, with the whole choice from then on: the model and the level of effort the agent runs with, among those its runner offered (`signal.not_offered`), `none` for the product's own again; for a supervisor |
87
+ | `agent signals <handle\|me> [--limit <n>] [--before <number>]` | `GET /api/v1/agents/<handle>/signals`, `GET /api/v1/agents/me/signals` | the account's record of what it was sent, the newest first, a line each, and the command that reads on where there is more; for a supervisor, and as `me` for the account itself |
88
+
89
+ ### Commands for teams, projects and members
90
+
91
+ | Command | Asks the console | Says |
92
+ |---|---|---|
53
93
  | `teams` | `GET /api/v1/teams`, and `GET /api/v1/people` for the logins | one line per team ([ADR-0073](../adr/0073-a-team-is-a-name-and-its-members-a-unit-to-call-people-by-and-to-grant-a-plugins-role-to.md)): its key ([ADR-0074](../adr/0074-a-team-is-called-by-a-key-that-never-changes-one-name-among-the-projects-keys.md)), its name, how many are in it, and their logins |
54
94
  | `team new <key> "<name>"`, `team rename <key> "<new name>"`, `team remove <key>`, `team add <key> <login>`, `team drop <key> <login>` | `POST /api/v1/teams` with the key and the name; `PATCH` or `DELETE /api/v1/teams/<key>`; `GET /api/v1/people?login=` for the person, then `POST /api/v1/teams/<key>/members` or `DELETE .../members/<person id>` | the team as it stands, with its key and its members' logins; for an administrator. The key is a project key's shape, one among the teams' and the projects' keys, and never changes |
55
95
  | `project <key>` | `GET /api/v1/projects/<key>` | the project in full: what it is, its mark, its skills address, what the person is in it |
@@ -61,42 +101,63 @@ The board is a project's ([ADR-0008](../adr/0008-a-workspace-holds-projects-and-
61
101
  | `members` | `GET .../members` | one line per member: login, role, since when; in a project open to the workspace, everyone of it ([ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)) |
62
102
  | `member add <login> [--role owner\|member] [--project <key>[,<key>...]]`, `member role <login> <owner\|member>`, `member remove <login>` | `GET /api/v1/people?login=` for the id, then `POST .../members` (once per project when `--project` names several with commas), `PATCH .../members/<id>`, `DELETE .../members/<id>` | the member as they are now, or that they are no longer listed; with several projects, one line per project, a person listed already said so; for an owner. In a project open to the workspace everyone is a member already: `add` lists an owner with `--role owner` and refuses a member (`member.open_project`), `role <login> owner` lists one and `role <login> member` takes the listing away, `remove` takes a listing away and the person stays a member |
63
103
  | `category new <key> <name> [--color <name>]`, `category edit <key> [--name <name>] [--color <name>]`, `category remove <key>` | `POST /api/v1/categories`, `PATCH .../categories/<key>`, `DELETE .../categories/<key>` | the category as it is now, or that it is gone; for an administrator |
64
- | `skills`, `skills <folder\|file>`, `skills --search <words> [<folder>] [--limit <n>] [--cursor <cursor>]` | `GET .../skills`; `GET .../skills/browse?path=&cursor=`, page after page to the end; `GET .../skills/find?query=&path=&cursor=&limit=`, one page | the project's pack, or the organization's ([ADR-0031](../adr/0031-the-console-reads-a-pack-as-the-skillcdn-command-does-and-a-local-one-from-a-directory.md)): where it is, at a deployment or on the console's machine, and how the read went; what a client is told of it on connect, as the deployment tells one, with the reads named as the console's commands; every skill with the path of its `SKILL.md` and every document, as a search without words lists them; where a person connects an agent of its own, and where the console's own skills are on this machine. With a folder (`.` for the root; `/` is taken too, but a Windows shell rewrites it into a path before the command sees it), what it holds, whole, as `browse_repo` lays it out for a model. With a file's path, the file's outline, whole: every heading with its level and the offset and limit that read its section with `skill --file`; a file that is not Markdown has none, and the line says so (SkillCDN 0.4). With `--search`, one page of what the words find, as `search_repo` does: skills first with the files of theirs that matched, then documents, each with the sections of it that matched and the offset and limit that read each, in relevance order, within the folder when one is named, ten unless `--limit` says otherwise (up to 25), a line on how the page was ranked where the deployment searches by meaning too, and a `nextCursor` line when more matched, which `--cursor` continues. `--json` is the console's answer: what the pack answered, in the shapes of the main repository's REST API, the pages of a folder or an outline joined. The listing ends with where the plugins' own skills are: `console plugin <key> skills` |
65
- | `skill <path>`, `skill --file <path> [--offset <n>] [--limit <n>]` | `GET .../skills`, then `GET .../skills/one?path=&cursor=`, page after page until `complete`; with `--file`, `GET .../skills/file?path=&offset=` until the end, or, with `--offset` or `--limit`, `GET .../skills/file?path=&offset=&limit=` once | the skill whole, as `load_skill` lays it out for a model: the rules of the repository from its root to the nearest manifest, the instructions, the included files, then its supporting files and what it refers to, rendered by the main repository's own renderers with the reads named as the console's commands; or the file whole, or what a folder holds; or, with `--offset` (0 or more) or `--limit` (1 to 100,000), one page of the file as asked, the section a search or an outline named, with where the file continues; a private pack through the pack token the project holds ([ADR-0028](../adr/0028-the-console-reads-a-projects-pack-through-the-deployments-rest-api-with-a-pack-token-for-a-private-one.md)). `<path>` is the path of the SKILL.md from the repository's root, or the URI the pack names it by (`skill://<host>/<owner>/<name>/<path>`); a URI of another pack is not understood. `--file` takes no skill's path beside it, and `--offset` and `--limit` go with `--file` only: otherwise not understood. A read the pack refused prints its status and the pack's own words, and exits with `0` |
66
- | `rules` | `GET .../rules`, or `GET /api/v1/rules` without a project named, and `GET /api/v1/me` | the rules that hold, as they read for the person (`{language}` is the language they read in, or the task's while they have none) ([ADR-0023](../adr/0023-the-rules-of-a-board-are-pages-the-workspace-and-its-projects-keep-read-first-by-every-agent.md)): the workspace's, the console's own until an administrator writes the organization's, with its version and who wrote it when written; then this project's own, or that it adds none; then, under `## Plugins`, a line per plugin bound to the project that the person holds a role in, or at the workspace every plugin they may use, with the sentence its manifest gives agents and `console plugin <key>` to start with ([plugins.md](plugins.md), "The command") |
67
- | `rules write --body <markdown>\|--file <path>\|-\|none [--workspace] [--base <version>]` | `PUT .../docs/rules` or `POST .../docs/rules/archive`; with `--workspace`, `PUT /api/v1/rules` or `POST /api/v1/rules/archive` | the version written, that the console's own rules sent as they are wrote nothing, or that the rules are put away; for an owner of the project, or an administrator for the workspace's |
104
+
105
+ ### Commands for skills, rules and plugins
106
+
107
+ | Command | Asks the console | Says |
108
+ |---|---|---|
109
+ | `skills`, `skills <folder\|file> [--limit <n>] [--cursor <cursor>]`, `skills --search <words> [<folder>\|--path <folder>] [--limit <n>] [--cursor <cursor>]`, `skills --rows [<folder\|file>] [--heading <words>] [--format csv\|json] [--out <path>]`, `skills --code [<folder\|file>] [--heading <words>] [--grep <pattern>] [--out <path>]` | `GET .../skills`; `GET .../skills/browse?path=&cursor=&limit=`, one page; `GET .../skills/find?query=&path=&cursor=&limit=`, one page; `GET .../skills/rows?path=&heading=&cursor=&limit=` or `.../skills/code`, page after page to the end; where no project is named, the same reads under `/api/v1/workspace/skills` | each read as the `skillcdn` command's own goes, printed by the reads that command prints with ([ADR-0118](../adr/0118-the-consoles-reads-of-a-pack-keep-to-the-skillcdn-commands-read-by-read.md), [ADR-0124](../adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)): `skillcdn skills`, `browse`, `find`, `rows` and `code`, with the same pages, bounds and words, the reads named as the commands the pack is read with, `console plugin <key> skills` for a plugin's. The project's pack; or, where no project is named, the organization's, every read but `--rows`, `--code` and `--json` under a first line that says whose pack it is and how a project's own is read ([ADR-0113](../adr/0113-the-organizations-pack-is-read-where-no-project-is-named-by-every-member.md)). The project's pack is its own, or the organization's ([ADR-0031](../adr/0031-the-console-reads-a-pack-as-the-skillcdn-command-does-and-a-local-one-from-a-directory.md)): where it is, at a deployment or on the console's machine, and how the read went; what a client is told of it on connect, as the deployment tells one, with the reads named as the console's commands; every skill with the path of its `SKILL.md` and every document, as a search without words lists them, the README of a folder marked as its overview; a line of the command's own, after the listing and after what a search found, that a skill is loaded, its rules first, with `console skill <the path of its SKILL.md>`, a long one in parts, and that `--file` reads a file as it is, without the rules; where a person connects an agent of its own, and where the console's own skills are on this machine. With a folder (`.` for the root; `/` is taken too, but a Windows shell rewrites it into a path before the command sees it), a page of what it holds, as `browse_repo` lays it out for a model: 50 entries unless `--limit` says otherwise (up to 200), and a page that ends before the folder does names its `nextCursor`, which `--cursor` continues. With a file's path, the file's outline, paged the same way: every heading with its level and the offset and limit that read its section with `skill --file`; a file that is not Markdown has none, and the line says so (SkillCDN 0.4); from SkillCDN 0.5 a heading says how many rows the tables of its section hold, and a line how many tables and code blocks the document has, each with the command that reads them as data, its path spelled as the line that reads the next part of a skill spells one (`skill` below). With `--rows`, the tables of the document, or of every document under the folder, the whole pack when none is named, as data ([ADR-0100](../adr/0100-a-packs-tables-and-code-blocks-are-had-as-data-through-the-console.md)): one CSV, a header of `path`, `heading` and every column name the tables have, then a line per row in reading order, every page the pack answers joined, so that a table written in several sections and files under one header comes out as one. `--format json` prints an array of rows instead, each with its `path`, its `heading` and its `cells` by column name; a document with no table prints the header alone, and standard error says that there is none. With `--code`, the fenced code blocks as written, each under a line that names its file, the section it stands in and what it says it is written in (`--- <path> > <heading> (<language>) ---`); `--grep <pattern>` keeps the blocks whose text matches, a regular expression as JavaScript reads one, run on this machine. `--heading <words>` keeps what stands under a heading whose path holds every word; `--out <path>` writes the file there, or into a directory, and says how much was written (`Wrote 3 rows of 2 tables to <file>.`), instead of printing. A read as data that the pack refused prints nothing, says why on standard error and exits with `1`, so that what a program takes is never a refusal; one that does not end within 64 pages fails the same way, and a folder or a file under the path is named instead. With `--search`, one page of what the words find, as `search_repo` does: skills first with the files of theirs that matched, then documents, each with the sections of it that matched and the offset and limit that read each, in relevance order, within the folder when one is named, after the words or with `--path <folder>`, ten unless `--limit` says otherwise (up to 25), a document made from others marked as one (SkillCDN 0.5), a line on how the page was ranked where the deployment searches by meaning too, which from SkillCDN 0.5 says where identifiers were ranked by their words and how much of the pack is embedded so far, and a `nextCursor` line when more matched, which `--cursor` continues. A read the pack refused ends the command with exit `1` and the refusal on standard error, the listing too: for one read, the pack's own code and words, as the `skillcdn` command prints them (`file.not_found: No file at that path in this mount.`); for the pack as a whole, where it is, how it stands and whose token is missing. `--json` is the console's answer: what the pack answered, in the shapes of the main repository's REST API, one page of a folder or an outline as it came, the tables or the code blocks joined; for a refused read it says the status, and the command ends the same. The listing ends with where the plugins' own skills are: `console plugin <key> skills` |
110
+ | `skill <path> [--cursor <cursor>]`, `skill --file <path> [--offset <n>] [--limit <n>]` | `GET .../skills`, then `GET .../skills/one?path=&cursor=`, page after page until `complete` or until the next page would pass what a part holds; with `--file`, `GET .../skills/file?path=&offset=&limit=` once; where no project is named, the same reads under `/api/v1/workspace/skills` | as `skillcdn skill` and `skillcdn file` go ([ADR-0118](../adr/0118-the-consoles-reads-of-a-pack-keep-to-the-skillcdn-commands-read-by-read.md), [ADR-0124](../adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)), of the project's pack, or of the organization's where no project is named, under the line that says so: the skill, the pages it came in joined, whole where it prints within 28,000 characters and otherwise in parts, since a host shows an agent no more of one command's output: a part joins as many pages as fit, says at its head that the skill's context is incomplete, and ends with `The skill continues. Read the next part before using it: console skill <path as given> --cursor <cursor>` and, after it, the console's own words that the part stops in the middle of the skill and that the command is run now, before a plan or any other step, until a part ends without them (a fresh agent read one part of four and planned from it), with `--project`, `--url` and `--account` as they were given, which prints the next; a cursor of a pack that has moved since is refused in the pack's own words. Each word of a line printed to run is spelled so that bash and PowerShell both take it whole and expand nothing in it: as it is where neither reads anything of it, else in single quotes, and in double quotes where it holds a single quote, straight or curly, and nothing either reads inside them; a word that holds a single quote with `$`, a backtick, a double quote, a backslash or `!`, or a character that does not show, has no spelling both take, and no line is printed for it: the part says to run the command that was run again with `--cursor <cursor>`, and why, and an outline says the read with the file's path quoted for one's shell. Laid out as `load_skill` lays it out for a model: the rules of the repository from its root to the nearest manifest, the instructions, the included files, then its supporting files and what it refers to, a reference whose link names a section with what reads that section (SkillCDN 0.5), rendered by the main repository's own renderers with the reads named as the console's commands; or, with `--file`, a page of the file, or what a folder holds: the text as written from character `--offset` (0 unless given), 24,000 characters ended at the end of a line unless `--limit` says otherwise (1 to 100,000), and a page that ends before the file does says where the next begins, which `--offset` then reads; the section a search or an outline named is read the same way; a private pack through the pack token the project holds ([ADR-0028](../adr/0028-the-console-reads-a-projects-pack-through-the-deployments-rest-api-with-a-pack-token-for-a-private-one.md)). `<path>` is the path of the SKILL.md from the repository's root, or of the skill's folder, which is read as its `SKILL.md` (`.` for the root's own), or the URI the pack names it by (`skill://<host>/<owner>/<name>/<path>`); a URI of another pack is not understood. Where the pack answers that no skill is at the path, the command says so as `skillcdn skill` does, `skill.not_found: No skill at "<path>". Use console skills <folder> or console skills --search for its exact SKILL.md path. Available: <the first twenty there are>.`; no file is the pack's own `file.not_found` and words; the words about a private pack and its token are for a pack that serves nothing to the console at all. `--file` takes no skill's path beside it, `--offset` and `--limit` go with `--file` only, and `--cursor` with a skill only: otherwise not understood. A read the pack refused ends the command with exit `1` and the refusal on standard error; `--json` prints the console's answer, with the skill whole in it, from `--cursor` where one is given, or the file's page as the API gives it, 40,000 characters unless `--limit` says otherwise; for a refused read it says the status, and ends the same |
111
+ | `rules` | `GET .../rules`, or `GET /api/v1/rules` without a project named, and `GET /api/v1/me` | the rules that hold, as they read for the person (`{language}` is the language they read in, or the task's while they have none) ([ADR-0023](../adr/0023-the-rules-of-a-board-are-pages-the-workspace-and-its-projects-keep-read-first-by-every-agent.md)), under a first line that says what follows ([ADR-0119](../adr/0119-a-take-leaves-out-the-rules-a-session-says-it-holds.md)): `Rules <mark>:`, which parts there are, in the order they are printed, with how many characters each is, and how a later take of the session leaves them out (`console take <number> --rules <mark>`). The mark is the first eight hex characters of a SHA-256 over the rules as they read for the person, the console's rules with what the organization adds, what the project adds and the plugins' lines, in the language they are read in: the same for the same rules, another once a rule changed, for another project's and in another language; a project that adds nothing has the mark of the workspace's alone. Then the parts, what differs first and what always holds last ([ADR-0120](../adr/0120-the-consoles-rules-always-hold-and-a-workspace-and-a-project-add-to-them.md)): what this project adds, with its version and who wrote it; under `## Plugins`, a line per plugin bound to the project that the person holds a role in, or at the workspace every plugin they may use, with the sentence its manifest gives agents and `console plugin <key>` to start with ([plugins.md](plugins.md), "The command"); what the organization adds, with its version and who wrote it; and the console's rules, which always hold. A part that adds nothing is not printed: the first line says in a clause that the project, the organization or both add nothing. What is added stands first because it is short and is what differs between projects; where the parts differ the earlier holds, as the line says. A console of before the parts answers the workspace's rules whole, and they are printed as the last part, under the line that console knew, without the command it named for writing them, which writes nothing there (`rules write`, below). `--json` carries the rules as the console answered them, and `mark` |
112
+ | `rules write --body <markdown>\|--file <path>\|-\|none [--workspace] [--base <version>]` | `PUT .../docs/rules` or `POST .../docs/rules/archive`; with `--workspace`, `GET /api/v1/rules` and then `PUT /api/v1/rules`, or `POST /api/v1/rules/archive` | the version written of what the project adds to the rules, or with `--workspace` of what the organization adds ([ADR-0120](../adr/0120-the-consoles-rules-always-hold-and-a-workspace-and-a-project-add-to-them.md)); that a text which adds nothing to the console's rules wrote nothing; or, with `none`, that what was added is put away; for an owner of the project, or an administrator for the organization's. With `--workspace` the console is asked for its rules first: one of before 0.5.1 answers them whole and without `own`, and keeps what is written as the organization's whole rules in the place of its own, so nothing is written there, and the command says so and that the console is updated first, with exit `1`. A project's rules added to the workspace's on such a console already, and are written there as on any |
68
113
  | `plugins` | `GET /api/v1/plugins`, `GET /api/v1/me` | one line per plugin the person may use ([plugins.md](plugins.md)): key, name in their language, version, state, their roles in it. Needs no project |
69
- | `plugin <key>` | `GET /api/v1/plugins/<key>`, `GET /api/v1/me` | the plugin whole: what it is, the sentence for agents, the roles held in it, its board project, a line per command and query the person may run with its usage, where its skills are, its settings |
114
+ | `plugin <key>` | `GET /api/v1/plugins/<key>`, `GET /api/v1/me` | the plugin whole: what it is, the sentence for agents, the roles held in it, its board project, a line per command and query the person may run with its usage, where its skills are, its settings; its problems, a job that failed twice running among them, and a line per job, how often it runs, how its last run went and since when it has failed, and when it runs next, where the console names them (a console before 0.5.1 names none, and nothing is printed of them) |
70
115
  | `plugin <key> help [<command>]` | `GET /api/v1/plugins/<key>` | one command or query in full, as `help <command>` prints one: the usage, the arguments with their types and bounds, the roles, the refusals; or every one in a line |
71
116
  | `plugin <key> <command> [<args>] [--<name> <value>]... [--file <path> \| -] [--run <id>]` | `POST /api/v1/plugins/<key>/files` as a form, where `--file` or `-`; then `POST /api/v1/plugins/<key>/invoke` with the words as typed after the command's name, the handle, the project the command works in and the run named | what the command says, or a query's answer as JSON, a file a query answers saved under its name; `--json` the whole answer; exit `3` with the decision's id, the project it waits in and `console decision <id> --wait 100` when the command raised one, which reads it wherever it is; the console's refusal with its code otherwise. `--json`, `--url`, `--account`, `--project`, `--file` and `--run` are the command's own wherever they stand; every other word is the plugin's, and the console parses them against the definition |
72
117
  | `plugin <key> records <collection> [<id>] [--where <field>=<value>]... [--search <words>] [--project <key>] [--order <field>[:desc]] [--limit <n>] [--after <cursor>] [--archived] [--versions]` | `GET .../records/<collection>?where=&q=&project=&order=&limit=&after=&archived=`; `GET .../records/<collection>/<id>`, `.../versions` | the records the person may read, one a line with the data compact, and the cursor the next page is asked with; one record whole; its versions |
73
- | `plugin <key> skills [<folder>\|<file>] [--search <words>]`, `plugin <key> skill <path>`, `plugin <key> skill --file <path> [--offset <n>] [--limit <n>]` | `GET /api/v1/plugins/<key>/skills`, `.../skills/one`, `.../skills/file`, `.../skills/browse`, `.../skills/find`, as `skills` and `skill` ask a project's | the plugin's own skills, a pack read from its package, printed exactly as `skills` and `skill` print a project's |
74
- | `plugin <key> enable --consent <capability>,... [--board new\|<key>] [--projects all\|<key>,...] [--set <key>=<value>]...`, `plugin <key> disable`, `plugin <key> capabilities [--consent <capability>,...\|none]`, `plugin <key> settings [--set <key>=<value>]...`, `plugin <key> secret <name> [--remove]`, `plugin <key> grant <role> --person <login>\|--project <key>\|--plugin <key>\|--team <key>\|--everyone`, `plugin <key> revoke <grant id>` | `GET /api/v1/plugins/<key>` first; then `POST .../enable`, `POST .../disable`, `PATCH .../consent`, `PATCH .../settings`, `PUT` or `DELETE .../secrets/<name>` with the value typed unseen at the terminal, or read from standard input when piped or redirected from a file, never an argument, `GET /api/v1/people?login=` then `POST .../grants`, `DELETE .../grants/<id>` | for an administrator: `enable` prints what each capability the plugin asks opens and refuses unless `--consent` names every one again, makes the board project the manifest proposes with `--board new` or chooses one by key, puts the plugin on every project or on the keys named, and sets the settings read as their types, an empty value clearing one; what changed, as it is now; a secret is sealed and shown never |
75
- | `take <number\|id> [--agent <name>]` | `GET .../tasks/<ref>`, then `POST .../runs`, then `GET .../rules`, `GET /api/v1/me`, `GET .../tasks/<ref>` again, `GET .../tasks/<id>/comments` and `GET .../runs?open=true&mine=true` | the run that began, with the run's id and the task's id on a line of their own, the task in full as it stands taken with the discussion on it, the rules that hold as they read for the person, with the plugins bound to the project under `## Plugins` as `rules` prints them, and what to do next; a run open on the task is taken over, and that is said when it happened ([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)); another run of the token open in the project is named, with the `--run <id>` to say on every command on a run from here |
118
+ | `plugin <key> events [--kind <kind>] [--limit <n>] [--offset <n>]` | `GET /api/v1/plugins/<key>/events` | the plugin's events the caller may read, as [plugins.md](plugins.md) says who reads them, newest first, one a line: its number, when, its kind, who did it and through what, and what it says; `--kind plugin.failed` for the failures alone, which is where a job's failure says why; a page of up to 100, 50 unless said; where the console answers none, `No event of <key> that you may read`. On a console before 0.5.1, which does not narrow by kind, the command keeps the kind asked for of the page it read, and says so |
119
+ | `plugin <key> skills [<folder>\|<file>] [--search <words>]`, `plugin <key> skills --rows\|--code [<folder>\|<file>]`, `plugin <key> skill <path>`, `plugin <key> skill --file <path> [--offset <n>] [--limit <n>]` | `GET /api/v1/plugins/<key>/skills`, `.../skills/one`, `.../skills/file`, `.../skills/browse`, `.../skills/find`, `.../skills/rows`, `.../skills/code`, as `skills` and `skill` ask a project's | the plugin's own skills, a pack read from its package, printed exactly as `skills` and `skill` print a project's |
120
+ | `plugin <key> enable --consent <capability>,... [--board new\|<key>] [--projects all\|<key>,...] [--set <key>=<value>]...`, `plugin <key> disable`, `plugin <key> capabilities [--consent <capability>,...\|none]`, `plugin <key> settings [--set <key>=<value>]...`, `plugin <key> secret <name> [--key <key>] [--remove]` (`--key` for a keyed secret, one key at a time), `plugin <key> grant <role> --person <login>\|--project <key>\|--plugin <key>\|--team <key>\|--everyone`, `plugin <key> revoke <grant id>` | `GET /api/v1/plugins/<key>` first; then `POST .../enable`, `POST .../disable`, `PATCH .../consent`, `PATCH .../settings`, `PUT` or `DELETE .../secrets/<name>` with the value typed unseen at the terminal, or read from standard input when piped or redirected from a file, never an argument, `GET /api/v1/people?login=` then `POST .../grants`, `DELETE .../grants/<id>` | for an administrator: `enable` prints what each capability the plugin asks opens and refuses unless `--consent` names every one again, makes the board project the manifest proposes with `--board new` or chooses one by key, puts the plugin on every project or on the keys named, and sets the settings read as their types, an empty value clearing one; what changed, as it is now; a secret is sealed and shown never |
121
+
122
+ ### Commands for working a task
123
+
124
+ | Command | Asks the console | Says |
125
+ |---|---|---|
126
+ | `take <number\|id> [--agent <name>] [--rules <mark>]` | `GET .../tasks/<ref>`, then `POST .../runs`, then `GET .../rules`, `GET /api/v1/me`, `GET .../tasks/<ref>` again, `GET .../tasks/<id>/comments` and `GET .../runs?open=true&mine=true&brief=true` | the run that began, with the run's id and the task's id on a line of their own, the task in full as it stands taken, with the address of its page as `task` prints it and the discussion on it, the rules that hold as they read for the person, as `rules` prints them, under the line that carries their mark, and what to do next. With `--rules <mark>`, the mark a session read at the head of the rules ([ADR-0119](../adr/0119-a-take-leaves-out-the-rules-a-session-says-it-holds.md)): where it is the mark the rules have now, they are left out, and one line says so (`Rules <mark>: left out, since they stand as this session read them. console rules prints them.`); where it is not, since a rule changed or the mark is of another project's, a line says so (`The rules are not the ones marked <mark>: … They follow whole after the task, under the mark they have now.`) and they are printed whole after the task, as without a mark. The line that answers a mark stands directly after the line of the run's ids, before the task: a session that holds the rules reads the head of a take, and a rule that changed is said there. Without it the rules are printed whole, so that a session that was never shown them, a fresh one or a subagent, has them whatever it does. `--json` carries the rules either way, with `mark`; a run open on the task is taken over, and that is said when it happened ([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)); another run of the token open in the project is named, with the `--run <id>` to say on every command on a run from here |
76
127
  | `report <markdown> [--run <id>]`, `report --file <path> [--run <id>]`, `report - [--run <id>]` | `POST .../runs/<id>/reports` | how many reports the run carries |
77
128
  | `hand-in <https url \| file path> [--label <words>] [--run <id>]` | `POST .../runs/<id>/artifacts` for a link; `POST .../runs/<id>/files` for a file, sent as a form with its name and its media type by extension | how many artifacts; a picture handed in is shown on the task, and where a report names it as `![words](its name)` |
78
129
  | `comment <number\|id> "<markdown>" [--attach <path>]...`, `comment <number\|id> --file <path>`, `comment <number\|id> -` | `GET .../tasks/<ref>`, then `POST .../tasks/<id>/comments`: as JSON, or as one form with the part `body` and a part `file` per file attached, its media type by extension | the comment as written, with its files and the command that reads each; a word to the task's people, which needs no run ([ADR-0024](../adr/0024-a-task-carries-a-discussion-of-comments-with-their-files-read-as-one-thread-with-the-runs-and-the-decisions.md)) |
79
130
  | `file <id> [--decision <id>] [--out <path>]` | `GET .../files/<id>`; with `--decision`, `GET /api/v1/decisions/<decision id>/files/<id>`, needing no project ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)) | that the file is saved, where, with its size and type: under its own name in the working directory, at the path, or into the directory named; a file a run handed in, one put in a comment or on a decision, or one attached to a page, so that an agent looks at a picture a person put on the board; with `--decision`, a file of that decision wherever it is, as `decision` names it for one reached outside the project; `file.not_found` for a file not the decision's, or a decision out of reach |
80
- | `ask "<question>" --option "<label>" ... [--body <markdown>\|--file <path>] [--attach <path>]... [--to <login\|me>]... [--wait <seconds>] [--run <id>]` | `POST .../decisions` with `runId` and, for `--to`, `deciderId`, and `deciderIds` beside it where `--to` was given more than once ([ADR-0057](../adr/0057-a-decision-may-be-addressed-to-several-people-and-the-first-answer-ends-it.md)); with `--attach`, as one form with the part `decision` and a part `file` per file, its media type by extension ([ADR-0055](../adr/0055-a-decision-carries-the-files-put-on-it-when-it-is-raised.md)); then `GET .../decisions/<id>?wait=` | the decision raised, its id on a line of its own, how many files came, whom it waits for, its options; then the answer, or that it still waits. It is for the person the agent works for unless `--to` names another of the project ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)), or several, any of whom may answer, the first answer ending it |
81
- | `decision <id> [--wait <seconds>]` | `GET .../decisions/<id>`, with `?wait=` while waiting; where the project the command works in does not have it, or none is named, `GET /api/v1/decisions/<id>`, the decision wherever it is ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)) | the decision, each of its files with the command that reads it: `console file <id>` in the project, `console file <id> --decision <decision id>` for a decision reached outside it; with a wait, the answer or that it still waits; `decision.not_found` for one out of reach, on a console from before the route too |
131
+ | `ask "<question>" --option "<label>" ... [--body <markdown>\|--file <path>] [--attach <path>]... [--to <login\|me>]... [--wait <seconds>] [--run <id>]` | `POST .../decisions` with `runId` and, for `--to`, `deciderId`, and `deciderIds` beside it where `--to` was given more than once ([ADR-0057](../adr/0057-a-decision-may-be-addressed-to-several-people-and-the-first-answer-ends-it.md)); with `--attach`, as one form with the part `decision` and a part `file` per file, its media type by extension ([ADR-0055](../adr/0055-a-decision-carries-the-files-put-on-it-when-it-is-raised.md)); then `GET .../decisions/<id>?wait=` | the decision raised, its id and then the address of its page each on a line of its own (`page: <origin>/projects/<key>/decisions/<id>`), how many files came, whom it waits for, its options; then the answer, or that it still waits. It is for the person the agent works for unless `--to` names another of the project ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)), or several, any of whom may answer, the first answer ending it |
132
+ | `decision <id> [--wait <seconds>]` | `GET .../decisions/<id>`, with `?wait=` while waiting; where the project the command works in does not have it, or none is named, `GET /api/v1/decisions/<id>`, the decision wherever it is ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)) | the decision, with who asked it and when, the address of its page on a line of its own (in the project the command reached it in, `<origin>/projects/<key>/decisions/<id>`; else the decision's own, `<origin>/decisions/<id>`, which whoever it reaches may open; printed by `answer` and by `decision --outcome` and `--to` as well), the moment of its answer and of what followed, each in the workspace's time zone as every moment the command prints, and each of its files with the command that reads it: `console file <id>` in the project, `console file <id> --decision <decision id>` for a decision reached outside it; with a wait, the answer or that it still waits; `decision.not_found` for one out of reach, on a console from before the route too |
82
133
  | `answer <id> --option <n>\|--own "<answer>" [--note <markdown>\|--file <path>]` | `POST .../decisions/<id>/answer`; where the project does not have it, or none is named, `POST /api/v1/decisions/<id>/answer` ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)) | the decision with its answer: a person's answer written in their name through the agent, as they gave it in chat or in passing, with where and when in the note, so that the record is whole and a run that waited goes on ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)) |
83
- | `decisions [--open] [--limit <n>] [--offset <n>]`, `decisions --mine\|--raised [--open] [--limit <n>] [--offset <n>]` | `GET .../decisions`; `GET /api/v1/decisions` for `--mine`, with `raised=true` for `--raised`, neither needing a project | one line per decision, the waiting first; with `--mine`, the decisions addressed to the person across the projects they may see, with `--raised` those they asked of someone else, each with its project's key; a page at a time |
84
- | `finish [--summary <markdown>\|--file <path>] [--run <id>]`, `fail [...]` | `POST .../runs/<id>/end` | how the run ended |
85
- | `abandon [<run id>] [--summary <markdown>]` | `POST .../runs/<id>/end`, as `abandoned` | the same |
86
- | `runs [--task <number\|id>] [--open] [--mine] [--limit <n>] [--offset <n>]` | `GET .../runs` | one line per run, with when an open one was last heard from; a page at a time |
134
+ | `decisions [--open] [--limit <n>] [--offset <n>]`, `decisions --mine\|--raised [--open] [--limit <n>] [--offset <n>]` | `GET .../decisions`; `GET /api/v1/decisions` for `--mine`, with `raised=true` for `--raised`, neither needing a project | one line per decision, the waiting first, each with who asked it, whom it is for and when it was asked; with `--mine`, the decisions addressed to the person across the projects they may see, with `--raised` those they asked of someone else, each with its project's key; a page at a time |
135
+ | `finish [--summary <markdown>\|--file <path>] [--run <id>]`, `fail [...]` | `POST .../runs/<id>/end`, then `GET .../tasks/<id>` | how the run ended and the state the task is in, read once the run is over (`Run <id> finished; task #<n> is in_review now.`), since a finished run leaves its task at work where another run is open on it; a failed run puts its task up for review too, for a person to look at why ([ADR-0114](../adr/0114-the-end-of-a-run-leaves-no-task-at-work-behind-it.md)), and a console of before 0.5.1 leaves it `in_progress`, as any does where a person moved the task meanwhile or another run is open on it. `--json` is the run as the console answered it, and the task is not read. Where the task could not be read, standard error says that the run is over and is not to be ended again, then what the reading ended on, with exit `1` |
136
+ | `abandon [<run id>] [--summary <markdown>]` | `POST .../runs/<id>/end`, as `abandoned`, then `GET .../tasks/<id>` | how the run ended, and the state the task is in, read once the run is over (`Run <id> abandoned; task #<n> is ready now.`): back as the take found it on a console of now, `in_progress` still on one of before 0.5.1; `--json` and a task that could not be read as after `fail` |
137
+ | `runs [--task <number\|id>] [--open] [--mine] [--limit <n>] [--offset <n>]` | `GET .../runs?brief=true`, the runs without their reports, counted, and whole on `--json` | one line per run, with how many reports and files it has and when an open one was last heard from; a page at a time |
87
138
  | `run <id>` | `GET .../runs/<id>` | the run in full, with its reports, what it handed in and where each file is read |
88
- | `decision <id> --outcome <markdown>\|--file <path>` | `PATCH .../decisions/<id>` | the decision as a record, with what followed written down |
139
+ | `decision <id> --outcome <markdown>\|--file <path>` | `PATCH .../decisions/<id>`; where no project is named, `GET /api/v1/decisions/<id>` first, for the project the decision is in ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)) | the decision as a record, with what followed written down; written from a directory that names no project, a desk, as the decision is read from there; `decision.not_found` for one out of reach |
140
+ | `decision <id> --to <login\|me>...` | `GET /api/v1/people?login=` for each login, `GET /api/v1/me` for `me`; then `PUT .../decisions/<id>/deciders`, in the decision's own project where none is named, found as for `--outcome` | the decision as it stands, addressed to the people named in place of those it was for ([ADR-0096](../adr/0096-a-decision-that-waits-may-be-addressed-anew-by-whoever-may-answer-it.md)); `decision.answered` for one answered already, `decision.plugin_addressed` for a plugin's, `decision.invalid_decider` for someone who may not work in the project; not together with `--outcome` |
141
+
142
+ ### Commands for documents
143
+
144
+ | Command | Asks the console | Says |
145
+ |---|---|---|
89
146
  | `docs [<folder>] [--search <words>] [--archived]` | `GET .../docs?folder=` or `?q=` | the folders and the pages of a folder, or the pages found by words: one line per page |
90
147
  | `doc <path> [--version <n>\|--versions]` | `GET .../docs/<path>`, `.../versions`, `.../versions/<n>` | the page in full: its body, what it refers to, what refers to it, its files; or its versions; or one as it was |
91
- | `write <path> [--title <title>] --body <markdown>\|--file <path> [--base <version>]` | `GET .../docs/<path>` for the title when none is said, then `PUT .../docs/<path>` | the path, the title and the version written, and what the page refers to; the title is shown above the body, on the page and by `doc`, so the body does not begin with it |
148
+ | `write <path> [--title <title>] --body <markdown>\|--file <path> [--base <version>]` | `GET .../docs/<path>` for the title when none is said, then `PUT .../docs/<path>` | the path, the title and the version written, what the page refers to, and the page's address on a line `page: <address>`, as a task's; the title is shown above the body, on the page and by `doc`, so the body does not begin with it |
92
149
  | `attach <path> <file> [--label <words>]` | `POST .../docs/<path>/files`, as a form | how many files the page carries; a picture attached is shown where the page's body names it as `![words](its name)` |
93
150
  | `archive <path>`, `restore <path>` | `POST .../docs/<path>/archive`, `.../restore` | that the page is put away, or back |
94
- | `serve [<dir>] [--port <n>]` | `GET /api/v1/me` once; then every request of the pages under `/api/`, carried with the token | where it serves and as whom; then nothing until stopped ([a console of one's own](#a-console-of-ones-own)) |
95
- | `help [<command>]` | nothing | the usage, written for an agent that meets the command for the first time |
96
- | `--version` (also `version`, `-v`) | nothing | which version of the command this is, and where it is installed |
97
151
 
98
- `...` is `/api/v1/projects/<key>`, the project the command works in. Everywhere: `--json` prints the console's own answer as JSON, in the shapes of `@skillcdn/console/api`; `--url <origin>` names the console this one command talks to, which must be one signed in to here; `--account <login>` the account there, where several are; `--project <key>` the project. A Markdown body given as `-` is read from standard input. A day is given as `2026-10-24`, `today`, `tomorrow` or `+7` (days from today by this machine's clock); `--due overdue` keeps the open tasks past their day, `--due week` those due by the last day of this week, the week beginning as the workspace says (`console workspace`) or, left to the language, as the person's language has it, else this machine's ([ADR-0039](../adr/0039-this-week-is-the-plans-unit-and-the-week-begins-as-the-workspace-says.md)). Every argument is bounded and checked by the console, as the REST API's schemas say; the command sends it as it was given.
152
+ ### Commands for the command itself
99
153
 
154
+ | Command | Asks the console | Says |
155
+ |---|---|---|
156
+ | `serve [<dir>] [--port <n>] [--records <dir>]` | `GET /api/v1/me` once; then every request of the pages under `/api/`, carried with the token | where it serves and as whom, and where the records of a desk are where `--records` names them; then nothing until stopped ([a console of one's own](#a-console-of-ones-own)) |
157
+ | `desk [<directory>] [--web]` | `GET /api/v1/me` once | for a person: which of their desk's files it wrote and which were there, with `--web` the shell of the desk's pages written in `web/`, and last what is next, in order, to say to an agent begun in that folder ([a desk of one's own](#a-desk-of-ones-own)). Needs no project; for an agent account it writes the shell alone, with `--web`, into its desk, and nothing without it; refused under a directory that works in a project |
158
+ | `desk check [<directory>]` | nothing | each problem of the collections of the desk in the directory, the current one unless another is named, with its file and what is wrong; or that they read right, with what each collection keeps; or that the desk keeps no collection, which is no failure, what else it keeps under `records/` being its own and not read ([records.md](records.md#the-check), [ADR-0117](../adr/0117-a-desk-keeps-records-of-what-its-member-made-as-files-the-desks-pages-read.md)). Ends in 1 with any problem. Needs no sign-in and no project |
159
+ | `help [<command>]` | nothing | the usage, written for an agent that meets the command for the first time |
160
+ | `--version` (also `version`, `-v`) | nothing | which version of the command this is, and where it is installed |
100
161
  ## The documents
101
162
 
102
163
  A project's pages of Markdown ([ADR-0009](../adr/0009-documents-are-pages-of-markdown-in-a-project-addressed-by-path-versioned-and-linked-both-ways.md)), by path (`guides/onboarding`): `console docs` lists a folder, `console doc` reads a page, `console write` writes one, the first version or the next, keeping the title when none is said, `console attach` adds a file from the machine, `console archive` and `console restore` put a page away and bring it back. A link in a body whose destination is a page's path refers to that page, and `console doc` says what refers to a page in return. An agent writes down what it learned where the next agent will read it, and refers to it from its reports and in what it asks.
@@ -107,28 +168,51 @@ What an administrator or an owner does on the pages, their agent does with `peop
107
168
 
108
169
  ## The run a command means
109
170
 
110
- `report`, `hand-in`, `ask`, `finish` and `fail` act on a run. Named with `--run <id>`, that one; else the one open run begun with this token in the project (`GET .../runs?open=true&mine=true`). None open, or several: the command exits with `1` and says so as `run.none` or `run.ambiguous`, listing the open ones, so that an agent working two tasks at once says which; `take` says the same when the run it begins is beside another of the token's.
171
+ `report`, `hand-in`, `ask`, `finish` and `fail` act on a run. Named with `--run <id>`, that one; else the one open run begun with this token in the project (`GET .../runs?open=true&mine=true&brief=true`: the runs without their reports, which a command on a run asks for every time and never reads). None open, or several: the command exits with `1` and says so as `run.none` or `run.ambiguous`, listing the open ones, so that an agent working two tasks at once says which. A run is its person's, and a token's own are only those begun with it: where none of the token's is open, the command looks through the project's open runs (`GET .../runs?open=true`, and `GET /api/v1/me` for whom it acts as) for those of the same person begun through another of their agents, or before the command was signed in again, and `run.none` names them, each with its id, its task, the agent it was begun through and when it was last heard from, and says to go on with one by `--run <id>`, before any word of taking a task, which would end such a run; with none of the person's open, it says to take a task, as before. `--run <id>` reaches any open run of the same person; `take` says the same when the run it begins is beside another of the token's.
111
172
 
112
173
  `tasks`, `goals`, `decisions` and `runs` show a page at a time: `DEFAULT_PAGE_LIMIT` lines unless `--limit <n>` says otherwise (up to `LIST_LIMIT`), from `--offset <n>` on, and a last line, `... more: --offset <n>`, says how to ask for the next page when there is one; with `--json`, the console's answer as it is, `more` included. An agent reads the first page and asks for the next only when what it looks for is not on it.
113
174
 
114
175
  ## Waiting for a decision
115
176
 
116
- `ask` waits 60 seconds for the answer unless `--wait` says otherwise, within what an agent's shell gives one command; `decision <id> --wait <seconds>` waits as long as it is told, a day at most. The command asks the console to hold each request for up to 50 seconds (`?wait=`), the server's own bound, and repeats while the time lasts, with a breath between requests; the answer arrives as soon as a person gives it, since the console is woken through the database's own channel. A decision that still waits when the time is up is exit code `3`: the run waits with it, so the agent keeps waiting with `console decision <id> --wait 100`, within what its shell gives one command, and goes on meanwhile only with work that does not depend on the answer. `ask` prints the decision's id as soon as it is raised, before any waiting, so that a wait cut short loses nothing; with `--json` it prints the decision then, and again with its answer when that comes. The answer may be the person's own words rather than one of the options: it is then one more option of the decision, marked as theirs, and the one chosen; the command prints it so, and the agent acts on it as given.
177
+ `ask` waits 60 seconds for the answer unless `--wait` says otherwise, within what an agent's shell gives one command, and, signed in as an agent account, only where `--wait` says to: nobody attends an account, the answer wakes it ([runner.md](runner.md#the-boards-wakes)), and the command says to go on with other work and with the run when the answer comes, and ends in `3` at once, saying the same where a wait it was asked for runs out; `decision <id> --wait <seconds>` waits as long as it is told, a day at most, and where it runs out for a command signed in as the account that raised the decision (`login --self`: what the login kept says, since the decision alone does not say who asks) it ends in the account's words too, that the answer wakes it, in place of how an attended agent waits on. The command asks the console to hold each request for up to 50 seconds (`?wait=`), the server's own bound, and repeats while the time lasts, with a breath between requests; the answer arrives as soon as a person gives it, since the console is woken through the database's own channel. A decision that still waits when the time is up is exit code `3`: the run waits with it, so the agent keeps waiting with `console decision <id> --wait 100`, within what its shell gives one command, and goes on meanwhile only with work that does not depend on the answer. `ask` prints the decision's id as soon as it is raised, before any waiting, so that a wait cut short loses nothing; with `--json` it prints the decision then, and again with its answer when that comes. The answer may be the person's own words rather than one of the options: it is then one more option of the decision, marked as theirs, and the one chosen; the command prints it so, and the agent acts on it as given.
117
178
 
118
179
  ## A console of one's own
119
180
 
120
- `console serve [<dir>] [--port <n>]` serves a console a person built from the package, for themselves ([ADR-0014](../adr/0014-a-persons-own-console-is-served-from-their-machine-by-the-command.md)): the build in `<dir>` (its `index.html` and files) at `http://127.0.0.1:11197/`, or the port given (`0` for one the system picks), and everything under `/api/` carried to the console the command is signed in to, with its token as `Authorization: Bearer`, so that the pages never hold the token and the organization's console allows no other origin. The command listens on the loopback only and answers no request whose host is not it; a request to the API that the browser says comes from another site's page (`Sec-Fetch-Site`) is refused, as is one from a browser that does not say and names another origin. What is the browser's does not travel: cookies, the page's origin and referrer, the browser's own metadata; what comes back travels decoded, without a cookie. The feed's stream passes through as it streams, and a file handed in as a form. Without a directory only the API is served, for a development server to send its `/api/` requests to with the loopback's host, so that a console is built with its reloading against the real board. The command checks the token against the console first (`GET /api/v1/me`), says where it serves and as whom, and runs until stopped. The pages learn from the same answer that they hold a token (`agent`) and offer nothing a token cannot do. How a console is built from the package is in the [package's README](../../packages/console/README.md#a-console-of-your-own).
181
+ `console serve [<dir>] [--port <n>] [--records <dir>]` serves a console a person built from the package, for themselves ([ADR-0014](../adr/0014-a-persons-own-console-is-served-from-their-machine-by-the-command.md)): the build in `<dir>` (its `index.html` and files) at `http://127.0.0.1:11197/`, or the port given (`0` for one the system picks), and everything under `/api/` carried to the console the command is signed in to, with its token as `Authorization: Bearer`, so that the pages never hold the token and the organization's console allows no other origin. The command listens on the loopback only and answers no request whose host is not it; a request to the API that the browser says comes from another site's page (`Sec-Fetch-Site`) is refused, as is one from a browser that does not say and names another origin. What is the browser's does not travel: cookies, the page's `Origin`, the browser's own metadata, and the referrer but for its origin when that is a page on this machine (a loopback, on any port), which travels as `Referer: <origin>/` so that the console knows which page may embed a plugin's frame ([ADR-0083](../adr/0083-console-serve-names-the-page-on-this-machine-by-its-origin.md)); what comes back travels decoded, without a cookie. The feed's stream passes through as it streams, and a file handed in as a form. Without a directory only the API is served, for a development server to send its `/api/` requests to with the loopback's host, so that a console is built with its reloading against the real board. The command checks the token against the console first (`GET /api/v1/me`), says where it serves and as whom, and runs until stopped.
182
+
183
+ `--records <dir>` serves what a desk keeps beside them ([ADR-0117](../adr/0117-a-desk-keeps-records-of-what-its-member-made-as-files-the-desks-pages-read.md)): the directory named, a desk's `records/`, at `/records/`, for the desk's pages to show, as `console serve dist --records ../records` run in a desk's `web/`. Each file is read when it is asked for; `GET` alone; nothing outside the directory, no file whose name begins with a full stop, no listing; to the pages of this origin and to no other site's. What is answered how, and what is refused by which code, is [records.md](records.md#serving). A directory that is not there yet is no error, since a desk has its `records/` once it keeps something ([ADR-0122](../adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)): every path under `/records/` answers `404` until it is there, the line the command prints says that nothing is kept there yet, and what comes to be kept is served from then on, with no restart. What is there and is no directory is refused before anything listens, and without `--records` every path under `/records/` answers `404`, `records.not_served`, never the build's page. The pages learn from the same answer that they hold a token (`agent`) and offer nothing a token cannot do. How a console is built from the package is in the [package's README](../../packages/console/README.md#a-console-of-your-own).
184
+
185
+ ## A desk of one's own
186
+
187
+ `console desk [<directory>] [--web]` writes a person's desk ([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), [ADR-0122](../adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)): a folder of their own that their agent begins in, and that they make a repository of at their own git account. It asks the console who the command is signed in as and writes the package's template for them ([runner.md](runner.md#the-desk)), which is the least: `README.md`, `AGENTS.md`, `CLAUDE.md` and `.gitignore`, and nothing under `records/`, `web/` or `work/`, each of which is there once it is used. Each file is written only where no file of that name is there, into `desk` in the current directory, as an agent account's desk is called, or into the directory named, `.` for the current one. It says which files it wrote and which it left as they were.
188
+
189
+ A desk is bound to no project, so the command writes no `.skillcdn-console.json`, and it refuses to make a desk where the working directory, or one above it, works in a project and the desk is to be made under it (no directory named, or one named by a relative path): the desk, and every checkout under its `work/` without a binding of its own, would work in that project too.
190
+
191
+ `--web` also writes the shell of the desk's pages into `web/` of the desk, where that holds nothing: the files of `template/desk-web` in the package, with `__VERSION__` replaced by the package's version, so that the pages are built on the version the command is, and `__TITLE__` by the desk's title, which is the person's name in letters, digits, spaces, full stops, commas and hyphens with `’s desk` after it, `My desk` where the name leaves nothing, and so stands as it is in a page, in a JSON string and in a script. A `web/` that holds something is left as it is. Where the package carries no shell, or the command does not know its version, the command ends in 1 and writes nothing, the desk's own files neither. The desk's pages are the person's own extension of the console's pages: a console of their own ([above](#a-console-of-ones-own)), served with what the desk keeps beside it. The shell is one empty page of the person's own, and the command says so: what it shows is what they then ask to see.
192
+
193
+ The last lines the command prints are what is next, in order, numbered, to say to an agent begun in that folder, or for the agent that ran the command to go on with there:
194
+
195
+ 1. `Set this desk up as a repository of mine, with the skill for it in the organization's pack where it has one: console skills --search "desk setup" --limit 5`, with `and bring its pages up` after `mine` where `--web` was given. The search names a limit, since a hit is most of a kilobyte and the first is nearly always the skill.
196
+ 2. `Ask me what I want to keep and to see here, and shape the desk to it, as the skill keeping-a-desk says, shipped with the console command: <path>`, the path being where the skill's `SKILL.md` is on this machine, among the skills the package carries.
197
+
198
+ Where `--web` is asked for in a desk that was there already, with nothing of the desk's own to write, the command says nothing of what is next: its member is shaping the desk, and the two lines are for a desk just made.
199
+
200
+ The command makes no repository and no remote, keeps nothing and asks nothing: the first is a skill's, of the organization's pack, and the second the skill `keeping-a-desk`'s, one of the console's own, which `console help desk` names with its place too. `--json` answers `{ "directory", "written", "kept", "web", "next" }`, `next` being the two lines in order, and `web` being `null` without `--web` and else `{ "directory", "written", "version" }`, the version `null` where `web/` was left as it is.
201
+
202
+ An agent account's desk is settled by `console agent setup` ([below](#setting-a-machine-up)), and none of a desk's own files is written for one: without `--web` the command ends in 1 and writes nothing. With `--web` it writes the shell of the pages and nothing else, into `web/` of the directory named, which must hold an `AGENTS.md`, so `console desk . --web` in its desk ([ADR-0122](../adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)); the title is the account's name, and no line says what is next (`next` is empty), since an agent account that asks for the shell is shaping its desk already.
203
+
204
+ `console desk check [<directory>]` reads the collections of a desk, a person's or an agent account's, and says whether they read right ([records.md](records.md#the-check)); what else a desk keeps under `records/` is its own, and is not read. It asks nothing of the console.
121
205
 
122
206
  ## Output and exit codes
123
207
 
124
- Plain text on standard output: one line per thing in a list, a few lines for one thing in full, with ids given, since the commands take them, and the vocabulary's own words (`in_progress`, `waiting`), since the options take them. What went wrong goes to standard error as the console's stable code and its words (`run.task_closed: the task is done or dropped`), with a hint when there is something to do about it.
208
+ Plain text on standard output: one line per thing in a list, a few lines for one thing in full, with ids given, since the commands take them, and the vocabulary's own words (`in_progress`, `waiting`), since the options take them. A line that names a member, the owner and the workers of a task, whom a decision is for, who wrote a comment, calls a person by their login and an agent account by its handle (`workers alice, @mira`), which the commands take wherever they take a login ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)): a line tells the two apart. What went wrong goes to standard error as the console's stable code and its words (`run.task_closed: the task is done or dropped`), with a hint when there is something to do about it.
125
209
 
126
210
  | Exit code | Meaning |
127
211
  |---|---|
128
212
  | `0` | Done. |
129
- | `1` | The console refused, or could not be reached; the reason is on standard error. |
213
+ | `1` | The console refused, or could not be reached; the reason is on standard error. A read of a pack that the pack refused ends so too ([ADR-0118](../adr/0118-the-consoles-reads-of-a-pack-keep-to-the-skillcdn-commands-read-by-read.md)). |
130
214
  | `2` | The command was not understood. |
131
- | `3` | The decision still waits for a person. |
215
+ | `3` | What was waited for still waits for a person: a decision's answer, or a connection's approval (`login`). |
132
216
  | `4` | The command and the console do not go together ([ADR-0025](../adr/0025-the-command-names-its-version-on-every-request-and-the-console-holds-it-to-the-range-it-takes.md), [ADR-0038](../adr/0038-the-command-and-the-console-go-together-within-a-line-and-a-release-that-changes-what-passes-between-them-raises-the-floors.md)); standard error says which to update, and how. |
133
217
 
134
218
  ## What an agent is told
@@ -143,7 +227,29 @@ What a person does, once the command is signed in where the agent runs; tried wi
143
227
  2. Start the agent in the directory it is to work in, where `console use <key>` has named the project (once, committed), and tell it, in its own words, what this amounts to: run `console help`; take the task with `console take <number>` and follow its body; report at the milestones with `console report`; ask with `console ask` when a person must decide, and keep waiting with `console decision <id> --wait 100` until the answer comes; hand in with `console hand-in`; finish with `console finish --summary`. Say that the command is signed in already and that it must never look for or print a token.
144
228
  3. Follow the run on the board, and answer the decisions it raises. The agent's reports, what it handed in and its summary are the run's record on the task's page; what is said about the task, by the person in a comment with a picture, by the agent in answer, is the discussion on the same page, in the order it came.
145
229
 
146
- Work that reaches an agent in chat, in a directory that works in a project, goes the same way: the agent writes it on the board first (`console task new`), tells the person the number, takes it, and works it as above, so that the board holds the work and its record, and a person decides on the board, not in the chat. A board used only to tick off what was done elsewhere is a list of things to do; the record is in the runs, the comments and the decisions.
230
+ Work that reaches an agent in chat, in a directory that works in a project, goes the same way: the agent writes it on the board and takes it, in one command (`console task new "<title>" ... --take`, which prints the number first), tells the person the number, and works it as above, so that the board holds the work and its record, and a person decides on the board, not in the chat. A board used only to tick off what was done elsewhere is a list of things to do; the record is in the runs, the comments and the decisions.
231
+
232
+ ## Signed in as the account itself
233
+
234
+ `console login --self` signs the command in as the account ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md), point 9), which is how an agent account's own command signs in, and a person's where they work at it themselves. The connection is the one every login makes ([ADR-0011](../adr/0011-an-agent-connects-with-a-short-code-a-person-approves-and-the-token-is-never-shown.md)), asking to be the account (`as: "self"`): the command prints the address and the code, the account opens the page in a browser signed in as itself, and says "this is me". What the command is then handed and keeps is a session of its own in place of a token: kept for as long as it is used, ended when left unused for the deployment's `SESSION_TTL_DAYS`, so that an agent at work has nothing to renew and one that stopped lapses by itself. It is presented as a token is and does what a token may; what is done with it is done by the account, and names no agent beside it. `console logins` and `console whoami` say that the command is signed in as the account itself; `console logout` gives the session up; the account sees it among its sessions, and ends it there, as its supervisors do on the agent's own page.
235
+
236
+ ## Agent accounts
237
+
238
+ In outline, for the plan of [ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md) to [ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md); a command is specified here in the change that builds it ([roadmap](../roadmap.md), milestones 41 to 43), and until then it is not one. The commands stay few, in the words the command already has: a list is the plural, one of a kind is named after it, and what is taken away is removed.
239
+
240
+ A command of 0.5.0 reads what the console answers of an agent account already ([rest.md](rest.md#agent-accounts)): a person's `kind`, `handle` and `title`, which `console people` prints, and the two events; `console person title` writes a member's title, `console agents` and `console agent <handle>` read the agent accounts, `console agent new` makes one, `console manager` says whom one reports to, `console login --self` signs the command in as the account itself, `console secrets`, `console secret`, `console agent secrets` and `console agent secret` keep an account's secret store, and `console agent tell`, `interrupt`, `stop`, `restart`, `reset`, `set` and `wake` send an agent account a signal, which `console agent signals` reads back; `console agent invite` makes the invitation that leads a machine to an account, and `console agent setup` prints the guide its code opens and sets the machine up; and `console runner` is an agent account's runner.
241
+
242
+ `console runner` ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), [runner.md](runner.md)) takes nothing: it is started in the agent's desk, on the command signed in as the account itself (`console login --self`), and runs until it is stopped: by a signal, or, where its environment names the process that keeps it running (`CONSOLE_RUNNER_KEEPER`, that process's number, which the service on Windows says, [runner.md](runner.md#the-service)), when that process is gone. It asks `GET /api/v1/me` who it is, and refuses anyone but an agent account on its command's session; reads `runner.json` in the desk, of which it uses nothing when the file does not read, and runs with the defaults where there is none; then says a line when it is there, when a session begins and ends, and when the console is away, with ids, numbers and codes and never what a signal or an event says. It is no command of an agent's, so it is not on the map `console help` prints; `console help runner` says it in full. An agent account is named by its handle wherever the command takes a login: `--worker @mira`, `--to @mira`, `member add @mira`.
243
+
244
+ ### Setting a machine up
245
+
246
+ `console agent setup --console <origin> --code <code>` makes a machine an agent account's ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md), point 5), from the line of its invitation, in the agent's own OS account and with no administrator's rights. After the guide:
247
+
248
+ 1. **It signs the command in as the account.** A connection that asks to be the account itself ([above](#signed-in-as-the-account-itself)), named `console as <OS account> on <machine>`, which is what the account's page shows beside the session. The command opens the page in the machine's browser, only where its address is the console's own, prints the address and the code, and waits for the account, signed in there, to say that the command is it. It then asks the console who it is: anyone but the invited account, a person who answered by mistake say, and the command gives that sign-in up at the console, keeps nothing and sets nothing up. A command that is the account's already signs in again nowhere. What it keeps is the account's session, as the default console of the OS account.
249
+ 2. **It settles the desk**: `--desk <dir>`, else this directory where it holds a `runner.json`, else `desk` in the OS account's home. A desk that is there, with a `runner.json` or an `AGENTS.md`, is left as it is. Else, where the workspace's git host says where a desk is cloned from (`https://github.com/<account>/desk.git` for `github`) and the account keeps the secret `git.token`, which is an account that pushed a desk before, the desk is cloned: `git clone` is run with the token in its environment, answered by a credential helper named in the environment too, for the remote's own origin and no other host, so that the token is on no command line and in no file; a clone that fails stops the setup, and `--new-desk` begins a new desk instead. Otherwise the template is written ([runner.md](runner.md#the-desk)), over no file that is there.
250
+ 3. **It writes the service that keeps the runner running**, by the module of the platform, `launchd` on macOS, `systemd-user` on Linux and `task-scheduler` on Windows ([runner.md](runner.md#the-service)): the runner started as this command was, `runner --url <origin> --account <login>`, in the desk. It loads it and looks for half a minute whether the runner is heard from, then says the machine, the operating system and the OS account as the runner said them, or where the runner's own lines are. Where a step of the module may fail and did, lingering on Linux that a system keeps for an administrator, it says what is left to do and goes on. On a platform without a module, and with `--no-service`, it writes none and says how the runner is started by hand: a line for a shell, the desk and the login quoted in it where they hold anything a shell reads as more than a word.
251
+
252
+ `--refresh` derives a machine again: a desk that is there, with a `runner.json` or an `AGENTS.md`, is left as it is, its `AGENTS.md` too, whatever the template says by now, and one that is not is settled as above; the service's files are written again where they changed, and the services are printed as they are now, for the agent to put its own `AGENTS.md` right. It runs none of the commands that load the service and unloads nothing, since it may be running under the runner it would end: what it wrote is read when the service is next loaded. Where the system reads a file only once it is told to and telling it ends nothing, as on Linux and on Windows, a refresh that wrote one tells it ([runner.md](runner.md#the-service)).
147
253
 
148
254
  ## Not yet
149
255