@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { type AgentState, type FileUpload, type RestAgent, type RestAgentRunner, type RestAgentSecret, type RestAgentSession, type RestAgentUsageWindow, type RestPerson, type RestSignal, type RestTranscriptEvent } from "../api.js";
|
|
2
|
+
import { type AgentState, type FileUpload, type RestAgent, type RestAgentRunner, type RestAgentSecret, type RestAgentSecretOffer, type RestAgentSession, type RestAgentUsageWindow, type RestPerson, type RestSignal, type RestTranscriptEvent, type SecretFileRefusal } from "../api.js";
|
|
3
3
|
import { type PictureState } from "./pictures.js";
|
|
4
4
|
/**
|
|
5
5
|
* What an agent account's product last said of what its subscription allows (ADR-0156): a
|
|
@@ -11,10 +11,14 @@ export declare function AgentUsage(props: {
|
|
|
11
11
|
readonly usage: readonly RestAgentUsageWindow[];
|
|
12
12
|
readonly said?: boolean | undefined;
|
|
13
13
|
}): import("react").JSX.Element;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The state of an agent account as a badge: the word, and where there is room since when it
|
|
16
|
+
* stands so, right after the word it is the moment of, then why, with when that was said where
|
|
17
|
+
* it is another moment than the state's.
|
|
18
|
+
*/
|
|
15
19
|
export declare function AgentStateBadge(props: {
|
|
16
20
|
readonly state: RestAgent["state"];
|
|
17
|
-
/** With
|
|
21
|
+
/** With since when it stands so, why, and when its runner was last heard from. */
|
|
18
22
|
readonly full?: boolean | undefined;
|
|
19
23
|
}): import("react").JSX.Element | null;
|
|
20
24
|
export interface TranscriptViewProps {
|
|
@@ -523,13 +527,96 @@ export declare function AgentRunnerFacts(props: {
|
|
|
523
527
|
export declare function AgentElsewhereList(props: {
|
|
524
528
|
readonly accounts: Readonly<Record<string, string>> | undefined;
|
|
525
529
|
}): import("react").JSX.Element;
|
|
530
|
+
export interface AgentSecretOfferListProps {
|
|
531
|
+
readonly offers: readonly RestAgentSecretOffer[];
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* The secrets offered to an agent account (ADR-0169), a row each: the name proposed, who offers
|
|
535
|
+
* it and when, and how the offer stands. Never a value.
|
|
536
|
+
*/
|
|
537
|
+
export declare function AgentSecretOfferList(props: AgentSecretOfferListProps): import("react").JSX.Element;
|
|
538
|
+
/** Why a file a person chose stands for no value: what the file is, or that it could not be read here. */
|
|
539
|
+
type SecretFileProblem = SecretFileRefusal | "unread";
|
|
540
|
+
export interface SecretValueInputProps {
|
|
541
|
+
/** What the field is called, for whoever does not see it. */
|
|
542
|
+
readonly label: string;
|
|
543
|
+
readonly placeholder?: string | undefined;
|
|
544
|
+
/** What was typed, shown as dots. */
|
|
545
|
+
readonly typed: string;
|
|
546
|
+
/** The file chosen in the place of what is typed: its name and how large it is, and never its text. */
|
|
547
|
+
readonly chosen: {
|
|
548
|
+
readonly name: string;
|
|
549
|
+
readonly bytes: number;
|
|
550
|
+
} | undefined;
|
|
551
|
+
readonly disabled?: boolean | undefined;
|
|
552
|
+
readonly onType: (value: string) => void;
|
|
553
|
+
/** Takes the chosen file out, and the field is typed into again. */
|
|
554
|
+
readonly onClear: () => void;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Where a secret's value stands on a form: a field typed unseen, or, once a file was chosen,
|
|
558
|
+
* the file by its name with the way to take it out. A file's name is text a person brought, and
|
|
559
|
+
* is drawn as text.
|
|
560
|
+
*/
|
|
561
|
+
export declare function SecretValueInput(props: SecretValueInputProps): import("react").JSX.Element;
|
|
562
|
+
export interface SecretValueMoreProps {
|
|
563
|
+
readonly disabled?: boolean | undefined;
|
|
564
|
+
/** Called with the file a person chose as the value. */
|
|
565
|
+
readonly onChoose: (file: File | undefined) => void;
|
|
566
|
+
/**
|
|
567
|
+
* The day the value ends on: `null` where it ends on none, which is how a form begins; else
|
|
568
|
+
* what the date field gives, empty until a day is entered.
|
|
569
|
+
*/
|
|
570
|
+
readonly expiresOn: string | null;
|
|
571
|
+
readonly onExpiresOn: (day: string | null) => void;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Under a secret's fields, what the command says with flags (ADR-0184): the way to choose a
|
|
575
|
+
* file as the value (`--file`), and the day the value ends on (`--expires`), which a token made
|
|
576
|
+
* for a time has and most secrets have not. So that it ends on no day is what stands chosen, in
|
|
577
|
+
* words, and the day's field is there only once a person says the value has one: an empty date
|
|
578
|
+
* field said nothing of what leaving it empty means. The day is the value's own, never an
|
|
579
|
+
* offer's, which waits its days whatever is said here.
|
|
580
|
+
*/
|
|
581
|
+
export declare function SecretValueMore(props: SecretValueMoreProps): import("react").JSX.Element;
|
|
582
|
+
/** Why a chosen file stands for no value, as a line under the form. Nothing of the file but that. */
|
|
583
|
+
export declare function SecretFileProblemLine(props: {
|
|
584
|
+
readonly problem: SecretFileProblem | undefined;
|
|
585
|
+
}): import("react").JSX.Element | null;
|
|
586
|
+
export interface AgentSecretOfferFormProps {
|
|
587
|
+
/** What the account is called, for the line that says what becomes of an offer. */
|
|
588
|
+
readonly account: string;
|
|
589
|
+
readonly busy?: boolean | undefined;
|
|
590
|
+
/** Offers a secret: the account takes it or leaves it, and nobody reads the value back. */
|
|
591
|
+
readonly onOffer: (offer: {
|
|
592
|
+
readonly name: string;
|
|
593
|
+
readonly value: string;
|
|
594
|
+
readonly note: string | undefined;
|
|
595
|
+
/** The day the value ends on, where one was said. */
|
|
596
|
+
readonly expiresOn: string | undefined;
|
|
597
|
+
}) => void;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* The way a member offers an agent account a secret (ADR-0169): its name, its value, typed
|
|
601
|
+
* unseen or the text of a file chosen here (ADR-0184), the day it ends on where it has one, and
|
|
602
|
+
* what it is for.
|
|
603
|
+
*/
|
|
604
|
+
export declare function AgentSecretOfferForm(props: AgentSecretOfferFormProps): import("react").JSX.Element;
|
|
526
605
|
export interface AgentSecretListProps {
|
|
527
606
|
readonly secrets: readonly RestAgentSecret[];
|
|
528
607
|
readonly busy?: boolean | undefined;
|
|
529
|
-
/**
|
|
530
|
-
|
|
608
|
+
/**
|
|
609
|
+
* Seeds a secret, write-only: only the account reads the value back. With the day the value
|
|
610
|
+
* ends on, where one was said.
|
|
611
|
+
*/
|
|
612
|
+
readonly onSeed: (name: string, value: string, expiresOn?: string) => void;
|
|
531
613
|
readonly onRemove: (name: string) => void;
|
|
532
614
|
}
|
|
533
|
-
/**
|
|
615
|
+
/**
|
|
616
|
+
* The names of an agent account's secrets, and the way a supervisor seeds one or removes one:
|
|
617
|
+
* the value typed unseen, or the text of a file chosen here, as the command takes one with
|
|
618
|
+
* `--file` (ADR-0184). Never a value.
|
|
619
|
+
*/
|
|
534
620
|
export declare function AgentSecretList(props: AgentSecretListProps): import("react").JSX.Element;
|
|
621
|
+
export {};
|
|
535
622
|
//# sourceMappingURL=agent-page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-page.d.ts","sourceRoot":"","sources":["../../src/components/agent-page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,UAAU,EACf,KAAK,UAAU,EAIf,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,mBAAmB,EAIzB,MAAM,WAAW,CAAC;AAKnB,OAAO,EAAY,KAAK,YAAY,E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,CAAC;IAC3E,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAkF1D"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useCallback, useEffect, useMemo, useRef, useState, } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { reasonMoment } from "../agent-state.js";
|
|
4
|
+
import { isSecretName, MAX_AGENT_SECRET_BYTES, MAX_AGENT_SECRET_NAME_LENGTH, MAX_FILE_BYTES, MAX_SECRET_FILE_BYTES, MAX_SECRET_OFFER_NOTE_LENGTH, MAX_SIGNAL_ATTACHMENTS, MAX_SIGNAL_LENGTH, SECRET_OFFER_DAYS, secretOfFile, usageNear, usageSaidTogether, usedHundredths, } from "../api.js";
|
|
4
5
|
import { today } from "../dates.js";
|
|
5
6
|
import { useWords } from "../i18n/index.js";
|
|
6
7
|
import { isPicture } from "./files.js";
|
|
@@ -53,7 +54,11 @@ export function AgentUsage(props) {
|
|
|
53
54
|
: undefined, note: resets === false && apart === false ? undefined : (_jsxs(_Fragment, { children: [resets, resets !== false && apart !== false && " · ", apart] })) }, place));
|
|
54
55
|
}), props.said === true && together !== undefined && (_jsx("span", { className: "sc-progress-words", children: said(together) }))] }));
|
|
55
56
|
}
|
|
56
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* The state of an agent account as a badge: the word, and where there is room since when it
|
|
59
|
+
* stands so, right after the word it is the moment of, then why, with when that was said where
|
|
60
|
+
* it is another moment than the state's.
|
|
61
|
+
*/
|
|
57
62
|
export function AgentStateBadge(props) {
|
|
58
63
|
const words = useWords().agents.page.state;
|
|
59
64
|
const state = props.state ?? null;
|
|
@@ -64,11 +69,12 @@ export function AgentStateBadge(props) {
|
|
|
64
69
|
}
|
|
65
70
|
const reasons = words.reasons;
|
|
66
71
|
const reason = state.reason === null ? undefined : (reasons[state.reason] ?? state.reason);
|
|
72
|
+
const said = reasonMoment(state);
|
|
67
73
|
const badge = (_jsx(Badge, { tone: STATE_TONES[state.state], kind: "state", live: state.state === "running", title: reason, children: words[state.state] }));
|
|
68
74
|
if (props.full !== true) {
|
|
69
75
|
return badge;
|
|
70
76
|
}
|
|
71
|
-
return (_jsxs("span", { className: "sc-agent-state", children: [badge, _jsxs("span", { className: "sc-note", children: [
|
|
77
|
+
return (_jsxs("span", { className: "sc-agent-state", children: [badge, _jsxs("span", { className: "sc-note", children: [words.since.before, _jsx(Time, { iso: state.since, precision: "clock" }), words.since.after, state.until !== undefined && state.until !== null && (_jsxs(_Fragment, { children: [" · ", words.until.before, _jsx(Time, { iso: state.until, precision: "clock" }), words.until.after] })), reason !== undefined && (_jsxs(_Fragment, { children: [" · ", reason, said !== undefined && (_jsxs(_Fragment, { children: [words.reasonAt.before, _jsx(Time, { iso: said, precision: "clock" }), words.reasonAt.after] }))] })), state.heardAt !== null && (_jsxs(_Fragment, { children: [" · ", words.heard, " ", _jsx(Time, { iso: state.heardAt, precision: "clock" })] }))] })] }));
|
|
72
78
|
}
|
|
73
79
|
/** What a runner says of an event that is said apart from the rest: the tool it names. */
|
|
74
80
|
const TOOL = "tool";
|
|
@@ -1354,7 +1360,7 @@ export function AgentRunnerFacts(props) {
|
|
|
1354
1360
|
: [
|
|
1355
1361
|
[
|
|
1356
1362
|
words.product,
|
|
1357
|
-
_jsxs("span", { className: "sc-agent-product", children: [runner.product.name, runner.product.version !== null && ` ${runner.product.version}
|
|
1363
|
+
_jsxs("span", { className: "sc-agent-product", children: [runner.product.name, runner.product.version !== null && ` ${runner.product.version}`] }, "product"),
|
|
1358
1364
|
],
|
|
1359
1365
|
]),
|
|
1360
1366
|
[words.signals, words.delivered(runner.delivered, runner.latest)],
|
|
@@ -1384,21 +1390,207 @@ export function AgentElsewhereList(props) {
|
|
|
1384
1390
|
const held = Object.entries(props.accounts ?? {});
|
|
1385
1391
|
return (_jsxs("div", { children: [held.length === 0 ? (_jsx("p", { className: "sc-field-hint", children: words.empty })) : (_jsx("dl", { className: "sc-person-facts sc-agent-runner-facts", "aria-label": words.title, children: held.map(([service, name]) => (_jsxs("div", { className: "sc-person-fact", children: [_jsx("dt", { children: service }), _jsx("dd", { children: name })] }, service))) })), _jsx("p", { className: "sc-field-hint", children: words.intro })] }));
|
|
1386
1392
|
}
|
|
1387
|
-
/**
|
|
1393
|
+
/** What a secret offered to an account stands as, in the tone a badge says it in. */
|
|
1394
|
+
const OFFER_TONES = {
|
|
1395
|
+
waiting: "accent",
|
|
1396
|
+
taken: "success",
|
|
1397
|
+
left: "neutral",
|
|
1398
|
+
lapsed: "neutral",
|
|
1399
|
+
};
|
|
1400
|
+
/**
|
|
1401
|
+
* The secrets offered to an agent account (ADR-0169), a row each: the name proposed, who offers
|
|
1402
|
+
* it and when, and how the offer stands. Never a value.
|
|
1403
|
+
*/
|
|
1404
|
+
export function AgentSecretOfferList(props) {
|
|
1405
|
+
const words = useWords().agents.page.offers;
|
|
1406
|
+
return (_jsx("ul", { className: "sc-divided sc-agent-secret-list", "aria-label": words.title, children: props.offers.map((offer) => (_jsxs("li", { className: "sc-small sc-agent-secret", children: [_jsx("code", { children: offer.name }), _jsxs("span", { className: "sc-muted", children: [offer.by === null ? words.someone : personName(offer.by), " · ", _jsx(Time, { iso: offer.at, precision: "day" }), offer.takenAs !== null && offer.takenAs !== offer.name && (_jsxs(_Fragment, { children: [" · ", words.takenAs(offer.takenAs)] }))] }), _jsx(Badge, { tone: OFFER_TONES[offer.state], kind: "state", children: words.state[offer.state] })] }, offer.id))) }));
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* The value of a secret on a form of the page (ADR-0184): typed unseen, or the text of a file
|
|
1410
|
+
* the person chose, a `.env` of several lines among them, as the command takes one with
|
|
1411
|
+
* `--file`. The file is read here, as bytes, and what it comes to is held until the form is sent
|
|
1412
|
+
* or the file taken out; one that is no value, too large, no text or empty, is refused with why
|
|
1413
|
+
* and nothing of it is kept. What was typed and what a file holds are never both the value.
|
|
1414
|
+
*/
|
|
1415
|
+
function useSecretValue() {
|
|
1416
|
+
const [typed, setTyped] = useState("");
|
|
1417
|
+
const [chosen, setChosen] = useState();
|
|
1418
|
+
const [problem, setProblem] = useState();
|
|
1419
|
+
/** The file asked for last: one chosen after another is the one that stands, whichever is read first. */
|
|
1420
|
+
const asked = useRef(0);
|
|
1421
|
+
const refuse = (why) => {
|
|
1422
|
+
setChosen(undefined);
|
|
1423
|
+
setProblem(why);
|
|
1424
|
+
};
|
|
1425
|
+
const choose = (file) => {
|
|
1426
|
+
if (file === undefined) {
|
|
1427
|
+
return;
|
|
1428
|
+
}
|
|
1429
|
+
asked.current += 1;
|
|
1430
|
+
const mine = asked.current;
|
|
1431
|
+
setProblem(undefined);
|
|
1432
|
+
// A file past what a value may ever be is refused by its size, unread.
|
|
1433
|
+
if (file.size > MAX_SECRET_FILE_BYTES) {
|
|
1434
|
+
refuse("too_large");
|
|
1435
|
+
return;
|
|
1436
|
+
}
|
|
1437
|
+
if (typeof FileReader === "undefined") {
|
|
1438
|
+
refuse("unread");
|
|
1439
|
+
return;
|
|
1440
|
+
}
|
|
1441
|
+
const reader = new FileReader();
|
|
1442
|
+
reader.onload = () => {
|
|
1443
|
+
if (mine !== asked.current) {
|
|
1444
|
+
return;
|
|
1445
|
+
}
|
|
1446
|
+
const read = reader.result;
|
|
1447
|
+
if (!(read instanceof ArrayBuffer)) {
|
|
1448
|
+
refuse("unread");
|
|
1449
|
+
return;
|
|
1450
|
+
}
|
|
1451
|
+
const found = secretOfFile(new Uint8Array(read));
|
|
1452
|
+
if ("refused" in found) {
|
|
1453
|
+
refuse(found.refused);
|
|
1454
|
+
return;
|
|
1455
|
+
}
|
|
1456
|
+
setTyped("");
|
|
1457
|
+
setChosen({ name: file.name, bytes: file.size, value: found.value });
|
|
1458
|
+
};
|
|
1459
|
+
reader.onerror = () => {
|
|
1460
|
+
if (mine === asked.current) {
|
|
1461
|
+
refuse("unread");
|
|
1462
|
+
}
|
|
1463
|
+
};
|
|
1464
|
+
reader.readAsArrayBuffer(file);
|
|
1465
|
+
};
|
|
1466
|
+
return {
|
|
1467
|
+
/** The value as it would be sent: the file's text where one is chosen, else what was typed. */
|
|
1468
|
+
value: chosen?.value ?? typed,
|
|
1469
|
+
typed,
|
|
1470
|
+
chosen,
|
|
1471
|
+
problem,
|
|
1472
|
+
type: (value) => {
|
|
1473
|
+
setTyped(value);
|
|
1474
|
+
setProblem(undefined);
|
|
1475
|
+
},
|
|
1476
|
+
choose,
|
|
1477
|
+
/** Takes the file out, or empties the form once it was sent. */
|
|
1478
|
+
clear: () => {
|
|
1479
|
+
asked.current += 1;
|
|
1480
|
+
setTyped("");
|
|
1481
|
+
setChosen(undefined);
|
|
1482
|
+
setProblem(undefined);
|
|
1483
|
+
},
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
/**
|
|
1487
|
+
* Where a secret's value stands on a form: a field typed unseen, or, once a file was chosen,
|
|
1488
|
+
* the file by its name with the way to take it out. A file's name is text a person brought, and
|
|
1489
|
+
* is drawn as text.
|
|
1490
|
+
*/
|
|
1491
|
+
export function SecretValueInput(props) {
|
|
1492
|
+
const words = useWords().agents.page.secretFile;
|
|
1493
|
+
const { chosen } = props;
|
|
1494
|
+
if (chosen === undefined) {
|
|
1495
|
+
return (_jsx("input", { className: "sc-input", type: "password", "aria-label": props.label, placeholder: props.placeholder, value: props.typed, autoComplete: "new-password", disabled: props.disabled, onChange: (event) => props.onType(event.target.value) }));
|
|
1496
|
+
}
|
|
1497
|
+
return (_jsx("ul", { className: "sc-chosen-files", "aria-label": props.label, children: _jsxs("li", { className: "sc-chosen-file sc-agent-secret-file", children: [_jsx("span", { className: "sc-agent-secret-file-name", children: chosen.name }), " ", _jsx("span", { className: "sc-muted", children: formatBytes(chosen.bytes) }), " ", _jsx(Button, { variant: "ghost", size: "sm", "aria-label": words.remove(chosen.name), disabled: props.disabled, onClick: props.onClear, children: "\u00D7" })] }) }));
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Under a secret's fields, what the command says with flags (ADR-0184): the way to choose a
|
|
1501
|
+
* file as the value (`--file`), and the day the value ends on (`--expires`), which a token made
|
|
1502
|
+
* for a time has and most secrets have not. So that it ends on no day is what stands chosen, in
|
|
1503
|
+
* words, and the day's field is there only once a person says the value has one: an empty date
|
|
1504
|
+
* field said nothing of what leaving it empty means. The day is the value's own, never an
|
|
1505
|
+
* offer's, which waits its days whatever is said here.
|
|
1506
|
+
*/
|
|
1507
|
+
export function SecretValueMore(props) {
|
|
1508
|
+
const words = useWords().agents.page.secretFile;
|
|
1509
|
+
const dated = props.expiresOn !== null;
|
|
1510
|
+
return (_jsxs("div", { className: "sc-agent-secret-more", children: [_jsxs("label", { className: "sc-button sc-button-ghost sc-button-sm sc-file-choice", children: [words.choose, _jsx("input", { className: "sc-file-input", type: "file", disabled: props.disabled, onChange: (event) => {
|
|
1511
|
+
props.onChoose(event.target.files?.[0]);
|
|
1512
|
+
// The box is emptied, so that a file taken out can be chosen again.
|
|
1513
|
+
event.target.value = "";
|
|
1514
|
+
} })] }), _jsxs("label", { className: "sc-field sc-field-inline", children: [_jsx("span", { className: "sc-field-label", children: words.ends }), _jsxs("select", { className: "sc-input", value: dated ? "day" : "none", disabled: props.disabled, onChange: (event) => props.onExpiresOn(event.target.value === "day" ? "" : null), children: [_jsx("option", { value: "none", children: words.endsNever }), _jsx("option", { value: "day", children: words.endsOnDay })] })] }), dated && (_jsxs("label", { className: "sc-field sc-field-inline", children: [_jsx("span", { className: "sc-field-label", children: words.expiresOn }), _jsx("input", { className: "sc-input", type: "date",
|
|
1515
|
+
// A day was asked for: the form is not sent without one, or the value would be kept
|
|
1516
|
+
// as one that never ends.
|
|
1517
|
+
required: true, value: props.expiresOn ?? "", disabled: props.disabled, onChange: (event) => props.onExpiresOn(event.target.value) })] }))] }));
|
|
1518
|
+
}
|
|
1519
|
+
/** Why a chosen file stands for no value, as a line under the form. Nothing of the file but that. */
|
|
1520
|
+
export function SecretFileProblemLine(props) {
|
|
1521
|
+
const words = useWords().agents.page.secretFile;
|
|
1522
|
+
if (props.problem === undefined) {
|
|
1523
|
+
return null;
|
|
1524
|
+
}
|
|
1525
|
+
return (_jsx("p", { className: "sc-form-error", role: "alert", children: props.problem === "too_large"
|
|
1526
|
+
? words.tooLarge(formatBytes(MAX_AGENT_SECRET_BYTES))
|
|
1527
|
+
: props.problem === "not_text"
|
|
1528
|
+
? words.notText
|
|
1529
|
+
: props.problem === "empty"
|
|
1530
|
+
? words.empty
|
|
1531
|
+
: words.unread }));
|
|
1532
|
+
}
|
|
1533
|
+
/**
|
|
1534
|
+
* The way a member offers an agent account a secret (ADR-0169): its name, its value, typed
|
|
1535
|
+
* unseen or the text of a file chosen here (ADR-0184), the day it ends on where it has one, and
|
|
1536
|
+
* what it is for.
|
|
1537
|
+
*/
|
|
1538
|
+
export function AgentSecretOfferForm(props) {
|
|
1539
|
+
const words = useWords().agents.page.offers;
|
|
1540
|
+
const [name, setName] = useState("");
|
|
1541
|
+
const secret = useSecretValue();
|
|
1542
|
+
const [expiresOn, setExpiresOn] = useState(null);
|
|
1543
|
+
const [note, setNote] = useState("");
|
|
1544
|
+
const busy = props.busy === true;
|
|
1545
|
+
const ready = isSecretName(name.trim()) && secret.value.length > 0;
|
|
1546
|
+
const submit = (event) => {
|
|
1547
|
+
event.preventDefault();
|
|
1548
|
+
if (!ready || busy) {
|
|
1549
|
+
return;
|
|
1550
|
+
}
|
|
1551
|
+
props.onOffer({
|
|
1552
|
+
name: name.trim(),
|
|
1553
|
+
value: secret.value,
|
|
1554
|
+
note: note.trim().length === 0 ? undefined : note.trim(),
|
|
1555
|
+
expiresOn: expiresOn === null || expiresOn === "" ? undefined : expiresOn,
|
|
1556
|
+
});
|
|
1557
|
+
setName("");
|
|
1558
|
+
secret.clear();
|
|
1559
|
+
setExpiresOn(null);
|
|
1560
|
+
setNote("");
|
|
1561
|
+
};
|
|
1562
|
+
// A field is its label's while it is typed into; a chosen file has a button of its own, which
|
|
1563
|
+
// a label would press.
|
|
1564
|
+
const ValueField = secret.chosen === undefined ? "label" : "div";
|
|
1565
|
+
return (_jsxs("form", { className: "sc-form", "aria-label": words.offerAria, onSubmit: submit, children: [_jsxs("div", { className: "sc-field-row", children: [_jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: words.name }), _jsx("input", { className: "sc-input", placeholder: words.namePlaceholder, value: name, maxLength: MAX_AGENT_SECRET_NAME_LENGTH, autoComplete: "off", spellCheck: false, "aria-invalid": name.trim() !== "" && !isSecretName(name.trim()), onChange: (event) => setName(event.target.value.toLowerCase()) })] }), _jsxs(ValueField, { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: words.value }), _jsx(SecretValueInput, { label: words.value, typed: secret.typed, chosen: secret.chosen, disabled: busy, onType: secret.type, onClear: secret.clear })] })] }), _jsx(SecretValueMore, { disabled: busy, onChoose: secret.choose, expiresOn: expiresOn, onExpiresOn: setExpiresOn }), _jsx(SecretFileProblemLine, { problem: secret.problem }), _jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: words.note }), _jsx("input", { className: "sc-input", value: note, maxLength: MAX_SECRET_OFFER_NOTE_LENGTH, autoComplete: "off", onChange: (event) => setNote(event.target.value) })] }), _jsx("p", { className: "sc-field-hint", children: words.intro(props.account, SECRET_OFFER_DAYS) }), _jsx("div", { className: "sc-form-actions", children: _jsx(Button, { type: "submit", variant: "primary", disabled: busy || !ready, children: words.offer }) })] }));
|
|
1566
|
+
}
|
|
1567
|
+
/**
|
|
1568
|
+
* The names of an agent account's secrets, and the way a supervisor seeds one or removes one:
|
|
1569
|
+
* the value typed unseen, or the text of a file chosen here, as the command takes one with
|
|
1570
|
+
* `--file` (ADR-0184). Never a value.
|
|
1571
|
+
*/
|
|
1388
1572
|
export function AgentSecretList(props) {
|
|
1389
1573
|
const words = useWords().agents.page.settings.secrets;
|
|
1390
1574
|
const [name, setName] = useState("");
|
|
1391
|
-
const
|
|
1575
|
+
const secret = useSecretValue();
|
|
1576
|
+
const [expiresOn, setExpiresOn] = useState(null);
|
|
1392
1577
|
const busy = props.busy === true;
|
|
1578
|
+
const ready = isSecretName(name.trim()) && secret.value.length > 0;
|
|
1393
1579
|
const submit = (event) => {
|
|
1394
1580
|
event.preventDefault();
|
|
1395
|
-
if (
|
|
1581
|
+
if (!ready || busy) {
|
|
1396
1582
|
return;
|
|
1397
1583
|
}
|
|
1398
|
-
|
|
1584
|
+
if (expiresOn === null || expiresOn === "") {
|
|
1585
|
+
props.onSeed(name.trim(), secret.value);
|
|
1586
|
+
}
|
|
1587
|
+
else {
|
|
1588
|
+
props.onSeed(name.trim(), secret.value, expiresOn);
|
|
1589
|
+
}
|
|
1399
1590
|
setName("");
|
|
1400
|
-
|
|
1591
|
+
secret.clear();
|
|
1592
|
+
setExpiresOn(null);
|
|
1401
1593
|
};
|
|
1402
|
-
return (_jsxs("div", { children: [props.secrets.length === 0 ? (_jsx("p", { className: "sc-field-hint", children: words.empty })) : (_jsx("ul", { className: "sc-divided sc-agent-secret-list", "aria-label": words.title, children: props.secrets.map((secret) => (_jsxs("li", { className: "sc-small sc-agent-secret", children: [_jsx("code", { children: secret.name }), _jsxs("span", { className: "sc-muted", children: [_jsx(Time, { iso: secret.setAt, precision: "day" }), secret.seeded && ` · ${words.seeded}`, secret.expiresOn !== null && ` · ${words.expires(secret.expiresOn)}`] }), _jsx(Button, { variant: "ghost", size: "sm", disabled: busy, onClick: () => props.onRemove(secret.name), children: words.remove })] }, secret.name))) })), _jsxs("form", { className: "sc-agent-secret-form", "aria-label": words.seedAria, onSubmit: submit, children: [_jsx("input", { className: "sc-input", "aria-label": words.name, placeholder: words.namePlaceholder, value: name, autoComplete: "off", onChange: (event) => setName(event.target.value) }), _jsx(
|
|
1594
|
+
return (_jsxs("div", { children: [props.secrets.length === 0 ? (_jsx("p", { className: "sc-field-hint", children: words.empty })) : (_jsx("ul", { className: "sc-divided sc-agent-secret-list", "aria-label": words.title, children: props.secrets.map((secret) => (_jsxs("li", { className: "sc-small sc-agent-secret", children: [_jsx("code", { children: secret.name }), _jsxs("span", { className: "sc-muted", children: [_jsx(Time, { iso: secret.setAt, precision: "day" }), secret.seeded && ` · ${words.seeded}`, secret.expiresOn !== null && ` · ${words.expires(secret.expiresOn)}`] }), _jsx(Button, { variant: "ghost", size: "sm", disabled: busy, onClick: () => props.onRemove(secret.name), children: words.remove })] }, secret.name))) })), _jsxs("form", { className: "sc-agent-secret-form", "aria-label": words.seedAria, onSubmit: submit, children: [_jsx("input", { className: "sc-input", "aria-label": words.name, placeholder: words.namePlaceholder, value: name, maxLength: MAX_AGENT_SECRET_NAME_LENGTH, autoComplete: "off", spellCheck: false, "aria-invalid": name.trim() !== "" && !isSecretName(name.trim()), onChange: (event) => setName(event.target.value.toLowerCase()) }), _jsx(SecretValueInput, { label: words.value, placeholder: words.value, typed: secret.typed, chosen: secret.chosen, disabled: busy, onType: secret.type, onClear: secret.clear }), _jsx(Button, { type: "submit", disabled: busy || !ready, children: words.seed }), _jsx(SecretValueMore, { disabled: busy, onChoose: secret.choose, expiresOn: expiresOn, onExpiresOn: setExpiresOn })] }), _jsx(SecretFileProblemLine, { problem: secret.problem }), _jsx("p", { className: "sc-field-hint", children: words.intro })] }));
|
|
1403
1595
|
}
|
|
1404
1596
|
//# sourceMappingURL=agent-page.js.map
|