@skillcdn/console 0.4.7 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (599) hide show
  1. package/README.md +74 -14
  2. package/SKILLCDN.md +5 -3
  3. package/dist/agent-page.d.ts +44 -0
  4. package/dist/agent-page.d.ts.map +1 -0
  5. package/dist/agent-page.js +415 -0
  6. package/dist/agent-page.js.map +1 -0
  7. package/dist/agent-stream.d.ts +52 -0
  8. package/dist/agent-stream.d.ts.map +1 -0
  9. package/dist/agent-stream.js +155 -0
  10. package/dist/agent-stream.js.map +1 -0
  11. package/dist/api.d.ts +12 -6
  12. package/dist/api.d.ts.map +1 -1
  13. package/dist/api.js +11 -5
  14. package/dist/api.js.map +1 -1
  15. package/dist/avatar.d.ts +137 -0
  16. package/dist/avatar.d.ts.map +1 -0
  17. package/dist/avatar.js +1216 -0
  18. package/dist/avatar.js.map +1 -0
  19. package/dist/charts.d.ts +103 -0
  20. package/dist/charts.d.ts.map +1 -0
  21. package/dist/charts.js +182 -0
  22. package/dist/charts.js.map +1 -0
  23. package/dist/cli/cli.d.ts +39 -1
  24. package/dist/cli/cli.d.ts.map +1 -1
  25. package/dist/cli/cli.js +2424 -296
  26. package/dist/cli/cli.js.map +1 -1
  27. package/dist/cli/command-words.d.ts +20 -0
  28. package/dist/cli/command-words.d.ts.map +1 -0
  29. package/dist/cli/command-words.js +51 -0
  30. package/dist/cli/command-words.js.map +1 -0
  31. package/dist/cli/credentials.d.ts +59 -5
  32. package/dist/cli/credentials.d.ts.map +1 -1
  33. package/dist/cli/credentials.js +128 -16
  34. package/dist/cli/credentials.js.map +1 -1
  35. package/dist/cli/directory.d.ts +19 -4
  36. package/dist/cli/directory.d.ts.map +1 -1
  37. package/dist/cli/directory.js +16 -8
  38. package/dist/cli/directory.js.map +1 -1
  39. package/dist/cli/format.d.ts +91 -8
  40. package/dist/cli/format.d.ts.map +1 -1
  41. package/dist/cli/format.js +386 -57
  42. package/dist/cli/format.js.map +1 -1
  43. package/dist/cli/help.d.ts +13 -4
  44. package/dist/cli/help.d.ts.map +1 -1
  45. package/dist/cli/help.js +202 -62
  46. package/dist/cli/help.js.map +1 -1
  47. package/dist/cli/main.js +94 -0
  48. package/dist/cli/main.js.map +1 -1
  49. package/dist/cli/pack.d.ts +69 -36
  50. package/dist/cli/pack.d.ts.map +1 -1
  51. package/dist/cli/pack.js +241 -188
  52. package/dist/cli/pack.js.map +1 -1
  53. package/dist/cli/plugin-check.d.ts +42 -0
  54. package/dist/cli/plugin-check.d.ts.map +1 -1
  55. package/dist/cli/plugin-check.js +221 -36
  56. package/dist/cli/plugin-check.js.map +1 -1
  57. package/dist/cli/plugin-cli.d.ts +6 -1
  58. package/dist/cli/plugin-cli.d.ts.map +1 -1
  59. package/dist/cli/plugin-cli.js +21 -4
  60. package/dist/cli/plugin-cli.js.map +1 -1
  61. package/dist/cli/plugin-main.js +1 -0
  62. package/dist/cli/plugin-main.js.map +1 -1
  63. package/dist/cli/runner-host.d.ts +36 -0
  64. package/dist/cli/runner-host.d.ts.map +1 -0
  65. package/dist/cli/runner-host.js +154 -0
  66. package/dist/cli/runner-host.js.map +1 -0
  67. package/dist/cli/serve.d.ts +33 -1
  68. package/dist/cli/serve.d.ts.map +1 -1
  69. package/dist/cli/serve.js +275 -6
  70. package/dist/cli/serve.js.map +1 -1
  71. package/dist/cli/setup-machine.d.ts +36 -0
  72. package/dist/cli/setup-machine.d.ts.map +1 -0
  73. package/dist/cli/setup-machine.js +109 -0
  74. package/dist/cli/setup-machine.js.map +1 -0
  75. package/dist/client.d.ts +189 -10
  76. package/dist/client.d.ts.map +1 -1
  77. package/dist/client.js +192 -57
  78. package/dist/client.js.map +1 -1
  79. package/dist/compat.d.ts +1 -1
  80. package/dist/compat.js +2 -2
  81. package/dist/components/agent-page.d.ts +384 -0
  82. package/dist/components/agent-page.d.ts.map +1 -0
  83. package/dist/components/agent-page.js +985 -0
  84. package/dist/components/agent-page.js.map +1 -0
  85. package/dist/components/agents.d.ts +102 -0
  86. package/dist/components/agents.d.ts.map +1 -0
  87. package/dist/components/agents.js +246 -0
  88. package/dist/components/agents.js.map +1 -0
  89. package/dist/components/calendar.d.ts +17 -17
  90. package/dist/components/calendar.d.ts.map +1 -1
  91. package/dist/components/calendar.js +7 -2
  92. package/dist/components/calendar.js.map +1 -1
  93. package/dist/components/charts.d.ts +157 -0
  94. package/dist/components/charts.d.ts.map +1 -0
  95. package/dist/components/charts.js +182 -0
  96. package/dist/components/charts.js.map +1 -0
  97. package/dist/components/comments.d.ts +2 -0
  98. package/dist/components/comments.d.ts.map +1 -1
  99. package/dist/components/comments.js +1 -1
  100. package/dist/components/comments.js.map +1 -1
  101. package/dist/components/connect.d.ts.map +1 -1
  102. package/dist/components/connect.js +7 -2
  103. package/dist/components/connect.js.map +1 -1
  104. package/dist/components/decision-form.d.ts +21 -0
  105. package/dist/components/decision-form.d.ts.map +1 -1
  106. package/dist/components/decision-form.js +20 -6
  107. package/dist/components/decision-form.js.map +1 -1
  108. package/dist/components/decision-list.d.ts +24 -0
  109. package/dist/components/decision-list.d.ts.map +1 -1
  110. package/dist/components/decision-list.js +54 -5
  111. package/dist/components/decision-list.js.map +1 -1
  112. package/dist/components/desk-records.d.ts +102 -0
  113. package/dist/components/desk-records.d.ts.map +1 -0
  114. package/dist/components/desk-records.js +221 -0
  115. package/dist/components/desk-records.js.map +1 -0
  116. package/dist/components/desk.d.ts +85 -0
  117. package/dist/components/desk.d.ts.map +1 -0
  118. package/dist/components/desk.js +135 -0
  119. package/dist/components/desk.js.map +1 -0
  120. package/dist/components/event-feed.d.ts.map +1 -1
  121. package/dist/components/event-feed.js +26 -1
  122. package/dist/components/event-feed.js.map +1 -1
  123. package/dist/components/home.d.ts +12 -1
  124. package/dist/components/home.d.ts.map +1 -1
  125. package/dist/components/home.js +175 -16
  126. package/dist/components/home.js.map +1 -1
  127. package/dist/components/my-decisions.d.ts +5 -0
  128. package/dist/components/my-decisions.d.ts.map +1 -1
  129. package/dist/components/my-decisions.js +3 -3
  130. package/dist/components/my-decisions.js.map +1 -1
  131. package/dist/components/people.d.ts +17 -0
  132. package/dist/components/people.d.ts.map +1 -1
  133. package/dist/components/people.js +55 -19
  134. package/dist/components/people.js.map +1 -1
  135. package/dist/components/picker.d.ts +2 -0
  136. package/dist/components/picker.d.ts.map +1 -1
  137. package/dist/components/picker.js +1 -1
  138. package/dist/components/picker.js.map +1 -1
  139. package/dist/components/pictures.d.ts +38 -10
  140. package/dist/components/pictures.d.ts.map +1 -1
  141. package/dist/components/pictures.js +195 -40
  142. package/dist/components/pictures.js.map +1 -1
  143. package/dist/components/plugin-events.d.ts +29 -0
  144. package/dist/components/plugin-events.d.ts.map +1 -0
  145. package/dist/components/plugin-events.js +139 -0
  146. package/dist/components/plugin-events.js.map +1 -0
  147. package/dist/components/plugin-frame.d.ts.map +1 -1
  148. package/dist/components/plugin-frame.js +14 -37
  149. package/dist/components/plugin-frame.js.map +1 -1
  150. package/dist/components/plugin-settings.d.ts.map +1 -1
  151. package/dist/components/plugin-settings.js +58 -7
  152. package/dist/components/plugin-settings.js.map +1 -1
  153. package/dist/components/projects.d.ts.map +1 -1
  154. package/dist/components/projects.js +30 -10
  155. package/dist/components/projects.js.map +1 -1
  156. package/dist/components/rules.d.ts +8 -10
  157. package/dist/components/rules.d.ts.map +1 -1
  158. package/dist/components/rules.js +36 -14
  159. package/dist/components/rules.js.map +1 -1
  160. package/dist/components/sessions.d.ts.map +1 -1
  161. package/dist/components/sessions.js +8 -4
  162. package/dist/components/sessions.js.map +1 -1
  163. package/dist/components/setup.d.ts +59 -0
  164. package/dist/components/setup.d.ts.map +1 -0
  165. package/dist/components/setup.js +93 -0
  166. package/dist/components/setup.js.map +1 -0
  167. package/dist/components/sign-in.js +1 -1
  168. package/dist/components/sign-in.js.map +1 -1
  169. package/dist/components/task-form.d.ts.map +1 -1
  170. package/dist/components/task-form.js +2 -2
  171. package/dist/components/task-form.js.map +1 -1
  172. package/dist/components/task-list.d.ts +7 -6
  173. package/dist/components/task-list.d.ts.map +1 -1
  174. package/dist/components/task-list.js.map +1 -1
  175. package/dist/components/task-view.d.ts +3 -0
  176. package/dist/components/task-view.d.ts.map +1 -1
  177. package/dist/components/task-view.js +1 -1
  178. package/dist/components/task-view.js.map +1 -1
  179. package/dist/components/ui.d.ts +78 -8
  180. package/dist/components/ui.d.ts.map +1 -1
  181. package/dist/components/ui.js +88 -9
  182. package/dist/components/ui.js.map +1 -1
  183. package/dist/components/work.d.ts +5 -5
  184. package/dist/components/work.d.ts.map +1 -1
  185. package/dist/components/work.js.map +1 -1
  186. package/dist/components/workspace.d.ts +17 -0
  187. package/dist/components/workspace.d.ts.map +1 -1
  188. package/dist/components/workspace.js +129 -2
  189. package/dist/components/workspace.js.map +1 -1
  190. package/dist/connect-page.d.ts.map +1 -1
  191. package/dist/connect-page.js +5 -2
  192. package/dist/connect-page.js.map +1 -1
  193. package/dist/console.css +7551 -4580
  194. package/dist/console.d.ts +20 -0
  195. package/dist/console.d.ts.map +1 -1
  196. package/dist/console.js +331 -57
  197. package/dist/console.js.map +1 -1
  198. package/dist/data.d.ts +22 -1
  199. package/dist/data.d.ts.map +1 -1
  200. package/dist/data.js +62 -34
  201. package/dist/data.js.map +1 -1
  202. package/dist/desk-page.d.ts +38 -0
  203. package/dist/desk-page.d.ts.map +1 -0
  204. package/dist/desk-page.js +184 -0
  205. package/dist/desk-page.js.map +1 -0
  206. package/dist/desk-records-page.d.ts +18 -0
  207. package/dist/desk-records-page.d.ts.map +1 -0
  208. package/dist/desk-records-page.js +130 -0
  209. package/dist/desk-records-page.js.map +1 -0
  210. package/dist/desk-records.d.ts +247 -0
  211. package/dist/desk-records.d.ts.map +1 -0
  212. package/dist/desk-records.js +543 -0
  213. package/dist/desk-records.js.map +1 -0
  214. package/dist/desk.d.ts +122 -0
  215. package/dist/desk.d.ts.map +1 -0
  216. package/dist/desk.js +211 -0
  217. package/dist/desk.js.map +1 -0
  218. package/dist/feed-stream.d.ts +39 -0
  219. package/dist/feed-stream.d.ts.map +1 -0
  220. package/dist/feed-stream.js +117 -0
  221. package/dist/feed-stream.js.map +1 -0
  222. package/dist/glances.d.ts +39 -0
  223. package/dist/glances.d.ts.map +1 -0
  224. package/dist/glances.js +94 -0
  225. package/dist/glances.js.map +1 -0
  226. package/dist/home-tiles.d.ts +69 -5
  227. package/dist/home-tiles.d.ts.map +1 -1
  228. package/dist/home-tiles.js +347 -9
  229. package/dist/home-tiles.js.map +1 -1
  230. package/dist/i18n/en.d.ts +773 -3
  231. package/dist/i18n/en.d.ts.map +1 -1
  232. package/dist/i18n/en.js +770 -9
  233. package/dist/i18n/en.js.map +1 -1
  234. package/dist/i18n/ko.d.ts.map +1 -1
  235. package/dist/i18n/ko.js +736 -9
  236. package/dist/i18n/ko.js.map +1 -1
  237. package/dist/index.d.ts +19 -7
  238. package/dist/index.d.ts.map +1 -1
  239. package/dist/index.js +17 -5
  240. package/dist/index.js.map +1 -1
  241. package/dist/limits.d.ts +67 -0
  242. package/dist/limits.d.ts.map +1 -1
  243. package/dist/limits.js +67 -0
  244. package/dist/limits.js.map +1 -1
  245. package/dist/onboarding.d.ts +21 -0
  246. package/dist/onboarding.d.ts.map +1 -0
  247. package/dist/onboarding.js +43 -0
  248. package/dist/onboarding.js.map +1 -0
  249. package/dist/persona.d.ts +34 -0
  250. package/dist/persona.d.ts.map +1 -0
  251. package/dist/persona.js +71 -0
  252. package/dist/persona.js.map +1 -0
  253. package/dist/plugin/context.d.ts +42 -11
  254. package/dist/plugin/context.d.ts.map +1 -1
  255. package/dist/plugin/limits.d.ts +2 -0
  256. package/dist/plugin/limits.d.ts.map +1 -1
  257. package/dist/plugin/limits.js +2 -0
  258. package/dist/plugin/limits.js.map +1 -1
  259. package/dist/plugin/manifest.d.ts +13 -0
  260. package/dist/plugin/manifest.d.ts.map +1 -1
  261. package/dist/plugin/manifest.js +34 -4
  262. package/dist/plugin/manifest.js.map +1 -1
  263. package/dist/plugin/rest-schemas.d.ts +56 -0
  264. package/dist/plugin/rest-schemas.d.ts.map +1 -1
  265. package/dist/plugin/rest-schemas.js +42 -0
  266. package/dist/plugin/rest-schemas.js.map +1 -1
  267. package/dist/plugin/sandbox.d.ts.map +1 -1
  268. package/dist/plugin/sandbox.js +4 -1
  269. package/dist/plugin/sandbox.js.map +1 -1
  270. package/dist/plugin/testing.d.ts +6 -2
  271. package/dist/plugin/testing.d.ts.map +1 -1
  272. package/dist/plugin/testing.js +52 -10
  273. package/dist/plugin/testing.js.map +1 -1
  274. package/dist/plugin.d.ts +1 -1
  275. package/dist/plugin.d.ts.map +1 -1
  276. package/dist/plugin.js +1 -1
  277. package/dist/plugin.js.map +1 -1
  278. package/dist/records.d.ts +283 -0
  279. package/dist/records.d.ts.map +1 -0
  280. package/dist/records.js +543 -0
  281. package/dist/records.js.map +1 -0
  282. package/dist/router.d.ts +50 -3
  283. package/dist/router.d.ts.map +1 -1
  284. package/dist/router.js +78 -7
  285. package/dist/router.js.map +1 -1
  286. package/dist/routes.d.ts +12 -2
  287. package/dist/routes.d.ts.map +1 -1
  288. package/dist/routes.js +14 -1
  289. package/dist/routes.js.map +1 -1
  290. package/dist/rules.d.ts +30 -11
  291. package/dist/rules.d.ts.map +1 -1
  292. package/dist/rules.js +99 -42
  293. package/dist/rules.js.map +1 -1
  294. package/dist/runner/acp.d.ts +20 -0
  295. package/dist/runner/acp.d.ts.map +1 -0
  296. package/dist/runner/acp.js +1132 -0
  297. package/dist/runner/acp.js.map +1 -0
  298. package/dist/runner/claude.d.ts +13 -0
  299. package/dist/runner/claude.d.ts.map +1 -0
  300. package/dist/runner/claude.js +615 -0
  301. package/dist/runner/claude.js.map +1 -0
  302. package/dist/runner/codex.d.ts +19 -0
  303. package/dist/runner/codex.d.ts.map +1 -0
  304. package/dist/runner/codex.js +597 -0
  305. package/dist/runner/codex.js.map +1 -0
  306. package/dist/runner/config.d.ts +35 -0
  307. package/dist/runner/config.d.ts.map +1 -0
  308. package/dist/runner/config.js +74 -0
  309. package/dist/runner/config.js.map +1 -0
  310. package/dist/runner/desk.d.ts +81 -0
  311. package/dist/runner/desk.d.ts.map +1 -0
  312. package/dist/runner/desk.js +303 -0
  313. package/dist/runner/desk.js.map +1 -0
  314. package/dist/runner/launchd.d.ts +7 -0
  315. package/dist/runner/launchd.d.ts.map +1 -0
  316. package/dist/runner/launchd.js +78 -0
  317. package/dist/runner/launchd.js.map +1 -0
  318. package/dist/runner/message.d.ts +66 -0
  319. package/dist/runner/message.d.ts.map +1 -0
  320. package/dist/runner/message.js +181 -0
  321. package/dist/runner/message.js.map +1 -0
  322. package/dist/runner/modules.d.ts +13 -0
  323. package/dist/runner/modules.d.ts.map +1 -0
  324. package/dist/runner/modules.js +30 -0
  325. package/dist/runner/modules.js.map +1 -0
  326. package/dist/runner/process.d.ts +7 -0
  327. package/dist/runner/process.d.ts.map +1 -0
  328. package/dist/runner/process.js +65 -0
  329. package/dist/runner/process.js.map +1 -0
  330. package/dist/runner/redact.d.ts +48 -0
  331. package/dist/runner/redact.d.ts.map +1 -0
  332. package/dist/runner/redact.js +214 -0
  333. package/dist/runner/redact.js.map +1 -0
  334. package/dist/runner/registry.d.ts +37 -0
  335. package/dist/runner/registry.d.ts.map +1 -0
  336. package/dist/runner/registry.js +26 -0
  337. package/dist/runner/registry.js.map +1 -0
  338. package/dist/runner/runner.d.ts +130 -0
  339. package/dist/runner/runner.d.ts.map +1 -0
  340. package/dist/runner/runner.js +1551 -0
  341. package/dist/runner/runner.js.map +1 -0
  342. package/dist/runner/slack.d.ts +16 -0
  343. package/dist/runner/slack.d.ts.map +1 -0
  344. package/dist/runner/slack.js +157 -0
  345. package/dist/runner/slack.js.map +1 -0
  346. package/dist/runner/systemd-user.d.ts +7 -0
  347. package/dist/runner/systemd-user.d.ts.map +1 -0
  348. package/dist/runner/systemd-user.js +93 -0
  349. package/dist/runner/systemd-user.js.map +1 -0
  350. package/dist/runner/task-scheduler.d.ts +38 -0
  351. package/dist/runner/task-scheduler.d.ts.map +1 -0
  352. package/dist/runner/task-scheduler.js +216 -0
  353. package/dist/runner/task-scheduler.js.map +1 -0
  354. package/dist/runner/types.d.ts +315 -0
  355. package/dist/runner/types.d.ts.map +1 -0
  356. package/dist/runner/types.js +24 -0
  357. package/dist/runner/types.js.map +1 -0
  358. package/dist/runner.d.ts +18 -0
  359. package/dist/runner.d.ts.map +1 -0
  360. package/dist/runner.js +20 -0
  361. package/dist/runner.js.map +1 -0
  362. package/dist/schemas.d.ts +6082 -1295
  363. package/dist/schemas.d.ts.map +1 -1
  364. package/dist/schemas.js +930 -31
  365. package/dist/schemas.js.map +1 -1
  366. package/dist/services.d.ts +110 -0
  367. package/dist/services.d.ts.map +1 -0
  368. package/dist/services.js +305 -0
  369. package/dist/services.js.map +1 -0
  370. package/dist/setup-guide.d.ts +64 -0
  371. package/dist/setup-guide.d.ts.map +1 -0
  372. package/dist/setup-guide.js +256 -0
  373. package/dist/setup-guide.js.map +1 -0
  374. package/dist/setup-page.d.ts +6 -0
  375. package/dist/setup-page.d.ts.map +1 -0
  376. package/dist/setup-page.js +29 -0
  377. package/dist/setup-page.js.map +1 -0
  378. package/dist/sse.d.ts +15 -0
  379. package/dist/sse.d.ts.map +1 -0
  380. package/dist/sse.js +73 -0
  381. package/dist/sse.js.map +1 -0
  382. package/dist/tab-title.d.ts +6 -0
  383. package/dist/tab-title.d.ts.map +1 -0
  384. package/dist/tab-title.js +22 -0
  385. package/dist/tab-title.js.map +1 -0
  386. package/dist/tokens.d.ts.map +1 -1
  387. package/dist/tokens.js +3 -0
  388. package/dist/tokens.js.map +1 -1
  389. package/dist/use-action.d.ts +5 -2
  390. package/dist/use-action.d.ts.map +1 -1
  391. package/dist/use-action.js +6 -1
  392. package/dist/use-action.js.map +1 -1
  393. package/dist/vocabulary.d.ts +84 -4
  394. package/dist/vocabulary.d.ts.map +1 -1
  395. package/dist/vocabulary.js +115 -3
  396. package/dist/vocabulary.js.map +1 -1
  397. package/docs/specs/cli.md +147 -41
  398. package/docs/specs/plugins.md +37 -27
  399. package/docs/specs/records.md +113 -0
  400. package/docs/specs/rest.md +155 -20
  401. package/docs/specs/runner.md +347 -0
  402. package/package.json +12 -3
  403. package/skills/building-a-console/SKILL.md +4 -4
  404. package/skills/building-a-console/references/configuring.md +1 -0
  405. package/skills/building-a-plugin/SKILL.md +7 -7
  406. package/skills/deploying-a-console/SKILL.md +4 -4
  407. package/skills/deploying-a-console/references/resources.md +48 -8
  408. package/skills/deploying-a-console/references/running-it-again.md +3 -2
  409. package/skills/keeping-a-desk/SKILL.md +133 -0
  410. package/skills/keeping-a-desk/collections.md +96 -0
  411. package/skills/planning-the-board/SKILL.md +14 -18
  412. package/skills/planning-the-board/references/a-task.md +2 -2
  413. package/skills/planning-the-board/references/project-rules.md +13 -14
  414. package/skills/planning-the-board/references/setting-up.md +22 -9
  415. package/skills/running-an-agent/SKILL.md +107 -0
  416. package/skills/running-an-agent/references/slack-app.md +61 -0
  417. package/skills/working-the-board/SKILL.md +66 -39
  418. package/skills/working-the-board/references/terms.md +9 -5
  419. package/skills/working-the-board/references/the-pack.md +14 -9
  420. package/skills/working-the-board/references/the-sentence.md +2 -2
  421. package/src/agent-page.tsx +1039 -0
  422. package/src/agent-stream.ts +199 -0
  423. package/src/api.ts +317 -2
  424. package/src/avatar.ts +1506 -0
  425. package/src/charts.ts +250 -0
  426. package/src/cli/cli.ts +3210 -503
  427. package/src/cli/command-words.ts +56 -0
  428. package/src/cli/credentials.ts +188 -16
  429. package/src/cli/directory.ts +28 -10
  430. package/src/cli/format.ts +470 -67
  431. package/src/cli/help.ts +233 -61
  432. package/src/cli/main.ts +89 -0
  433. package/src/cli/pack.ts +332 -263
  434. package/src/cli/plugin-check.ts +275 -34
  435. package/src/cli/plugin-cli.ts +28 -4
  436. package/src/cli/plugin-main.ts +1 -0
  437. package/src/cli/runner-host.ts +188 -0
  438. package/src/cli/serve.ts +320 -5
  439. package/src/cli/setup-machine.ts +153 -0
  440. package/src/client.ts +711 -126
  441. package/src/compat.ts +2 -2
  442. package/src/components/agent-page.tsx +1946 -0
  443. package/src/components/agents.tsx +638 -0
  444. package/src/components/calendar.tsx +74 -53
  445. package/src/components/charts.tsx +680 -0
  446. package/src/components/comments.tsx +3 -0
  447. package/src/components/connect.tsx +37 -2
  448. package/src/components/decision-form.tsx +89 -51
  449. package/src/components/decision-list.tsx +140 -4
  450. package/src/components/desk-records.tsx +724 -0
  451. package/src/components/desk.tsx +471 -0
  452. package/src/components/event-feed.tsx +30 -1
  453. package/src/components/home.tsx +353 -12
  454. package/src/components/my-decisions.tsx +8 -2
  455. package/src/components/people.tsx +300 -203
  456. package/src/components/picker.tsx +3 -1
  457. package/src/components/pictures.tsx +256 -44
  458. package/src/components/plugin-events.ts +159 -0
  459. package/src/components/plugin-frame.tsx +14 -38
  460. package/src/components/plugin-settings.tsx +178 -22
  461. package/src/components/projects.tsx +33 -15
  462. package/src/components/rules.tsx +96 -36
  463. package/src/components/sessions.tsx +7 -4
  464. package/src/components/setup.tsx +252 -0
  465. package/src/components/sign-in.tsx +1 -1
  466. package/src/components/task-form.tsx +11 -2
  467. package/src/components/task-list.tsx +7 -6
  468. package/src/components/task-view.tsx +4 -0
  469. package/src/components/ui.tsx +169 -25
  470. package/src/components/work.tsx +9 -9
  471. package/src/components/workspace.tsx +345 -4
  472. package/src/connect-page.tsx +15 -2
  473. package/src/console.tsx +657 -83
  474. package/src/data.ts +109 -43
  475. package/src/desk-page.tsx +332 -0
  476. package/src/desk-records-page.tsx +256 -0
  477. package/src/desk-records.ts +808 -0
  478. package/src/desk.ts +329 -0
  479. package/src/feed-stream.ts +144 -0
  480. package/src/glances.ts +132 -0
  481. package/src/home-tiles.ts +411 -9
  482. package/src/i18n/en.ts +828 -10
  483. package/src/i18n/ko.ts +792 -10
  484. package/src/index.ts +172 -3
  485. package/src/limits.ts +67 -0
  486. package/src/onboarding.ts +84 -0
  487. package/src/persona.ts +100 -0
  488. package/src/plugin/context.ts +55 -12
  489. package/src/plugin/limits.ts +2 -0
  490. package/src/plugin/manifest.ts +42 -3
  491. package/src/plugin/rest-schemas.ts +46 -0
  492. package/src/plugin/sandbox.ts +4 -1
  493. package/src/plugin/testing.ts +63 -12
  494. package/src/plugin.ts +2 -0
  495. package/src/records.ts +702 -0
  496. package/src/router.ts +120 -10
  497. package/src/routes.ts +17 -1
  498. package/src/rules.ts +109 -44
  499. package/src/runner/acp.ts +1267 -0
  500. package/src/runner/claude.ts +695 -0
  501. package/src/runner/codex.ts +691 -0
  502. package/src/runner/config.ts +97 -0
  503. package/src/runner/desk.ts +377 -0
  504. package/src/runner/launchd.ts +86 -0
  505. package/src/runner/message.ts +232 -0
  506. package/src/runner/modules.ts +30 -0
  507. package/src/runner/process.ts +72 -0
  508. package/src/runner/redact.ts +242 -0
  509. package/src/runner/registry.ts +67 -0
  510. package/src/runner/runner.ts +1879 -0
  511. package/src/runner/slack.ts +180 -0
  512. package/src/runner/systemd-user.ts +103 -0
  513. package/src/runner/task-scheduler.ts +236 -0
  514. package/src/runner/types.ts +334 -0
  515. package/src/runner.ts +110 -0
  516. package/src/schemas.ts +1183 -30
  517. package/src/services.ts +424 -0
  518. package/src/setup-guide.ts +336 -0
  519. package/src/setup-page.tsx +46 -0
  520. package/src/sse.ts +84 -0
  521. package/src/styles/README.md +111 -0
  522. package/src/styles/base.css +130 -0
  523. package/src/styles/console.css +85 -7095
  524. package/src/styles/drawn-by-pages.json +256 -0
  525. package/src/styles/pages/agents.css +1195 -0
  526. package/src/styles/pages/board.css +380 -0
  527. package/src/styles/pages/calendar.css +214 -0
  528. package/src/styles/pages/connect.css +182 -0
  529. package/src/styles/pages/decisions.css +370 -0
  530. package/src/styles/pages/desk.css +126 -0
  531. package/src/styles/pages/documents.css +273 -0
  532. package/src/styles/pages/feed.css +118 -0
  533. package/src/styles/pages/home.css +718 -0
  534. package/src/styles/pages/people.css +90 -0
  535. package/src/styles/pages/plugins.css +212 -0
  536. package/src/styles/pages/roadmap.css +377 -0
  537. package/src/styles/pages/settings.css +171 -0
  538. package/src/styles/pages/shell.css +208 -0
  539. package/src/styles/pages/sign-in.css +178 -0
  540. package/src/styles/pages/task.css +108 -0
  541. package/src/styles/pages/thread.css +331 -0
  542. package/src/styles/pages/work.css +68 -0
  543. package/src/styles/parts/avatar.css +82 -0
  544. package/src/styles/parts/badge.css +227 -0
  545. package/src/styles/parts/bars.css +80 -0
  546. package/src/styles/parts/button.css +99 -0
  547. package/src/styles/parts/calendar.css +547 -0
  548. package/src/styles/parts/callout.css +41 -0
  549. package/src/styles/parts/category.css +8 -0
  550. package/src/styles/parts/chart.css +173 -0
  551. package/src/styles/parts/chip.css +90 -0
  552. package/src/styles/parts/code.css +48 -0
  553. package/src/styles/parts/count.css +27 -0
  554. package/src/styles/parts/crumbs.css +61 -0
  555. package/src/styles/parts/detail.css +110 -0
  556. package/src/styles/parts/empty.css +21 -0
  557. package/src/styles/parts/eyebrow.css +9 -0
  558. package/src/styles/parts/facts.css +147 -0
  559. package/src/styles/parts/figures.css +65 -0
  560. package/src/styles/parts/files.css +38 -0
  561. package/src/styles/parts/filters.css +42 -0
  562. package/src/styles/parts/form.css +109 -0
  563. package/src/styles/parts/frame.css +45 -0
  564. package/src/styles/parts/input.css +243 -0
  565. package/src/styles/parts/legend.css +48 -0
  566. package/src/styles/parts/links.css +37 -0
  567. package/src/styles/parts/mark.css +79 -0
  568. package/src/styles/parts/menu.css +147 -0
  569. package/src/styles/parts/page.css +174 -0
  570. package/src/styles/parts/pager.css +19 -0
  571. package/src/styles/parts/panel.css +33 -0
  572. package/src/styles/parts/person.css +257 -0
  573. package/src/styles/parts/picker.css +185 -0
  574. package/src/styles/parts/progress.css +25 -0
  575. package/src/styles/parts/prose.css +128 -0
  576. package/src/styles/parts/rows.css +63 -0
  577. package/src/styles/parts/series.css +32 -0
  578. package/src/styles/parts/settings.css +101 -0
  579. package/src/styles/parts/share.css +25 -0
  580. package/src/styles/parts/spark.css +23 -0
  581. package/src/styles/parts/spinner.css +29 -0
  582. package/src/styles/parts/stat.css +69 -0
  583. package/src/styles/parts/steps.css +68 -0
  584. package/src/styles/parts/tabs.css +175 -0
  585. package/src/styles/parts/text.css +61 -0
  586. package/src/styles/parts/toggle.css +71 -0
  587. package/src/styles/parts/workers.css +37 -0
  588. package/src/styles/tokens.css +295 -0
  589. package/src/tab-title.ts +25 -0
  590. package/src/tokens.ts +3 -0
  591. package/src/use-action.ts +7 -2
  592. package/src/vocabulary.ts +151 -3
  593. package/template/desk-web/README.md +8 -0
  594. package/template/desk-web/index.html +13 -0
  595. package/template/desk-web/package.json +25 -0
  596. package/template/desk-web/src/main.tsx +24 -0
  597. package/template/desk-web/src/page.tsx +51 -0
  598. package/template/desk-web/tsconfig.json +16 -0
  599. package/template/desk-web/vite.config.ts +15 -0
