@skillcdn/console 0.5.2 → 0.6.0

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 (77) hide show
  1. package/README.md +18 -14
  2. package/SKILLCDN.md +3 -2
  3. package/dist/cli/cli.d.ts.map +1 -1
  4. package/dist/cli/cli.js +29 -6
  5. package/dist/cli/cli.js.map +1 -1
  6. package/dist/cli/pack.d.ts +8 -0
  7. package/dist/cli/pack.d.ts.map +1 -1
  8. package/dist/cli/pack.js +12 -1
  9. package/dist/cli/pack.js.map +1 -1
  10. package/dist/compat.d.ts +1 -1
  11. package/dist/compat.js +2 -2
  12. package/dist/components/home.d.ts.map +1 -1
  13. package/dist/components/home.js +52 -28
  14. package/dist/components/home.js.map +1 -1
  15. package/dist/components/popover.d.ts +24 -0
  16. package/dist/components/popover.d.ts.map +1 -0
  17. package/dist/components/popover.js +127 -0
  18. package/dist/components/popover.js.map +1 -0
  19. package/dist/components/shell.d.ts.map +1 -1
  20. package/dist/components/shell.js +5 -106
  21. package/dist/components/shell.js.map +1 -1
  22. package/dist/console.css +83 -45
  23. package/dist/home-tiles.d.ts +19 -37
  24. package/dist/home-tiles.d.ts.map +1 -1
  25. package/dist/home-tiles.js +52 -328
  26. package/dist/home-tiles.js.map +1 -1
  27. package/dist/i18n/en.d.ts +4 -2
  28. package/dist/i18n/en.d.ts.map +1 -1
  29. package/dist/i18n/en.js +4 -2
  30. package/dist/i18n/en.js.map +1 -1
  31. package/dist/i18n/ko.d.ts.map +1 -1
  32. package/dist/i18n/ko.js +1 -0
  33. package/dist/i18n/ko.js.map +1 -1
  34. package/dist/plugin/manifest.d.ts.map +1 -1
  35. package/dist/plugin/manifest.js +3 -2
  36. package/dist/plugin/manifest.js.map +1 -1
  37. package/dist/plugin-web.d.ts +1 -0
  38. package/dist/plugin-web.d.ts.map +1 -1
  39. package/dist/plugin-web.js +3 -1
  40. package/dist/plugin-web.js.map +1 -1
  41. package/dist/plugin.d.ts +1 -0
  42. package/dist/plugin.d.ts.map +1 -1
  43. package/dist/plugin.js +4 -0
  44. package/dist/plugin.js.map +1 -1
  45. package/dist/runner/desk.js +1 -1
  46. package/dist/schemas.d.ts +15 -0
  47. package/dist/schemas.d.ts.map +1 -1
  48. package/docs/specs/cli.md +3 -3
  49. package/docs/specs/plugins.md +21 -11
  50. package/docs/specs/rest.md +1 -1
  51. package/docs/specs/runner.md +1 -1
  52. package/docs/start.md +48 -0
  53. package/package.json +4 -4
  54. package/skills/building-a-plugin/SKILL.md +3 -3
  55. package/skills/running-an-agent/SKILL.md +2 -2
  56. package/skills/working-the-board/SKILL.md +1 -1
  57. package/skills/working-the-board/references/the-pack.md +1 -1
  58. package/src/cli/cli.ts +33 -7
  59. package/src/cli/pack.ts +20 -1
  60. package/src/compat.ts +2 -2
  61. package/src/components/home.tsx +121 -52
  62. package/src/components/popover.ts +145 -0
  63. package/src/components/shell.tsx +5 -112
  64. package/src/home-tiles.ts +57 -376
  65. package/src/i18n/en.ts +4 -2
  66. package/src/i18n/ko.ts +1 -0
  67. package/src/plugin/manifest.ts +3 -2
  68. package/src/plugin-web.ts +3 -1
  69. package/src/plugin.ts +4 -0
  70. package/src/runner/desk.ts +1 -1
  71. package/src/styles/README.md +1 -1
  72. package/src/styles/pages/home.css +32 -5
  73. package/src/styles/parts/button.css +8 -4
  74. package/src/styles/parts/detail.css +3 -13
  75. package/src/styles/parts/menu.css +33 -0
  76. package/src/styles/parts/page.css +6 -16
  77. package/src/styles/parts/tabs.css +1 -7
