@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.
- package/README.md +16 -9
- package/SKILLCDN.md +3 -2
- package/dist/agent-page.d.ts +2 -0
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +46 -5
- package/dist/agent-page.js.map +1 -1
- package/dist/agent-state.d.ts +9 -0
- package/dist/agent-state.d.ts.map +1 -0
- package/dist/agent-state.js +28 -0
- package/dist/agent-state.js.map +1 -0
- package/dist/api.d.ts +6 -4
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +6 -4
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +2 -0
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +948 -252
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +44 -7
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +168 -13
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts +82 -9
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +855 -331
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/pack.d.ts +13 -12
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +33 -45
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/plugin-cli.d.ts.map +1 -1
- package/dist/cli/plugin-cli.js +8 -5
- package/dist/cli/plugin-cli.js.map +1 -1
- package/dist/cli/runner-files.d.ts +16 -0
- package/dist/cli/runner-files.d.ts.map +1 -0
- package/dist/cli/runner-files.js +125 -0
- package/dist/cli/runner-files.js.map +1 -0
- package/dist/cli/runner-host.d.ts +7 -0
- package/dist/cli/runner-host.d.ts.map +1 -1
- package/dist/cli/runner-host.js +40 -2
- package/dist/cli/runner-host.js.map +1 -1
- package/dist/cli/skill-path.d.ts +11 -0
- package/dist/cli/skill-path.d.ts.map +1 -0
- package/dist/cli/skill-path.js +44 -0
- package/dist/cli/skill-path.js.map +1 -0
- package/dist/client.d.ts +32 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +15 -1
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +93 -6
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +202 -10
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/agents.d.ts +6 -6
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +16 -9
- package/dist/components/agents.js.map +1 -1
- package/dist/components/people.d.ts.map +1 -1
- package/dist/components/people.js +7 -2
- package/dist/components/people.js.map +1 -1
- package/dist/components/picker.d.ts +16 -0
- package/dist/components/picker.d.ts.map +1 -1
- package/dist/components/picker.js +69 -4
- package/dist/components/picker.js.map +1 -1
- package/dist/console.css +40 -0
- package/dist/console.js +2 -2
- package/dist/console.js.map +1 -1
- package/dist/feed-words.d.ts.map +1 -1
- package/dist/feed-words.js +12 -1
- package/dist/feed-words.js.map +1 -1
- package/dist/i18n/en.d.ts +64 -6
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +59 -10
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +49 -9
- package/dist/i18n/ko.js.map +1 -1
- package/dist/limits.d.ts +26 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +26 -0
- package/dist/limits.js.map +1 -1
- package/dist/onboarding.d.ts +18 -6
- package/dist/onboarding.d.ts.map +1 -1
- package/dist/onboarding.js +42 -7
- package/dist/onboarding.js.map +1 -1
- package/dist/plugin/args.d.ts +24 -2
- package/dist/plugin/args.d.ts.map +1 -1
- package/dist/plugin/args.js +20 -2
- package/dist/plugin/args.js.map +1 -1
- package/dist/plugin/context.d.ts +39 -7
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/define.d.ts.map +1 -1
- package/dist/plugin/define.js +12 -3
- package/dist/plugin/define.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +2 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +1 -0
- package/dist/plugin/rest-schemas.js.map +1 -1
- package/dist/routes.d.ts +2 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +2 -0
- package/dist/routes.js.map +1 -1
- package/dist/rules.d.ts +4 -1
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +5 -2
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +9 -3
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +53 -1
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +18 -3
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/config.d.ts +18 -0
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/config.js +77 -1
- package/dist/runner/config.js.map +1 -1
- package/dist/runner/desk.d.ts +7 -0
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +14 -4
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/message.d.ts +16 -22
- package/dist/runner/message.d.ts.map +1 -1
- package/dist/runner/message.js +72 -120
- package/dist/runner/message.js.map +1 -1
- package/dist/runner/runner.d.ts +41 -1
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +557 -23
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/slack-status.d.ts +19 -0
- package/dist/runner/slack-status.d.ts.map +1 -0
- package/dist/runner/slack-status.js +332 -0
- package/dist/runner/slack-status.js.map +1 -0
- package/dist/runner/slack.d.ts.map +1 -1
- package/dist/runner/slack.js +258 -59
- package/dist/runner/slack.js.map +1 -1
- package/dist/runner/types.d.ts +128 -15
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js.map +1 -1
- package/dist/runner/usage.d.ts +6 -1
- package/dist/runner/usage.d.ts.map +1 -1
- package/dist/runner/usage.js +9 -2
- package/dist/runner/usage.js.map +1 -1
- package/dist/runner.d.ts +2 -2
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js.map +1 -1
- package/dist/schemas.d.ts +635 -6
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +197 -15
- package/dist/schemas.js.map +1 -1
- package/dist/secret-file.d.ts +21 -0
- package/dist/secret-file.d.ts.map +1 -0
- package/dist/secret-file.js +59 -0
- package/dist/secret-file.js.map +1 -0
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +3 -2
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +2 -2
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +6 -5
- package/dist/setup-guide.js.map +1 -1
- package/dist/vocabulary.d.ts +17 -2
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +15 -2
- package/dist/vocabulary.js.map +1 -1
- package/dist/wake-text.d.ts +43 -0
- package/dist/wake-text.d.ts.map +1 -0
- package/dist/wake-text.js +115 -0
- package/dist/wake-text.js.map +1 -0
- package/docs/specs/cli.md +39 -25
- package/docs/specs/plugins.md +10 -9
- package/docs/specs/rest.md +34 -15
- package/docs/specs/runner.md +108 -25
- package/docs/start.md +28 -6
- package/package.json +3 -3
- package/skills/building-a-plugin/SKILL.md +2 -2
- package/skills/deploying-a-console/SKILL.md +3 -3
- package/skills/deploying-a-console/references/access.md +15 -1
- package/skills/deploying-a-console/references/resources.md +2 -2
- package/skills/deploying-a-console/scripts/github-app.mjs +593 -0
- package/skills/keeping-the-pack/SKILL.md +87 -0
- package/skills/planning-the-board/SKILL.md +6 -6
- package/skills/planning-the-board/references/a-task.md +1 -1
- package/skills/planning-the-board/references/setting-up.md +9 -5
- package/skills/running-an-agent/SKILL.md +21 -17
- package/skills/running-an-agent/references/preparing-the-machine.md +4 -3
- package/skills/running-an-agent/references/several-tasks.md +8 -2
- package/skills/running-an-agent/references/slack-app.md +31 -8
- package/skills/running-an-agent/references/the-account-and-the-invitation.md +1 -1
- package/skills/running-an-agent/references/what-was-not-seen-run-yet.md +3 -1
- package/skills/running-an-agent/references/when-the-agent-could-not-go-on.md +4 -4
- package/skills/running-an-agent/references/your-first-task.md +11 -5
- package/skills/trying-a-console/SKILL.md +136 -0
- package/skills/trying-a-console/references/when-it-does-not-go.md +30 -0
- package/skills/working-the-board/SKILL.md +6 -6
- package/skills/working-the-board/references/terms.md +3 -1
- package/skills/working-the-board/references/the-pack.md +14 -7
- package/skills/working-the-board/references/what-they-were-told.md +1 -1
- package/src/agent-page.tsx +111 -4
- package/src/agent-state.ts +33 -0
- package/src/api.ts +43 -0
- package/src/cli/cli.ts +1190 -313
- package/src/cli/format.ts +207 -13
- package/src/cli/help.ts +991 -372
- package/src/cli/pack.ts +55 -62
- package/src/cli/plugin-cli.ts +8 -5
- package/src/cli/runner-files.ts +137 -0
- package/src/cli/runner-host.ts +48 -2
- package/src/cli/skill-path.ts +51 -0
- package/src/client.ts +103 -0
- package/src/components/agent-page.tsx +446 -20
- package/src/components/agents.tsx +27 -28
- package/src/components/people.tsx +7 -3
- package/src/components/picker.tsx +79 -5
- package/src/console.tsx +1 -1
- package/src/feed-words.ts +14 -1
- package/src/i18n/en.ts +64 -11
- package/src/i18n/ko.ts +55 -9
- package/src/limits.ts +26 -0
- package/src/onboarding.ts +60 -21
- package/src/plugin/args.ts +29 -3
- package/src/plugin/context.ts +40 -7
- package/src/plugin/define.ts +18 -3
- package/src/plugin/rest-schemas.ts +3 -0
- package/src/routes.ts +2 -0
- package/src/rules.ts +5 -2
- package/src/runner/acp.ts +9 -3
- package/src/runner/claude.ts +58 -1
- package/src/runner/codex.ts +18 -3
- package/src/runner/config.ts +114 -1
- package/src/runner/desk.ts +15 -4
- package/src/runner/message.ts +88 -126
- package/src/runner/runner.ts +682 -27
- package/src/runner/slack-status.ts +423 -0
- package/src/runner/slack.ts +310 -67
- package/src/runner/types.ts +124 -13
- package/src/runner/usage.ts +16 -3
- package/src/runner.ts +4 -0
- package/src/schemas.ts +245 -13
- package/src/secret-file.ts +76 -0
- package/src/services.ts +3 -2
- package/src/setup-guide.ts +6 -5
- package/src/styles/README.md +1 -1
- package/src/styles/pages/agents.css +40 -0
- package/src/vocabulary.ts +21 -2
- package/src/wake-text.ts +133 -0
- package/dist/cli/command-words.d.ts +0 -20
- package/dist/cli/command-words.d.ts.map +0 -1
- package/dist/cli/command-words.js +0 -51
- package/dist/cli/command-words.js.map +0 -1
- 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";
|