@skillcdn/console 0.5.1 → 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 (288) hide show
  1. package/README.md +20 -2
  2. package/dist/agent-page.d.ts.map +1 -1
  3. package/dist/agent-page.js +4 -4
  4. package/dist/agent-page.js.map +1 -1
  5. package/dist/api.d.ts +5 -4
  6. package/dist/api.d.ts.map +1 -1
  7. package/dist/api.js +5 -4
  8. package/dist/api.js.map +1 -1
  9. package/dist/cli/cli.d.ts +32 -0
  10. package/dist/cli/cli.d.ts.map +1 -1
  11. package/dist/cli/cli.js +442 -93
  12. package/dist/cli/cli.js.map +1 -1
  13. package/dist/cli/format.d.ts +6 -2
  14. package/dist/cli/format.d.ts.map +1 -1
  15. package/dist/cli/format.js +25 -3
  16. package/dist/cli/format.js.map +1 -1
  17. package/dist/cli/help.d.ts.map +1 -1
  18. package/dist/cli/help.js +10 -5
  19. package/dist/cli/help.js.map +1 -1
  20. package/dist/cli/machine-check.d.ts +36 -0
  21. package/dist/cli/machine-check.d.ts.map +1 -0
  22. package/dist/cli/machine-check.js +151 -0
  23. package/dist/cli/machine-check.js.map +1 -0
  24. package/dist/cli/runner-host.d.ts +7 -0
  25. package/dist/cli/runner-host.d.ts.map +1 -1
  26. package/dist/cli/runner-host.js +2 -0
  27. package/dist/cli/runner-host.js.map +1 -1
  28. package/dist/cli/secret-notes.d.ts +8 -0
  29. package/dist/cli/secret-notes.d.ts.map +1 -0
  30. package/dist/cli/secret-notes.js +48 -0
  31. package/dist/cli/secret-notes.js.map +1 -0
  32. package/dist/client.d.ts +7 -1
  33. package/dist/client.d.ts.map +1 -1
  34. package/dist/client.js +6 -1
  35. package/dist/client.js.map +1 -1
  36. package/dist/components/agent-page.d.ts +106 -13
  37. package/dist/components/agent-page.d.ts.map +1 -1
  38. package/dist/components/agent-page.js +391 -102
  39. package/dist/components/agent-page.js.map +1 -1
  40. package/dist/components/agents.d.ts.map +1 -1
  41. package/dist/components/agents.js +1 -1
  42. package/dist/components/agents.js.map +1 -1
  43. package/dist/components/board.d.ts.map +1 -1
  44. package/dist/components/board.js +3 -2
  45. package/dist/components/board.js.map +1 -1
  46. package/dist/components/categories.js +1 -1
  47. package/dist/components/categories.js.map +1 -1
  48. package/dist/components/decision-list.d.ts.map +1 -1
  49. package/dist/components/decision-list.js +1 -1
  50. package/dist/components/decision-list.js.map +1 -1
  51. package/dist/components/event-feed.d.ts.map +1 -1
  52. package/dist/components/event-feed.js +3 -2
  53. package/dist/components/event-feed.js.map +1 -1
  54. package/dist/components/goals.d.ts +2 -0
  55. package/dist/components/goals.d.ts.map +1 -1
  56. package/dist/components/goals.js +1 -1
  57. package/dist/components/goals.js.map +1 -1
  58. package/dist/components/home.d.ts.map +1 -1
  59. package/dist/components/home.js +12 -6
  60. package/dist/components/home.js.map +1 -1
  61. package/dist/components/icon.d.ts +31 -0
  62. package/dist/components/icon.d.ts.map +1 -0
  63. package/dist/components/icon.js +169 -0
  64. package/dist/components/icon.js.map +1 -0
  65. package/dist/components/markdown.d.ts +6 -0
  66. package/dist/components/markdown.d.ts.map +1 -1
  67. package/dist/components/markdown.js +10 -2
  68. package/dist/components/markdown.js.map +1 -1
  69. package/dist/components/people.js +1 -1
  70. package/dist/components/people.js.map +1 -1
  71. package/dist/components/plugin-frame.d.ts.map +1 -1
  72. package/dist/components/plugin-frame.js +7 -0
  73. package/dist/components/plugin-frame.js.map +1 -1
  74. package/dist/components/projects.d.ts +17 -4
  75. package/dist/components/projects.d.ts.map +1 -1
  76. package/dist/components/projects.js +25 -6
  77. package/dist/components/projects.js.map +1 -1
  78. package/dist/components/sessions.d.ts.map +1 -1
  79. package/dist/components/sessions.js +3 -2
  80. package/dist/components/sessions.js.map +1 -1
  81. package/dist/components/setup.d.ts.map +1 -1
  82. package/dist/components/setup.js +2 -2
  83. package/dist/components/setup.js.map +1 -1
  84. package/dist/components/shell.d.ts.map +1 -1
  85. package/dist/components/shell.js +3 -2
  86. package/dist/components/shell.js.map +1 -1
  87. package/dist/components/tokens.js +1 -1
  88. package/dist/components/tokens.js.map +1 -1
  89. package/dist/components/ui.d.ts +5 -2
  90. package/dist/components/ui.d.ts.map +1 -1
  91. package/dist/components/ui.js +10 -7
  92. package/dist/components/ui.js.map +1 -1
  93. package/dist/connect-page.js +1 -1
  94. package/dist/connect-page.js.map +1 -1
  95. package/dist/console.css +473 -77
  96. package/dist/console.d.ts.map +1 -1
  97. package/dist/console.js +38 -31
  98. package/dist/console.js.map +1 -1
  99. package/dist/home-tiles.d.ts +9 -0
  100. package/dist/home-tiles.d.ts.map +1 -1
  101. package/dist/home-tiles.js +105 -23
  102. package/dist/home-tiles.js.map +1 -1
  103. package/dist/i18n/en.d.ts +48 -1
  104. package/dist/i18n/en.d.ts.map +1 -1
  105. package/dist/i18n/en.js +125 -2
  106. package/dist/i18n/en.js.map +1 -1
  107. package/dist/i18n/ko.d.ts.map +1 -1
  108. package/dist/i18n/ko.js +197 -79
  109. package/dist/i18n/ko.js.map +1 -1
  110. package/dist/i18n/particles.d.ts +7 -0
  111. package/dist/i18n/particles.d.ts.map +1 -0
  112. package/dist/i18n/particles.js +72 -0
  113. package/dist/i18n/particles.js.map +1 -0
  114. package/dist/icons/glyphs.d.ts +605 -0
  115. package/dist/icons/glyphs.d.ts.map +1 -0
  116. package/dist/icons/glyphs.js +104 -0
  117. package/dist/icons/glyphs.js.map +1 -0
  118. package/dist/icons/index.d.ts +59 -0
  119. package/dist/icons/index.d.ts.map +1 -0
  120. package/dist/icons/index.js +157 -0
  121. package/dist/icons/index.js.map +1 -0
  122. package/dist/index.d.ts +1 -0
  123. package/dist/index.d.ts.map +1 -1
  124. package/dist/index.js +1 -0
  125. package/dist/index.js.map +1 -1
  126. package/dist/limits.d.ts +9 -0
  127. package/dist/limits.d.ts.map +1 -1
  128. package/dist/limits.js +9 -0
  129. package/dist/limits.js.map +1 -1
  130. package/dist/marks.d.ts +9 -0
  131. package/dist/marks.d.ts.map +1 -1
  132. package/dist/marks.js +9 -0
  133. package/dist/marks.js.map +1 -1
  134. package/dist/onboarding.js +3 -3
  135. package/dist/onboarding.js.map +1 -1
  136. package/dist/plugin/web.d.ts +3 -0
  137. package/dist/plugin/web.d.ts.map +1 -1
  138. package/dist/plugin/web.js +5 -1
  139. package/dist/plugin/web.js.map +1 -1
  140. package/dist/runner/acp.d.ts.map +1 -1
  141. package/dist/runner/acp.js +2 -2
  142. package/dist/runner/acp.js.map +1 -1
  143. package/dist/runner/awake.d.ts +35 -0
  144. package/dist/runner/awake.d.ts.map +1 -0
  145. package/dist/runner/awake.js +95 -0
  146. package/dist/runner/awake.js.map +1 -0
  147. package/dist/runner/claude.d.ts.map +1 -1
  148. package/dist/runner/claude.js +19 -7
  149. package/dist/runner/claude.js.map +1 -1
  150. package/dist/runner/codex.d.ts.map +1 -1
  151. package/dist/runner/codex.js +2 -2
  152. package/dist/runner/codex.js.map +1 -1
  153. package/dist/runner/config.d.ts +5 -0
  154. package/dist/runner/config.d.ts.map +1 -1
  155. package/dist/runner/config.js +9 -0
  156. package/dist/runner/config.js.map +1 -1
  157. package/dist/runner/desk.d.ts.map +1 -1
  158. package/dist/runner/desk.js +5 -6
  159. package/dist/runner/desk.js.map +1 -1
  160. package/dist/runner/runner.d.ts +13 -2
  161. package/dist/runner/runner.d.ts.map +1 -1
  162. package/dist/runner/runner.js +141 -22
  163. package/dist/runner/runner.js.map +1 -1
  164. package/dist/runner/slack.d.ts.map +1 -1
  165. package/dist/runner/slack.js +10 -4
  166. package/dist/runner/slack.js.map +1 -1
  167. package/dist/runner/types.d.ts +15 -0
  168. package/dist/runner/types.d.ts.map +1 -1
  169. package/dist/runner/types.js +9 -0
  170. package/dist/runner/types.js.map +1 -1
  171. package/dist/schemas.d.ts +94 -1
  172. package/dist/schemas.d.ts.map +1 -1
  173. package/dist/schemas.js +81 -5
  174. package/dist/schemas.js.map +1 -1
  175. package/dist/services.d.ts.map +1 -1
  176. package/dist/services.js +9 -5
  177. package/dist/services.js.map +1 -1
  178. package/dist/setup-guide.d.ts +14 -3
  179. package/dist/setup-guide.d.ts.map +1 -1
  180. package/dist/setup-guide.js +41 -37
  181. package/dist/setup-guide.js.map +1 -1
  182. package/dist/tokens.d.ts.map +1 -1
  183. package/dist/tokens.js +5 -1
  184. package/dist/tokens.js.map +1 -1
  185. package/dist/vocabulary.d.ts +7 -0
  186. package/dist/vocabulary.d.ts.map +1 -1
  187. package/dist/vocabulary.js +6 -0
  188. package/dist/vocabulary.js.map +1 -1
  189. package/docs/specs/cli.md +10 -7
  190. package/docs/specs/plugins.md +17 -6
  191. package/docs/specs/rest.md +10 -8
  192. package/docs/specs/runner.md +26 -8
  193. package/package.json +7 -3
  194. package/skills/building-a-console/SKILL.md +2 -2
  195. package/skills/building-a-plugin/SKILL.md +2 -2
  196. package/skills/keeping-a-desk/SKILL.md +2 -2
  197. package/skills/running-an-agent/SKILL.md +47 -57
  198. package/skills/working-the-board/SKILL.md +5 -4
  199. package/skills/working-the-board/references/the-pack.md +1 -1
  200. package/src/agent-page.tsx +13 -1
  201. package/src/api.ts +32 -1
  202. package/src/cli/cli.ts +530 -106
  203. package/src/cli/format.ts +31 -3
  204. package/src/cli/help.ts +12 -4
  205. package/src/cli/machine-check.ts +223 -0
  206. package/src/cli/runner-host.ts +8 -0
  207. package/src/cli/secret-notes.ts +63 -0
  208. package/src/client.ts +23 -0
  209. package/src/components/agent-page.tsx +629 -112
  210. package/src/components/agents.tsx +9 -5
  211. package/src/components/board.tsx +3 -15
  212. package/src/components/categories.tsx +2 -2
  213. package/src/components/decision-list.tsx +11 -7
  214. package/src/components/event-feed.tsx +7 -2
  215. package/src/components/goals.tsx +33 -25
  216. package/src/components/home.tsx +30 -6
  217. package/src/components/icon.tsx +337 -0
  218. package/src/components/markdown.tsx +22 -2
  219. package/src/components/people.tsx +1 -1
  220. package/src/components/plugin-frame.tsx +7 -0
  221. package/src/components/projects.tsx +39 -5
  222. package/src/components/sessions.tsx +2 -13
  223. package/src/components/setup.tsx +2 -2
  224. package/src/components/shell.tsx +3 -20
  225. package/src/components/tokens.tsx +1 -1
  226. package/src/components/ui.tsx +16 -8
  227. package/src/connect-page.tsx +1 -1
  228. package/src/console.tsx +87 -53
  229. package/src/home-tiles.ts +127 -23
  230. package/src/i18n/en.ts +127 -2
  231. package/src/i18n/ko.ts +200 -79
  232. package/src/i18n/particles.ts +79 -0
  233. package/src/icons/glyphs.ts +112 -0
  234. package/src/icons/index.ts +195 -0
  235. package/src/index.ts +7 -0
  236. package/src/limits.ts +9 -0
  237. package/src/marks.ts +12 -0
  238. package/src/onboarding.ts +3 -3
  239. package/src/plugin/web.ts +9 -2
  240. package/src/runner/acp.ts +2 -1
  241. package/src/runner/awake.ts +135 -0
  242. package/src/runner/claude.ts +19 -4
  243. package/src/runner/codex.ts +2 -1
  244. package/src/runner/config.ts +9 -0
  245. package/src/runner/desk.ts +5 -6
  246. package/src/runner/runner.ts +183 -23
  247. package/src/runner/slack.ts +10 -4
  248. package/src/runner/types.ts +20 -0
  249. package/src/schemas.ts +94 -3
  250. package/src/services.ts +9 -5
  251. package/src/setup-guide.ts +43 -38
  252. package/src/styles/README.md +5 -4
  253. package/src/styles/base.css +17 -0
  254. package/src/styles/console.css +1 -0
  255. package/src/styles/drawn-by-pages.json +1 -1
  256. package/src/styles/pages/agents.css +103 -1
  257. package/src/styles/pages/board.css +0 -10
  258. package/src/styles/pages/calendar.css +1 -1
  259. package/src/styles/pages/connect.css +0 -10
  260. package/src/styles/pages/decisions.css +3 -1
  261. package/src/styles/pages/feed.css +5 -2
  262. package/src/styles/pages/home.css +5 -0
  263. package/src/styles/pages/roadmap.css +2 -2
  264. package/src/styles/pages/settings.css +11 -0
  265. package/src/styles/pages/task.css +0 -20
  266. package/src/styles/pages/thread.css +1 -1
  267. package/src/styles/parts/calendar.css +1 -1
  268. package/src/styles/parts/callout.css +1 -0
  269. package/src/styles/parts/detail.css +22 -0
  270. package/src/styles/parts/empty.css +2 -0
  271. package/src/styles/parts/eyebrow.css +1 -1
  272. package/src/styles/parts/facts.css +1 -1
  273. package/src/styles/parts/figures.css +1 -1
  274. package/src/styles/parts/form.css +2 -1
  275. package/src/styles/parts/icon.css +191 -0
  276. package/src/styles/parts/input.css +14 -4
  277. package/src/styles/parts/mark.css +36 -0
  278. package/src/styles/parts/menu.css +1 -7
  279. package/src/styles/parts/page.css +1 -1
  280. package/src/styles/parts/panel.css +10 -0
  281. package/src/styles/parts/person.css +5 -2
  282. package/src/styles/parts/progress.css +5 -2
  283. package/src/styles/parts/rows.css +1 -0
  284. package/src/styles/parts/settings.css +5 -0
  285. package/src/styles/parts/stat.css +1 -1
  286. package/src/styles/tokens.css +22 -7
  287. package/src/tokens.ts +5 -1
  288. package/src/vocabulary.ts +9 -0
