@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/src/schemas.ts CHANGED
@@ -35,6 +35,7 @@ import {
35
35
  MAX_LINKS,
36
36
  MAX_LOGIN_LENGTH,
37
37
  MAX_NOTE_LENGTH,
38
+ MAX_NOTIFICATION_KIND_LENGTH,
38
39
  MAX_OPTION_LABEL_LENGTH,
39
40
  MAX_OPTIONS,
40
41
  MAX_PERSON_NAME_LENGTH,
@@ -48,6 +49,7 @@ import {
48
49
  MAX_RUNNER_LINE_LENGTH,
49
50
  MAX_RUNNER_OFFERS,
50
51
  MAX_RUNNER_SOURCES,
52
+ MAX_RUNNER_USAGE_WINDOWS,
51
53
  MAX_SEAL_REASON_LENGTH,
52
54
  MAX_SECRET_LENGTH,
53
55
  MAX_SERVICE_PARAMETERS,
@@ -68,10 +70,12 @@ import {
68
70
  MAX_TRANSCRIPT_FACTS,
69
71
  MAX_TRANSCRIPT_TEXT_BYTES,
70
72
  MAX_URL_LENGTH,
73
+ MAX_USAGE_WINDOW_NAME_LENGTH,
71
74
  MAX_WORKERS,
72
75
  MIN_HANDLE_LENGTH,
73
76
  MIN_OPTIONS,
74
77
  } from "./limits.js";
78
+ import { MAX_NOTIFICATION_PROJECTS_OFF, MAX_NOTIFICATIONS_READ } from "./notifications.js";
75
79
  import { PLUGIN_WIDGET_SIZE_NAMES } from "./plugin/manifest.js";
76
80
  import { hasForbiddenCodePoint } from "./text.js";
77
81
  import {
@@ -700,6 +704,11 @@ export const restMeSchema = z.object({
700
704
  * console's answer.
701
705
  */
702
706
  decisions: z.optional(z.nullable(z.object({ waiting: count }))),
707
+ /**
708
+ * How many notifications the person has not read (ADR-0157), for the pages to say beside
709
+ * Notifications; `null` for nobody. Answered from 0.6.1 and read as optional.
710
+ */
711
+ notifications: z.optional(z.nullable(z.object({ unread: count }))),
703
712
  });
704
713
  export type RestMe = z.infer<typeof restMeSchema>;
705
714
 
@@ -823,6 +832,18 @@ const runnerSource = z.object({
823
832
  since: instant,
824
833
  why: z.optional(runnerLine),
825
834
  });
835
+ /**
836
+ * A window of what the product's subscription allows, as its runner last heard of it (ADR-0156):
837
+ * what the driver calls it, how much of it is used where the product says, when it resets where
838
+ * it says, whether the product itself calls it near its limit, and when the product said so.
839
+ */
840
+ const runnerUsageWindow = z.object({
841
+ name: line(MAX_USAGE_WINDOW_NAME_LENGTH),
842
+ used: z.nullable(z.number().check(z.gte(0), z.lte(1))),
843
+ resetsAt: z.nullable(instant),
844
+ near: z.optional(z.boolean()),
845
+ at: instant,
846
+ });
826
847
  /** What an account's own wake to come is called: a short name of lowercase letters, digits and hyphens. */
827
848
  const ownWakeKey = z.string().check(z.regex(/^[a-z0-9][a-z0-9-]{0,39}$/));
828
849
  /** A signal by its number alone: what an answer names one by where the record holds the rest. */
@@ -857,6 +878,17 @@ export const restRunnerHeartbeatInputSchema = z.object({
857
878
  running: z.object({ model: z.nullable(runnerChoice), effort: z.nullable(runnerChoice) }),
858
879
  /** The wake sources the runner keeps beside the console's own, and how each stands (ADR-0144); left out by a runner of before. */
859
880
  sources: z.optional(z.array(runnerSource).check(z.maxLength(MAX_RUNNER_SOURCES))),
881
+ /**
882
+ * Until when the agent stands so, where the runner knows (ADR-0150): for `usage_limit`, when
883
+ * the product says its limit resets, which is when the runner brings the agent back. `null`
884
+ * or left out where nothing says, and by a runner of before.
885
+ */
886
+ until: z.optional(z.nullable(instant)),
887
+ /**
888
+ * What the product last said of what its subscription allows (ADR-0156), a window each; left
889
+ * out by a runner of before, and empty where the product has said nothing.
890
+ */
891
+ usage: z.optional(z.array(runnerUsageWindow).check(z.maxLength(MAX_RUNNER_USAGE_WINDOWS))),
860
892
  });
861
893
  export type RestRunnerHeartbeatInput = z.infer<typeof restRunnerHeartbeatInputSchema>;
862
894
 
@@ -889,10 +921,75 @@ export const restOwnWakeRaisedSchema = z.object({
889
921
  });
890
922
  export type RestOwnWakeRaised = z.infer<typeof restOwnWakeRaisedSchema>;
891
923
 
924
+ /** How many accounts at a messenger one asking names. */
925
+ export const MAX_WRITERS_ASKED = 100;
926
+ const messengerId = z.string().check(z.regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/), z.maxLength(64));
927
+
928
+ /**
929
+ * What `POST /api/v1/agents/me/writers` is sent, by an agent account for itself (ADR-0164):
930
+ * accounts at a messenger, each by the messenger's ids for its workspace and for itself, as a
931
+ * message there names whoever wrote it.
932
+ */
933
+ export const restWritersInputSchema = z.object({
934
+ messenger: z.string().check(z.regex(/^[a-z][a-z0-9-]{1,31}$/)),
935
+ accounts: z
936
+ .array(z.object({ workspace: messengerId, account: messengerId }))
937
+ .check(z.minLength(1), z.maxLength(MAX_WRITERS_ASKED)),
938
+ });
939
+ export type RestWritersInput = z.infer<typeof restWritersInputSchema>;
940
+
941
+ /**
942
+ * Who an account at a messenger is to the agent account that asks (ADR-0164). `told` is whether
943
+ * the console is told the accounts of that workspace at all, by a plugin that is enabled and
944
+ * holds `people:accounts`: where it is not, nothing is known there, and `member` is `null` for
945
+ * every account. `member` is the active member whose account it is, by their login, `null` for
946
+ * one the account that asks may not see (ADR-0035), with what kind of member they are and
947
+ * whether they supervise the account; `null` itself for an account that is no member's as far as
948
+ * the console is told.
949
+ *
950
+ * `supervisor` is the whole of ADR-0084, point 5: an administrator, or anyone above the asker
951
+ * in the reporting line, its manager and every level above. `administrator` and `line` say
952
+ * which, and the other way too: `line` is where the member stands in the asker's line,
953
+ * `manager` whom it reports to, `above` anyone further up, `report` whoever reports to it,
954
+ * `below` anyone further down, `null` nowhere in it. An administrator may stand anywhere in
955
+ * the line, below the asker too, and supervises it all the same.
956
+ */
957
+ export const restWriterSchema = z.object({
958
+ workspace: z.string(),
959
+ account: z.string(),
960
+ told: z.boolean(),
961
+ member: z.nullable(
962
+ z.object({
963
+ login: z.nullable(z.string()),
964
+ kind: z.enum(PERSON_KINDS),
965
+ supervisor: z.boolean(),
966
+ administrator: z.boolean(),
967
+ line: z.nullable(z.enum(["manager", "above", "report", "below"])),
968
+ }),
969
+ ),
970
+ });
971
+ export type RestWriter = z.infer<typeof restWriterSchema>;
972
+
973
+ /** What `POST /api/v1/agents/me/writers` answers: the accounts asked of, in the order asked. */
974
+ export const restWritersSchema = z.object({ items: z.array(restWriterSchema) });
975
+ export type RestWriters = z.infer<typeof restWritersSchema>;
976
+
892
977
  /** `GET /api/v1/agents/<handle>/wakes`: the wakes the account keeps for later, the soonest first. */
893
978
  export const restOwnWakesSchema = z.object({ items: z.array(restOwnWakeSchema) });
894
979
  export type RestOwnWakes = z.infer<typeof restOwnWakesSchema>;
895
980
 
981
+ /**
982
+ * What `POST /api/v1/agents/me/reset` is sent (ADR-0154): an agent account begins a new
983
+ * conversation for itself, when the turn it asks in is over. Its words say why, which its
984
+ * record keeps, and are what the new conversation reads first: they are needed.
985
+ */
986
+ export const restOwnResetInputSchema = z.object({
987
+ text: paragraphs(MAX_SIGNAL_LENGTH).check(
988
+ z.refine((value) => value.trim().length > 0, "an account that begins anew says why"),
989
+ ),
990
+ });
991
+ export type RestOwnResetInput = z.infer<typeof restOwnResetInputSchema>;
992
+
896
993
  /** What the heartbeat is answered: where the account's record of signals stands, what its supervisors chose, and how the console has the agent. */
897
994
  export const restRunnerHeartbeatSchema = z.object({
898
995
  latest: z.int().check(z.gte(0)),
@@ -909,6 +1006,11 @@ export const restAgentStateSchema = z.object({
909
1006
  reason: z.nullable(z.string()),
910
1007
  since: instant,
911
1008
  heardAt: z.nullable(instant),
1009
+ /**
1010
+ * Until when it stands so, where its runner said (ADR-0150): when a usage limit resets.
1011
+ * Left out by a console of before, and `null` where nothing says.
1012
+ */
1013
+ until: z.optional(z.nullable(instant)),
912
1014
  });
913
1015
  export type RestAgentState = z.infer<typeof restAgentStateSchema>;
914
1016
 
@@ -1416,6 +1518,16 @@ export const restAgentPatchSchema = z
1416
1518
  );
1417
1519
  export type RestAgentPatch = z.infer<typeof restAgentPatchSchema>;
1418
1520
 
1521
+ /** A window of an agent account's allowance as it is answered (ADR-0156); the name is read as it came. */
1522
+ export const restAgentUsageWindowSchema = z.object({
1523
+ name: z.string(),
1524
+ used: z.nullable(z.number()),
1525
+ resetsAt: z.nullable(instant),
1526
+ near: z.optional(z.boolean()),
1527
+ at: instant,
1528
+ });
1529
+ export type RestAgentUsageWindow = z.infer<typeof restAgentUsageWindowSchema>;
1530
+
1419
1531
  /**
1420
1532
  * An agent account as its own listing answers it (ADR-0084): the member it is, and whom it
1421
1533
  * reports to.
@@ -1434,6 +1546,14 @@ export const restAgentSchema = z.object({
1434
1546
  state: z.optional(z.nullable(restAgentStateSchema)),
1435
1547
  /** What its runner last said of itself and what was chosen for it: answered to its supervisors and to the account, `null` to anyone else and while there is none. */
1436
1548
  runner: z.optional(z.nullable(restAgentRunnerSchema)),
1549
+ /**
1550
+ * What its product last said of what its subscription allows (ADR-0156), a window each: its
1551
+ * name as the driver calls it, the share used from 0 to 1 and when it resets, `null` each
1552
+ * where the product does not say, whether the product calls it near its limit, and when it
1553
+ * said so. Answered to whoever sees how the account stands, from 0.6.1, and left out where
1554
+ * its runner has said none. A window whose reset has passed is of a window that is over.
1555
+ */
1556
+ usage: z.optional(z.array(restAgentUsageWindowSchema)),
1437
1557
  /**
1438
1558
  * The accounts it holds elsewhere (ADR-0089), what it is called at each by the service's short
1439
1559
  * name, and no secret: answered where one account is read, so that taking it out knows what
@@ -1719,6 +1839,8 @@ export const restTaskSchema = z.object({
1719
1839
  /** What happened: when the task was first moved past ready, and when it was moved to done; each or `null`. The board keeps both. */
1720
1840
  startedAt: z.nullable(instant),
1721
1841
  doneAt: z.nullable(instant),
1842
+ /** When the last of its runs to end ended, or `null` where none has (ADR-0159). Left out by an older console. */
1843
+ lastRunEndedAt: z.optional(z.nullable(instant)),
1722
1844
  /** When the task was put away (ADR-0029): out of the listings, the board and the calendar, open by its number; `null` while current. */
1723
1845
  archivedAt: z.nullable(instant),
1724
1846
  links: z.array(restTaskLinkSchema),
@@ -2201,6 +2323,15 @@ export const restEventDataSchema = z.object({
2201
2323
  team: z.optional(z.string()),
2202
2324
  /** For `person.email_changed`: whether the person has an address now; never the address itself. */
2203
2325
  set: z.optional(z.boolean()),
2326
+ /**
2327
+ * For a `person.updated` whose `fields` are `account` (ADR-0164), which says that a plugin
2328
+ * said an account at a messenger is the member's (`set`) or is theirs no longer: the messenger
2329
+ * by its name, the workspace there and the account, by the ids the messenger gives them; the
2330
+ * member is `login`, and the plugin that said it the event's own `plugin`.
2331
+ */
2332
+ messenger: z.optional(z.string()),
2333
+ workspace: z.optional(z.string()),
2334
+ account: z.optional(z.string()),
2204
2335
  /** For `person.updated` of an agent account and for `agent.state_changed`: the account's handle. */
2205
2336
  handle: z.optional(z.string()),
2206
2337
  /**
@@ -2211,6 +2342,8 @@ export const restEventDataSchema = z.object({
2211
2342
  state: z.optional(z.enum(AGENT_STATES)),
2212
2343
  was: z.optional(z.nullable(z.enum(AGENT_STATES))),
2213
2344
  detail: z.optional(z.string()),
2345
+ /** For `agent.state_changed`: until when the account stands so, where its runner said, as when a usage limit resets (ADR-0150). */
2346
+ until: z.optional(instant),
2214
2347
  /** For the events about a project: its key and its name. */
2215
2348
  key: z.optional(z.string()),
2216
2349
  name: z.optional(z.string()),
@@ -2272,6 +2405,122 @@ export const restEventSchema = z.object({
2272
2405
  });
2273
2406
  export type RestEvent = z.infer<typeof restEventSchema>;
2274
2407
 
2408
+ /**
2409
+ * A notification (ADR-0157): one thing that happened on the board that the member asking is
2410
+ * told of, with why and whether they read it. What happened is the feed's own event, said as
2411
+ * the feed says it; the project is named for the page to link the thing.
2412
+ */
2413
+ export const restNotificationSchema = z.object({
2414
+ id: uuid,
2415
+ /** Why they are told, one of `NOTIFICATION_KINDS`; read as a word, so that a kind a newer console adds is read too. */
2416
+ kind: z.string(),
2417
+ /** Whether they are told because they turned the task's notifications on themselves, whatever their settings say. */
2418
+ followed: z.boolean(),
2419
+ /**
2420
+ * When they read it; `null` while they have not. Whoever opens their list reads all of it at
2421
+ * one moment, the `at` marking as read answers: a notification read at that moment was new
2422
+ * to them until then, and one read before it was not.
2423
+ */
2424
+ readAt: z.nullable(instant),
2425
+ createdAt: instant,
2426
+ event: restEventSchema,
2427
+ /** The project it happened in; `null` for what happened to the workspace itself, an agent account's standing say. */
2428
+ project: z.nullable(projectRef),
2429
+ });
2430
+ export type RestNotification = z.infer<typeof restNotificationSchema>;
2431
+
2432
+ /** `GET /api/v1/notifications`: a page of the asker's notifications, the newest first, whether there is more, and how many they have not read. */
2433
+ export const restNotificationsSchema = z.object({
2434
+ items: z.array(restNotificationSchema),
2435
+ more: z.boolean(),
2436
+ unread: count,
2437
+ });
2438
+ export type RestNotifications = z.infer<typeof restNotificationsSchema>;
2439
+
2440
+ /** What `POST /api/v1/notifications/read` is sent: the notifications read, by their ids, or `all` for every one. */
2441
+ export const restNotificationsReadInputSchema = z
2442
+ .object({
2443
+ ids: z.optional(z.array(uuid).check(z.minLength(1), z.maxLength(MAX_NOTIFICATIONS_READ))),
2444
+ all: z.optional(z.literal(true)),
2445
+ })
2446
+ .check(
2447
+ z.refine(
2448
+ (input) => (input.ids === undefined) !== (input.all === undefined),
2449
+ "must name the notifications read, or all of them",
2450
+ ),
2451
+ );
2452
+ export type RestNotificationsReadInput = z.infer<typeof restNotificationsReadInputSchema>;
2453
+
2454
+ /**
2455
+ * What marking as read answers: how many were marked, how many are still not read, and the
2456
+ * moment those marked were read at, which is their `readAt` from now on.
2457
+ */
2458
+ export const restNotificationsReadSchema = z.object({ read: count, unread: count, at: instant });
2459
+ export type RestNotificationsRead = z.infer<typeof restNotificationsReadSchema>;
2460
+
2461
+ /**
2462
+ * What a member is told of (ADR-0157): each kind on or off, by its name, with what it would
2463
+ * be had they chosen nothing; the projects they are told nothing of; and whether they are told
2464
+ * of what an agent of their own did as them. A map by name, so that a kind a newer console
2465
+ * adds is read. It is of everything a member is told: what a plugin that carries notifications
2466
+ * elsewhere sends of it is that plugin's own setting, and none of the console's.
2467
+ */
2468
+ export const restNotificationSettingsSchema = z.object({
2469
+ kinds: z.record(z.string(), z.boolean()),
2470
+ defaults: z.record(z.string(), z.boolean()),
2471
+ projectsOff: z.array(z.object({ key: projectKey, name: z.string() })),
2472
+ ownAgents: z.boolean(),
2473
+ });
2474
+ export type RestNotificationSettings = z.infer<typeof restNotificationSettingsSchema>;
2475
+
2476
+ /**
2477
+ * What `PUT /api/v1/notifications/settings` is sent: the kinds turned on or off, by name, the
2478
+ * others staying as they are; the projects told nothing of, by their keys, the whole list;
2479
+ * whether one's own agents count; or `reset`, alone, for what a member who chose nothing has.
2480
+ */
2481
+ export const restNotificationSettingsInputSchema = z
2482
+ .object({
2483
+ kinds: z.optional(z.record(line(MAX_NOTIFICATION_KIND_LENGTH), z.boolean())),
2484
+ projectsOff: z.optional(z.array(projectKey).check(z.maxLength(MAX_NOTIFICATION_PROJECTS_OFF))),
2485
+ ownAgents: z.optional(z.boolean()),
2486
+ reset: z.optional(z.literal(true)),
2487
+ })
2488
+ .check(
2489
+ z.refine(
2490
+ (input) =>
2491
+ input.reset === true
2492
+ ? input.kinds === undefined &&
2493
+ input.projectsOff === undefined &&
2494
+ input.ownAgents === undefined
2495
+ : input.kinds !== undefined ||
2496
+ input.projectsOff !== undefined ||
2497
+ input.ownAgents !== undefined,
2498
+ "must name something to change, or reset alone",
2499
+ ),
2500
+ );
2501
+ export type RestNotificationSettingsInput = z.infer<typeof restNotificationSettingsInputSchema>;
2502
+
2503
+ /**
2504
+ * Whether one task tells the asker anything (ADR-0157): `on`, as it stands, and `usual`, as
2505
+ * their settings have it where they chose nothing of the task, on for a task that is theirs
2506
+ * and that a kind they have on would tell them of. A task turned on where `usual` is off
2507
+ * tells them of everything on it, which `all` says, and goes on doing so whatever their
2508
+ * settings come to say; one turned off tells them nothing; one left as usual tells them by
2509
+ * their kinds. The answer of `GET` and `PUT .../tasks/<id>/follow`.
2510
+ */
2511
+ export const restTaskFollowSchema = z.object({
2512
+ on: z.boolean(),
2513
+ usual: z.boolean(),
2514
+ all: z.boolean(),
2515
+ });
2516
+ export type RestTaskFollow = z.infer<typeof restTaskFollowSchema>;
2517
+
2518
+ /** What `PUT .../tasks/<id>/follow` is sent: the task's notifications on, or off. */
2519
+ export const restTaskFollowInputSchema = z.object({
2520
+ on: z.boolean(),
2521
+ });
2522
+ export type RestTaskFollowInput = z.infer<typeof restTaskFollowInputSchema>;
2523
+
2275
2524
  /** What an agent reported while at work: Markdown, shown as text or rendered to elements. */
2276
2525
  export const restReportSchema = z.object({
2277
2526
  id: uuid,
package/src/services.ts CHANGED
@@ -270,11 +270,11 @@ const slack: ServiceProvider = {
270
270
  onboarding: ({ service, address }) => [
271
271
  {
272
272
  title: "Join the messenger and set your profile",
273
- body: `Accept the invitation to ${slackPlace(service)} ${address === undefined ? "where one has reached you" : `that came to \`${address}\`, the address you sign in with`}, and set your name, your title and your picture as any member does (console agent <handle> --avatar <file> writes the file).`,
273
+ body: `Accept the invitation to ${slackPlace(service)} ${address === undefined ? "where one has reached you" : `that came to \`${address}\`, the address you sign in with`}, and set your name, your title and your picture as any member does (console agent <handle> --avatar <file> writes the file). Set your working hours there too, to every day from 12:00 AM to midnight, under Availability in your preferences, in the browser: outside them the messenger pauses your notifications and shows you as paused.`,
274
274
  },
275
275
  {
276
- title: "Connect the messenger to your product, and be woken by it",
277
- body: `Add the messenger's own MCP server to your product, and make the app that wakes you from the manifest your skill carries; keep its tokens in your store and add "slack" to "wake" in runner.json. The runner takes the change by itself once your turn is over: console agent <handle> then says the source is connected.`,
276
+ title: "Read at the messenger, send there as yourself, and be woken by it",
277
+ body: `Add the messenger's own MCP server to your product, to read there. Make an app of your own from the manifest your skill carries, which wakes you and is what you send with: keep its app-level token in your store as slack.app_token and your member's own as slack.user_token, and add "slack" to "wake" in runner.json. The runner takes the change by itself once your turn is over: console agent <handle> then says the source is connected. Send with your member's token as the skill says, a message as markdown_text, and never through the MCP server, which puts a line that names your product under what it sends.`,
278
278
  },
279
279
  ],
280
280
  asks: ({ service, names, address }) => [
@@ -36,11 +36,12 @@ export function setupSentenceOf(command: string): string {
36
36
  }
37
37
 
38
38
  /**
39
- * What a product's browser tool needs, for the products whose tool the package knows: said to
40
- * the agent where it is told to sign in at pages, and looked for by the setup on the machine.
39
+ * The browsers an agent's `runner.json` names (ADR-0151), as the agent is told of them where it
40
+ * is told to sign in at pages: what each is, and that which of them it uses is its own to
41
+ * choose. The setup looks for the one asked for on the machine.
41
42
  */
42
- export const BROWSER_TOOL_OF_A_PRODUCT =
43
- 'For Claude Code that tool works in Google Chrome with the Claude in Chrome extension, and is turned on by "browser": "chrome" in runner.json.';
43
+ export const BROWSER_OF_AN_AGENT =
44
+ 'Under the claude driver, "headless", which is yours where the file names none, is a Google Chrome with no window and a profile of its own, driven with the tools of the server chrome-devtools: nothing is installed in it and nothing signed in for it. "window" is the same browser and profile with its window, for when someone is to see it or to act in it: name it, and the runner starts you with it once your turn is over. "chrome" is Claude Code\'s own browser tool in the Google Chrome of your OS account, which takes the Claude in Chrome extension there, signed in with your subscription. Which you use is yours to choose. Under another driver your product is started with no browser yet.';
44
45
 
45
46
  /** Whose part of a setup something is (ADR-0088): whoever prepares the machine, the agent, its manager. */
46
47
  export type SetupRole = "operator" | "agent" | "manager";
@@ -200,7 +201,7 @@ export function setupGuideOf(setup: RestAgentSetup, code: string): SetupGuide {
200
201
  const machine: SetupGuideStep[] = [
201
202
  {
202
203
  title: "What the machine needs",
203
- body: "The command looks at the machine first and names everything that is missing at once: git, the product's command, the browser its browser tool works in. Install each yourself, without asking, and run the line again.",
204
+ body: "The command looks at the machine first and names everything that is missing at once: git, the product's command, the agent's browser and the program that drives it. Install each yourself, without asking, and run the line again.",
204
205
  },
205
206
  {
206
207
  title: "The sign-in",
@@ -220,20 +221,17 @@ export function setupGuideOf(setup: RestAgentSetup, code: string): SetupGuide {
220
221
  one.onboarding.map((item) => ({ title: item.title, body: item.body })),
221
222
  );
222
223
  // How the agent signs in at the services it works with, said once for all of them: a sign-in
223
- // is the agent's own, kept in the machine's own browser, and where it wants a person, a person
224
- // signs in inside the agent's session and nothing is sent in a message.
224
+ // is the agent's own, kept in the browser its runner starts it with, and nothing it signs in
225
+ // with is sent in a message. No sign-in is set aside for a person: a headless browser has no
226
+ // window for one, and the agent asks for help where it cannot go on, as with anything else.
225
227
  const browser: SetupGuideStep[] = [
226
228
  {
227
- title: "Use the machine's own browser, and keep it",
228
- body: `Sign in at a service in the ordinary browser of your OS account, with a browser tool of your product that attaches to that browser. A sign-in stays there from one session to the next, as a person's does. A browser a tool starts anew each time keeps none, and a service takes it for a stranger each time and asks again. ${BROWSER_TOOL_OF_A_PRODUCT}`,
229
- },
230
- {
231
- title: "Where a sign-in wants a person",
232
- body: "A code sent to a phone, a picture to solve, a key to touch: ask for a person to sign in inside your session. They reach your OS account over a remote desktop, or sit at the machine, sign in as you in that same browser, and leave. Ask as a decision on the board, or at the messenger where it is quick, and say which service and which account. Nothing you sign in with is sent in a message, a task or a comment.",
229
+ title: "Use the browser you are started with, and keep it",
230
+ body: `Sign in at a service in the browser your runner.json names as "browser". It keeps a profile, so a sign-in stays there from one session to the next, as a person's does. A browser a tool starts anew each time, with no profile kept, keeps none, and a service takes it for a stranger each time and asks again. ${BROWSER_OF_AN_AGENT}`,
233
231
  },
234
232
  {
235
233
  title: "Keep what you sign in with",
236
- body: "A password you chose or were handed goes into your store, with the day it ends where it has one: `console secret <service>.password --set --expires <day>`. Turn on a second step you can answer yourself where the service has one.",
234
+ body: "Nothing you sign in with is sent in a message, a task or a comment. A password you chose or were handed goes into your store, with the day it ends where it has one: `console secret <service>.password --set --expires <day>`. Turn on a second step you can answer yourself where the service has one.",
237
235
  },
238
236
  ];
239
237
  const asked: SetupGuideStep[] = described.flatMap((one) =>
@@ -47,13 +47,13 @@ A part is a file under `parts/` and a row here, with the classes that are its ow
47
47
 
48
48
  | Part | Classes | Rendered by | Use it for |
49
49
  |---|---|---|---|
50
- | `button` | `sc-button*` | `Button`, `LinkButton`, `CopyButton` | Anything pressed. `-primary` is the one act of a form or a page, `-secondary` the act beside it, `-ghost` an act among content, `-danger` what takes something away; `-sm` in a row or a head. |
50
+ | `button` | `sc-button*` | `Button`, `LinkButton`, `CopyButton` | Anything pressed. `-primary` is the one act of a form or a page, `-secondary` the act beside it, `-ghost` an act among content, `-danger` what takes something away; `-sm` in a row or a head; `-glyph` a button that is a glyph alone, pressed to turn something on or off, a task's bell. |
51
51
  | `input` | `sc-input*`, `sc-textarea*` | | What is typed into or chosen from: a line, a select, a text area. `sc-input-quiet` is a fact changed in place, which reads as its value until the pointer or the focus is on it; `sc-input-group` puts a fixed word before a field. |
52
52
  | `form` | `sc-form*`, `sc-field*`, `sc-check*`, `sc-member-form` | | A form: a field under its label with a hint (`sc-field`, `-label`, `-hint`), fields side by side (`sc-field-row`), parts under headings (`sc-form-part`), its buttons (`sc-form-actions`), what went wrong (`sc-form-error`), a tick with its words (`sc-check`), a small form on one line (`sc-member-form`). |
53
53
  | `files` | `sc-file*`, `sc-chosen*` | | Files to choose, and the ones chosen with the way to take each out. |
54
54
  | `toggle` | `sc-toggle*` | | One choice among a few, each a chip, the chosen one filled. |
55
55
  | `picker` | `sc-picker*`, `sc-person-option*` | `Picker` | One thing chosen out of a listing that is searched: a person, a project, a goal, a task. `sc-picker-quiet` where it is a fact changed in place, `sc-picker-add` at the end of a row of chips. |
56
- | `menu` | `sc-menu*` | | What opens from a button over the page: the person's menu, a card's. `sc-menu-popover` is a panel opened in the top layer, over whatever around its button would clip or cover it, as a front page tile's sizes are. |
56
+ | `menu` | `sc-menu*` | `NotificationsMenu` | What opens from a button over the page: the person's menu, a card's. `sc-menu-popover` is a panel opened in the top layer, over whatever around its button would clip or cover it, as a front page tile's sizes are. `sc-menu-summary-glyph` is a menu opened from a glyph alone, the bell; `sc-menu-panel-list` a menu that is a list of what happened, the notifications: a head that stays (`sc-menu-head`, `-title`, `-head-link`), rows that each lead somewhere (`sc-menu-rows` of `sc-menu-row`: a picture, two lines of what happened at most, a line of why and where that gives way to when; `sc-menu-row-new` for one that is new), what stands in their place (`sc-menu-note`) and a foot for more (`sc-menu-foot`). |
57
57
  | `tabs` | `sc-tab*`, `sc-tabs*`, `sc-subtabs*` | | The pages of a project (`sc-tabs`), and the views of one page (`sc-subtabs` of `sc-tab`s), the current one marked. |
58
58
  | `pager` | `sc-pager*`, `sc-show*` | `Pager`, `ShowMore` | A long list a page at a time: turned by pages, or grown by "show more". |
59
59
  | `badge` | `sc-badge*`, `sc-kind*` | `Badge`, `DueBadge`, `GoalStateBadge`, `RoleBadge`, `RunStatusBadge` | A state or a kind in a word. The tone is the meaning: neutral, accent, success, warning, point, danger. Nothing stands before its words but the dot of one that is `live`. |
@@ -63,14 +63,16 @@ A part is a file under `parts/` and a row here, with the classes that are its ow
63
63
  | `person` | `sc-person*`, `sc-people*` | `PersonChip` | A person: by name in a line (`sc-person`), as a row of a list (`sc-person-row`), as a card with their facts (`sc-person-card`, `sc-person-facts`), cards in a grid (`sc-people`). |
64
64
  | `workers` | `sc-workers*`, `sc-worker*` | `Workers` | The people at work on one thing, as pictures side by side with a count of the rest. |
65
65
  | `mark` | `sc-mark*` | `ProjectMark` | A project's mark: its image, or its symbol or an icon of the pack on its colour; `sm`, `md`, `lg`. |
66
- | `icon` | `sc-icon*` | `Icon`, `IconPicker` | A glyph of the icon pack by its name ([ADR-0142](../../../../docs/adr/0142-the-console-has-one-icon-pack-drawn-on-one-grid-and-used-by-name.md)), in the colour of the text it stands in: `xs` a caret beside a word, `sm` in a line of text, `md` by itself, `lg` in an empty state or on a card. `sc-icon-picker` is the way to choose one: the field that shows the choice, and the pack under it, searched by words, in its groups (`sc-icon-grid` of `sc-icon-tile`s). An icon stands beside words or is given a label; it never replaces the words of a button a person has to understand. |
66
+ | `icon` | `sc-icon*` | `Icon`, `IconPicker` | A glyph of the icon pack by its name ([ADR-0142](../../../../docs/adr/0142-the-console-has-one-icon-pack-drawn-on-one-grid-and-used-by-name.md)), in the colour of the text it stands in, one part of it tinted in the accent (`sc-icon-tint`, [ADR-0149](../../../../docs/adr/0149-the-icon-pack-tints-one-part-of-a-glyph-in-the-accent.md)), deeper where chosen and grey where it cannot be used: `xs` a caret beside a word, its lines alone; `sm` in a line of text, `sc-icon-plain` where it stands among words and takes no tint; `md` by itself; `lg` in an empty state or on a card. On a filled button, on a project's mark and in a place of a tone of its own (a danger button, a callout or a badge of a tone) a glyph is its lines alone. `sc-icon-picker` is the way to choose one: the field that shows the choice, and the pack under it, searched by words, in its groups (`sc-icon-grid` of `sc-icon-tile`s). An icon stands beside words or is given a label; it never replaces the words of a button a person has to understand. |
67
67
  | `eyebrow` | `sc-eyebrow*` | | The small capitals over a group. The one label of that kind. |
68
- | `progress` | `sc-progress*` | `ProgressBar` | How much of something is done and at work, as a bar with its count. |
69
- | `count` | `sc-column-count`, `sc-nav-count` | | A number beside a title or a tab. |
70
- | `text` | `sc-muted`, `sc-lead`, `sc-time`, `sc-loading`, `sc-project-key`, `sc-card-number`, `sc-feed-agent`, `sc-visually-hidden` | `Time`, `Day` | The tones of a line of text: quiet (`sc-muted`), the sentence under a title (`sc-lead`), a moment, a key or a number in the mono face, the agent a person acted through, and what only a screen reader is told. |
68
+ | `progress` | `sc-progress*` | `ProgressBar`, `Meter` | How much of something is done and at work, as a bar with its count (`ProgressBar`); and how much is used of something that runs out, a meter: its name with a quiet note, the share as a figure and a round bar of it, the accent while there is room, `sc-progress-near` near the end and `sc-progress-full` at it (`Meter`). |
69
+ | `count` | `sc-column-count`, `sc-nav-count`, `sc-nav-dot` | | A number beside a title or a tab; and a dot where something is new and how many says nothing more, at the corner of the bell and at the end of a notification's row. |
70
+ | `text` | `sc-muted`, `sc-lead`, `sc-note`, `sc-small`, `sc-fine`, `sc-fine-faint`, `sc-name`, `sc-subtitle`, `sc-time`, `sc-loading`, `sc-project-key`, `sc-card-number`, `sc-feed-agent`, `sc-visually-hidden` | `Time`, `Day` | The tones of a line of text: quiet (`sc-muted`), the sentence under a title (`sc-lead`), a line that says more about what it stands by (`sc-note`) and the same a size down, a line smaller than the page's in its own colour (`sc-small`), the fine print of a row (`sc-fine`) and fainter still (`sc-fine-faint`: a key beside a name, how many more a list holds), the name of the thing a row is about (`sc-name`), the title of a group inside a pane (`sc-subtitle`, a settings group's title among them), a moment, a key or a number in the mono face, the agent a person acted through, and what only a screen reader is told. |
71
71
  | `prose` | `sc-prose*` | `Markdown` | What people and agents wrote, rendered: headings, lists, tables, code, pictures. What an agent said in a session is read by it too, with a picture named there left a link and never fetched (`picturesAsLinks`). |
72
72
  | `code` | `sc-code*`, `sc-copyable*` | `CopyButton` | A code or a command shown to be read or copied. |
73
- | `panel` | `sc-panel*` | | A pane of the page: every section of a page is one. `-form` keeps a pane to the width a form is read at; `-form-lead` is a form that stands over a list, as wide as the list under it, with what it holds kept to a form's width. |
73
+ | `panel` | `sc-panel*` | | A pane of the page: every section of a page is one. `-small` is one of many in a list, a run, a comment, a bar of ways: a step closer in and a step less round, and on a phone any pane. `-form` keeps a pane to the width a form is read at; `-form-lead` is a form that stands over a list, as wide as the list under it, with what it holds kept to a form's width. |
74
+ | `sheet` | `sc-sheet*` | | A white card laid on a pane, paper where a pane is glass: a row of a list, a thing to choose, a note. A fine edge and a small corner; `-large` a larger corner, for a card that stands by itself; `-raised` a shadow under it; `-hover` firms its edge under the pointer, where it leads somewhere. Its padding is the page's. |
75
+ | `divider` | `sc-divider*`, `sc-divided` | | The hairline between things: `sc-divider` over its element, `sc-divider-below` under it, `sc-divided` between each child of a list and the one before. |
74
76
  | `page` | `sc-page*`, `sc-section*` | | A page's head (`sc-page-head` with its title, its lead and its actions) and a section's (`sc-section-head`, `sc-section-title`). |
75
77
  | `facts` | `sc-facts*` | | Facts as names and values: in a pane's column (`sc-facts`), bare (`sc-facts-plain`), on one line (`sc-facts-row`). |
76
78
  | `callout` | `sc-callout*` | `Callout` | A note that must be read: plain, a warning, a danger. |
@@ -110,3 +112,5 @@ The charts (`series` to `figures`, [ADR-0123](../../../../docs/adr/0123-charts-a
110
112
  ## What the pages still draw
111
113
 
112
114
  `drawn-by-pages.json` lists, by page, the classes that still carry a look of their own: the calendar's bars before they were a part, a conversation's bubbles, a tile. They are what was there when the rule was made. A design pass over a page is the time to fold its entries into the parts: use the part that is there, or make the look a part, and take the entry off. The check refuses an entry that draws nothing any more, and refuses a class that draws and is not listed.
115
+
116
+ Most of what a look shared by pages was has been folded: a pane, a sheet, a divider, a line of text. A few classes still draw what a part draws, a small muted line as `sc-note` has it, a raised sheet, a pane, and are folded when their page is next designed. What is left beyond those is drawn on one page and nowhere else: the roadmap's timeline, the front page's tiles and how they are moved, an agent's conversation, the stage of the sign-in, the board's cards and columns, and the small looks under parts that a page repaints in one place. Those stay where they are, by the designer's choice: a part used once is a part only in name. One of them becomes a part the day a second page wants it.
@@ -38,6 +38,8 @@
38
38
  @import "./parts/facts.css";
39
39
  @import "./parts/calendar.css";
40
40
  @import "./parts/panel.css";
41
+ @import "./parts/sheet.css";
42
+ @import "./parts/divider.css";
41
43
  @import "./parts/person.css";
42
44
  @import "./parts/button.css";
43
45
  @import "./parts/badge.css";