@skillcdn/console 0.5.1 → 0.5.3
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.
- package/README.md +20 -2
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +4 -4
- package/dist/agent-page.js.map +1 -1
- package/dist/api.d.ts +5 -4
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +5 -4
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +32 -0
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +442 -93
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +6 -2
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +25 -3
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +10 -5
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/machine-check.d.ts +36 -0
- package/dist/cli/machine-check.d.ts.map +1 -0
- package/dist/cli/machine-check.js +151 -0
- package/dist/cli/machine-check.js.map +1 -0
- package/dist/cli/runner-host.d.ts +7 -0
- package/dist/cli/runner-host.d.ts.map +1 -1
- package/dist/cli/runner-host.js +2 -0
- package/dist/cli/runner-host.js.map +1 -1
- package/dist/cli/secret-notes.d.ts +8 -0
- package/dist/cli/secret-notes.d.ts.map +1 -0
- package/dist/cli/secret-notes.js +48 -0
- package/dist/cli/secret-notes.js.map +1 -0
- package/dist/client.d.ts +7 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +6 -1
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +106 -13
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +391 -102
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +1 -1
- package/dist/components/agents.js.map +1 -1
- package/dist/components/board.d.ts.map +1 -1
- package/dist/components/board.js +3 -2
- package/dist/components/board.js.map +1 -1
- package/dist/components/categories.js +1 -1
- package/dist/components/categories.js.map +1 -1
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +1 -1
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +3 -2
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/goals.d.ts +2 -0
- package/dist/components/goals.d.ts.map +1 -1
- package/dist/components/goals.js +1 -1
- package/dist/components/goals.js.map +1 -1
- package/dist/components/home.d.ts.map +1 -1
- package/dist/components/home.js +13 -15
- package/dist/components/home.js.map +1 -1
- package/dist/components/icon.d.ts +31 -0
- package/dist/components/icon.d.ts.map +1 -0
- package/dist/components/icon.js +169 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/markdown.d.ts +6 -0
- package/dist/components/markdown.d.ts.map +1 -1
- package/dist/components/markdown.js +10 -2
- package/dist/components/markdown.js.map +1 -1
- package/dist/components/people.js +1 -1
- package/dist/components/people.js.map +1 -1
- package/dist/components/plugin-frame.d.ts.map +1 -1
- package/dist/components/plugin-frame.js +7 -0
- package/dist/components/plugin-frame.js.map +1 -1
- package/dist/components/projects.d.ts +17 -4
- package/dist/components/projects.d.ts.map +1 -1
- package/dist/components/projects.js +25 -6
- package/dist/components/projects.js.map +1 -1
- package/dist/components/sessions.d.ts.map +1 -1
- package/dist/components/sessions.js +3 -2
- package/dist/components/sessions.js.map +1 -1
- package/dist/components/setup.d.ts.map +1 -1
- package/dist/components/setup.js +2 -2
- package/dist/components/setup.js.map +1 -1
- package/dist/components/shell.d.ts.map +1 -1
- package/dist/components/shell.js +3 -2
- package/dist/components/shell.js.map +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/tokens.js.map +1 -1
- package/dist/components/ui.d.ts +5 -2
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +10 -7
- package/dist/components/ui.js.map +1 -1
- package/dist/connect-page.js +1 -1
- package/dist/connect-page.js.map +1 -1
- package/dist/console.css +473 -77
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +38 -31
- package/dist/console.js.map +1 -1
- package/dist/home-tiles.d.ts +24 -33
- package/dist/home-tiles.d.ts.map +1 -1
- package/dist/home-tiles.js +65 -259
- package/dist/home-tiles.js.map +1 -1
- package/dist/i18n/en.d.ts +49 -2
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +126 -3
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +197 -79
- package/dist/i18n/ko.js.map +1 -1
- package/dist/i18n/particles.d.ts +7 -0
- package/dist/i18n/particles.d.ts.map +1 -0
- package/dist/i18n/particles.js +72 -0
- package/dist/i18n/particles.js.map +1 -0
- package/dist/icons/glyphs.d.ts +605 -0
- package/dist/icons/glyphs.d.ts.map +1 -0
- package/dist/icons/glyphs.js +104 -0
- package/dist/icons/glyphs.js.map +1 -0
- package/dist/icons/index.d.ts +59 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +157 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +9 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +9 -0
- package/dist/limits.js.map +1 -1
- package/dist/marks.d.ts +9 -0
- package/dist/marks.d.ts.map +1 -1
- package/dist/marks.js +9 -0
- package/dist/marks.js.map +1 -1
- package/dist/onboarding.js +3 -3
- package/dist/onboarding.js.map +1 -1
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +3 -2
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/web.d.ts +3 -0
- package/dist/plugin/web.d.ts.map +1 -1
- package/dist/plugin/web.js +5 -1
- package/dist/plugin/web.js.map +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +2 -2
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/awake.d.ts +35 -0
- package/dist/runner/awake.d.ts.map +1 -0
- package/dist/runner/awake.js +95 -0
- package/dist/runner/awake.js.map +1 -0
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +19 -7
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +2 -2
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/config.d.ts +5 -0
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/config.js +9 -0
- package/dist/runner/config.js.map +1 -1
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +5 -6
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/runner.d.ts +13 -2
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +141 -22
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/slack.d.ts.map +1 -1
- package/dist/runner/slack.js +10 -4
- package/dist/runner/slack.js.map +1 -1
- package/dist/runner/types.d.ts +15 -0
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js +9 -0
- package/dist/runner/types.js.map +1 -1
- package/dist/schemas.d.ts +94 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +81 -5
- package/dist/schemas.js.map +1 -1
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +9 -5
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +14 -3
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +41 -37
- package/dist/setup-guide.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +5 -1
- package/dist/tokens.js.map +1 -1
- package/dist/vocabulary.d.ts +7 -0
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +6 -0
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +10 -7
- package/docs/specs/plugins.md +18 -7
- package/docs/specs/rest.md +10 -8
- package/docs/specs/runner.md +26 -8
- package/package.json +7 -3
- package/skills/building-a-console/SKILL.md +2 -2
- package/skills/building-a-plugin/SKILL.md +3 -3
- package/skills/keeping-a-desk/SKILL.md +2 -2
- package/skills/running-an-agent/SKILL.md +47 -57
- package/skills/working-the-board/SKILL.md +5 -4
- package/skills/working-the-board/references/the-pack.md +1 -1
- package/src/agent-page.tsx +13 -1
- package/src/api.ts +32 -1
- package/src/cli/cli.ts +530 -106
- package/src/cli/format.ts +31 -3
- package/src/cli/help.ts +12 -4
- package/src/cli/machine-check.ts +223 -0
- package/src/cli/runner-host.ts +8 -0
- package/src/cli/secret-notes.ts +63 -0
- package/src/client.ts +23 -0
- package/src/components/agent-page.tsx +629 -112
- package/src/components/agents.tsx +9 -5
- package/src/components/board.tsx +3 -15
- package/src/components/categories.tsx +2 -2
- package/src/components/decision-list.tsx +11 -7
- package/src/components/event-feed.tsx +7 -2
- package/src/components/goals.tsx +33 -25
- package/src/components/home.tsx +29 -26
- package/src/components/icon.tsx +337 -0
- package/src/components/markdown.tsx +22 -2
- package/src/components/people.tsx +1 -1
- package/src/components/plugin-frame.tsx +7 -0
- package/src/components/projects.tsx +39 -5
- package/src/components/sessions.tsx +2 -13
- package/src/components/setup.tsx +2 -2
- package/src/components/shell.tsx +3 -20
- package/src/components/tokens.tsx +1 -1
- package/src/components/ui.tsx +16 -8
- package/src/connect-page.tsx +1 -1
- package/src/console.tsx +87 -53
- package/src/home-tiles.ts +76 -291
- package/src/i18n/en.ts +128 -3
- package/src/i18n/ko.ts +200 -79
- package/src/i18n/particles.ts +79 -0
- package/src/icons/glyphs.ts +112 -0
- package/src/icons/index.ts +195 -0
- package/src/index.ts +7 -0
- package/src/limits.ts +9 -0
- package/src/marks.ts +12 -0
- package/src/onboarding.ts +3 -3
- package/src/plugin/manifest.ts +3 -2
- package/src/plugin/web.ts +9 -2
- package/src/runner/acp.ts +2 -1
- package/src/runner/awake.ts +135 -0
- package/src/runner/claude.ts +19 -4
- package/src/runner/codex.ts +2 -1
- package/src/runner/config.ts +9 -0
- package/src/runner/desk.ts +5 -6
- package/src/runner/runner.ts +183 -23
- package/src/runner/slack.ts +10 -4
- package/src/runner/types.ts +20 -0
- package/src/schemas.ts +94 -3
- package/src/services.ts +9 -5
- package/src/setup-guide.ts +43 -38
- package/src/styles/README.md +5 -4
- package/src/styles/base.css +17 -0
- package/src/styles/console.css +1 -0
- package/src/styles/drawn-by-pages.json +1 -1
- package/src/styles/pages/agents.css +103 -1
- package/src/styles/pages/board.css +0 -10
- package/src/styles/pages/calendar.css +1 -1
- package/src/styles/pages/connect.css +0 -10
- package/src/styles/pages/decisions.css +3 -1
- package/src/styles/pages/feed.css +5 -2
- package/src/styles/pages/home.css +5 -0
- package/src/styles/pages/roadmap.css +2 -2
- package/src/styles/pages/settings.css +11 -0
- package/src/styles/pages/task.css +0 -20
- package/src/styles/pages/thread.css +1 -1
- package/src/styles/parts/calendar.css +1 -1
- package/src/styles/parts/callout.css +1 -0
- package/src/styles/parts/detail.css +22 -0
- package/src/styles/parts/empty.css +2 -0
- package/src/styles/parts/eyebrow.css +1 -1
- package/src/styles/parts/facts.css +1 -1
- package/src/styles/parts/figures.css +1 -1
- package/src/styles/parts/form.css +2 -1
- package/src/styles/parts/icon.css +191 -0
- package/src/styles/parts/input.css +14 -4
- package/src/styles/parts/mark.css +36 -0
- package/src/styles/parts/menu.css +1 -7
- package/src/styles/parts/page.css +1 -1
- package/src/styles/parts/panel.css +10 -0
- package/src/styles/parts/person.css +5 -2
- package/src/styles/parts/progress.css +5 -2
- package/src/styles/parts/rows.css +1 -0
- package/src/styles/parts/settings.css +5 -0
- package/src/styles/parts/stat.css +1 -1
- package/src/styles/tokens.css +22 -7
- package/src/tokens.ts +5 -1
- package/src/vocabulary.ts +9 -0
package/src/home-tiles.ts
CHANGED
|
@@ -12,11 +12,12 @@ import type {
|
|
|
12
12
|
// The front page as a person arranges it (ADR-0061): one grid of square cells, on which the
|
|
13
13
|
// projects and the plugins' widgets are tiles alike, each at a place of its own. What there is
|
|
14
14
|
// comes from what the person may see; where each stands comes from what they kept, one layout
|
|
15
|
-
// for each width of the grid.
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
15
|
+
// for each width of the grid. Where nothing was kept the tiles stand in their order, each at the
|
|
16
|
+
// size it was kept at elsewhere or starts at, at the first room reading from the top: the page
|
|
17
|
+
// looked at and the page being arranged are one, and no size is ever chosen for the person
|
|
18
|
+
// (ADR-0147). On a width they arranged, what is new takes the first room. What they took off
|
|
19
|
+
// stays off, and what they may no longer see waits out of sight for its place. Pure functions, so
|
|
20
|
+
// that the page and the tests read the same arrangement.
|
|
20
21
|
|
|
21
22
|
/** The grid's columns at each width: wide, a laptop's, a tablet's, a phone's. */
|
|
22
23
|
export const HOME_COLUMNS = [12, 8, 6, 4] as const;
|
|
@@ -76,8 +77,6 @@ export interface PlacedTile {
|
|
|
76
77
|
* has things to say.
|
|
77
78
|
*/
|
|
78
79
|
const PROJECT_SIZES: readonly HomeTileSize[] = ["icon", "small", "medium", "large", "wide"];
|
|
79
|
-
/** The sizes the projects take together where a width is closed up: the small ones a person kept them at before a glance existed. */
|
|
80
|
-
const PROJECT_ALIKE_SIZES: readonly HomeTileSize[] = ["icon", "small"];
|
|
81
80
|
|
|
82
81
|
/** Whether a project at a size shows a glance of its board: what is at work in it, and its roadmap (ADR-0105). */
|
|
83
82
|
export function isGlanceSize(size: HomeTileSize): boolean {
|
|
@@ -327,30 +326,21 @@ function keptAt(
|
|
|
327
326
|
return { entries: [], placed: false };
|
|
328
327
|
}
|
|
329
328
|
|
|
330
|
-
/** A tile waiting for a place
|
|
329
|
+
/** A tile waiting for a place, at the size it is to have. */
|
|
331
330
|
interface Wanted {
|
|
332
331
|
readonly tile: HomeTile;
|
|
333
332
|
readonly size: HomeTileSize;
|
|
334
333
|
}
|
|
335
334
|
|
|
336
|
-
/**
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/** The tiles in order, each at its size, at the first room reading from the top. */
|
|
346
|
-
function packed(
|
|
347
|
-
wanted: readonly Wanted[],
|
|
348
|
-
sizes: readonly HomeTileSize[],
|
|
349
|
-
columns: number,
|
|
350
|
-
): PlacedTile[] {
|
|
335
|
+
/**
|
|
336
|
+
* The tiles in order, each at its size, at the first room reading from the top (ADR-0147): how a
|
|
337
|
+
* page nobody arranged stands, a width nobody arranged, and a page closed up when its person asks.
|
|
338
|
+
* No tile is given another size to close a row: a small one after a large one takes the room left
|
|
339
|
+
* beside it.
|
|
340
|
+
*/
|
|
341
|
+
function packed(wanted: readonly Wanted[], columns: number): PlacedTile[] {
|
|
351
342
|
const taken = new Set<number>();
|
|
352
|
-
return wanted.map(({ tile }
|
|
353
|
-
const size = sizes[at] ?? startingSizeAt(tile, columns);
|
|
343
|
+
return wanted.map(({ tile, size }) => {
|
|
354
344
|
const shape = footprintOf(size, columns);
|
|
355
345
|
const place = firstRoom(taken, shape, columns);
|
|
356
346
|
occupy(taken, place, shape, columns);
|
|
@@ -359,79 +349,14 @@ function packed(
|
|
|
359
349
|
}
|
|
360
350
|
|
|
361
351
|
/**
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
// The choices: for each widget its sizes, the one it would rather have first; for the projects
|
|
371
|
-
// together, each its own, then each of the sizes a project comes in, all alike.
|
|
372
|
-
const choices: { readonly at: readonly number[]; readonly options: HomeTileSize[][] }[] = [];
|
|
373
|
-
if (projects.length > 0) {
|
|
374
|
-
const own = projects.map((at) => wanted[at]?.size ?? "icon");
|
|
375
|
-
const alike = PROJECT_ALIKE_SIZES.filter(
|
|
376
|
-
(size) => HOME_TILE_CELLS[size].columns <= columns,
|
|
377
|
-
).map((size) => projects.map(() => size));
|
|
378
|
-
const options = [own, ...alike].filter(
|
|
379
|
-
(option, index, all) => all.findIndex((other) => other.join() === option.join()) === index,
|
|
380
|
-
);
|
|
381
|
-
choices.push({ at: projects, options });
|
|
382
|
-
}
|
|
383
|
-
let combinations = choices[0]?.options.length ?? 1;
|
|
384
|
-
wanted.forEach((entry, at) => {
|
|
385
|
-
if (entry.tile.kind !== "widget") {
|
|
386
|
-
return;
|
|
387
|
-
}
|
|
388
|
-
const others = sizesAt(entry.tile, columns).filter((size) => size !== entry.size);
|
|
389
|
-
const all = [entry.size, ...others];
|
|
390
|
-
// Past what can be tried at once, a widget keeps the size it would rather have.
|
|
391
|
-
const options = combinations * all.length <= MOST_COMBINATIONS ? all : [entry.size];
|
|
392
|
-
combinations *= options.length;
|
|
393
|
-
choices.push({ at: [at], options: options.map((size) => [size]) });
|
|
394
|
-
});
|
|
395
|
-
|
|
396
|
-
const preferred = wanted.map((entry) => entry.size);
|
|
397
|
-
let best: { readonly placed: PlacedTile[]; readonly score: readonly number[] } | undefined;
|
|
398
|
-
const trying = (index: number, sizes: HomeTileSize[], changed: number): void => {
|
|
399
|
-
const choice = choices[index];
|
|
400
|
-
if (choice === undefined) {
|
|
401
|
-
const placed = packed(wanted, sizes, columns);
|
|
402
|
-
const rows = rowsOf(placed, columns);
|
|
403
|
-
const filled = placed.reduce((cells, { size }) => {
|
|
404
|
-
const { w, h } = footprintOf(size, columns);
|
|
405
|
-
return cells + w * h;
|
|
406
|
-
}, 0);
|
|
407
|
-
const score = [rows * columns - filled, changed, rows];
|
|
408
|
-
if (best === undefined || lessThan(score, best.score)) {
|
|
409
|
-
best = { placed, score };
|
|
410
|
-
}
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
choice.options.forEach((option) => {
|
|
414
|
-
const next = [...sizes];
|
|
415
|
-
choice.at.forEach((at, nth) => {
|
|
416
|
-
next[at] = option[nth] ?? (preferred[at] as HomeTileSize);
|
|
417
|
-
});
|
|
418
|
-
const differs = choice.at.some((at) => next[at] !== preferred[at]) ? 1 : 0;
|
|
419
|
-
trying(index + 1, next, changed + differs);
|
|
420
|
-
});
|
|
421
|
-
};
|
|
422
|
-
trying(0, [...preferred], 0);
|
|
423
|
-
return best?.placed ?? packed(wanted, preferred, columns);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* The page as it stands on the grid: what the person kept for this width where they stand; for
|
|
428
|
-
* someone who has arranged nothing, the composed page on the cells nearest it; for a width nobody
|
|
429
|
-
* arranged when another was, the order kept there, closed up so that no cell stands empty where
|
|
430
|
-
* the sizes the tiles come in allow it (ADR-0082). A tile they may no longer
|
|
431
|
-
* see stays out, a size it no longer comes in, or that is too wide for this grid, becomes the one
|
|
432
|
-
* it starts at here, and a tile on another's cells moves to the nearest room. What they have not
|
|
433
|
-
* seen yet takes the first room of a width they arranged, a plugin's widgets as soon as it is on;
|
|
434
|
-
* what they took off stays off.
|
|
352
|
+
* The page as it stands on the grid, looked at and being arranged alike (ADR-0147): what the
|
|
353
|
+
* person kept for this width where they stand. Where they kept nothing for it, the tiles stand
|
|
354
|
+
* packed from the top: in the order and at the sizes kept at another width, where they arranged
|
|
355
|
+
* one; in the page's own order at the sizes the tiles start at, where they arranged none. A tile
|
|
356
|
+
* they may no longer see stays out, a size it no longer comes in, or that is too wide for this
|
|
357
|
+
* grid, becomes the one it starts at here, and a tile on another's cells moves to the nearest
|
|
358
|
+
* room. What they have not seen yet takes the first room of a width they arranged, a plugin's
|
|
359
|
+
* widgets as soon as it is on; what they took off stays off.
|
|
435
360
|
*/
|
|
436
361
|
export function arranged(
|
|
437
362
|
tiles: readonly HomeTile[],
|
|
@@ -441,30 +366,16 @@ export function arranged(
|
|
|
441
366
|
const byId = new Map(tiles.map((tile) => [tile.id, tile]));
|
|
442
367
|
const hidden = new Set(home?.hidden ?? []);
|
|
443
368
|
const { entries, placed: keepsPlaces } = keptAt(home, columns);
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
const taken = new Set<number>();
|
|
448
|
-
return composed(tiles, home, columns).map(({ tile, size, x, y }) => {
|
|
449
|
-
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 };
|
|
456
|
-
});
|
|
457
|
-
}
|
|
369
|
+
/** The size a tile has here: the one kept, where this grid has it, else the one it starts at. */
|
|
370
|
+
const sizeHere = (tile: HomeTile, kept: HomeTileSize) =>
|
|
371
|
+
sizesAt(tile, columns).includes(kept) ? kept : startingSizeAt(tile, columns);
|
|
458
372
|
if (!keepsPlaces) {
|
|
459
373
|
const wanted: Wanted[] = [];
|
|
460
374
|
const seen = new Set<string>();
|
|
461
375
|
for (const entry of entries) {
|
|
462
376
|
const tile = byId.get(entry.tile);
|
|
463
377
|
if (tile !== undefined && !hidden.has(tile.id) && !seen.has(tile.id)) {
|
|
464
|
-
|
|
465
|
-
? entry.size
|
|
466
|
-
: startingSizeAt(tile, columns);
|
|
467
|
-
wanted.push({ tile, size });
|
|
378
|
+
wanted.push({ tile, size: sizeHere(tile, entry.size) });
|
|
468
379
|
seen.add(tile.id);
|
|
469
380
|
}
|
|
470
381
|
}
|
|
@@ -473,7 +384,7 @@ export function arranged(
|
|
|
473
384
|
wanted.push({ tile, size: startingSizeAt(tile, columns) });
|
|
474
385
|
}
|
|
475
386
|
}
|
|
476
|
-
return
|
|
387
|
+
return packed(wanted, columns);
|
|
477
388
|
}
|
|
478
389
|
const taken = new Set<number>();
|
|
479
390
|
const placed: PlacedTile[] = [];
|
|
@@ -493,10 +404,7 @@ export function arranged(
|
|
|
493
404
|
for (const entry of entries) {
|
|
494
405
|
const tile = byId.get(entry.tile);
|
|
495
406
|
if (tile !== undefined && !hidden.has(tile.id) && !seen.has(tile.id)) {
|
|
496
|
-
|
|
497
|
-
? entry.size
|
|
498
|
-
: startingSizeAt(tile, columns);
|
|
499
|
-
put(tile, size, { x: entry.x, y: entry.y });
|
|
407
|
+
put(tile, sizeHere(tile, entry.size), { x: entry.x, y: entry.y });
|
|
500
408
|
}
|
|
501
409
|
}
|
|
502
410
|
for (const tile of tiles) {
|
|
@@ -507,6 +415,49 @@ export function arranged(
|
|
|
507
415
|
return placed;
|
|
508
416
|
}
|
|
509
417
|
|
|
418
|
+
/**
|
|
419
|
+
* A page being arranged, closed up (ADR-0147): each tile, in the order the tiles are read, moved
|
|
420
|
+
* to the first room from the top that the others leave it, at the size it has, and again until
|
|
421
|
+
* none moves. What a person asks for when a page they kept has gaps they did not mean, from a
|
|
422
|
+
* tile that left or one they moved. No tile changes its size or goes further down, so the page
|
|
423
|
+
* grows no longer, and a page packed from the top, as nobody arranged it, has nothing to move.
|
|
424
|
+
* Packed again in the order read instead, a small tile could take the cell a large one below it
|
|
425
|
+
* stood on, and the large one went a row down.
|
|
426
|
+
*/
|
|
427
|
+
export function tidied(placed: readonly PlacedTile[], columns: number): PlacedTile[] {
|
|
428
|
+
let tiles = inReadingOrder(placed);
|
|
429
|
+
for (let moved = true; moved; ) {
|
|
430
|
+
moved = false;
|
|
431
|
+
for (const tile of inReadingOrder(tiles)) {
|
|
432
|
+
const others = occupied(
|
|
433
|
+
tiles.filter((other) => other !== tile),
|
|
434
|
+
columns,
|
|
435
|
+
);
|
|
436
|
+
const room = firstRoom(others, footprintOf(tile.size, columns), columns);
|
|
437
|
+
if (room.x !== tile.x || room.y !== tile.y) {
|
|
438
|
+
const at = { ...tile, ...room };
|
|
439
|
+
tiles = tiles.map((other) => (other === tile ? at : other));
|
|
440
|
+
moved = true;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
return inReadingOrder(tiles);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/** Whether two arrangements stand every tile on the same cells at the same size. */
|
|
448
|
+
export function sameArrangement(a: readonly PlacedTile[], b: readonly PlacedTile[]): boolean {
|
|
449
|
+
const at = new Map(b.map((tile) => [tile.tile.id, tile]));
|
|
450
|
+
return (
|
|
451
|
+
a.length === b.length &&
|
|
452
|
+
a.every((tile) => {
|
|
453
|
+
const other = at.get(tile.tile.id);
|
|
454
|
+
return (
|
|
455
|
+
other !== undefined && other.x === tile.x && other.y === tile.y && other.size === tile.size
|
|
456
|
+
);
|
|
457
|
+
})
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
|
|
510
461
|
/** How many rows the page takes. */
|
|
511
462
|
export function rowsOf(placed: readonly PlacedTile[], columns: number): number {
|
|
512
463
|
return Math.max(0, ...placed.map((tile) => tile.y + footprintOf(tile.size, columns).h));
|
|
@@ -517,180 +468,14 @@ export function nobodyArranged(home: RestHome | null | undefined): boolean {
|
|
|
517
468
|
return home === null || home === undefined || Object.keys(home.layouts).length === 0;
|
|
518
469
|
}
|
|
519
470
|
|
|
520
|
-
/** The page put back as
|
|
521
|
-
export const
|
|
471
|
+
/** The page put back as nobody arranged it: no width arranged, nothing taken off (ADR-0109). */
|
|
472
|
+
export const UNARRANGED_HOME: RestHome = { hidden: [], layouts: {} };
|
|
522
473
|
|
|
523
|
-
/** Whether the page stands as
|
|
524
|
-
export function
|
|
474
|
+
/** Whether the page stands as nobody arranged it, nothing taken off: nothing for putting it back to undo. */
|
|
475
|
+
export function standsUnarranged(home: RestHome | null | undefined): boolean {
|
|
525
476
|
return nobodyArranged(home) && (home?.hidden.length ?? 0) === 0;
|
|
526
477
|
}
|
|
527
478
|
|
|
528
|
-
/**
|
|
529
|
-
* A tile of the composed page: where it stands and how far it reaches, in cells, which need not
|
|
530
|
-
* be whole, and the size its frame is told, the one of its own nearest that shape.
|
|
531
|
-
*/
|
|
532
|
-
export interface ComposedTile extends PlacedTile {
|
|
533
|
-
readonly w: number;
|
|
534
|
-
readonly h: number;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
/** The rows a widget beside the lead takes, and those the lead takes at least. */
|
|
538
|
-
const SIDE_ROWS = 2;
|
|
539
|
-
const LEAD_ROWS = 4;
|
|
540
|
-
/** The widgets that stand beside the lead at most; the others stand below, two to a row. */
|
|
541
|
-
const MOST_BESIDE = 2;
|
|
542
|
-
/** The rows of projects the column beside the lead holds at most; more go below, across the page. */
|
|
543
|
-
const MOST_PROJECT_ROWS_BESIDE = 2;
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* Of the sizes a tile comes in on this grid, the one nearest a shape; on a tie the one that fits
|
|
547
|
-
* within it, so that a frame is never told of more room than it has, then its own, then the smaller.
|
|
548
|
-
*/
|
|
549
|
-
function nearestSize(tile: HomeTile, w: number, h: number, columns: number): HomeTileSize {
|
|
550
|
-
if (tile.kind === "project") {
|
|
551
|
-
return "icon";
|
|
552
|
-
}
|
|
553
|
-
const away = (size: HomeTileSize) => {
|
|
554
|
-
const cells = footprintOf(size, columns);
|
|
555
|
-
return Math.abs(cells.w - w) + Math.abs(cells.h - h);
|
|
556
|
-
};
|
|
557
|
-
const within = (size: HomeTileSize) => {
|
|
558
|
-
const cells = footprintOf(size, columns);
|
|
559
|
-
return cells.w <= w && cells.h <= h;
|
|
560
|
-
};
|
|
561
|
-
const area = (size: HomeTileSize) => HOME_TILE_CELLS[size].columns * HOME_TILE_CELLS[size].rows;
|
|
562
|
-
return [...sizesAt(tile, columns)].sort(
|
|
563
|
-
(a, b) =>
|
|
564
|
-
away(a) - away(b) ||
|
|
565
|
-
Number(within(b)) - Number(within(a)) ||
|
|
566
|
-
Number(b === tile.defaultSize) - Number(a === tile.defaultSize) ||
|
|
567
|
-
area(a) - area(b),
|
|
568
|
-
)[0] as HomeTileSize;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* The page of someone who has arranged nothing, composed (ADR-0082): the first widget leads,
|
|
573
|
-
* half the page wide, and beside it stand the next two widgets and the projects, the column as
|
|
574
|
-
* high as the lead; on a grid of six columns or fewer they stand one under the other. With nothing
|
|
575
|
-
* beside it, the lead stands at a size it comes in, and the projects follow it in the columns it
|
|
576
|
-
* leaves (ADR-0110). The projects are icons, one to a cell, in rows as long as their column has
|
|
577
|
-
* cells, so that a project is never drawn in a shape it does not come in and the page is the one
|
|
578
|
-
* arranging starts from (ADR-0108); the last row may end short. The other widgets stand below, two
|
|
579
|
-
* to a row.
|
|
580
|
-
*/
|
|
581
|
-
export function composed(
|
|
582
|
-
tiles: readonly HomeTile[],
|
|
583
|
-
home: RestHome | null | undefined,
|
|
584
|
-
columns: HomeColumns,
|
|
585
|
-
): ComposedTile[] {
|
|
586
|
-
const hidden = new Set(home?.hidden ?? []);
|
|
587
|
-
const shown = tiles.filter((tile) => !hidden.has(tile.id));
|
|
588
|
-
const widgets = shown.filter((tile): tile is HomeWidgetTile => tile.kind === "widget");
|
|
589
|
-
const top = widgets.filter((tile) => tile.widget.place === "home:top");
|
|
590
|
-
const bottom = widgets.filter((tile) => tile.widget.place !== "home:top");
|
|
591
|
-
const projects = shown.filter((tile) => tile.kind === "project");
|
|
592
|
-
const boxes: ComposedTile[] = [];
|
|
593
|
-
const put = (tile: HomeTile, x: number, y: number, w: number, h: number) => {
|
|
594
|
-
boxes.push({ tile, size: nearestSize(tile, w, h, columns), x, y, w, h });
|
|
595
|
-
};
|
|
596
|
-
/** The rows the projects take in a column so wide: as many to a row as a cell each allows. */
|
|
597
|
-
const projectRows = (width: number) =>
|
|
598
|
-
projects.length === 0 ? 0 : Math.ceil(projects.length / Math.max(1, Math.floor(width)));
|
|
599
|
-
/** The projects in rows from a place, one to a cell, each row as long as the width has cells. */
|
|
600
|
-
const putProjects = (x: number, y: number, width: number): number => {
|
|
601
|
-
const across = Math.max(1, Math.floor(width));
|
|
602
|
-
projects.forEach((tile, nth) => {
|
|
603
|
-
put(tile, x + (nth % across), y + Math.floor(nth / across), 1, 1);
|
|
604
|
-
});
|
|
605
|
-
return projectRows(width);
|
|
606
|
-
};
|
|
607
|
-
/**
|
|
608
|
-
* The projects beside a tile in the page's corner, so wide and so high: one to a cell in the
|
|
609
|
-
* columns it leaves, no lower than it reaches, then across the page below it. The row after them.
|
|
610
|
-
*/
|
|
611
|
-
const putProjectsBeside = (w: number, h: number): number => {
|
|
612
|
-
const across = columns - w;
|
|
613
|
-
const beside = Math.min(projects.length, across * h);
|
|
614
|
-
projects.forEach((tile, nth) => {
|
|
615
|
-
const below = nth - beside;
|
|
616
|
-
if (below < 0) {
|
|
617
|
-
put(tile, w + (nth % across), Math.floor(nth / across), 1, 1);
|
|
618
|
-
} else {
|
|
619
|
-
put(tile, below % columns, h + Math.floor(below / columns), 1, 1);
|
|
620
|
-
}
|
|
621
|
-
});
|
|
622
|
-
const left = projects.length - beside;
|
|
623
|
-
return h + Math.ceil(left / columns);
|
|
624
|
-
};
|
|
625
|
-
/** Widgets two to a row across the page, one alone as wide as the page. */
|
|
626
|
-
const putInPairs = (list: readonly HomeTile[], from: number): number => {
|
|
627
|
-
let y = from;
|
|
628
|
-
for (let at = 0; at < list.length; at += 2) {
|
|
629
|
-
const first = list[at];
|
|
630
|
-
const second = list[at + 1];
|
|
631
|
-
if (first !== undefined && second !== undefined) {
|
|
632
|
-
put(first, 0, y, columns / 2, SIDE_ROWS);
|
|
633
|
-
put(second, columns / 2, y, columns / 2, SIDE_ROWS);
|
|
634
|
-
} else if (first !== undefined) {
|
|
635
|
-
put(first, 0, y, columns, SIDE_ROWS);
|
|
636
|
-
}
|
|
637
|
-
y += SIDE_ROWS;
|
|
638
|
-
}
|
|
639
|
-
return y;
|
|
640
|
-
};
|
|
641
|
-
|
|
642
|
-
const [lead, ...others] = top;
|
|
643
|
-
const beside = others.slice(0, MOST_BESIDE);
|
|
644
|
-
let y = 0;
|
|
645
|
-
if (lead !== undefined && beside.length > 0 && columns >= 8) {
|
|
646
|
-
const half = columns / 2;
|
|
647
|
-
const projectsBeside = projectRows(half) <= MOST_PROJECT_ROWS_BESIDE;
|
|
648
|
-
const besideRows = beside.length * SIDE_ROWS + (projectsBeside ? projectRows(half) : 0);
|
|
649
|
-
const height = Math.max(besideRows, LEAD_ROWS);
|
|
650
|
-
// A column shorter than the lead gives its widgets the rows left over, alike.
|
|
651
|
-
const widgetRows = SIDE_ROWS + (height - besideRows) / beside.length;
|
|
652
|
-
put(lead, 0, 0, half, height);
|
|
653
|
-
let at = 0;
|
|
654
|
-
for (const tile of beside) {
|
|
655
|
-
put(tile, half, at, half, widgetRows);
|
|
656
|
-
at += widgetRows;
|
|
657
|
-
}
|
|
658
|
-
if (projectsBeside) {
|
|
659
|
-
putProjects(half, at, half);
|
|
660
|
-
}
|
|
661
|
-
y = height;
|
|
662
|
-
if (!projectsBeside) {
|
|
663
|
-
y += putProjects(0, y, columns);
|
|
664
|
-
}
|
|
665
|
-
y = putInPairs([...others.slice(MOST_BESIDE), ...bottom], y);
|
|
666
|
-
} else {
|
|
667
|
-
let projectsPut = false;
|
|
668
|
-
if (lead !== undefined) {
|
|
669
|
-
// Nothing beside it, the lead is drawn at the size it is told, on that size's cells, and
|
|
670
|
-
// never stretched to the page's width and four rows (ADR-0110).
|
|
671
|
-
const size = nearestSize(lead, columns, LEAD_ROWS, columns);
|
|
672
|
-
const shape = footprintOf(size, columns);
|
|
673
|
-
boxes.push({ tile: lead, size, x: 0, y: 0, ...shape });
|
|
674
|
-
y = shape.h;
|
|
675
|
-
if (shape.w < columns && projects.length > 0) {
|
|
676
|
-
y = putProjectsBeside(shape.w, shape.h);
|
|
677
|
-
projectsPut = true;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
y = putInPairs(others, y);
|
|
681
|
-
if (!projectsPut) {
|
|
682
|
-
y += putProjects(0, y, columns);
|
|
683
|
-
}
|
|
684
|
-
putInPairs(bottom, y);
|
|
685
|
-
}
|
|
686
|
-
return boxes;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
/** How many rows the composed page takes, which need not be whole. */
|
|
690
|
-
export function composedRows(boxes: readonly ComposedTile[]): number {
|
|
691
|
-
return Math.max(0, ...boxes.map((box) => box.y + box.h));
|
|
692
|
-
}
|
|
693
|
-
|
|
694
479
|
const sameTile = (a: PlacedTile, b: PlacedTile): boolean => a.tile.id === b.tile.id;
|
|
695
480
|
|
|
696
481
|
const overlapping = (a: PlacedTile, b: PlacedTile, columns: number): boolean => {
|
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
|
-
|
|
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: "
|
|
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`,
|
|
@@ -1574,8 +1681,10 @@ export const en = {
|
|
|
1574
1681
|
home: {
|
|
1575
1682
|
edit: "Edit layout",
|
|
1576
1683
|
hint: "Drag to move. Pick a size at the top right; × takes a tile off this page.",
|
|
1577
|
-
/** Puts the page back as it
|
|
1684
|
+
/** Puts the page back as it stands 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: each tile moved up into the room the others leave it, at the size it has, none further down (ADR-0147). */
|
|
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",
|