@skillcdn/console 0.6.2 → 0.6.4

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 (253) hide show
  1. package/README.md +16 -9
  2. package/SKILLCDN.md +3 -2
  3. package/dist/agent-page.d.ts +2 -0
  4. package/dist/agent-page.d.ts.map +1 -1
  5. package/dist/agent-page.js +46 -5
  6. package/dist/agent-page.js.map +1 -1
  7. package/dist/agent-state.d.ts +9 -0
  8. package/dist/agent-state.d.ts.map +1 -0
  9. package/dist/agent-state.js +28 -0
  10. package/dist/agent-state.js.map +1 -0
  11. package/dist/api.d.ts +6 -4
  12. package/dist/api.d.ts.map +1 -1
  13. package/dist/api.js +6 -4
  14. package/dist/api.js.map +1 -1
  15. package/dist/cli/cli.d.ts +2 -0
  16. package/dist/cli/cli.d.ts.map +1 -1
  17. package/dist/cli/cli.js +948 -252
  18. package/dist/cli/cli.js.map +1 -1
  19. package/dist/cli/format.d.ts +44 -7
  20. package/dist/cli/format.d.ts.map +1 -1
  21. package/dist/cli/format.js +168 -13
  22. package/dist/cli/format.js.map +1 -1
  23. package/dist/cli/help.d.ts +82 -9
  24. package/dist/cli/help.d.ts.map +1 -1
  25. package/dist/cli/help.js +855 -331
  26. package/dist/cli/help.js.map +1 -1
  27. package/dist/cli/pack.d.ts +13 -12
  28. package/dist/cli/pack.d.ts.map +1 -1
  29. package/dist/cli/pack.js +33 -45
  30. package/dist/cli/pack.js.map +1 -1
  31. package/dist/cli/plugin-cli.d.ts.map +1 -1
  32. package/dist/cli/plugin-cli.js +8 -5
  33. package/dist/cli/plugin-cli.js.map +1 -1
  34. package/dist/cli/runner-files.d.ts +16 -0
  35. package/dist/cli/runner-files.d.ts.map +1 -0
  36. package/dist/cli/runner-files.js +125 -0
  37. package/dist/cli/runner-files.js.map +1 -0
  38. package/dist/cli/runner-host.d.ts +7 -0
  39. package/dist/cli/runner-host.d.ts.map +1 -1
  40. package/dist/cli/runner-host.js +40 -2
  41. package/dist/cli/runner-host.js.map +1 -1
  42. package/dist/cli/skill-path.d.ts +11 -0
  43. package/dist/cli/skill-path.d.ts.map +1 -0
  44. package/dist/cli/skill-path.js +44 -0
  45. package/dist/cli/skill-path.js.map +1 -0
  46. package/dist/client.d.ts +32 -1
  47. package/dist/client.d.ts.map +1 -1
  48. package/dist/client.js +15 -1
  49. package/dist/client.js.map +1 -1
  50. package/dist/components/agent-page.d.ts +93 -6
  51. package/dist/components/agent-page.d.ts.map +1 -1
  52. package/dist/components/agent-page.js +202 -10
  53. package/dist/components/agent-page.js.map +1 -1
  54. package/dist/components/agents.d.ts +6 -6
  55. package/dist/components/agents.d.ts.map +1 -1
  56. package/dist/components/agents.js +16 -9
  57. package/dist/components/agents.js.map +1 -1
  58. package/dist/components/people.d.ts.map +1 -1
  59. package/dist/components/people.js +7 -2
  60. package/dist/components/people.js.map +1 -1
  61. package/dist/components/picker.d.ts +16 -0
  62. package/dist/components/picker.d.ts.map +1 -1
  63. package/dist/components/picker.js +69 -4
  64. package/dist/components/picker.js.map +1 -1
  65. package/dist/console.css +40 -0
  66. package/dist/console.js +2 -2
  67. package/dist/console.js.map +1 -1
  68. package/dist/feed-words.d.ts.map +1 -1
  69. package/dist/feed-words.js +12 -1
  70. package/dist/feed-words.js.map +1 -1
  71. package/dist/i18n/en.d.ts +64 -6
  72. package/dist/i18n/en.d.ts.map +1 -1
  73. package/dist/i18n/en.js +59 -10
  74. package/dist/i18n/en.js.map +1 -1
  75. package/dist/i18n/ko.d.ts.map +1 -1
  76. package/dist/i18n/ko.js +49 -9
  77. package/dist/i18n/ko.js.map +1 -1
  78. package/dist/limits.d.ts +26 -0
  79. package/dist/limits.d.ts.map +1 -1
  80. package/dist/limits.js +26 -0
  81. package/dist/limits.js.map +1 -1
  82. package/dist/onboarding.d.ts +18 -6
  83. package/dist/onboarding.d.ts.map +1 -1
  84. package/dist/onboarding.js +42 -7
  85. package/dist/onboarding.js.map +1 -1
  86. package/dist/plugin/args.d.ts +24 -2
  87. package/dist/plugin/args.d.ts.map +1 -1
  88. package/dist/plugin/args.js +20 -2
  89. package/dist/plugin/args.js.map +1 -1
  90. package/dist/plugin/context.d.ts +39 -7
  91. package/dist/plugin/context.d.ts.map +1 -1
  92. package/dist/plugin/define.d.ts.map +1 -1
  93. package/dist/plugin/define.js +12 -3
  94. package/dist/plugin/define.js.map +1 -1
  95. package/dist/plugin/rest-schemas.d.ts +2 -0
  96. package/dist/plugin/rest-schemas.d.ts.map +1 -1
  97. package/dist/plugin/rest-schemas.js +1 -0
  98. package/dist/plugin/rest-schemas.js.map +1 -1
  99. package/dist/routes.d.ts +2 -0
  100. package/dist/routes.d.ts.map +1 -1
  101. package/dist/routes.js +2 -0
  102. package/dist/routes.js.map +1 -1
  103. package/dist/rules.d.ts +4 -1
  104. package/dist/rules.d.ts.map +1 -1
  105. package/dist/rules.js +5 -2
  106. package/dist/rules.js.map +1 -1
  107. package/dist/runner/acp.d.ts.map +1 -1
  108. package/dist/runner/acp.js +9 -3
  109. package/dist/runner/acp.js.map +1 -1
  110. package/dist/runner/claude.d.ts.map +1 -1
  111. package/dist/runner/claude.js +53 -1
  112. package/dist/runner/claude.js.map +1 -1
  113. package/dist/runner/codex.d.ts.map +1 -1
  114. package/dist/runner/codex.js +18 -3
  115. package/dist/runner/codex.js.map +1 -1
  116. package/dist/runner/config.d.ts +18 -0
  117. package/dist/runner/config.d.ts.map +1 -1
  118. package/dist/runner/config.js +77 -1
  119. package/dist/runner/config.js.map +1 -1
  120. package/dist/runner/desk.d.ts +7 -0
  121. package/dist/runner/desk.d.ts.map +1 -1
  122. package/dist/runner/desk.js +14 -4
  123. package/dist/runner/desk.js.map +1 -1
  124. package/dist/runner/message.d.ts +16 -22
  125. package/dist/runner/message.d.ts.map +1 -1
  126. package/dist/runner/message.js +72 -120
  127. package/dist/runner/message.js.map +1 -1
  128. package/dist/runner/runner.d.ts +41 -1
  129. package/dist/runner/runner.d.ts.map +1 -1
  130. package/dist/runner/runner.js +557 -23
  131. package/dist/runner/runner.js.map +1 -1
  132. package/dist/runner/slack-status.d.ts +19 -0
  133. package/dist/runner/slack-status.d.ts.map +1 -0
  134. package/dist/runner/slack-status.js +332 -0
  135. package/dist/runner/slack-status.js.map +1 -0
  136. package/dist/runner/slack.d.ts.map +1 -1
  137. package/dist/runner/slack.js +258 -59
  138. package/dist/runner/slack.js.map +1 -1
  139. package/dist/runner/types.d.ts +128 -15
  140. package/dist/runner/types.d.ts.map +1 -1
  141. package/dist/runner/types.js.map +1 -1
  142. package/dist/runner/usage.d.ts +6 -1
  143. package/dist/runner/usage.d.ts.map +1 -1
  144. package/dist/runner/usage.js +9 -2
  145. package/dist/runner/usage.js.map +1 -1
  146. package/dist/runner.d.ts +2 -2
  147. package/dist/runner.d.ts.map +1 -1
  148. package/dist/runner.js.map +1 -1
  149. package/dist/schemas.d.ts +635 -6
  150. package/dist/schemas.d.ts.map +1 -1
  151. package/dist/schemas.js +197 -15
  152. package/dist/schemas.js.map +1 -1
  153. package/dist/secret-file.d.ts +21 -0
  154. package/dist/secret-file.d.ts.map +1 -0
  155. package/dist/secret-file.js +59 -0
  156. package/dist/secret-file.js.map +1 -0
  157. package/dist/services.d.ts.map +1 -1
  158. package/dist/services.js +3 -2
  159. package/dist/services.js.map +1 -1
  160. package/dist/setup-guide.d.ts +2 -2
  161. package/dist/setup-guide.d.ts.map +1 -1
  162. package/dist/setup-guide.js +6 -5
  163. package/dist/setup-guide.js.map +1 -1
  164. package/dist/vocabulary.d.ts +17 -2
  165. package/dist/vocabulary.d.ts.map +1 -1
  166. package/dist/vocabulary.js +15 -2
  167. package/dist/vocabulary.js.map +1 -1
  168. package/dist/wake-text.d.ts +43 -0
  169. package/dist/wake-text.d.ts.map +1 -0
  170. package/dist/wake-text.js +115 -0
  171. package/dist/wake-text.js.map +1 -0
  172. package/docs/specs/cli.md +39 -25
  173. package/docs/specs/plugins.md +10 -9
  174. package/docs/specs/rest.md +34 -15
  175. package/docs/specs/runner.md +108 -25
  176. package/docs/start.md +28 -6
  177. package/package.json +3 -3
  178. package/skills/building-a-plugin/SKILL.md +2 -2
  179. package/skills/deploying-a-console/SKILL.md +3 -3
  180. package/skills/deploying-a-console/references/access.md +15 -1
  181. package/skills/deploying-a-console/references/resources.md +2 -2
  182. package/skills/deploying-a-console/scripts/github-app.mjs +593 -0
  183. package/skills/keeping-the-pack/SKILL.md +87 -0
  184. package/skills/planning-the-board/SKILL.md +6 -6
  185. package/skills/planning-the-board/references/a-task.md +1 -1
  186. package/skills/planning-the-board/references/setting-up.md +9 -5
  187. package/skills/running-an-agent/SKILL.md +21 -17
  188. package/skills/running-an-agent/references/preparing-the-machine.md +4 -3
  189. package/skills/running-an-agent/references/several-tasks.md +8 -2
  190. package/skills/running-an-agent/references/slack-app.md +31 -8
  191. package/skills/running-an-agent/references/the-account-and-the-invitation.md +1 -1
  192. package/skills/running-an-agent/references/what-was-not-seen-run-yet.md +3 -1
  193. package/skills/running-an-agent/references/when-the-agent-could-not-go-on.md +4 -4
  194. package/skills/running-an-agent/references/your-first-task.md +11 -5
  195. package/skills/trying-a-console/SKILL.md +136 -0
  196. package/skills/trying-a-console/references/when-it-does-not-go.md +30 -0
  197. package/skills/working-the-board/SKILL.md +6 -6
  198. package/skills/working-the-board/references/terms.md +3 -1
  199. package/skills/working-the-board/references/the-pack.md +14 -7
  200. package/skills/working-the-board/references/what-they-were-told.md +1 -1
  201. package/src/agent-page.tsx +111 -4
  202. package/src/agent-state.ts +33 -0
  203. package/src/api.ts +43 -0
  204. package/src/cli/cli.ts +1190 -313
  205. package/src/cli/format.ts +207 -13
  206. package/src/cli/help.ts +991 -372
  207. package/src/cli/pack.ts +55 -62
  208. package/src/cli/plugin-cli.ts +8 -5
  209. package/src/cli/runner-files.ts +137 -0
  210. package/src/cli/runner-host.ts +48 -2
  211. package/src/cli/skill-path.ts +51 -0
  212. package/src/client.ts +103 -0
  213. package/src/components/agent-page.tsx +446 -20
  214. package/src/components/agents.tsx +27 -28
  215. package/src/components/people.tsx +7 -3
  216. package/src/components/picker.tsx +79 -5
  217. package/src/console.tsx +1 -1
  218. package/src/feed-words.ts +14 -1
  219. package/src/i18n/en.ts +64 -11
  220. package/src/i18n/ko.ts +55 -9
  221. package/src/limits.ts +26 -0
  222. package/src/onboarding.ts +60 -21
  223. package/src/plugin/args.ts +29 -3
  224. package/src/plugin/context.ts +40 -7
  225. package/src/plugin/define.ts +18 -3
  226. package/src/plugin/rest-schemas.ts +3 -0
  227. package/src/routes.ts +2 -0
  228. package/src/rules.ts +5 -2
  229. package/src/runner/acp.ts +9 -3
  230. package/src/runner/claude.ts +58 -1
  231. package/src/runner/codex.ts +18 -3
  232. package/src/runner/config.ts +114 -1
  233. package/src/runner/desk.ts +15 -4
  234. package/src/runner/message.ts +88 -126
  235. package/src/runner/runner.ts +682 -27
  236. package/src/runner/slack-status.ts +423 -0
  237. package/src/runner/slack.ts +310 -67
  238. package/src/runner/types.ts +124 -13
  239. package/src/runner/usage.ts +16 -3
  240. package/src/runner.ts +4 -0
  241. package/src/schemas.ts +245 -13
  242. package/src/secret-file.ts +76 -0
  243. package/src/services.ts +3 -2
  244. package/src/setup-guide.ts +6 -5
  245. package/src/styles/README.md +1 -1
  246. package/src/styles/pages/agents.css +40 -0
  247. package/src/vocabulary.ts +21 -2
  248. package/src/wake-text.ts +133 -0
  249. package/dist/cli/command-words.d.ts +0 -20
  250. package/dist/cli/command-words.d.ts.map +0 -1
  251. package/dist/cli/command-words.js +0 -51
  252. package/dist/cli/command-words.js.map +0 -1
  253. package/src/cli/command-words.ts +0 -56
