@skillcdn/console 0.3.2 → 0.4.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 (146) hide show
  1. package/README.md +3 -3
  2. package/dist/api.d.ts +1 -1
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/api.js +1 -1
  5. package/dist/api.js.map +1 -1
  6. package/dist/cli/cli.d.ts.map +1 -1
  7. package/dist/cli/cli.js +96 -7
  8. package/dist/cli/cli.js.map +1 -1
  9. package/dist/cli/format.d.ts.map +1 -1
  10. package/dist/cli/format.js +6 -4
  11. package/dist/cli/format.js.map +1 -1
  12. package/dist/cli/help.d.ts.map +1 -1
  13. package/dist/cli/help.js +48 -17
  14. package/dist/cli/help.js.map +1 -1
  15. package/dist/cli/pack.d.ts +7 -2
  16. package/dist/cli/pack.d.ts.map +1 -1
  17. package/dist/cli/pack.js +16 -2
  18. package/dist/cli/pack.js.map +1 -1
  19. package/dist/client.d.ts +7 -2
  20. package/dist/client.d.ts.map +1 -1
  21. package/dist/client.js +7 -1
  22. package/dist/client.js.map +1 -1
  23. package/dist/compat.d.ts +1 -1
  24. package/dist/compat.js +2 -2
  25. package/dist/components/board.d.ts +12 -1
  26. package/dist/components/board.d.ts.map +1 -1
  27. package/dist/components/board.js +52 -4
  28. package/dist/components/board.js.map +1 -1
  29. package/dist/components/calendar.d.ts +4 -0
  30. package/dist/components/calendar.d.ts.map +1 -1
  31. package/dist/components/calendar.js +61 -22
  32. package/dist/components/calendar.js.map +1 -1
  33. package/dist/components/decision-form.d.ts +12 -4
  34. package/dist/components/decision-form.d.ts.map +1 -1
  35. package/dist/components/decision-form.js +24 -6
  36. package/dist/components/decision-form.js.map +1 -1
  37. package/dist/components/decision-list.d.ts +4 -0
  38. package/dist/components/decision-list.d.ts.map +1 -1
  39. package/dist/components/decision-list.js +9 -6
  40. package/dist/components/decision-list.js.map +1 -1
  41. package/dist/components/documents.d.ts.map +1 -1
  42. package/dist/components/documents.js +3 -3
  43. package/dist/components/documents.js.map +1 -1
  44. package/dist/components/event-feed.d.ts.map +1 -1
  45. package/dist/components/event-feed.js +63 -8
  46. package/dist/components/event-feed.js.map +1 -1
  47. package/dist/components/my-decisions.d.ts +20 -0
  48. package/dist/components/my-decisions.d.ts.map +1 -0
  49. package/dist/components/my-decisions.js +36 -0
  50. package/dist/components/my-decisions.js.map +1 -0
  51. package/dist/components/people.d.ts.map +1 -1
  52. package/dist/components/people.js +1 -1
  53. package/dist/components/people.js.map +1 -1
  54. package/dist/components/projects.d.ts.map +1 -1
  55. package/dist/components/projects.js +3 -3
  56. package/dist/components/projects.js.map +1 -1
  57. package/dist/components/roadmap.js +1 -1
  58. package/dist/components/roadmap.js.map +1 -1
  59. package/dist/components/runs.d.ts.map +1 -1
  60. package/dist/components/runs.js +1 -1
  61. package/dist/components/runs.js.map +1 -1
  62. package/dist/components/shell.d.ts.map +1 -1
  63. package/dist/components/shell.js +36 -1
  64. package/dist/components/shell.js.map +1 -1
  65. package/dist/components/task-list.js +1 -1
  66. package/dist/components/task-list.js.map +1 -1
  67. package/dist/components/task-view.d.ts.map +1 -1
  68. package/dist/components/task-view.js +2 -2
  69. package/dist/components/task-view.js.map +1 -1
  70. package/dist/components/ui.d.ts +10 -0
  71. package/dist/components/ui.d.ts.map +1 -1
  72. package/dist/components/ui.js +15 -11
  73. package/dist/components/ui.js.map +1 -1
  74. package/dist/console.css +1642 -433
  75. package/dist/console.d.ts.map +1 -1
  76. package/dist/console.js +70 -7
  77. package/dist/console.js.map +1 -1
  78. package/dist/data.d.ts +11 -1
  79. package/dist/data.d.ts.map +1 -1
  80. package/dist/data.js +2 -0
  81. package/dist/data.js.map +1 -1
  82. package/dist/i18n/en.d.ts +34 -0
  83. package/dist/i18n/en.d.ts.map +1 -1
  84. package/dist/i18n/en.js +36 -2
  85. package/dist/i18n/en.js.map +1 -1
  86. package/dist/i18n/ko.d.ts.map +1 -1
  87. package/dist/i18n/ko.js +37 -3
  88. package/dist/i18n/ko.js.map +1 -1
  89. package/dist/index.d.ts +3 -2
  90. package/dist/index.d.ts.map +1 -1
  91. package/dist/index.js +3 -2
  92. package/dist/index.js.map +1 -1
  93. package/dist/router.d.ts +9 -1
  94. package/dist/router.d.ts.map +1 -1
  95. package/dist/router.js +12 -0
  96. package/dist/router.js.map +1 -1
  97. package/dist/routes.d.ts +3 -1
  98. package/dist/routes.d.ts.map +1 -1
  99. package/dist/routes.js +3 -1
  100. package/dist/routes.js.map +1 -1
  101. package/dist/rules.js +1 -1
  102. package/dist/rules.js.map +1 -1
  103. package/dist/schemas.d.ts +242 -3
  104. package/dist/schemas.d.ts.map +1 -1
  105. package/dist/schemas.js +18 -4
  106. package/dist/schemas.js.map +1 -1
  107. package/docs/specs/cli.md +6 -5
  108. package/docs/specs/rest.md +11 -6
  109. package/package.json +2 -2
  110. package/skills/building-a-console/SKILL.md +3 -3
  111. package/skills/building-a-console/references/the-default-console.md +4 -4
  112. package/skills/building-a-console/references/the-look-from-a-website.md +5 -5
  113. package/skills/working-the-board/SKILL.md +6 -4
  114. package/skills/working-the-board/references/terms.md +1 -1
  115. package/src/api.ts +2 -0
  116. package/src/cli/cli.ts +123 -7
  117. package/src/cli/format.ts +11 -4
  118. package/src/cli/help.ts +49 -16
  119. package/src/cli/pack.ts +17 -1
  120. package/src/client.ts +21 -1
  121. package/src/compat.ts +2 -2
  122. package/src/components/board.tsx +114 -21
  123. package/src/components/calendar.tsx +207 -102
  124. package/src/components/decision-form.tsx +71 -23
  125. package/src/components/decision-list.tsx +30 -3
  126. package/src/components/documents.tsx +27 -11
  127. package/src/components/event-feed.tsx +116 -33
  128. package/src/components/my-decisions.tsx +138 -0
  129. package/src/components/people.tsx +3 -1
  130. package/src/components/projects.tsx +7 -5
  131. package/src/components/roadmap.tsx +1 -1
  132. package/src/components/runs.tsx +5 -1
  133. package/src/components/shell.tsx +36 -1
  134. package/src/components/task-list.tsx +1 -1
  135. package/src/components/task-view.tsx +48 -47
  136. package/src/components/ui.tsx +64 -11
  137. package/src/console.tsx +129 -27
  138. package/src/data.ts +17 -0
  139. package/src/i18n/en.ts +38 -2
  140. package/src/i18n/ko.ts +39 -3
  141. package/src/index.ts +3 -0
  142. package/src/router.ts +18 -1
  143. package/src/routes.ts +3 -1
  144. package/src/rules.ts +1 -1
  145. package/src/schemas.ts +20 -4
  146. package/src/styles/console.css +1642 -433
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  <a href="https://github.com/skillcdn/console/blob/main/LICENSE.md"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-3a6dd4"></a>
9
9
  </p>
