@skillcdn/console 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/README.md +68 -11
  2. package/SKILLCDN.md +3 -3
  3. package/dist/agent-page.d.ts.map +1 -1
  4. package/dist/agent-page.js +3 -2
  5. package/dist/agent-page.js.map +1 -1
  6. package/dist/api.d.ts +7 -6
  7. package/dist/api.d.ts.map +1 -1
  8. package/dist/api.js +6 -5
  9. package/dist/api.js.map +1 -1
  10. package/dist/charts.d.ts +103 -0
  11. package/dist/charts.d.ts.map +1 -0
  12. package/dist/charts.js +182 -0
  13. package/dist/charts.js.map +1 -0
  14. package/dist/cli/cli.d.ts +26 -2
  15. package/dist/cli/cli.d.ts.map +1 -1
  16. package/dist/cli/cli.js +1304 -383
  17. package/dist/cli/cli.js.map +1 -1
  18. package/dist/cli/command-words.d.ts +20 -0
  19. package/dist/cli/command-words.d.ts.map +1 -0
  20. package/dist/cli/command-words.js +51 -0
  21. package/dist/cli/command-words.js.map +1 -0
  22. package/dist/cli/credentials.d.ts +54 -5
  23. package/dist/cli/credentials.d.ts.map +1 -1
  24. package/dist/cli/credentials.js +126 -20
  25. package/dist/cli/credentials.js.map +1 -1
  26. package/dist/cli/directory.d.ts +19 -4
  27. package/dist/cli/directory.d.ts.map +1 -1
  28. package/dist/cli/directory.js +16 -8
  29. package/dist/cli/directory.js.map +1 -1
  30. package/dist/cli/format.d.ts +65 -8
  31. package/dist/cli/format.d.ts.map +1 -1
  32. package/dist/cli/format.js +242 -37
  33. package/dist/cli/format.js.map +1 -1
  34. package/dist/cli/help.d.ts +13 -4
  35. package/dist/cli/help.d.ts.map +1 -1
  36. package/dist/cli/help.js +92 -54
  37. package/dist/cli/help.js.map +1 -1
  38. package/dist/cli/main.js +76 -2
  39. package/dist/cli/main.js.map +1 -1
  40. package/dist/cli/pack.d.ts +69 -60
  41. package/dist/cli/pack.d.ts.map +1 -1
  42. package/dist/cli/pack.js +241 -270
  43. package/dist/cli/pack.js.map +1 -1
  44. package/dist/cli/plugin-check.d.ts +42 -0
  45. package/dist/cli/plugin-check.d.ts.map +1 -1
  46. package/dist/cli/plugin-check.js +221 -36
  47. package/dist/cli/plugin-check.js.map +1 -1
  48. package/dist/cli/plugin-cli.d.ts +6 -1
  49. package/dist/cli/plugin-cli.d.ts.map +1 -1
  50. package/dist/cli/plugin-cli.js +21 -4
  51. package/dist/cli/plugin-cli.js.map +1 -1
  52. package/dist/cli/plugin-main.js +1 -0
  53. package/dist/cli/plugin-main.js.map +1 -1
  54. package/dist/cli/serve.d.ts +33 -1
  55. package/dist/cli/serve.d.ts.map +1 -1
  56. package/dist/cli/serve.js +252 -3
  57. package/dist/cli/serve.js.map +1 -1
  58. package/dist/client.d.ts +48 -9
  59. package/dist/client.d.ts.map +1 -1
  60. package/dist/client.js +72 -80
  61. package/dist/client.js.map +1 -1
  62. package/dist/components/agent-page.d.ts +64 -1
  63. package/dist/components/agent-page.d.ts.map +1 -1
  64. package/dist/components/agent-page.js +244 -96
  65. package/dist/components/agent-page.js.map +1 -1
  66. package/dist/components/charts.d.ts +157 -0
  67. package/dist/components/charts.d.ts.map +1 -0
  68. package/dist/components/charts.js +182 -0
  69. package/dist/components/charts.js.map +1 -0
  70. package/dist/components/desk-records.d.ts +102 -0
  71. package/dist/components/desk-records.d.ts.map +1 -0
  72. package/dist/components/desk-records.js +221 -0
  73. package/dist/components/desk-records.js.map +1 -0
  74. package/dist/components/desk.d.ts +85 -0
  75. package/dist/components/desk.d.ts.map +1 -0
  76. package/dist/components/desk.js +135 -0
  77. package/dist/components/desk.js.map +1 -0
  78. package/dist/components/event-feed.d.ts.map +1 -1
  79. package/dist/components/event-feed.js +4 -1
  80. package/dist/components/event-feed.js.map +1 -1
  81. package/dist/components/home.d.ts.map +1 -1
  82. package/dist/components/home.js +4 -2
  83. package/dist/components/home.js.map +1 -1
  84. package/dist/components/plugin-settings.d.ts.map +1 -1
  85. package/dist/components/plugin-settings.js +54 -3
  86. package/dist/components/plugin-settings.js.map +1 -1
  87. package/dist/components/projects.d.ts.map +1 -1
  88. package/dist/components/projects.js +27 -7
  89. package/dist/components/projects.js.map +1 -1
  90. package/dist/components/rules.d.ts +8 -10
  91. package/dist/components/rules.d.ts.map +1 -1
  92. package/dist/components/rules.js +35 -13
  93. package/dist/components/rules.js.map +1 -1
  94. package/dist/components/setup.d.ts +9 -3
  95. package/dist/components/setup.d.ts.map +1 -1
  96. package/dist/components/setup.js +10 -4
  97. package/dist/components/setup.js.map +1 -1
  98. package/dist/console.css +677 -7
  99. package/dist/console.d.ts +5 -0
  100. package/dist/console.d.ts.map +1 -1
  101. package/dist/console.js +14 -8
  102. package/dist/console.js.map +1 -1
  103. package/dist/data.d.ts.map +1 -1
  104. package/dist/data.js +32 -33
  105. package/dist/data.js.map +1 -1
  106. package/dist/desk-page.d.ts +38 -0
  107. package/dist/desk-page.d.ts.map +1 -0
  108. package/dist/desk-page.js +184 -0
  109. package/dist/desk-page.js.map +1 -0
  110. package/dist/desk-records-page.d.ts +18 -0
  111. package/dist/desk-records-page.d.ts.map +1 -0
  112. package/dist/desk-records-page.js +130 -0
  113. package/dist/desk-records-page.js.map +1 -0
  114. package/dist/desk-records.d.ts +247 -0
  115. package/dist/desk-records.d.ts.map +1 -0
  116. package/dist/desk-records.js +543 -0
  117. package/dist/desk-records.js.map +1 -0
  118. package/dist/desk.d.ts +122 -0
  119. package/dist/desk.d.ts.map +1 -0
  120. package/dist/desk.js +211 -0
  121. package/dist/desk.js.map +1 -0
  122. package/dist/feed-stream.d.ts +39 -0
  123. package/dist/feed-stream.d.ts.map +1 -0
  124. package/dist/feed-stream.js +117 -0
  125. package/dist/feed-stream.js.map +1 -0
  126. package/dist/home-tiles.d.ts +10 -3
  127. package/dist/home-tiles.d.ts.map +1 -1
  128. package/dist/home-tiles.js +54 -31
  129. package/dist/home-tiles.js.map +1 -1
  130. package/dist/i18n/en.d.ts +180 -5
  131. package/dist/i18n/en.d.ts.map +1 -1
  132. package/dist/i18n/en.js +184 -7
  133. package/dist/i18n/en.js.map +1 -1
  134. package/dist/i18n/ko.d.ts.map +1 -1
  135. package/dist/i18n/ko.js +169 -6
  136. package/dist/i18n/ko.js.map +1 -1
  137. package/dist/index.d.ts +8 -0
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +8 -0
  140. package/dist/index.js.map +1 -1
  141. package/dist/limits.d.ts +11 -0
  142. package/dist/limits.d.ts.map +1 -1
  143. package/dist/limits.js +11 -0
  144. package/dist/limits.js.map +1 -1
  145. package/dist/onboarding.d.ts +6 -0
  146. package/dist/onboarding.d.ts.map +1 -1
  147. package/dist/onboarding.js +3 -3
  148. package/dist/onboarding.js.map +1 -1
  149. package/dist/plugin/context.d.ts +42 -11
  150. package/dist/plugin/context.d.ts.map +1 -1
  151. package/dist/plugin/limits.d.ts +2 -0
  152. package/dist/plugin/limits.d.ts.map +1 -1
  153. package/dist/plugin/limits.js +2 -0
  154. package/dist/plugin/limits.js.map +1 -1
  155. package/dist/plugin/manifest.d.ts +13 -0
  156. package/dist/plugin/manifest.d.ts.map +1 -1
  157. package/dist/plugin/manifest.js +30 -3
  158. package/dist/plugin/manifest.js.map +1 -1
  159. package/dist/plugin/rest-schemas.d.ts +55 -0
  160. package/dist/plugin/rest-schemas.d.ts.map +1 -1
  161. package/dist/plugin/rest-schemas.js +37 -0
  162. package/dist/plugin/rest-schemas.js.map +1 -1
  163. package/dist/plugin/sandbox.d.ts.map +1 -1
  164. package/dist/plugin/sandbox.js +4 -1
  165. package/dist/plugin/sandbox.js.map +1 -1
  166. package/dist/plugin/testing.d.ts +6 -2
  167. package/dist/plugin/testing.d.ts.map +1 -1
  168. package/dist/plugin/testing.js +52 -10
  169. package/dist/plugin/testing.js.map +1 -1
  170. package/dist/plugin.d.ts +1 -1
  171. package/dist/plugin.d.ts.map +1 -1
  172. package/dist/plugin.js +1 -1
  173. package/dist/plugin.js.map +1 -1
  174. package/dist/records.d.ts +283 -0
  175. package/dist/records.d.ts.map +1 -0
  176. package/dist/records.js +543 -0
  177. package/dist/records.js.map +1 -0
  178. package/dist/routes.d.ts +3 -1
  179. package/dist/routes.d.ts.map +1 -1
  180. package/dist/routes.js +3 -1
  181. package/dist/routes.js.map +1 -1
  182. package/dist/rules.d.ts +30 -11
  183. package/dist/rules.d.ts.map +1 -1
  184. package/dist/rules.js +98 -45
  185. package/dist/rules.js.map +1 -1
  186. package/dist/runner/acp.d.ts +1 -1
  187. package/dist/runner/acp.d.ts.map +1 -1
  188. package/dist/runner/acp.js +31 -20
  189. package/dist/runner/acp.js.map +1 -1
  190. package/dist/runner/claude.d.ts +1 -1
  191. package/dist/runner/claude.d.ts.map +1 -1
  192. package/dist/runner/claude.js +85 -15
  193. package/dist/runner/claude.js.map +1 -1
  194. package/dist/runner/codex.d.ts +1 -1
  195. package/dist/runner/codex.d.ts.map +1 -1
  196. package/dist/runner/codex.js +19 -16
  197. package/dist/runner/codex.js.map +1 -1
  198. package/dist/runner/desk.d.ts +43 -2
  199. package/dist/runner/desk.d.ts.map +1 -1
  200. package/dist/runner/desk.js +166 -10
  201. package/dist/runner/desk.js.map +1 -1
  202. package/dist/runner/process.d.ts.map +1 -1
  203. package/dist/runner/process.js +11 -4
  204. package/dist/runner/process.js.map +1 -1
  205. package/dist/runner/redact.d.ts +39 -4
  206. package/dist/runner/redact.d.ts.map +1 -1
  207. package/dist/runner/redact.js +81 -5
  208. package/dist/runner/redact.js.map +1 -1
  209. package/dist/runner/runner.d.ts +15 -1
  210. package/dist/runner/runner.d.ts.map +1 -1
  211. package/dist/runner/runner.js +231 -33
  212. package/dist/runner/runner.js.map +1 -1
  213. package/dist/runner/task-scheduler.d.ts +20 -0
  214. package/dist/runner/task-scheduler.d.ts.map +1 -1
  215. package/dist/runner/task-scheduler.js +34 -4
  216. package/dist/runner/task-scheduler.js.map +1 -1
  217. package/dist/runner/types.d.ts +36 -1
  218. package/dist/runner/types.d.ts.map +1 -1
  219. package/dist/runner/types.js +17 -0
  220. package/dist/runner/types.js.map +1 -1
  221. package/dist/runner.d.ts +6 -6
  222. package/dist/runner.d.ts.map +1 -1
  223. package/dist/runner.js +5 -5
  224. package/dist/runner.js.map +1 -1
  225. package/dist/schemas.d.ts +509 -5
  226. package/dist/schemas.d.ts.map +1 -1
  227. package/dist/schemas.js +76 -16
  228. package/dist/schemas.js.map +1 -1
  229. package/dist/services.d.ts +22 -5
  230. package/dist/services.d.ts.map +1 -1
  231. package/dist/services.js +35 -15
  232. package/dist/services.js.map +1 -1
  233. package/dist/setup-guide.d.ts +3 -1
  234. package/dist/setup-guide.d.ts.map +1 -1
  235. package/dist/setup-guide.js +7 -4
  236. package/dist/setup-guide.js.map +1 -1
  237. package/dist/vocabulary.d.ts +14 -3
  238. package/dist/vocabulary.d.ts.map +1 -1
  239. package/dist/vocabulary.js +13 -3
  240. package/dist/vocabulary.js.map +1 -1
  241. package/docs/specs/cli.md +64 -38
  242. package/docs/specs/plugins.md +27 -20
  243. package/docs/specs/records.md +113 -0
  244. package/docs/specs/rest.md +20 -13
  245. package/docs/specs/runner.md +23 -17
  246. package/package.json +7 -2
  247. package/skills/building-a-console/SKILL.md +4 -4
  248. package/skills/building-a-plugin/SKILL.md +6 -6
  249. package/skills/deploying-a-console/SKILL.md +4 -4
  250. package/skills/deploying-a-console/references/resources.md +41 -4
  251. package/skills/deploying-a-console/references/running-it-again.md +3 -2
  252. package/skills/keeping-a-desk/SKILL.md +133 -0
  253. package/skills/keeping-a-desk/collections.md +96 -0
  254. package/skills/planning-the-board/SKILL.md +14 -18
  255. package/skills/planning-the-board/references/a-task.md +2 -2
  256. package/skills/planning-the-board/references/project-rules.md +13 -14
  257. package/skills/planning-the-board/references/setting-up.md +15 -13
  258. package/skills/running-an-agent/SKILL.md +10 -9
  259. package/skills/working-the-board/SKILL.md +62 -44
  260. package/skills/working-the-board/references/terms.md +9 -5
  261. package/skills/working-the-board/references/the-pack.md +12 -10
  262. package/skills/working-the-board/references/the-sentence.md +2 -2
  263. package/src/agent-page.tsx +3 -1
  264. package/src/api.ts +77 -2
  265. package/src/charts.ts +250 -0
  266. package/src/cli/cli.ts +1698 -476
  267. package/src/cli/command-words.ts +56 -0
  268. package/src/cli/credentials.ts +181 -20
  269. package/src/cli/directory.ts +28 -10
  270. package/src/cli/format.ts +301 -46
  271. package/src/cli/help.ts +102 -54
  272. package/src/cli/main.ts +72 -2
  273. package/src/cli/pack.ts +333 -372
  274. package/src/cli/plugin-check.ts +275 -34
  275. package/src/cli/plugin-cli.ts +28 -4
  276. package/src/cli/plugin-main.ts +1 -0
  277. package/src/cli/serve.ts +295 -2
  278. package/src/client.ts +192 -177
  279. package/src/components/agent-page.tsx +489 -243
  280. package/src/components/charts.tsx +680 -0
  281. package/src/components/desk-records.tsx +724 -0
  282. package/src/components/desk.tsx +471 -0
  283. package/src/components/event-feed.tsx +5 -1
  284. package/src/components/home.tsx +12 -0
  285. package/src/components/plugin-settings.tsx +171 -12
  286. package/src/components/projects.tsx +29 -12
  287. package/src/components/rules.tsx +94 -34
  288. package/src/components/setup.tsx +18 -3
  289. package/src/console.tsx +17 -9
  290. package/src/data.ts +37 -34
  291. package/src/desk-page.tsx +332 -0
  292. package/src/desk-records-page.tsx +256 -0
  293. package/src/desk-records.ts +808 -0
  294. package/src/desk.ts +329 -0
  295. package/src/feed-stream.ts +144 -0
  296. package/src/home-tiles.ts +55 -35
  297. package/src/i18n/en.ts +196 -9
  298. package/src/i18n/ko.ts +178 -8
  299. package/src/index.ts +118 -0
  300. package/src/limits.ts +11 -0
  301. package/src/onboarding.ts +12 -4
  302. package/src/plugin/context.ts +55 -12
  303. package/src/plugin/limits.ts +2 -0
  304. package/src/plugin/manifest.ts +38 -2
  305. package/src/plugin/rest-schemas.ts +41 -0
  306. package/src/plugin/sandbox.ts +4 -1
  307. package/src/plugin/testing.ts +63 -12
  308. package/src/plugin.ts +2 -0
  309. package/src/records.ts +702 -0
  310. package/src/routes.ts +3 -1
  311. package/src/rules.ts +108 -47
  312. package/src/runner/acp.ts +47 -29
  313. package/src/runner/claude.ts +113 -23
  314. package/src/runner/codex.ts +35 -25
  315. package/src/runner/desk.ts +198 -12
  316. package/src/runner/process.ts +11 -4
  317. package/src/runner/redact.ts +92 -6
  318. package/src/runner/runner.ts +275 -34
  319. package/src/runner/task-scheduler.ts +36 -4
  320. package/src/runner/types.ts +47 -1
  321. package/src/runner.ts +27 -2
  322. package/src/schemas.ts +83 -15
  323. package/src/services.ts +49 -14
  324. package/src/setup-guide.ts +6 -2
  325. package/src/styles/README.md +11 -1
  326. package/src/styles/console.css +9 -0
  327. package/src/styles/pages/desk.css +126 -0
  328. package/src/styles/pages/documents.css +5 -0
  329. package/src/styles/parts/bars.css +80 -0
  330. package/src/styles/parts/chart.css +173 -0
  331. package/src/styles/parts/figures.css +65 -0
  332. package/src/styles/parts/legend.css +48 -0
  333. package/src/styles/parts/series.css +32 -0
  334. package/src/styles/parts/share.css +25 -0
  335. package/src/styles/parts/spark.css +23 -0
  336. package/src/styles/parts/stat.css +69 -0
  337. package/src/styles/tokens.css +13 -7
  338. package/src/vocabulary.ts +16 -3
  339. package/template/desk-web/README.md +8 -0
  340. package/template/desk-web/index.html +13 -0
  341. package/template/desk-web/package.json +25 -0
  342. package/template/desk-web/src/main.tsx +24 -0
  343. package/template/desk-web/src/page.tsx +51 -0
  344. package/template/desk-web/tsconfig.json +16 -0
  345. package/template/desk-web/vite.config.ts +15 -0
