@netlify/agent-runner-cli 1.142.1-test.1 → 1.142.1-test.10
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/dist/bin-local.js +193 -179
- package/dist/bin.js +232 -218
- package/dist/index.d.ts +18 -0
- package/dist/index.js +217 -203
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,21 @@ interface IdleTimeoutOptions {
|
|
|
13
13
|
/** Run a command, with arguments being an array */
|
|
14
14
|
declare const run: (file: string, args?: string[] | object, options?: Options & IdleTimeoutOptions) => ResultPromise;
|
|
15
15
|
|
|
16
|
+
interface AgentQuestionOption {
|
|
17
|
+
label: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
}
|
|
20
|
+
interface AgentQuestion {
|
|
21
|
+
question: string;
|
|
22
|
+
header?: string;
|
|
23
|
+
options?: AgentQuestionOption[];
|
|
24
|
+
multiSelect?: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface AnsweredInteraction {
|
|
27
|
+
refId: string;
|
|
28
|
+
questions: AgentQuestion[];
|
|
29
|
+
responses: Array<string | string[] | null>;
|
|
30
|
+
}
|
|
16
31
|
type RunnerMode = (typeof SUPPORTED_MODES)[number];
|
|
17
32
|
type RunnerConfig = {
|
|
18
33
|
id: string;
|
|
@@ -38,8 +53,10 @@ type RunnerConfig = {
|
|
|
38
53
|
nativeSessionId: string;
|
|
39
54
|
agent: string;
|
|
40
55
|
};
|
|
56
|
+
answeredInteraction?: AnsweredInteraction;
|
|
41
57
|
assetMap?: Record<string, string[]>;
|
|
42
58
|
cache?: NativeSessionCacheConfig;
|
|
59
|
+
pendingUndeployedChanges?: boolean;
|
|
43
60
|
} & ({
|
|
44
61
|
mode: Exclude<RunnerMode, 'redeploy'>;
|
|
45
62
|
prompt: string;
|
|
@@ -64,6 +81,7 @@ type ModelVersionOverrides = {
|
|
|
64
81
|
codex?: AgentVersionOverride;
|
|
65
82
|
claude?: AgentVersionOverride;
|
|
66
83
|
gemini?: AgentVersionOverride;
|
|
84
|
+
opencode?: AgentVersionOverride;
|
|
67
85
|
};
|
|
68
86
|
type AgentVersionOverride = Record<AccountType, string>;
|
|
69
87
|
/**
|