@@ -0,0 +1,33 @@
1
+ import type { RestAgentState } from "./schemas.js";
2
+
3
+ // How an agent account stands (ADR-0085), as the pages and the command read it: the state has
4
+ // a moment, since when it stands, and the reason may have another, when it was said. A reason
5
+ // changes under a state that stays, a turn completes or a new conversation begins while the
6
+ // agent runs on, so the one is never shown as the other's.
7
+
8
+ /**
9
+ * How far apart the two moments are before the reason's is shown beside it: a reason said
10
+ * within a minute of its state is the state's own, and the pages show a moment to the minute.
11
+ * The runner's clock and the console's are two machines', a few seconds apart.
12
+ */
13
+ const OWN_MOMENT_MS = 60_000;
14
+
15
+ /**
16
+ * When the reason was said, where that is a moment of its own to show beside it: one the
17
+ * console keeps, and another than the state's. A reason that came with its state is of the
18
+ * state's moment, which stands with the state; one of before the console kept such a moment
19
+ * has none. Either is shown without one, and never beside the state's as if it were its own.
20
+ */
21
+ export function reasonMoment(
22
+ state: Pick<RestAgentState, "since" | "reasonAt">,
23
+ ): string | undefined {
24
+ const at = state.reasonAt ?? undefined;
25
+ if (at === undefined) {
26
+ return undefined;
27
+ }
28
+ const said = Date.parse(at);
29
+ const since = Date.parse(state.since);
30
+ return Number.isNaN(said) || Number.isNaN(since) || Math.abs(said - since) < OWN_MOMENT_MS
31
+ ? undefined
32
+ : at;
33
+ }
package/src/api.ts CHANGED
@@ -116,6 +116,7 @@ export {
116
116
  } from "./icons/index.js";