package/src/i18n/en.ts CHANGED
@@ -1681,14 +1681,16 @@ export const en = {
1681
1681
  home: {
1682
1682
  edit: "Edit layout",
1683
1683
  hint: "Drag to move. Pick a size at the top right; × takes a tile off this page.",
1684
- /** Puts the page back as it is composed for someone who has arranged nothing, kept by Done (ADR-0109). */
1684
+ /** Puts the page back as it stands for someone who has arranged nothing, kept by Done (ADR-0109). */
1685
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). */
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
1687
  tidy: "Close the gaps",
1688
1688
  done: "Done",
1689
1689
  add: "Add",
1690
1690
  remove: "Remove from this page",
1691
1691
  size: "Size",
1692
+ /** The one button of a tile a cell wide, which opens the list of its sizes: the size it has. */
1693
+ sizeIs: (size: string) => `Size: ${size}`,
1692
1694
  sizes: {
1693
1695
  icon: "Icon",
1694
1696
  small: "Small",
package/src/i18n/ko.ts CHANGED
@@ -1598,6 +1598,7 @@ export const ko: Messages = {
1598
1598
  add: "추가",
1599
1599
  remove: "화면에서 제거",
1600
1600
  size: "크기",
1601
+ sizeIs: (size) => `크기: ${size}`,
1601
1602
  sizes: {
1602
1603
  icon: "아이콘",
1603
1604
  small: "소형",
@@ -489,8 +489,9 @@ const pluginWidgetSchema = z
489
489
  z.array(z.enum(PLUGIN_WIDGET_SIZE_NAMES)).check(z.minLength(1), z.maxLength(5)),
490
490
  ),
491
491
  /**
492
- * The size it would rather start at, one of `sizes`; the first of them when left out. A page
493
- * nobody arranged may tell it another of `sizes`, the nearest the box it has (ADR-0082).
492
+ * The size it starts at, one of `sizes`; the first of them when left out. A page nobody
493
+ * arranged shows it at this size, or at the largest of `sizes` that fits a narrower grid
494
+ * (ADR-0147); a larger one is for the person to choose.
494
495
  */
495
496
  defaultSize: z.optional(z.enum(PLUGIN_WIDGET_SIZE_NAMES)),
496
497
  roles: z.optional(roleList),
package/src/plugin-web.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  // The frame's side of the bridge (docs/specs/plugins.md, "The bridge"), for a plugin's web bundle:
2
- // `connect()` and the messages. Depends on nothing; runs in a browser.
2
+ // `connect()` and the messages, and the Korean particles of two forms as the console's own pages
3
+ // write them (ADR-0137), for a page's words. Depends on nothing; runs in a browser.
3
4
 
5
+ export { asObject, asSubject, asWay } from "./i18n/particles.js";
4
6
  export {
5
7
  BRIDGE_EVENT_KINDS,
6
8
  BRIDGE_METHODS,
package/src/plugin.ts CHANGED
@@ -5,6 +5,10 @@
5
5
  // console, which reads the description the module yields.
6
6
 
7
7
  export * as z from "zod";
8
+ // The Korean particles that take one of two forms, as the console's own Korean writes them
9
+ // (ADR-0137): a sentence a plugin writes for people, a decision's question or a task's title,
10
+ // reads as the console's sentences beside it do.
11
+ export { asObject, asSubject, asWay } from "./i18n/particles.js";
8
12
  export {
9
13
  ARG_TYPES,
10
14
  type ArgDefinition,
@@ -109,7 +109,7 @@ The instructions of ${name}'s desk, for whichever agent product runs here.
109
109
 
110
110
  ## Who I am
111
111
 
112
- I am ${name} (@${input.agent.handle})${title.length === 0 ? "" : `, ${title}`}, an agent account of ${plain(input.console.workspace)} (${input.console.url}): a member of my own, signed in as myself, under the rules every member is under. I report to a manager, whom \`console manager\` names, with the administrators who stand in when my manager is away. I work as any member does: my profiles and what I sign carry my name and my role, and nothing else. I never say I am a person.
112
+ I am ${name} (@${input.agent.handle})${title.length === 0 ? "" : `, ${title}`}, an agent account of ${plain(input.console.workspace)} (${input.console.url}): a member of my own, signed in as myself, under the rules every member is under. I report to a manager, whom \`console manager\` names, with the administrators who stand in when my manager is away. I work as any member does: my profiles and what I sign carry my name and my role, and nothing else.
113
113
 
114
114
  ## Where I work
115
115
 
@@ -53,7 +53,7 @@ A part is a file under `parts/` and a row here, with the classes that are its ow
53
53
  | `files` | `sc-file*`, `sc-chosen*` | | Files to choose, and the ones chosen with the way to take each out. |
54
54
  | `toggle` | `sc-toggle*` | | One choice among a few, each a chip, the chosen one filled. |
55
55
  | `picker` | `sc-picker*`, `sc-person-option*` | `Picker` | One thing chosen out of a listing that is searched: a person, a project, a goal, a task. `sc-picker-quiet` where it is a fact changed in place, `sc-picker-add` at the end of a row of chips. |
56
- | `menu` | `sc-menu*` | | What opens from a button over the page: the person's menu, a card's. |
56
+ | `menu` | `sc-menu*` | | What opens from a button over the page: the person's menu, a card's. `sc-menu-popover` is a panel opened in the top layer, over whatever around its button would clip or cover it, as a front page tile's sizes are. |
57
57
  | `tabs` | `sc-tab*`, `sc-tabs*`, `sc-subtabs*` | | The pages of a project (`sc-tabs`), and the views of one page (`sc-subtabs` of `sc-tab`s), the current one marked. |
58
58
  | `pager` | `sc-pager*`, `sc-show*` | `Pager`, `ShowMore` | A long list a page at a time: turned by pages, or grown by "show more". |
59
59
  | `badge` | `sc-badge*`, `sc-kind*` | `Badge`, `DueBadge`, `GoalStateBadge`, `RoleBadge`, `RunStatusBadge` | A state or a kind in a word. The tone is the meaning: neutral, accent, success, warning, point, danger. Nothing stands before its words but the dot of one that is `live`. |
@@ -638,7 +638,8 @@ a.sc-tile-glance:focus-visible {
638
638
 
639
639
  /* The sizes stay within their tile, folding onto a second row where a cell is narrower than they
640
640
  are, as a project's five are on an icon: what stands beside the tile, and its own way off the
641
- page, stay in reach. */
641
+ page, stay in reach. Their ends are round, as the tile's corner is, so that the row keeps as
642
+ far from the corner's curve as from its sides; a square end reached past the curve. */
642
643
  .sc-tile-sizes {
643
644
  position: absolute;
644
645
  top: var(--sc-space-1);
@@ -653,7 +654,7 @@ a.sc-tile-glance:focus-visible {
653
654
  margin: 0;
654
655
  padding: 1px;
655
656
  border: var(--sc-border);
656
- border-radius: var(--sc-radius-md);
657
+ border-radius: var(--sc-radius-full);
657
658
  background: var(--sc-color-bg-raised);
658
659
  }
659
660
 
@@ -665,7 +666,7 @@ a.sc-tile-glance:focus-visible {
665
666
  height: 1.5rem;
666
667
  padding: 0 3px;
667
668
  border: 0;
668
- border-radius: var(--sc-radius-sm);
669
+ border-radius: var(--sc-radius-full);
669
670
  background: transparent;
670
671
  color: var(--sc-color-text-muted);
671
672
  cursor: pointer;
@@ -692,16 +693,42 @@ a.sc-tile-glance:focus-visible {
692
693
  padding: 0 2px;
693
694
  }
694
695
 
695
- .sc-home-editing .sc-home-grid[data-columns="4"] .sc-tile-project:not(.sc-tile-project-card),
696
- .sc-home-editing .sc-home-grid[data-columns="6"] .sc-tile-project:not(.sc-tile-project-card) {
696
+ /* A project a cell wide stands lower, at every width, clear of the one button its sizes fold
697
+ behind, which stands in the corner as the sizes do, with no box around it to reach past the
698
+ tile's rounded corner. */
699
+ .sc-home-editing .sc-tile-project:not(.sc-tile-project-card) {
697
700
  justify-content: flex-end;
698
701
  }
699
702
 
703
+ .sc-home-size-one {
704
+ position: absolute;
705
+ top: var(--sc-space-1);
706
+ right: var(--sc-space-1);
707
+ z-index: 1;
708
+ }
709
+
700
710
  /* A glance's figures stand where the sizes do: while the page is arranged, it starts under them. */
701
711
  .sc-home-editing .sc-tile-glance {
702
712
  padding-top: calc(var(--sc-glance-pad-y) + var(--sc-space-6));
703
713
  }
704
714
 
715
+ /* The list a tile one cell wide opens of its sizes: as wide as its names, each size's shape in a
716
+ column of its own before its name, so that the names line up. */
717
+ .sc-home-size-menu {
718
+ min-width: 8rem;
719
+ }
720
+
721
+ .sc-home-size-option {
722
+ display: grid;
723
+ grid-template-columns: 1.5rem auto;
724
+ align-items: center;
725
+ column-gap: var(--sc-space-2);
726
+ }
727
+
728
+ .sc-home-size-option .sc-tile-size-glyph {
729
+ justify-self: center;
730
+ }
731
+
705
732
  /* The size's shape in small: the cells it takes, a few pixels each. */
706
733
  .sc-tile-size-glyph {
707
734
  display: block;
@@ -91,9 +91,13 @@
91
91
  }
92
92
 
93
93
  @media (max-width: 40rem) {
94
- /* A head with one way alone gives it the whole width too. */
95
- .sc-page-head > .sc-button {
96
- width: 100%;
97
- justify-content: center;
94
+ /* The ways at the head of a page on a phone, a page's or a task's: lower and narrower than a
95
+ form's, at one height whatever size each was given, so that the head stays a line over the
96
+ page; the words keep their size. */
97
+ .sc-page-head .sc-button,
98
+ .sc-task-actions > .sc-button {
99
+ min-height: 2.25rem;
100
+ padding: 0 var(--sc-space-3);
101
+ font-size: var(--sc-text-sm);
98
102
  }
99
103
  }
@@ -89,23 +89,13 @@
89
89
  }
90
90
 
91
91
  @media (max-width: 40rem) {
92
- /* A task's head: the parent on one line, the title, the badges, then the ways as a row of
93
- equal buttons. */
92
+ /* A task's head: the parent on one line, the title, the badges, then the ways at their own
93
+ width, as a page's head has them. */
94
94
  .sc-task-header {
95
95
  display: grid;
96
96
  justify-content: stretch;
97
97
  gap: var(--sc-space-3);
98
- }
99
-
100
- .sc-task-actions {
101
- flex-wrap: nowrap;
102
- align-items: stretch;
103
- }
104
-
105
- .sc-task-actions > * {
106
- flex: 1 1 0;
107
- justify-content: center;
108
- min-width: 0;
98
+ padding-bottom: var(--sc-space-3);
109
99
  }
110
100
  }
111
101
 
@@ -57,6 +57,39 @@
57
57
  overscroll-behavior: contain;
58
58
  }
59
59
 
60
+ /* A menu's panel as a popover, in the top layer: out of whatever around its button clips or
61
+ stacks over what hangs out of it, as a tile of the front page does, and placed under the
62
+ button by the component that opens it. A group tab's list is one too, by its own class. */
63
+ .sc-menu-popover {
64
+ position: fixed;
65
+ inset: auto;
66
+ margin: 0;
67
+ color: var(--sc-color-text);
68
+ font-size: var(--sc-text-sm);
69
+ }
70
+
71
+ /* Where the browser has no popover, the button shows and hides the list itself. */
72
+ .sc-menu-popover[hidden] {
73
+ display: none;
74
+ }
75
+
76
+ .sc-menu-popover:popover-open {
77
+ animation: sc-menu-in 120ms ease-out;
78
+ }
79
+
80
+ @keyframes sc-menu-in {
81
+ from {
82
+ opacity: 0;
83
+ transform: translateY(-0.25rem);
84
+ }
85
+ }
86
+
87
+ @media (prefers-reduced-motion: reduce) {
88
+ .sc-menu-popover:popover-open {
89
+ animation: none;
90
+ }
91
+ }
92
+
60
93
  .sc-menu-who {
61
94
  display: flex;
62
95
  flex-direction: column;
@@ -143,13 +143,14 @@
143
143
 
144
144
  /* A phone's pages as one design. */
145
145
  @media (max-width: 40rem) {
146
- /* Every page's head: the name, a word about it under the name, and the ways the page offers
147
- as a row of equal buttons under those, so that no head differs from another. */
146
+ /* Every page's head: the name, a word about it under the name, and the ways the page offers at
147
+ their own width, beside the name where they fit and on a line under the words where they do
148
+ not, so that no head differs from another. Buttons as wide as the window weighed more than
149
+ the page under them. */
148
150
  .sc-page-head {
149
- display: grid;
150
- justify-content: stretch;
151
151
  gap: var(--sc-space-3);
152
- margin-bottom: var(--sc-space-5);
152
+ margin-bottom: var(--sc-space-4);
153
+ padding-bottom: var(--sc-space-3);
153
154
  }
154
155
 
155
156
  .sc-page-heading {
@@ -160,15 +161,4 @@
160
161
  .sc-page-lead {
161
162
  flex: none;
162
163
  }
163
-
164
- .sc-page-actions {
165
- flex-wrap: nowrap;
166
- width: 100%;
167
- }
168
-
169
- .sc-page-actions > * {
170
- flex: 1 1 0;
171
- justify-content: center;
172
- min-width: 0;
173
- }
174
164
  }
@@ -111,17 +111,11 @@
111
111
  display: none;
112
112
  }
113
113
 
114
+ /* It opens as a menu's popover does (sc-menu-in, the menu's). */
114
115
  .sc-tab-group-panel:popover-open {
115
116
  animation: sc-menu-in 120ms ease-out;
116
117
  }
117
118
 
118
- @keyframes sc-menu-in {
119
- from {
120
- opacity: 0;
121
- transform: translateY(-0.25rem);
122
- }
123
- }
124
-
125
119
  @media (prefers-reduced-motion: reduce) {
126
120
  .sc-tab-group-panel:popover-open {
127
121
  animation: none;