@slopus/happy-agent-client 0.0.80 → 0.0.81
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.
|
@@ -5,6 +5,24 @@ export interface QuestionOption {
|
|
|
5
5
|
label: string;
|
|
6
6
|
description: string;
|
|
7
7
|
}
|
|
8
|
+
/** One environment variable a secret request asks for. */
|
|
9
|
+
export interface QuestionSecretRequestVariable {
|
|
10
|
+
name: string;
|
|
11
|
+
/** What the value is or where to find it; `null` when the agent gave no hint. */
|
|
12
|
+
description: string | null;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The prefilled secret an agent asks for. The client creates the secret through
|
|
16
|
+
* `POST /v0/secrets` (or lets the person pick an existing one) and answers with
|
|
17
|
+
* the secret ID only, never a value.
|
|
18
|
+
*/
|
|
19
|
+
export interface QuestionSecretRequest {
|
|
20
|
+
/** A suggested secret name, or `null` when the agent has no preference. */
|
|
21
|
+
suggestedId: string | null;
|
|
22
|
+
description: string;
|
|
23
|
+
/** The 1–64 variables the agent needs, in the agent's order. */
|
|
24
|
+
environmentVariables: QuestionSecretRequestVariable[];
|
|
25
|
+
}
|
|
8
26
|
/** One prompt inside a question. */
|
|
9
27
|
export interface QuestionPrompt {
|
|
10
28
|
id: Cuid2;
|
|
@@ -14,6 +32,11 @@ export interface QuestionPrompt {
|
|
|
14
32
|
multiSelect: boolean;
|
|
15
33
|
/** Possibly empty, and then the answer is free text. */
|
|
16
34
|
options: QuestionOption[];
|
|
35
|
+
/**
|
|
36
|
+
* Present only on a secret request, which is then the question's only prompt.
|
|
37
|
+
* Absent from daemons that predate secret requests.
|
|
38
|
+
*/
|
|
39
|
+
secretRequest?: QuestionSecretRequest;
|
|
17
40
|
}
|
|
18
41
|
/** The question object. An agent has at most one open at a time. */
|
|
19
42
|
export interface Question {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../sources/protocol/questions.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAE/D,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAErE,wCAAwC;AACxC,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,oCAAoC;AACpC,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,KAAK,CAAC;IACV,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,wDAAwD;IACxD,OAAO,EAAE,cAAc,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../sources/protocol/questions.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAE/D,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAErE,wCAAwC;AACxC,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,0DAA0D;AAC1D,MAAM,WAAW,6BAA6B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC,2EAA2E;IAC3E,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;CACzD;AAED,oCAAoC;AACpC,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,KAAK,CAAC;IACV,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,wDAAwD;IACxD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