@skillcdn/console 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. package/README.md +87 -12
  2. package/SKILLCDN.md +3 -3
  3. package/dist/agent-page.d.ts.map +1 -1
  4. package/dist/agent-page.js +7 -6
  5. package/dist/agent-page.js.map +1 -1
  6. package/dist/api.d.ts +9 -7
  7. package/dist/api.d.ts.map +1 -1
  8. package/dist/api.js +8 -6
  9. package/dist/api.js.map +1 -1
  10. package/dist/charts.d.ts +103 -0
  11. package/dist/charts.d.ts.map +1 -0
  12. package/dist/charts.js +182 -0
  13. package/dist/charts.js.map +1 -0
  14. package/dist/cli/cli.d.ts +58 -2
  15. package/dist/cli/cli.d.ts.map +1 -1
  16. package/dist/cli/cli.js +1742 -472
  17. package/dist/cli/cli.js.map +1 -1
  18. package/dist/cli/command-words.d.ts +20 -0
  19. package/dist/cli/command-words.d.ts.map +1 -0
  20. package/dist/cli/command-words.js +51 -0
  21. package/dist/cli/command-words.js.map +1 -0
  22. package/dist/cli/credentials.d.ts +54 -5
  23. package/dist/cli/credentials.d.ts.map +1 -1
  24. package/dist/cli/credentials.js +126 -20
  25. package/dist/cli/credentials.js.map +1 -1
  26. package/dist/cli/directory.d.ts +19 -4
  27. package/dist/cli/directory.d.ts.map +1 -1
  28. package/dist/cli/directory.js +16 -8
  29. package/dist/cli/directory.js.map +1 -1
  30. package/dist/cli/format.d.ts +70 -9
  31. package/dist/cli/format.d.ts.map +1 -1
  32. package/dist/cli/format.js +267 -40
  33. package/dist/cli/format.js.map +1 -1
  34. package/dist/cli/help.d.ts +13 -4
  35. package/dist/cli/help.d.ts.map +1 -1
  36. package/dist/cli/help.js +101 -58
  37. package/dist/cli/help.js.map +1 -1
  38. package/dist/cli/machine-check.d.ts +36 -0
  39. package/dist/cli/machine-check.d.ts.map +1 -0
  40. package/dist/cli/machine-check.js +151 -0
  41. package/dist/cli/machine-check.js.map +1 -0
  42. package/dist/cli/main.js +76 -2
  43. package/dist/cli/main.js.map +1 -1
  44. package/dist/cli/pack.d.ts +69 -60
  45. package/dist/cli/pack.d.ts.map +1 -1
  46. package/dist/cli/pack.js +241 -270
  47. package/dist/cli/pack.js.map +1 -1
  48. package/dist/cli/plugin-check.d.ts +42 -0
  49. package/dist/cli/plugin-check.d.ts.map +1 -1
  50. package/dist/cli/plugin-check.js +221 -36
  51. package/dist/cli/plugin-check.js.map +1 -1
  52. package/dist/cli/plugin-cli.d.ts +6 -1
  53. package/dist/cli/plugin-cli.d.ts.map +1 -1
  54. package/dist/cli/plugin-cli.js +21 -4
  55. package/dist/cli/plugin-cli.js.map +1 -1
  56. package/dist/cli/plugin-main.js +1 -0
  57. package/dist/cli/plugin-main.js.map +1 -1
  58. package/dist/cli/runner-host.d.ts +7 -0
  59. package/dist/cli/runner-host.d.ts.map +1 -1
  60. package/dist/cli/runner-host.js +2 -0
  61. package/dist/cli/runner-host.js.map +1 -1
  62. package/dist/cli/secret-notes.d.ts +8 -0
  63. package/dist/cli/secret-notes.d.ts.map +1 -0
  64. package/dist/cli/secret-notes.js +48 -0
  65. package/dist/cli/secret-notes.js.map +1 -0
  66. package/dist/cli/serve.d.ts +33 -1
  67. package/dist/cli/serve.d.ts.map +1 -1
  68. package/dist/cli/serve.js +252 -3
  69. package/dist/cli/serve.js.map +1 -1
  70. package/dist/client.d.ts +54 -9
  71. package/dist/client.d.ts.map +1 -1
  72. package/dist/client.js +77 -80
  73. package/dist/client.js.map +1 -1
  74. package/dist/components/agent-page.d.ts +164 -8
  75. package/dist/components/agent-page.d.ts.map +1 -1
  76. package/dist/components/agent-page.js +588 -151
  77. package/dist/components/agent-page.js.map +1 -1
  78. package/dist/components/agents.d.ts.map +1 -1
  79. package/dist/components/agents.js +1 -1
  80. package/dist/components/agents.js.map +1 -1
  81. package/dist/components/board.d.ts.map +1 -1
  82. package/dist/components/board.js +3 -2
  83. package/dist/components/board.js.map +1 -1
  84. package/dist/components/categories.js +1 -1
  85. package/dist/components/categories.js.map +1 -1
  86. package/dist/components/charts.d.ts +157 -0
  87. package/dist/components/charts.d.ts.map +1 -0
  88. package/dist/components/charts.js +182 -0
  89. package/dist/components/charts.js.map +1 -0
  90. package/dist/components/decision-list.d.ts.map +1 -1
  91. package/dist/components/decision-list.js +1 -1
  92. package/dist/components/decision-list.js.map +1 -1
  93. package/dist/components/desk-records.d.ts +102 -0
  94. package/dist/components/desk-records.d.ts.map +1 -0
  95. package/dist/components/desk-records.js +221 -0
  96. package/dist/components/desk-records.js.map +1 -0
  97. package/dist/components/desk.d.ts +85 -0
  98. package/dist/components/desk.d.ts.map +1 -0
  99. package/dist/components/desk.js +135 -0
  100. package/dist/components/desk.js.map +1 -0
  101. package/dist/components/event-feed.d.ts.map +1 -1
  102. package/dist/components/event-feed.js +7 -3
  103. package/dist/components/event-feed.js.map +1 -1
  104. package/dist/components/goals.d.ts +2 -0
  105. package/dist/components/goals.d.ts.map +1 -1
  106. package/dist/components/goals.js +1 -1
  107. package/dist/components/goals.js.map +1 -1
  108. package/dist/components/home.d.ts.map +1 -1
  109. package/dist/components/home.js +14 -6
  110. package/dist/components/home.js.map +1 -1
  111. package/dist/components/icon.d.ts +31 -0
  112. package/dist/components/icon.d.ts.map +1 -0
  113. package/dist/components/icon.js +169 -0
  114. package/dist/components/icon.js.map +1 -0
  115. package/dist/components/markdown.d.ts +6 -0
  116. package/dist/components/markdown.d.ts.map +1 -1
  117. package/dist/components/markdown.js +10 -2
  118. package/dist/components/markdown.js.map +1 -1
  119. package/dist/components/people.js +1 -1
  120. package/dist/components/people.js.map +1 -1
  121. package/dist/components/plugin-frame.d.ts.map +1 -1
  122. package/dist/components/plugin-frame.js +7 -0
  123. package/dist/components/plugin-frame.js.map +1 -1
  124. package/dist/components/plugin-settings.d.ts.map +1 -1
  125. package/dist/components/plugin-settings.js +54 -3
  126. package/dist/components/plugin-settings.js.map +1 -1
  127. package/dist/components/projects.d.ts +17 -4
  128. package/dist/components/projects.d.ts.map +1 -1
  129. package/dist/components/projects.js +51 -12
  130. package/dist/components/projects.js.map +1 -1
  131. package/dist/components/rules.d.ts +8 -10
  132. package/dist/components/rules.d.ts.map +1 -1
  133. package/dist/components/rules.js +35 -13
  134. package/dist/components/rules.js.map +1 -1
  135. package/dist/components/sessions.d.ts.map +1 -1
  136. package/dist/components/sessions.js +3 -2
  137. package/dist/components/sessions.js.map +1 -1
  138. package/dist/components/setup.d.ts +9 -3
  139. package/dist/components/setup.d.ts.map +1 -1
  140. package/dist/components/setup.js +12 -6
  141. package/dist/components/setup.js.map +1 -1
  142. package/dist/components/shell.d.ts.map +1 -1
  143. package/dist/components/shell.js +3 -2
  144. package/dist/components/shell.js.map +1 -1
  145. package/dist/components/tokens.js +1 -1
  146. package/dist/components/tokens.js.map +1 -1
  147. package/dist/components/ui.d.ts +5 -2
  148. package/dist/components/ui.d.ts.map +1 -1
  149. package/dist/components/ui.js +10 -7
  150. package/dist/components/ui.js.map +1 -1
  151. package/dist/connect-page.js +1 -1
  152. package/dist/connect-page.js.map +1 -1
  153. package/dist/console.css +1172 -106
  154. package/dist/console.d.ts +5 -0
  155. package/dist/console.d.ts.map +1 -1
  156. package/dist/console.js +52 -39
  157. package/dist/console.js.map +1 -1
  158. package/dist/data.d.ts.map +1 -1
  159. package/dist/data.js +32 -33
  160. package/dist/data.js.map +1 -1
  161. package/dist/desk-page.d.ts +38 -0
  162. package/dist/desk-page.d.ts.map +1 -0
  163. package/dist/desk-page.js +184 -0
  164. package/dist/desk-page.js.map +1 -0
  165. package/dist/desk-records-page.d.ts +18 -0
  166. package/dist/desk-records-page.d.ts.map +1 -0
  167. package/dist/desk-records-page.js +130 -0
  168. package/dist/desk-records-page.js.map +1 -0
  169. package/dist/desk-records.d.ts +247 -0
  170. package/dist/desk-records.d.ts.map +1 -0
  171. package/dist/desk-records.js +543 -0
  172. package/dist/desk-records.js.map +1 -0
  173. package/dist/desk.d.ts +122 -0
  174. package/dist/desk.d.ts.map +1 -0
  175. package/dist/desk.js +211 -0
  176. package/dist/desk.js.map +1 -0
  177. package/dist/feed-stream.d.ts +39 -0
  178. package/dist/feed-stream.d.ts.map +1 -0
  179. package/dist/feed-stream.js +117 -0
  180. package/dist/feed-stream.js.map +1 -0
  181. package/dist/home-tiles.d.ts +19 -3
  182. package/dist/home-tiles.d.ts.map +1 -1
  183. package/dist/home-tiles.js +147 -42
  184. package/dist/home-tiles.js.map +1 -1
  185. package/dist/i18n/en.d.ts +228 -6
  186. package/dist/i18n/en.d.ts.map +1 -1
  187. package/dist/i18n/en.js +309 -9
  188. package/dist/i18n/en.js.map +1 -1
  189. package/dist/i18n/ko.d.ts.map +1 -1
  190. package/dist/i18n/ko.js +366 -85
  191. package/dist/i18n/ko.js.map +1 -1
  192. package/dist/i18n/particles.d.ts +7 -0
  193. package/dist/i18n/particles.d.ts.map +1 -0
  194. package/dist/i18n/particles.js +72 -0
  195. package/dist/i18n/particles.js.map +1 -0
  196. package/dist/icons/glyphs.d.ts +605 -0
  197. package/dist/icons/glyphs.d.ts.map +1 -0
  198. package/dist/icons/glyphs.js +104 -0
  199. package/dist/icons/glyphs.js.map +1 -0
  200. package/dist/icons/index.d.ts +59 -0
  201. package/dist/icons/index.d.ts.map +1 -0
  202. package/dist/icons/index.js +157 -0
  203. package/dist/icons/index.js.map +1 -0
  204. package/dist/index.d.ts +9 -0
  205. package/dist/index.d.ts.map +1 -1
  206. package/dist/index.js +9 -0
  207. package/dist/index.js.map +1 -1
  208. package/dist/limits.d.ts +20 -0
  209. package/dist/limits.d.ts.map +1 -1
  210. package/dist/limits.js +20 -0
  211. package/dist/limits.js.map +1 -1
  212. package/dist/marks.d.ts +9 -0
  213. package/dist/marks.d.ts.map +1 -1
  214. package/dist/marks.js +9 -0
  215. package/dist/marks.js.map +1 -1
  216. package/dist/onboarding.d.ts +6 -0
  217. package/dist/onboarding.d.ts.map +1 -1
  218. package/dist/onboarding.js +5 -5
  219. package/dist/onboarding.js.map +1 -1
  220. package/dist/plugin/context.d.ts +42 -11
  221. package/dist/plugin/context.d.ts.map +1 -1
  222. package/dist/plugin/limits.d.ts +2 -0
  223. package/dist/plugin/limits.d.ts.map +1 -1
  224. package/dist/plugin/limits.js +2 -0
  225. package/dist/plugin/limits.js.map +1 -1
  226. package/dist/plugin/manifest.d.ts +13 -0
  227. package/dist/plugin/manifest.d.ts.map +1 -1
  228. package/dist/plugin/manifest.js +30 -3
  229. package/dist/plugin/manifest.js.map +1 -1
  230. package/dist/plugin/rest-schemas.d.ts +55 -0
  231. package/dist/plugin/rest-schemas.d.ts.map +1 -1
  232. package/dist/plugin/rest-schemas.js +37 -0
  233. package/dist/plugin/rest-schemas.js.map +1 -1
  234. package/dist/plugin/sandbox.d.ts.map +1 -1
  235. package/dist/plugin/sandbox.js +4 -1
  236. package/dist/plugin/sandbox.js.map +1 -1
  237. package/dist/plugin/testing.d.ts +6 -2
  238. package/dist/plugin/testing.d.ts.map +1 -1
  239. package/dist/plugin/testing.js +52 -10
  240. package/dist/plugin/testing.js.map +1 -1
  241. package/dist/plugin/web.d.ts +3 -0
  242. package/dist/plugin/web.d.ts.map +1 -1
  243. package/dist/plugin/web.js +5 -1
  244. package/dist/plugin/web.js.map +1 -1
  245. package/dist/plugin.d.ts +1 -1
  246. package/dist/plugin.d.ts.map +1 -1
  247. package/dist/plugin.js +1 -1
  248. package/dist/plugin.js.map +1 -1
  249. package/dist/records.d.ts +283 -0
  250. package/dist/records.d.ts.map +1 -0
  251. package/dist/records.js +543 -0
  252. package/dist/records.js.map +1 -0
  253. package/dist/routes.d.ts +3 -1
  254. package/dist/routes.d.ts.map +1 -1
  255. package/dist/routes.js +3 -1
  256. package/dist/routes.js.map +1 -1
  257. package/dist/rules.d.ts +30 -11
  258. package/dist/rules.d.ts.map +1 -1
  259. package/dist/rules.js +98 -45
  260. package/dist/rules.js.map +1 -1
  261. package/dist/runner/acp.d.ts +1 -1
  262. package/dist/runner/acp.d.ts.map +1 -1
  263. package/dist/runner/acp.js +32 -21
  264. package/dist/runner/acp.js.map +1 -1
  265. package/dist/runner/awake.d.ts +35 -0
  266. package/dist/runner/awake.d.ts.map +1 -0
  267. package/dist/runner/awake.js +95 -0
  268. package/dist/runner/awake.js.map +1 -0
  269. package/dist/runner/claude.d.ts +1 -1
  270. package/dist/runner/claude.d.ts.map +1 -1
  271. package/dist/runner/claude.js +100 -18
  272. package/dist/runner/claude.js.map +1 -1
  273. package/dist/runner/codex.d.ts +1 -1
  274. package/dist/runner/codex.d.ts.map +1 -1
  275. package/dist/runner/codex.js +20 -17
  276. package/dist/runner/codex.js.map +1 -1
  277. package/dist/runner/config.d.ts +5 -0
  278. package/dist/runner/config.d.ts.map +1 -1
  279. package/dist/runner/config.js +9 -0
  280. package/dist/runner/config.js.map +1 -1
  281. package/dist/runner/desk.d.ts +43 -2
  282. package/dist/runner/desk.d.ts.map +1 -1
  283. package/dist/runner/desk.js +168 -13
  284. package/dist/runner/desk.js.map +1 -1
  285. package/dist/runner/process.d.ts.map +1 -1
  286. package/dist/runner/process.js +11 -4
  287. package/dist/runner/process.js.map +1 -1
  288. package/dist/runner/redact.d.ts +39 -4
  289. package/dist/runner/redact.d.ts.map +1 -1
  290. package/dist/runner/redact.js +81 -5
  291. package/dist/runner/redact.js.map +1 -1
  292. package/dist/runner/runner.d.ts +28 -3
  293. package/dist/runner/runner.d.ts.map +1 -1
  294. package/dist/runner/runner.js +371 -54
  295. package/dist/runner/runner.js.map +1 -1
  296. package/dist/runner/slack.d.ts.map +1 -1
  297. package/dist/runner/slack.js +10 -4
  298. package/dist/runner/slack.js.map +1 -1
  299. package/dist/runner/task-scheduler.d.ts +20 -0
  300. package/dist/runner/task-scheduler.d.ts.map +1 -1
  301. package/dist/runner/task-scheduler.js +34 -4
  302. package/dist/runner/task-scheduler.js.map +1 -1
  303. package/dist/runner/types.d.ts +51 -1
  304. package/dist/runner/types.d.ts.map +1 -1
  305. package/dist/runner/types.js +26 -0
  306. package/dist/runner/types.js.map +1 -1
  307. package/dist/runner.d.ts +6 -6
  308. package/dist/runner.d.ts.map +1 -1
  309. package/dist/runner.js +5 -5
  310. package/dist/runner.js.map +1 -1
  311. package/dist/schemas.d.ts +603 -6
  312. package/dist/schemas.d.ts.map +1 -1
  313. package/dist/schemas.js +156 -20
  314. package/dist/schemas.js.map +1 -1
  315. package/dist/services.d.ts +22 -5
  316. package/dist/services.d.ts.map +1 -1
  317. package/dist/services.js +41 -17
  318. package/dist/services.js.map +1 -1
  319. package/dist/setup-guide.d.ts +17 -4
  320. package/dist/setup-guide.d.ts.map +1 -1
  321. package/dist/setup-guide.js +48 -41
  322. package/dist/setup-guide.js.map +1 -1
  323. package/dist/tokens.d.ts.map +1 -1
  324. package/dist/tokens.js +5 -1
  325. package/dist/tokens.js.map +1 -1
  326. package/dist/vocabulary.d.ts +21 -3
  327. package/dist/vocabulary.d.ts.map +1 -1
  328. package/dist/vocabulary.js +19 -3
  329. package/dist/vocabulary.js.map +1 -1
  330. package/docs/specs/cli.md +73 -44
  331. package/docs/specs/plugins.md +40 -22
  332. package/docs/specs/records.md +113 -0
  333. package/docs/specs/rest.md +30 -21
  334. package/docs/specs/runner.md +46 -22
  335. package/package.json +11 -2
  336. package/skills/building-a-console/SKILL.md +4 -4
  337. package/skills/building-a-plugin/SKILL.md +6 -6
  338. package/skills/deploying-a-console/SKILL.md +4 -4
  339. package/skills/deploying-a-console/references/resources.md +41 -4
  340. package/skills/deploying-a-console/references/running-it-again.md +3 -2
  341. package/skills/keeping-a-desk/SKILL.md +133 -0
  342. package/skills/keeping-a-desk/collections.md +96 -0
  343. package/skills/planning-the-board/SKILL.md +14 -18
  344. package/skills/planning-the-board/references/a-task.md +2 -2
  345. package/skills/planning-the-board/references/project-rules.md +13 -14
  346. package/skills/planning-the-board/references/setting-up.md +15 -13
  347. package/skills/running-an-agent/SKILL.md +47 -56
  348. package/skills/working-the-board/SKILL.md +63 -44
  349. package/skills/working-the-board/references/terms.md +9 -5
  350. package/skills/working-the-board/references/the-pack.md +12 -10
  351. package/skills/working-the-board/references/the-sentence.md +2 -2
  352. package/src/agent-page.tsx +16 -2
  353. package/src/api.ts +109 -3
  354. package/src/charts.ts +250 -0
  355. package/src/cli/cli.ts +2226 -580
  356. package/src/cli/command-words.ts +56 -0
  357. package/src/cli/credentials.ts +181 -20
  358. package/src/cli/directory.ts +28 -10
  359. package/src/cli/format.ts +332 -49
  360. package/src/cli/help.ts +113 -57
  361. package/src/cli/machine-check.ts +223 -0
  362. package/src/cli/main.ts +72 -2
  363. package/src/cli/pack.ts +333 -372
  364. package/src/cli/plugin-check.ts +275 -34
  365. package/src/cli/plugin-cli.ts +28 -4
  366. package/src/cli/plugin-main.ts +1 -0
  367. package/src/cli/runner-host.ts +8 -0
  368. package/src/cli/secret-notes.ts +63 -0
  369. package/src/cli/serve.ts +295 -2
  370. package/src/client.ts +215 -177
  371. package/src/components/agent-page.tsx +1044 -281
  372. package/src/components/agents.tsx +9 -5
  373. package/src/components/board.tsx +3 -15
  374. package/src/components/categories.tsx +2 -2
  375. package/src/components/charts.tsx +680 -0
  376. package/src/components/decision-list.tsx +11 -7
  377. package/src/components/desk-records.tsx +724 -0
  378. package/src/components/desk.tsx +471 -0
  379. package/src/components/event-feed.tsx +12 -3
  380. package/src/components/goals.tsx +33 -25
  381. package/src/components/home.tsx +42 -6
  382. package/src/components/icon.tsx +337 -0
  383. package/src/components/markdown.tsx +22 -2
  384. package/src/components/people.tsx +1 -1
  385. package/src/components/plugin-frame.tsx +7 -0
  386. package/src/components/plugin-settings.tsx +171 -12
  387. package/src/components/projects.tsx +68 -17
  388. package/src/components/rules.tsx +94 -34
  389. package/src/components/sessions.tsx +2 -13
  390. package/src/components/setup.tsx +20 -5
  391. package/src/components/shell.tsx +3 -20
  392. package/src/components/tokens.tsx +1 -1
  393. package/src/components/ui.tsx +16 -8
  394. package/src/connect-page.tsx +1 -1
  395. package/src/console.tsx +104 -62
  396. package/src/data.ts +37 -34
  397. package/src/desk-page.tsx +332 -0
  398. package/src/desk-records-page.tsx +256 -0
  399. package/src/desk-records.ts +808 -0
  400. package/src/desk.ts +329 -0
  401. package/src/feed-stream.ts +144 -0
  402. package/src/home-tiles.ts +170 -46
  403. package/src/i18n/en.ts +323 -11
  404. package/src/i18n/ko.ts +378 -87
  405. package/src/i18n/particles.ts +79 -0
  406. package/src/icons/glyphs.ts +112 -0
  407. package/src/icons/index.ts +195 -0
  408. package/src/index.ts +125 -0
  409. package/src/limits.ts +20 -0
  410. package/src/marks.ts +12 -0
  411. package/src/onboarding.ts +14 -6
  412. package/src/plugin/context.ts +55 -12
  413. package/src/plugin/limits.ts +2 -0
  414. package/src/plugin/manifest.ts +38 -2
  415. package/src/plugin/rest-schemas.ts +41 -0
  416. package/src/plugin/sandbox.ts +4 -1
  417. package/src/plugin/testing.ts +63 -12
  418. package/src/plugin/web.ts +9 -2
  419. package/src/plugin.ts +2 -0
  420. package/src/records.ts +702 -0
  421. package/src/routes.ts +3 -1
  422. package/src/rules.ts +108 -47
  423. package/src/runner/acp.ts +49 -30
  424. package/src/runner/awake.ts +135 -0
  425. package/src/runner/claude.ts +131 -26
  426. package/src/runner/codex.ts +37 -26
  427. package/src/runner/config.ts +9 -0
  428. package/src/runner/desk.ts +200 -15
  429. package/src/runner/process.ts +11 -4
  430. package/src/runner/redact.ts +92 -6
  431. package/src/runner/runner.ts +457 -56
  432. package/src/runner/slack.ts +10 -4
  433. package/src/runner/task-scheduler.ts +36 -4
  434. package/src/runner/types.ts +67 -1
  435. package/src/runner.ts +27 -2
  436. package/src/schemas.ts +177 -18
  437. package/src/services.ts +55 -16
  438. package/src/setup-guide.ts +49 -40
  439. package/src/styles/README.md +16 -5
  440. package/src/styles/base.css +17 -0
  441. package/src/styles/console.css +10 -0
  442. package/src/styles/drawn-by-pages.json +1 -1
  443. package/src/styles/pages/agents.css +103 -1
  444. package/src/styles/pages/board.css +0 -10
  445. package/src/styles/pages/calendar.css +1 -1
  446. package/src/styles/pages/connect.css +0 -10
  447. package/src/styles/pages/decisions.css +3 -1
  448. package/src/styles/pages/desk.css +126 -0
  449. package/src/styles/pages/documents.css +5 -0
  450. package/src/styles/pages/feed.css +5 -2
  451. package/src/styles/pages/home.css +5 -0
  452. package/src/styles/pages/roadmap.css +2 -2
  453. package/src/styles/pages/settings.css +11 -0
  454. package/src/styles/pages/task.css +0 -20
  455. package/src/styles/pages/thread.css +1 -1
  456. package/src/styles/parts/bars.css +80 -0
  457. package/src/styles/parts/calendar.css +1 -1
  458. package/src/styles/parts/callout.css +1 -0
  459. package/src/styles/parts/chart.css +173 -0
  460. package/src/styles/parts/detail.css +22 -0
  461. package/src/styles/parts/empty.css +2 -0
  462. package/src/styles/parts/eyebrow.css +1 -1
  463. package/src/styles/parts/facts.css +1 -1
  464. package/src/styles/parts/figures.css +65 -0
  465. package/src/styles/parts/form.css +2 -1
  466. package/src/styles/parts/icon.css +191 -0
  467. package/src/styles/parts/input.css +14 -4
  468. package/src/styles/parts/legend.css +48 -0
  469. package/src/styles/parts/mark.css +36 -0
  470. package/src/styles/parts/menu.css +1 -7
  471. package/src/styles/parts/page.css +1 -1
  472. package/src/styles/parts/panel.css +10 -0
  473. package/src/styles/parts/person.css +5 -2
  474. package/src/styles/parts/progress.css +5 -2
  475. package/src/styles/parts/rows.css +1 -0
  476. package/src/styles/parts/series.css +32 -0
  477. package/src/styles/parts/settings.css +5 -0
  478. package/src/styles/parts/share.css +25 -0
  479. package/src/styles/parts/spark.css +23 -0
  480. package/src/styles/parts/stat.css +69 -0
  481. package/src/styles/tokens.css +31 -10
  482. package/src/tokens.ts +5 -1
  483. package/src/vocabulary.ts +25 -3
  484. package/template/desk-web/README.md +8 -0
  485. package/template/desk-web/index.html +13 -0
  486. package/template/desk-web/package.json +25 -0
  487. package/template/desk-web/src/main.tsx +24 -0
  488. package/template/desk-web/src/page.tsx +51 -0
  489. package/template/desk-web/tsconfig.json +16 -0
  490. package/template/desk-web/vite.config.ts +15 -0
