trigger.dev 4.0.0-v4-beta.28 → 4.0.1
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 +26 -30
- package/dist/esm/apiClient.d.ts +56 -1
- package/dist/esm/apiClient.js +56 -1
- package/dist/esm/apiClient.js.map +1 -1
- package/dist/esm/cli/common.js +1 -1
- package/dist/esm/cli/common.js.map +1 -1
- package/dist/esm/cli/index.js +13 -9
- package/dist/esm/cli/index.js.map +1 -1
- package/dist/esm/commands/deploy.js +1 -1
- package/dist/esm/commands/deploy.js.map +1 -1
- package/dist/esm/commands/dev.d.ts +17 -5
- package/dist/esm/commands/dev.js +47 -0
- package/dist/esm/commands/dev.js.map +1 -1
- package/dist/esm/commands/init.d.ts +8 -0
- package/dist/esm/commands/init.js +127 -63
- package/dist/esm/commands/init.js.map +1 -1
- package/dist/esm/commands/install-mcp.d.ts +50 -0
- package/dist/esm/commands/install-mcp.js +497 -0
- package/dist/esm/commands/install-mcp.js.map +1 -0
- package/dist/esm/commands/install-rules.d.ts +11 -0
- package/dist/esm/commands/install-rules.js +380 -0
- package/dist/esm/commands/install-rules.js.map +1 -0
- package/dist/esm/commands/login.d.ts +5 -0
- package/dist/esm/commands/login.js +1 -1
- package/dist/esm/commands/login.js.map +1 -1
- package/dist/esm/commands/mcp.d.ts +38 -0
- package/dist/esm/commands/mcp.js +82 -0
- package/dist/esm/commands/mcp.js.map +1 -0
- package/dist/esm/commands/update.d.ts +1 -0
- package/dist/esm/commands/update.js +6 -6
- package/dist/esm/commands/update.js.map +1 -1
- package/dist/esm/dev/devOutput.js +3 -3
- package/dist/esm/dev/devOutput.js.map +1 -1
- package/dist/esm/entryPoints/managed/env.d.ts +5 -5
- package/dist/esm/mcp/auth.d.ts +12 -0
- package/dist/esm/mcp/auth.js +146 -0
- package/dist/esm/mcp/auth.js.map +1 -0
- package/dist/esm/mcp/capabilities.d.ts +4 -0
- package/dist/esm/mcp/capabilities.js +22 -0
- package/dist/esm/mcp/capabilities.js.map +1 -0
- package/dist/esm/mcp/config.d.ts +77 -0
- package/dist/esm/mcp/config.js +82 -0
- package/dist/esm/mcp/config.js.map +1 -0
- package/dist/esm/mcp/context.d.ts +45 -0
- package/dist/esm/mcp/context.js +129 -0
- package/dist/esm/mcp/context.js.map +1 -0
- package/dist/esm/mcp/formatters.d.ts +5 -0
- package/dist/esm/mcp/formatters.js +310 -0
- package/dist/esm/mcp/formatters.js.map +1 -0
- package/dist/esm/mcp/logger.d.ts +11 -0
- package/dist/esm/mcp/logger.js +34 -0
- package/dist/esm/mcp/logger.js.map +1 -0
- package/dist/esm/mcp/mintlifyClient.d.ts +1 -0
- package/dist/esm/mcp/mintlifyClient.js +65 -0
- package/dist/esm/mcp/mintlifyClient.js.map +1 -0
- package/dist/esm/mcp/schemas.d.ts +324 -0
- package/dist/esm/mcp/schemas.js +144 -0
- package/dist/esm/mcp/schemas.js.map +1 -0
- package/dist/esm/mcp/tools/deploys.d.ts +174 -0
- package/dist/esm/mcp/tools/deploys.js +161 -0
- package/dist/esm/mcp/tools/deploys.js.map +1 -0
- package/dist/esm/mcp/tools/docs.d.ts +77 -0
- package/dist/esm/mcp/tools/docs.js +18 -0
- package/dist/esm/mcp/tools/docs.js.map +1 -0
- package/dist/esm/mcp/tools/orgs.d.ts +172 -0
- package/dist/esm/mcp/tools/orgs.js +172 -0
- package/dist/esm/mcp/tools/orgs.js.map +1 -0
- package/dist/esm/mcp/tools/previewBranches.d.ts +78 -0
- package/dist/esm/mcp/tools/previewBranches.js +28 -0
- package/dist/esm/mcp/tools/previewBranches.js.map +1 -0
- package/dist/esm/mcp/tools/runs.d.ts +254 -0
- package/dist/esm/mcp/tools/runs.js +119 -0
- package/dist/esm/mcp/tools/runs.js.map +1 -0
- package/dist/esm/mcp/tools/tasks.d.ts +200 -0
- package/dist/esm/mcp/tools/tasks.js +117 -0
- package/dist/esm/mcp/tools/tasks.js.map +1 -0
- package/dist/esm/mcp/tools.d.ts +2 -0
- package/dist/esm/mcp/tools.js +39 -0
- package/dist/esm/mcp/tools.js.map +1 -0
- package/dist/esm/mcp/types.d.ts +6 -0
- package/dist/esm/mcp/types.js +2 -0
- package/dist/esm/mcp/types.js.map +1 -0
- package/dist/esm/mcp/utils.d.ts +89 -0
- package/dist/esm/mcp/utils.js +95 -0
- package/dist/esm/mcp/utils.js.map +1 -0
- package/dist/esm/rules/install.d.ts +1 -0
- package/dist/esm/rules/install.js +2 -0
- package/dist/esm/rules/install.js.map +1 -0
- package/dist/esm/rules/manifest.d.ts +145 -0
- package/dist/esm/rules/manifest.js +110 -0
- package/dist/esm/rules/manifest.js.map +1 -0
- package/dist/esm/rules/types.d.ts +3 -0
- package/dist/esm/rules/types.js +3 -0
- package/dist/esm/rules/types.js.map +1 -0
- package/dist/esm/utilities/configFiles.d.ts +29 -0
- package/dist/esm/utilities/configFiles.js +51 -0
- package/dist/esm/utilities/configFiles.js.map +1 -1
- package/dist/esm/utilities/fileSystem.d.ts +6 -0
- package/dist/esm/utilities/fileSystem.js +41 -3
- package/dist/esm/utilities/fileSystem.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +11 -7
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ProjectRefSchema: z.ZodOptional<z.ZodString>;
|
|
3
|
+
export declare const CreateProjectInOrgInput: z.ZodObject<{
|
|
4
|
+
orgParam: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
name: string;
|
|
8
|
+
orgParam: string;
|
|
9
|
+
}, {
|
|
10
|
+
name: string;
|
|
11
|
+
orgParam: string;
|
|
12
|
+
}>;
|
|
13
|
+
export type CreateProjectInOrgInput = z.output<typeof CreateProjectInOrgInput>;
|
|
14
|
+
export declare const InitializeProjectInput: z.ZodObject<{
|
|
15
|
+
orgParam: z.ZodString;
|
|
16
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
17
|
+
projectName: z.ZodString;
|
|
18
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
orgParam: string;
|
|
21
|
+
projectName: string;
|
|
22
|
+
projectRef?: string | undefined;
|
|
23
|
+
cwd?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
orgParam: string;
|
|
26
|
+
projectName: string;
|
|
27
|
+
projectRef?: string | undefined;
|
|
28
|
+
cwd?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type InitializeProjectInput = z.output<typeof InitializeProjectInput>;
|
|
31
|
+
export declare const CommonProjectsInput: z.ZodObject<{
|
|
32
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
33
|
+
configPath: z.ZodOptional<z.ZodString>;
|
|
34
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
35
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
environment: "preview" | "dev" | "staging" | "prod";
|
|
38
|
+
branch?: string | undefined;
|
|
39
|
+
configPath?: string | undefined;
|
|
40
|
+
projectRef?: string | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
environment?: "preview" | "dev" | "staging" | "prod" | undefined;
|
|
43
|
+
branch?: string | undefined;
|
|
44
|
+
configPath?: string | undefined;
|
|
45
|
+
projectRef?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export type CommonProjectsInput = z.output<typeof CommonProjectsInput>;
|
|
48
|
+
export declare const TriggerTaskInput: z.ZodObject<{
|
|
49
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
50
|
+
configPath: z.ZodOptional<z.ZodString>;
|
|
51
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
52
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
53
|
+
} & {
|
|
54
|
+
taskId: z.ZodString;
|
|
55
|
+
payload: z.ZodAny;
|
|
56
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
queue: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
name: string;
|
|
61
|
+
}, {
|
|
62
|
+
name: string;
|
|
63
|
+
}>>;
|
|
64
|
+
delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
65
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
66
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
67
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
70
|
+
ttl: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
ttl: string | number;
|
|
73
|
+
tags?: string[] | undefined;
|
|
74
|
+
idempotencyKey?: string | undefined;
|
|
75
|
+
maxAttempts?: number | undefined;
|
|
76
|
+
maxDuration?: number | undefined;
|
|
77
|
+
queue?: {
|
|
78
|
+
name: string;
|
|
79
|
+
} | undefined;
|
|
80
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
81
|
+
delay?: string | Date | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
tags?: string[] | undefined;
|
|
84
|
+
idempotencyKey?: string | undefined;
|
|
85
|
+
maxAttempts?: number | undefined;
|
|
86
|
+
maxDuration?: number | undefined;
|
|
87
|
+
queue?: {
|
|
88
|
+
name: string;
|
|
89
|
+
} | undefined;
|
|
90
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
91
|
+
delay?: string | Date | undefined;
|
|
92
|
+
ttl?: string | number | undefined;
|
|
93
|
+
}>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
environment: "preview" | "dev" | "staging" | "prod";
|
|
96
|
+
taskId: string;
|
|
97
|
+
payload?: any;
|
|
98
|
+
options?: {
|
|
99
|
+
ttl: string | number;
|
|
100
|
+
tags?: string[] | undefined;
|
|
101
|
+
idempotencyKey?: string | undefined;
|
|
102
|
+
maxAttempts?: number | undefined;
|
|
103
|
+
maxDuration?: number | undefined;
|
|
104
|
+
queue?: {
|
|
105
|
+
name: string;
|
|
106
|
+
} | undefined;
|
|
107
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
108
|
+
delay?: string | Date | undefined;
|
|
109
|
+
} | undefined;
|
|
110
|
+
branch?: string | undefined;
|
|
111
|
+
configPath?: string | undefined;
|
|
112
|
+
projectRef?: string | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
taskId: string;
|
|
115
|
+
payload?: any;
|
|
116
|
+
options?: {
|
|
117
|
+
tags?: string[] | undefined;
|
|
118
|
+
idempotencyKey?: string | undefined;
|
|
119
|
+
maxAttempts?: number | undefined;
|
|
120
|
+
maxDuration?: number | undefined;
|
|
121
|
+
queue?: {
|
|
122
|
+
name: string;
|
|
123
|
+
} | undefined;
|
|
124
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
125
|
+
delay?: string | Date | undefined;
|
|
126
|
+
ttl?: string | number | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
environment?: "preview" | "dev" | "staging" | "prod" | undefined;
|
|
129
|
+
branch?: string | undefined;
|
|
130
|
+
configPath?: string | undefined;
|
|
131
|
+
projectRef?: string | undefined;
|
|
132
|
+
}>;
|
|
133
|
+
export type TriggerTaskInput = z.output<typeof TriggerTaskInput>;
|
|
134
|
+
export declare const CommonRunsInput: z.ZodObject<{
|
|
135
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
136
|
+
configPath: z.ZodOptional<z.ZodString>;
|
|
137
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
138
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
139
|
+
} & {
|
|
140
|
+
runId: z.ZodString;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
environment: "preview" | "dev" | "staging" | "prod";
|
|
143
|
+
runId: string;
|
|
144
|
+
branch?: string | undefined;
|
|
145
|
+
configPath?: string | undefined;
|
|
146
|
+
projectRef?: string | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
runId: string;
|
|
149
|
+
environment?: "preview" | "dev" | "staging" | "prod" | undefined;
|
|
150
|
+
branch?: string | undefined;
|
|
151
|
+
configPath?: string | undefined;
|
|
152
|
+
projectRef?: string | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
export type CommonRunsInput = z.output<typeof CommonRunsInput>;
|
|
155
|
+
export declare const GetRunDetailsInput: z.ZodObject<{
|
|
156
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
157
|
+
configPath: z.ZodOptional<z.ZodString>;
|
|
158
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
159
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
160
|
+
} & {
|
|
161
|
+
runId: z.ZodString;
|
|
162
|
+
} & {
|
|
163
|
+
maxTraceLines: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
environment: "preview" | "dev" | "staging" | "prod";
|
|
166
|
+
runId: string;
|
|
167
|
+
branch?: string | undefined;
|
|
168
|
+
configPath?: string | undefined;
|
|
169
|
+
projectRef?: string | undefined;
|
|
170
|
+
maxTraceLines?: number | undefined;
|
|
171
|
+
}, {
|
|
172
|
+
runId: string;
|
|
173
|
+
environment?: "preview" | "dev" | "staging" | "prod" | undefined;
|
|
174
|
+
branch?: string | undefined;
|
|
175
|
+
configPath?: string | undefined;
|
|
176
|
+
projectRef?: string | undefined;
|
|
177
|
+
maxTraceLines?: number | undefined;
|
|
178
|
+
}>;
|
|
179
|
+
export type GetRunDetailsInput = z.output<typeof GetRunDetailsInput>;
|
|
180
|
+
export declare const ListRunsInput: z.ZodObject<{
|
|
181
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
182
|
+
configPath: z.ZodOptional<z.ZodString>;
|
|
183
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
184
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
185
|
+
} & {
|
|
186
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
187
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING_VERSION", "QUEUED", "DEQUEUED", "EXECUTING", "WAITING", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED", "TIMED_OUT"]>>;
|
|
189
|
+
taskIdentifier: z.ZodOptional<z.ZodString>;
|
|
190
|
+
version: z.ZodOptional<z.ZodString>;
|
|
191
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
192
|
+
from: z.ZodOptional<z.ZodString>;
|
|
193
|
+
to: z.ZodOptional<z.ZodString>;
|
|
194
|
+
period: z.ZodOptional<z.ZodString>;
|
|
195
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
environment: "preview" | "dev" | "staging" | "prod";
|
|
198
|
+
status?: "PENDING_VERSION" | "QUEUED" | "DEQUEUED" | "EXECUTING" | "WAITING" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT" | undefined;
|
|
199
|
+
version?: string | undefined;
|
|
200
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
201
|
+
taskIdentifier?: string | undefined;
|
|
202
|
+
limit?: number | undefined;
|
|
203
|
+
branch?: string | undefined;
|
|
204
|
+
cursor?: string | undefined;
|
|
205
|
+
from?: string | undefined;
|
|
206
|
+
to?: string | undefined;
|
|
207
|
+
period?: string | undefined;
|
|
208
|
+
configPath?: string | undefined;
|
|
209
|
+
projectRef?: string | undefined;
|
|
210
|
+
tag?: string | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
status?: "PENDING_VERSION" | "QUEUED" | "DEQUEUED" | "EXECUTING" | "WAITING" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT" | undefined;
|
|
213
|
+
version?: string | undefined;
|
|
214
|
+
environment?: "preview" | "dev" | "staging" | "prod" | undefined;
|
|
215
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
216
|
+
taskIdentifier?: string | undefined;
|
|
217
|
+
limit?: number | undefined;
|
|
218
|
+
branch?: string | undefined;
|
|
219
|
+
cursor?: string | undefined;
|
|
220
|
+
from?: string | undefined;
|
|
221
|
+
to?: string | undefined;
|
|
222
|
+
period?: string | undefined;
|
|
223
|
+
configPath?: string | undefined;
|
|
224
|
+
projectRef?: string | undefined;
|
|
225
|
+
tag?: string | undefined;
|
|
226
|
+
}>;
|
|
227
|
+
export type ListRunsInput = z.output<typeof ListRunsInput>;
|
|
228
|
+
export declare const CommonDeployInput: z.ZodObject<Omit<{
|
|
229
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
230
|
+
configPath: z.ZodOptional<z.ZodString>;
|
|
231
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
232
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
233
|
+
}, "environment"> & {
|
|
234
|
+
environment: z.ZodDefault<z.ZodEnum<["staging", "prod", "preview"]>>;
|
|
235
|
+
}, "strip", z.ZodTypeAny, {
|
|
236
|
+
environment: "preview" | "staging" | "prod";
|
|
237
|
+
branch?: string | undefined;
|
|
238
|
+
configPath?: string | undefined;
|
|
239
|
+
projectRef?: string | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
environment?: "preview" | "staging" | "prod" | undefined;
|
|
242
|
+
branch?: string | undefined;
|
|
243
|
+
configPath?: string | undefined;
|
|
244
|
+
projectRef?: string | undefined;
|
|
245
|
+
}>;
|
|
246
|
+
export type CommonDeployInput = z.output<typeof CommonDeployInput>;
|
|
247
|
+
export declare const DeployInput: z.ZodObject<Omit<{
|
|
248
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
249
|
+
configPath: z.ZodOptional<z.ZodString>;
|
|
250
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
251
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
252
|
+
}, "environment"> & {
|
|
253
|
+
environment: z.ZodDefault<z.ZodEnum<["staging", "prod", "preview"]>>;
|
|
254
|
+
} & {
|
|
255
|
+
skipPromotion: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
+
skipSyncEnvVars: z.ZodOptional<z.ZodBoolean>;
|
|
257
|
+
skipUpdateCheck: z.ZodOptional<z.ZodBoolean>;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
environment: "preview" | "staging" | "prod";
|
|
260
|
+
skipPromotion?: boolean | undefined;
|
|
261
|
+
branch?: string | undefined;
|
|
262
|
+
configPath?: string | undefined;
|
|
263
|
+
projectRef?: string | undefined;
|
|
264
|
+
skipUpdateCheck?: boolean | undefined;
|
|
265
|
+
skipSyncEnvVars?: boolean | undefined;
|
|
266
|
+
}, {
|
|
267
|
+
environment?: "preview" | "staging" | "prod" | undefined;
|
|
268
|
+
skipPromotion?: boolean | undefined;
|
|
269
|
+
branch?: string | undefined;
|
|
270
|
+
configPath?: string | undefined;
|
|
271
|
+
projectRef?: string | undefined;
|
|
272
|
+
skipUpdateCheck?: boolean | undefined;
|
|
273
|
+
skipSyncEnvVars?: boolean | undefined;
|
|
274
|
+
}>;
|
|
275
|
+
export type DeployInput = z.output<typeof DeployInput>;
|
|
276
|
+
export declare const ListDeploysInput: z.ZodObject<Omit<{
|
|
277
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
278
|
+
configPath: z.ZodOptional<z.ZodString>;
|
|
279
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
280
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
281
|
+
}, "environment"> & {
|
|
282
|
+
environment: z.ZodDefault<z.ZodEnum<["staging", "prod", "preview"]>>;
|
|
283
|
+
} & {
|
|
284
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
285
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
from: z.ZodOptional<z.ZodString>;
|
|
287
|
+
to: z.ZodOptional<z.ZodString>;
|
|
288
|
+
period: z.ZodOptional<z.ZodString>;
|
|
289
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
environment: "preview" | "staging" | "prod";
|
|
292
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
293
|
+
limit?: number | undefined;
|
|
294
|
+
branch?: string | undefined;
|
|
295
|
+
cursor?: string | undefined;
|
|
296
|
+
from?: string | undefined;
|
|
297
|
+
to?: string | undefined;
|
|
298
|
+
period?: string | undefined;
|
|
299
|
+
configPath?: string | undefined;
|
|
300
|
+
projectRef?: string | undefined;
|
|
301
|
+
}, {
|
|
302
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
303
|
+
environment?: "preview" | "staging" | "prod" | undefined;
|
|
304
|
+
limit?: number | undefined;
|
|
305
|
+
branch?: string | undefined;
|
|
306
|
+
cursor?: string | undefined;
|
|
307
|
+
from?: string | undefined;
|
|
308
|
+
to?: string | undefined;
|
|
309
|
+
period?: string | undefined;
|
|
310
|
+
configPath?: string | undefined;
|
|
311
|
+
projectRef?: string | undefined;
|
|
312
|
+
}>;
|
|
313
|
+
export type ListDeploysInput = z.output<typeof ListDeploysInput>;
|
|
314
|
+
export declare const ListPreviewBranchesInput: z.ZodObject<{
|
|
315
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
316
|
+
configPath: z.ZodOptional<z.ZodString>;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
configPath?: string | undefined;
|
|
319
|
+
projectRef?: string | undefined;
|
|
320
|
+
}, {
|
|
321
|
+
configPath?: string | undefined;
|
|
322
|
+
projectRef?: string | undefined;
|
|
323
|
+
}>;
|
|
324
|
+
export type ListPreviewBranchesInput = z.output<typeof ListPreviewBranchesInput>;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { ApiDeploymentListParams, MachinePresetName, RunStatus, } from "@trigger.dev/core/v3/schemas";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const ProjectRefSchema = z
|
|
4
|
+
.string()
|
|
5
|
+
.describe("The trigger.dev project ref, starts with proj_. We will attempt to automatically detect the project ref if running inside a directory that includes a trigger.config.ts file, or if you pass the --project-ref option to the MCP server.")
|
|
6
|
+
.optional();
|
|
7
|
+
export const CreateProjectInOrgInput = z.object({
|
|
8
|
+
orgParam: z
|
|
9
|
+
.string()
|
|
10
|
+
.describe("The organization to create the project in, can either be the organization slug or the ID. Use the list_orgs tool to get a list of organizations and ask the user to select one."),
|
|
11
|
+
name: z.string().describe("The name of the project to create."),
|
|
12
|
+
});
|
|
13
|
+
export const InitializeProjectInput = z.object({
|
|
14
|
+
orgParam: z
|
|
15
|
+
.string()
|
|
16
|
+
.describe("The organization to create the project in, can either be the organization slug or the ID. Use the list_orgs tool to get a list of organizations and ask the user to select one."),
|
|
17
|
+
projectRef: ProjectRefSchema,
|
|
18
|
+
projectName: z
|
|
19
|
+
.string()
|
|
20
|
+
.describe("The name of the project to create. If projectRef is not provided, we will use this name to create a new project in the organization you select."),
|
|
21
|
+
cwd: z.string().describe("The current working directory of the project").optional(),
|
|
22
|
+
});
|
|
23
|
+
export const CommonProjectsInput = z.object({
|
|
24
|
+
projectRef: ProjectRefSchema,
|
|
25
|
+
configPath: z
|
|
26
|
+
.string()
|
|
27
|
+
.describe("The path to the trigger.config.ts file. Only used when the trigger.config.ts file is not at the root dir (like in a monorepo setup). If not provided, we will try to find the config file in the current working directory")
|
|
28
|
+
.optional(),
|
|
29
|
+
environment: z
|
|
30
|
+
.enum(["dev", "staging", "prod", "preview"])
|
|
31
|
+
.describe("The environment to get tasks for")
|
|
32
|
+
.default("dev"),
|
|
33
|
+
branch: z
|
|
34
|
+
.string()
|
|
35
|
+
.describe("The branch to get tasks for, only used for preview environments")
|
|
36
|
+
.optional(),
|
|
37
|
+
});
|
|
38
|
+
export const TriggerTaskInput = CommonProjectsInput.extend({
|
|
39
|
+
taskId: z
|
|
40
|
+
.string()
|
|
41
|
+
.describe("The ID/slug of the task to trigger. Use the get_tasks tool to get a list of tasks and ask the user to select one if it's not clear which one to use."),
|
|
42
|
+
payload: z
|
|
43
|
+
.any()
|
|
44
|
+
.describe("The payload to trigger the task with. Should match the task's payload schema. Not a JSON string, but the actual payload object"),
|
|
45
|
+
options: z
|
|
46
|
+
.object({
|
|
47
|
+
queue: z
|
|
48
|
+
.object({
|
|
49
|
+
name: z
|
|
50
|
+
.string()
|
|
51
|
+
.describe("The name of the queue to trigger the task in, by default will use the queue configured in the task"),
|
|
52
|
+
})
|
|
53
|
+
.optional(),
|
|
54
|
+
delay: z
|
|
55
|
+
.string()
|
|
56
|
+
.or(z.coerce.date())
|
|
57
|
+
.describe("The delay before the task run is executed")
|
|
58
|
+
.optional(),
|
|
59
|
+
idempotencyKey: z.string().describe("The idempotency key to use for the task run").optional(),
|
|
60
|
+
machine: MachinePresetName.describe("The machine preset to use for the task run").optional(),
|
|
61
|
+
maxAttempts: z
|
|
62
|
+
.number()
|
|
63
|
+
.int()
|
|
64
|
+
.describe("The maximum number of attempts to retry the task run")
|
|
65
|
+
.optional(),
|
|
66
|
+
maxDuration: z
|
|
67
|
+
.number()
|
|
68
|
+
.describe("The maximum duration in seconds of the task run")
|
|
69
|
+
.optional(),
|
|
70
|
+
tags: z
|
|
71
|
+
.array(z.string())
|
|
72
|
+
.describe("Tags to add to the task run. Must be less than 128 characters and cannot have more than 5")
|
|
73
|
+
.optional(),
|
|
74
|
+
ttl: z
|
|
75
|
+
.string()
|
|
76
|
+
.or(z.number().nonnegative().int())
|
|
77
|
+
.describe("The time to live of the task run. If the run doesn't start executing within this time, it will be automatically cancelled.")
|
|
78
|
+
.default("10m"),
|
|
79
|
+
})
|
|
80
|
+
.optional(),
|
|
81
|
+
});
|
|
82
|
+
export const CommonRunsInput = CommonProjectsInput.extend({
|
|
83
|
+
runId: z.string().describe("The ID of the run to get the details of, starts with run_"),
|
|
84
|
+
});
|
|
85
|
+
export const GetRunDetailsInput = CommonRunsInput.extend({
|
|
86
|
+
maxTraceLines: z
|
|
87
|
+
.number()
|
|
88
|
+
.int()
|
|
89
|
+
.describe("The maximum number of lines to show in the trace. Defaults to 500")
|
|
90
|
+
.optional(),
|
|
91
|
+
});
|
|
92
|
+
export const ListRunsInput = CommonProjectsInput.extend({
|
|
93
|
+
cursor: z.string().describe("The cursor to use for pagination, starts with run_").optional(),
|
|
94
|
+
limit: z
|
|
95
|
+
.number()
|
|
96
|
+
.int()
|
|
97
|
+
.describe("The number of runs to list in a single page. Up to 100")
|
|
98
|
+
.optional(),
|
|
99
|
+
status: RunStatus.describe("Filter for runs with this run status").optional(),
|
|
100
|
+
taskIdentifier: z.string().describe("Filter for runs that match this task identifier").optional(),
|
|
101
|
+
version: z
|
|
102
|
+
.string()
|
|
103
|
+
.describe("Filter for runs that match this version, e.g. 20250808.3")
|
|
104
|
+
.optional(),
|
|
105
|
+
tag: z.string().describe("Filter for runs that include this tag").optional(),
|
|
106
|
+
from: z.string().describe("Filter for runs created after this ISO 8601 timestamp").optional(),
|
|
107
|
+
to: z.string().describe("Filter for runs created before this ISO 8601 timestamp").optional(),
|
|
108
|
+
period: z
|
|
109
|
+
.string()
|
|
110
|
+
.describe("Filter for runs created in the last N time period. e.g. 7d, 30d, 365d")
|
|
111
|
+
.optional(),
|
|
112
|
+
machine: MachinePresetName.describe("Filter for runs that match this machine preset").optional(),
|
|
113
|
+
});
|
|
114
|
+
export const CommonDeployInput = CommonProjectsInput.omit({
|
|
115
|
+
environment: true,
|
|
116
|
+
}).extend({
|
|
117
|
+
environment: z
|
|
118
|
+
.enum(["staging", "prod", "preview"])
|
|
119
|
+
.describe("The environment to trigger the task in")
|
|
120
|
+
.default("prod"),
|
|
121
|
+
});
|
|
122
|
+
export const DeployInput = CommonDeployInput.extend({
|
|
123
|
+
skipPromotion: z
|
|
124
|
+
.boolean()
|
|
125
|
+
.describe("Skip promoting the deployment to the current deployment for the environment")
|
|
126
|
+
.optional(),
|
|
127
|
+
skipSyncEnvVars: z
|
|
128
|
+
.boolean()
|
|
129
|
+
.describe("Skip syncing environment variables when using the syncEnvVars extension")
|
|
130
|
+
.optional(),
|
|
131
|
+
skipUpdateCheck: z
|
|
132
|
+
.boolean()
|
|
133
|
+
.describe("Skip checking for @trigger.dev package updates")
|
|
134
|
+
.optional(),
|
|
135
|
+
});
|
|
136
|
+
export const ListDeploysInput = CommonDeployInput.extend(ApiDeploymentListParams);
|
|
137
|
+
export const ListPreviewBranchesInput = z.object({
|
|
138
|
+
projectRef: ProjectRefSchema,
|
|
139
|
+
configPath: z
|
|
140
|
+
.string()
|
|
141
|
+
.describe("The path to the trigger.config.ts file. Only used when the trigger.config.ts file is not at the root dir (like in a monorepo setup). If not provided, we will try to find the config file in the current working directory")
|
|
142
|
+
.optional(),
|
|
143
|
+
});
|
|
144
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/mcp/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GACV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,EAAE;KACR,QAAQ,CACP,0OAA0O,CAC3O;KACA,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,CACP,iLAAiL,CAClL;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CAChE,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,CACP,iLAAiL,CAClL;IACH,UAAU,EAAE,gBAAgB;IAC5B,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,CACP,iJAAiJ,CAClJ;IACH,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC,CAAC,QAAQ,EAAE;CACpF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,gBAAgB;IAC5B,UA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M,CAAC,uBAAuB,CAAC,CAAC;AAIlF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,gBAAgB;IAC5B,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,CACP,4NAA4N,CAC7N;SACA,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ToolMeta } from "../types.js";
|
|
2
|
+
export declare const deployTool: {
|
|
3
|
+
name: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: Omit<{
|
|
7
|
+
projectRef: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
configPath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
environment: import("zod").ZodDefault<import("zod").ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
10
|
+
branch: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
}, "environment"> & {
|
|
12
|
+
environment: import("zod").ZodDefault<import("zod").ZodEnum<["staging", "prod", "preview"]>>;
|
|
13
|
+
} & {
|
|
14
|
+
skipPromotion: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
15
|
+
skipSyncEnvVars: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
16
|
+
skipUpdateCheck: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17
|
+
};
|
|
18
|
+
handler: (input: unknown, extra: ToolMeta) => Promise<{
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
content: ({
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
type: "text";
|
|
23
|
+
text: string;
|
|
24
|
+
_meta?: {
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
} | undefined;
|
|
27
|
+
} | {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
type: "image";
|
|
30
|
+
data: string;
|
|
31
|
+
mimeType: string;
|
|
32
|
+
_meta?: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
} | undefined;
|
|
35
|
+
} | {
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
type: "audio";
|
|
38
|
+
data: string;
|
|
39
|
+
mimeType: string;
|
|
40
|
+
_meta?: {
|
|
41
|
+
[x: string]: unknown;
|
|
42
|
+
} | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
type: "resource_link";
|
|
46
|
+
name: string;
|
|
47
|
+
uri: string;
|
|
48
|
+
description?: string | undefined;
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
_meta?: {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
} | undefined;
|
|
53
|
+
mimeType?: string | undefined;
|
|
54
|
+
} | {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
type: "resource";
|
|
57
|
+
resource: {
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
text: string;
|
|
60
|
+
uri: string;
|
|
61
|
+
_meta?: {
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
} | undefined;
|
|
64
|
+
mimeType?: string | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
uri: string;
|
|
68
|
+
blob: string;
|
|
69
|
+
_meta?: {
|
|
70
|
+
[x: string]: unknown;
|
|
71
|
+
} | undefined;
|
|
72
|
+
mimeType?: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
_meta?: {
|
|
75
|
+
[x: string]: unknown;
|
|
76
|
+
} | undefined;
|
|
77
|
+
})[];
|
|
78
|
+
isError?: boolean | undefined;
|
|
79
|
+
_meta?: {
|
|
80
|
+
[x: string]: unknown;
|
|
81
|
+
} | undefined;
|
|
82
|
+
structuredContent?: {
|
|
83
|
+
[x: string]: unknown;
|
|
84
|
+
} | undefined;
|
|
85
|
+
}>;
|
|
86
|
+
};
|
|
87
|
+
export declare const listDeploysTool: {
|
|
88
|
+
name: string;
|
|
89
|
+
title: string;
|
|
90
|
+
description: string;
|
|
91
|
+
inputSchema: Omit<{
|
|
92
|
+
projectRef: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
+
configPath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
+
environment: import("zod").ZodDefault<import("zod").ZodEnum<["dev", "staging", "prod", "preview"]>>;
|
|
95
|
+
branch: import("zod").ZodOptional<import("zod").ZodString>;
|
|
96
|
+
}, "environment"> & {
|
|
97
|
+
environment: import("zod").ZodDefault<import("zod").ZodEnum<["staging", "prod", "preview"]>>;
|
|
98
|
+
} & {
|
|
99
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
101
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
|
+
period: import("zod").ZodOptional<import("zod").ZodString>;
|
|
104
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
105
|
+
};
|
|
106
|
+
handler: (input: unknown, extra: ToolMeta) => Promise<{
|
|
107
|
+
[x: string]: unknown;
|
|
108
|
+
content: ({
|
|
109
|
+
[x: string]: unknown;
|
|
110
|
+
type: "text";
|
|
111
|
+
text: string;
|
|
112
|
+
_meta?: {
|
|
113
|
+
[x: string]: unknown;
|
|
114
|
+
} | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
[x: string]: unknown;
|
|
117
|
+
type: "image";
|
|
118
|
+
data: string;
|
|
119
|
+
mimeType: string;
|
|
120
|
+
_meta?: {
|
|
121
|
+
[x: string]: unknown;
|
|
122
|
+
} | undefined;
|
|
123
|
+
} | {
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
type: "audio";
|
|
126
|
+
data: string;
|
|
127
|
+
mimeType: string;
|
|
128
|
+
_meta?: {
|
|
129
|
+
[x: string]: unknown;
|
|
130
|
+
} | undefined;
|
|
131
|
+
} | {
|
|
132
|
+
[x: string]: unknown;
|
|
133
|
+
type: "resource_link";
|
|
134
|
+
name: string;
|
|
135
|
+
uri: string;
|
|
136
|
+
description?: string | undefined;
|
|
137
|
+
title?: string | undefined;
|
|
138
|
+
_meta?: {
|
|
139
|
+
[x: string]: unknown;
|
|
140
|
+
} | undefined;
|
|
141
|
+
mimeType?: string | undefined;
|
|
142
|
+
} | {
|
|
143
|
+
[x: string]: unknown;
|
|
144
|
+
type: "resource";
|
|
145
|
+
resource: {
|
|
146
|
+
[x: string]: unknown;
|
|
147
|
+
text: string;
|
|
148
|
+
uri: string;
|
|
149
|
+
_meta?: {
|
|
150
|
+
[x: string]: unknown;
|
|
151
|
+
} | undefined;
|
|
152
|
+
mimeType?: string | undefined;
|
|
153
|
+
} | {
|
|
154
|
+
[x: string]: unknown;
|
|
155
|
+
uri: string;
|
|
156
|
+
blob: string;
|
|
157
|
+
_meta?: {
|
|
158
|
+
[x: string]: unknown;
|
|
159
|
+
} | undefined;
|
|
160
|
+
mimeType?: string | undefined;
|
|
161
|
+
};
|
|
162
|
+
_meta?: {
|
|
163
|
+
[x: string]: unknown;
|
|
164
|
+
} | undefined;
|
|
165
|
+
})[];
|
|
166
|
+
isError?: boolean | undefined;
|
|
167
|
+
_meta?: {
|
|
168
|
+
[x: string]: unknown;
|
|
169
|
+
} | undefined;
|
|
170
|
+
structuredContent?: {
|
|
171
|
+
[x: string]: unknown;
|
|
172
|
+
} | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
};
|