117
117
  export {
118
118
  DEFAULT_DAY_START,
119
+ DEFAULT_PACK_ROUND,
119
120
  DEFAULT_PAGE_LIMIT,
120
121
  DEFAULT_TOKEN_DAYS,
121
122
  EVENTS_PAGE_LIMIT,
@@ -160,6 +161,12 @@ export {
160
161
  MAX_OWN_WAKE_DAYS,
161
162
  MAX_OWN_WAKES,
162
163
  MAX_OWN_WAKES_PER_HOUR,
164
+ MAX_PACK_NOTE_LENGTH,
165
+ MAX_PACK_NOTE_OUTCOME_LENGTH,
166
+ MAX_PACK_NOTE_PATH_LENGTH,
167
+ MAX_PACK_NOTES_OPEN_BY_ONE,
168
+ MAX_PACK_NOTES_PAGE_LIMIT,
169
+ MAX_PACK_NOTES_PER_HOUR,
163
170
  MAX_PERSON_NAME_LENGTH,
164
171
  MAX_PERSON_TITLE_LENGTH,
165
172
  MAX_PROJECT_DESCRIPTION_LENGTH,
@@ -180,6 +187,10 @@ export {
180
187
  MAX_SEAL_REASON_LENGTH,
181
188
  MAX_SEARCH_LENGTH,
182
189
  MAX_SECRET_LENGTH,
190
+ MAX_SECRET_OFFER_NOTE_LENGTH,
191
+ MAX_SECRET_OFFERS_BY_ONE,
192
+ MAX_SECRET_OFFERS_KEPT,
193
+ MAX_SECRET_OFFERS_WAITING,
183
194
  MAX_SERVICE_PARAMETERS,
184
195
  MAX_SERVICE_VALUE_LENGTH,
185
196
  MAX_SESSIONS_PAGE_LIMIT,
@@ -216,6 +227,8 @@ export {
216
227
  MIN_HANDLE_LENGTH,
217
228
  MIN_OPTIONS,
218
229
  OWN_WAKE_KEY,
230
+ PACK_NOTES_PAGE_LIMIT,
231
+ SECRET_OFFER_DAYS,
219
232
  SESSIONS_PAGE_LIMIT,
220
233
  SIGNALS_PAGE_LIMIT,
221
234
  TRANSCRIPT_INLINE_BYTES,
@@ -245,6 +258,7 @@ export {
245
258
  unseenSince,
246
259
  } from "./notifications.js";
247
260
  export {
261
+ ONBOARDING_KEY,
248
262
  type OnboardingInput,
249
263
  onboardingOf,
250
264
  onboardingTitle,
@@ -381,6 +395,10 @@ export {
381
395
  type RestAgentSecretAccess,
382
396
  type RestAgentSecretAccesses,
383
397
  type RestAgentSecretInput,
398
+ type RestAgentSecretOffer,
399
+ type RestAgentSecretOfferInput,
400
+ type RestAgentSecretOffers,
401
+ type RestAgentSecretOfferTakeInput,
384
402
  type RestAgentSecrets,
385
403
  type RestAgentSecretValue,
386
404
  type RestAgentSession,
@@ -463,6 +481,11 @@ export {
463
481
  type RestOwnWakes,
464
482
  type RestPackConnect,
465
483
  type RestPackConnectStarted,
484
+ type RestPackNote,
485
+ type RestPackNoteCloseInput,
486
+ type RestPackNoteInput,
487
+ type RestPackNoteLeft,
488
+ type RestPackNotes,
466
489
  type RestPackRefusal,
467
490
  type RestPackTokenInput,
468
491
  type RestPeople,
@@ -562,6 +585,10 @@ export {
562
585
  restAgentSecretAccessesSchema,
563
586
  restAgentSecretAccessSchema,
564
587
  restAgentSecretInputSchema,
588
+ restAgentSecretOfferInputSchema,
589
+ restAgentSecretOfferSchema,
590
+ restAgentSecretOffersSchema,
591
+ restAgentSecretOfferTakeInputSchema,
565
592
  restAgentSecretSchema,
566
593
  restAgentSecretsSchema,
567
594
  restAgentSecretValueSchema,
@@ -645,6 +672,11 @@ export {
645
672
  restOwnWakesSchema,
646
673
  restPackConnectSchema,
647
674
  restPackConnectStartedSchema,
675
+ restPackNoteCloseInputSchema,
676
+ restPackNoteInputSchema,
677
+ restPackNoteLeftSchema,
678
+ restPackNoteSchema,
679
+ restPackNotesSchema,
648
680
  restPackRefusalSchema,
649
681
  restPackTokenInputSchema,
650
682
  restPeopleSchema,
@@ -732,6 +764,12 @@ export {
732
764
  serviceProblem,
733
765
  serviceProblemOf,
734
766
  } from "./schemas.js";
767
+ export {
768
+ MAX_SECRET_FILE_BYTES,
769
+ type SecretFileRefusal,
770
+ secretOfFile,
771
+ secretOfText,
772
+ } from "./secret-file.js";
735
773
  export {
736
774
  agentAddressOf,
737
775
  agentLoginOf,
@@ -789,7 +827,9 @@ export {
789
827
  OPEN_GOAL_STATES,
790
828
  OPEN_TASK_STATES,
791
829
  PACK_CONNECT_ENDINGS,
830
+ PACK_NOTE_STATES,
792
831
  type PackConnectEnding,
832
+ type PackNoteState,
793
833
  PEOPLE_VISIBILITIES,
794
834
  PERSON_KINDS,
795
835
  PERSON_ROLES,
@@ -817,10 +857,12 @@ export {
817
857
  type RunEnding,
818
858
  type RunStatus,
819
859
  SECRET_ACCESSES,
860
+ SECRET_OFFER_STATES,
820
861
  SERVICE_ROLES,
821
862
  SESSION_ENDS,
822
863
  SESSION_KINDS,
823
864
  type SecretAccess,
865
+ type SecretOfferState,
824
866
  type ServiceRole,
825
867
  type SessionEnd,
826
868
  type SessionKind,
@@ -843,3 +885,4 @@ export {
843
885
  WEEK_STARTS,
844
886
  type WeekStart,
845
887
  } from "./vocabulary.js";
888
+ export { BOARD_PARTS_FROM, type WakePart, wakePartsOf, wakeTextOf } from "./wake-text.js";