micro-contracts 0.16.4 → 0.17.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.
Files changed (181) hide show
  1. package/dist/micro-contracts.bundle.mjs +4683 -0
  2. package/dist/micro-contracts.bundle.mjs.map +7 -0
  3. package/package.json +22 -25
  4. package/dist/agents/context-builder.d.ts +0 -5
  5. package/dist/agents/context-builder.d.ts.map +0 -1
  6. package/dist/agents/context-builder.js +0 -239
  7. package/dist/agents/context-builder.js.map +0 -1
  8. package/dist/agents/formatter.d.ts +0 -9
  9. package/dist/agents/formatter.d.ts.map +0 -1
  10. package/dist/agents/formatter.js +0 -124
  11. package/dist/agents/formatter.js.map +0 -1
  12. package/dist/agents/index.d.ts +0 -5
  13. package/dist/agents/index.d.ts.map +0 -1
  14. package/dist/agents/index.js +0 -3
  15. package/dist/agents/index.js.map +0 -1
  16. package/dist/agents/orchestrator.d.ts +0 -5
  17. package/dist/agents/orchestrator.d.ts.map +0 -1
  18. package/dist/agents/orchestrator.js +0 -105
  19. package/dist/agents/orchestrator.js.map +0 -1
  20. package/dist/agents/types.d.ts +0 -21
  21. package/dist/agents/types.d.ts.map +0 -1
  22. package/dist/agents/types.js +0 -2
  23. package/dist/agents/types.js.map +0 -1
  24. package/dist/cli/templates.d.ts +0 -22
  25. package/dist/cli/templates.d.ts.map +0 -1
  26. package/dist/cli/templates.js +0 -445
  27. package/dist/cli/templates.js.map +0 -1
  28. package/dist/cli.d.ts +0 -3
  29. package/dist/cli.d.ts.map +0 -1
  30. package/dist/cli.js +0 -1142
  31. package/dist/cli.js.map +0 -1
  32. package/dist/commands/audit-guardrails.d.ts +0 -13
  33. package/dist/commands/audit-guardrails.d.ts.map +0 -1
  34. package/dist/commands/audit-guardrails.js +0 -32
  35. package/dist/commands/audit-guardrails.js.map +0 -1
  36. package/dist/commands/audit-openapi.d.ts +0 -13
  37. package/dist/commands/audit-openapi.d.ts.map +0 -1
  38. package/dist/commands/audit-openapi.js +0 -32
  39. package/dist/commands/audit-openapi.js.map +0 -1
  40. package/dist/commands/propose-overlays.d.ts +0 -13
  41. package/dist/commands/propose-overlays.d.ts.map +0 -1
  42. package/dist/commands/propose-overlays.js +0 -32
  43. package/dist/commands/propose-overlays.js.map +0 -1
  44. package/dist/commands/review-published.d.ts +0 -13
  45. package/dist/commands/review-published.d.ts.map +0 -1
  46. package/dist/commands/review-published.js +0 -32
  47. package/dist/commands/review-published.js.map +0 -1
  48. package/dist/generated/commands.d.ts +0 -2
  49. package/dist/generated/commands.d.ts.map +0 -1
  50. package/dist/generated/commands.js +0 -2
  51. package/dist/generated/commands.js.map +0 -1
  52. package/dist/generated/dsl/agents.d.ts +0 -34
  53. package/dist/generated/dsl/agents.d.ts.map +0 -1
  54. package/dist/generated/dsl/agents.js +0 -98
  55. package/dist/generated/dsl/agents.js.map +0 -1
  56. package/dist/generated/dsl/handoffs.d.ts +0 -457
  57. package/dist/generated/dsl/handoffs.d.ts.map +0 -1
  58. package/dist/generated/dsl/handoffs.js +0 -205
  59. package/dist/generated/dsl/handoffs.js.map +0 -1
  60. package/dist/generated/dsl/index.d.ts +0 -13
  61. package/dist/generated/dsl/index.d.ts.map +0 -1
  62. package/dist/generated/dsl/index.js +0 -10
  63. package/dist/generated/dsl/index.js.map +0 -1
  64. package/dist/generated/dsl/tasks.d.ts +0 -26
  65. package/dist/generated/dsl/tasks.d.ts.map +0 -1
  66. package/dist/generated/dsl/tasks.js +0 -133
  67. package/dist/generated/dsl/tasks.js.map +0 -1
  68. package/dist/generated/dsl/workflows.d.ts +0 -34
  69. package/dist/generated/dsl/workflows.d.ts.map +0 -1
  70. package/dist/generated/dsl/workflows.js +0 -84
  71. package/dist/generated/dsl/workflows.js.map +0 -1
  72. package/dist/generated/index.d.ts +0 -7
  73. package/dist/generated/index.d.ts.map +0 -1
  74. package/dist/generated/index.js +0 -7
  75. package/dist/generated/index.js.map +0 -1
  76. package/dist/generated/policy-runtime.d.ts +0 -114
  77. package/dist/generated/policy-runtime.d.ts.map +0 -1
  78. package/dist/generated/policy-runtime.js +0 -195
  79. package/dist/generated/policy-runtime.js.map +0 -1
  80. package/dist/generated/policy.d.ts +0 -619
  81. package/dist/generated/policy.d.ts.map +0 -1
  82. package/dist/generated/policy.js +0 -802
  83. package/dist/generated/policy.js.map +0 -1
  84. package/dist/generated/program.d.ts +0 -112
  85. package/dist/generated/program.d.ts.map +0 -1
  86. package/dist/generated/program.js +0 -266
  87. package/dist/generated/program.js.map +0 -1
  88. package/dist/generated/schemas.d.ts +0 -778
  89. package/dist/generated/schemas.d.ts.map +0 -1
  90. package/dist/generated/schemas.js +0 -1005
  91. package/dist/generated/schemas.js.map +0 -1
  92. package/dist/generated/types.d.ts +0 -395
  93. package/dist/generated/types.d.ts.map +0 -1
  94. package/dist/generated/types.js +0 -3
  95. package/dist/generated/types.js.map +0 -1
  96. package/dist/generator/dependencyGenerator.d.ts +0 -43
  97. package/dist/generator/dependencyGenerator.d.ts.map +0 -1
  98. package/dist/generator/dependencyGenerator.js +0 -159
  99. package/dist/generator/dependencyGenerator.js.map +0 -1
  100. package/dist/generator/index.d.ts +0 -39
  101. package/dist/generator/index.d.ts.map +0 -1
  102. package/dist/generator/index.js +0 -720
  103. package/dist/generator/index.js.map +0 -1
  104. package/dist/generator/inputHash.d.ts +0 -23
  105. package/dist/generator/inputHash.d.ts.map +0 -1
  106. package/dist/generator/inputHash.js +0 -145
  107. package/dist/generator/inputHash.js.map +0 -1
  108. package/dist/generator/linter.d.ts +0 -26
  109. package/dist/generator/linter.d.ts.map +0 -1
  110. package/dist/generator/linter.js +0 -352
  111. package/dist/generator/linter.js.map +0 -1
  112. package/dist/generator/overlayProcessor.d.ts +0 -90
  113. package/dist/generator/overlayProcessor.d.ts.map +0 -1
  114. package/dist/generator/overlayProcessor.js +0 -541
  115. package/dist/generator/overlayProcessor.js.map +0 -1
  116. package/dist/generator/schemaGenerator.d.ts +0 -10
  117. package/dist/generator/schemaGenerator.d.ts.map +0 -1
  118. package/dist/generator/schemaGenerator.js +0 -299
  119. package/dist/generator/schemaGenerator.js.map +0 -1
  120. package/dist/generator/serviceGenerator.d.ts +0 -41
  121. package/dist/generator/serviceGenerator.d.ts.map +0 -1
  122. package/dist/generator/serviceGenerator.js +0 -296
  123. package/dist/generator/serviceGenerator.js.map +0 -1
  124. package/dist/generator/templateProcessor.d.ts +0 -245
  125. package/dist/generator/templateProcessor.d.ts.map +0 -1
  126. package/dist/generator/templateProcessor.js +0 -821
  127. package/dist/generator/templateProcessor.js.map +0 -1
  128. package/dist/generator/typeGenerator.d.ts +0 -9
  129. package/dist/generator/typeGenerator.d.ts.map +0 -1
  130. package/dist/generator/typeGenerator.js +0 -424
  131. package/dist/generator/typeGenerator.js.map +0 -1
  132. package/dist/generator/typeGenerator.test.d.ts +0 -2
  133. package/dist/generator/typeGenerator.test.d.ts.map +0 -1
  134. package/dist/generator/typeGenerator.test.js +0 -122
  135. package/dist/generator/typeGenerator.test.js.map +0 -1
  136. package/dist/guardrails/allowlist.d.ts +0 -45
  137. package/dist/guardrails/allowlist.d.ts.map +0 -1
  138. package/dist/guardrails/allowlist.js +0 -261
  139. package/dist/guardrails/allowlist.js.map +0 -1
  140. package/dist/guardrails/config.d.ts +0 -40
  141. package/dist/guardrails/config.d.ts.map +0 -1
  142. package/dist/guardrails/config.js +0 -174
  143. package/dist/guardrails/config.js.map +0 -1
  144. package/dist/guardrails/docs.d.ts +0 -24
  145. package/dist/guardrails/docs.d.ts.map +0 -1
  146. package/dist/guardrails/docs.js +0 -138
  147. package/dist/guardrails/docs.js.map +0 -1
  148. package/dist/guardrails/drift.d.ts +0 -23
  149. package/dist/guardrails/drift.d.ts.map +0 -1
  150. package/dist/guardrails/drift.js +0 -127
  151. package/dist/guardrails/drift.js.map +0 -1
  152. package/dist/guardrails/index.d.ts +0 -19
  153. package/dist/guardrails/index.d.ts.map +0 -1
  154. package/dist/guardrails/index.js +0 -23
  155. package/dist/guardrails/index.js.map +0 -1
  156. package/dist/guardrails/lint.d.ts +0 -20
  157. package/dist/guardrails/lint.d.ts.map +0 -1
  158. package/dist/guardrails/lint.js +0 -274
  159. package/dist/guardrails/lint.js.map +0 -1
  160. package/dist/guardrails/manifest.d.ts +0 -63
  161. package/dist/guardrails/manifest.d.ts.map +0 -1
  162. package/dist/guardrails/manifest.js +0 -299
  163. package/dist/guardrails/manifest.js.map +0 -1
  164. package/dist/guardrails/runner.d.ts +0 -43
  165. package/dist/guardrails/runner.d.ts.map +0 -1
  166. package/dist/guardrails/runner.js +0 -365
  167. package/dist/guardrails/runner.js.map +0 -1
  168. package/dist/guardrails/typecheck.d.ts +0 -15
  169. package/dist/guardrails/typecheck.d.ts.map +0 -1
  170. package/dist/guardrails/typecheck.js +0 -104
  171. package/dist/guardrails/typecheck.js.map +0 -1
  172. package/dist/guardrails/types.d.ts +0 -202
  173. package/dist/guardrails/types.d.ts.map +0 -1
  174. package/dist/guardrails/types.js +0 -8
  175. package/dist/guardrails/types.js.map +0 -1
  176. package/dist/index.d.ts.map +0 -1
  177. package/dist/index.js.map +0 -1
  178. package/dist/types.d.ts +0 -583
  179. package/dist/types.d.ts.map +0 -1
  180. package/dist/types.js +0 -305
  181. package/dist/types.js.map +0 -1
@@ -1,619 +0,0 @@
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
@@ -1 +0,0 @@
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"}