@skillcdn/console 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/README.md +7 -7
  2. package/dist/agent-page.d.ts.map +1 -1
  3. package/dist/agent-page.js +58 -35
  4. package/dist/agent-page.js.map +1 -1
  5. package/dist/agent-usage.d.ts +51 -0
  6. package/dist/agent-usage.d.ts.map +1 -0
  7. package/dist/agent-usage.js +77 -0
  8. package/dist/agent-usage.js.map +1 -0
  9. package/dist/api.d.ts +4 -2
  10. package/dist/api.d.ts.map +1 -1
  11. package/dist/api.js +4 -2
  12. package/dist/api.js.map +1 -1
  13. package/dist/cli/cli.d.ts +9 -2
  14. package/dist/cli/cli.d.ts.map +1 -1
  15. package/dist/cli/cli.js +491 -125
  16. package/dist/cli/cli.js.map +1 -1
  17. package/dist/cli/format.d.ts +46 -4
  18. package/dist/cli/format.d.ts.map +1 -1
  19. package/dist/cli/format.js +163 -45
  20. package/dist/cli/format.js.map +1 -1
  21. package/dist/cli/help.d.ts.map +1 -1
  22. package/dist/cli/help.js +62 -13
  23. package/dist/cli/help.js.map +1 -1
  24. package/dist/cli/machine-check.d.ts +24 -5
  25. package/dist/cli/machine-check.d.ts.map +1 -1
  26. package/dist/cli/machine-check.js +128 -16
  27. package/dist/cli/machine-check.js.map +1 -1
  28. package/dist/cli/pack.d.ts +11 -8
  29. package/dist/cli/pack.d.ts.map +1 -1
  30. package/dist/cli/pack.js +63 -28
  31. package/dist/cli/pack.js.map +1 -1
  32. package/dist/cli/runner-host.d.ts +2 -0
  33. package/dist/cli/runner-host.d.ts.map +1 -1
  34. package/dist/cli/runner-host.js +1 -0
  35. package/dist/cli/runner-host.js.map +1 -1
  36. package/dist/cli/secret-notes.d.ts.map +1 -1
  37. package/dist/cli/secret-notes.js +9 -1
  38. package/dist/cli/secret-notes.js.map +1 -1
  39. package/dist/cli/terminal.d.ts +10 -2
  40. package/dist/cli/terminal.d.ts.map +1 -1
  41. package/dist/cli/terminal.js +16 -4
  42. package/dist/cli/terminal.js.map +1 -1
  43. package/dist/client.d.ts +30 -7
  44. package/dist/client.d.ts.map +1 -1
  45. package/dist/client.js +13 -1
  46. package/dist/client.js.map +1 -1
  47. package/dist/components/agent-page.d.ts +76 -18
  48. package/dist/components/agent-page.d.ts.map +1 -1
  49. package/dist/components/agent-page.js +183 -53
  50. package/dist/components/agent-page.js.map +1 -1
  51. package/dist/components/agents.d.ts +2 -0
  52. package/dist/components/agents.d.ts.map +1 -1
  53. package/dist/components/agents.js +6 -5
  54. package/dist/components/agents.js.map +1 -1
  55. package/dist/components/calendar.d.ts +24 -4
  56. package/dist/components/calendar.d.ts.map +1 -1
  57. package/dist/components/calendar.js +79 -36
  58. package/dist/components/calendar.js.map +1 -1
  59. package/dist/components/categories.js +2 -2
  60. package/dist/components/categories.js.map +1 -1
  61. package/dist/components/comments.js +2 -2
  62. package/dist/components/comments.js.map +1 -1
  63. package/dist/components/decision-list.d.ts.map +1 -1
  64. package/dist/components/decision-list.js +5 -5
  65. package/dist/components/decision-list.js.map +1 -1
  66. package/dist/components/documents.d.ts.map +1 -1
  67. package/dist/components/documents.js +4 -4
  68. package/dist/components/documents.js.map +1 -1
  69. package/dist/components/event-feed.d.ts +2 -3
  70. package/dist/components/event-feed.d.ts.map +1 -1
  71. package/dist/components/event-feed.js +4 -184
  72. package/dist/components/event-feed.js.map +1 -1
  73. package/dist/components/goals.d.ts.map +1 -1
  74. package/dist/components/goals.js +3 -3
  75. package/dist/components/goals.js.map +1 -1
  76. package/dist/components/home.js +9 -9
  77. package/dist/components/home.js.map +1 -1
  78. package/dist/components/icon.d.ts.map +1 -1
  79. package/dist/components/icon.js +11 -2
  80. package/dist/components/icon.js.map +1 -1
  81. package/dist/components/notifications.d.ts +65 -0
  82. package/dist/components/notifications.d.ts.map +1 -0
  83. package/dist/components/notifications.js +162 -0
  84. package/dist/components/notifications.js.map +1 -0
  85. package/dist/components/pack-connect.js +1 -1
  86. package/dist/components/pack-connect.js.map +1 -1
  87. package/dist/components/pack-token.js +1 -1
  88. package/dist/components/pack-token.js.map +1 -1
  89. package/dist/components/people.js +2 -2
  90. package/dist/components/people.js.map +1 -1
  91. package/dist/components/pictures.js +1 -1
  92. package/dist/components/pictures.js.map +1 -1
  93. package/dist/components/plugin-settings.d.ts +22 -1
  94. package/dist/components/plugin-settings.d.ts.map +1 -1
  95. package/dist/components/plugin-settings.js +63 -11
  96. package/dist/components/plugin-settings.js.map +1 -1
  97. package/dist/components/projects.js +1 -1
  98. package/dist/components/projects.js.map +1 -1
  99. package/dist/components/roadmap.js +2 -2
  100. package/dist/components/roadmap.js.map +1 -1
  101. package/dist/components/rules.js +2 -2
  102. package/dist/components/rules.js.map +1 -1
  103. package/dist/components/runs.d.ts.map +1 -1
  104. package/dist/components/runs.js +1 -1
  105. package/dist/components/runs.js.map +1 -1
  106. package/dist/components/sessions.js +1 -1
  107. package/dist/components/sessions.js.map +1 -1
  108. package/dist/components/shell.d.ts +2 -0
  109. package/dist/components/shell.d.ts.map +1 -1
  110. package/dist/components/shell.js +1 -1
  111. package/dist/components/shell.js.map +1 -1
  112. package/dist/components/sign-in.js +2 -2
  113. package/dist/components/sign-in.js.map +1 -1
  114. package/dist/components/skills.d.ts.map +1 -1
  115. package/dist/components/skills.js +1 -1
  116. package/dist/components/skills.js.map +1 -1
  117. package/dist/components/task-view.d.ts +6 -0
  118. package/dist/components/task-view.d.ts.map +1 -1
  119. package/dist/components/task-view.js +3 -2
  120. package/dist/components/task-view.js.map +1 -1
  121. package/dist/components/tokens.js +1 -1
  122. package/dist/components/tokens.js.map +1 -1
  123. package/dist/components/ui.d.ts +21 -2
  124. package/dist/components/ui.d.ts.map +1 -1
  125. package/dist/components/ui.js +24 -3
  126. package/dist/components/ui.js.map +1 -1
  127. package/dist/components/work.js +1 -1
  128. package/dist/components/work.js.map +1 -1
  129. package/dist/console.css +506 -289
  130. package/dist/console.d.ts.map +1 -1
  131. package/dist/console.js +193 -16
  132. package/dist/console.js.map +1 -1
  133. package/dist/data.d.ts +17 -1
  134. package/dist/data.d.ts.map +1 -1
  135. package/dist/data.js +31 -0
  136. package/dist/data.js.map +1 -1
  137. package/dist/desk-page.js +5 -5
  138. package/dist/desk-page.js.map +1 -1
  139. package/dist/feed-words.d.ts +5 -0
  140. package/dist/feed-words.d.ts.map +1 -0
  141. package/dist/feed-words.js +193 -0
  142. package/dist/feed-words.js.map +1 -0
  143. package/dist/i18n/en.d.ts +93 -1
  144. package/dist/i18n/en.d.ts.map +1 -1
  145. package/dist/i18n/en.js +103 -15
  146. package/dist/i18n/en.js.map +1 -1
  147. package/dist/i18n/ko.d.ts.map +1 -1
  148. package/dist/i18n/ko.js +105 -22
  149. package/dist/i18n/ko.js.map +1 -1
  150. package/dist/icons/glyphs.d.ts +370 -104
  151. package/dist/icons/glyphs.d.ts.map +1 -1
  152. package/dist/icons/glyphs.js +72 -66
  153. package/dist/icons/glyphs.js.map +1 -1
  154. package/dist/icons/index.d.ts.map +1 -1
  155. package/dist/icons/index.js +9 -1
  156. package/dist/icons/index.js.map +1 -1
  157. package/dist/index.d.ts +3 -2
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +3 -2
  160. package/dist/index.js.map +1 -1
  161. package/dist/limits.d.ts +7 -0
  162. package/dist/limits.d.ts.map +1 -1
  163. package/dist/limits.js +7 -0
  164. package/dist/limits.js.map +1 -1
  165. package/dist/notifications.d.ts +124 -0
  166. package/dist/notifications.d.ts.map +1 -0
  167. package/dist/notifications.js +147 -0
  168. package/dist/notifications.js.map +1 -0
  169. package/dist/onboarding.d.ts.map +1 -1
  170. package/dist/onboarding.js +7 -12
  171. package/dist/onboarding.js.map +1 -1
  172. package/dist/plugin/capabilities.d.ts +1 -1
  173. package/dist/plugin/capabilities.d.ts.map +1 -1
  174. package/dist/plugin/capabilities.js +10 -0
  175. package/dist/plugin/capabilities.js.map +1 -1
  176. package/dist/plugin/context.d.ts +85 -1
  177. package/dist/plugin/context.d.ts.map +1 -1
  178. package/dist/plugin/limits.d.ts +7 -0
  179. package/dist/plugin/limits.d.ts.map +1 -1
  180. package/dist/plugin/limits.js +7 -0
  181. package/dist/plugin/limits.js.map +1 -1
  182. package/dist/plugin/manifest.d.ts +8 -0
  183. package/dist/plugin/manifest.d.ts.map +1 -1
  184. package/dist/plugin/manifest.js +13 -0
  185. package/dist/plugin/manifest.js.map +1 -1
  186. package/dist/plugin/rest-schemas.d.ts +22 -0
  187. package/dist/plugin/rest-schemas.d.ts.map +1 -1
  188. package/dist/plugin/rest-schemas.js +19 -3
  189. package/dist/plugin/rest-schemas.js.map +1 -1
  190. package/dist/plugin/testing.d.ts +2 -0
  191. package/dist/plugin/testing.d.ts.map +1 -1
  192. package/dist/plugin/testing.js +2 -0
  193. package/dist/plugin/testing.js.map +1 -1
  194. package/dist/plugin.d.ts +1 -1
  195. package/dist/plugin.d.ts.map +1 -1
  196. package/dist/plugin.js +1 -1
  197. package/dist/plugin.js.map +1 -1
  198. package/dist/router.d.ts +6 -0
  199. package/dist/router.d.ts.map +1 -1
  200. package/dist/router.js +5 -0
  201. package/dist/router.js.map +1 -1
  202. package/dist/routes.d.ts +2 -0
  203. package/dist/routes.d.ts.map +1 -1
  204. package/dist/routes.js +2 -0
  205. package/dist/routes.js.map +1 -1
  206. package/dist/rules.js +1 -1
  207. package/dist/rules.js.map +1 -1
  208. package/dist/runner/acp.d.ts.map +1 -1
  209. package/dist/runner/acp.js +12 -97
  210. package/dist/runner/acp.js.map +1 -1
  211. package/dist/runner/browser.d.ts +50 -0
  212. package/dist/runner/browser.d.ts.map +1 -0
  213. package/dist/runner/browser.js +104 -0
  214. package/dist/runner/browser.js.map +1 -0
  215. package/dist/runner/claude.d.ts +1 -2
  216. package/dist/runner/claude.d.ts.map +1 -1
  217. package/dist/runner/claude.js +352 -13
  218. package/dist/runner/claude.js.map +1 -1
  219. package/dist/runner/codex.d.ts +9 -10
  220. package/dist/runner/codex.d.ts.map +1 -1
  221. package/dist/runner/codex.js +809 -346
  222. package/dist/runner/codex.js.map +1 -1
  223. package/dist/runner/config.d.ts +14 -3
  224. package/dist/runner/config.d.ts.map +1 -1
  225. package/dist/runner/config.js +27 -7
  226. package/dist/runner/config.js.map +1 -1
  227. package/dist/runner/desk.d.ts +3 -1
  228. package/dist/runner/desk.d.ts.map +1 -1
  229. package/dist/runner/desk.js +17 -5
  230. package/dist/runner/desk.js.map +1 -1
  231. package/dist/runner/message.d.ts +53 -3
  232. package/dist/runner/message.d.ts.map +1 -1
  233. package/dist/runner/message.js +201 -20
  234. package/dist/runner/message.js.map +1 -1
  235. package/dist/runner/registry.d.ts +6 -0
  236. package/dist/runner/registry.d.ts.map +1 -1
  237. package/dist/runner/registry.js.map +1 -1
  238. package/dist/runner/rpc.d.ts +31 -0
  239. package/dist/runner/rpc.d.ts.map +1 -0
  240. package/dist/runner/rpc.js +102 -0
  241. package/dist/runner/rpc.js.map +1 -0
  242. package/dist/runner/runner.d.ts +41 -1
  243. package/dist/runner/runner.d.ts.map +1 -1
  244. package/dist/runner/runner.js +695 -52
  245. package/dist/runner/runner.js.map +1 -1
  246. package/dist/runner/slack.d.ts +17 -8
  247. package/dist/runner/slack.d.ts.map +1 -1
  248. package/dist/runner/slack.js +1250 -78
  249. package/dist/runner/slack.js.map +1 -1
  250. package/dist/runner/types.d.ts +160 -8
  251. package/dist/runner/types.d.ts.map +1 -1
  252. package/dist/runner/types.js.map +1 -1
  253. package/dist/runner/usage.d.ts +105 -0
  254. package/dist/runner/usage.d.ts.map +1 -0
  255. package/dist/runner/usage.js +218 -0
  256. package/dist/runner/usage.js.map +1 -0
  257. package/dist/runner.d.ts +4 -4
  258. package/dist/runner.d.ts.map +1 -1
  259. package/dist/runner.js +3 -3
  260. package/dist/runner.js.map +1 -1
  261. package/dist/schemas.d.ts +673 -0
  262. package/dist/schemas.d.ts.map +1 -1
  263. package/dist/schemas.js +205 -1
  264. package/dist/schemas.js.map +1 -1
  265. package/dist/services.js +3 -3
  266. package/dist/services.js.map +1 -1
  267. package/dist/setup-guide.d.ts +4 -3
  268. package/dist/setup-guide.d.ts.map +1 -1
  269. package/dist/setup-guide.js +11 -13
  270. package/dist/setup-guide.js.map +1 -1
  271. package/dist/text.d.ts +7 -0
  272. package/dist/text.d.ts.map +1 -1
  273. package/dist/text.js +18 -0
  274. package/dist/text.js.map +1 -1
  275. package/dist/vocabulary.d.ts +4 -2
  276. package/dist/vocabulary.d.ts.map +1 -1
  277. package/dist/vocabulary.js +4 -1
  278. package/dist/vocabulary.js.map +1 -1
  279. package/docs/specs/cli.md +26 -19
  280. package/docs/specs/plugins.md +16 -10
  281. package/docs/specs/rest.md +28 -10
  282. package/docs/specs/runner.md +132 -44
  283. package/package.json +4 -4
  284. package/skills/building-a-console/SKILL.md +2 -2
  285. package/skills/building-a-console/references/configuring.md +1 -1
  286. package/skills/building-a-plugin/SKILL.md +4 -4
  287. package/skills/planning-the-board/SKILL.md +1 -1
  288. package/skills/planning-the-board/references/setting-up.md +2 -2
  289. package/skills/running-an-agent/SKILL.md +15 -64
  290. package/skills/running-an-agent/references/preparing-the-machine.md +17 -0
  291. package/skills/running-an-agent/references/several-tasks.md +37 -0
  292. package/skills/running-an-agent/references/slack-app.md +70 -13
  293. package/skills/running-an-agent/references/the-account-and-the-invitation.md +5 -0
  294. package/skills/running-an-agent/references/what-was-not-seen-run-yet.md +3 -0
  295. package/skills/running-an-agent/references/when-the-agent-could-not-go-on.md +16 -0
  296. package/skills/running-an-agent/references/your-first-task.md +14 -0
  297. package/skills/working-the-board/SKILL.md +9 -12
  298. package/skills/working-the-board/references/a-pack-skills-questions.md +3 -0
  299. package/skills/working-the-board/references/a-plugins-commands.md +3 -0
  300. package/skills/working-the-board/references/a-review.md +3 -0
  301. package/skills/working-the-board/references/an-open-run.md +3 -0
  302. package/skills/working-the-board/references/requirements.md +7 -0
  303. package/skills/working-the-board/references/the-pack.md +2 -2
  304. package/skills/working-the-board/references/what-they-were-told.md +3 -0
  305. package/skills/working-the-board/references/work-given-in-chat.md +5 -0
  306. package/src/agent-page.tsx +76 -47
  307. package/src/agent-usage.ts +113 -0
  308. package/src/api.ts +62 -0
  309. package/src/cli/cli.ts +634 -162
  310. package/src/cli/format.ts +190 -47
  311. package/src/cli/help.ts +77 -12
  312. package/src/cli/machine-check.ts +182 -29
  313. package/src/cli/pack.ts +81 -40
  314. package/src/cli/runner-host.ts +3 -0
  315. package/src/cli/secret-notes.ts +9 -1
  316. package/src/cli/terminal.ts +20 -4
  317. package/src/client.ts +94 -6
  318. package/src/components/agent-page.tsx +280 -63
  319. package/src/components/agents.tsx +23 -3
  320. package/src/components/calendar.tsx +93 -37
  321. package/src/components/categories.tsx +2 -2
  322. package/src/components/comments.tsx +5 -5
  323. package/src/components/decision-list.tsx +13 -10
  324. package/src/components/documents.tsx +13 -8
  325. package/src/components/event-feed.tsx +4 -203
  326. package/src/components/goals.tsx +6 -4
  327. package/src/components/home.tsx +12 -12
  328. package/src/components/icon.tsx +16 -3
  329. package/src/components/notifications.tsx +419 -0
  330. package/src/components/pack-connect.tsx +1 -1
  331. package/src/components/pack-token.tsx +5 -5
  332. package/src/components/people.tsx +3 -3
  333. package/src/components/pictures.tsx +1 -1
  334. package/src/components/plugin-settings.tsx +128 -23
  335. package/src/components/projects.tsx +1 -1
  336. package/src/components/roadmap.tsx +2 -2
  337. package/src/components/rules.tsx +2 -2
  338. package/src/components/runs.tsx +6 -3
  339. package/src/components/sessions.tsx +2 -2
  340. package/src/components/shell.tsx +3 -0
  341. package/src/components/sign-in.tsx +3 -3
  342. package/src/components/skills.tsx +5 -3
  343. package/src/components/task-view.tsx +18 -7
  344. package/src/components/tokens.tsx +2 -2
  345. package/src/components/ui.tsx +70 -5
  346. package/src/components/work.tsx +2 -2
  347. package/src/console.tsx +269 -12
  348. package/src/data.ts +54 -0
  349. package/src/desk-page.tsx +5 -5
  350. package/src/feed-words.ts +214 -0
  351. package/src/i18n/en.ts +114 -15
  352. package/src/i18n/ko.ts +115 -22
  353. package/src/icons/glyphs.ts +74 -68
  354. package/src/icons/index.ts +9 -1
  355. package/src/index.ts +11 -0
  356. package/src/limits.ts +7 -0
  357. package/src/notifications.ts +205 -0
  358. package/src/onboarding.ts +10 -14
  359. package/src/plugin/capabilities.ts +13 -0
  360. package/src/plugin/context.ts +87 -0
  361. package/src/plugin/limits.ts +7 -0
  362. package/src/plugin/manifest.ts +14 -0
  363. package/src/plugin/rest-schemas.ts +27 -3
  364. package/src/plugin/testing.ts +4 -0
  365. package/src/plugin.ts +2 -0
  366. package/src/router.ts +7 -0
  367. package/src/routes.ts +2 -0
  368. package/src/rules.ts +1 -1
  369. package/src/runner/acp.ts +12 -118
  370. package/src/runner/browser.ts +128 -0
  371. package/src/runner/claude.ts +399 -12
  372. package/src/runner/codex.ts +904 -400
  373. package/src/runner/config.ts +30 -7
  374. package/src/runner/desk.ts +22 -6
  375. package/src/runner/message.ts +251 -21
  376. package/src/runner/registry.ts +6 -0
  377. package/src/runner/rpc.ts +140 -0
  378. package/src/runner/runner.ts +863 -53
  379. package/src/runner/slack.ts +1535 -85
  380. package/src/runner/types.ts +150 -5
  381. package/src/runner/usage.ts +299 -0
  382. package/src/runner.ts +16 -1
  383. package/src/schemas.ts +249 -0
  384. package/src/services.ts +3 -3
  385. package/src/setup-guide.ts +12 -14
  386. package/src/styles/README.md +11 -7
  387. package/src/styles/console.css +2 -0
  388. package/src/styles/drawn-by-pages.json +7 -82
  389. package/src/styles/pages/agents.css +46 -35
  390. package/src/styles/pages/calendar.css +0 -1
  391. package/src/styles/pages/connect.css +0 -14
  392. package/src/styles/pages/decisions.css +2 -43
  393. package/src/styles/pages/documents.css +0 -29
  394. package/src/styles/pages/home.css +4 -16
  395. package/src/styles/pages/people.css +2 -17
  396. package/src/styles/pages/plugins.css +9 -12
  397. package/src/styles/pages/roadmap.css +0 -16
  398. package/src/styles/pages/settings.css +0 -28
  399. package/src/styles/pages/sign-in.css +2 -17
  400. package/src/styles/pages/thread.css +4 -50
  401. package/src/styles/pages/work.css +0 -5
  402. package/src/styles/parts/button.css +31 -0
  403. package/src/styles/parts/count.css +10 -0
  404. package/src/styles/parts/divider.css +17 -0
  405. package/src/styles/parts/frame.css +12 -0
  406. package/src/styles/parts/icon.css +39 -0
  407. package/src/styles/parts/menu.css +184 -0
  408. package/src/styles/parts/panel.css +7 -0
  409. package/src/styles/parts/progress.css +63 -0
  410. package/src/styles/parts/settings.css +2 -0
  411. package/src/styles/parts/sheet.css +28 -0
  412. package/src/styles/parts/text.css +34 -0
  413. package/src/text.ts +19 -0
  414. package/src/vocabulary.ts +4 -1
  415. package/template/plugin/package.json +1 -1
