@sentry/warden 0.3.0 → 0.5.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/.claude-plugin/marketplace.json +20 -0
- package/README.md +1 -1
- package/dist/cli/args.d.ts +3 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +15 -4
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/add.d.ts.map +1 -1
- package/dist/cli/commands/add.js +51 -31
- package/dist/cli/commands/add.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +12 -14
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/context.d.ts.map +1 -1
- package/dist/cli/context.js +3 -1
- package/dist/cli/context.js.map +1 -1
- package/dist/cli/git.d.ts +4 -0
- package/dist/cli/git.d.ts.map +1 -1
- package/dist/cli/git.js +7 -1
- package/dist/cli/git.js.map +1 -1
- package/dist/cli/index.js +11 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/main.d.ts +7 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +41 -26
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/output/formatters.d.ts +18 -3
- package/dist/cli/output/formatters.d.ts.map +1 -1
- package/dist/cli/output/formatters.js +32 -7
- package/dist/cli/output/formatters.js.map +1 -1
- package/dist/cli/output/index.d.ts +1 -1
- package/dist/cli/output/index.d.ts.map +1 -1
- package/dist/cli/output/index.js +1 -1
- package/dist/cli/output/index.js.map +1 -1
- package/dist/cli/output/ink-runner.d.ts.map +1 -1
- package/dist/cli/output/ink-runner.js +29 -8
- package/dist/cli/output/ink-runner.js.map +1 -1
- package/dist/cli/output/jsonl.d.ts +39 -1
- package/dist/cli/output/jsonl.d.ts.map +1 -1
- package/dist/cli/output/jsonl.js +12 -0
- package/dist/cli/output/jsonl.js.map +1 -1
- package/dist/cli/output/reporter.d.ts +2 -2
- package/dist/cli/output/reporter.d.ts.map +1 -1
- package/dist/cli/output/reporter.js +70 -37
- package/dist/cli/output/reporter.js.map +1 -1
- package/dist/cli/output/tasks.d.ts +12 -0
- package/dist/cli/output/tasks.d.ts.map +1 -1
- package/dist/cli/output/tasks.js +157 -42
- package/dist/cli/output/tasks.js.map +1 -1
- package/dist/cli/output/tty.d.ts +9 -0
- package/dist/cli/output/tty.d.ts.map +1 -1
- package/dist/cli/output/tty.js +13 -0
- package/dist/cli/output/tty.js.map +1 -1
- package/dist/cli/output/verbosity.d.ts +2 -1
- package/dist/cli/output/verbosity.d.ts.map +1 -1
- package/dist/cli/output/verbosity.js +3 -2
- package/dist/cli/output/verbosity.js.map +1 -1
- package/dist/cli/terminal.d.ts +2 -2
- package/dist/cli/terminal.d.ts.map +1 -1
- package/dist/cli/terminal.js +33 -20
- package/dist/cli/terminal.js.map +1 -1
- package/dist/config/loader.d.ts +40 -12
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +71 -23
- package/dist/config/loader.js.map +1 -1
- package/dist/config/schema.d.ts +147 -111
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +67 -49
- package/dist/config/schema.js.map +1 -1
- package/dist/config/writer.d.ts +5 -5
- package/dist/config/writer.d.ts.map +1 -1
- package/dist/config/writer.js +76 -45
- package/dist/config/writer.js.map +1 -1
- package/dist/event/context.d.ts.map +1 -1
- package/dist/event/context.js +3 -1
- package/dist/event/context.js.map +1 -1
- package/dist/event/schedule-context.d.ts.map +1 -1
- package/dist/event/schedule-context.js +1 -0
- package/dist/event/schedule-context.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/output/dedup.d.ts +3 -1
- package/dist/output/dedup.d.ts.map +1 -1
- package/dist/output/dedup.js +25 -32
- package/dist/output/dedup.js.map +1 -1
- package/dist/output/github-checks.d.ts +6 -4
- package/dist/output/github-checks.d.ts.map +1 -1
- package/dist/output/github-checks.js +67 -88
- package/dist/output/github-checks.js.map +1 -1
- package/dist/output/github-issues.d.ts.map +1 -1
- package/dist/output/github-issues.js +9 -14
- package/dist/output/github-issues.js.map +1 -1
- package/dist/output/issue-renderer.js +1 -1
- package/dist/output/issue-renderer.js.map +1 -1
- package/dist/output/renderer.d.ts.map +1 -1
- package/dist/output/renderer.js +18 -31
- package/dist/output/renderer.js.map +1 -1
- package/dist/output/stale.d.ts +4 -0
- package/dist/output/stale.d.ts.map +1 -1
- package/dist/output/stale.js +7 -2
- package/dist/output/stale.js.map +1 -1
- package/dist/output/types.d.ts +2 -7
- package/dist/output/types.d.ts.map +1 -1
- package/dist/sdk/analyze.d.ts.map +1 -1
- package/dist/sdk/analyze.js +89 -24
- package/dist/sdk/analyze.js.map +1 -1
- package/dist/sdk/extract.d.ts +12 -2
- package/dist/sdk/extract.d.ts.map +1 -1
- package/dist/sdk/extract.js +22 -3
- package/dist/sdk/extract.js.map +1 -1
- package/dist/sdk/haiku.d.ts +55 -0
- package/dist/sdk/haiku.d.ts.map +1 -0
- package/dist/sdk/haiku.js +190 -0
- package/dist/sdk/haiku.js.map +1 -0
- package/dist/sdk/model-pricing.json +104 -0
- package/dist/sdk/pricing.d.ts +17 -0
- package/dist/sdk/pricing.d.ts.map +1 -0
- package/dist/sdk/pricing.js +41 -0
- package/dist/sdk/pricing.js.map +1 -0
- package/dist/sdk/runner.d.ts +4 -3
- package/dist/sdk/runner.d.ts.map +1 -1
- package/dist/sdk/runner.js +4 -2
- package/dist/sdk/runner.js.map +1 -1
- package/dist/sdk/types.d.ts +15 -0
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/sdk/types.js.map +1 -1
- package/dist/sdk/usage.d.ts +13 -1
- package/dist/sdk/usage.d.ts.map +1 -1
- package/dist/sdk/usage.js +46 -0
- package/dist/sdk/usage.js.map +1 -1
- package/dist/triggers/matcher.d.ts +18 -3
- package/dist/triggers/matcher.d.ts.map +1 -1
- package/dist/triggers/matcher.js +75 -18
- package/dist/triggers/matcher.js.map +1 -1
- package/dist/types/index.d.ts +42 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +14 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +4 -2
- package/plugins/.claude-plugin/marketplace.json +14 -0
- package/plugins/warden/.claude-plugin/plugin.json +7 -0
- package/plugins/warden/skills/warden/SKILL.md +78 -0
- package/plugins/warden/skills/warden/references/cli-reference.md +144 -0
- package/plugins/warden/skills/warden/references/config-schema.md +111 -0
- package/plugins/warden/skills/warden/references/configuration.md +108 -0
- package/plugins/warden/skills/warden/references/creating-skills.md +85 -0
- package/scripts/update-pricing.ts +88 -0
package/dist/config/schema.d.ts
CHANGED
|
@@ -63,12 +63,25 @@ export declare const SkillDefinitionSchema: z.ZodObject<{
|
|
|
63
63
|
rootDir: z.ZodOptional<z.ZodString>;
|
|
64
64
|
}, z.core.$strip>;
|
|
65
65
|
export type SkillDefinition = z.infer<typeof SkillDefinitionSchema>;
|
|
66
|
-
export declare const
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
export declare const ScheduleConfigSchema: z.ZodObject<{
|
|
67
|
+
issueTitle: z.ZodOptional<z.ZodString>;
|
|
68
|
+
createFixPR: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
fixBranchPrefix: z.ZodDefault<z.ZodString>;
|
|
69
70
|
}, z.core.$strip>;
|
|
70
|
-
export type
|
|
71
|
-
export declare const
|
|
71
|
+
export type ScheduleConfig = z.infer<typeof ScheduleConfigSchema>;
|
|
72
|
+
export declare const TriggerTypeSchema: z.ZodEnum<{
|
|
73
|
+
pull_request: "pull_request";
|
|
74
|
+
schedule: "schedule";
|
|
75
|
+
local: "local";
|
|
76
|
+
}>;
|
|
77
|
+
export type TriggerType = z.infer<typeof TriggerTypeSchema>;
|
|
78
|
+
export declare const SkillTriggerSchema: z.ZodObject<{
|
|
79
|
+
type: z.ZodEnum<{
|
|
80
|
+
pull_request: "pull_request";
|
|
81
|
+
schedule: "schedule";
|
|
82
|
+
local: "local";
|
|
83
|
+
}>;
|
|
84
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
72
85
|
failOn: z.ZodOptional<z.ZodEnum<{
|
|
73
86
|
critical: "critical";
|
|
74
87
|
high: "high";
|
|
@@ -77,7 +90,7 @@ export declare const OutputConfigSchema: z.ZodObject<{
|
|
|
77
90
|
info: "info";
|
|
78
91
|
off: "off";
|
|
79
92
|
}>>;
|
|
80
|
-
|
|
93
|
+
reportOn: z.ZodOptional<z.ZodEnum<{
|
|
81
94
|
critical: "critical";
|
|
82
95
|
high: "high";
|
|
83
96
|
medium: "medium";
|
|
@@ -86,31 +99,48 @@ export declare const OutputConfigSchema: z.ZodObject<{
|
|
|
86
99
|
off: "off";
|
|
87
100
|
}>>;
|
|
88
101
|
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
102
|
+
reportOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
model: z.ZodOptional<z.ZodString>;
|
|
104
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
issueTitle: z.ZodOptional<z.ZodString>;
|
|
107
|
+
createFixPR: z.ZodDefault<z.ZodBoolean>;
|
|
108
|
+
fixBranchPrefix: z.ZodDefault<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
96
110
|
}, z.core.$strip>;
|
|
97
|
-
export type
|
|
98
|
-
export declare const
|
|
111
|
+
export type SkillTrigger = z.infer<typeof SkillTriggerSchema>;
|
|
112
|
+
export declare const SkillConfigSchema: z.ZodObject<{
|
|
99
113
|
name: z.ZodString;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
issues: "issues";
|
|
103
|
-
issue_comment: "issue_comment";
|
|
104
|
-
schedule: "schedule";
|
|
105
|
-
}>;
|
|
106
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
|
-
skill: z.ZodString;
|
|
114
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
115
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
116
|
remote: z.ZodOptional<z.ZodString>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
117
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
critical: "critical";
|
|
119
|
+
high: "high";
|
|
120
|
+
medium: "medium";
|
|
121
|
+
low: "low";
|
|
122
|
+
info: "info";
|
|
123
|
+
off: "off";
|
|
124
|
+
}>>;
|
|
125
|
+
reportOn: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
critical: "critical";
|
|
127
|
+
high: "high";
|
|
128
|
+
medium: "medium";
|
|
129
|
+
low: "low";
|
|
130
|
+
info: "info";
|
|
131
|
+
off: "off";
|
|
132
|
+
}>>;
|
|
133
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
reportOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
model: z.ZodOptional<z.ZodString>;
|
|
136
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
138
|
+
type: z.ZodEnum<{
|
|
139
|
+
pull_request: "pull_request";
|
|
140
|
+
schedule: "schedule";
|
|
141
|
+
local: "local";
|
|
142
|
+
}>;
|
|
143
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
144
|
failOn: z.ZodOptional<z.ZodEnum<{
|
|
115
145
|
critical: "critical";
|
|
116
146
|
high: "high";
|
|
@@ -119,7 +149,7 @@ export declare const TriggerSchema: z.ZodObject<{
|
|
|
119
149
|
info: "info";
|
|
120
150
|
off: "off";
|
|
121
151
|
}>>;
|
|
122
|
-
|
|
152
|
+
reportOn: z.ZodOptional<z.ZodEnum<{
|
|
123
153
|
critical: "critical";
|
|
124
154
|
high: "high";
|
|
125
155
|
medium: "medium";
|
|
@@ -128,17 +158,17 @@ export declare const TriggerSchema: z.ZodObject<{
|
|
|
128
158
|
off: "off";
|
|
129
159
|
}>>;
|
|
130
160
|
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}, z.core.$strip
|
|
161
|
+
reportOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
model: z.ZodOptional<z.ZodString>;
|
|
163
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
issueTitle: z.ZodOptional<z.ZodString>;
|
|
166
|
+
createFixPR: z.ZodDefault<z.ZodBoolean>;
|
|
167
|
+
fixBranchPrefix: z.ZodDefault<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>>;
|
|
169
|
+
}, z.core.$strip>>>;
|
|
140
170
|
}, z.core.$strip>;
|
|
141
|
-
export type
|
|
171
|
+
export type SkillConfig = z.infer<typeof SkillConfigSchema>;
|
|
142
172
|
export declare const RunnerConfigSchema: z.ZodObject<{
|
|
143
173
|
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
144
174
|
}, z.core.$strip>;
|
|
@@ -175,32 +205,27 @@ export declare const ChunkingConfigSchema: z.ZodObject<{
|
|
|
175
205
|
}, z.core.$strip>;
|
|
176
206
|
export type ChunkingConfig = z.infer<typeof ChunkingConfigSchema>;
|
|
177
207
|
export declare const DefaultsSchema: z.ZodObject<{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
info: "info";
|
|
197
|
-
off: "off";
|
|
198
|
-
}>>;
|
|
199
|
-
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
200
|
-
commentOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
-
}, z.core.$strip>>;
|
|
208
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
209
|
+
critical: "critical";
|
|
210
|
+
high: "high";
|
|
211
|
+
medium: "medium";
|
|
212
|
+
low: "low";
|
|
213
|
+
info: "info";
|
|
214
|
+
off: "off";
|
|
215
|
+
}>>;
|
|
216
|
+
reportOn: z.ZodOptional<z.ZodEnum<{
|
|
217
|
+
critical: "critical";
|
|
218
|
+
high: "high";
|
|
219
|
+
medium: "medium";
|
|
220
|
+
low: "low";
|
|
221
|
+
info: "info";
|
|
222
|
+
off: "off";
|
|
223
|
+
}>>;
|
|
224
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
reportOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
202
226
|
model: z.ZodOptional<z.ZodString>;
|
|
203
227
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
204
229
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
205
230
|
chunking: z.ZodOptional<z.ZodObject<{
|
|
206
231
|
filePatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -223,32 +248,27 @@ export type Defaults = z.infer<typeof DefaultsSchema>;
|
|
|
223
248
|
export declare const WardenConfigSchema: z.ZodObject<{
|
|
224
249
|
version: z.ZodLiteral<1>;
|
|
225
250
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
info: "info";
|
|
245
|
-
off: "off";
|
|
246
|
-
}>>;
|
|
247
|
-
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
248
|
-
commentOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
249
|
-
}, z.core.$strip>>;
|
|
251
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
critical: "critical";
|
|
253
|
+
high: "high";
|
|
254
|
+
medium: "medium";
|
|
255
|
+
low: "low";
|
|
256
|
+
info: "info";
|
|
257
|
+
off: "off";
|
|
258
|
+
}>>;
|
|
259
|
+
reportOn: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
critical: "critical";
|
|
261
|
+
high: "high";
|
|
262
|
+
medium: "medium";
|
|
263
|
+
low: "low";
|
|
264
|
+
info: "info";
|
|
265
|
+
off: "off";
|
|
266
|
+
}>>;
|
|
267
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
reportOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
250
269
|
model: z.ZodOptional<z.ZodString>;
|
|
251
270
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
252
272
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
253
273
|
chunking: z.ZodOptional<z.ZodObject<{
|
|
254
274
|
filePatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -267,22 +287,38 @@ export declare const WardenConfigSchema: z.ZodObject<{
|
|
|
267
287
|
}, z.core.$strip>>;
|
|
268
288
|
batchDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
269
289
|
}, z.core.$strip>>;
|
|
270
|
-
|
|
290
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
271
291
|
name: z.ZodString;
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
issues: "issues";
|
|
275
|
-
issue_comment: "issue_comment";
|
|
276
|
-
schedule: "schedule";
|
|
277
|
-
}>;
|
|
278
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
279
|
-
skill: z.ZodString;
|
|
292
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
293
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
280
294
|
remote: z.ZodOptional<z.ZodString>;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
295
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
296
|
+
critical: "critical";
|
|
297
|
+
high: "high";
|
|
298
|
+
medium: "medium";
|
|
299
|
+
low: "low";
|
|
300
|
+
info: "info";
|
|
301
|
+
off: "off";
|
|
302
|
+
}>>;
|
|
303
|
+
reportOn: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
critical: "critical";
|
|
305
|
+
high: "high";
|
|
306
|
+
medium: "medium";
|
|
307
|
+
low: "low";
|
|
308
|
+
info: "info";
|
|
309
|
+
off: "off";
|
|
310
|
+
}>>;
|
|
311
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
reportOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
313
|
+
model: z.ZodOptional<z.ZodString>;
|
|
314
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
316
|
+
type: z.ZodEnum<{
|
|
317
|
+
pull_request: "pull_request";
|
|
318
|
+
schedule: "schedule";
|
|
319
|
+
local: "local";
|
|
320
|
+
}>;
|
|
321
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
286
322
|
failOn: z.ZodOptional<z.ZodEnum<{
|
|
287
323
|
critical: "critical";
|
|
288
324
|
high: "high";
|
|
@@ -291,7 +327,7 @@ export declare const WardenConfigSchema: z.ZodObject<{
|
|
|
291
327
|
info: "info";
|
|
292
328
|
off: "off";
|
|
293
329
|
}>>;
|
|
294
|
-
|
|
330
|
+
reportOn: z.ZodOptional<z.ZodEnum<{
|
|
295
331
|
critical: "critical";
|
|
296
332
|
high: "high";
|
|
297
333
|
medium: "medium";
|
|
@@ -300,15 +336,15 @@ export declare const WardenConfigSchema: z.ZodObject<{
|
|
|
300
336
|
off: "off";
|
|
301
337
|
}>>;
|
|
302
338
|
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}, z.core.$strip
|
|
339
|
+
reportOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
+
model: z.ZodOptional<z.ZodString>;
|
|
341
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
issueTitle: z.ZodOptional<z.ZodString>;
|
|
344
|
+
createFixPR: z.ZodDefault<z.ZodBoolean>;
|
|
345
|
+
fixBranchPrefix: z.ZodDefault<z.ZodString>;
|
|
346
|
+
}, z.core.$strip>>;
|
|
347
|
+
}, z.core.$strip>>>;
|
|
312
348
|
}, z.core.$strip>>>;
|
|
313
349
|
runner: z.ZodOptional<z.ZodObject<{
|
|
314
350
|
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;EASzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAGtD,eAAO,MAAM,gBAAg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ory where the skill was loaded from, for resolving resources (scripts/, references/, assets/) */
|
|
27
27
|
rootDir: z.string().optional(),
|
|
28
28
|
});
|
|
29
|
-
// Path filter for triggers
|
|
30
|
-
export const PathFilterSchema = z.object({
|
|
31
|
-
paths: z.array(z.string()).optional(),
|
|
32
|
-
ignorePaths: z.array(z.string()).optional(),
|
|
33
|
-
});
|
|
34
|
-
// Output configuration per trigger
|
|
35
|
-
export const OutputConfigSchema = z.object({
|
|
36
|
-
/** Fail the build and request PR changes when findings meet this severity */
|
|
37
|
-
failOn: SeverityThresholdSchema.optional(),
|
|
38
|
-
/** Only post comments for findings at or above this severity */
|
|
39
|
-
commentOn: SeverityThresholdSchema.optional(),
|
|
40
|
-
maxFindings: z.number().int().positive().optional(),
|
|
41
|
-
/** Post a PR comment even when there are no findings (default: false) */
|
|
42
|
-
commentOnSuccess: z.boolean().optional(),
|
|
43
|
-
});
|
|
44
29
|
// Schedule-specific configuration
|
|
45
30
|
export const ScheduleConfigSchema = z.object({
|
|
46
|
-
/** Title for the tracking issue (default: "Warden: {
|
|
31
|
+
/** Title for the tracking issue (default: "Warden: {skillName}") */
|
|
47
32
|
issueTitle: z.string().optional(),
|
|
48
33
|
/** Create PR with fixes when suggestedFix is available */
|
|
49
34
|
createFixPR: z.boolean().default(false),
|
|
50
35
|
/** Branch prefix for fix PRs (default: "warden-fix") */
|
|
51
36
|
fixBranchPrefix: z.string().default('warden-fix'),
|
|
52
37
|
});
|
|
53
|
-
// Trigger
|
|
54
|
-
export const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/**
|
|
38
|
+
// Trigger type: where the trigger runs
|
|
39
|
+
export const TriggerTypeSchema = z.enum(['pull_request', 'local', 'schedule']);
|
|
40
|
+
// Skill trigger definition (nested under [[skills.triggers]])
|
|
41
|
+
export const SkillTriggerSchema = z.object({
|
|
42
|
+
/** Trigger type: pull_request (GitHub), local (CLI), or schedule (cron) */
|
|
43
|
+
type: TriggerTypeSchema,
|
|
44
|
+
/** Actions to trigger on (only for pull_request type) */
|
|
58
45
|
actions: z.array(z.string()).min(1).optional(),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/** Model to use for this trigger (e.g., 'claude-sonnet-4-20250514'). Uses SDK default if not specified. */
|
|
46
|
+
// Per-trigger overrides (flattened output fields)
|
|
47
|
+
failOn: SeverityThresholdSchema.optional(),
|
|
48
|
+
reportOn: SeverityThresholdSchema.optional(),
|
|
49
|
+
maxFindings: z.number().int().positive().optional(),
|
|
50
|
+
reportOnSuccess: z.boolean().optional(),
|
|
65
51
|
model: z.string().optional(),
|
|
66
|
-
/** Maximum agentic turns (API round-trips) per hunk analysis. Overrides defaults.maxTurns. */
|
|
67
52
|
maxTurns: z.number().int().positive().optional(),
|
|
68
|
-
/** Schedule-specific configuration. Only used when
|
|
53
|
+
/** Schedule-specific configuration. Only used when type is 'schedule'. */
|
|
69
54
|
schedule: ScheduleConfigSchema.optional(),
|
|
70
55
|
}).refine((data) => {
|
|
71
|
-
// actions is required
|
|
72
|
-
if (data.
|
|
56
|
+
// actions is required for pull_request type
|
|
57
|
+
if (data.type === 'pull_request') {
|
|
73
58
|
return data.actions !== undefined && data.actions.length > 0;
|
|
74
59
|
}
|
|
75
60
|
return true;
|
|
76
61
|
}, {
|
|
77
|
-
message: "actions is required for
|
|
62
|
+
message: "actions is required for pull_request triggers",
|
|
78
63
|
path: ["actions"],
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
64
|
+
});
|
|
65
|
+
// Skill configuration (top-level [[skills]])
|
|
66
|
+
export const SkillConfigSchema = z.object({
|
|
67
|
+
name: z.string().min(1),
|
|
68
|
+
/** Path patterns to include */
|
|
69
|
+
paths: z.array(z.string()).optional(),
|
|
70
|
+
/** Path patterns to exclude */
|
|
71
|
+
ignorePaths: z.array(z.string()).optional(),
|
|
72
|
+
/** Remote repository reference for the skill (e.g., "owner/repo" or "owner/repo@sha") */
|
|
73
|
+
remote: z.string().optional(),
|
|
74
|
+
// Flattened output fields (skill-level defaults)
|
|
75
|
+
failOn: SeverityThresholdSchema.optional(),
|
|
76
|
+
reportOn: SeverityThresholdSchema.optional(),
|
|
77
|
+
maxFindings: z.number().int().positive().optional(),
|
|
78
|
+
reportOnSuccess: z.boolean().optional(),
|
|
79
|
+
/** Model to use for this skill (e.g., 'claude-sonnet-4-20250514'). Uses SDK default if not specified. */
|
|
80
|
+
model: z.string().optional(),
|
|
81
|
+
/** Maximum agentic turns (API round-trips) per hunk analysis. Overrides defaults.maxTurns. */
|
|
82
|
+
maxTurns: z.number().int().positive().optional(),
|
|
83
|
+
/** Triggers defining when/where this skill runs. Omit to run everywhere (wildcard). */
|
|
84
|
+
triggers: z.array(SkillTriggerSchema).optional(),
|
|
88
85
|
});
|
|
89
86
|
// Runner configuration
|
|
90
87
|
export const RunnerConfigSchema = z.object({
|
|
@@ -114,14 +111,21 @@ export const ChunkingConfigSchema = z.object({
|
|
|
114
111
|
/** Coalescing options for merging nearby hunks */
|
|
115
112
|
coalesce: CoalesceConfigSchema.optional(),
|
|
116
113
|
});
|
|
117
|
-
// Default configuration that
|
|
114
|
+
// Default configuration that skills inherit from
|
|
118
115
|
export const DefaultsSchema = z.object({
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
/**
|
|
116
|
+
/** Fail the build when findings meet this severity */
|
|
117
|
+
failOn: SeverityThresholdSchema.optional(),
|
|
118
|
+
/** Only report findings at or above this severity */
|
|
119
|
+
reportOn: SeverityThresholdSchema.optional(),
|
|
120
|
+
maxFindings: z.number().int().positive().optional(),
|
|
121
|
+
/** Report even when there are no findings (default: false) */
|
|
122
|
+
reportOnSuccess: z.boolean().optional(),
|
|
123
|
+
/** Default model for all skills (e.g., 'claude-sonnet-4-20250514') */
|
|
122
124
|
model: z.string().optional(),
|
|
123
125
|
/** Maximum agentic turns (API round-trips) per hunk analysis. Default: 50 */
|
|
124
126
|
maxTurns: z.number().int().positive().optional(),
|
|
127
|
+
/** Path patterns to exclude from all skills */
|
|
128
|
+
ignorePaths: z.array(z.string()).optional(),
|
|
125
129
|
/** Default branch for the repository (e.g., 'main', 'master', 'develop'). Auto-detected if not specified. */
|
|
126
130
|
defaultBranch: z.string().optional(),
|
|
127
131
|
/** Chunking configuration for controlling how files are processed */
|
|
@@ -134,18 +138,32 @@ export const WardenConfigSchema = z
|
|
|
134
138
|
.object({
|
|
135
139
|
version: z.literal(1),
|
|
136
140
|
defaults: DefaultsSchema.optional(),
|
|
137
|
-
|
|
141
|
+
skills: z.array(SkillConfigSchema).default([]),
|
|
138
142
|
runner: RunnerConfigSchema.optional(),
|
|
139
143
|
})
|
|
140
144
|
.superRefine((config, ctx) => {
|
|
141
|
-
const names = config.
|
|
145
|
+
const names = config.skills.map((s) => s.name);
|
|
142
146
|
const duplicates = names.filter((name, i) => names.indexOf(name) !== i);
|
|
143
147
|
if (duplicates.length > 0) {
|
|
144
148
|
ctx.addIssue({
|
|
145
149
|
code: z.ZodIssueCode.custom,
|
|
146
|
-
message: `Duplicate
|
|
147
|
-
path: ['
|
|
150
|
+
message: `Duplicate skill names: ${[...new Set(duplicates)].join(', ')}`,
|
|
151
|
+
path: ['skills'],
|
|
148
152
|
});
|
|
149
153
|
}
|
|
154
|
+
// Validate schedule skills have paths
|
|
155
|
+
for (const [i, skill] of config.skills.entries()) {
|
|
156
|
+
if (skill.triggers) {
|
|
157
|
+
for (const trigger of skill.triggers) {
|
|
158
|
+
if (trigger.type === 'schedule' && (!skill.paths || skill.paths.length === 0)) {
|
|
159
|
+
ctx.addIssue({
|
|
160
|
+
code: z.ZodIssueCode.custom,
|
|
161
|
+
message: "paths is required for skills with schedule triggers",
|
|
162
|
+
path: ['skills', i, 'paths'],
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
150
168
|
});
|
|
151
169
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,wCAAwC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACnC,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,UAAU;IACV,WAAW;CACZ,CAAC,CAAC;AAGH,gCAAgC;AAChC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAGH,mBAAmB;AACnB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,0GAA0G;IAC1G,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAGH,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE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,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACxE,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,0BAA0B,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACxE,IAAI,EAAE,CAAC,QAAQ,CAAC;SACjB,CAAC,CAAC;IACL,CAAC;IAED,sCAAsC;IACtC,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;QACjD,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACnB,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;gBACrC,IAAI,OAAO,CAAC,IAAI,KAAK,UAAU,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;oBAC9E,GAAG,CAAC,QAAQ,CAAC;wBACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;wBAC3B,OAAO,EAAE,qDAAqD;wBAC9D,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,OAAO,CAAC;qBAC7B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAC,CAAC"}
|
package/dist/config/writer.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SkillConfig } from './schema.js';
|
|
2
2
|
/**
|
|
3
|
-
* Generate TOML representation of a
|
|
3
|
+
* Generate TOML representation of a skill.
|
|
4
4
|
*/
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function generateSkillToml(skill: SkillConfig): string;
|
|
6
6
|
/**
|
|
7
|
-
* Append a
|
|
7
|
+
* Append a skill to the warden.toml configuration file.
|
|
8
8
|
* Preserves existing content and formatting by appending to the end.
|
|
9
9
|
*/
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function appendSkill(configPath: string, skill: SkillConfig): void;
|
|
11
11
|
//# sourceMappingURL=writer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../src/config/writer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../src/config/writer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAiG5D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI,CAiBxE"}
|