10
10
 
11
- **Pre-1.0.** Published from `main` by the release workflow, from changesets, through the registry's trusted publishing ([ADR-0007](https://github.com/skillcdn/console/blob/main/docs/adr/0007-the-package-is-published-through-trusted-publishing-and-versioned-on-the-core-line.md)). The version's major and minor are SkillCDN's, the one version of the main repository's packages the console is built on, and its patch the console's own: `@skillcdn/console` 0.3.x is the console for SkillCDN 0.3, and the changelog says what each release changed, first as `Breaking:` where it changed what existed ([ADR-0034](https://github.com/skillcdn/console/blob/main/docs/adr/0034-the-package-is-versioned-on-skillcdns-line-one-line-at-a-time-with-a-patch-of-its-own.md)). All three layers are here, and the command: the contract of the REST API, the components, the composition of the default console, and `console`, what an agent works the board with.
11
+ **Pre-1.0.** Published from `main` by the release workflow, from changesets, through the registry's trusted publishing ([ADR-0007](https://github.com/skillcdn/console/blob/main/docs/adr/0007-the-package-is-published-through-trusted-publishing-and-versioned-on-the-core-line.md)). The version's major and minor are SkillCDN's, the one version of the main repository's packages the console is built on, and its patch the console's own: `@skillcdn/console` 0.4.x is the console for SkillCDN 0.4, and the changelog says what each release changed, first as `Breaking:` where it changed what existed ([ADR-0034](https://github.com/skillcdn/console/blob/main/docs/adr/0034-the-package-is-versioned-on-skillcdns-line-one-line-at-a-time-with-a-patch-of-its-own.md)). All three layers are here, and the command: the contract of the REST API, the components, the composition of the default console, and `console`, what an agent works the board with.
12
12
 
13
13
  ## What it exports
14
14
 
@@ -76,11 +76,11 @@ createConsole({
76
76
  }).mount(document.getElementById("root"));
