@netlify/agent-runner-cli 1.30.0 → 1.30.1-broken.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/README.md +6 -5
- package/dist/bin-local.d.ts +1 -0
- package/dist/bin-local.js +301 -0
- package/dist/bin.js +225 -78
- package/dist/index.d.ts +64 -12
- package/dist/index.js +211 -77
- package/dist/scripts/scaffold.d.ts +2 -0
- package/dist/scripts/scaffold.js +13 -0
- package/dist/skills/frontend-design/SKILL.md +86 -0
- package/dist/skills/general-database/SKILL.md +45 -0
- package/dist/skills/netlify-ai-gateway/SKILL.md +411 -0
- package/dist/skills/netlify-blobs/SKILL.md +421 -0
- package/dist/skills/netlify-database/SKILL.md +423 -0
- package/dist/skills/netlify-edge-functions/SKILL.md +478 -0
- package/dist/skills/netlify-forms/SKILL.md +358 -0
- package/dist/skills/netlify-forms/scripts/enable.cjs +12 -0
- package/dist/skills/netlify-functions/SKILL.md +478 -0
- package/dist/skills/netlify-identity/SKILL.md +632 -0
- package/dist/skills/netlify-identity/scripts/enable.cjs +12 -0
- package/dist/skills/netlify-image-cdn/SKILL.md +244 -0
- package/package.json +40 -28
- package/scripts/scenarios/install-skills.mjs +57 -0
- package/scripts/scenarios/netlify-deploy.mjs +311 -0
- package/scripts/scenarios/prewarm-template-mirror.mjs +69 -0
- package/patches/@google+gemini-cli+0.1.17.patch +0 -87
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,69 @@
|
|
|
1
|
-
import { Options,
|
|
1
|
+
import { Options, ResultPromise } from 'execa';
|
|
2
2
|
|
|
3
|
+
declare const ACCOUNT_TYPE_OTHER = "other";
|
|
4
|
+
declare const ACCOUNT_TYPE_PERSONAL = "personal";
|
|
5
|
+
declare const ACCOUNT_TYPE_PRO = "pro";
|
|
6
|
+
declare const ACCOUNT_TYPE_ENTERPRISE = "enterprise";
|
|
7
|
+
declare const ACCOUNT_TYPE_FREE = "free";
|
|
8
|
+
declare const SUPPORTED_MODES: string[];
|
|
9
|
+
|
|
10
|
+
interface IdleTimeoutOptions {
|
|
11
|
+
idleTimeout?: number;
|
|
12
|
+
}
|
|
3
13
|
/** Run a command, with arguments being an array */
|
|
4
|
-
declare const run: (file: string, args?: string[] | object, options?: Options) =>
|
|
14
|
+
declare const run: (file: string, args?: string[] | object, options?: Options & IdleTimeoutOptions) => ResultPromise;
|
|
5
15
|
|
|
6
|
-
|
|
16
|
+
type RunnerMode = (typeof SUPPORTED_MODES)[number];
|
|
17
|
+
type RunnerConfig = {
|
|
7
18
|
id: string;
|
|
8
19
|
sessionId: string;
|
|
9
|
-
|
|
10
|
-
accountType: string;
|
|
20
|
+
accountType: AccountType;
|
|
11
21
|
model?: string;
|
|
12
22
|
runner: string;
|
|
13
23
|
useGateway: boolean;
|
|
14
|
-
validateAgent: boolean;
|
|
15
24
|
hasRepo: boolean;
|
|
25
|
+
fastInit: boolean;
|
|
26
|
+
sessionHistoryContext: HistoryContextEntry[];
|
|
27
|
+
siteContext: SiteContextEntry[];
|
|
28
|
+
modelVersionOverrides: ModelVersionOverrides;
|
|
16
29
|
sha?: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
30
|
+
runSha: string;
|
|
31
|
+
enforcedAICreditsRemaining?: number;
|
|
32
|
+
siteId?: string;
|
|
33
|
+
accountId: string;
|
|
34
|
+
site?: Site;
|
|
35
|
+
deployAlias?: string;
|
|
36
|
+
dbConnectionString?: string;
|
|
37
|
+
previousSession?: {
|
|
38
|
+
nativeSessionId: string;
|
|
39
|
+
agent: string;
|
|
40
|
+
};
|
|
41
|
+
} & ({
|
|
42
|
+
mode: Exclude<RunnerMode, 'redeploy'>;
|
|
43
|
+
prompt: string;
|
|
44
|
+
} | {
|
|
45
|
+
mode: 'redeploy';
|
|
46
|
+
});
|
|
47
|
+
type Site = {
|
|
48
|
+
id: string;
|
|
49
|
+
published_deploy?: {
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type AccountType = typeof ACCOUNT_TYPE_OTHER | typeof ACCOUNT_TYPE_PERSONAL | typeof ACCOUNT_TYPE_PRO | typeof ACCOUNT_TYPE_ENTERPRISE | typeof ACCOUNT_TYPE_FREE;
|
|
54
|
+
type HistoryContextEntry = {
|
|
55
|
+
request: string;
|
|
56
|
+
response: string;
|
|
57
|
+
};
|
|
58
|
+
type SiteContextEntry = {
|
|
59
|
+
site_context: string;
|
|
60
|
+
};
|
|
61
|
+
type ModelVersionOverrides = {
|
|
62
|
+
codex?: AgentVersionOverride;
|
|
63
|
+
claude?: AgentVersionOverride;
|
|
64
|
+
gemini?: AgentVersionOverride;
|
|
65
|
+
};
|
|
66
|
+
type AgentVersionOverride = Record<AccountType, string>;
|
|
20
67
|
|
|
21
68
|
interface Context {
|
|
22
69
|
constants: {
|
|
@@ -24,6 +71,7 @@ interface Context {
|
|
|
24
71
|
NETLIFY_API_HOST: string;
|
|
25
72
|
NETLIFY_API_TOKEN?: string;
|
|
26
73
|
SITE_ID?: string;
|
|
74
|
+
URL?: string;
|
|
27
75
|
};
|
|
28
76
|
utils: {
|
|
29
77
|
run: typeof run;
|
|
@@ -34,10 +82,14 @@ interface PipelineOptions {
|
|
|
34
82
|
apiToken?: string;
|
|
35
83
|
cliPath?: string;
|
|
36
84
|
cwd?: string;
|
|
37
|
-
errorLogsPath?: string;
|
|
38
85
|
filter?: string;
|
|
39
|
-
|
|
86
|
+
isHotFollowUp?: boolean;
|
|
87
|
+
enqueuedAt?: number;
|
|
88
|
+
tracing?: {
|
|
89
|
+
exporterUrl?: string;
|
|
90
|
+
traceparent?: string;
|
|
91
|
+
};
|
|
40
92
|
}
|
|
41
|
-
declare const runPipeline: ({ config, apiToken, cliPath, cwd,
|
|
93
|
+
declare const runPipeline: ({ config, apiToken, cliPath, cwd, filter, isHotFollowUp, enqueuedAt, tracing, }: PipelineOptions) => Promise<void>;
|
|
42
94
|
|
|
43
95
|
export { type Context, type PipelineOptions, runPipeline };
|