@@ -0,0 +1,295 @@
1
+ :root {
2
+ color-scheme: light;
3
+
4
+ /* Surfaces: the page's own pale ground, the step into it, and white above it. */
5
+ --sc-color-bg: #f7f8fc;
6
+ --sc-color-bg-inset: #edf0f6;
7
+ --sc-color-bg-raised: #ffffff;
8
+ --sc-color-border: #e4e8ef;
9
+ --sc-color-border-strong: #7d899e;
10
+
11
+ /* Text: the site's own ink on white. */
12
+ --sc-color-text: #14141a;
13
+ --sc-color-text-muted: #4b5563;
14
+ --sc-color-text-faint: #666c7c;
15
+ /* Black: what a colour is mixed towards where it darkens under the pointer, and the solid
16
+ of a mask that fades an edge out. Never a fill or a text colour of its own. */
17
+ --sc-color-shade: #000;
18
+
19
+ /* The one accent: the blue that text and lines are drawn in, and the deeper blue a surface
20
+ is filled with so that a white label reads on it. Under the pointer each is mixed a little
21
+ towards black where it is drawn. */
22
+ --sc-color-accent: #2c5bc4;
23
+ --sc-color-accent-solid: #3b6fd4;
24
+ --sc-color-accent-contrast: #ffffff;
25
+ --sc-color-accent-subtle: #dbe6ff;
26
+ /* The point: the only warm colour, for what should be looked at first, never for a control. */
27
+ --sc-color-point: #c2410c;
28
+ --sc-color-point-subtle: #fff1e6;
29
+
30
+ /* Status. */
31
+ --sc-color-success: #146b44;
32
+ --sc-color-success-subtle: #d4efe1;
33
+ /* Warning: an amber, its words at 5:1 or better on its own fill and on the page. */
34
+ --sc-color-warning: #a64b07;
35
+ --sc-color-warning-subtle: #fef3c7;
36
+ /* The line round a warning: a clear amber, where the words' own brown on the pale fill reads as an outline. */
37
+ --sc-color-warning-line: #e9a23b;
38
+ --sc-color-danger: #b0273a;
39
+ --sc-color-danger-subtle: #fadadf;
40
+ /* For the plugins' pages (ADR-0054): a state that informs, and one neither good nor bad. */
41
+ --sc-color-info: #1d4ed8;
42
+ --sc-color-info-subtle: #dbe6ff;
43
+ --sc-color-neutral: #4b5563;
44
+ --sc-color-neutral-subtle: #e7eaf0;
45
+ /* The series of a chart (ADR-0123): blue, teal, raspberry, coral, violet, green. The console's
46
+ own hues, and a coral between its pink and its orange, each stepped until any two of the
47
+ six are told apart, also by a reader who does not tell red from green, and until each
48
+ stands out on a light ground and on a dark one. No orange among them, which is the point's,
49
+ and no yellow, which at this lightness is a brown. They are marks, never words. */
50
+ --sc-series-1: #285fd4;
51
+ --sc-series-2: #0097ac;
52
+ --sc-series-3: #bb2b76;
53
+ --sc-series-4: #fa4655;
54
+ --sc-series-5: #946ff2;
55
+ --sc-series-6: #04933e;
56
+ /* The figures that line up: for a column of numbers, a scale, a table. */
57
+ --sc-numeric: "tnum" 1, "lnum" 1;
58
+
59
+ /* The ground: a pale field, one gradient from the top. The default UI provides the field's
60
+ face (the shell); a custom console may paint its own. */
61
+ --sc-field-gradient: linear-gradient(160deg, #e3e9f7 0%, #eef1f9 42%, #f9fafd 100%);
62
+
63
+ /* Glass: what a pane over the field is made of. A wide blur with the colour behind pushed, a
64
+ white veil, a bright edge, and a soft stand-off from the field. */
65
+ --sc-glass-backdrop: blur(20px) saturate(1.6);
66
+ --sc-color-glass: #ffffff99;
67
+ --sc-color-glass-hover: #ffffffbf;
68
+ /* The rim: a hair of white along a pane's edge, its border. */
69
+ --sc-color-glass-edge: #ffffff;
70
+ /* The light that falls down a pane's face, from its top edge. */
71
+ --sc-glass-highlight: #ffffffb3;
72
+ --sc-glass-surface:
73
+ linear-gradient(170deg, var(--sc-glass-highlight), transparent 38%) padding-box,
74
+ linear-gradient(var(--sc-color-glass), var(--sc-color-glass)) padding-box;
75
+ --sc-glass-surface-hover:
76
+ linear-gradient(170deg, var(--sc-glass-highlight), transparent 38%) padding-box,
77
+ linear-gradient(var(--sc-color-glass-hover), var(--sc-color-glass-hover)) padding-box;
78
+ --sc-glass-sheen: inset 0 1px 0 #ffffff;
79
+ --sc-glass-lift: 0 0.5rem 1.5rem #1f268714, 0 1px 2px #1f26870f;
80
+ /* A surface inside a pane: no blur of its own, white with a little of the pane let through. */
81
+ --sc-color-sheet: color-mix(in srgb, var(--sc-color-bg-raised) 82%, transparent);
82
+ --sc-color-sheet-hover: color-mix(in srgb, var(--sc-color-bg-raised) 96%, transparent);
83
+
84
+ /* A lit thing casts the accent's own colour downward, in layers that fall off the way
85
+ brightness does. */
86
+ --sc-glow:
87
+ 0 0.125rem 0.5rem -0.25rem color-mix(in srgb, var(--sc-color-accent-solid) 40%, transparent),
88
+ 0 0.5rem 1.25rem -0.5rem color-mix(in srgb, var(--sc-color-accent-solid) 22%, transparent),
89
+ 0 1.25rem 3rem -1rem color-mix(in srgb, var(--sc-color-accent-solid) 11%, transparent);
90
+ --sc-shadow-stage: 0 1.25rem 3.5rem #1a2b552e;
91
+ /* What a menu casts, open over the page: close under it, and soft. */
92
+ --sc-shadow-menu: 0 0.75rem 2rem -0.5rem #1a2b5533, 0 0.125rem 0.375rem #1a2b5514;
93
+ /* What a sheet inside a pane casts: a hair of shade under its lower edge. */
94
+ --sc-shadow-sheet: 0 1px 2px #1f26870f;
95
+
96
+ /* Type. The Korean face comes first where the page provides it; the Latin stays with the
97
+ system's faces. */
98
+ --sc-font-sans:
99
+ "Pretendard Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo",
100
+ "Malgun Gothic", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
101
+ --sc-font-mono:
102
+ ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "D2Coding",
103
+ monospace;
104
+
105
+ --sc-text-xs: 0.8125rem;
106
+ --sc-text-sm: 0.9375rem;
107
+ --sc-text-md: 1rem;
108
+ --sc-text-lg: 1.125rem;
109
+ --sc-text-xl: 1.375rem;
110
+ --sc-text-2xl: 1.75rem;
111
+ --sc-leading-tight: 1.2;
112
+ --sc-leading-normal: 1.6;
113
+ --sc-leading-code: 1.7;
114
+ --sc-leading-snug: 1.45;
115
+ --sc-tracking-tight: -0.02em;
116
+ --sc-tracking-wide: 0.04em;
117
+ --sc-tracking-code: 0.12em;
118
+ --sc-weight-normal: 400;
119
+ --sc-weight-medium: 500;
120
+ --sc-weight-bold: 650;
121
+ /* Every face leaves more room above a line than below it, so a one-line label centred in a
122
+ box lands low; a box that centres a label takes this off the top and gives it to the
123
+ bottom. Not for anything that can wrap. */
124
+ --sc-label-lift: 0.067em;
125
+
126
+ /* Space: a 4px grid. */
127
+ --sc-space-1: 0.25rem;
128
+ --sc-space-2: 0.5rem;
129
+ --sc-space-3: 0.75rem;
130
+ --sc-space-4: 1rem;
131
+ --sc-space-5: 1.5rem;
132
+ --sc-space-6: 2rem;
133
+ --sc-space-7: 3rem;
134
+ --sc-space-8: 4.5rem;
135
+
136
+ /* Shape. */
137
+ --sc-radius-sm: 4px;
138
+ --sc-radius-md: 8px;
139
+ --sc-radius-lg: 12px;
140
+ --sc-radius-xl: 20px;
141
+ --sc-radius-full: 999px;
142
+ --sc-border: 1px solid var(--sc-color-border);
143
+ --sc-hairline: 1px solid color-mix(in srgb, var(--sc-color-border) 70%, transparent);
144
+ --sc-border-strong: 1px solid var(--sc-color-border-strong);
145
+
146
+ /* Layout. The gutter at the sides of the header, the tabs and every page grows with the
147
+ window, from a step of the grid on a laptop to a wide margin on a large screen, so that a
148
+ page on a wide screen does not run to its very edges; a phone narrows it further below. */
149
+ --sc-gutter: clamp(var(--sc-space-7), 5vw, 10rem);
150
+ --sc-width-prose: 46rem;
151
+ --sc-width-aside: 18rem;
152
+ --sc-column-width: 13.5rem;
153
+ --sc-header-height: 3.75rem;
154
+ /* The lockup: the symbol's size, and the wordmark's height and the room between them as
155
+ fractions of it, the fractions those of the brand's lockup file (the wordmark 73.77 tall
156
+ on a symbol of 100, 31.98 between them). */
157
+ --sc-brand-size: 1.375rem;
158
+ --sc-brand-size-compact: 1.25rem;
159
+ --sc-brand-wordmark-ratio: 0.7377;
160
+ --sc-brand-gap-ratio: 0.3198;
161
+ --sc-control-size: 2.5rem;
162
+ --sc-focus-ring: 2px solid var(--sc-color-accent);
163
+ /* A scrollbar's thumb: a light grey, there when it is needed and quiet otherwise. */
164
+ --sc-scrollbar-thumb: color-mix(in srgb, var(--sc-color-border-strong) 45%, transparent);
165
+ /* A select's chevron: a thin stroke in a grey that reads on a light field and a dark one. */
166
+ --sc-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235a6371' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
167
+ --sc-transition: 120ms ease-out;
168
+ }
169
+
170
+ /* A page in Korean (the pages say their language on <html>): Hangul fills more of its box than
171
+ Latin capitals and sits higher in it, so a label is lifted less, and the tracking is off. */
172
+ :root:lang(ko) {
173
+ --sc-label-lift: -0.083em;
174
+ --sc-tracking-tight: 0;
175
+ --sc-tracking-wide: 0;
176
+ }
177
+
178
+ /* The schedule, the roadmap and the categories (ADR-0019). */
179
+
180
+ /* The colours a category may be shown in: names, painted here and nowhere else. Each is a
181
+ light fill with its words dark in the same hue, and a mark, a clear mid-tone of the hue, for
182
+ the dots, flags and bars where the colour stands alone; the eight hues spread around the
183
+ wheel so that no two are taken for each other at a glance. A console that sets only the line
184
+ and the fill gets its line where the mark would be. */
185
+ .sc-category-gray {
186
+ --sc-category-line: #4a5468;
187
+ --sc-category-fill: #e0e4eb;
188
+ --sc-category-mark: #7b8597;
189
+ }
190
+
191
+ .sc-category-blue {
192
+ --sc-category-line: #1d4fcb;
193
+ --sc-category-fill: #d2e0ff;
194
+ --sc-category-mark: #2f6ae8;
195
+ }
196
+
197
+ .sc-category-green {
198
+ --sc-category-line: #176d26;
199
+ --sc-category-fill: #cdf0cc;
200
+ --sc-category-mark: #22a04a;
201
+ }
202
+
203
+ .sc-category-orange {
204
+ --sc-category-line: #b83c00;
205
+ --sc-category-fill: #ffe6d1;
206
+ --sc-category-mark: #f0731a;
207
+ }
208
+
209
+ .sc-category-pink {
210
+ --sc-category-line: #b2176a;
211
+ --sc-category-fill: #fdd2e5;
212
+ --sc-category-mark: #e63d94;
213
+ }
214
+
215
+ .sc-category-purple {
216
+ --sc-category-line: #6434c2;
217
+ --sc-category-fill: #e6d8fc;
218
+ --sc-category-mark: #8457e6;
219
+ }
220
+
221
+ .sc-category-teal {
222
+ --sc-category-line: #08667a;
223
+ --sc-category-fill: #c6edf4;
224
+ --sc-category-mark: #0f9bb0;
225
+ }
226
+
227
+ .sc-category-yellow {
228
+ --sc-category-line: #44403c;
229
+ --sc-category-fill: #fbe9b2;
230
+ --sc-category-mark: #e6b42c;
231
+ }
232
+
233
+ /* A badge's palette by its kind and its tone, painted here and nowhere else: the fill, the
234
+ words and, for a due day, the line. The rules of parts/badge.css read them. */
235
+ .sc-badge-neutral {
236
+ --sc-badge-fill: #dfe3eb;
237
+ --sc-badge-ink: #3f4756;
238
+ }
239
+
240
+ .sc-badge.sc-badge-kind-priority {
241
+ --sc-badge-fill: #e1e6ee;
242
+ --sc-badge-ink: #3a4558;
243
+ }
244
+
245
+ .sc-badge.sc-badge-kind-priority.sc-badge-point {
246
+ --sc-badge-fill: #ffd4a8;
247
+ --sc-badge-ink: #7a3300;
248
+ }
249
+
250
+ .sc-badge.sc-badge-kind-priority.sc-badge-danger {
251
+ --sc-badge-fill: #fdbcc3;
252
+ --sc-badge-ink: #7d0e1d;
253
+ }
254
+
255
+ .sc-badge.sc-badge-kind-due {
256
+ --sc-badge-line: #a3acba;
257
+ --sc-badge-fill: #f4f6f9;
258
+ --sc-badge-ink: #4b5563;
259
+ }
260
+
261
+ .sc-badge.sc-badge-kind-due.sc-badge-accent {
262
+ --sc-badge-line: #6f93e8;
263
+ --sc-badge-fill: #f0f5ff;
264
+ --sc-badge-ink: #1d4ed8;
265
+ }
266
+
267
+ .sc-badge.sc-badge-kind-due.sc-badge-success {
268
+ --sc-badge-line: #5fb488;
269
+ --sc-badge-fill: #effaf4;
270
+ --sc-badge-ink: #146b44;
271
+ }
272
+
273
+ .sc-badge.sc-badge-kind-due.sc-badge-warning {
274
+ --sc-badge-line: #e0b100;
275
+ --sc-badge-fill: #fffae6;
276
+ --sc-badge-ink: #8a6500;
277
+ }
278
+
279
+ .sc-badge.sc-badge-kind-due.sc-badge-point {
280
+ --sc-badge-line: #f59e3c;
281
+ --sc-badge-fill: #fff4ea;
282
+ --sc-badge-ink: #b45309;
283
+ }
284
+
285
+ .sc-badge.sc-badge-kind-due.sc-badge-due-today {
286
+ --sc-badge-line: #f26b4a;
287
+ --sc-badge-fill: #fff1ec;
288
+ --sc-badge-ink: #c2330f;
289
+ }
290
+
291
+ .sc-badge.sc-badge-kind-due.sc-badge-danger {
292
+ --sc-badge-line: #d33a47;
293
+ --sc-badge-fill: #fff0f1;
294
+ --sc-badge-ink: #c0262f;
295
+ }
@@ -0,0 +1,25 @@
1
+ import type { NavItem } from "./components/shell.js";
2
+
3
+ // What the browser's tab is called: the page shown, the project it is of and the workspace, so
4
+ // that two tabs of one console are told apart and a history reads as where one has been.
5
+
6
+ /** The tab the page is under: the one marked current, or the page of a group that is. */
7
+ export function currentTab(nav: readonly NavItem[]): string | undefined {
8
+ const tab = nav.find((item) => item.current);
9
+ if (tab === undefined) {
10
+ return undefined;
11
+ }
12
+ return (tab.children?.find((child) => child.current) ?? tab).label;
13
+ }
14
+
15
+ /** The parts of a title, the nearest first, each said once and nothing for a part that is not there. */
16
+ export function tabTitle(parts: readonly (string | undefined)[]): string {
17
+ const said: string[] = [];
18
+ for (const part of parts) {
19
+ const word = part?.trim();
20
+ if (word !== undefined && word !== "" && !said.includes(word)) {
21
+ said.push(word);
22
+ }
23
+ }
24
+ return said.join(" · ");
25
+ }
package/src/tokens.ts CHANGED
@@ -12,6 +12,7 @@ export const CONSOLE_TOKENS: readonly string[] = [
12
12
  "--sc-color-text",
13
13
  "--sc-color-text-muted",
14
14
  "--sc-color-text-faint",
15
+ "--sc-color-shade",
15
16
  "--sc-color-accent",
16
17
  "--sc-color-accent-solid",
17
18
  "--sc-color-accent-contrast",
@@ -22,6 +23,7 @@ export const CONSOLE_TOKENS: readonly string[] = [
22
23
  "--sc-color-success-subtle",
23
24
  "--sc-color-warning",
24
25
  "--sc-color-warning-subtle",
26
+ "--sc-color-warning-line",
25
27
  "--sc-color-danger",
26
28
  "--sc-color-danger-subtle",
27
29
  "--sc-color-info",
@@ -50,6 +52,7 @@ export const CONSOLE_TOKENS: readonly string[] = [
50
52
  "--sc-glow",
51
53
  "--sc-shadow-stage",
52
54
  "--sc-shadow-menu",
55
+ "--sc-shadow-sheet",
53
56
  "--sc-font-sans",
54
57
  "--sc-font-mono",
55
58
  "--sc-text-xs",
package/src/use-action.ts CHANGED
@@ -26,18 +26,23 @@ export function errorWords(
26
26
  return wordsForFailure(error, pack) ?? fallback;
27
27
  }
28
28
 
29
- /** Runs a change, keeps what went wrong for the page, and says when it is busy. */
29
+ /**
30
+ * Runs a change, keeps what went wrong for the page, and says when it is busy. `act` answers
31
+ * whether the change went through, for a form that keeps what was written in it where it did not.
32
+ */
30
33
  export function useAction() {
31
34
  const words = useWords();
32
35
  const [busy, setBusy] = useState(false);
33
36
  const [error, setError] = useState<string | undefined>(undefined);
34
- const act = async (work: () => Promise<unknown>) => {
37
+ const act = async (work: () => Promise<unknown>): Promise<boolean> => {
35
38
  setBusy(true);
36
39
  setError(undefined);
37
40
  try {
38
41
  await work();
42
+ return true;
39
43
  } catch (failure) {
40
44
  setError(errorWords(failure, words.common.somethingWentWrong, words));
45
+ return false;
41
46
  } finally {
42
47
  setBusy(false);
43
48
  }
package/src/vocabulary.ts CHANGED
@@ -85,6 +85,150 @@ export const PERSON_ROLES = ["admin", "member"] as const;
85
85
 
86
86
  export type PersonRole = (typeof PERSON_ROLES)[number];
87
87
 
88
+ /**
89
+ * What a member is (ADR-0084): a person, as every member has been, or an agent account, an
90
+ * agent that is a member of its own. The rules make no difference between them but one: an
91
+ * agent account is never a workspace administrator.
92
+ */
93
+ export const PERSON_KINDS = ["person", "agent"] as const;
94
+
95
+ export type PersonKind = (typeof PERSON_KINDS)[number];
96
+
97
+ /**
98
+ * What the first sign-in of an agent account is held to, under a sign-in at a git host, where
99
+ * a login is whoever's registers it (ADR-0126): `account`, the host said which account the
100
+ * login is when the account was added, and that account alone is let in as it, whatever it is
101
+ * called by then; `member`, the host did not say, and the account is let in where the
102
+ * organization at the host has the login as a member at that sign-in; `login`, the host did not
103
+ * say and the console reads no organization there, so whoever holds the login is let in.
104
+ */
105
+ export const FIRST_SIGN_INS = ["account", "member", "login"] as const;
106
+
107
+ export type FirstSignIn = (typeof FIRST_SIGN_INS)[number];
108
+
109
+ /**
110
+ * What holds a session (ADR-0084): a browser a member is signed in on, or the command signed in
111
+ * as the account itself, which presents its session as a token is presented and is held to what
112
+ * a token may ask.
113
+ */
114
+ export const SESSION_KINDS = ["browser", "command"] as const;
115
+
116
+ export type SessionKind = (typeof SESSION_KINDS)[number];
117
+
118
+ /**
119
+ * Why an agent account stands as it does (ADR-0085), one of a short list and never what was
120
+ * said: the runner's word for what it reports, `stop` for a supervisor's, `no_heartbeat` for an
121
+ * account the console has not heard from.
122
+ */
123
+ export const AGENT_STATE_REASONS = [
124
+ "started",
125
+ "resumed",
126
+ "reset",
127
+ "completed",
128
+ "stop",
129
+ "model_refused",
130
+ "sign_in",
131
+ "start",
132
+ "crashed",
133
+ "no_heartbeat",
134
+ ] as const;
135
+
136
+ export type AgentStateReason = (typeof AGENT_STATE_REASONS)[number];
137
+
138
+ /**
139
+ * What the console sends an agent account's runner (ADR-0085): a wake, a supervisor's words, an
140
+ * interruption with words, a stop, a start with the same conversation or with a new one, and
141
+ * the model and the level of effort to run with.
142
+ */
143
+ export const SIGNAL_KINDS = [
144
+ "wake",
145
+ "tell",
146
+ "interrupt",
147
+ "stop",
148
+ "restart",
149
+ "reset",
150
+ "set",
151
+ ] as const;
152
+
153
+ export type SignalKind = (typeof SIGNAL_KINDS)[number];
154
+
155
+ /**
156
+ * What a service is to a workspace's agents (ADR-0089): the one their accounts sign in through,
157
+ * the git host, the messenger.
158
+ */
159
+ export const SERVICE_ROLES = ["identity", "git", "messenger"] as const;
160
+
161
+ export type ServiceRole = (typeof SERVICE_ROLES)[number];
162
+
163
+ /** Where a signal came from: a supervisor's own, the board, the schedule, a messenger, or the console's own housekeeping. */
164
+ export const SIGNAL_SOURCES = ["person", "board", "schedule", "messenger", "console"] as const;
165
+
166
+ export type SignalSource = (typeof SIGNAL_SOURCES)[number];
167
+
168
+ /**
169
+ * How a runner's session ended (ADR-0085, ADR-0086): a supervisor stopped the agent, restarted
170
+ * it or reset it; the product's process died, or exited by itself; or a session begun after it
171
+ * took it over, which is the console's word and never the runner's.
172
+ */
173
+ export const SESSION_ENDS = [
174
+ "stopped",
175
+ "restarted",
176
+ "reset",
177
+ "crashed",
178
+ "exited",
179
+ "taken_over",
180
+ ] as const;
181
+
182
+ export type SessionEnd = (typeof SESSION_ENDS)[number];
183
+
184
+ /**
185
+ * What an event of a session's transcript is (ADR-0086): what the agent was sent, `wake` by the
186
+ * console and `person` by a supervisor; what it said and what it thought; a tool it called and
187
+ * what came back; a permission asked and how it was answered; a status of the product or of the
188
+ * session; an error.
189
+ */
190
+ export const TRANSCRIPT_KINDS = [
191
+ "wake",
192
+ "person",
193
+ "assistant",
194
+ "thinking",
195
+ "tool_call",
196
+ "tool_result",
197
+ "permission",
198
+ "status",
199
+ "error",
200
+ ] as const;
201
+
202
+ export type TranscriptKind = (typeof TRANSCRIPT_KINDS)[number];
203
+
204
+ /** The kinds of picture a transcript keeps: what an agent's tools returned, shown in place and never run. */
205
+ export const TRANSCRIPT_PICTURE_TYPES = [
206
+ "image/png",
207
+ "image/jpeg",
208
+ "image/gif",
209
+ "image/webp",
210
+ ] as const;
211
+
212
+ export type TranscriptPictureType = (typeof TRANSCRIPT_PICTURE_TYPES)[number];
213
+
214
+ /**
215
+ * What was done to a secret of an agent account's store (ADR-0087), as the account's record
216
+ * says it: set, by the account or seeded by a supervisor; read, by the account; or removed.
217
+ */
218
+ export const SECRET_ACCESSES = ["set", "read", "removed"] as const;
219
+
220
+ export type SecretAccess = (typeof SECRET_ACCESSES)[number];
221
+
222
+ /**
223
+ * How an agent account stands, in one word (ADR-0085): `running`, its runner heard from and the
224
+ * agent at work or ready for it; `stopped`, by a supervisor, until one starts it again; `refused`,
225
+ * the model would not answer; `failed`, its product could not start or sign in; `unheard`, its
226
+ * runner not heard from for a while. `null` where no runner has ever said.
227
+ */
228
+ export const AGENT_STATES = ["running", "stopped", "refused", "failed", "unheard"] as const;
229
+
230
+ export type AgentState = (typeof AGENT_STATES)[number];
231
+
88
232
  /**
89
233
  * Whether a person is in: `active`, or `deactivated`, which is kept rather than deleted so that
90
234
  * what they did stays theirs (ADR-0022). A deactivated person is refused on every request.
@@ -173,9 +317,10 @@ export const SKILLS_STATUSES = [
173
317
  export type SkillsStatus = (typeof SKILLS_STATUSES)[number];
174
318
 
175
319
  /**
176
- * Where the rules that hold on a board come from (ADR-0023): the console's own, since the
177
- * organization wrote none; a page the organization or the project wrote; or none, for a
178
- * project that adds nothing to the workspace's.
320
+ * What stands beside the console's rules (ADR-0023, ADR-0120), in the words the API has had
321
+ * from the start: `reference`, the console's rules alone, since the organization adds
322
+ * nothing; `written`, a page the organization or the project wrote, which adds to them; or
323
+ * `none`, for a project that adds nothing to the workspace's.
179
324
  */
180
325
  export const RULES_SOURCES = ["reference", "written", "none"] as const;
181
326
 
@@ -194,6 +339,8 @@ export const EVENT_KINDS = [
194
339
  "person.reactivated",
195
340
  "person.manager_changed",
196
341
  "person.email_changed",
342
+ "person.updated",
343
+ "agent.state_changed",
197
344
  "team.created",
198
345
  "team.renamed",
199
346
  "team.removed",
@@ -218,6 +365,7 @@ export const EVENT_KINDS = [
218
365
  "task.restored",
219
366
  "decision.raised",
220
367
  "decision.answered",
368
+ "decision.addressed",
221
369
  "decision.updated",
222
370
  "run.started",
223
371
  "run.reported",
@@ -0,0 +1,8 @@
1
+ # __TITLE__: the pages
2
+
3
+ The pages of my desk: a console of my own, built from `@skillcdn/console` and served from this machine by `console serve`, with the token my `console` command holds, which the pages never see. It is the organization's console with the pages I add to it. There is one, mine, and it is empty until I say what I want to see: an agent working in this desk builds it from what I ask. Of the desk the pages read `../records` and nothing else.
4
+
5
+ - **Build it:** `npm install`, then `npm run build`, which says nothing of its own where it went well and leaves the pages in `dist/`.
6
+ - **Serve it:** `npm run serve`, which is `console serve dist --records ../records`, then open `http://127.0.0.1:11197/`. Ctrl+C stops it.
7
+ - **Change it:** `src/page.tsx` is my page, and its comments say what a page is given, what it may read and what it is built from (`node_modules/@skillcdn/console/README.md`, "Pages of your own"); `src/main.tsx` lists the pages, and a page more is a file beside it and an entry more. `npm run dev` beside `console serve --records ../records` shows a change as it is made.
8
+ - **Keep it current:** `@skillcdn/console` here is at the version of the `console` command that wrote these files; raise the two together.
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta name="color-scheme" content="light" />
7
+ <title>__TITLE__</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "desk-web",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "description": "The pages of my desk: a console of my own, served from this machine by console serve.",
6
+ "type": "module",
7
+ "scripts": {
8
+ "dev": "vite",
9
+ "build": "tsc -p tsconfig.json --noEmit && vite build --logLevel warn",
10
+ "serve": "console serve dist --records ../records"
11
+ },
12
+ "dependencies": {
13
+ "@skillcdn/console": "__VERSION__",
14
+ "pretendard": "1.3.9",
15
+ "react": "^19.3.1",
16
+ "react-dom": "^19.3.1"
17
+ },
18
+ "devDependencies": {
19
+ "@types/react": "^19.3.0",
20
+ "@types/react-dom": "^19.3.0",
21
+ "@vitejs/plugin-react": "^6.2.1",
22
+ "typescript": "^7.0.2",
23
+ "vite": "^8.3.5"
24
+ }
25
+ }
@@ -0,0 +1,24 @@
1
+ import { createConsole, customPageHref } from "@skillcdn/console";
2
+ // The styles ship with the package; the build bundles them next to the script.
3
+ import "@skillcdn/console/console.css";
4
+ // The Korean face of the console's pages, in the subsets a browser fetches as it needs them;
5
+ // the package's stylesheet names it first and falls through to the system's faces.
6
+ import "pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css";
7
+ import { page } from "./page.js";
8
+
9
+ // The pages of this desk: a console of my own, built from the package and served from this
10
+ // machine by `console serve`. It is the organization's console with the pages I add to it:
11
+ // `pages` below lists them, each written in a file beside this one, and a page more is a file
12
+ // more and an entry more. page.tsx is the first, and says what a page is given, what it may
13
+ // read and what it is built from.
14
+
15
+ const container = document.getElementById("root");
16
+ if (container === null) {
17
+ throw new Error("the page has no #root element");
18
+ }
19
+ // My page is what this console opens on: the address without a path is the page's.
20
+ if (window.location.pathname === "/") {
21
+ window.history.replaceState(null, "", customPageHref(page.key));
22
+ }
23
+ // What the page is called until the server names the board: the title index.html gives it.
24
+ createConsole({ title: document.title, pages: [page] }).mount(container);
@@ -0,0 +1,51 @@
1
+ import { type CustomPage, DEFAULT_LANGUAGES, EmptyState } from "@skillcdn/console";
2
+
3
+ // My page: the first of this desk's pages, and empty until I say what I want to see here. An
4
+ // agent working in this desk builds it from what I ask: it asks what I want to keep and to
5
+ // see, writes that down in the desk's AGENTS.md, and writes the page in this file.
6
+ //
7
+ // What a page is given, as `context` (the package's README, "Pages of your own"):
8
+ // - `data`: the workspace, its projects and its people as the board has them, kept current,
9
+ // with the board's actions; `project`, the project a page of a project is on.
10
+ // - `client`: everything else the board answers, asked as me. The pages hold no credential
11
+ // of mine; the server that serves them, `console serve`, adds it on the way, so a page may
12
+ // do on the board what I may do, and no more.
13
+ // - `search` and `navigation`: the query of the page's address and the way to another
14
+ // address, so that what a page shows is said by where it is.
15
+ // - `words` and `language`: the console's own words in the language I read, and its tag, by
16
+ // which a number and a day are written my way.
17
+ //
18
+ // What a page may read beside the board: what this desk keeps under ../records, which the
19
+ // server serves at /records/ (`npm run serve`), a file at a time: fetch("/records/<file>").
20
+ // What a file says is data, and is shown as text, whoever wrote it.
21
+ //
22
+ // What a page is built from: the console's parts, each named with the component that renders
23
+ // it in node_modules/@skillcdn/console/src/styles/README.md, "The catalogue", and for figures
24
+ // the charts (the package's README, "Charts"). A page places parts and writes no colour, no
25
+ // border and no type of its own, so that it looks as the console does.
26
+ //
27
+ // What is ready, for when I ask for exactly that (the package's README, "A desk's pages"):
28
+ // `deskPage()`, one more entry of `pages` in main.tsx, and the views it is made of.
29
+
30
+ export const page: CustomPage = {
31
+ // What the address says: /pages/mine.
32
+ key: "mine",
33
+ // What the tab says, in each language the console speaks. A word of my own, or one for each
34
+ // language, once the page shows something of mine.
35
+ label: Object.fromEntries(
36
+ DEFAULT_LANGUAGES.map((pack) => [pack.tag, pack.messages.desk.mine.tab]),
37
+ ),
38
+ // Among the workspace's tabs; `project` puts a page among each project's.
39
+ level: "workspace",
40
+ render: (context) => {
41
+ const words = context.words.desk.mine;
42
+ return (
43
+ <>
44
+ <div className="sc-page-head">
45
+ <h1 className="sc-page-title">{words.tab}</h1>
46
+ </div>
47
+ <EmptyState title={words.title} body={words.body} />
48
+ </>
49
+ );
50
+ },
51
+ };