@netlify/agent-runner-cli 1.199.0 → 1.200.0-resume-setup-request.0
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 +221 -211
- package/dist/bin.js +290 -280
- package/dist/connections-mcp-server.js +12 -12
- package/dist/index.d.ts +54 -0
- package/dist/index.js +227 -217
- package/dist/interactions-mcp-server.js +33 -33
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
1
3
|
declare const RESUME_ACTIONS: readonly ["continue", "wrap_up"];
|
|
2
4
|
type ResumeAction = (typeof RESUME_ACTIONS)[number];
|
|
3
5
|
|
|
6
|
+
declare const ENV_VAR_MODES: readonly ["exist", "change"];
|
|
7
|
+
declare const setupItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
kind: z.ZodLiteral<"env_var">;
|
|
9
|
+
reason: z.ZodString;
|
|
10
|
+
key: z.ZodString;
|
|
11
|
+
secret: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
exist: "exist";
|
|
14
|
+
change: "change";
|
|
15
|
+
}>>;
|
|
16
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
17
|
+
name: z.ZodEnum<{
|
|
18
|
+
production: "production";
|
|
19
|
+
"deploy-preview": "deploy-preview";
|
|
20
|
+
"branch-deploy": "branch-deploy";
|
|
21
|
+
dev: "dev";
|
|
22
|
+
}>;
|
|
23
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>], "kind">;
|
|
26
|
+
type SetupItem = z.infer<typeof setupItemSchema>;
|
|
27
|
+
type EnvVarItem = Extract<SetupItem, {
|
|
28
|
+
kind: 'env_var';
|
|
29
|
+
}>;
|
|
30
|
+
interface SetupRequestRecordTarget {
|
|
31
|
+
name: string;
|
|
32
|
+
state: 'missing' | 'satisfied';
|
|
33
|
+
required: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface SetupRequestRecordItemBase {
|
|
36
|
+
kind: string;
|
|
37
|
+
reason: string;
|
|
38
|
+
targets: SetupRequestRecordTarget[];
|
|
39
|
+
}
|
|
40
|
+
interface EnvVarRecordItem extends SetupRequestRecordItemBase {
|
|
41
|
+
kind: EnvVarItem['kind'];
|
|
42
|
+
key: string;
|
|
43
|
+
secret?: boolean;
|
|
44
|
+
mode?: (typeof ENV_VAR_MODES)[number];
|
|
45
|
+
}
|
|
46
|
+
type SetupRequestRecordItem = EnvVarRecordItem | SetupRequestRecordItemBase;
|
|
47
|
+
|
|
4
48
|
declare const ACCOUNT_TYPE_OTHER = "other";
|
|
5
49
|
declare const ACCOUNT_TYPE_PERSONAL = "personal";
|
|
6
50
|
declare const ACCOUNT_TYPE_PRO = "pro";
|
|
@@ -24,12 +68,21 @@ interface AnsweredInteraction {
|
|
|
24
68
|
responses: Array<string | string[] | null>;
|
|
25
69
|
instruction?: string;
|
|
26
70
|
authorization?: ResolvedAuthorization;
|
|
71
|
+
setupRequest?: AnsweredSetupRequest;
|
|
72
|
+
setupOutcome?: ResolvedSetupRequest;
|
|
27
73
|
}
|
|
28
74
|
interface ResolvedAuthorization {
|
|
29
75
|
service?: string;
|
|
30
76
|
/** False when the user skipped or dismissed it rather than completing it. */
|
|
31
77
|
granted: boolean;
|
|
32
78
|
}
|
|
79
|
+
interface AnsweredSetupRequest {
|
|
80
|
+
completed: boolean;
|
|
81
|
+
}
|
|
82
|
+
interface ResolvedSetupRequest {
|
|
83
|
+
satisfied: boolean;
|
|
84
|
+
items: SetupRequestRecordItem[];
|
|
85
|
+
}
|
|
33
86
|
type RunnerMode = (typeof SUPPORTED_MODES)[number];
|
|
34
87
|
type RunnerEffort = (typeof SUPPORTED_EFFORTS)[number];
|
|
35
88
|
type RunnerConfig = {
|
|
@@ -89,6 +142,7 @@ type ModelVersionOverrides = {
|
|
|
89
142
|
claude?: AgentVersionOverride;
|
|
90
143
|
gemini?: AgentVersionOverride;
|
|
91
144
|
opencode?: AgentVersionOverride;
|
|
145
|
+
antigravity?: AgentVersionOverride;
|
|
92
146
|
};
|
|
93
147
|
type AgentVersionOverride = Record<AccountType, string>;
|
|
94
148
|
/**
|