package/src/client.ts CHANGED
@@ -68,6 +68,9 @@ import {
68
68
  type RestMembers,
69
69
  type RestMePatch,
70
70
  type RestMyDecisions,
71
+ type RestOwnWakeInput,
72
+ type RestOwnWakeRaised,
73
+ type RestOwnWakes,
71
74
  type RestPackConnect,
72
75
  type RestPackConnectStarted,
73
76
  type RestPackTokenInput,
@@ -102,6 +105,7 @@ import {
102
105
  type RestRules,
103
106
  type RestRulesInput,
104
107
  type RestRun,
108
+ type RestRunBriefs,
105
109
  type RestRunEndInput,
106
110
  type RestRunInput,
107
111
  type RestRunnerHeartbeat,
@@ -120,6 +124,7 @@ import {
120
124
  type RestSkillRows,
121
125
  type RestSkills,
122
126
  type RestTask,
127
+ type RestTaskBriefs,
123
128
  type RestTaskInput,
124
129
  type RestTaskPatch,
125
130
  type RestTasks,
@@ -178,6 +183,8 @@ import {
178
183
  restMembersSchema,
179
184
  restMeSchema,
180
185
  restMyDecisionsSchema,
186
+ restOwnWakeRaisedSchema,
187
+ restOwnWakesSchema,
181
188
  restPackConnectSchema,
182
189
  restPackConnectStartedSchema,
183
190
  restPeopleSchema,
@@ -200,6 +207,7 @@ import {
200
207
  restProjectsSchema,
201
208
  restReachedDecisionSchema,
202
209
  restRulesSchema,
210
+ restRunBriefsSchema,
203
211
  restRunnerHeartbeatSchema,
204
212
  restRunSchema,
205
213
  restRunsSchema,
@@ -213,6 +221,7 @@ import {
213
221
  restSkillLoadSchema,
214
222
  restSkillRowsSchema,
215
223
  restSkillsSchema,
224
+ restTaskBriefsSchema,
216
225
  restTaskSchema,
217
226
  restTasksSchema,
218
227
  restTeamSchema,
@@ -363,6 +372,16 @@ export interface DocumentFilter {
363
372
  readonly archived?: boolean | undefined;
364
373
  }
365
374
 
375
+ /**
376
+ * The reads of a pack: the listing, one skill, a file, a folder, what words find, and the tables
377
+ * and the code blocks as data. A project's client has them for the project's pack, a plugin's
378
+ * for its own, and the console's client for the organization's (`organizationPack()`).
379
+ */
380
+ export type PackClient = Pick<
381
+ ProjectClient,
382
+ "skills" | "skill" | "skillFile" | "skillBrowse" | "skillFind" | "skillRows" | "skillCode"
383
+ >;
384
+
366
385
  /** The board of one project, as the asker may see and change it. */
367
386
  export interface ProjectClient {
368
387
  /** The key the project is reached by. */
@@ -389,6 +408,12 @@ export interface ProjectClient {
389
408
  updateMember(personId: string, patch: RestMemberPatch): Promise<RestMember>;
390
409
  removeMember(personId: string): Promise<void>;
391
410
  tasks(filter?: TaskFilter, signal?: AbortSignal): Promise<RestTasks>;
411
+ /**
412
+ * The same page of the board without the tasks' bodies (`?brief=true`), for what lists tasks
413
+ * and shows no body. A console from before the brief form answers the tasks whole, and they
414
+ * read the same.
415
+ */
416
+ taskBriefs(filter?: TaskFilter, signal?: AbortSignal): Promise<RestTaskBriefs>;
392
417
  /** One task, by its id or by its number. */
393
418
  task(ref: string, signal?: AbortSignal): Promise<RestTask>;
394
419
  createTask(input: RestTaskInput): Promise<RestTask>;
@@ -421,6 +446,15 @@ export interface ProjectClient {
421
446
  filter?: { readonly task?: string; readonly open?: boolean; readonly mine?: boolean } & Page,
422
447
  signal?: AbortSignal,
423
448
  ): Promise<RestRuns>;
449
+ /**
450
+ * The same page of the runs without their reports, counted (`?brief=true`), for what lists
451
+ * runs and shows no report. A console from before the brief form answers the runs whole,
452
+ * which reads the same: `reportCountOf` says how many reports a run has either way.
453
+ */
454
+ runBriefs(
455
+ filter?: { readonly task?: string; readonly open?: boolean; readonly mine?: boolean } & Page,
456
+ signal?: AbortSignal,
457
+ ): Promise<RestRunBriefs>;
424
458
  run(id: string, signal?: AbortSignal): Promise<RestRun>;
425
459
  /** Takes a task: a run begins, for the person the asker is or acts for. */
426
460
  startRun(input: RestRunInput): Promise<RestRun>;
@@ -667,8 +701,17 @@ export interface PluginClient {
667
701
  },
668
702
  signal?: AbortSignal,
669
703
  ): Promise<RestSkillCode>;
670
- /** The plugin's events, newest first, a page at a time. */
671
- events(page?: Page, signal?: AbortSignal): Promise<RestEvents>;
704
+ /**
705
+ * The plugin's events the asker may read, newest first, a page at a time: every one for an
706
+ * administrator; for anyone else those of the projects they may see, their own doing, and the
707
+ * console's word of the plugin, the rest left out with no word that it is there. Of one kind
708
+ * where one is named (ADR-0128), which a console before 0.5.1 does not narrow by and answers
709
+ * every kind.
710
+ */
711
+ events(
712
+ page?: Page & { readonly kind?: string | undefined },
713
+ signal?: AbortSignal,
714
+ ): Promise<RestEvents>;
672
715
  /** Enables the plugin, with consent to every capability it asks; for an administrator. */
673
716
  enable(input: RestPluginEnableInput): Promise<RestPluginDetail>;
674
717
  disable(): Promise<RestPluginDetail>;
@@ -676,9 +719,12 @@ export interface PluginClient {
676
719
  updateSettings(patch: RestPluginSettingsPatch): Promise<RestPluginDetail>;
677
720
  /** Says what an enabled plugin holds: those it requires, named again, and the optional ones to turn on. */
678
721
  updateConsent(consent: readonly string[]): Promise<RestPluginDetail>;
679
- /** Seals a secret for the plugin; it is answered by nothing from then on. */
680
- setSecret(name: string, value: string): Promise<void>;
681
- removeSecret(name: string): Promise<void>;
722
+ /**
723
+ * Seals a secret for the plugin; it is answered by nothing from then on. A keyed secret
724
+ * (ADR-0111) is set and removed under a key, one value at a time.
725
+ */
726
+ setSecret(name: string, value: string, key?: string): Promise<void>;
727
+ removeSecret(name: string, key?: string): Promise<void>;
682
728
  grants(signal?: AbortSignal): Promise<RestPluginGrants>;
683
729
  grant(input: RestPluginGrantInput): Promise<RestPluginGrant>;
684
730
  revoke(grantId: string): Promise<RestPluginGrant>;
@@ -704,6 +750,12 @@ export interface ConsoleClient {
704
750
  workspacePackTokenConnection(signal?: AbortSignal): Promise<RestWorkspacePackConnect>;
705
751
  claimWorkspacePackTokenConnection(signal?: AbortSignal): Promise<RestWorkspacePackConnect>;
706
752
  cancelWorkspacePackTokenConnection(): Promise<void>;
753
+ /**
754
+ * The organization's pack, read where no project is named (ADR-0113): the workspace's skills
755
+ * address, with the workspace's SkillCDN token where the pack is private; for every member
756
+ * of the workspace, as the workspace's rules are.
757
+ */
758
+ organizationPack(): PackClient;
707
759
  /** The people the asker may see: everyone, or those they share a project with (ADR-0035). */
708
760
  people(signal?: AbortSignal): Promise<RestPeople>;
709
761
  /**
@@ -774,6 +826,12 @@ export interface ConsoleClient {
774
826
  signalStream(after: number, signal: AbortSignal): AsyncIterable<RestSignal>;
775
827
  /** Raises a wake of the runner's own, from a wake source on its machine: it comes back in order on the stream. */
776
828
  raiseWake(input: Omit<RestRunnerWake, "kind">): Promise<RestSignal>;
829
+ /** An agent account raises a wake for itself (ADR-0145), by its own command: now, or kept for a moment to come. */
830
+ raiseOwnWake(input: RestOwnWakeInput): Promise<RestOwnWakeRaised>;
831
+ /** The wakes an agent account keeps for later, the soonest first; for its supervisors, and as `me` for the account. */
832
+ ownWakes(handle: string, signal?: AbortSignal): Promise<RestOwnWakes>;
833
+ /** Takes a wake kept for later away, by what it is called; the account's own. */
834
+ cancelOwnWake(key: string): Promise<void>;
777
835
  /** The runner begins a session (ADR-0086): the one that was open is taken over. */
778
836
  beginAgentSession(input: RestAgentSessionInput): Promise<RestAgentSession>;
779
837
  /** The runner reports a batch of a session's events, in order; the same number sent again changes nothing. */
@@ -862,11 +920,11 @@ export interface ConsoleClient {
862
920
  pictureUrl(url: string): string;
863
921
  /** The categories tasks are sorted into (ADR-0019), by name. */
864
922
  categories(signal?: AbortSignal): Promise<RestCategories>;
865
- /** The workspace's rules (ADR-0023): the console's own until an administrator writes the organization's. */
923
+ /** The workspace's rules (ADR-0120): the console's, which always hold, and what the organization adds to them. */
866
924
  rules(signal?: AbortSignal): Promise<RestRules>;
867
- /** Writes the organization's rules; for an administrator. The console's own, sent as they are, write nothing. */
925
+ /** Writes what the organization adds to the console's rules; for an administrator. */
868
926
  writeRules(input: RestRulesInput): Promise<RestRules>;
869
- /** Puts the organization's rules away, so that the console's own hold again; for an administrator. */
927
+ /** Puts what the organization adds away, so that the console's rules stand alone; for an administrator. */
870
928
  archiveRules(): Promise<RestRules>;
871
929
  /** The versions of the organization's rules, newest first; none while the console's own hold. */
872
930
  rulesVersions(signal?: AbortSignal): Promise<RestVersions>;
@@ -1052,6 +1110,30 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1052
1110
  value === undefined ? undefined : String(value);
1053
1111
  const number = (value: number | undefined): string | undefined =>
1054
1112
  value === undefined ? undefined : String(value);
1113
+ /** What narrows a page of the board, as the query of its address. */
1114
+ const tasksQuery = (filter: TaskFilter): Record<string, string | undefined> => ({
1115
+ state: filter.state,
1116
+ archived: flag(filter.archived),
1117
+ open: flag(filter.open),
1118
+ category: filter.category,
1119
+ goal: filter.goal,
1120
+ worker: filter.worker,
1121
+ unassigned: flag(filter.unassigned),
1122
+ dueBy: filter.dueBy,
1123
+ q: filter.q,
1124
+ limit: number(filter.limit),
1125
+ offset: number(filter.offset),
1126
+ });
1127
+ /** What narrows a page of the runs, as the query of its address. */
1128
+ const runsQuery = (
1129
+ filter: { readonly task?: string; readonly open?: boolean; readonly mine?: boolean } & Page,
1130
+ ): Record<string, string | undefined> => ({
1131
+ task: filter.task,
1132
+ open: flag(filter.open),
1133
+ mine: flag(filter.mine),
1134
+ limit: number(filter.limit),
1135
+ offset: number(filter.offset),
1136
+ });
1055
1137
 
1056
1138
  /** A file as the parts of a form: the bytes with their name and type, and the label. */
1057
1139
  const formOf = (input: FileUpload): FormData => {
@@ -1098,6 +1180,85 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1098
1180
  return form;
1099
1181
  };
1100
1182
 
1183
+ /**
1184
+ * The reads of a pack under `root`: a project's, a plugin's own, and the organization's where
1185
+ * no project is named (ADR-0113) are read by the same seven routes, each under its own root.
1186
+ */
1187
+ const packAt = (root: string): PackClient => ({
1188
+ skills: (signal) => request("GET", `${base}${root}`, undefined, restSkillsSchema, signal),
1189
+ skill: (path, cursor, signal) =>
1190
+ request(
1191
+ "GET",
1192
+ withQuery(`${root}/one`, { path, cursor }),
1193
+ undefined,
1194
+ restSkillLoadSchema,
1195
+ signal,
1196
+ ),
1197
+ skillFile: (path, page = {}, signal) =>
1198
+ request(
1199
+ "GET",
1200
+ withQuery(`${root}/file`, {
1201
+ path,
1202
+ offset: number(page.offset),
1203
+ limit: number(page.limit),
1204
+ }),
1205
+ undefined,
1206
+ restSkillFileSchema,
1207
+ signal,
1208
+ ),
1209
+ skillBrowse: (page = {}, signal) =>
1210
+ request(
1211
+ "GET",
1212
+ withQuery(`${root}/browse`, {
1213
+ path: page.path,
1214
+ cursor: page.cursor,
1215
+ limit: number(page.limit),
1216
+ }),
1217
+ undefined,
1218
+ restSkillBrowseSchema,
1219
+ signal,
1220
+ ),
1221
+ skillFind: (query, options = {}, signal) =>
1222
+ request(
1223
+ "GET",
1224
+ withQuery(`${root}/find`, {
1225
+ query,
1226
+ path: options.path,
1227
+ cursor: options.cursor,
1228
+ limit: number(options.limit),
1229
+ }),
1230
+ undefined,
1231
+ restSkillFindSchema,
1232
+ signal,
1233
+ ),
1234
+ skillRows: (page = {}, signal) =>
1235
+ request(
1236
+ "GET",
1237
+ withQuery(`${root}/rows`, {
1238
+ path: page.path,
1239
+ heading: page.heading,
1240
+ cursor: page.cursor,
1241
+ limit: number(page.limit),
1242
+ }),
1243
+ undefined,
1244
+ restSkillRowsSchema,
1245
+ signal,
1246
+ ),
1247
+ skillCode: (page = {}, signal) =>
1248
+ request(
1249
+ "GET",
1250
+ withQuery(`${root}/code`, {
1251
+ path: page.path,
1252
+ heading: page.heading,
1253
+ cursor: page.cursor,
1254
+ limit: number(page.limit),
1255
+ }),
1256
+ undefined,
1257
+ restSkillCodeSchema,
1258
+ signal,
1259
+ ),
1260
+ });
1261
+
1101
1262
  const projectClient = (key: string): ProjectClient => {
1102
1263
  const at = (collection?: Parameters<typeof projectPath>[1], id?: string) =>
1103
1264
  projectPath(key, collection, id);
@@ -1119,23 +1280,19 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1119
1280
  tasks: (filter = {}, signal) =>
1120
1281
  request(
1121
1282
  "GET",
1122
- withQuery(at("tasks"), {
1123
- state: filter.state,
1124
- archived: flag(filter.archived),
1125
- open: flag(filter.open),
1126
- category: filter.category,
1127
- goal: filter.goal,
1128
- worker: filter.worker,
1129
- unassigned: flag(filter.unassigned),
1130
- dueBy: filter.dueBy,
1131
- q: filter.q,
1132
- limit: number(filter.limit),
1133
- offset: number(filter.offset),
1134
- }),
1283
+ withQuery(at("tasks"), tasksQuery(filter)),
1135
1284
  undefined,
1136
1285
  restTasksSchema,
1137
1286
  signal,
1138
1287
  ),
1288
+ taskBriefs: (filter = {}, signal) =>
1289
+ request(
1290
+ "GET",
1291
+ withQuery(at("tasks"), { ...tasksQuery(filter), brief: "true" }),
1292
+ undefined,
1293
+ restTaskBriefsSchema,
1294
+ signal,
1295
+ ),
1139
1296
  task: (ref, signal) =>
1140
1297
  request("GET", `${base}${at("tasks", ref)}`, undefined, restTaskSchema, signal),
1141
1298
  createTask: (input) => request("POST", `${base}${at("tasks")}`, input, restTaskSchema),
@@ -1189,17 +1346,13 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1189
1346
  restDecisionSchema,
1190
1347
  ),
1191
1348
  runs: (filter = {}, signal) =>
1349
+ request("GET", withQuery(at("runs"), runsQuery(filter)), undefined, restRunsSchema, signal),
1350
+ runBriefs: (filter = {}, signal) =>
1192
1351
  request(
1193
1352
  "GET",
1194
- withQuery(at("runs"), {
1195
- task: filter.task,
1196
- open: flag(filter.open),
1197
- mine: flag(filter.mine),
1198
- limit: number(filter.limit),
1199
- offset: number(filter.offset),
1200
- }),
1353
+ withQuery(at("runs"), { ...runsQuery(filter), brief: "true" }),
1201
1354
  undefined,
1202
- restRunsSchema,
1355
+ restRunBriefsSchema,
1203
1356
  signal,
1204
1357
  ),
1205
1358
  run: (id, signal) =>
@@ -1246,79 +1399,7 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1246
1399
  signal,
1247
1400
  ),
1248
1401
  eventStreamUrl: (after) => withQuery(`${at("events")}/stream`, { after: String(after) }),
1249
- skills: (signal) =>
1250
- request("GET", `${base}${at("skills")}`, undefined, restSkillsSchema, signal),
1251
- skill: (path, cursor, signal) =>
1252
- request(
1253
- "GET",
1254
- withQuery(`${at("skills")}/one`, { path, cursor }),
1255
- undefined,
1256
- restSkillLoadSchema,
1257
- signal,
1258
- ),
1259
- skillFile: (path, page = {}, signal) =>
1260
- request(
1261
- "GET",
1262
- withQuery(`${at("skills")}/file`, {
1263
- path,
1264
- offset: page.offset === undefined ? undefined : String(page.offset),
1265
- limit: page.limit === undefined ? undefined : String(page.limit),
1266
- }),
1267
- undefined,
1268
- restSkillFileSchema,
1269
- signal,
1270
- ),
1271
- skillBrowse: (page = {}, signal) =>
1272
- request(
1273
- "GET",
1274
- withQuery(`${at("skills")}/browse`, {
1275
- path: page.path,
1276
- cursor: page.cursor,
1277
- limit: page.limit === undefined ? undefined : String(page.limit),
1278
- }),
1279
- undefined,
1280
- restSkillBrowseSchema,
1281
- signal,
1282
- ),
1283
- skillFind: (query, options = {}, signal) =>
1284
- request(
1285
- "GET",
1286
- withQuery(`${at("skills")}/find`, {
1287
- query,
1288
- path: options.path,
1289
- cursor: options.cursor,
1290
- limit: options.limit === undefined ? undefined : String(options.limit),
1291
- }),
1292
- undefined,
1293
- restSkillFindSchema,
1294
- signal,
1295
- ),
1296
- skillRows: (page = {}, signal) =>
1297
- request(
1298
- "GET",
1299
- withQuery(`${at("skills")}/rows`, {
1300
- path: page.path,
1301
- heading: page.heading,
1302
- cursor: page.cursor,
1303
- limit: page.limit === undefined ? undefined : String(page.limit),
1304
- }),
1305
- undefined,
1306
- restSkillRowsSchema,
1307
- signal,
1308
- ),
1309
- skillCode: (page = {}, signal) =>
1310
- request(
1311
- "GET",
1312
- withQuery(`${at("skills")}/code`, {
1313
- path: page.path,
1314
- heading: page.heading,
1315
- cursor: page.cursor,
1316
- limit: page.limit === undefined ? undefined : String(page.limit),
1317
- }),
1318
- undefined,
1319
- restSkillCodeSchema,
1320
- signal,
1321
- ),
1402
+ ...packAt(at("skills")),
1322
1403
  setPackToken: (input) =>
1323
1404
  request("PUT", `${base}${at()}/pack-token`, input, restProjectSchema),
1324
1405
  removePackToken: () =>
@@ -1418,8 +1499,6 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1418
1499
 
1419
1500
  const pluginClient = (key: string): PluginClient => {
1420
1501
  const at = (...parts: readonly string[]) => pluginPath(key, ...parts);
1421
- const skillsQuery = (part: string, params: Record<string, string | undefined>): string =>
1422
- withQuery(at("skills", part), params);
1423
1502
  const queryUrl = (
1424
1503
  name: string,
1425
1504
  args: Readonly<Record<string, unknown>>,
@@ -1489,80 +1568,16 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1489
1568
  signal,
1490
1569
  ),
1491
1570
  purge: (confirm) => request("POST", `${base}${at("purge")}`, { confirm }, undefined),
1492
- skills: (signal) =>
1493
- request("GET", `${base}${at("skills")}`, undefined, restSkillsSchema, signal),
1494
- skill: (path, cursor, signal) =>
1495
- request(
1496
- "GET",
1497
- skillsQuery("one", { path, cursor }),
1498
- undefined,
1499
- restSkillLoadSchema,
1500
- signal,
1501
- ),
1502
- skillFile: (path, page = {}, signal) =>
1503
- request(
1504
- "GET",
1505
- skillsQuery("file", { path, offset: number(page.offset), limit: number(page.limit) }),
1506
- undefined,
1507
- restSkillFileSchema,
1508
- signal,
1509
- ),
1510
- skillBrowse: (page = {}, signal) =>
1511
- request(
1512
- "GET",
1513
- skillsQuery("browse", {
1514
- path: page.path,
1515
- cursor: page.cursor,
1516
- limit: number(page.limit),
1517
- }),
1518
- undefined,
1519
- restSkillBrowseSchema,
1520
- signal,
1521
- ),
1522
- skillFind: (query, options = {}, signal) =>
1523
- request(
1524
- "GET",
1525
- skillsQuery("find", {
1526
- query,
1527
- path: options.path,
1528
- cursor: options.cursor,
1529
- limit: number(options.limit),
1530
- }),
1531
- undefined,
1532
- restSkillFindSchema,
1533
- signal,
1534
- ),
1535
- skillRows: (page = {}, signal) =>
1536
- request(
1537
- "GET",
1538
- skillsQuery("rows", {
1539
- path: page.path,
1540
- heading: page.heading,
1541
- cursor: page.cursor,
1542
- limit: number(page.limit),
1543
- }),
1544
- undefined,
1545
- restSkillRowsSchema,
1546
- signal,
1547
- ),
1548
- skillCode: (page = {}, signal) =>
1571
+ ...packAt(at("skills")),
1572
+ events: (page = {}, signal) =>
1549
1573
  request(
1550
1574
  "GET",
1551
- skillsQuery("code", {
1552
- path: page.path,
1553
- heading: page.heading,
1554
- cursor: page.cursor,
1575
+ withQuery(at("events"), {
1555
1576
  limit: number(page.limit),
1577
+ offset: number(page.offset),
1578
+ kind: page.kind,
1556
1579
  }),
1557
1580
  undefined,
1558
- restSkillCodeSchema,
1559
- signal,
1560
- ),
1561
- events: (page = {}, signal) =>
1562
- request(
1563
- "GET",
1564
- withQuery(at("events"), { limit: number(page.limit), offset: number(page.offset) }),
1565
- undefined,
1566
1581
  restEventsSchema,
1567
1582
  signal,
1568
1583
  ),
@@ -1572,10 +1587,20 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1572
1587
  request("PATCH", `${base}${at("settings")}`, patch, restPluginDetailSchema),
1573
1588
  updateConsent: (consent) =>
1574
1589
  request("PATCH", `${base}${at("consent")}`, { consent }, restPluginDetailSchema),
1575
- setSecret: (name, value) =>
1576
- request("PUT", `${base}${at("secrets", name)}`, { value }, undefined),
1577
- removeSecret: (name) =>
1578
- request("DELETE", `${base}${at("secrets", name)}`, undefined, undefined),
1590
+ setSecret: (name, value, under) =>
1591
+ request(
1592
+ "PUT",
1593
+ `${base}${under === undefined ? at("secrets", name) : at("secrets", name, "keys", under)}`,
1594
+ { value },
1595
+ undefined,
1596
+ ),
1597
+ removeSecret: (name, under) =>
1598
+ request(
1599
+ "DELETE",
1600
+ `${base}${under === undefined ? at("secrets", name) : at("secrets", name, "keys", under)}`,
1601
+ undefined,
1602
+ undefined,
1603
+ ),
1579
1604
  grants: (signal) =>
1580
1605
  request("GET", `${base}${at("grants")}`, undefined, restPluginGrantsSchema, signal),
1581
1606
  grant: (input) => request("POST", `${base}${at("grants")}`, input, restPluginGrantSchema),
@@ -1599,6 +1624,7 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1599
1624
  );
1600
1625
  return found.items[0];
1601
1626
  },
1627
+ organizationPack: () => packAt(REST_ROUTES.workspaceSkills),
1602
1628
  updateWorkspace: (patch) =>
1603
1629
  request("PATCH", `${base}${REST_ROUTES.workspace}`, patch, restWorkspaceSchema),
1604
1630
  setWorkspacePackToken: (input) =>
@@ -1736,6 +1762,18 @@ export function createClient(options: ClientOptions = {}): ConsoleClient {
1736
1762
  { kind: "wake", ...input },
1737
1763
  restSignalSchema,
1738
1764
  ),
1765
+ raiseOwnWake: (input) =>
1766
+ request("POST", `${base}${agentPath("me", "wakes")}`, input, restOwnWakeRaisedSchema),
1767
+ ownWakes: (handle, signal) =>
1768
+ request("GET", `${base}${agentPath(handle, "wakes")}`, undefined, restOwnWakesSchema, signal),
1769
+ cancelOwnWake: async (key) => {
1770
+ await request(
1771
+ "DELETE",
1772
+ `${base}${agentPath("me", "wakes", key)}`,
1773
+ undefined,
1774
+ restOwnWakesSchema,
1775
+ );
1776
+ },
1739
1777
  async *signalStream(after, signal) {
1740
1778
  let response: Response;
1741
1779
  try {