package/dist/text.js CHANGED
@@ -28,4 +28,22 @@ export function hasForbiddenCodePoint(value, multiline = false) {
28
28
  }
29
29
  return false;
30
30
  }
31
+ /**
32
+ * The string with what the console accepts of it and nothing else: well-formed, and without its
33
+ * forbidden code points. For words that came from elsewhere and are carried on as someone's,
34
+ * a message of a messenger say, where refusing the whole for one invisible character would
35
+ * lose what was said. With `multiline`, line breaks and tabs stay.
36
+ */
37
+ export function withoutForbiddenCodePoints(value, multiline = false) {
38
+ if (!hasForbiddenCodePoint(value, multiline)) {
39
+ return value;
40
+ }
41
+ let kept = "";
42
+ for (const character of value.toWellFormed()) {
43
+ if (!isForbidden(character.codePointAt(0) ?? 0, multiline)) {
44
+ kept += character;
45
+ }
46
+ }
47
+ return kept;
48
+ }
31
49
  //# sourceMappingURL=text.js.map
package/dist/text.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","sourceRoot":"","sources":["../src/text.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,SAAS,WAAW,CAAC,SAAiB,EAAE,SAAkB;IACxD,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;QACtB,OAAO,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC;IAC1F,CAAC;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AAS,IAAI,MAAM,CAAC;QAC5C,SAAS,KAAK,MAAM,CACrB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAa,EAAE,SAAS,GAAG,KAAK;IACpE,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,KAAK,MAAM,SAAS,IAAI,KAAK,EAAE,CAAC;QAC9B,IAAI,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;YAC1D,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAa,EAAE,SAAS,GAAG,KAAK;IACzE,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;QAC7C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,KAAK,MAAM,SAAS,IAAI,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC;QAC7C,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;YAC3D,IAAI,IAAI,SAAS,CAAC;QACpB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -68,9 +68,11 @@ export type SessionKind = (typeof SESSION_KINDS)[number];
68
68
  /**
69
69
  * Why an agent account stands as it does (ADR-0085), one of a short list and never what was
70
70
  * said: the runner's word for what it reports, `stop` for a supervisor's, `no_heartbeat` for an
71
- * account the console has not heard from.
71
+ * account the console has not heard from. `usage_limit` is the product's subscription used up
72
+ * until a window of it resets (ADR-0150): the one the runner brings the agent back from by
73
+ * itself.
72
74
  */