package/src/home-tiles.ts CHANGED
@@ -364,13 +364,21 @@ function packed(
364
364
  * fewest tiles leave the size they would rather have, then so that the page is the shortest. The
365
365
  * projects take one size together, so that they line up as a row of the same tiles; a widget
366
366
  * takes any of its own. A page that cannot close leaves the fewest cells empty it can.
367
+ *
368
+ * Where the page is the one a person is about to arrange, or has arranged (ADR-0139), what is
369
+ * on it is `kept`: an icon stays an icon, and a widget is given another size only where that
370
+ * takes no cell from it. A page that closed by turning the projects into cards, or by cutting
371
+ * its lead to a strip, would be another page than the one they looked at, and a lead beside a
372
+ * few icons scores better as a strip, since a strip takes fewer rows to count. What is empty is
373
+ * then counted in the rows the widgets take alone: the projects' last row may end short, as on
374
+ * the composed page (ADR-0108), and a row of icons under the widgets is no gap to close.
367
375
  */
368
- function closedUp(wanted: readonly Wanted[], columns: number): PlacedTile[] {
376
+ function closedUp(wanted: readonly Wanted[], columns: number, kept = false): PlacedTile[] {
369
377
  const projects = wanted.flatMap((entry, at) => (entry.tile.kind === "project" ? [at] : []));
370
378
  // The choices: for each widget its sizes, the one it would rather have first; for the projects
371
379
  // together, each its own, then each of the sizes a project comes in, all alike.
372
380
  const choices: { readonly at: readonly number[]; readonly options: HomeTileSize[][] }[] = [];
373
- if (projects.length > 0) {
381
+ if (projects.length > 0 && !kept) {
374
382
  const own = projects.map((at) => wanted[at]?.size ?? "icon");
375
383
  const alike = PROJECT_ALIKE_SIZES.filter(
376
384
  (size) => HOME_TILE_CELLS[size].columns <= columns,
@@ -385,7 +393,13 @@ function closedUp(wanted: readonly Wanted[], columns: number): PlacedTile[] {
385
393
  if (entry.tile.kind !== "widget") {
386
394
  return;
387
395
  }
388
- const others = sizesAt(entry.tile, columns).filter((size) => size !== entry.size);
396
+ const cells = (size: HomeTileSize) => {
397
+ const { w, h } = footprintOf(size, columns);
398
+ return w * h;
399
+ };
400
+ const others = sizesAt(entry.tile, columns).filter(
401
+ (size) => size !== entry.size && (!kept || cells(size) >= cells(entry.size)),
402
+ );
389
403
  const all = [entry.size, ...others];
390
404
  // Past what can be tried at once, a widget keeps the size it would rather have.
391
405
  const options = combinations * all.length <= MOST_COMBINATIONS ? all : [entry.size];
@@ -400,11 +414,20 @@ function closedUp(wanted: readonly Wanted[], columns: number): PlacedTile[] {
400
414
  if (choice === undefined) {
401
415
  const placed = packed(wanted, sizes, columns);
402
416
  const rows = rowsOf(placed, columns);
403
- const filled = placed.reduce((cells, { size }) => {
417
+ // The rows what is empty is counted in: the page's, or those the widgets take.
418
+ const counted = kept
419
+ ? Math.max(
420
+ 0,
421
+ ...placed
422
+ .filter(({ tile }) => tile.kind === "widget")
423
+ .map((tile) => tile.y + footprintOf(tile.size, columns).h),
424
+ )
425
+ : rows;
426
+ const filled = placed.reduce((cells, { size, y }) => {
404
427
  const { w, h } = footprintOf(size, columns);
405
- return cells + w * h;
428
+ return cells + w * Math.max(0, Math.min(y + h, counted) - y);
406
429
  }, 0);
407
- const score = [rows * columns - filled, changed, rows];
430
+ const score = [counted * columns - filled, changed, rows];
408
431
  if (best === undefined || lessThan(score, best.score)) {
409
432
  best = { placed, score };
410
433
  }
@@ -442,18 +465,27 @@ export function arranged(
442
465
  const hidden = new Set(home?.hidden ?? []);
443
466
  const { entries, placed: keepsPlaces } = keptAt(home, columns);
444
467
  if (nobodyArranged(home)) {
445
- // Arranging starts from the page as it was composed, each tile on the cells nearest it: a
446
- // project on the very cell it stood on (ADR-0108), a lead alone on its own (ADR-0110).
447
- const taken = new Set<number>();
448
- return composed(tiles, home, columns).map(({ tile, size, x, y }) => {
468
+ // Where the composed page stands every tile on whole cells at a size it comes in, a lead
469
+ // alone with the projects beside it (ADR-0110), the projects alone (ADR-0108), a narrow grid
470
+ // (ADR-0139), arranging starts on those very cells: the page and its arranging do not differ.
471
+ const boxes = composed(tiles, home, columns);
472
+ const whole = boxes.every(({ x, y, w, h, size }) => {
449
473
  const shape = footprintOf(size, columns);
450
- const near = { x: Math.round(x), y: Math.round(y) };
451
- const place = fits(taken, near, shape, columns)
452
- ? near
453
- : nearestRoom(taken, shape, near, columns);
454
- occupy(taken, place, shape, columns);
455
- return { tile, size, ...place };
474
+ return Number.isInteger(x) && Number.isInteger(y) && shape.w === w && shape.h === h;
456
475
  });
476
+ if (whole) {
477
+ return boxes.map(({ tile, size, x, y }) => ({ tile, size, x, y }));
478
+ }
479
+ // Otherwise it starts from the page closed up (ADR-0139): the tiles in the page's order, a
480
+ // widget at the size the composed page told it, or at another of its own that takes no cell
481
+ // from it where the rows close with that, the projects icons as they were. Put on the cells
482
+ // nearest where the composed page drew them, a tile drawn wider than any size it comes in
483
+ // left a band of empty cells beside it, and Done kept the bands.
484
+ const told = new Map(boxes.map(({ tile, size }) => [tile.id, size]));
485
+ const wanted = tiles
486
+ .filter((tile) => !hidden.has(tile.id))
487
+ .map((tile) => ({ tile, size: told.get(tile.id) ?? startingSizeAt(tile, columns) }));
488
+ return closedUp(wanted, columns, true);
457
489
  }
458
490
  if (!keepsPlaces) {
459
491
  const wanted: Wanted[] = [];
@@ -507,6 +539,34 @@ export function arranged(
507
539
  return placed;
508
540
  }
509
541
 
542
+ /**
543
+ * A page being arranged, closed up (ADR-0139): its tiles in the order they are read, from the
544
+ * top, each widget at the size it has where the rows close with it and at another of its own
545
+ * where they do not, the projects as they are. What a person asks for when a page they kept has
546
+ * gaps they did not mean: from a tile that left, or from the page as it was first arranged.
547
+ */
548
+ export function tidied(placed: readonly PlacedTile[], columns: number): PlacedTile[] {
549
+ return closedUp(
550
+ inReadingOrder(placed).map(({ tile, size }) => ({ tile, size })),
551
+ columns,
552
+ true,
553
+ );
554
+ }
555
+
556
+ /** Whether two arrangements stand every tile on the same cells at the same size. */
557
+ export function sameArrangement(a: readonly PlacedTile[], b: readonly PlacedTile[]): boolean {
558
+ const at = new Map(b.map((tile) => [tile.tile.id, tile]));
559
+ return (
560
+ a.length === b.length &&
561
+ a.every((tile) => {
562
+ const other = at.get(tile.tile.id);
563
+ return (
564
+ other !== undefined && other.x === tile.x && other.y === tile.y && other.size === tile.size
565
+ );
566
+ })
567
+ );
568
+ }
569
+
510
570
  /** How many rows the page takes. */
511
571
  export function rowsOf(placed: readonly PlacedTile[], columns: number): number {
512
572
  return Math.max(0, ...placed.map((tile) => tile.y + footprintOf(tile.size, columns).h));
@@ -608,13 +668,13 @@ export function composed(
608
668
  * The projects beside a tile in the page's corner, so wide and so high: one to a cell in the
609
669
  * columns it leaves, no lower than it reaches, then across the page below it. The row after them.
610
670
  */
611
- const putProjectsBeside = (w: number, h: number): number => {
671
+ const putProjectsBeside = (w: number, h: number, from = 0): number => {
612
672
  const across = columns - w;
613
- const beside = Math.min(projects.length, across * h);
673
+ const beside = Math.min(projects.length, across * (h - from));
614
674
  projects.forEach((tile, nth) => {
615
675
  const below = nth - beside;
616
676
  if (below < 0) {
617
- put(tile, w + (nth % across), Math.floor(nth / across), 1, 1);
677
+ put(tile, w + (nth % across), from + Math.floor(nth / across), 1, 1);
618
678
  } else {
619
679
  put(tile, below % columns, h + Math.floor(below / columns), 1, 1);
620
680
  }
@@ -622,6 +682,41 @@ export function composed(
622
682
  const left = projects.length - beside;
623
683
  return h + Math.ceil(left / columns);
624
684
  };
685
+ /**
686
+ * The widgets after the lead that stand beside it where it stands at a size of its own and
687
+ * leaves columns (ADR-0139): in their order, each at the largest of its sizes those columns
688
+ * hold, one under the other, no lower than the lead reaches, and none after the first that
689
+ * has no such size. How many stand there, and how far down they reach.
690
+ */
691
+ const putWidgetsBeside = (
692
+ list: readonly HomeTile[],
693
+ w: number,
694
+ h: number,
695
+ ): { readonly stood: number; readonly down: number } => {
696
+ const across = columns - w;
697
+ const area = (size: HomeTileSize) => HOME_TILE_CELLS[size].columns * HOME_TILE_CELLS[size].rows;
698
+ let down = 0;
699
+ let stood = 0;
700
+ for (const tile of list) {
701
+ const [size] = sizesAt(tile, columns)
702
+ .filter((candidate) => {
703
+ const cells = footprintOf(candidate, columns);
704
+ return cells.w === across && cells.h <= h - down;
705
+ })
706
+ .sort(
707
+ (a, b) =>
708
+ area(b) - area(a) || Number(b === tile.defaultSize) - Number(a === tile.defaultSize),
709
+ );
710
+ if (size === undefined) {
711
+ break;
712
+ }
713
+ const shape = footprintOf(size, columns);
714
+ boxes.push({ tile, size, x: w, y: down, ...shape });
715
+ down += shape.h;
716
+ stood += 1;
717
+ }
718
+ return { stood, down };
719
+ };
625
720
  /** Widgets two to a row across the page, one alone as wide as the page. */
626
721
  const putInPairs = (list: readonly HomeTile[], from: number): number => {
627
722
  let y = from;
@@ -665,6 +760,7 @@ export function composed(
665
760
  y = putInPairs([...others.slice(MOST_BESIDE), ...bottom], y);
666
761
  } else {
667
762
  let projectsPut = false;
763
+ let below = others;
668
764
  if (lead !== undefined) {
669
765
  // Nothing beside it, the lead is drawn at the size it is told, on that size's cells, and
670
766
  // never stretched to the page's width and four rows (ADR-0110).
@@ -672,12 +768,20 @@ export function composed(
672
768
  const shape = footprintOf(size, columns);
673
769
  boxes.push({ tile: lead, size, x: 0, y: 0, ...shape });
674
770
  y = shape.h;
675
- if (shape.w < columns && projects.length > 0) {
676
- y = putProjectsBeside(shape.w, shape.h);
677
- projectsPut = true;
771
+ if (shape.w < columns) {
772
+ // In the columns it leaves stand the widgets that come in a size as wide as those
773
+ // columns, then the projects in the rows the widgets leave (ADR-0139): on a grid of six,
774
+ // two small widgets beside a large lead, where the projects alone left most of those
775
+ // columns empty and the widgets stood under the lead, each drawn at no size of its own.
776
+ const { stood, down } = putWidgetsBeside(others, shape.w, shape.h);
777
+ below = others.slice(stood);
778
+ if (projects.length > 0 && (stood === 0 || down < shape.h)) {
779
+ y = putProjectsBeside(shape.w, shape.h, down);
780
+ projectsPut = true;
781
+ }
678
782
  }
679
783
  }
680
- y = putInPairs(others, y);
784
+ y = putInPairs(below, y);
681
785
  if (!projectsPut) {
682
786
  y += putProjects(0, y, columns);
683
787
  }
package/src/i18n/en.ts CHANGED
@@ -246,6 +246,8 @@ export const en = {
246
246
  "transcript.too_many": "The session took as many events within the hour as one may.",
247
247
  "transcript.too_many_sessions": "The account began as many sessions within the hour as it may.",
248
248
  "signal.too_many": "The account's runner raised as many wakes within the hour as it may.",
249
+ "wake.too_many": "The account keeps as many wakes for later as it may.",
250
+ "wake.not_found": "The account keeps no wake of that name.",
249
251
  "transcript.unknown_file": "An event names a picture that was not handed in to its session.",
250
252
  "agent.not_found": "The agent account was not found.",
251
253
  "agent.handle_taken": "Another agent account has this handle.",
@@ -592,6 +594,7 @@ export const en = {
592
594
  ? "Left empty, the project has no skills: the console names no address for the organization's."
593
595
  : `Left empty, the organization's: ${address}`,
594
596
  symbol: "Mark",
597
+ icon: "Icon",
595
598
  image: "Image",
596
599
  imageRemove: "Remove the image",
597
600
  color: "Colour",
@@ -601,7 +604,8 @@ export const en = {
601
604
  members: {
602
605
  title: "Members",
603
606
  list: "Members",
604
- since: "since",
607
+ /** What stands before and after the day a member was added: "since 14 Nov". */
608
+ since: { before: "since ", after: "" },
605
609
  roleOf: (name: string) => `Role of ${name}`,
606
610
  addAria: "Add a member",
607
611
  person: "Person",
@@ -1255,7 +1259,7 @@ export const en = {
1255
1259
  },
1256
1260
 
1257
1261
  feed: {
1258
- title: "What happened",
1262
+ title: "Feed",
1259
1263
  list: "What happened",
1260
1264
  empty: "Nothing happened yet",
1261
1265
  console: "The console",
@@ -1455,6 +1459,109 @@ export const en = {
1455
1459
  picture: (name: string) => `The picture ${name}`,
1456
1460
  label: (name: string) => `A comment by ${name}`,
1457
1461
  },
1462
+ icons: {
1463
+ none: "No icon",
1464
+ search: "Find an icon",
1465
+ nothingFound: "No icon by those words",
1466
+ // What a group of the pack is called: by the key `groups.json` gives it.
1467
+ groups: {
1468
+ actions: "Actions",
1469
+ directions: "Directions",
1470
+ people: "People and organization",
1471
+ work: "Work",
1472
+ files: "Text and files",
1473
+ states: "States",
1474
+ tools: "Settings and tools",
1475
+ devices: "Devices",
1476
+ plugins: "Plugins",
1477
+ },
1478
+ // The words a glyph is also found by, beside its name. A glyph without a line here is
1479
+ // found by its name alone; one added here is added to every other pack.
1480
+ words: {
1481
+ plus: "add new create",
1482
+ minus: "remove subtract less",
1483
+ close: "x cancel dismiss",
1484
+ check: "done tick yes ok confirm",
1485
+ edit: "pencil write change rename",
1486
+ trash: "delete remove bin",
1487
+ copy: "duplicate clipboard",
1488
+ search: "find magnifier look",
1489
+ filter: "funnel narrow",
1490
+ sort: "order arrange",
1491
+ refresh: "reload sync again update",
1492
+ download: "save get",
1493
+ upload: "put attach",
1494
+ "external-link": "open new window outside",
1495
+ send: "paper plane message submit",
1496
+ more: "menu dots ellipsis",
1497
+ "more-vertical": "menu dots",
1498
+ "arrow-up": "north top",
1499
+ "arrow-down": "south bottom",
1500
+ "arrow-left": "back previous west",
1501
+ "arrow-right": "forward next east",
1502
+ "chevron-up": "caret fold",
1503
+ "chevron-down": "caret open dropdown",
1504
+ "chevron-left": "caret back previous",
1505
+ "chevron-right": "caret forward next",
1506
+ collapse: "fold close shrink",
1507
+ expand: "unfold open grow",
1508
+ person: "user member account profile",
1509
+ people: "users members group",
1510
+ agent: "ai robot bot assistant",
1511
+ team: "organization hierarchy structure department",
1512
+ admin: "administrator shield security owner",
1513
+ task: "todo checkbox work item",
1514
+ decision: "choice fork branch question",
1515
+ run: "play start session",
1516
+ goal: "target aim objective",
1517
+ calendar: "date day schedule month",
1518
+ clock: "time hour due history",
1519
+ flag: "mark priority milestone",
1520
+ board: "kanban columns",
1521
+ list: "rows items bullets",
1522
+ chart: "bars graph statistics figures",
1523
+ document: "page doc text note",
1524
+ file: "blank page",
1525
+ folder: "directory group",
1526
+ image: "picture photo",
1527
+ video: "film camera recording",
1528
+ attachment: "paperclip file attach",
1529
+ link: "chain url address",
1530
+ comment: "speech bubble discussion reply talk",
1531
+ code: "brackets developer source",
1532
+ mail: "email envelope letter",
1533
+ bookmark: "save keep favourite",
1534
+ info: "information about note",
1535
+ warning: "caution alert triangle",
1536
+ error: "failed problem cross",
1537
+ success: "done passed ok",
1538
+ lock: "private closed secure",
1539
+ unlock: "open public",
1540
+ eye: "show visible watch view",
1541
+ "eye-off": "hide hidden invisible",
1542
+ bell: "notification alert remind",
1543
+ star: "favourite rate important",
1544
+ spark: "ai sparkle magic new",
1545
+ settings: "gear cog preferences configure",
1546
+ plugin: "plug extension connect",
1547
+ key: "password credential access",
1548
+ token: "secret password credential",
1549
+ skill: "book guide manual knowledge",
1550
+ pack: "box package cube bundle",
1551
+ home: "house front start",
1552
+ project: "briefcase work portfolio",
1553
+ globe: "world web language public internet",
1554
+ desktop: "computer monitor screen",
1555
+ handheld: "phone mobile device",
1556
+ server: "machine host database rack",
1557
+ leave: "holiday vacation sun day off",
1558
+ notice: "announcement megaphone news",
1559
+ approval: "stamp sign approve",
1560
+ messenger: "chat conversation talk messages",
1561
+ finance: "money cash payment budget accounting",
1562
+ customer: "contact card client",
1563
+ } as Readonly<Record<string, string>>,
1564
+ },
1458
1565
  pictures: {
1459
1566
  open: (name: string) => `Open the picture ${name}`,
1460
1567
  label: (name: string) => `The picture ${name}, large`,
@@ -1576,6 +1683,8 @@ export const en = {
1576
1683
  hint: "Drag to move. Pick a size at the top right; × takes a tile off this page.",
1577
1684
  /** Puts the page back as it is composed for someone who has arranged nothing, kept by Done (ADR-0109). */
1578
1685
  reset: "Reset to default",
1686
+ /** Closes the page up where it has gaps: the tiles in their order from the top, a widget at another of its sizes where a row closes with it (ADR-0139). */
1687
+ tidy: "Close the gaps",
1579
1688
  done: "Done",
1580
1689
  add: "Add",
1581
1690
  remove: "Remove from this page",
@@ -1971,6 +2080,13 @@ export const en = {
1971
2080
  toolFailed: "Failed",
1972
2081
  toolRefused: "Refused",
1973
2082
  toolRunning: "running",
2083
+ /** A sub-agent's row: what it is, how much it did, and how it stands. */
2084
+ agent: {
2085
+ label: "Sub-agent",
2086
+ calls: (count: number) => (count === 1 ? "1 tool call" : `${count} tool calls`),
2087
+ states: { running: "Running", done: "Done", failed: "Failed", ended: "Stopped" },
2088
+ steps: "What the sub-agent did",
2089
+ },
1974
2090
  /** Who stopped a turn with no words of their own, so that what waited was read. */
1975
2091
  interrupted: (who: string) => `${who} interrupted, so that what waited is read now.`,
1976
2092
  unread: "The session ended before the agent read this.",
@@ -1988,6 +2104,9 @@ export const en = {
1988
2104
  thinking: "Thinking",
1989
2105
  working: "Working",
1990
2106
  tool: (name: string) => `Running ${name}`,
2107
+ /** How many sub-agents are at work, over the list of them. */
2108
+ agents: (count: number) =>
2109
+ count === 1 ? "1 sub-agent at work" : `${count} sub-agents at work`,
1991
2110
  },
1992
2111
  /** When what was told and not taken yet is read, by why it waits; and the way to have it read now. */
1993
2112
  waiting: {
@@ -2069,6 +2188,8 @@ export const en = {
2069
2188
  untried: "a version the driver was not tried with",
2070
2189
  signals: "Signals",
2071
2190
  delivered: (delivered: number, latest: number) => `${delivered} of ${latest} delivered`,
2191
+ sources: "Wake sources",
2192
+ sourceStates: { connected: "connected", waiting: "waiting", failing: "failing" },
2072
2193
  },
2073
2194
  machine: {
2074
2195
  title: "Its machine",
@@ -2084,6 +2205,10 @@ export const en = {
2084
2205
  made: {
2085
2206
  title: "The invitation is made",
2086
2207
  say: "On the agent's machine, in its own OS account, say this to its product:",
2208
+ // The line said to the product: the command and the install as written, the words between
2209
+ // them in the language of whoever reads the page, since they say it.
2210
+ line: (command: string, install: string) =>
2211
+ `Set this machine up for an agent account. Install what is missing yourself, without asking: first Node.js 24 or later and the command (${install}). Then run ${command} and do what it prints. Ask me only for a sign-in or an administrator's password.`,
2087
2212
  orRun: "Or run the command there yourself:",
2088
2213
  guide: "The guide, for a person to read",
2089
2214
  once: "The code is shown this once. It is good until",