77
77
  ```
78
78
 
79
- - **The components** take their data as props and nothing from the network: `Board` (one column per state, the sooner due first; given `onMove`, a card is dragged to another column with a mouse, or with a finger that rests on it a moment first; given `editHref` and `onArchive`, each card has a menu with the way to the task's form and, once it is done or dropped, the way to put it away), `TaskCard`, `BoardFilters` with `filterTasks` and `byDue` (the board narrowed by category, goal, person and one's own), `TaskList` (tasks as rows, a page at a time), `TaskView` (one task with its plan, its moments, its workers, its decisions and its parts; given `parent`, the task it is part of when the page has read it, and `findTasks` and `findGoals`, its form searches), `TaskForm` (with the `categories` to choose from, the `people` to put on the task as its workers, and `findTasks` and `findGoals`, searches a page at a time by which the task it is part of and the goal it works towards are found, never offered whole, ADR-0037), `Calendar` and `Workload` with `workloadOf` (a month with each task across its planned days, a bar in a lane of its own, or on its one day, a due day or a start, the person who has each before its title, with a legend of the colours of the `categories` given, and who has what; `weekSegments` lays the bars; `TaskTip` is the task under the pointer in full, with the facts its page lists, within its item and above or below it as `placeTip` says, where there is more room, its goal named from the `goals` given; the composition narrows the page with `BoardFilters` as it does the board, the address carrying the filter with the month), `GoalList`, `GoalView` and `GoalForm` (the roadmap, one goal with its tasks by state, and the way to set one, with the `categories` to sort it into and its start and target days, ADR-0026), `GoalTimeline` with `timelineBars` (the roadmap as months: six from the month given, each goal planned in days a bar from its start to its target in the colour of its category, filled as far as its tasks are done, today marked, and the goals without days named below; `Calendar` given `goalHref` marks each goal's target day on the month), `WorkList` (a person's own work across projects), `CategoryList` (the categories, with the ways an administrator keeps them), `DecisionList` and `DecisionCard` (the waiting ones as cards, each with the way to answer, one of the options or a line of one's own; the answered ones as the record, `DecisionLog`, a row each with who asked and when, through which agent, the answer with the word given, marked when it is the person's own, and who answered and when, twenty to a page, each page at an address given `pageHref` and `page`, or turned in place), `DecisionForm`, `EventFeed` (a sentence per event, newest first, a page at a time; `describeEvent` makes the sentence), `Shell` (the header with the workspace, the project, the tabs of the pages and the person's menu), `SignIn` (one button per provider the deployment offers), `TokenList`, `TokenForm` and `NewToken` (the agents a person connected, as the tokens they hold, the way to make one by hand, and the one just made with its secret shown once), `ConnectCodeForm`, `ConnectApproval` and `ConnectWords` (an agent connecting with a code: where the code is typed, what asks under it with the way to approve or refuse it, and what to tell the agent; `ConnectPage` composes the first two for a code), `PeopleList` (everyone in, with what each is and what let them in, the logins let in that nobody signed in with yet, and the deactivated, with the ways for an administrator to change a role, take a person out or back in, and take a listing away) and `ListingForm` (where an administrator lets someone in by login), `ProjectMark` (a project's mark: its own image when it has one, else its symbol on its colour, or the ones chosen from its key and its name; `sm`, `md` or `lg`), `ProjectList`, `ProjectForm` and `MemberList` (the projects a person may see with what they are in each, the way to make or change one, its mark included, with an image chosen for it (`onSubmit` gets the file, or `null` to take the image away), and those listed in a project with the way for an owner to add, change and remove them; `ProjectRoleBadge`, `PROJECT_ROLE_LABELS`, `VISIBILITY_LABELS` and `keyOf` with them), `PackTokenForm`, `PackConnect` and `PackTokenWays` (the SkillCDN token a private pack is read with: pasted, or connected with a code approved at SkillCDN, the console asked again at the interval the deployment named; and the two ways side by side, as a project's Settings page and the workspace's offer them), `WorkspaceSettingsView` and `WorkspaceSettingsForm` (the workspace's settings as rows: who sees whom, the day the week begins on and the time zone, picked by area with `timeZoneGroups`, `deviceTimeZone` and `offsetOf`), `SkillList` (a project's skills as SkillCDN serves them at its address, each with where a person reads it and what an agent loads it by, and how an agent is connected to it), `RulesView` and `RulesForm` (the rules of the board, ADR-0023: what holds and where it comes from, the console's own, a page written or none, with `{language}` filled with the language the pages speak, folded under its facts where asked, and the ways to write them, put them away and go back to the console's own for whoever may; the form starts from what holds and saves nothing that would change nothing), `FolderView`, `DocumentList`, `DocumentSearch`, `DocumentView`, `DocumentForm`, `DocumentFiles` and `DocumentCrumbs` (a project's documents: a folder's folders and pages, the way to find pages by their words, one page with its versions, what it links to, what refers to it and its files, a picture among them shown where the body names it, and the forms to write and attach, a picture pasted into the body attached once the page is written; `DocsPage` composes them for a path), `RunList` and `RunCard` (an agent's run on a task: what it reported, what it handed in, links and files alike, a picture among them small and large as a comment's is and placed in a report by its file name, what it waits for, and when an open one was last heard from; `RunStatusBadge` and `RUN_STATUS_LABELS` with them, and `fileHref` for where a file is read), `TaskThread`, `CommentCard` and `CommentForm` (the discussion on a task, ADR-0024: the comments, the runs and the decisions as one thread in the order they came, which `threadOf` orders, each comment with who said it, through which agent, its text with the pictures it names in place and its other files after it, pictures being what `isPicture` says, and the form at the end, where a picture pasted in goes with the comment; `TaskView` shows the thread given `comments` and `onComment`, and its `fileHref` names any file of the project by its id), and `Markdown`, which renders what people and agents wrote as elements, never as HTML, with links to the web only and pictures over https only, or, given `fileSrc`, from the file of that name, and, given `docHref`, a link to a page's path as a link to the page. `DecisionCard` reads as a record, with the context, the rationale and what followed, which `onUpdate` lets a person write. The small blocks (`Button`, `CopyButton` (a text put on the clipboard), `Badge`, `Avatar` (`xs` to `lg`), `PersonChip` with `personName` (a person by the name the host gives, the login where there is none), `Callout`, `EmptyState`, `Spinner`, `Time`, `Day`, `CategoryBadge`, `DueBadge`, `GoalStateBadge`, `ProgressBar`, `ShowMore` with `usePaged` and `PAGE_SIZE`, a long list growing a page at a time, `Pager` with `pageOf` and `RECORD_PAGE_SIZE`, a list turned by pages, `Picker` with `PICKER_PAGE_LIMIT`, one thing chosen out of a listing searched a page at a time and standing as a chip once chosen, and `Workers`, the people at work on a task as pictures side by side with a count of the rest), the words of the vocabulary (`STATE_LABELS`, `PRIORITY_LABELS`, `ROLE_LABELS`, with `RoleBadge`) and the day helpers (`today`, `addDays`, `daysBetween`, `monthGrid`, `formatDay`, `formatMonth` and the rest, days being the strings the API spells them as) are exported too.
79
+ - **The components** take their data as props and nothing from the network: `Board` (one column per state, the sooner due first; given `onMove`, a card is dragged to another column with a mouse, or with a finger that rests on it a moment first; given `editHref` and `onArchive`, each card has a menu with the way to the task's form and, once it is done or dropped, the way to put it away; the columns `folded` names, `FOLDED_STATES`, done and dropped, by default, are strips with their count and the way to open them, still taking a card dragged onto them, and `[]` folds none), `TaskCard`, `BoardFilters` with `filterTasks` and `byDue` (the board narrowed by category, goal, person and one's own), `TaskList` (tasks as rows, a page at a time), `TaskView` (one task with its plan, its moments, its workers, its decisions and its parts, the ways to its forms in its head beside the title; given `parent`, the task it is part of when the page has read it, and `findTasks` and `findGoals`, its form searches), `TaskForm` (with the `categories` to choose from, the `people` to put on the task as its workers, and `findTasks` and `findGoals`, searches a page at a time by which the task it is part of and the goal it works towards are found, never offered whole, ADR-0037), `Calendar` and `Workload` with `workloadOf` (a month with each task across its planned days, a bar in a lane of its own, or on its one day, a due day or a start, three of a day's own and the way to the rest where it has more, the person who has each before its title, with a legend of the colours of the `categories` given, and who has what; `weekSegments` lays the bars; `TaskTip` is the task under the pointer in full, with the facts its page lists, within its item and above or below it as `placeTip` says, where there is more room, its goal named from the `goals` given; the composition narrows the page with `BoardFilters` as it does the board, the address carrying the filter with the month), `GoalList`, `GoalView` and `GoalForm` (the roadmap, one goal with its tasks by state, and the way to set one, with the `categories` to sort it into and its start and target days, ADR-0026), `GoalTimeline` with `timelineBars` (the roadmap as months: six from the month given, each goal planned in days a bar from its start to its target in the colour of its category, filled as far as its tasks are done, today marked, and the goals without days named below; `Calendar` given `goalHref` marks each goal's target day on the month), `WorkList` (a person's own work across projects), `MyDecisions` (a person's decisions across their projects: those addressed to them, the waiting first, and those they asked of others, each row naming who asked and who answers, ADR-0042), `CategoryList` (the categories, with the ways an administrator keeps them), `DecisionList` and `DecisionCard` (the waiting ones as cards, each with the way to answer, one of the options or a line of one's own; the answered ones as the record, `DecisionLog`, a row each with who asked and when, through which agent, the answer with the word given, marked when it is the person's own, and who answered and when, twenty to a page, each page at an address given `pageHref` and `page`, or turned in place), `DecisionForm` (about the task given as `taskId`, or one found by search through `findTasks`, a page at a time, ADR-0037; addressed to `me` unless one of `deciders`, the people who may be named, is chosen, ADR-0042), `EventFeed` (a sentence per event, newest first, a page at a time; `describeEvent` makes the sentence), `Shell` (the header with the workspace, the project, the tabs of the pages and the person's menu), `SignIn` (one button per provider the deployment offers), `TokenList`, `TokenForm` and `NewToken` (the agents a person connected, as the tokens they hold, the way to make one by hand, and the one just made with its secret shown once), `ConnectCodeForm`, `ConnectApproval` and `ConnectWords` (an agent connecting with a code: where the code is typed, what asks under it with the way to approve or refuse it, and what to tell the agent; `ConnectPage` composes the first two for a code), `PeopleList` (everyone in, with what each is and what let them in, the logins let in that nobody signed in with yet, and the deactivated, with the ways for an administrator to change a role, take a person out or back in, and take a listing away) and `ListingForm` (where an administrator lets someone in by login), `ProjectMark` (a project's mark: its own image when it has one, else its symbol on its colour, or the ones chosen from its key and its name; `sm`, `md` or `lg`), `ProjectList`, `ProjectForm` and `MemberList` (the projects a person may see with what they are in each, the way to make or change one, its mark included, with an image chosen for it (`onSubmit` gets the file, or `null` to take the image away), and those listed in a project with the way for an owner to add, change and remove them; `ProjectRoleBadge`, `PROJECT_ROLE_LABELS`, `VISIBILITY_LABELS` and `keyOf` with them), `PackTokenForm`, `PackConnect` and `PackTokenWays` (the SkillCDN token a private pack is read with: pasted, or connected with a code approved at SkillCDN, the console asked again at the interval the deployment named; and the two ways side by side, as a project's Settings page and the workspace's offer them), `WorkspaceSettingsView` and `WorkspaceSettingsForm` (the workspace's settings as rows: who sees whom, the day the week begins on and the time zone, picked by area with `timeZoneGroups`, `deviceTimeZone` and `offsetOf`), `SkillList` (a project's skills as SkillCDN serves them at its address, each with where a person reads it and what an agent loads it by, and how an agent is connected to it), `RulesView` and `RulesForm` (the rules of the board, ADR-0023: what holds and where it comes from, the console's own, a page written or none, with `{language}` filled with the language the pages speak, folded under its facts where asked, and the ways to write them, put them away and go back to the console's own for whoever may; the form starts from what holds and saves nothing that would change nothing), `FolderView`, `DocumentList`, `DocumentSearch`, `DocumentView`, `DocumentForm`, `DocumentFiles` and `DocumentCrumbs` (a project's documents: a folder's folders and pages, the way to find pages by their words, one page with its versions, what it links to, what refers to it and its files, a picture among them shown where the body names it, and the forms to write and attach, a picture pasted into the body attached once the page is written; `DocsPage` composes them for a path), `RunList` and `RunCard` (an agent's run on a task: what it reported, what it handed in, links and files alike, a picture among them small and large as a comment's is and placed in a report by its file name, what it waits for, and when an open one was last heard from; `RunStatusBadge` and `RUN_STATUS_LABELS` with them, and `fileHref` for where a file is read), `TaskThread`, `CommentCard` and `CommentForm` (the discussion on a task, ADR-0024: the comments, the runs and the decisions as one thread in the order they came, which `threadOf` orders, each comment with who said it, through which agent, its text with the pictures it names in place and its other files after it, pictures being what `isPicture` says, and the form at the end, where a picture pasted in goes with the comment; `TaskView` shows the thread given `comments` and `onComment`, and its `fileHref` names any file of the project by its id), and `Markdown`, which renders what people and agents wrote as elements, never as HTML, with links to the web only and pictures over https only, or, given `fileSrc`, from the file of that name, and, given `docHref`, a link to a page's path as a link to the page. `DecisionCard` reads as a record, with the context, the rationale and what followed, which `onUpdate` lets a person write. The small blocks (`Button`, `LinkButton` (a link that reads as a button), `CopyButton` (a text put on the clipboard), `Badge`, `Avatar` (`xs` to `lg`), `PersonChip` with `personName` (a person by the name the host gives, the login where there is none), `Callout`, `EmptyState`, `Spinner`, `Time`, `Day`, `CategoryBadge`, `DueBadge`, `GoalStateBadge`, `ProgressBar`, `ShowMore` with `usePaged` and `PAGE_SIZE`, a long list growing a page at a time, `Pager` with `pageOf` and `RECORD_PAGE_SIZE`, a list turned by pages, `Picker` with `PICKER_PAGE_LIMIT`, one thing chosen out of a listing searched a page at a time and standing as a chip once chosen, and `Workers`, the people at work on a task as pictures side by side with a count of the rest), the words of the vocabulary (`STATE_LABELS`, `PRIORITY_LABELS`, `ROLE_LABELS`, with `RoleBadge`) and the day helpers (`today`, `addDays`, `daysBetween`, `monthGrid`, `formatDay`, `formatMonth` and the rest, days being the strings the API spells them as) are exported too.
80
80
  - **The composition:** `createConsole(config)` returns `{ App, mount }`. `App` is the whole console as one component; `mount(container)` renders it and returns the way to take it down. `config.baseUrl` is the origin of the API (the page's own when left out), `config.components` the pieces to replace (`ConsoleComponents` names them with the props each takes), `config.languages` the packs the pages speak, `config.brand` the addresses of a symbol and a wordmark to show beside the name (ADR-0013; the default console passes those of `@skillcdn/brand`, the main repository's package of its marks), `config.client` a client of your own, for tests. The SkillCDN name and marks are trademarks of KDX Labs under the main repository's trademark policy, not under this package's MIT license; a custom console brings its own marks through the same slot. A console that holds a token rather than a session (one of your own, served by `console serve`) is told so by the API (`me.agent`, the token's name) and offers nothing a token cannot do: no agents page and no sign-out, since the tokens themselves are a person's own doing; everything else, configuring included, it does on the token as the person (ADR-0021), and it keeps the choice of language on the person. The pages route in the browser and every form has an address (ADR-0010): the projects at `/`, the person's own work at `/work`, the workspace's settings at `/settings` (its rules, its categories at `/categories`, where its skills come from), a project's pages under `/projects/<key>` (its roadmap, calendar and settings among them), a task by its number, a goal and a decision by their ids, a document by its path, and the query for how a page is shown, the board's filters, the calendar's month, the week of the person's work and the settings' forms among it (`matchRoute(pathname, search)`, `PATHS`, `projectHref`, `boardHref`, `taskHref`, `goalHref`, `calendarHref`, `workHref`, `personWorkHref`, `decisionHref`, `docHref`, `settingsHref`, `projectSettingsHref`, `newTaskHref`, `newGoalHref`, `newDecisionHref`, and `movedFrom` for the addresses of before); every link to one of them is followed in place, with one history entry per step; the workspace is loaded once and the project the page is on whole, kept current by the project's stream (`useConsoleData(client, projectKey)`, for a composition of your own).
81
81
  - **Pages of your own:** `config.pages` adds tabs beside the console's. Each is a `CustomPage`: a `key` (what the address says: `/pages/<key>` on the workspace, `/projects/<project>/pages/<key>` on a project), a `label` (one word, or a word by language tag with `en` standing in), a `level` (`workspace`, or `project` for a tab on every project), `wide` for a page that takes the whole window, and `render(context)`, which gets what the default pages get: the `data` of `useConsoleData` with its actions, the `project` the page is on, the `client`, the `navigation`, the `words` and the `language`. `customPageHref` names the address and `customPageLabel` the tab's word. A page that is not among the pages given shows nothing there.
82
82
  - **The languages:** every word the pages show is in a pack (`Messages`, keyed as `en` is), English and Korean ship (`ENGLISH`, `KOREAN`, `DEFAULT_LANGUAGES`), and a component takes its words from the language above it (`useWords`, `useLanguage`, `LanguageContext`), English where there is none. The person's choice is kept on them (`client.updateMe({ language })`) and the browser's languages decide before one (`chooseLanguage`, `packFor`). `createConsole({ languages })` replaces the packs the default console speaks, so that a custom console adds a language of its own; a pack is complete by type.
83
- - **The styles** are one file, `@skillcdn/console/console.css`: the tokens (`--sc-*`), a small reset, and one class per block, all prefixed `sc-`. The look is SkillCDN's own: dark only, one accent, the page a dark field with a light in it (the shell, `sc-shell`, paints it) and the surfaces panes of glass over it (`--sc-glass-*`). Re-skinning starts and mostly ends with the tokens; a custom console that wants a flat page sets the field's colours to one and the glass to none. A stylesheet of your own, loaded after this one, sets them on `:root`: the surfaces (`--sc-color-bg`, `--sc-color-bg-subtle`, `--sc-color-bg-inset`, `--sc-color-bg-raised`, the borders), the text (`--sc-color-text`, `--sc-color-text-muted`, `--sc-color-text-faint`), the accent and the point (`--sc-color-accent*`, `--sc-color-point*`), the tones (`--sc-color-success`, `--sc-color-warning`, `--sc-color-danger`, each with a `-subtle`), the field and its light (`--sc-color-sky`, `--sc-color-far*`, `--sc-color-light-*`, `--sc-color-vignette`), the glass (`--sc-color-glass*`, `--sc-color-sheet*`, `--sc-color-field`), the fonts (`--sc-font-sans`, `--sc-font-mono`) and the radii (`--sc-radius-*`); the categories' colours are `--sc-category-line` and `--sc-category-fill` under `.sc-category-<name>`. Beyond the tokens, every block has its class (`sc-panel`, `sc-card`, `sc-column`, `sc-header`, ...), which a stylesheet of your own may style; the classes are part of the package's surface, and a change to one is in the changelog. The faces are the page's to provide: the stylesheet names Pretendard first for the Korean and falls through to the system's faces, and the default console loads it; a custom console loads what it likes.
83
+ - **The styles** are one file, `@skillcdn/console/console.css`: the tokens (`--sc-*`, 86 of them, every one read by a rule), a small reset, and one class per block, all prefixed `sc-`. The look is SkillCDN's own, on a light ground ([ADR-0040](https://github.com/skillcdn/console/blob/main/docs/adr/0040-the-pages-are-light-by-default.md)): one accent, the page a pale field (the shell, `sc-shell`, paints it), the surfaces panes of frosted glass over it, and white sheets inside the panes. Re-skinning starts and mostly ends with the tokens; a stylesheet of your own, loaded after this one, sets them on `:root`. The ground: `--sc-color-bg`, `--sc-color-bg-inset` (a step into it), `--sc-color-bg-raised` (white above it), `--sc-color-border` and `--sc-color-border-strong`. The text: `--sc-color-text`, `--sc-color-text-muted` and `--sc-color-text-faint`. The accent and the point: `--sc-color-accent`, `--sc-color-accent-solid` (the fill a white label reads on), `--sc-color-accent-contrast`, `--sc-color-accent-subtle`, `--sc-color-point` and `--sc-color-point-subtle`; what is under the pointer is mixed from them where it is drawn. The tones: `--sc-color-success`, `--sc-color-warning` and `--sc-color-danger`, each with a `-subtle`. The field: `--sc-field-gradient`, one gradient from the top. The glass: `--sc-glass-backdrop` (the blur behind a pane), `--sc-color-glass` and `--sc-color-glass-hover` (its veil), `--sc-color-glass-edge` (its rim), `--sc-glass-highlight` (the light down its face), `--sc-glass-surface` and `--sc-glass-surface-hover` (the veil and the light composed), `--sc-glass-sheen` (the line along its top edge) and `--sc-glass-lift` (its stand-off from the field); and the sheets inside a pane, `--sc-color-sheet` and `--sc-color-sheet-hover`. The shadows: `--sc-glow` (what is lit casts the accent's colour), `--sc-shadow-stage` (what is over the page) and `--sc-focus-ring`. The lines: `--sc-border`, `--sc-border-strong` (for what is typed into), `--sc-hairline` (what parts things inside a pane), `--sc-scrollbar-thumb` and `--sc-select-chevron` (a picture). The type: `--sc-font-sans` and `--sc-font-mono`; `--sc-text-xs`, `-sm`, `-md`, `-lg`, `-xl` and `-2xl`; `--sc-weight-normal`, `-medium` and `-bold`; `--sc-leading-tight`, `-snug`, `-normal` and `-code`; `--sc-tracking-tight`, `-wide` and `-code`, both off on a page in Korean; and `--sc-label-lift`, how far a one-line label is lifted in its box, set again for Korean. The space and the shape: `--sc-space-1` to `--sc-space-8` on a 4px grid, `--sc-radius-sm`, `-md`, `-lg`, `-xl` and `-full`, and `--sc-transition`. The layout: `--sc-gutter`, `--sc-width-prose`, `--sc-width-aside`, `--sc-column-width`, `--sc-header-height` and `--sc-control-size`. The lockup: `--sc-brand-size`, `--sc-brand-size-compact`, `--sc-brand-wordmark-ratio` and `--sc-brand-gap-ratio`. The categories: `--sc-category-fill`, `--sc-category-line` and `--sc-category-mark`, set by each category's class. The small capitals over a group are one rule, `.sc-eyebrow`, for a label of your own too. A custom console that wants a flat page sets the glass to none and the field to one colour; the control sizes, the blur, the opacities, the z-indexes and the breakpoints are not tokens, by decision.
84
84
  - React 19 is a peer dependency; `react-markdown`, `remark-gfm` and `@skillcdn/core`, for the pack's shapes and the renderers of what a model is given, are the package's own.
85
85
 
86
86
  A custom console is a small repository that depends on this package, holds a configuration and a CI job, and builds to static files: the organization's, served by the image from `WEB_ROOT` in place of the default UI, or your own, served by `console serve` on your machine. Nothing of the server is in the package but the serving of a build, `@skillcdn/console/web`, which the image and the command share.
package/dist/api.d.ts CHANGED
@@ -7,7 +7,7 @@ export { DEFAULT_PAGE_LIMIT, DEFAULT_TOKEN_DAYS, EVENTS_PAGE_LIMIT, LIST_LIMIT,
7
7
  export { projectColorOf, projectSymbolOf } from "./marks.js";
8
8
  export { AUTH_ROUTES, CLAIM_PATH, categoryPath, connectPath, isSignInFailure, loginPath, PROJECT_COLLECTIONS, type ProjectCollection, personTokensPath, personWorkPath, projectIconPath, projectPath, REST_ROUTES, RETURN_TO_PARAM, restPath, rulesPath, SIGN_IN_FAILURES, SIGN_IN_PARAM, type SignInFailure, signInPath, } from "./routes.js";
9
9
  export { fillRules, isReferenceRules, languageNameOf, PROJECT_RULES_TEMPLATE, REFERENCE_RULES, RULES_LANGUAGE_PLACEHOLDER, RULES_PATH, RULES_TITLE, } from "./rules.js";
10
- export { hostOfLogin, isLoginAt, type RestAnswerInput, type RestArchivedTasks, type RestArchiveTasksInput, type RestArtifact, type RestArtifactInput, type RestBacklink, type RestCategories, type RestCategory, type RestCategoryInput, type RestCategoryPatch, type RestClaim, type RestClaimInput, type RestComment, type RestCommentFile, type RestCommentInput, type RestComments, type RestConnectInput, type RestConnection, type RestConnectRequest, type RestDecision, type RestDecisionInput, type RestDecisionOption, type RestDecisionPatch, type RestDecisions, type RestDocument, type RestDocumentFile, type RestDocumentInput, type RestDocumentLink, type RestDocumentSummary, type RestDocuments, type RestError, type RestEvent, type RestEventData, type RestEvents, type RestFile, type RestFileInput, type RestGoal, type RestGoalInput, type RestGoalPatch, type RestGoals, type RestListing, type RestListingInput, type RestMe, type RestMember, type RestMemberInput, type RestMemberPatch, type RestMembers, type RestMePatch, type RestOrganization, type RestPackConnect, type RestPackConnectStarted, type RestPackRefusal, type RestPackTokenInput, type RestPeople, type RestPerson, type RestPersonPatch, type RestPersonWork, type RestProject, type RestProjectIcon, type RestProjectInput, type RestProjectPatch, type RestProjectRules, type RestProjects, type RestProvider, type RestReport, type RestReportInput, type RestRules, type RestRulesInput, type RestRun, type RestRunEndInput, type RestRunInput, type RestRuns, type RestSkill, type RestSkillBrowse, type RestSkillFile, type RestSkillFind, type RestSkillLoad, type RestSkills, type RestTask, type RestTaskCounts, type RestTaskInput, type RestTaskLink, type RestTaskPatch, type RestTasks, type RestToken, type RestTokenCreated, type RestTokenInput, type RestTokens, type RestVersion, type RestVersionSummary, type RestVersions, type RestWork, type RestWorkspace, type RestWorkspacePackConnect, type RestWorkspacePatch, restAnswerInputSchema, restArchivedTasksSchema, restArchiveTasksInputSchema, restArtifactInputSchema, restArtifactSchema, restBacklinkSchema, restCategoriesSchema, restCategoryInputSchema, restCategoryPatchSchema, restCategorySchema, restClaimInputSchema, restClaimSchema, restCommentFileSchema, restCommentInputSchema, restCommentSchema, restCommentsSchema, restConnectInputSchema, restConnectionSchema, restConnectRequestSchema, restDecisionInputSchema, restDecisionOptionSchema, restDecisionPatchSchema, restDecisionSchema, restDecisionsSchema, restDocumentFileSchema, restDocumentInputSchema, restDocumentLinkSchema, restDocumentSchema, restDocumentSummarySchema, restDocumentsSchema, restErrorSchema, restEventDataSchema, restEventSchema, restEventsSchema, restFileInputSchema, restFileSchema, restGoalInputSchema, restGoalPatchSchema, restGoalSchema, restGoalsSchema, restListingInputSchema, restListingSchema, restMemberInputSchema, restMemberPatchSchema, restMemberSchema, restMembersSchema, restMePatchSchema, restMeSchema, restOrganizationSchema, restPackConnectSchema, restPackConnectStartedSchema, restPackRefusalSchema, restPackTokenInputSchema, restPeopleSchema, restPersonPatchSchema, restPersonSchema, restPersonWorkSchema, restProjectIconSchema, restProjectInputSchema, restProjectPatchSchema, restProjectRulesSchema, restProjectSchema, restProjectsSchema, restProviderSchema, restReportInputSchema, restReportSchema, restRulesInputSchema, restRulesSchema, restRunEndInputSchema, restRunInputSchema, restRunSchema, restRunsSchema, restSkillBrowseSchema, restSkillFileSchema, restSkillFindSchema, restSkillLoadSchema, restSkillSchema, restSkillsSchema, restTaskCountsSchema, restTaskInputSchema, restTaskLinkSchema, restTaskPatchSchema, restTaskSchema, restTasksSchema, restTokenCreatedSchema, restTokenInputSchema, restTokenSchema, restTokensSchema, restVersionSchema, restVersionSummarySchema, restVersionsSchema, restWorkSchema, restWorkspacePackConnectSchema, restWorkspacePatchSchema, restWorkspaceSchema, } from "./schemas.js";
10
+ export { hostOfLogin, isLoginAt, type RestAnswerInput, type RestArchivedTasks, type RestArchiveTasksInput, type RestArtifact, type RestArtifactInput, type RestBacklink, type RestCategories, type RestCategory, type RestCategoryInput, type RestCategoryPatch, type RestClaim, type RestClaimInput, type RestComment, type RestCommentFile, type RestCommentInput, type RestComments, type RestConnectInput, type RestConnection, type RestConnectRequest, type RestDecision, type RestDecisionInput, type RestDecisionOption, type RestDecisionPatch, type RestDecisions, type RestDocument, type RestDocumentFile, type RestDocumentInput, type RestDocumentLink, type RestDocumentSummary, type RestDocuments, type RestError, type RestEvent, type RestEventData, type RestEvents, type RestFile, type RestFileInput, type RestGoal, type RestGoalInput, type RestGoalPatch, type RestGoals, type RestListing, type RestListingInput, type RestMe, type RestMember, type RestMemberInput, type RestMemberPatch, type RestMembers, type RestMePatch, type RestMyDecisions, type RestOrganization, type RestPackConnect, type RestPackConnectStarted, type RestPackRefusal, type RestPackTokenInput, type RestPeople, type RestPerson, type RestPersonPatch, type RestPersonWork, type RestProject, type RestProjectIcon, type RestProjectInput, type RestProjectPatch, type RestProjectRules, type RestProjects, type RestProvider, type RestReport, type RestReportInput, type RestRules, type RestRulesInput, type RestRun, type RestRunEndInput, type RestRunInput, type RestRuns, type RestSkill, type RestSkillBrowse, type RestSkillFile, type RestSkillFind, type RestSkillLoad, type RestSkills, type RestTask, type RestTaskCounts, type RestTaskInput, type RestTaskLink, type RestTaskPatch, type RestTasks, type RestToken, type RestTokenCreated, type RestTokenInput, type RestTokens, type RestVersion, type RestVersionSummary, type RestVersions, type RestWork, type RestWorkspace, type RestWorkspacePackConnect, type RestWorkspacePatch, restAnswerInputSchema, restArchivedTasksSchema, restArchiveTasksInputSchema, restArtifactInputSchema, restArtifactSchema, restBacklinkSchema, restCategoriesSchema, restCategoryInputSchema, restCategoryPatchSchema, restCategorySchema, restClaimInputSchema, restClaimSchema, restCommentFileSchema, restCommentInputSchema, restCommentSchema, restCommentsSchema, restConnectInputSchema, restConnectionSchema, restConnectRequestSchema, restDecisionInputSchema, restDecisionOptionSchema, restDecisionPatchSchema, restDecisionSchema, restDecisionsSchema, restDocumentFileSchema, restDocumentInputSchema, restDocumentLinkSchema, restDocumentSchema, restDocumentSummarySchema, restDocumentsSchema, restErrorSchema, restEventDataSchema, restEventSchema, restEventsSchema, restFileInputSchema, restFileSchema, restGoalInputSchema, restGoalPatchSchema, restGoalSchema, restGoalsSchema, restListingInputSchema, restListingSchema, restMemberInputSchema, restMemberPatchSchema, restMemberSchema, restMembersSchema, restMePatchSchema, restMeSchema, restMyDecisionsSchema, restOrganizationSchema, restPackConnectSchema, restPackConnectStartedSchema, restPackRefusalSchema, restPackTokenInputSchema, restPeopleSchema, restPersonPatchSchema, restPersonSchema, restPersonWorkSchema, restProjectIconSchema, restProjectInputSchema, restProjectPatchSchema, restProjectRulesSchema, restProjectSchema, restProjectsSchema, restProviderSchema, restReportInputSchema, restReportSchema, restRulesInputSchema, restRulesSchema, restRunEndInputSchema, restRunInputSchema, restRunSchema, restRunsSchema, restSkillBrowseSchema, restSkillFileSchema, restSkillFindSchema, restSkillLoadSchema, restSkillSchema, restSkillsSchema, restTaskCountsSchema, restTaskInputSchema, restTaskLinkSchema, restTaskPatchSchema, restTaskSchema, restTasksSchema, restTokenCreatedSchema, restTokenInputSchema, restTokenSchema, restTokensSchema, restVersionSchema, restVersionSummarySchema, restVersionsSchema, restWorkSchema, restWorkspacePackConnectSchema, restWorkspacePatchSchema, restWorkspaceSchema, } from "./schemas.js";
11
11
  export { hasForbiddenCodePoint } from "./text.js";
12
12
  export { ARTIFACT_KINDS, type ArtifactKind, CATEGORY_COLORS, type CategoryColor, COLOR_NAMES, type ColorName, EVENT_KINDS, type EventKind, GOAL_STATES, type GoalState, isProviderKey, LINK_SOURCES, type LinkSource, MEMBERSHIP_SOURCES, type MembershipSource, OPEN_GOAL_STATES, OPEN_TASK_STATES, PACK_CONNECT_ENDINGS, type PackConnectEnding, PEOPLE_VISIBILITIES, PERSON_ROLES, PERSON_STATUSES, type PeopleVisibility, type PersonRole, type PersonStatus, PROJECT_ICON_TYPES, PROJECT_ROLES, PROJECT_VISIBILITIES, PROVIDER_KEYS, type ProjectIconType, type ProjectRole, type ProjectVisibility, type ProviderKey, RULES_SOURCES, RUN_ENDINGS, RUN_STATUSES, type RulesSource, type RunEnding, type RunStatus, SKILLS_STATUSES, type SkillsStatus, TASK_PRIORITIES, TASK_STATES, type TaskPriority, type TaskState, WEEK_STARTS, type WeekStart, } from "./vocabulary.js";
13
13
  //# sourceMappingURL=api.d.ts.map
package/dist/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,QA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gB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EACL,cAAc,EACd,KAAK,YAAY,EACjB,eAAe,EACf,KAAK,aAAa,EAClB,WAAW,EACX,KAAK,SAAS,EACd,WAAW,EACX,KAAK,SAAS,EACd,WAAW,EACX,KAAK,SAAS,EACd,aAAa,EACb,YAAY,EACZ,KAAK,UAAU,EACf,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,eAAe,EACf,KAAK,YAAY,EACjB,eAAe,EACf,WAAW,EACX,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,WAAW,EACX,KAAK,SAAS,GACf,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAA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,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EACL,cAAc,EACd,KAAK,YAAY,EACjB,eAAe,EACf,KAAK,aAAa,EAClB,WAAW,EACX,KAAK,SAAS,EACd,WAAW,EACX,KAAK,SAAS,EACd,WAAW,EACX,KAAK,SAAS,EACd,aAAa,EACb,YAAY,EACZ,KAAK,UAAU,EACf,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,eAAe,EACf,KAAK,YAAY,EACjB,eAAe,EACf,WAAW,EACX,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,WAAW,EACX,KAAK,SAAS,GACf,MAAM,iBAAiB,CAAC"}
package/dist/api.js CHANGED
@@ -11,7 +11,7 @@ export { DEFAULT_PAGE_LIMIT, DEFAULT_TOKEN_DAYS, EVENTS_PAGE_LIMIT, LIST_LIMIT,
11
11
  export { projectColorOf, projectSymbolOf } from "./marks.js";
12
12
  export { AUTH_ROUTES, CLAIM_PATH, categoryPath, connectPath, isSignInFailure, loginPath, PROJECT_COLLECTIONS, personTokensPath, personWorkPath, projectIconPath, projectPath, REST_ROUTES, RETURN_TO_PARAM, restPath, rulesPath, SIGN_IN_FAILURES, SIGN_IN_PARAM, signInPath, } from "./routes.js";
13
13
  export { fillRules, isReferenceRules, languageNameOf, PROJECT_RULES_TEMPLATE, REFERENCE_RULES, RULES_LANGUAGE_PLACEHOLDER, RULES_PATH, RULES_TITLE, } from "./rules.js";
14
- export { hostOfLogin, isLoginAt, restAnswerInputSchema, restArchivedTasksSchema, restArchiveTasksInputSchema, restArtifactInputSchema, restArtifactSchema, restBacklinkSchema, restCategoriesSchema, restCategoryInputSchema, restCategoryPatchSchema, restCategorySchema, restClaimInputSchema, restClaimSchema, restCommentFileSchema, restCommentInputSchema, restCommentSchema, restCommentsSchema, restConnectInputSchema, restConnectionSchema, restConnectRequestSchema, restDecisionInputSchema, restDecisionOptionSchema, restDecisionPatchSchema, restDecisionSchema, restDecisionsSchema, restDocumentFileSchema, restDocumentInputSchema, restDocumentLinkSchema, restDocumentSchema, restDocumentSummarySchema, restDocumentsSchema, restErrorSchema, restEventDataSchema, restEventSchema, restEventsSchema, restFileInputSchema, restFileSchema, restGoalInputSchema, restGoalPatchSchema, restGoalSchema, restGoalsSchema, restListingInputSchema, restListingSchema, restMemberInputSchema, restMemberPatchSchema, restMemberSchema, restMembersSchema, restMePatchSchema, restMeSchema, restOrganizationSchema, restPackConnectSchema, restPackConnectStartedSchema, restPackRefusalSchema, restPackTokenInputSchema, restPeopleSchema, restPersonPatchSchema, restPersonSchema, restPersonWorkSchema, restProjectIconSchema, restProjectInputSchema, restProjectPatchSchema, restProjectRulesSchema, restProjectSchema, restProjectsSchema, restProviderSchema, restReportInputSchema, restReportSchema, restRulesInputSchema, restRulesSchema, restRunEndInputSchema, restRunInputSchema, restRunSchema, restRunsSchema, restSkillBrowseSchema, restSkillFileSchema, restSkillFindSchema, restSkillLoadSchema, restSkillSchema, restSkillsSchema, restTaskCountsSchema, restTaskInputSchema, restTaskLinkSchema, restTaskPatchSchema, restTaskSchema, restTasksSchema, restTokenCreatedSchema, restTokenInputSchema, restTokenSchema, restTokensSchema, restVersionSchema, restVersionSummarySchema, restVersionsSchema, restWorkSchema, restWorkspacePackConnectSchema, restWorkspacePatchSchema, restWorkspaceSchema, } from "./schemas.js";
14
+ export { hostOfLogin, isLoginAt, restAnswerInputSchema, restArchivedTasksSchema, restArchiveTasksInputSchema, restArtifactInputSchema, restArtifactSchema, restBacklinkSchema, restCategoriesSchema, restCategoryInputSchema, restCategoryPatchSchema, restCategorySchema, restClaimInputSchema, restClaimSchema, restCommentFileSchema, restCommentInputSchema, restCommentSchema, restCommentsSchema, restConnectInputSchema, restConnectionSchema, restConnectRequestSchema, restDecisionInputSchema, restDecisionOptionSchema, restDecisionPatchSchema, restDecisionSchema, restDecisionsSchema, restDocumentFileSchema, restDocumentInputSchema, restDocumentLinkSchema, restDocumentSchema, restDocumentSummarySchema, restDocumentsSchema, restErrorSchema, restEventDataSchema, restEventSchema, restEventsSchema, restFileInputSchema, restFileSchema, restGoalInputSchema, restGoalPatchSchema, restGoalSchema, restGoalsSchema, restListingInputSchema, restListingSchema, restMemberInputSchema, restMemberPatchSchema, restMemberSchema, restMembersSchema, restMePatchSchema, restMeSchema, restMyDecisionsSchema, restOrganizationSchema, restPackConnectSchema, restPackConnectStartedSchema, restPackRefusalSchema, restPackTokenInputSchema, restPeopleSchema, restPersonPatchSchema, restPersonSchema, restPersonWorkSchema, restProjectIconSchema, restProjectInputSchema, restProjectPatchSchema, restProjectRulesSchema, restProjectSchema, restProjectsSchema, restProviderSchema, restReportInputSchema, restReportSchema, restRulesInputSchema, restRulesSchema, restRunEndInputSchema, restRunInputSchema, restRunSchema, restRunsSchema, restSkillBrowseSchema, restSkillFileSchema, restSkillFindSchema, restSkillLoadSchema, restSkillSchema, restSkillsSchema, restTaskCountsSchema, restTaskInputSchema, restTaskLinkSchema, restTaskPatchSchema, restTaskSchema, restTasksSchema, restTokenCreatedSchema, restTokenInputSchema, restTokenSchema, restTokensSchema, restVersionSchema, restVersionSummarySchema, restVersionsSchema, restWorkSchema, restWorkspacePackConnectSchema, restWorkspacePatchSchema, restWorkspaceSchema, } from "./schemas.js";
15
15
  export { hasForbiddenCodePoint } from "./text.js";
16
16
  export { ARTIFACT_KINDS, CATEGORY_COLORS, COLOR_NAMES, EVENT_KINDS, GOAL_STATES, isProviderKey, LINK_SOURCES, MEMBERSHIP_SOURCES, OPEN_GOAL_STATES, OPEN_TASK_STATES, PACK_CONNECT_ENDINGS, PEOPLE_VISIBILITIES, PERSON_ROLES, PERSON_STATUSES, PROJECT_ICON_TYPES, PROJECT_ROLES, PROJECT_VISIBILITIES, PROVIDER_KEYS, RULES_SOURCES, RUN_ENDINGS, RUN_STATUSES, SKILLS_STATUSES, TASK_PRIORITIES, TASK_STATES, WEEK_STARTS, } from "./vocabulary.js";
17
17
  //# sourceMappingURL=api.js.map
package/dist/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,8FAA8F;AAC9F,+FAA+F;AAC/F,2FAA2F;AAE3F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,QAAQ,EAIR,YAAY,GAUb,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,cAAc,EACd,mBAAmB,EAInB,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,WAAW,EACX,eAAe,EACf,YAAY,EACZ,WAAW,EACX,aAAa,EACb,OAAO,EACP,WAAW,EACX,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,cAAc,GAGf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,aAAa,EACb,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,MAAM,GACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC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AoB,EAEpB,mBAAmB,EACnB,YAAY,EACZ,eAAe,EAIf,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,aAAa,EAKb,aAAa,EACb,WAAW,EACX,YAAY,EAIZ,eAAe,EAEf,eAAe,EACf,WAAW,EAGX,WAAW,GAEZ,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,8FAA8F;AAC9F,+FAA+F;AAC/F,2FAA2F;AAE3F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,QAAQ,EAIR,YAAY,GAUb,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,cAAc,EACd,mBAAmB,EAInB,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,WAAW,EACX,eAAe,EACf,YAAY,EACZ,WAAW,EACX,aAAa,EACb,OAAO,EACP,WAAW,EACX,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,cAAc,GAGf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,aAAa,EACb,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,MAAM,GACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC3B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB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AG,SAAS,CAAC;CACtC;AAm7FD,yFAAyF;AACzF,wBAAsB,MAAM,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAyDhF"}
package/dist/cli/cli.js CHANGED
@@ -829,14 +829,41 @@ const skills = async (args, io) => {
829
829
  answer(io, session, { ...browsed, read: whole === undefined ? null : bodyOfFolder(whole) }, () => formatSkillBrowse(browsed, whole));
830
830
  return EXIT.ok;
831
831
  };
832
+ /** The most characters one read of a file asks for: what the console's API allows on one page. */
833
+ const MAX_FILE_LIMIT = 100_000;
834
+ /** A count given as a flag, within its bounds, or nothing; anything else is not understood. */
835
+ function countOf(given, name, bounds) {
836
+ if (given === undefined) {
837
+ return undefined;
838
+ }
839
+ const count = Number(given);
840
+ if (!Number.isInteger(count) ||
841
+ count < bounds.least ||
842
+ (bounds.most !== undefined && count > bounds.most)) {
843
+ const range = bounds.most === undefined ? `${bounds.least} or more` : `${bounds.least} to ${bounds.most}`;
844
+ throw misuse(`Not a number for --${name}, ${range}: ${given}`);
845
+ }
846
+ return count;
847
+ }
832
848
  const skill = async (args, io) => {
833
- const { values, positionals } = parse(args, { file: { type: "string" } });
849
+ const { values, positionals } = parse(args, {
850
+ file: { type: "string" },
851
+ offset: { type: "string" },
852
+ limit: { type: "string" },
853
+ });
834
854
  const file = text(values, "file");
835
855
  // A file is read by its own path from the repository's root; a skill's path beside it would be
836
856
  // ignored, which reads as if it mattered, so the two together are not understood.
837
857
  if (file !== undefined && positionals.length > 0) {
838
858
  throw misuse("Say one: console skill <path of its SKILL.md> for a skill, or console skill --file <path> for a file of the pack.");
839
859
  }
860
+ // A section is a page of a file read as asked (SkillCDN 0.4): the flags mean nothing without one.
861
+ if (file === undefined &&
862
+ (text(values, "offset") !== undefined || text(values, "limit") !== undefined)) {
863
+ throw misuse("--offset and --limit go with --file: console skill --file <path> [--offset <n>] [--limit <n>]");
864
+ }
865
+ const offset = countOf(text(values, "offset"), "offset", { least: 0 });
866
+ const limit = countOf(text(values, "limit"), "limit", { least: 1, most: MAX_FILE_LIMIT });
840
867
  const session = await open(io, values);
841
868
  const project = await session.project();
842
869
  const { listing, summary } = await packOf(project);
@@ -844,6 +871,14 @@ const skill = async (args, io) => {
844
871
  answer(io, session, listing, () => formatSkills(listing, io.skillsDir));
845
872
  return EXIT.ok;
846
873
  }
874
+ if (file !== undefined && (offset !== undefined || limit !== undefined)) {
875
+ // One page as asked, the section a search or an outline named; the result says where the
876
+ // file continues, and asks for nothing.
877
+ const page = await project.skillFile(file, { offset, limit });
878
+ const section = page.read === null ? undefined : joinFile([page], summary, limit);
879
+ answer(io, session, { ...page, read: section === undefined ? null : bodyOfFile(section) }, () => formatSkillFile(page, section));
880
+ return EXIT.ok;
881
+ }
847
882
  if (file !== undefined) {
848
883
  // The file whole, page after page, as the console reads it from the pack.
849
884
  const pages = [];
@@ -1352,8 +1387,13 @@ const ask = async (args, io) => {
1352
1387
  file: { type: "string" },
1353
1388
  run: { type: "string" },
1354
1389
  wait: { type: "string" },
1390
+ to: { type: "string" },
1355
1391
  });
1356
1392
  const question = theOne(positionals, 'Say the question: console ask "<question>" --option "<label>" --option "<label>"');
1393
+ const to = text(values, "to");
1394
+ if (to === "none") {
1395
+ throw misuse("Say whom the decision is for: --to <login|me>.");
1396
+ }
1357
1397
  const options = texts(values, "option");
1358
1398
  if (options.length < MIN_OPTIONS || options.length > MAX_OPTIONS) {
1359
1399
  throw misuse(`Give ${MIN_OPTIONS} to ${MAX_OPTIONS} options, one --option each.`);
@@ -1363,18 +1403,49 @@ const ask = async (args, io) => {
1363
1403
  const session = await open(io, values);
1364
1404
  const project = await session.project();
1365
1405
  const runId = await currentRun(project, values);
1406
+ // Whom the decision is for (ADR-0042): the person the agent works for, unless --to names another.
1407
+ const deciderId = await personIdOf(session, to);
1366
1408
  const raised = await project.raiseDecision({
1367
1409
  question,
1368
1410
  options: options.map((label) => ({ label })),
1369
1411
  runId,
1370
1412
  ...(body === undefined ? {} : { body }),
1413
+ ...(typeof deciderId === "string" ? { deciderId } : {}),
1371
1414
  });
1372
1415
  // The id is printed before any waiting, so that a wait cut short loses nothing.
1373
1416
  io.stdout(session.json
1374
1417
  ? `${JSON.stringify(raised, null, 2)}\n`
1375
- : `Decision ${raised.id} raised on run ${runId}; the run waits for a person.\ndecision id: ${raised.id}\n${formatOptions(raised)}\n`);
1418
+ : `Decision ${raised.id} raised on run ${runId}; the run waits for ${raised.decider.login}.\ndecision id: ${raised.id}\n${formatOptions(raised)}\n`);
1376
1419
  return settle(io, session, project, raised, seconds, true);
1377
1420
  };
1421
+ /**
1422
+ * Writes a person's answer on a decision, in their name through the agent (ADR-0021): the
1423
+ * option they chose, or their own words, and a note about it, so that a choice made in chat
1424
+ * or in passing reaches the record the run waits on.
1425
+ */
1426
+ const answering = async (args, io) => {
1427
+ const { values, positionals } = parse(args, {
1428
+ option: { type: "string" },
1429
+ own: { type: "string" },
1430
+ note: { type: "string" },
1431
+ file: { type: "string" },
1432
+ });
1433
+ const id = theOne(positionals, 'Say which decision: console answer <id> --option <n>|--own "<answer>" [--note <markdown>|--file <path>]');
1434
+ const option = text(values, "option");
1435
+ const own = text(values, "own");
1436
+ if ((option === undefined) === (own === undefined)) {
1437
+ throw misuse('Say the option chosen, --option <n>, or the person\'s own answer, --own "<words>": one of the two.');
1438
+ }
1439
+ const note = await bodyOf(io, values, text(values, "note"));
1440
+ const session = await open(io, values);
1441
+ const project = await session.project();
1442
+ const answered = await project.answerDecision(id, {
1443
+ ...(own === undefined ? { option } : { own }),
1444
+ ...(note === undefined ? {} : { note }),
1445
+ });
1446
+ answer(io, session, answered, () => formatDecision(answered));
1447
+ return EXIT.ok;
1448
+ };
1378
1449
  const decision = async (args, io) => {
1379
1450
  const { values, positionals } = parse(args, {
1380
1451
  wait: { type: "string" },
@@ -1636,14 +1707,31 @@ const goal = async (args, io) => {
1636
1707
  return EXIT.ok;
1637
1708
  };
1638
1709
  const decisions = async (args, io) => {
1639
- const { values } = parse(args, { open: { type: "boolean" }, ...PAGE_OPTIONS }, false);
1710
+ const { values } = parse(args, {
1711
+ open: { type: "boolean" },
1712
+ mine: { type: "boolean" },
1713
+ raised: { type: "boolean" },
1714
+ ...PAGE_OPTIONS,
1715
+ }, false);
1640
1716
  const page = pageOf(values);
1641
1717
  const session = await open(io, values);
1718
+ const open_ = on(values, "open") ? { open: true } : {};
1719
+ if (on(values, "mine") || on(values, "raised")) {
1720
+ // One's own across the projects (ADR-0042), addressed to the person or raised by them for
1721
+ // someone else: the waiting first, each with its project's key.
1722
+ const raised = on(values, "raised");
1723
+ const found = await session.client.myDecisions({ ...open_, raised, ...page });
1724
+ answer(io, session, found, () => found.items.length === 0
1725
+ ? raised
1726
+ ? "No decisions you asked of others."
1727
+ : "No decisions of yours."
1728
+ : found.items
1729
+ .map(({ project, decision }) => `${project.key} ${formatDecisionLine(decision)}`)
1730
+ .join("\n") + formatMore(found.more, page.limit, page.offset));
1731
+ return EXIT.ok;
1732
+ }
1642
1733
  const project = await session.project();
1643
- const found = await project.decisions({
1644
- ...(on(values, "open") ? { open: true } : {}),
1645
- ...page,
1646
- });
1734
+ const found = await project.decisions({ ...open_, ...page });
1647
1735
  answer(io, session, found, () => found.items.length === 0
1648
1736
  ? "No decisions."
1649
1737
  : found.items.map(formatDecisionLine).join("\n") +
@@ -2212,6 +2300,7 @@ const COMMANDS = {
2212
2300
  comment,
2213
2301
  file,
2214
2302
  ask,
2303
+ answer: answering,
2215
2304
  decision,
2216
2305
  decisions,
2217
2306
  finish: ending("finished"),