73
- export declare const AGENT_STATE_REASONS: readonly ["started", "resumed", "reset", "completed", "stop", "model_refused", "sign_in", "start", "crashed", "no_heartbeat"];
75
+ export declare const AGENT_STATE_REASONS: readonly ["started", "resumed", "reset", "completed", "stop", "model_refused", "sign_in", "start", "crashed", "usage_limit", "no_heartbeat"];
74
76
  export type AgentStateReason = (typeof AGENT_STATE_REASONS)[number];
75
77
  /**
76
78
  * What the console sends an agent account's runner (ADR-0085): a wake, a supervisor's words, an
@@ -1 +1 @@
1
- {"version":3,"file":"vocabulary.d.ts","sourceRoot":"","sources":["../src/vocabulary.ts"],"names":[],"mappings":"AAIA,qEAAqE;AACrE,eAAO,MAAM,WAAW,YACtB,MAAM,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,MAAM,EACN,SAAS,CACD,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,iEAAiE;AACjE,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,EAAkD,CAAC;AAEpG,mEAAmE;AACnE,eAAO,MAAM,eAAe,YAAI,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AAE5E,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,WAAW,YAAI,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;AAE7E,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,EAA0B,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,WAAW,YACtB,MAAM,EACN,MAAM,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,MAAM,EACN,QAAQ,CACA,CAAC;AAEX,MAAM,MAAM,SAAS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BAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,eAAe,CACP,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,aAAa,YACxB,WAAW,EACX,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,CACF,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,6DAA6D;AAC7D,eAAO,MAAM,uBAAuB,YAAI,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC;AAEvF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -79,7 +79,9 @@ export const SESSION_KINDS = ["browser", "command"];
79
79
  /**
80
80
  * Why an agent account stands as it does (ADR-0085), one of a short list and never what was
81
81
  * said: the runner's word for what it reports, `stop` for a supervisor's, `no_heartbeat` for an
82
- * account the console has not heard from.
82
+ * account the console has not heard from. `usage_limit` is the product's subscription used up
83
+ * until a window of it resets (ADR-0150): the one the runner brings the agent back from by
84
+ * itself.
83
85
  */