@@ -12,6 +12,7 @@ import type {
12
12
  RestPluginEnableInput,
13
13
  RestPluginGrant,
14
14
  RestPluginGrantInput,
15
+ RestPluginJob,
15
16
  RestPluginSetting,
16
17
  RestProject,
17
18
  RestTeam,
@@ -122,6 +123,10 @@ export function PluginSettingsList(props: PluginSettingsListProps) {
122
123
  </span>
123
124
  </a>
124
125
  <span className="sc-task-row-meta">
126
+ {/* A plugin that runs with something wrong in it, a job that keeps failing say (ADR-0128). */}
127
+ {plugin.problems.length > 0 && plugin.state !== "failed" && (
128
+ <Badge tone="danger">{settings.hasProblems}</Badge>
129
+ )}
125
130
  <Badge tone={STATE_TONES[plugin.state]}>
126
131
  {words.vocabulary.pluginState[plugin.state] ?? plugin.state}
127
132
  </Badge>
@@ -194,6 +199,32 @@ function TickRow(props: {
194
199
  );
195
200
  }
196
201
 
202
+ /**
203
+ * How a job stands, in a line (ADR-0128): when it last ran and how that went, since when it has
204
+ * failed where it failed more than once running, and when it runs next.
205
+ */
206
+ function jobStanding(
207
+ settings: Messages["plugins"]["settings"],
208
+ job: RestPluginJob,
209
+ language: string,
210
+ ): string {
211
+ const parts: string[] = [];
212
+ if (job.lastRunAt === null || job.lastOutcome === null) {
213
+ parts.push(settings.jobNotRun);
214
+ } else if (job.lastOutcome === "ok") {
215
+ parts.push(settings.jobRan(formatInstant(job.lastRunAt, language)));
216
+ } else {
217
+ parts.push(settings.jobFailed(formatInstant(job.lastRunAt, language)));
218
+ if (job.failedSince !== null && job.failedSince !== job.lastRunAt) {
219
+ parts.push(settings.jobFailingSince(formatInstant(job.failedSince, language)));
220
+ }
221
+ }
222
+ if (job.nextAt !== null) {
223
+ parts.push(settings.jobNext(formatInstant(job.nextAt, language)));
224
+ }
225
+ return parts.join(" \u00b7 ");
226
+ }
227
+
197
228
  /** What the plugin is on and holds, a row each; nothing where there is nothing to say yet. */
198
229
  function Overview(props: {
199
230
  readonly detail: RestPluginDetail;
@@ -311,6 +342,26 @@ function Overview(props: {
311
342
  ),
312
343
  });
313
344
  }
345
+ // The jobs as the scheduler keeps them (ADR-0128); a console before 0.5.1 names none.
346
+ if (detail.jobs !== undefined && detail.jobs.length > 0) {
347
+ rows.push({
348
+ key: "jobs",
349
+ name: settings.jobs,
350
+ value: (
351
+ <ul className="sc-plugin-held">
352
+ {detail.jobs.map((job) => (
353
+ <li key={job.name}>
354
+ <span className="sc-plugin-tick-name">
355
+ <code>{job.name}</code>
356
+ {job.lastOutcome === "failed" && <Badge tone="danger">{settings.jobFailing}</Badge>}
357
+ </span>
358
+ <span className="sc-plugin-tick-under"> {jobStanding(settings, job, language)}</span>
359
+ </li>
360
+ ))}
361
+ </ul>
362
+ ),
363
+ });
364
+ }
314
365
  if (detail.operations.length > 0) {
315
366
  rows.push({
316
367
  key: "operations",
@@ -790,7 +841,11 @@ function SettingsForm(props: {
790
841
  */
791
842
  function secretStanding(
792
843
  settings: Messages["plugins"]["settings"],
793
- setting: RestPluginSetting,
844
+ setting: {
845
+ readonly setAt: string | null;
846
+ readonly source?: string | null | undefined;
847
+ readonly expiresAt?: string | null | undefined;
848
+ },
794
849
  language: string,
795
850
  ): string {
796
851
  const when = formatInstant(setting.setAt ?? "", language);
@@ -879,6 +934,96 @@ function SecretRow(props: {
879
934
  );
880
935
  }
881
936
 
937
+ /**
938
+ * A secret kept per key (ADR-0111): how many keys hold a value of how many it may keep, each key
939
+ * on a line with how its value stands and the way to remove it, and a key and a value to set one
940
+ * by hand. The values are never shown; the keys are no secret.
941
+ */
942
+ function KeyedSecretRow(props: {
943
+ readonly setting: RestPluginSetting;
944
+ readonly language: string;
945
+ readonly busy: boolean;
946
+ readonly onSet: (key: string, value: string) => void;
947
+ readonly onRemove: (key: string) => void;
948
+ }) {
949
+ const words = useWords();
950
+ const settings = words.plugins.settings;
951
+ const [key, setKey] = useState("");
952
+ const [value, setValue] = useState("");
953
+ const id = useId();
954
+ const { setting } = props;
955
+ const keys = setting.keys ?? [];
956
+ const max = setting.keyed?.max ?? keys.length;
957
+ return (
958
+ <div className="sc-settings-row">
959
+ <div>
960
+ <label className="sc-settings-label" htmlFor={id}>
961
+ {pluginWord(setting.name, props.language)}
962
+ </label>
963
+ <p className="sc-settings-hint">
964
+ {keys.length === 0 ? settings.secretKeysNone : settings.secretKeys(keys.length, max)}
965
+ </p>
966
+ {setting.hosts !== null && setting.hosts !== undefined && setting.hosts.length > 0 && (
967
+ <p className="sc-settings-hint">{settings.secretHosts(setting.hosts.join(", "))}</p>
968
+ )}
969
+ {setting.description !== null && (
970
+ <p className="sc-settings-hint">{pluginWord(setting.description, props.language)}</p>
971
+ )}
972
+ </div>
973
+ <div className="sc-settings-control">
974
+ {keys.map((kept) => (
975
+ <div key={kept.key} className="sc-plugin-line">
976
+ <div>
977
+ <code className="sc-project-key">{kept.key}</code>
978
+ <p className="sc-settings-hint">{secretStanding(settings, kept, props.language)}</p>
979
+ </div>
980
+ <Button
981
+ variant="ghost"
982
+ size="sm"
983
+ disabled={props.busy}
984
+ aria-label={settings.secretKeyRemove(kept.key)}
985
+ onClick={() => props.onRemove(kept.key)}
986
+ >
987
+ {words.common.remove}
988
+ </Button>
989
+ </div>
990
+ ))}
991
+ <input
992
+ id={id}
993
+ className="sc-input"
994
+ autoComplete="off"
995
+ spellCheck={false}
996
+ placeholder={settings.secretKeyNew}
997
+ aria-label={settings.secretKeyNew}
998
+ value={key}
999
+ onChange={(event) => setKey(event.target.value)}
1000
+ />
1001
+ <div className="sc-plugin-line">
1002
+ <input
1003
+ className="sc-input sc-plugin-line-input"
1004
+ type="password"
1005
+ autoComplete="off"
1006
+ placeholder={settings.secretNew}
1007
+ aria-label={settings.secretNew}
1008
+ value={value}
1009
+ onChange={(event) => setValue(event.target.value)}
1010
+ />
1011
+ <Button
1012
+ disabled={props.busy || key.trim().length === 0 || value.length === 0}
1013
+ onClick={() => {
1014
+ props.onSet(key.trim(), value);
1015
+ setKey("");
1016
+ setValue("");
1017
+ }}
1018
+ >
1019
+ {words.common.save}
1020
+ </Button>
1021
+ </div>
1022
+ </div>
1023
+ </div>
1024
+ );
1025
+ }
1026
+
882
1027
  /**
883
1028
  * Enabling: the capabilities the plugin requires, on and not the administrator's to turn off, and
884
1029
  * those it can go without, off until chosen, those consented to before on already (ADR-0060); the
@@ -1508,7 +1653,10 @@ export function PluginSettingsView(props: PluginSettingsViewProps) {
1508
1653
  <p className="sc-lead">{pluginWord(detail.description, language)}</p>
1509
1654
  {error !== undefined && <Callout tone="danger">{error}</Callout>}
1510
1655
  {detail.problems.length > 0 && (
1511
- <Callout tone="danger" title={settings.problems}>
1656
+ <Callout
1657
+ tone="danger"
1658
+ title={detail.state === "failed" ? settings.problems : settings.problemsRunning}
1659
+ >
1512
1660
  <ul className="sc-plugin-problems">
1513
1661
  {detail.problems.map((problem) => (
1514
1662
  <li key={problem}>{problem}</li>
@@ -1564,16 +1712,27 @@ export function PluginSettingsView(props: PluginSettingsViewProps) {
1564
1712
  />
1565
1713
  {detail.settings
1566
1714
  .filter((setting) => setting.type === "secret")
1567
- .map((setting) => (
1568
- <SecretRow
1569
- key={setting.key}
1570
- setting={setting}
1571
- language={language}
1572
- busy={busy}
1573
- onSet={(value) => change(() => plugin.setSecret(setting.key, value))}
1574
- onRemove={() => change(() => plugin.removeSecret(setting.key))}
1575
- />
1576
- ))}
1715
+ .map((setting) =>
1716
+ setting.keyed !== null && setting.keyed !== undefined ? (
1717
+ <KeyedSecretRow
1718
+ key={setting.key}
1719
+ setting={setting}
1720
+ language={language}
1721
+ busy={busy}
1722
+ onSet={(key, value) => change(() => plugin.setSecret(setting.key, value, key))}
1723
+ onRemove={(key) => change(() => plugin.removeSecret(setting.key, key))}
1724
+ />
1725
+ ) : (
1726
+ <SecretRow
1727
+ key={setting.key}
1728
+ setting={setting}
1729
+ language={language}
1730
+ busy={busy}
1731
+ onSet={(value) => change(() => plugin.setSecret(setting.key, value))}
1732
+ onRemove={() => change(() => plugin.removeSecret(setting.key))}
1733
+ />
1734
+ ),
1735
+ )}
1577
1736
  </div>
1578
1737
  </section>
1579
1738
  )}
@@ -1,8 +1,9 @@
1
- import { type FormEvent, type ReactNode, useEffect, useMemo, useState } from "react";
1
+ import { type FormEvent, type ReactNode, useEffect, useState } from "react";
2
2
  import {
3
3
  COLOR_NAMES,
4
4
  type ColorName,
5
5
  MAX_PROJECT_DESCRIPTION_LENGTH,
6
+ MAX_PROJECT_ICON_BYTES,
6
7
  MAX_PROJECT_KEY_LENGTH,
7
8
  MAX_PROJECT_NAME_LENGTH,
8
9
  MAX_PROJECT_SYMBOL_LENGTH,
@@ -141,18 +142,34 @@ export function ProjectForm(props: ProjectFormProps) {
141
142
  const [symbol, setSymbol] = useState(project?.symbol ?? "");
142
143
  /** The image for the mark: a file chosen, `null` for none any more, nothing to keep the project's. */
143
144
  const [icon, setIcon] = useState<File | null | undefined>(undefined);
144
- const chosenSrc = useMemo(
145
- () => (icon instanceof File ? URL.createObjectURL(icon) : undefined),
146
- [icon],
147
- );
148
- useEffect(
149
- () => () => {
150
- if (chosenSrc !== undefined) {
151
- URL.revokeObjectURL(chosenSrc);
145
+ // The image chosen, as an address the mark can show before it is saved: the file's own bytes,
146
+ // read here. The pages' policy lets an image come from the console or from a `data:` address
147
+ // and from nowhere else, so an address of the browser's own for the file (`blob:`) is refused
148
+ // and the mark would stay its symbol. A file larger than an icon may be is not read: the
149
+ // console refuses it when the form is sent.
150
+ const [chosenSrc, setChosenSrc] = useState<string | undefined>(undefined);
151
+ useEffect(() => {
152
+ setChosenSrc(undefined);
153
+ if (
154
+ !(icon instanceof File) ||
155
+ icon.size > MAX_PROJECT_ICON_BYTES ||
156
+ typeof FileReader === "undefined"
157
+ ) {
158
+ return;
159
+ }
160
+ const reader = new FileReader();
161
+ reader.onload = () => {
162
+ if (typeof reader.result === "string") {
163
+ setChosenSrc(reader.result);
152
164
  }
153
- },
154
- [chosenSrc],
155
- );
165
+ };
166
+ reader.readAsDataURL(icon);
167
+ // Another file chosen, or the form gone, before this one was read: its answer is dropped.
168
+ return () => {
169
+ reader.onload = null;
170
+ reader.abort();
171
+ };
172
+ }, [icon]);
156
173
  const kept = icon === undefined ? (project?.icon ?? null) : null;
157
174
  /** The mark as it will be, from what is typed and chosen so far. */
158
175
  const preview = {
@@ -1,23 +1,24 @@
1
1
  import { type FormEvent, useState } from "react";
2
- import { fillRules, isReferenceRules, MAX_RULES_LENGTH, type RestRules } from "../api.js";
2
+ import { fillRules, MAX_RULES_LENGTH, type RestRules } from "../api.js";
3
3
  import { useLanguage, useWords } from "../i18n/index.js";
4
4
  import { Writer } from "./documents.js";
5
5
  import { Markdown } from "./markdown.js";
6
6
  import { Button, Callout, Time } from "./ui.js";
7
7
 
8
- // The rules of the board (ADR-0023), as the settings pages show them: what holds, where it
9
- // comes from (the console's own, a page written, or none), who wrote the page and when, and
10
- // the ways to change them for whoever may. Each takes its data as props and nothing from the
11
- // network; the rules are Markdown rendered to elements, never HTML, with `{language}` filled
12
- // with the language the pages speak, as the command fills it with the person's.
8
+ // The rules of the board (ADR-0023, ADR-0120), as the settings pages show them. At the
9
+ // workspace: the console's rules as they hold, read and never edited, and below them what the
10
+ // organization adds, with who wrote it and when, and the ways to change it for whoever may. At
11
+ // a project: what it adds, or that it adds none. Each takes its data as props and nothing from
12
+ // the network; the rules are Markdown rendered to elements, never HTML, with `{language}`
13
+ // filled with the language the pages speak, as the command fills it with the person's.
13
14
 
14
15
  export interface RulesViewProps {
15
16
  readonly rules: RestRules;
16
17
  /** Whose rules: the workspace's, or a project's, which add to the workspace's. */
17
18
  readonly scope: "workspace" | "project";
18
- /** Where the rules are written; left out, they are read here and not changed. */
19
+ /** Where what is added is written; left out, the rules are read here and not changed. */
19
20
  readonly editHref?: string | undefined;
20
- /** Called to put the written rules away; left out, they stay. */
21
+ /** Called to put what is added away; left out, it stays. */
21
22
  readonly onArchive?: (() => void) | undefined;
22
23
  readonly busy?: boolean | undefined;
23
24
  /** Where a page of the project is read, by its path, for the links a project's rules make. */
@@ -30,6 +31,9 @@ export function RulesView(props: RulesViewProps) {
30
31
  const words = useWords();
31
32
  const language = useLanguage().tag;
32
33
  const { rules, scope } = props;
34
+ if (scope === "workspace" && rules.own !== undefined && props.folded !== true) {
35
+ return <WorkspaceRules {...props} own={rules.own} />;
36
+ }
33
37
  const page = rules.page;
34
38
  if (rules.source === "none" || rules.body === null) {
35
39
  return (
@@ -46,10 +50,13 @@ export function RulesView(props: RulesViewProps) {
46
50
  );
47
51
  }
48
52
  const text = <Markdown source={fillRules(rules.body, language)} docHref={props.docHref} />;
53
+ // A project's own are changed here. The workspace's come this way folded, on a project's
54
+ // page, or whole from a console of before, which says no parts: read, and changed elsewhere.
55
+ const changed = scope === "project";
49
56
  return (
50
57
  <div>
51
58
  {rules.source === "reference" ? (
52
- <Callout tone="info">{words.rules.reference}</Callout>
59
+ <Callout tone="info">{words.rules.console}</Callout>
53
60
  ) : (
54
61
  page !== null && (
55
62
  <p className="sc-rules-facts">
@@ -66,16 +73,58 @@ export function RulesView(props: RulesViewProps) {
66
73
  ) : (
67
74
  text
68
75
  )}
69
- {(props.editHref !== undefined || props.onArchive !== undefined) && (
76
+ {changed && (props.editHref !== undefined || props.onArchive !== undefined) && (
70
77
  <div className="sc-rules-actions">
71
78
  {props.editHref !== undefined && (
72
79
  <a className="sc-button sc-button-secondary" href={props.editHref}>
73
- {rules.source === "reference" ? words.rules.writeOrganizations : words.common.edit}
80
+ {words.common.edit}
74
81
  </a>
75
82
  )}
76
- {rules.source === "written" && props.onArchive !== undefined && (
83
+ {props.onArchive !== undefined && (
77
84
  <Button variant="ghost" onClick={props.onArchive} disabled={props.busy === true}>
78
- {scope === "workspace" ? words.rules.useReference : words.common.remove}
85
+ {words.common.remove}
86
+ </Button>
87
+ )}
88
+ </div>
89
+ )}
90
+ </div>
91
+ );
92
+ }
93
+
94
+ /** The workspace's rules where they are kept: the console's as they hold, then what the organization adds. */
95
+ function WorkspaceRules(props: RulesViewProps & { readonly own: string }) {
96
+ const words = useWords();
97
+ const language = useLanguage().tag;
98
+ const added = props.rules.added ?? null;
99
+ return (
100
+ <div>
101
+ <Callout tone="info">{words.rules.console}</Callout>
102
+ <Markdown source={fillRules(props.own, language)} docHref={props.docHref} />
103
+ <div className="sc-rules-added">
104
+ <h3 className="sc-section-title">{words.rules.added}</h3>
105
+ {added === null ? (
106
+ <p className="sc-muted">{words.rules.nothingAdded}</p>
107
+ ) : (
108
+ <>
109
+ <p className="sc-rules-facts">
110
+ {words.docs.version(added.page.version)} · {words.docs.writtenBy}{" "}
111
+ <Writer by={added.page.updatedBy} agent={added.page.agent} />{" "}
112
+ <Time iso={added.page.updatedAt} />
113
+ </p>
114
+ <Markdown source={fillRules(added.body, language)} docHref={props.docHref} />
115
+ </>
116
+ )}
117
+ </div>
118
+ {(props.editHref !== undefined || (added !== null && props.onArchive !== undefined)) && (
119
+ <div className="sc-rules-actions">
120
+ {props.editHref !== undefined && (
121
+ <a className="sc-button sc-button-secondary" href={props.editHref}>
122
+ {added === null ? words.rules.add : words.common.edit}
123
+ </a>
124
+ )}
125
+ {added !== null && props.onArchive !== undefined && (
126
+ <Button variant="ghost" onClick={props.onArchive} disabled={props.busy === true}>
127
+ {words.common.remove}
79
128
  </Button>
80
129
  )}
81
130
  </div>
@@ -85,10 +134,10 @@ export function RulesView(props: RulesViewProps) {
85
134
  }
86
135
 
87
136
  export interface RulesFormProps {
88
- /** The rules as they hold now: what the form starts from when a page is written. */
137
+ /** The rules as they hold now: what the form starts from where something is written. */
89
138
  readonly rules: RestRules;
90
139
  readonly scope: "workspace" | "project";
91
- /** What the form starts from when a project adds none yet: the headings, and nothing an agent could mistake for a rule. */
140
+ /** What the form starts from where nothing is written yet: a project's headings; nothing at the workspace. */
92
141
  readonly template: string;
93
142
  readonly busy?: boolean | undefined;
94
143
  readonly error?: string | undefined;
@@ -97,25 +146,29 @@ export interface RulesFormProps {
97
146
  readonly baseVersion?: number | undefined;
98
147
  }) => void;
99
148
  readonly onCancel?: (() => void) | undefined;
100
- /** Called to put the organization's page away, so that the console's own rules hold again; offered while one is written. */
101
- readonly onReset?: (() => void) | undefined;
102
149
  }
103
150
 
104
151
  /**
105
- * The form the rules are written on: prefilled with what holds (the console's own, for a
106
- * workspace that wrote none), and saving nothing that would change nothing: the text as it
107
- * is, or the console's own rules where they hold already. Where the organization's are
108
- * written, the console's own saved as they stand put the page away, as the reset does.
152
+ * The form what is added to the rules is written on. At the workspace it holds what the
153
+ * organization adds and nothing of the console's rules, which are read above it: empty until
154
+ * something is added. At a project it starts from the project's page, or from the headings.
155
+ * It saves nothing that would change nothing.
109
156
  */
110
157
  export function RulesForm(props: RulesFormProps) {
111
158
  const words = useWords();
159
+ const language = useLanguage().tag;
112
160
  const { rules, scope } = props;
113
- /** What holds now: the page written, or the console's own; nothing for a project that adds none. */
114
- const current = rules.source === "none" ? undefined : (rules.body ?? undefined);
161
+ // A console of before says the whole and no parts, and takes the whole back.
162
+ const parts = scope === "workspace" && rules.own !== undefined;
163
+ /** What is written now: what the organization adds, or the page as it holds; nothing where nothing is. */
164
+ const current = parts
165
+ ? rules.added?.body
166
+ : rules.source === "none"
167
+ ? undefined
168
+ : (rules.body ?? undefined);
169
+ const page = parts ? (rules.added?.page ?? null) : rules.page;
115
170
  const [body, setBody] = useState(current ?? props.template);
116
- const unchanged =
117
- body.trim() === (current ?? "").trim() ||
118
- (scope === "workspace" && rules.source === "reference" && isReferenceRules(body));
171
+ const unchanged = body.trim() === (current ?? "").trim();
119
172
  const ready = !unchanged && body.trim().length > 0;
120
173
 
121
174
  const submit = (event: FormEvent) => {
@@ -125,14 +178,22 @@ export function RulesForm(props: RulesFormProps) {
125
178
  }
126
179
  props.onSubmit({
127
180
  body,
128
- ...(rules.page === null ? {} : { baseVersion: rules.page.version }),
181
+ ...(page === null ? {} : { baseVersion: page.version }),
129
182
  });
130
183
  };
131
184
 
132
185
  return (
133
186
  <form className="sc-form" onSubmit={submit}>
187
+ {parts && rules.own !== undefined && (
188
+ <details className="sc-rules-fold">
189
+ <summary>{words.rules.readConsole}</summary>
190
+ <Markdown source={fillRules(rules.own, language)} />
191
+ </details>
192
+ )}
134
193
  <label className="sc-field">
135
- <span className="sc-field-label">{words.rules.form.body}</span>
194
+ <span className="sc-field-label">
195
+ {scope === "workspace" ? words.rules.added : words.rules.form.body}
196
+ </span>
136
197
  <textarea
137
198
  className="sc-input sc-textarea sc-doc-editor"
138
199
  value={body}
@@ -140,7 +201,11 @@ export function RulesForm(props: RulesFormProps) {
140
201
  rows={20}
141
202
  onChange={(event) => setBody(event.target.value)}
142
203
  />
143
- <span className="sc-muted">{words.rules.form.hint(MAX_RULES_LENGTH)}</span>
204
+ <span className="sc-muted">
205
+ {scope === "workspace"
206
+ ? words.rules.form.hintAdded(MAX_RULES_LENGTH)
207
+ : words.rules.form.hint(MAX_RULES_LENGTH)}
208
+ </span>
144
209
  </label>
145
210
  {props.error !== undefined && (
146
211
  <p className="sc-form-error" role="alert">
@@ -156,11 +221,6 @@ export function RulesForm(props: RulesFormProps) {
156
221
  {words.common.cancel}
157
222
  </Button>
158
223
  )}
159
- {props.onReset !== undefined && rules.source === "written" && (
160
- <Button variant="ghost" onClick={props.onReset} disabled={props.busy === true}>
161
- {words.rules.useReference}
162
- </Button>
163
- )}
164
224
  </div>
165
225
  </form>
166
226
  );
@@ -1,5 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
2
  import {
3
+ type FirstSignIn,
3
4
  hostOfLogin,
4
5
  type RestAgentInvitation,
5
6
  type RestAgentInvitationMade,
@@ -146,6 +147,11 @@ export interface AgentStartStepsProps {
146
147
  readonly provider: string;
147
148
  /** Whether anyone has signed in with the account. */
148
149
  readonly signedIn: boolean;
150
+ /**
151
+ * What its first sign-in is held to at a git host (ADR-0126), as the console answers it of
152
+ * the account: left out, as a console older than the answer leaves it, the login alone.
153
+ */
154
+ readonly firstSignIn?: FirstSignIn | undefined;
149
155
  /** Whether an invitation stands. */
150
156
  readonly invited: boolean;
151
157
  /** Whether the account's command is signed in on a machine. */
@@ -161,8 +167,9 @@ export interface AgentStartStepsProps {
161
167
  * done: the account it signs in with, an invitation, the one line on its machine, its runner.
162
168
  * Each is said done as the console sees it, so that whoever looks reads what is next. Who makes
163
169
  * the account at the provider is not said: the account is named, and when it has to be there
164
- * (ADR-0094), which at a git host is already, since until its first sign-in the console lets in
165
- * whoever holds the login.
170
+ * (ADR-0094), which at a git host is already, since a login there is whoever's registers it:
171
+ * the step says whether the host said which account the login is, and marks the account not
172
+ * confirmed where it did not (ADR-0126).
166
173
  */
167
174
  export function AgentStartSteps(props: AgentStartStepsProps) {
168
175
  const words = useWords().agents.page.start;
@@ -170,11 +177,15 @@ export function AgentStartSteps(props: AgentStartStepsProps) {
170
177
  const heard = props.heard;
171
178
  const onMachine = props.onMachine || heard;
172
179
  const signedIn = props.signedIn || onMachine;
180
+ const atGitHost = hostOfLogin(props.login) === "gh";
181
+ const heldTo = props.firstSignIn ?? "login";
173
182
  const steps: readonly {
174
183
  readonly key: string;
175
184
  readonly title: string;
176
185
  readonly body: string;
177
186
  readonly done: boolean;
187
+ /** What is to be seen of a step that is not done, beside its title. */
188
+ readonly mark?: string | undefined;
178
189
  readonly more?: ReactNode;
179
190
  }[] = [
180
191
  {
@@ -182,8 +193,11 @@ export function AgentStartSteps(props: AgentStartStepsProps) {
182
193
  title: words.account.title,
183
194
  body: signedIn
184
195
  ? words.account.done(props.login)
185
- : words.account.at[hostOfLogin(props.login)](props.login, props.provider),
196
+ : atGitHost
197
+ ? words.account.at.gh[heldTo](props.login, props.provider)
198
+ : words.account.at.google(props.login, props.provider),
186
199
  done: signedIn,
200
+ mark: !signedIn && atGitHost && heldTo !== "account" ? words.account.notConfirmed : undefined,
187
201
  },
188
202
  {
189
203
  key: "invitation",
@@ -226,6 +240,7 @@ export function AgentStartSteps(props: AgentStartStepsProps) {
226
240
  <span className="sc-step-title">
227
241
  {step.title}
228
242
  {step.done && <Badge tone="success">{words.done}</Badge>}
243
+ {!step.done && step.mark !== undefined && <Badge tone="warning">{step.mark}</Badge>}
229
244
  </span>
230
245
  <p className="sc-step-body">{step.body}</p>
231
246
  {step.more}
package/src/console.tsx CHANGED
@@ -17,7 +17,6 @@ import {
17
17
  type FileUpload,
18
18
  OPEN_TASK_STATES,
19
19
  PROJECT_RULES_TEMPLATE,
20
- REFERENCE_RULES,
21
20
  type RestAgent,
22
21
  type RestAgentProposal,
23
22
  type RestAnswerInput,
@@ -65,6 +64,7 @@ import {
65
64
  DecisionList,
66
65
  type DecisionListProps,
67
66
  } from "./components/decision-list.js";
67
+ import { DeskWords } from "./components/desk.js";
68
68
  import { EventFeed, type EventFeedProps } from "./components/event-feed.js";
69
69
  import { GoalForm, GoalList, type GoalListProps, GoalView, goalMonth } from "./components/goals.js";
70
70
  import { HomeGrid, type HomeGridProps, type ProjectGlance } from "./components/home.js";
@@ -260,6 +260,11 @@ export interface CustomPageContext {
260
260
  /** The client, for what the data does not carry. */
261
261
  readonly client: ConsoleClient;
262
262
  readonly navigation: Navigation;
263
+ /**
264
+ * The query of the address the page is at, as the browser has it (`?view=figures`), or `""`:
265
+ * how a page of one's own is shown is said by its address, as every page's is (ADR-0010).
266
+ */
267
+ readonly search: string;
263
268
  /** The words of the language the pages speak, and its tag. */
264
269
  readonly words: Messages;
265
270
  readonly language: string;
@@ -2088,7 +2093,7 @@ function WorkspaceSettingsPage(props: {
2088
2093
  <RulesForm
2089
2094
  rules={rules}
2090
2095
  scope="workspace"
2091
- template={REFERENCE_RULES}
2096
+ template=""
2092
2097
  busy={busy}
2093
2098
  onSubmit={(input) =>
2094
2099
  void act(async () => {
@@ -2104,12 +2109,6 @@ function WorkspaceSettingsPage(props: {
2104
2109
  })
2105
2110
  }
2106
2111
  onCancel={() => navigation.back(PATHS.settings)}
2107
- onReset={() =>
2108
- void act(async () => {
2109
- setRules(await data.actions.archiveRules());
2110
- navigation.replace(PATHS.settings);
2111
- })
2112
- }
2113
2112
  />
2114
2113
  )}
2115
2114
  </section>
@@ -3468,6 +3467,7 @@ function WorkspacePage(props: {
3468
3467
  empty={<EmptyState title={agents.empty.title} body={agents.empty.body} />}
3469
3468
  />
3470
3469
  <ConnectWords origin={origin} />
3470
+ <DeskWords origin={origin} />
3471
3471
  </section>
3472
3472
  )}
3473
3473
  </>
@@ -3752,7 +3752,15 @@ export function createConsole(config: ConsoleConfig = {}): ConsoleApp {
3752
3752
  return found === undefined ? (
3753
3753
  <NothingHere />
3754
3754
  ) : (
3755
- found.render({ data, project, client, navigation, words, language: pack.tag })
3755
+ found.render({
3756
+ data,
3757
+ project,
3758
+ client,
3759
+ navigation,
3760
+ search: location.search,
3761
+ words,
3762
+ language: pack.tag,
3763
+ })
3756
3764
  );
3757
3765
  };
3758
3766
  let page: ReactNode;