micro-contracts 0.15.0 → 0.15.2
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 +62 -0
- package/cli-contract.yaml +622 -2
- package/dist/agents/context-builder.d.ts +5 -0
- package/dist/agents/context-builder.d.ts.map +1 -0
- package/dist/agents/context-builder.js +239 -0
- package/dist/agents/context-builder.js.map +1 -0
- package/dist/agents/formatter.d.ts +9 -0
- package/dist/agents/formatter.d.ts.map +1 -0
- package/dist/agents/formatter.js +124 -0
- package/dist/agents/formatter.js.map +1 -0
- package/dist/agents/index.d.ts +5 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +3 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/orchestrator.d.ts +5 -0
- package/dist/agents/orchestrator.d.ts.map +1 -0
- package/dist/agents/orchestrator.js +105 -0
- package/dist/agents/orchestrator.js.map +1 -0
- package/dist/agents/types.d.ts +21 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +2 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/cli.d.ts +0 -6
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +814 -1161
- package/dist/cli.js.map +1 -1
- package/dist/commands/audit-guardrails.d.ts +13 -0
- package/dist/commands/audit-guardrails.d.ts.map +1 -0
- package/dist/commands/audit-guardrails.js +32 -0
- package/dist/commands/audit-guardrails.js.map +1 -0
- package/dist/commands/audit-openapi.d.ts +13 -0
- package/dist/commands/audit-openapi.d.ts.map +1 -0
- package/dist/commands/audit-openapi.js +32 -0
- package/dist/commands/audit-openapi.js.map +1 -0
- package/dist/commands/propose-overlays.d.ts +13 -0
- package/dist/commands/propose-overlays.d.ts.map +1 -0
- package/dist/commands/propose-overlays.js +32 -0
- package/dist/commands/propose-overlays.js.map +1 -0
- package/dist/commands/review-published.d.ts +13 -0
- package/dist/commands/review-published.d.ts.map +1 -0
- package/dist/commands/review-published.js +32 -0
- package/dist/commands/review-published.js.map +1 -0
- package/dist/generated/commands.d.ts +2 -0
- package/dist/generated/commands.d.ts.map +1 -0
- package/dist/generated/commands.js +2 -0
- package/dist/generated/commands.js.map +1 -0
- package/dist/generated/dsl/agents.d.ts +34 -0
- package/dist/generated/dsl/agents.d.ts.map +1 -0
- package/dist/generated/dsl/agents.js +98 -0
- package/dist/generated/dsl/agents.js.map +1 -0
- package/dist/generated/dsl/handoffs.d.ts +1209 -0
- package/dist/generated/dsl/handoffs.d.ts.map +1 -0
- package/dist/generated/dsl/handoffs.js +205 -0
- package/dist/generated/dsl/handoffs.js.map +1 -0
- package/dist/generated/dsl/index.d.ts +13 -0
- package/dist/generated/dsl/index.d.ts.map +1 -0
- package/dist/generated/dsl/index.js +10 -0
- package/dist/generated/dsl/index.js.map +1 -0
- package/dist/generated/dsl/tasks.d.ts +26 -0
- package/dist/generated/dsl/tasks.d.ts.map +1 -0
- package/dist/generated/dsl/tasks.js +133 -0
- package/dist/generated/dsl/tasks.js.map +1 -0
- package/dist/generated/dsl/workflows.d.ts +34 -0
- package/dist/generated/dsl/workflows.d.ts.map +1 -0
- package/dist/generated/dsl/workflows.js +84 -0
- package/dist/generated/dsl/workflows.js.map +1 -0
- package/dist/generated/index.d.ts +7 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +7 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/policy-runtime.d.ts +114 -0
- package/dist/generated/policy-runtime.d.ts.map +1 -0
- package/dist/generated/policy-runtime.js +195 -0
- package/dist/generated/policy-runtime.js.map +1 -0
- package/dist/generated/policy.d.ts +619 -0
- package/dist/generated/policy.d.ts.map +1 -0
- package/dist/generated/policy.js +802 -0
- package/dist/generated/policy.js.map +1 -0
- package/dist/generated/program.d.ts +112 -0
- package/dist/generated/program.d.ts.map +1 -0
- package/dist/generated/program.js +266 -0
- package/dist/generated/program.js.map +1 -0
- package/dist/generated/schemas.d.ts +778 -0
- package/dist/generated/schemas.d.ts.map +1 -0
- package/dist/generated/schemas.js +1005 -0
- package/dist/generated/schemas.js.map +1 -0
- package/dist/generated/types.d.ts +395 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/generated/types.js +3 -0
- package/dist/generated/types.js.map +1 -0
- package/docs/cli-reference.md +300 -0
- package/package.json +24 -6
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
import type { DerivedPolicy, IntrospectionResult } from "./policy-runtime.js";
|
|
2
|
+
export type { DerivedPolicy, IntrospectionResult };
|
|
3
|
+
export declare const commandDefinitions: {
|
|
4
|
+
readonly generate: {
|
|
5
|
+
readonly options: readonly [{
|
|
6
|
+
readonly name: "config";
|
|
7
|
+
readonly schema: {
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
};
|
|
10
|
+
readonly file: {
|
|
11
|
+
readonly mode: "read";
|
|
12
|
+
readonly exists: false;
|
|
13
|
+
readonly media_type: "application/yaml";
|
|
14
|
+
readonly encoding: "utf-8";
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "module";
|
|
18
|
+
readonly schema: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "contracts-only";
|
|
23
|
+
readonly schema: {
|
|
24
|
+
readonly type: "boolean";
|
|
25
|
+
readonly default: false;
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "server-only";
|
|
29
|
+
readonly schema: {
|
|
30
|
+
readonly type: "boolean";
|
|
31
|
+
readonly default: false;
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "frontend-only";
|
|
35
|
+
readonly schema: {
|
|
36
|
+
readonly type: "boolean";
|
|
37
|
+
readonly default: false;
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "docs-only";
|
|
41
|
+
readonly schema: {
|
|
42
|
+
readonly type: "boolean";
|
|
43
|
+
readonly default: false;
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "skip-lint";
|
|
47
|
+
readonly schema: {
|
|
48
|
+
readonly type: "boolean";
|
|
49
|
+
readonly default: false;
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "manifest";
|
|
53
|
+
readonly schema: {
|
|
54
|
+
readonly type: "boolean";
|
|
55
|
+
readonly default: true;
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "manifest-dir";
|
|
59
|
+
readonly schema: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
readonly default: "packages/";
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "force";
|
|
65
|
+
readonly schema: {
|
|
66
|
+
readonly type: "boolean";
|
|
67
|
+
readonly default: false;
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "cache";
|
|
71
|
+
readonly schema: {
|
|
72
|
+
readonly type: "boolean";
|
|
73
|
+
readonly default: true;
|
|
74
|
+
};
|
|
75
|
+
}];
|
|
76
|
+
};
|
|
77
|
+
readonly lint: {
|
|
78
|
+
readonly options: readonly [{
|
|
79
|
+
readonly name: "strict";
|
|
80
|
+
readonly schema: {
|
|
81
|
+
readonly type: "boolean";
|
|
82
|
+
readonly default: false;
|
|
83
|
+
};
|
|
84
|
+
}];
|
|
85
|
+
};
|
|
86
|
+
readonly init: {
|
|
87
|
+
readonly options: readonly [{
|
|
88
|
+
readonly name: "dir";
|
|
89
|
+
readonly schema: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly default: "src";
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "openapi";
|
|
95
|
+
readonly schema: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
};
|
|
98
|
+
readonly file: {
|
|
99
|
+
readonly mode: "read";
|
|
100
|
+
readonly exists: true;
|
|
101
|
+
readonly media_type: "application/yaml";
|
|
102
|
+
readonly encoding: "utf-8";
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "output";
|
|
106
|
+
readonly schema: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
};
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "skip-templates";
|
|
111
|
+
readonly schema: {
|
|
112
|
+
readonly type: "boolean";
|
|
113
|
+
readonly default: false;
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "screens";
|
|
117
|
+
readonly schema: {
|
|
118
|
+
readonly type: "boolean";
|
|
119
|
+
readonly default: false;
|
|
120
|
+
};
|
|
121
|
+
}];
|
|
122
|
+
};
|
|
123
|
+
readonly check: {
|
|
124
|
+
readonly options: readonly [{
|
|
125
|
+
readonly name: "only";
|
|
126
|
+
readonly schema: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "skip";
|
|
131
|
+
readonly schema: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "gate";
|
|
136
|
+
readonly schema: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
};
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "verbose";
|
|
141
|
+
readonly schema: {
|
|
142
|
+
readonly type: "boolean";
|
|
143
|
+
readonly default: false;
|
|
144
|
+
};
|
|
145
|
+
}, {
|
|
146
|
+
readonly name: "fix";
|
|
147
|
+
readonly schema: {
|
|
148
|
+
readonly type: "boolean";
|
|
149
|
+
readonly default: false;
|
|
150
|
+
};
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "guardrails";
|
|
153
|
+
readonly schema: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
};
|
|
156
|
+
readonly file: {
|
|
157
|
+
readonly mode: "read";
|
|
158
|
+
readonly exists: false;
|
|
159
|
+
readonly media_type: "application/yaml";
|
|
160
|
+
readonly encoding: "utf-8";
|
|
161
|
+
};
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "generated-dir";
|
|
164
|
+
readonly schema: {
|
|
165
|
+
readonly type: "string";
|
|
166
|
+
readonly default: "packages/";
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "changed-files";
|
|
170
|
+
readonly schema: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
};
|
|
173
|
+
readonly file: {
|
|
174
|
+
readonly mode: "read";
|
|
175
|
+
readonly exists: true;
|
|
176
|
+
readonly media_type: "text/plain";
|
|
177
|
+
readonly encoding: "utf-8";
|
|
178
|
+
};
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "list";
|
|
181
|
+
readonly schema: {
|
|
182
|
+
readonly type: "boolean";
|
|
183
|
+
readonly default: false;
|
|
184
|
+
};
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "list-gates";
|
|
187
|
+
readonly schema: {
|
|
188
|
+
readonly type: "boolean";
|
|
189
|
+
readonly default: false;
|
|
190
|
+
};
|
|
191
|
+
}];
|
|
192
|
+
};
|
|
193
|
+
readonly pipeline: {
|
|
194
|
+
readonly options: readonly [{
|
|
195
|
+
readonly name: "config";
|
|
196
|
+
readonly schema: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
};
|
|
199
|
+
readonly file: {
|
|
200
|
+
readonly mode: "read";
|
|
201
|
+
readonly exists: false;
|
|
202
|
+
readonly media_type: "application/yaml";
|
|
203
|
+
readonly encoding: "utf-8";
|
|
204
|
+
};
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "verbose";
|
|
207
|
+
readonly schema: {
|
|
208
|
+
readonly type: "boolean";
|
|
209
|
+
readonly default: false;
|
|
210
|
+
};
|
|
211
|
+
}, {
|
|
212
|
+
readonly name: "skip";
|
|
213
|
+
readonly schema: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
};
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "continue-on-error";
|
|
218
|
+
readonly schema: {
|
|
219
|
+
readonly type: "boolean";
|
|
220
|
+
readonly default: false;
|
|
221
|
+
};
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "guardrails";
|
|
224
|
+
readonly schema: {
|
|
225
|
+
readonly type: "string";
|
|
226
|
+
};
|
|
227
|
+
readonly file: {
|
|
228
|
+
readonly mode: "read";
|
|
229
|
+
readonly exists: false;
|
|
230
|
+
readonly media_type: "application/yaml";
|
|
231
|
+
readonly encoding: "utf-8";
|
|
232
|
+
};
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "generated-dir";
|
|
235
|
+
readonly schema: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly default: "packages/";
|
|
238
|
+
};
|
|
239
|
+
}, {
|
|
240
|
+
readonly name: "manifest";
|
|
241
|
+
readonly schema: {
|
|
242
|
+
readonly type: "boolean";
|
|
243
|
+
readonly default: true;
|
|
244
|
+
};
|
|
245
|
+
}, {
|
|
246
|
+
readonly name: "skip-lint";
|
|
247
|
+
readonly schema: {
|
|
248
|
+
readonly type: "boolean";
|
|
249
|
+
readonly default: false;
|
|
250
|
+
};
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "contracts-only";
|
|
253
|
+
readonly schema: {
|
|
254
|
+
readonly type: "boolean";
|
|
255
|
+
readonly default: false;
|
|
256
|
+
};
|
|
257
|
+
}, {
|
|
258
|
+
readonly name: "server-only";
|
|
259
|
+
readonly schema: {
|
|
260
|
+
readonly type: "boolean";
|
|
261
|
+
readonly default: false;
|
|
262
|
+
};
|
|
263
|
+
}, {
|
|
264
|
+
readonly name: "frontend-only";
|
|
265
|
+
readonly schema: {
|
|
266
|
+
readonly type: "boolean";
|
|
267
|
+
readonly default: false;
|
|
268
|
+
};
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "docs-only";
|
|
271
|
+
readonly schema: {
|
|
272
|
+
readonly type: "boolean";
|
|
273
|
+
readonly default: false;
|
|
274
|
+
};
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "force";
|
|
277
|
+
readonly schema: {
|
|
278
|
+
readonly type: "boolean";
|
|
279
|
+
readonly default: false;
|
|
280
|
+
};
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "cache";
|
|
283
|
+
readonly schema: {
|
|
284
|
+
readonly type: "boolean";
|
|
285
|
+
readonly default: true;
|
|
286
|
+
};
|
|
287
|
+
}];
|
|
288
|
+
};
|
|
289
|
+
readonly deps: {
|
|
290
|
+
readonly options: readonly [{
|
|
291
|
+
readonly name: "config";
|
|
292
|
+
readonly schema: {
|
|
293
|
+
readonly type: "string";
|
|
294
|
+
};
|
|
295
|
+
readonly file: {
|
|
296
|
+
readonly mode: "read";
|
|
297
|
+
readonly exists: false;
|
|
298
|
+
readonly media_type: "application/yaml";
|
|
299
|
+
readonly encoding: "utf-8";
|
|
300
|
+
};
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "module";
|
|
303
|
+
readonly schema: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
};
|
|
306
|
+
}, {
|
|
307
|
+
readonly name: "graph";
|
|
308
|
+
readonly schema: {
|
|
309
|
+
readonly type: "boolean";
|
|
310
|
+
readonly default: false;
|
|
311
|
+
};
|
|
312
|
+
}, {
|
|
313
|
+
readonly name: "impact";
|
|
314
|
+
readonly schema: {
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
};
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "who-depends-on";
|
|
319
|
+
readonly schema: {
|
|
320
|
+
readonly type: "string";
|
|
321
|
+
};
|
|
322
|
+
}, {
|
|
323
|
+
readonly name: "validate";
|
|
324
|
+
readonly schema: {
|
|
325
|
+
readonly type: "boolean";
|
|
326
|
+
readonly default: false;
|
|
327
|
+
};
|
|
328
|
+
}];
|
|
329
|
+
};
|
|
330
|
+
readonly "guardrails-init": {
|
|
331
|
+
readonly options: readonly [{
|
|
332
|
+
readonly name: "output";
|
|
333
|
+
readonly schema: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly default: "guardrails.yaml";
|
|
336
|
+
};
|
|
337
|
+
}];
|
|
338
|
+
};
|
|
339
|
+
readonly manifest: {
|
|
340
|
+
readonly options: readonly [{
|
|
341
|
+
readonly name: "dir";
|
|
342
|
+
readonly schema: {
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
readonly default: "packages/";
|
|
345
|
+
};
|
|
346
|
+
}, {
|
|
347
|
+
readonly name: "verify";
|
|
348
|
+
readonly schema: {
|
|
349
|
+
readonly type: "boolean";
|
|
350
|
+
readonly default: false;
|
|
351
|
+
};
|
|
352
|
+
}, {
|
|
353
|
+
readonly name: "output";
|
|
354
|
+
readonly schema: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
};
|
|
357
|
+
}];
|
|
358
|
+
};
|
|
359
|
+
readonly "audit-openapi": {
|
|
360
|
+
readonly effects: {
|
|
361
|
+
readonly reads: readonly ["openapi-specs", "config"];
|
|
362
|
+
readonly writes: readonly [];
|
|
363
|
+
readonly network: {
|
|
364
|
+
readonly description: "LLM API calls when adapter is not mock";
|
|
365
|
+
readonly requires_secrets: readonly [];
|
|
366
|
+
readonly idempotent: true;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
readonly options: readonly [{
|
|
370
|
+
readonly name: "config";
|
|
371
|
+
readonly schema: {
|
|
372
|
+
readonly type: "string";
|
|
373
|
+
};
|
|
374
|
+
readonly file: {
|
|
375
|
+
readonly mode: "read";
|
|
376
|
+
readonly exists: false;
|
|
377
|
+
readonly media_type: "application/yaml";
|
|
378
|
+
readonly encoding: "utf-8";
|
|
379
|
+
};
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "module";
|
|
382
|
+
readonly schema: {
|
|
383
|
+
readonly type: "string";
|
|
384
|
+
};
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "adapter";
|
|
387
|
+
readonly schema: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly enum: readonly ["cursor", "claude", "openai", "gemini", "mock"];
|
|
390
|
+
};
|
|
391
|
+
}, {
|
|
392
|
+
readonly name: "model";
|
|
393
|
+
readonly schema: {
|
|
394
|
+
readonly type: "string";
|
|
395
|
+
};
|
|
396
|
+
}, {
|
|
397
|
+
readonly name: "fail-on";
|
|
398
|
+
readonly schema: {
|
|
399
|
+
readonly type: "string";
|
|
400
|
+
readonly enum: readonly ["warning", "error", "critical"];
|
|
401
|
+
readonly default: "error";
|
|
402
|
+
};
|
|
403
|
+
}, {
|
|
404
|
+
readonly name: "output";
|
|
405
|
+
readonly schema: {
|
|
406
|
+
readonly type: "string";
|
|
407
|
+
};
|
|
408
|
+
readonly file: {
|
|
409
|
+
readonly mode: "write";
|
|
410
|
+
readonly media_type: "application/json";
|
|
411
|
+
readonly encoding: "utf-8";
|
|
412
|
+
};
|
|
413
|
+
}, {
|
|
414
|
+
readonly name: "report-format";
|
|
415
|
+
readonly schema: {
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
readonly enum: readonly ["json", "text", "yaml"];
|
|
418
|
+
readonly default: "text";
|
|
419
|
+
};
|
|
420
|
+
}];
|
|
421
|
+
};
|
|
422
|
+
readonly "review-published": {
|
|
423
|
+
readonly effects: {
|
|
424
|
+
readonly reads: readonly ["openapi-specs", "config", "generated-packages"];
|
|
425
|
+
readonly writes: readonly [];
|
|
426
|
+
readonly network: {
|
|
427
|
+
readonly description: "LLM API calls when adapter is not mock";
|
|
428
|
+
readonly requires_secrets: readonly [];
|
|
429
|
+
readonly idempotent: true;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
readonly options: readonly [{
|
|
433
|
+
readonly name: "config";
|
|
434
|
+
readonly schema: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
};
|
|
437
|
+
readonly file: {
|
|
438
|
+
readonly mode: "read";
|
|
439
|
+
readonly exists: false;
|
|
440
|
+
readonly media_type: "application/yaml";
|
|
441
|
+
readonly encoding: "utf-8";
|
|
442
|
+
};
|
|
443
|
+
}, {
|
|
444
|
+
readonly name: "module";
|
|
445
|
+
readonly schema: {
|
|
446
|
+
readonly type: "string";
|
|
447
|
+
};
|
|
448
|
+
}, {
|
|
449
|
+
readonly name: "adapter";
|
|
450
|
+
readonly schema: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
readonly enum: readonly ["cursor", "claude", "openai", "gemini", "mock"];
|
|
453
|
+
};
|
|
454
|
+
}, {
|
|
455
|
+
readonly name: "model";
|
|
456
|
+
readonly schema: {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
};
|
|
459
|
+
}, {
|
|
460
|
+
readonly name: "fail-on";
|
|
461
|
+
readonly schema: {
|
|
462
|
+
readonly type: "string";
|
|
463
|
+
readonly enum: readonly ["warning", "error", "critical"];
|
|
464
|
+
readonly default: "error";
|
|
465
|
+
};
|
|
466
|
+
}, {
|
|
467
|
+
readonly name: "output";
|
|
468
|
+
readonly schema: {
|
|
469
|
+
readonly type: "string";
|
|
470
|
+
};
|
|
471
|
+
readonly file: {
|
|
472
|
+
readonly mode: "write";
|
|
473
|
+
readonly media_type: "application/json";
|
|
474
|
+
readonly encoding: "utf-8";
|
|
475
|
+
};
|
|
476
|
+
}, {
|
|
477
|
+
readonly name: "report-format";
|
|
478
|
+
readonly schema: {
|
|
479
|
+
readonly type: "string";
|
|
480
|
+
readonly enum: readonly ["json", "text", "yaml"];
|
|
481
|
+
readonly default: "text";
|
|
482
|
+
};
|
|
483
|
+
}];
|
|
484
|
+
};
|
|
485
|
+
readonly "propose-overlays": {
|
|
486
|
+
readonly effects: {
|
|
487
|
+
readonly reads: readonly ["openapi-specs", "config"];
|
|
488
|
+
readonly writes: readonly [];
|
|
489
|
+
readonly network: {
|
|
490
|
+
readonly description: "LLM API calls when adapter is not mock";
|
|
491
|
+
readonly requires_secrets: readonly [];
|
|
492
|
+
readonly idempotent: true;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
readonly options: readonly [{
|
|
496
|
+
readonly name: "config";
|
|
497
|
+
readonly schema: {
|
|
498
|
+
readonly type: "string";
|
|
499
|
+
};
|
|
500
|
+
readonly file: {
|
|
501
|
+
readonly mode: "read";
|
|
502
|
+
readonly exists: false;
|
|
503
|
+
readonly media_type: "application/yaml";
|
|
504
|
+
readonly encoding: "utf-8";
|
|
505
|
+
};
|
|
506
|
+
}, {
|
|
507
|
+
readonly name: "module";
|
|
508
|
+
readonly schema: {
|
|
509
|
+
readonly type: "string";
|
|
510
|
+
};
|
|
511
|
+
}, {
|
|
512
|
+
readonly name: "adapter";
|
|
513
|
+
readonly schema: {
|
|
514
|
+
readonly type: "string";
|
|
515
|
+
readonly enum: readonly ["cursor", "claude", "openai", "gemini", "mock"];
|
|
516
|
+
};
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "model";
|
|
519
|
+
readonly schema: {
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
};
|
|
522
|
+
}, {
|
|
523
|
+
readonly name: "fail-on";
|
|
524
|
+
readonly schema: {
|
|
525
|
+
readonly type: "string";
|
|
526
|
+
readonly enum: readonly ["warning", "error", "critical"];
|
|
527
|
+
readonly default: "error";
|
|
528
|
+
};
|
|
529
|
+
}, {
|
|
530
|
+
readonly name: "output";
|
|
531
|
+
readonly schema: {
|
|
532
|
+
readonly type: "string";
|
|
533
|
+
};
|
|
534
|
+
readonly file: {
|
|
535
|
+
readonly mode: "write";
|
|
536
|
+
readonly media_type: "application/json";
|
|
537
|
+
readonly encoding: "utf-8";
|
|
538
|
+
};
|
|
539
|
+
}, {
|
|
540
|
+
readonly name: "report-format";
|
|
541
|
+
readonly schema: {
|
|
542
|
+
readonly type: "string";
|
|
543
|
+
readonly enum: readonly ["json", "text", "yaml"];
|
|
544
|
+
readonly default: "json";
|
|
545
|
+
};
|
|
546
|
+
}];
|
|
547
|
+
};
|
|
548
|
+
readonly "audit-guardrails": {
|
|
549
|
+
readonly effects: {
|
|
550
|
+
readonly reads: readonly ["guardrails-config", "config"];
|
|
551
|
+
readonly writes: readonly [];
|
|
552
|
+
readonly network: {
|
|
553
|
+
readonly description: "LLM API calls when adapter is not mock";
|
|
554
|
+
readonly requires_secrets: readonly [];
|
|
555
|
+
readonly idempotent: true;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
readonly options: readonly [{
|
|
559
|
+
readonly name: "config";
|
|
560
|
+
readonly schema: {
|
|
561
|
+
readonly type: "string";
|
|
562
|
+
};
|
|
563
|
+
readonly file: {
|
|
564
|
+
readonly mode: "read";
|
|
565
|
+
readonly exists: false;
|
|
566
|
+
readonly media_type: "application/yaml";
|
|
567
|
+
readonly encoding: "utf-8";
|
|
568
|
+
};
|
|
569
|
+
}, {
|
|
570
|
+
readonly name: "guardrails";
|
|
571
|
+
readonly schema: {
|
|
572
|
+
readonly type: "string";
|
|
573
|
+
};
|
|
574
|
+
readonly file: {
|
|
575
|
+
readonly mode: "read";
|
|
576
|
+
readonly exists: false;
|
|
577
|
+
readonly media_type: "application/yaml";
|
|
578
|
+
readonly encoding: "utf-8";
|
|
579
|
+
};
|
|
580
|
+
}, {
|
|
581
|
+
readonly name: "adapter";
|
|
582
|
+
readonly schema: {
|
|
583
|
+
readonly type: "string";
|
|
584
|
+
readonly enum: readonly ["cursor", "claude", "openai", "gemini", "mock"];
|
|
585
|
+
};
|
|
586
|
+
}, {
|
|
587
|
+
readonly name: "model";
|
|
588
|
+
readonly schema: {
|
|
589
|
+
readonly type: "string";
|
|
590
|
+
};
|
|
591
|
+
}, {
|
|
592
|
+
readonly name: "fail-on";
|
|
593
|
+
readonly schema: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
readonly enum: readonly ["warning", "error", "critical"];
|
|
596
|
+
readonly default: "error";
|
|
597
|
+
};
|
|
598
|
+
}, {
|
|
599
|
+
readonly name: "output";
|
|
600
|
+
readonly schema: {
|
|
601
|
+
readonly type: "string";
|
|
602
|
+
};
|
|
603
|
+
readonly file: {
|
|
604
|
+
readonly mode: "write";
|
|
605
|
+
readonly media_type: "application/json";
|
|
606
|
+
readonly encoding: "utf-8";
|
|
607
|
+
};
|
|
608
|
+
}, {
|
|
609
|
+
readonly name: "report-format";
|
|
610
|
+
readonly schema: {
|
|
611
|
+
readonly type: "string";
|
|
612
|
+
readonly enum: readonly ["json", "text", "yaml"];
|
|
613
|
+
readonly default: "text";
|
|
614
|
+
};
|
|
615
|
+
}];
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
export declare function deriveCommandPolicy(command_id: string, optionValues: Record<string, unknown>): IntrospectionResult;
|
|
619
|
+
//# sourceMappingURL=policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/generated/policy.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;AAEnD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAswBrB,CAAC;AAEX,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACpC,mBAAmB,CA0BrB"}
|