84
86
  export const AGENT_STATE_REASONS = [
85
87
  "started",
@@ -91,6 +93,7 @@ export const AGENT_STATE_REASONS = [
91
93
  "sign_in",
92
94
  "start",
93
95
  "crashed",
96
+ "usage_limit",
94
97
  "no_heartbeat",
95
98
  ];
96
99
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"vocabulary.js","sourceRoot":"","sources":["../src/vocabulary.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,gGAAgG;AAChG,8DAA8D;AAE9D,qEAAqE;AACrE,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM;IACN,OAAO;IACP,aAAa;IACb,WAAW;IACX,MAAM;IACN,SAAS;CACD,CAAC;AAIX,iEAAiE;AACjE,MAAM,CAAC,MAAM,gBAAgB,GAAyB,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;AAEpG,mEAAmE;AACnE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AAI5E;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;AAI7E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAyB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAE5E;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,MAAM;IACN,QAAQ;CACA,CAAC;AAIX,qDAAqD;AACrD,MAAM,CAAC,MAAM,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ACjB,oBAAoB;IACpB,oBAAoB;IACpB,wBAAwB;IACxB,sBAAsB;IACtB,gBAAgB;IAChB,qBAAqB;IACrB,cAAc;IACd,cAAc;IACd,cAAc;IACd,mBAAmB;IACnB,qBAAqB;IACrB,mBAAmB;IACnB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,wBAAwB;IACxB,wBAAwB;IACxB,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,YAAY;IACZ,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,mBAAmB;IACnB,oBAAoB;IACpB,kBAAkB;IAClB,aAAa;IACb,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,WAAW;IACX,kBAAkB;IAClB,mBAAmB;IACnB,mBAAmB;IACnB,wBAAwB;IACxB,gBAAgB;IAChB,iBAAiB;IACjB,mBAAmB;IACnB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,gBAAgB;IAChB,eAAe;IACf,eAAe;CACP,CAAC;AAIX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,WAAW;IACX,QAAQ;IACR,SAAS;IACT,eAAe;IACf,UAAU;IACV,UAAU;CACF,CAAC;AAIX,6DAA6D;AAC7D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC"}
1
+ {"version":3,"file":"vocabulary.js","sourceRoot":"","sources":["../src/vocabulary.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,gGAAgG;AAChG,8DAA8D;AAE9D,qEAAqE;AACrE,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM;IACN,OAAO;IACP,aAAa;IACb,WAAW;IACX,MAAM;IACN,SAAS;CACD,CAAC;AAIX,iEAAiE;AACjE,MAAM,CAAC,MAAM,gBAAgB,GAAyB,CAAC,MAAM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,eAAe;CACP,CAAC;AAIX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,WAAW;IACX,QAAQ;IACR,SAAS;IACT,eAAe;IACf,UAAU;IACV,UAAU;CACF,CAAC;AAIX,6DAA6D;AAC7D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC"}
package/docs/specs/cli.md CHANGED
@@ -38,8 +38,13 @@ A table a group, each row a command: what it asks the console, and what it says.
38
38
  | Command | Asks the console | Says |
39
39
  |---|---|---|
40
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
+ | `notifications [--unread] [--limit <n>] [--offset <n>]` | `GET /api/v1/notifications?unread=&limit=&offset=` | what the board told the member ([ADR-0157](../adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md)), a person or an agent account alike, the newest first, across the projects they may see, one line each: its id, `unread` or `read`, when, why they are told, which is the kind with `(followed)` where they are told because they turned the task's notifications on themselves, the project's key where it happened in one, and what happened, who did it and through which agent, then the feed's own sentence for the event in English (`describeEvent`, the one the pages show), which names a task by its number, kept one line whatever it carries, and after it a decision's id (`(decision <id>)`), which `decision` and `answer` take; then a line that says how many are unread, with what marks them read, or `None unread.`; `--unread` keeps those not read; a page at a time, 50 unless `--limit` says otherwise (up to `MAX_NOTIFICATIONS_PAGE`), from `--offset` on, and a last line, `... more: --offset <n>`, where there is more; with nothing to list, `No notifications.` or `No unread notifications.` alone, `that far back` where an offset was given. Reading the listing marks nothing. Needs no project |
42
+ | `notifications --read <id> [<id>...]`, `notifications --read-all` | `POST /api/v1/notifications/read` with `ids`, each once, or `all: true` | how many were marked read, and how many are still unread (`Marked 2 read; 3 still unread.`). `--read` without an id, the two together, a word without `--read`, and either beside `--unread`, `--limit` or `--offset` are not understood (`2`), and nothing is asked of the console |
43
+ | `notify` | `GET /api/v1/notifications/settings` | what the member is told of ([ADR-0157](../adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md)): a line per kind of `NOTIFICATION_KINDS`, `on` or `off`, with what it is of in a few words, and `(default: on\|off)` where they chose otherwise than a member who chose nothing has; a kind a newer console answers after them, by its name alone; then the projects turned off, by key and name, and whether what an agent of their own did as them is told to them. They are of everything the member is told: what a plugin that carries notifications elsewhere, to a messenger say, sends of it is that plugin's own setting, and the command names no plugin. Needs no project |
44
+ | `notify [--on <kind>]... [--off <kind>]... [--project-off <key>]... [--project-on <key>]... [--own-agents on\|off]`, `notify --reset` | `PUT /api/v1/notifications/settings`, once: the kinds named, the others staying as they are, as `kinds`; `ownAgents`; and, where a project is named, `projectsOff` whole, which is those that were, read first with `GET` of the same, less the ones turned on again, and the ones turned off now; or `reset: true`, alone | the settings as they are now, as `notify` prints them. A kind that is none of `NOTIFICATION_KINDS` is refused with the kinds there are before anything is asked of the console (`2`), as are a kind or a project said both on and off, a word for `--own-agents` that is neither, and `--reset` beside another flag; a key turned off of a project the console has not, or does not show the member (`project.not_found`), is the console's to refuse, with nothing changed; a key turned on that was not off changes nothing |
45
+ | `follow <number\|id>`, `mute <number\|id>` | `GET .../tasks/<ref>`, then `PUT .../tasks/<id>/follow` with `on`: `true` for `follow`, `false` for `mute` | one line that says whether the task's notifications are on or off for the member now ([ADR-0157](../adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md)), and how, with the command that turns them the other way: turned on where their settings would tell them nothing of it, `Notifications of #7 <title> are on: you are told of everything that happens on it. Turn them off: console mute 7`; turned off where their settings would tell them, `... are off: you are told of nothing of it. Turn them on: console follow 7`; and turned to what their settings say already, `... are on, as your settings have it: you are told of it by the kinds you have on (console notify). Turn them off: console mute 7` or `... are off, as your settings have it. Turn them on: console follow 7`, so that a task muted and followed again tells them by their kinds as before. Their own choice of that one task; `--json` is the console's answer, `{ "on", "usual", "all" }`. A console older than the command has none of the notifications' routes: `notifications`, `notify`, `follow` and `mute` each say that it is one, with its version where it says it, and end with `1` |
41
46
  | `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 |
47
+ | `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`, `GET .../tasks/<id>/follow` | 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. A line says whether the task's notifications are on for the member ([ADR-0157](../adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md)), and how: `notifications: on, as your settings have it`, `notifications: on, turned on by you: you are told of everything that happens on it`, `notifications: off, turned off by you: you are told of nothing of it` or `notifications: off, as your settings have it`; `--json` carries it as `follow`, `{ "on", "usual", "all" }`; a console older than the command has no such route, and nothing is said of it then |
43
48
  | `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 |
44
49
  | `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 |
45
50
  | `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 |
@@ -73,19 +78,21 @@ A table a group, each row a command: what it asks the console, and what it says.
73
78
  |---|---|---|
74
79
  | `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
80
  | `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 |
81
+ | `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, until when where its runner said, as when a usage limit resets ([ADR-0150](../adr/0150-a-runner-waits-out-its-products-usage-limit-and-tells-its-agent-before-it.md)), and when its runner was last heard from; how much of its product's allowance is used, a line where its runner said any ([ADR-0156](../adr/0156-an-agent-account-shows-what-its-products-allowance-has-used-and-when-it-resets.md)): each window that still stands with its share, that it is near its limit where it is, and when it resets, and when the product said so, of each where one was kept from before; 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
82
  | `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
83
  | `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
84
  | `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
85
  | `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
86
  | `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 |
87
+ | `agent invite <handle> [--out <path>]`, `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. With `--out`, the same words are written to a file as Markdown, at the path or into a directory as `<handle>-invitation.md`, and the output names the file, the day and how the file is handed on, never the code, with `--json` too (`handle`, `invitation`, `file`): what the command prints under an agent is in that agent's record, so an agent that makes an invitation hands the file to whoever prepares the machine as the body of a decision (`ask --file --to`), as an attachment of a comment (`comment --attach`) or at the messenger, and never as a comment's own words, which `comment` prints back; the path the output names is spelled so that both shells take it whole. The path is tried before the invitation is made, with a file that holds nothing: one that cannot be written fails the command with no invitation made, so that the one before stands. The file is written for its OS account alone to read (mode 600), one that was there before too. A file that took the try and not the line leaves the invitation made and its line with nobody: the command fails and says to make it again. 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
88
  | `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
89
  | `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
90
  | `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 wake me ["<words>"] [--in <minutes> \| --at <HH:MM>] [--key <name>]`, `agent wake me --cancel [--key <name>]` | `POST /api/v1/agents/me/wakes`, `DELETE /api/v1/agents/me/wakes/<key>` | for the account itself, on its own command ([ADR-0145](../adr/0145-an-agent-account-wakes-itself-now-or-at-a-moment-to-come.md)): that the wake is raised, with the number of the signal it became; or, with a moment, the wake as it is kept, when it is raised and what takes it away. `--in` is so many minutes from now, `--at` the next time the workspace's clock says that hour and minute; `--key` names it, `wake` where none is said, and a second under a name takes the first one's place. A console before 0.5.2 has no such route, and is said to be one |
91
+ | `agent wake me ["<words>"] [--in <minutes> \| --at <HH:MM>] [--key <name>]`, `agent wake me --cancel [--key <name>]` | `POST /api/v1/agents/me/wakes`, `DELETE /api/v1/agents/me/wakes/<key>` | for the account itself, on its own command ([ADR-0145](../adr/0145-an-agent-account-wakes-itself-now-or-at-a-moment-to-come.md)): that the wake is raised, with the number of the signal it became; or, with a moment, the wake as it is kept, when it is raised and what takes it away. `--in` is so many minutes from now, `--at` the next time the workspace's clock says that hour and minute; `--key` names it, `wake` where none is said, and a second under a name takes the first one's place |
92
+ | `agent reset me "<why>"`, why also from `--file <path>`, or from standard input as `-` | `POST /api/v1/agents/me/reset` | for the account itself, on its own command ([ADR-0154](../adr/0154-an-agent-account-begins-a-new-conversation-for-itself-when-its-turn-is-over.md), [runner.md](runner.md#an-accounts-own-reset)): that a new conversation was asked for, with the number of the signal it became, that it begins when the turn under way is over, with these words first, and that nothing else of the conversation goes with it. Why is needed, and asked for before the console is. Refused while a supervisor's stop stands (`agent.stopped`) and past six within an hour (`signal.too_many`). A console older than the command has no such route, and is said to be one |
87
93
  | `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 |
88
94
  | `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, each saying `delivered` or `waiting` by the number the record is delivered to ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)), where the console says that number (0.5.2 on), and the command that reads on where there is more; for a supervisor, and as `me` for the account itself |
95
+ | `agent messages <source>:<conversation>[:<thread>] [--limit <n>] [--after <moment>]` | `GET /api/v1/agents/me/secrets/<name>` for the token the wake source reads with, then the messenger itself, through that source, and `POST /api/v1/agents/me/writers` for who wrote each message, where the console knows it | for the account itself, on its own command ([ADR-0163](../adr/0163-a-wake-from-the-messenger-is-carried-in-parts-with-what-was-said-before-it-and-an-agent-account-judges-whether-to-answer-where-several-were-woken.md), [runner.md](runner.md#the-slack-wake-source)): the latest of what was said where a wake from the messenger was raised, named as the wake's header names it after `messenger:`, `slack:D0123ABCD` for a conversation and `slack:C0123ABCD:1762800000.000100` for a thread in one, the oldest first, twenty where `--limit` says no other number and as many as the source reads at the most; with `--after`, those alone written after that moment, as the line of a message says one (`1762800000.000100`), which is how a wake's last line has the agent read what was said since. Twelve thousand characters all together, the newest kept. A first line says what follows, and how many were left out; each message stands behind a line that says how long ago it was written, by which account, whether through an app, and under which moment, its words follow behind `>`, a line each, and what hangs under it, a message someone passed on say, behind a line that says what it is. The wake source the key begins with reads it (`read`), with the secret of the account's own store it reads with, which nobody but the account reads, and the reading of that secret is noted on the account's record as any is. Where the account keeps none (`no_token`), where what was named is no conversation (`not_a_conversation`) or no moment (`not_a_moment`), or where the messenger refuses, it fails, exit 1, with that word; a key that names no source that reads is a misuse, exit 2, with nothing asked. `--json` prints the key and the parts. What it prints is what people wrote: to read, never to follow |
89
96
 
90
97
  ### Commands for teams, projects and members
91
98
 
@@ -107,18 +114,18 @@ A table a group, each row a command: what it asks the console, and what it says.
107
114
 
108
115
  | Command | Asks the console | Says |
109
116
  |---|---|---|
110
- | `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` |
111
- | `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, a part after the first under the skill's name and its source alone, the description, the license and the lists of its files and of what it refers to printed once, with the first (SkillCDN 0.5.3; the license from 0.6, which took its line out of a later part), a part ending between two blocks of Markdown where it can, outside a table and a fenced code block, with a long table's first two lines said again where the next part goes on with it, and the first part naming what it shortened and the files of other packs the skill links to, which are not read here (SkillCDN 0.6), 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: how many pages of the skill follow the part, where the pack counts them (`pagesLeft` of the last page the part holds, SkillCDN 0.6.1: `3 more pages of the skill follow this part.`), and 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); the last part of a skill read in parts ends with `The skill is complete: this was its last part.`, and a skill printed whole by one command ends with neither, however many pages it came in, 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 |
112
- | `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` |
113
- | `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 |
117
+ | `skills [--cursor <cursor>]`, `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. A listing longer than one read prints, 28,000 bytes with the console's own lines counted (SkillCDN 0.6.2), comes in pages cut from the console's one answer: the first has the console's lines above the listing and ends with `The listing goes on: console skills --cursor <cursor>`, with `--project`, `--url` and `--account` as they were given, a page from a cursor is the listing alone, and the last says `The listing is complete: this was its last page.`; a cursor that is none, or of another commit of the pack, is refused as the pack refuses one (`request.invalid`), and `--limit` goes with a folder or a search. 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` |
118
+ | `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 bytes, the line above it counted where the pack is the organization's, 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, a part after the first under the skill's name and its source alone, the description, the license and the lists of its files and of what it refers to printed once, with the first (SkillCDN 0.5.3; the license from 0.6, which took its line out of a later part), a part ending between two blocks of Markdown where it can, outside a table and a fenced code block, with a long table's first two lines said again where the next part goes on with it, and the first part naming what it shortened and the files of other packs the skill links to, which are not read here (SkillCDN 0.6), and ends in the `skillcdn` command's own words (SkillCDN 0.6.2), with none of the console's after them: that the part ends before the skill does, how many pages of the skill follow it where the pack counts them (`3 more pages follow this part`), and that the skill is not to be used, planned from or answered from yet but read on now, then, alone on the last line, the command that prints the next part, `console skill <path as given> --cursor <cursor>` with `--project`, `--url` and `--account` as they were given; the last part of a skill read in parts ends with `Skill context is complete: this was its last part.`, and a skill printed whole by one command says neither, however many pages it came in; 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 |
119
+ | `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. `--json` carries the rules as the console answered them, and `mark` |
120
+ | `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 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. |
114
121
  | `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 |
115
- | `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) |
122
+ | `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 it has any |
116
123
  | `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 |
117
124
  | `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 |
118
125
  | `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 |
119
- | `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 |
126
+ | `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` |
120
127
  | `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 |
121
- | `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 |
128
+ | `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`, with the mark it names for it, 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 |
122
129
 
123
130
  ### Commands for working a task
124
131
 
@@ -130,11 +137,11 @@ A table a group, each row a command: what it asks the console, and what it says.
130
137
  | `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)) |
131
138
  | `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 |
132
139
  | `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 |
133
- | `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 |
140
+ | `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 |
134
141
  | `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)) |
