@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
@@ -0,0 +1,214 @@
1
+ import { en, type Messages } from "./i18n/en.js";
2
+ import type { RestEvent } from "./schemas.js";
3
+
4
+ // What an event of the feed says, as a sentence a person reads at a glance, in a language's
5
+ // words (ADR-0012). Apart from the component that shows the feed, which is a page's, so that
6
+ // the command says an event in the same sentence and loads nothing of a page for it.
7
+
8
+ /** What an event says, without its actor: the words after the name, in the words given; a board's event a plugin caused says so (ADR-0052). */
9
+ export function describeEvent(event: RestEvent, words: Messages = en): string {
10
+ const sentence = sentenceOf(event, words);
11
+ return event.plugin !== null && !event.kind.startsWith("plugin.")
12
+ ? `${sentence} ${words.feed.throughPlugin(event.plugin)}`
13
+ : sentence;
14
+ }
15
+
16
+ function sentenceOf(event: RestEvent, words: Messages): string {
17
+ const { data } = event;
18
+ const { feed, vocabulary } = words;
19
+ const task =
20
+ data.number === undefined
21
+ ? feed.aTask
22
+ : `#${data.number}${data.title === undefined ? "" : ` ${data.title}`}`;
23
+ const project = data.name ?? data.key ?? feed.aProject;
24
+ const changed = (data.fields ?? []).map((field) => feed.field[field] ?? field);
25
+ // A keyed secret's value is named with the key it is kept under (ADR-0111).
26
+ const fields =
27
+ changed.length === 0
28
+ ? feed.something
29
+ : `${changed.join(", ")}${data.under === undefined ? "" : ` (${data.under})`}`;
30
+ const page = feed.thePage(data.title ?? data.path ?? "");
31
+ const role = (value: string | undefined): string =>
32
+ value === "admin"
33
+ ? feed.role.admin
34
+ : value === "owner"
35
+ ? feed.role.owner
36
+ : value === "member"
37
+ ? feed.role.member
38
+ : feed.role.other;
39
+ const login = data.login ?? feed.someone;
40
+ const question = data.question ?? feed.aQuestion;
41
+ const goal = data.title ?? feed.aGoal;
42
+ const category = data.name ?? data.key ?? feed.aCategory;
43
+ const plugin = event.plugin ?? feed.aPlugin;
44
+ const grantee =
45
+ data.everyone === true
46
+ ? feed.everyone
47
+ : data.grantee !== undefined
48
+ ? feed.thePlugin(data.grantee)
49
+ : data.team !== undefined
50
+ ? feed.theTeam(data.team)
51
+ : data.login !== undefined
52
+ ? data.login
53
+ : data.key !== undefined
54
+ ? feed.membersOf(data.name ?? data.key)
55
+ : feed.someone;
56
+ switch (event.kind) {
57
+ case "person.joined":
58
+ return feed.event.personJoined();
59
+ case "person.role_changed":
60
+ return feed.event.roleChanged(login, role(data.role));
61
+ case "person.listed":
62
+ return feed.event.personListed(login);
63
+ case "person.unlisted":
64
+ return feed.event.personUnlisted(login);
65
+ case "person.deactivated":
66
+ return feed.event.personDeactivated(login);
67
+ case "person.reactivated":
68
+ return feed.event.personReactivated(login);
69
+ case "person.manager_changed":
70
+ return data.manager === null || data.manager === undefined
71
+ ? feed.event.managerCleared(login)
72
+ : feed.event.managerChanged(login, data.manager);
73
+ case "person.email_changed":
74
+ return data.set === true ? feed.event.emailChanged(login) : feed.event.emailCleared(login);
75
+ case "person.updated": {
76
+ // An account at a messenger said to be the member's, or theirs no longer (ADR-0164).
77
+ if (data.account !== undefined && data.messenger !== undefined) {
78
+ return data.set === true
79
+ ? feed.event.accountLinked(login, data.messenger, data.account)
80
+ : feed.event.accountUnlinked(login, data.messenger, data.account);
81
+ }
82
+ const of = (data.fields ?? []).map(
83
+ (field) => feed.personField[field] ?? feed.field[field] ?? field,
84
+ );
85
+ return feed.event.personUpdated(of.length === 0 ? feed.something : of.join(", "), login);
86
+ }
87
+ case "agent.state_changed": {
88
+ // The account says how it stands itself, through its runner; the console says it of an
89
+ // account it has not heard from, and names it.
90
+ const own = event.actor !== null && event.actor.login === data.login;
91
+ const agent = own ? undefined : data.handle === undefined ? login : `@${data.handle}`;
92
+ const said =
93
+ data.state === "stopped"
94
+ ? feed.event.agentStopped(agent)
95
+ : data.state === "refused"
96
+ ? feed.event.agentRefused(agent)
97
+ : data.state === "failed"
98
+ ? feed.event.agentFailed(agent)
99
+ : data.state === "unheard"
100
+ ? feed.event.agentUnheard(agent)
101
+ : feed.event.agentRunning(agent);
102
+ return data.detail === undefined ? said : `${said}: ${data.detail}`;
103
+ }
104
+ case "team.created":
105
+ return feed.event.teamCreated(data.team ?? feed.aTeam);
106
+ case "team.renamed":
107
+ return feed.event.teamRenamed(data.name ?? feed.aTeam, data.team ?? feed.aTeam);
108
+ case "team.removed":
109
+ return feed.event.teamRemoved(data.team ?? feed.aTeam);
110
+ case "team.member_added":
111
+ return feed.event.teamMemberAdded(login, data.team ?? feed.aTeam);
112
+ case "team.member_removed":
113
+ return feed.event.teamMemberRemoved(login, data.team ?? feed.aTeam);
114
+ case "workspace.updated":
115
+ return feed.event.workspaceUpdated(fields);
116
+ case "project.created":
117
+ return feed.event.projectCreated(project);
118
+ case "project.updated":
119
+ return feed.event.projectUpdated(fields, project);
120
+ case "project.member_added":
121
+ return feed.event.memberAdded(login, project, role(data.role));
122
+ case "project.member_changed":
123
+ return feed.event.memberChanged(login, role(data.role), project);
124
+ case "project.member_removed":
125
+ return feed.event.memberRemoved(login, project);
126
+ case "category.created":
127
+ return feed.event.categoryCreated(category);
128
+ case "category.updated":
129
+ return feed.event.categoryUpdated(fields, category);
130
+ case "category.removed":
131
+ return feed.event.categoryRemoved(category);
132
+ case "goal.created":
133
+ return feed.event.goalCreated(goal);
134
+ case "goal.updated":
135
+ return feed.event.goalUpdated(fields, goal);
136
+ case "task.created":
137
+ return feed.event.taskCreated(task);
138
+ case "task.moved":
139
+ return feed.event.taskMoved(
140
+ task,
141
+ vocabulary.state[data.from ?? "idea"],
142
+ vocabulary.state[data.to ?? "idea"],
143
+ );
144
+ case "task.updated":
145
+ return feed.event.taskUpdated(fields, task);
146
+ case "task.commented":
147
+ return feed.event.taskCommented(task, data.excerpt);
148
+ case "task.archived":
149
+ return feed.event.taskArchived(task);
150
+ case "task.restored":
151
+ return feed.event.taskRestored(task);
152
+ case "decision.raised":
153
+ return feed.event.decisionRaised(question);
154
+ case "decision.answered":
155
+ return feed.event.decisionAnswered(question, data.option ?? "");
156
+ case "decision.addressed":
157
+ return feed.event.decisionAddressed(question, (data.deciders ?? []).join(", "));
158
+ case "decision.updated":
159
+ return feed.event.decisionUpdated(fields, data.question ?? "");
160
+ case "run.started":
161
+ return feed.event.runStarted(task);
162
+ case "run.reported":
163
+ return feed.event.runReported(task, data.excerpt);
164
+ case "run.handed_in":
165
+ return feed.event.runHandedIn(data.label ?? feed.something, task);
166
+ case "run.taken_over":
167
+ return feed.event.runTakenOver(task, data.agent ?? feed.someone);
168
+ case "run.ended":
169
+ return data.status === "finished"
170
+ ? feed.event.runFinished(task)
171
+ : data.status === "failed"
172
+ ? feed.event.runFailed(task)
173
+ : data.reason === "unheard"
174
+ ? feed.event.runUnheard(task, data.agent ?? feed.someone)
175
+ : feed.event.runAbandoned(task);
176
+ case "document.written":
177
+ return feed.event.documentWritten(page, data.version);
178
+ case "document.archived":
179
+ return feed.event.documentArchived(page);
180
+ case "document.restored":
181
+ return feed.event.documentRestored(page);
182
+ case "document.file_attached":
183
+ return feed.event.fileAttached(data.label ?? feed.aFile, page);
184
+ case "plugin.enabled":
185
+ return feed.event.pluginEnabled(plugin);
186
+ case "plugin.disabled":
187
+ return feed.event.pluginDisabled(plugin);
188
+ case "plugin.configured":
189
+ return data.capabilities !== undefined
190
+ ? feed.event.pluginConsented(plugin)
191
+ : data.source !== undefined && data.source !== "administrator"
192
+ ? feed.event.pluginSealed(fields, plugin, data.source)
193
+ : feed.event.pluginConfigured(fields, plugin);
194
+ case "plugin.granted":
195
+ return feed.event.pluginGranted(data.role ?? feed.role.other, grantee, plugin);
196
+ case "plugin.revoked":
197
+ return feed.event.pluginRevoked(data.role ?? feed.role.other, grantee, plugin);
198
+ case "plugin.upgraded":
199
+ return feed.event.pluginUpgraded(
200
+ plugin,
201
+ data.version === undefined ? feed.something : String(data.version),
202
+ );
203
+ case "plugin.command":
204
+ return feed.event.pluginCommand(
205
+ data.command ?? feed.something,
206
+ plugin,
207
+ feed.outcome[data.outcome ?? ""] ?? data.outcome ?? feed.something,
208
+ );
209
+ case "plugin.purged":
210
+ return feed.event.pluginPurged(plugin);
211
+ case "plugin.failed":
212
+ return feed.event.pluginFailed(plugin, data.problem ?? feed.something);
213
+ }
214
+ }
package/src/i18n/en.ts CHANGED
@@ -247,6 +247,8 @@ export const en = {
247
247
  "transcript.too_many_sessions": "The account began as many sessions within the hour as it may.",
248
248
  "signal.too_many": "The account's runner raised as many wakes within the hour as it may.",
249
249
  "wake.too_many": "The account keeps as many wakes for later as it may.",
250
+ "agent.stopped":
251
+ "A supervisor stopped the agent: it begins no conversation for itself until a supervisor starts it again.",
250
252
  "wake.not_found": "The account keeps no wake of that name.",
251
253
  "transcript.unknown_file": "An event names a picture that was not handed in to its session.",
252
254
  "agent.not_found": "The agent account was not found.",
@@ -469,6 +471,11 @@ export const en = {
469
471
  opens:
470
472
  "Reads the work email of the people it may read, to match them to accounts elsewhere.",
471
473
  },
474
+ "people:accounts": {
475
+ name: "Accounts at a messenger",
476
+ opens:
477
+ "Says which account at a messenger is which member's. An agent account is told by it that a supervisor of its own wrote there, whose word it takes as an instruction.",
478
+ },
472
479
  "people:act": {
473
480
  name: "Acting for a person",
474
481
  opens:
@@ -507,6 +514,11 @@ export const en = {
507
514
  name: "Other plugins' events",
508
515
  opens: "Runs hooks on the events other plugins emit.",
509
516
  },
517
+ "notifications:read": {
518
+ name: "Notifications",
519
+ opens:
520
+ "Reads whom the console tells of what happens in its board projects, to carry it to them elsewhere, and what whoever uses it chose to be told of.",
521
+ },
510
522
  jobs: { name: "Schedule", opens: "Runs at the times it names." },
511
523
  endpoints: {
512
524
  name: "Inbound requests",
@@ -835,6 +847,63 @@ export const en = {
835
847
  },
836
848
  },
837
849
 
850
+ notifications: {
851
+ title: "Notifications",
852
+ /** The bell's name, and its name while something is new. */
853
+ open: "Notifications",
854
+ openNew: (n: number) => (n === 1 ? "Notifications, 1 new" : `Notifications, ${n} new`),
855
+ list: "Notifications",
856
+ loading: "Loading your notifications",
857
+ couldNotLoad: "The notifications could not be loaded.",
858
+ /** What the dot at the end of a row says. */
859
+ fresh: "New",
860
+ followed: "A task you turned on",
861
+ more: "Show more",
862
+ settingsLink: "Settings",
863
+ empty: {
864
+ title: "No notifications yet",
865
+ body: "What you chose to be told of shows up here.",
866
+ },
867
+ kinds: {
868
+ assigned: "Given to you",
869
+ ready: "Ready to begin",
870
+ commented: "Comment",
871
+ moved: "Moved",
872
+ changed: "Changed",
873
+ archived: "Put away",
874
+ decision: "Waits for your answer",
875
+ answered: "Your question was answered",
876
+ agent: "Your agent account",
877
+ },
878
+ settings: {
879
+ title: "Notifications",
880
+ intro:
881
+ "Choose what you are told of. What is on shows up under the bell at the top of the page.",
882
+ introAgent:
883
+ "Choose what this account is told of. What is on is kept in its list, and wakes the account.",
884
+ groups: { tasks: "Tasks", decisions: "Decisions", agents: "Agent accounts" },
885
+ hints: {
886
+ tasks: "What happens on the tasks you own or work on.",
887
+ decisions: "The decisions addressed to you, and the ones you raised.",
888
+ agents:
889
+ "An agent account that reports to you stopped, failed or is not heard from, or runs again; or it raised a decision for you.",
890
+ },
891
+ projects: "Projects",
892
+ projectsHint:
893
+ "A project that is off tells you nothing of its tasks, but for a task whose bell you turned on.",
894
+ ownAgents: "Your own agents",
895
+ ownAgentsHint:
896
+ "What an agent does as you is your own doing, and tells you nothing unless you say so.",
897
+ ownAgentsOn: "Tell me of what my agents do as me",
898
+ reset: "Back to the defaults",
899
+ },
900
+ task: {
901
+ on: "Notifications of this task are on",
902
+ off: "Notifications of this task are off",
903
+ turnOn: "Turn this task's notifications on",
904
+ turnOff: "Turn this task's notifications off",
905
+ },
906
+ },
838
907
  myDecisions: {
839
908
  title: "My decisions",
840
909
  loading: "Loading your decisions",
@@ -1139,7 +1208,12 @@ export const en = {
1139
1208
 
1140
1209
  settings: {
1141
1210
  title: "Settings",
1142
- views: { aria: "Settings", workspace: "Workspace", sessions: "Sessions" },
1211
+ views: {
1212
+ aria: "Settings",
1213
+ workspace: "Workspace",
1214
+ notifications: "Notifications",
1215
+ sessions: "Sessions",
1216
+ },
1143
1217
  categories: "Categories",
1144
1218
  manageCategories: "Manage the categories",
1145
1219
  skills: "Skills",
@@ -1326,6 +1400,7 @@ export const en = {
1326
1400
  name: "the name",
1327
1401
  avatar: "the avatar",
1328
1402
  kind: "the kind of account",
1403
+ account: "the account at a messenger",
1329
1404
  } as Readonly<Record<string, string>>,
1330
1405
  event: {
1331
1406
  personJoined: () => "joined the board",
@@ -1339,6 +1414,10 @@ export const en = {
1339
1414
  managerCleared: (login: string) => `cleared ${login}'s manager`,
1340
1415
  emailChanged: (login: string) => `changed ${login}'s work email`,
1341
1416
  emailCleared: (login: string) => `cleared ${login}'s work email`,
1417
+ accountLinked: (login: string, messenger: string, account: string) =>
1418
+ `said that the account ${account} at ${messenger} is ${login}'s`,
1419
+ accountUnlinked: (login: string, messenger: string, account: string) =>
1420
+ `said that the account ${account} at ${messenger} is ${login}'s no longer`,
1342
1421
  personUpdated: (fields: string, login: string) => `changed ${fields} of ${login}`,
1343
1422
  /** How an agent account stands now (ADR-0085): said by the account itself, or of `agent` by another. */
1344
1423
  agentRunning: (agent: string | undefined) =>
@@ -1469,11 +1548,12 @@ export const en = {
1469
1548
  directions: "Directions",
1470
1549
  people: "People and organization",
1471
1550
  work: "Work",
1551
+ office: "Dates and office",
1472
1552
  files: "Text and files",
1473
- states: "States",
1553
+ messages: "Messages",
1554
+ states: "States and marks",
1474
1555
  tools: "Settings and tools",
1475
1556
  devices: "Devices",
1476
- plugins: "Plugins",
1477
1557
  },
1478
1558
  // The words a glyph is also found by, beside its name. A glyph without a line here is
1479
1559
  // found by its name alone; one added here is added to every other pack.
@@ -1489,6 +1569,8 @@ export const en = {
1489
1569
  filter: "funnel narrow",
1490
1570
  sort: "order arrange",
1491
1571
  refresh: "reload sync again update",
1572
+ undo: "back revert",
1573
+ redo: "again forward",
1492
1574
  download: "save get",
1493
1575
  upload: "put attach",
1494
1576
  "external-link": "open new window outside",
@@ -1529,6 +1611,8 @@ export const en = {
1529
1611
  link: "chain url address",
1530
1612
  comment: "speech bubble discussion reply talk",
1531
1613
  code: "brackets developer source",
1614
+ "list-numbered": "ordered numbers steps",
1615
+ quote: "citation blockquote",
1532
1616
  mail: "email envelope letter",
1533
1617
  bookmark: "save keep favourite",
1534
1618
  info: "information about note",
@@ -1539,6 +1623,7 @@ export const en = {
1539
1623
  unlock: "open public",
1540
1624
  eye: "show visible watch view",
1541
1625
  "eye-off": "hide hidden invisible",
1626
+ "bell-off": "notification mute silent quiet off",
1542
1627
  bell: "notification alert remind",
1543
1628
  star: "favourite rate important",
1544
1629
  spark: "ai sparkle magic new",
@@ -2001,17 +2086,20 @@ export const en = {
2001
2086
  unheard: "Not heard from",
2002
2087
  /** What stands before and after the moment a state began: "since 14:02". */
2003
2088
  since: { before: "since ", after: "" },
2089
+ /** What stands before and after the moment a state ends by itself, as when a usage limit resets: "until 03:30". */
2090
+ until: { before: "until ", after: "" },
2004
2091
  heard: "runner last heard from",
2005
2092
  reasons: {
2006
2093
  started: "its runner started",
2007
2094
  resumed: "it goes on",
2008
- reset: "it was reset",
2095
+ reset: "it began a new conversation",
2009
2096
  completed: "a turn completed",
2010
2097
  stop: "a supervisor stopped it",
2011
2098
  model_refused: "the model refused",
2012
2099
  sign_in: "its product is not signed in",
2013
2100
  start: "its product did not start",
2014
2101
  crashed: "its product crashed",
2102
+ usage_limit: "its product's usage limit is reached",
2015
2103
  no_heartbeat: "its runner is not heard from",
2016
2104
  },
2017
2105
  },
@@ -2050,7 +2138,7 @@ export const en = {
2050
2138
  interrupt: "Interrupt",
2051
2139
  stop: "Stop",
2052
2140
  restart: "Restart",
2053
- reset: "Reset",
2141
+ reset: "New conversation",
2054
2142
  set: "Model or effort",
2055
2143
  },
2056
2144
  /** What was answered where a tool asked before it ran. */
@@ -2112,10 +2200,10 @@ export const en = {
2112
2200
  },
2113
2201
  /** When what was told and not taken yet is read, by why it waits; and the way to have it read now. */
2114
2202
  waiting: {
2115
- call: "Read after the tool call under way.",
2116
- turn: "Read when the turn under way ends.",
2117
- stopped: "Read once it is started again.",
2118
- unheard: "Read once its runner is heard from.",
2203
+ call: "Delivered after the tool call under way.",
2204
+ turn: "Delivered when the turn under way ends.",
2205
+ stopped: "Delivered once it is started again.",
2206
+ unheard: "Delivered once its runner is heard from.",
2119
2207
  soon: "On its way to the agent.",
2120
2208
  interrupt: "Interrupt",
2121
2209
  interruptHint: "Stops the turn under way so that this is read now.",
@@ -2135,14 +2223,15 @@ export const en = {
2135
2223
  controlWordsPlaceholder: "Why, where you have a word for it",
2136
2224
  send: "Tell",
2137
2225
  stop: "Stop",
2138
- stopHint: "Ends its session. It stays stopped until it is restarted or reset.",
2226
+ stopHint:
2227
+ "Ends its session. It stays stopped until it is restarted or begins a new conversation.",
2139
2228
  restart: "Restart",
2140
2229
  restartHint: "Goes on with the same conversation.",
2141
- reset: "Reset",
2142
- resetHint: "Begins a new conversation.",
2143
- resetConfirm: "Reset, with a new conversation",
2230
+ reset: "New conversation",
2231
+ resetHint: "Ends this conversation and begins a new one.",
2232
+ resetConfirm: "Begin a new conversation",
2144
2233
  resetWarning:
2145
- "A reset begins a new conversation: the agent keeps nothing of this one but what is on the board and in its desk. The words above are given to it first.",
2234
+ "In a new conversation the agent keeps nothing of this one but what is on the board and in its desk. The words above are given to it first.",
2146
2235
  cancel: "Cancel",
2147
2236
  sent: (number: number, kind: string) => `Sent as #${number}: ${kind}.`,
2148
2237
  tooMany: (most: number) => `At most ${most} files with one message.`,
@@ -2173,7 +2262,7 @@ export const en = {
2173
2262
  ends: {
2174
2263
  stopped: "stopped",
2175
2264
  restarted: "restarted",
2176
- reset: "reset",
2265
+ reset: "new conversation",
2177
2266
  crashed: "crashed",
2178
2267
  exited: "exited",
2179
2268
  taken_over: "taken over",
@@ -2261,6 +2350,15 @@ export const en = {
2261
2350
  title: "Agents that need you",
2262
2351
  intro: "Agents that report to you and are not running.",
2263
2352
  },
2353
+ // What an account's product last said of what its subscription allows (ADR-0156). A window
2354
+ // is named as its driver calls it; the two every product has are said in the person's words.
2355
+ usage: {
2356
+ near: "Near its limit",
2357
+ resets: { before: "resets ", after: "" },
2358
+ said: { before: "as of ", after: "" },
2359
+ windows: { "5-hour": "5 hours", weekly: "Week" },
2360
+ windowOf: (window: string, of: string) => `${window} (${of})`,
2361
+ },
2264
2362
  accounts: {
2265
2363
  title: "Agent accounts",
2266
2364
  intro:
@@ -2282,6 +2380,7 @@ export const en = {
2282
2380
  },
2283
2381
  now: "Now",
2284
2382
  runs: "Runs",
2383
+ usage: "Usage",
2285
2384
  invited: "Invited",
2286
2385
  invitedHint: "Nobody has signed in with it yet. Work can be assigned to it already.",
2287
2386
  login: "Signs in as",