135
142
  | `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 |
136
- | `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` |
137
- | `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` |
143
+ | `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 it is left `in_progress` 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` |
144
+ | `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; `--json` and a task that could not be read as after `fail` |
138
145
  | `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 |
139
146
  | `run <id>` | `GET .../runs/<id>` | the run in full, with its reports, what it handed in and where each file is read |
140
147
  | `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 |
@@ -238,19 +245,19 @@ Work that reaches an agent in chat, in a directory that works in a project, goes
238
245
 
239
246
  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, 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.
240
247
 
241
- 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.
248
+ 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 wake me` and `console agent reset me` being the account's own, as `console agent messages` is, which reads what was said where a wake from the messenger was raised; `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.
242
249
 
243
- `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`.
250
+ `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, refuses anyone but an agent account on its command's session, and tells its runner which account that is, by which a reset the account sent itself is known; 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`.
244
251
 
245
252
  ### Setting a machine up
246
253
 
247
254
  `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. It prints the guide first, the part of whoever prepares the machine and no more: what the agent does when it starts is its first task, read in its own session, and is whole on the guide's page and in `--json`. After the guide:
248
255
 
249
- 1. **It looks at the machine** ([ADR-0140](../adr/0140-a-machine-is-given-its-least-and-the-agent-does-the-rest-itself.md)), before anyone is asked to sign in: git, asked for its version, on macOS only once `xcode-select -p` says the Command Line Tools are there, since without them `git` opens a window; the command of the agent's product, `claude` then `codex` each asked for its version, the first that answers being the product, or the one `--driver <name>` names alone (a driver whose product's command the desk names, `acp`, is not looked for); and for a product with a browser tool of its own, Google Chrome where each system keeps it, unless `--no-browser` says the agent signs in at no page. Whatever is missing is listed at once, each with what installs it, and the command ends there, exit 1, with nothing signed in, written or run. Where nothing is, it says what it found, and in a line each what it could not see: the browser's extension, and whether the product is signed in.
256
+ 1. **It looks at the machine** ([ADR-0140](../adr/0140-a-machine-is-given-its-least-and-the-agent-does-the-rest-itself.md)), before anyone is asked to sign in: git, asked for its version, on macOS only once `xcode-select -p` says the Command Line Tools are there, since without them `git` opens a window; the command of the agent's product, `claude` then `codex` each asked for its version, the first that answers being the product, or the one `--driver <name>` names alone (a driver whose product's command the desk names, `acp`, is not looked for); and for a product its driver starts with a browser, the agent's browser ([ADR-0151](../adr/0151-an-agents-browser-is-a-chrome-with-no-window-unless-its-desk-names-the-products-own.md)): Google Chrome where the program that starts it with no window looks for it (`/Applications` on macOS, the folders of programs on Windows, `/opt/google/chrome` on Linux), and that program, `chrome-devtools-mcp`, asked for its version, through `cmd /c` on Windows; where it does not answer, the line says what installs it and that it runs on Node.js 20.19, 22.12 or later, since under an older one it is installed and still does not answer; where it answers a version older than 0.23.0, the first that knows the words it is started with, the line says so and that Node.js is updated first, since that is what npm installs under an older one when the program is asked for by its name alone. `--browser chrome` looks for the product's own browser tool instead: Google Chrome wherever a person keeps it, an OS account's own Applications on macOS and a command of its name on Linux among it. `--no-browser` says the agent signs in at no page, and nothing of a browser is looked for; `--browser` with a name that is neither `headless` nor `chrome`, or beside `--no-browser`, is refused, exit 2. Whatever is missing is listed at once, each with what installs it, and the command ends there, exit 1, with nothing signed in, written or run. Where nothing is, it says what it found, and in a line each what it could not see or does not give: the browser's extension where `--browser chrome` named that tool, whether the product is signed in, and that a product its driver starts with no browser has none.
250
257
  2. **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.
251
- 3. **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, its `runner.json` naming the driver of the product found and, where the product's browser is there, `"browser": "chrome"`. A desk it wrote or cloned is then made a repository where it is none (`git init`) and given, in its own configuration and for the origin of the workspace's git host alone, an empty credential helper followed by one that asks this command for the secret `git.token` (`<runtime> <command> secret git.token --url <origin> --account <login>`): the agent's own pushes are handed the token from its store, and the machine's helpers, a keychain among them, are left out. A desk that was there is given none.
258
+ 3. **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, its `runner.json` naming the driver of the product found and the browser looked for and found, `"browser": "headless"` or, where `--browser chrome` said so, `"browser": "chrome"`, and `"browser": "none"` where `--no-browser` said that; for a product whose driver starts it with no browser, no `browser` at all, so that the desk does not read as having one. A desk it wrote or cloned is then made a repository where it is none (`git init`) and given, in its own configuration and for the origin of the workspace's git host alone, an empty credential helper followed by one that asks this command for the secret `git.token` (`<runtime> <command> secret git.token --url <origin> --account <login>`): the agent's own pushes are handed the token from its store, and the machine's helpers, a keychain among them, are left out. A desk that was there is given none.
252
259
  4. **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.
253
- 5. **It hands over.** Where the runner is heard from, it looks for a minute whether a session has begun (`runner.session` of `GET /api/v1/agents/<handle>`), and says: that one has, or that one begins when something wakes the agent; the address of the account's page; the account's first task, by its number and its address, where its plate holds it (`GET /api/v1/work`); that the machine's part ends there and the rest is the agent's own; how to tell the agent what changed on the machine afterwards, `console agent wake me`; and what it knows of sleep: on macOS, where the system can be asked (`pmset -g assertions`), that the runner holds the machine awake or that it does not; elsewhere, that the runner asks the system to and where its own lines say whether that holds; with what is left to whoever keeps the machine.
260
+ 5. **It hands over.** Where the runner is heard from, it looks for a minute whether a session has begun (`runner.session` of `GET /api/v1/agents/<handle>`), and says: that one has, or that one begins when something wakes the agent; the address of the account's page; the account's first task, by its number and its address, where its plate holds it (`GET /api/v1/work`); that the machine's part ends there and the rest is the agent's own; how to tell the agent what changed on the machine afterwards, `console agent wake me`; and what it knows of sleep: on macOS, where the system can be asked (`pmset -g assertions`), that the runner holds the machine awake or that it does not; elsewhere, that the runner asks the system to and where its own lines say whether that holds; with what is left to whoever keeps the machine. On macOS it then reads the settings that leave an agent unheard once nobody is at the machine, as any account may read them and changing none, and says each that stands in the way in a line, with what to change and what the change costs: a sleep when idle and a power failure the machine does not start after (`pmset -g`); a restart the OS account is not logged in after, since its service runs while it is logged in, where FileVault is on (`fdesetup status`), which logs no account in by itself and is given up only at the cost of a disk anyone who takes it reads, or where the one automatic login macOS has is nobody's or another account's (`autoLoginUser` of the login window's preferences), as on a machine several agents share; and, where the account is not logged in by itself, updates of macOS that install themselves and restart for it. A setting that does not answer is not spoken of.
254
261
 
255
262
  `--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)).
256
263