@callabens/projectmind 0.1.0-dev.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 (62) hide show
  1. package/LICENSE +55 -0
  2. package/NOTICE +3 -0
  3. package/README.md +104 -0
  4. package/dist/apps/cli/src/index.d.ts +2 -0
  5. package/dist/apps/cli/src/index.js +166 -0
  6. package/dist/apps/cli/src/index.js.map +1 -0
  7. package/dist/packages/claims/src/index.d.ts +13 -0
  8. package/dist/packages/claims/src/index.js +62 -0
  9. package/dist/packages/claims/src/index.js.map +1 -0
  10. package/dist/packages/core/src/index.d.ts +195 -0
  11. package/dist/packages/core/src/index.js +22 -0
  12. package/dist/packages/core/src/index.js.map +1 -0
  13. package/dist/packages/core/src/project.d.ts +4 -0
  14. package/dist/packages/core/src/project.js +120 -0
  15. package/dist/packages/core/src/project.js.map +1 -0
  16. package/dist/packages/core/src/schema.d.ts +1392 -0
  17. package/dist/packages/core/src/schema.js +193 -0
  18. package/dist/packages/core/src/schema.js.map +1 -0
  19. package/dist/packages/evidence/src/index.d.ts +5 -0
  20. package/dist/packages/evidence/src/index.js +156 -0
  21. package/dist/packages/evidence/src/index.js.map +1 -0
  22. package/dist/packages/git/src/index.d.ts +7 -0
  23. package/dist/packages/git/src/index.js +162 -0
  24. package/dist/packages/git/src/index.js.map +1 -0
  25. package/dist/packages/graph/src/index.d.ts +4 -0
  26. package/dist/packages/graph/src/index.js +225 -0
  27. package/dist/packages/graph/src/index.js.map +1 -0
  28. package/dist/packages/intent/src/index.d.ts +4 -0
  29. package/dist/packages/intent/src/index.js +70 -0
  30. package/dist/packages/intent/src/index.js.map +1 -0
  31. package/dist/packages/mcp/src/index.d.ts +6 -0
  32. package/dist/packages/mcp/src/index.js +87 -0
  33. package/dist/packages/mcp/src/index.js.map +1 -0
  34. package/dist/packages/memory/src/index.d.ts +20 -0
  35. package/dist/packages/memory/src/index.js +51 -0
  36. package/dist/packages/memory/src/index.js.map +1 -0
  37. package/dist/packages/parser/src/index.d.ts +14 -0
  38. package/dist/packages/parser/src/index.js +111 -0
  39. package/dist/packages/parser/src/index.js.map +1 -0
  40. package/dist/packages/policy/src/index.d.ts +7 -0
  41. package/dist/packages/policy/src/index.js +35 -0
  42. package/dist/packages/policy/src/index.js.map +1 -0
  43. package/dist/packages/proofpack/src/index.d.ts +3 -0
  44. package/dist/packages/proofpack/src/index.js +28 -0
  45. package/dist/packages/proofpack/src/index.js.map +1 -0
  46. package/dist/packages/report/src/index.d.ts +5 -0
  47. package/dist/packages/report/src/index.js +70 -0
  48. package/dist/packages/report/src/index.js.map +1 -0
  49. package/dist/packages/sdk/src/examples/git-diff-check.d.ts +1 -0
  50. package/dist/packages/sdk/src/examples/git-diff-check.js +12 -0
  51. package/dist/packages/sdk/src/examples/git-diff-check.js.map +1 -0
  52. package/dist/packages/sdk/src/index.d.ts +22 -0
  53. package/dist/packages/sdk/src/index.js +33 -0
  54. package/dist/packages/sdk/src/index.js.map +1 -0
  55. package/dist/packages/verifier/src/index.d.ts +2 -0
  56. package/dist/packages/verifier/src/index.js +66 -0
  57. package/dist/packages/verifier/src/index.js.map +1 -0
  58. package/dist/packages/verifier/src/project.d.ts +6 -0
  59. package/dist/packages/verifier/src/project.js +31 -0
  60. package/dist/packages/verifier/src/project.js.map +1 -0
  61. package/package.json +79 -0
  62. package/schemas/proofpack-v1.schema.json +513 -0
@@ -0,0 +1,1392 @@
1
+ import { z } from "zod";
2
+ export declare const evidenceKindSchema: z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>;
3
+ export declare const evidenceProviderSchema: z.ZodEnum<["generic-command", "node-test-junit", "pytest-junit"]>;
4
+ export declare const intentIdSchema: z.ZodString;
5
+ export declare const verificationCommandSchema: z.ZodEffects<z.ZodObject<{
6
+ kind: z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>;
7
+ command: z.ZodString;
8
+ required: z.ZodBoolean;
9
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
10
+ provider: z.ZodOptional<z.ZodEnum<["generic-command", "node-test-junit", "pytest-junit"]>>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ command: string;
13
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
14
+ required: boolean;
15
+ timeoutMs?: number | undefined;
16
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
17
+ }, {
18
+ command: string;
19
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
20
+ required: boolean;
21
+ timeoutMs?: number | undefined;
22
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
23
+ }>, {
24
+ command: string;
25
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
26
+ required: boolean;
27
+ timeoutMs?: number | undefined;
28
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
29
+ }, {
30
+ command: string;
31
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
32
+ required: boolean;
33
+ timeoutMs?: number | undefined;
34
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
35
+ }>;
36
+ export declare const configSchema: z.ZodObject<{
37
+ version: z.ZodLiteral<1>;
38
+ project: z.ZodObject<{
39
+ name: z.ZodString;
40
+ root: z.ZodLiteral<".">;
41
+ packageManager: z.ZodOptional<z.ZodString>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ name: string;
44
+ root: ".";
45
+ packageManager?: string | undefined;
46
+ }, {
47
+ name: string;
48
+ root: ".";
49
+ packageManager?: string | undefined;
50
+ }>;
51
+ scanner: z.ZodObject<{
52
+ include: z.ZodArray<z.ZodString, "many">;
53
+ extensions: z.ZodArray<z.ZodString, "many">;
54
+ exclude: z.ZodArray<z.ZodString, "many">;
55
+ }, "strict", z.ZodTypeAny, {
56
+ include: string[];
57
+ extensions: string[];
58
+ exclude: string[];
59
+ }, {
60
+ include: string[];
61
+ extensions: string[];
62
+ exclude: string[];
63
+ }>;
64
+ verification: z.ZodObject<{
65
+ commands: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
66
+ kind: z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>;
67
+ command: z.ZodString;
68
+ required: z.ZodBoolean;
69
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
70
+ provider: z.ZodOptional<z.ZodEnum<["generic-command", "node-test-junit", "pytest-junit"]>>;
71
+ }, "strict", z.ZodTypeAny, {
72
+ command: string;
73
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
74
+ required: boolean;
75
+ timeoutMs?: number | undefined;
76
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
77
+ }, {
78
+ command: string;
79
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
80
+ required: boolean;
81
+ timeoutMs?: number | undefined;
82
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
83
+ }>, {
84
+ command: string;
85
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
86
+ required: boolean;
87
+ timeoutMs?: number | undefined;
88
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
89
+ }, {
90
+ command: string;
91
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
92
+ required: boolean;
93
+ timeoutMs?: number | undefined;
94
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
95
+ }>, "many">, {
96
+ command: string;
97
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
98
+ required: boolean;
99
+ timeoutMs?: number | undefined;
100
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
101
+ }[], {
102
+ command: string;
103
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
104
+ required: boolean;
105
+ timeoutMs?: number | undefined;
106
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
107
+ }[]>;
108
+ }, "strict", z.ZodTypeAny, {
109
+ commands: {
110
+ command: string;
111
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
112
+ required: boolean;
113
+ timeoutMs?: number | undefined;
114
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
115
+ }[];
116
+ }, {
117
+ commands: {
118
+ command: string;
119
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
120
+ required: boolean;
121
+ timeoutMs?: number | undefined;
122
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
123
+ }[];
124
+ }>;
125
+ }, "strict", z.ZodTypeAny, {
126
+ version: 1;
127
+ project: {
128
+ name: string;
129
+ root: ".";
130
+ packageManager?: string | undefined;
131
+ };
132
+ scanner: {
133
+ include: string[];
134
+ extensions: string[];
135
+ exclude: string[];
136
+ };
137
+ verification: {
138
+ commands: {
139
+ command: string;
140
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
141
+ required: boolean;
142
+ timeoutMs?: number | undefined;
143
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
144
+ }[];
145
+ };
146
+ }, {
147
+ version: 1;
148
+ project: {
149
+ name: string;
150
+ root: ".";
151
+ packageManager?: string | undefined;
152
+ };
153
+ scanner: {
154
+ include: string[];
155
+ extensions: string[];
156
+ exclude: string[];
157
+ };
158
+ verification: {
159
+ commands: {
160
+ command: string;
161
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
162
+ required: boolean;
163
+ timeoutMs?: number | undefined;
164
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
165
+ }[];
166
+ };
167
+ }>;
168
+ export declare const constitutionSchema: z.ZodObject<{
169
+ version: z.ZodLiteral<1>;
170
+ dependencyRules: z.ZodEffects<z.ZodArray<z.ZodObject<{
171
+ id: z.ZodString;
172
+ from: z.ZodEffects<z.ZodString, string, string>;
173
+ cannotImport: z.ZodEffects<z.ZodString, string, string>;
174
+ }, "strict", z.ZodTypeAny, {
175
+ id: string;
176
+ from: string;
177
+ cannotImport: string;
178
+ }, {
179
+ id: string;
180
+ from: string;
181
+ cannotImport: string;
182
+ }>, "many">, {
183
+ id: string;
184
+ from: string;
185
+ cannotImport: string;
186
+ }[], {
187
+ id: string;
188
+ from: string;
189
+ cannotImport: string;
190
+ }[]>;
191
+ sensitivePaths: z.ZodEffects<z.ZodArray<z.ZodObject<{
192
+ id: z.ZodString;
193
+ prefix: z.ZodEffects<z.ZodString, string, string>;
194
+ requiredEvidenceKinds: z.ZodArray<z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>, "many">;
195
+ }, "strict", z.ZodTypeAny, {
196
+ id: string;
197
+ prefix: string;
198
+ requiredEvidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
199
+ }, {
200
+ id: string;
201
+ prefix: string;
202
+ requiredEvidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
203
+ }>, "many">, {
204
+ id: string;
205
+ prefix: string;
206
+ requiredEvidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
207
+ }[], {
208
+ id: string;
209
+ prefix: string;
210
+ requiredEvidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
211
+ }[]>;
212
+ }, "strict", z.ZodTypeAny, {
213
+ version: 1;
214
+ dependencyRules: {
215
+ id: string;
216
+ from: string;
217
+ cannotImport: string;
218
+ }[];
219
+ sensitivePaths: {
220
+ id: string;
221
+ prefix: string;
222
+ requiredEvidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
223
+ }[];
224
+ }, {
225
+ version: 1;
226
+ dependencyRules: {
227
+ id: string;
228
+ from: string;
229
+ cannotImport: string;
230
+ }[];
231
+ sensitivePaths: {
232
+ id: string;
233
+ prefix: string;
234
+ requiredEvidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
235
+ }[];
236
+ }>;
237
+ export declare const requirementSchema: z.ZodObject<{
238
+ id: z.ZodString;
239
+ statement: z.ZodString;
240
+ critical: z.ZodBoolean;
241
+ evidenceKinds: z.ZodArray<z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>, "many">;
242
+ evidenceCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
243
+ evidenceTests: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
244
+ }, "strict", z.ZodTypeAny, {
245
+ id: string;
246
+ statement: string;
247
+ critical: boolean;
248
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
249
+ evidenceCommands?: string[] | undefined;
250
+ evidenceTests?: string[] | undefined;
251
+ }, {
252
+ id: string;
253
+ statement: string;
254
+ critical: boolean;
255
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
256
+ evidenceCommands?: string[] | undefined;
257
+ evidenceTests?: string[] | undefined;
258
+ }>;
259
+ export declare const intentSchema: z.ZodObject<{
260
+ version: z.ZodLiteral<1>;
261
+ id: z.ZodString;
262
+ title: z.ZodString;
263
+ createdAt: z.ZodString;
264
+ requirements: z.ZodEffects<z.ZodArray<z.ZodObject<{
265
+ id: z.ZodString;
266
+ statement: z.ZodString;
267
+ critical: z.ZodBoolean;
268
+ evidenceKinds: z.ZodArray<z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>, "many">;
269
+ evidenceCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
270
+ evidenceTests: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
271
+ }, "strict", z.ZodTypeAny, {
272
+ id: string;
273
+ statement: string;
274
+ critical: boolean;
275
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
276
+ evidenceCommands?: string[] | undefined;
277
+ evidenceTests?: string[] | undefined;
278
+ }, {
279
+ id: string;
280
+ statement: string;
281
+ critical: boolean;
282
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
283
+ evidenceCommands?: string[] | undefined;
284
+ evidenceTests?: string[] | undefined;
285
+ }>, "many">, {
286
+ id: string;
287
+ statement: string;
288
+ critical: boolean;
289
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
290
+ evidenceCommands?: string[] | undefined;
291
+ evidenceTests?: string[] | undefined;
292
+ }[], {
293
+ id: string;
294
+ statement: string;
295
+ critical: boolean;
296
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
297
+ evidenceCommands?: string[] | undefined;
298
+ evidenceTests?: string[] | undefined;
299
+ }[]>;
300
+ preserve: z.ZodArray<z.ZodString, "many">;
301
+ outOfScope: z.ZodArray<z.ZodString, "many">;
302
+ }, "strict", z.ZodTypeAny, {
303
+ version: 1;
304
+ id: string;
305
+ title: string;
306
+ createdAt: string;
307
+ requirements: {
308
+ id: string;
309
+ statement: string;
310
+ critical: boolean;
311
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
312
+ evidenceCommands?: string[] | undefined;
313
+ evidenceTests?: string[] | undefined;
314
+ }[];
315
+ preserve: string[];
316
+ outOfScope: string[];
317
+ }, {
318
+ version: 1;
319
+ id: string;
320
+ title: string;
321
+ createdAt: string;
322
+ requirements: {
323
+ id: string;
324
+ statement: string;
325
+ critical: boolean;
326
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
327
+ evidenceCommands?: string[] | undefined;
328
+ evidenceTests?: string[] | undefined;
329
+ }[];
330
+ preserve: string[];
331
+ outOfScope: string[];
332
+ }>;
333
+ export declare const evidenceRecordSchema: z.ZodObject<{
334
+ version: z.ZodLiteral<1>;
335
+ id: z.ZodString;
336
+ kind: z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>;
337
+ command: z.ZodOptional<z.ZodString>;
338
+ startedAt: z.ZodString;
339
+ finishedAt: z.ZodString;
340
+ durationMs: z.ZodNumber;
341
+ exitCode: z.ZodNumber;
342
+ stdout: z.ZodString;
343
+ stderr: z.ZodString;
344
+ commit: z.ZodOptional<z.ZodString>;
345
+ runId: z.ZodOptional<z.ZodString>;
346
+ repositoryState: z.ZodOptional<z.ZodString>;
347
+ repositoryStateAfter: z.ZodOptional<z.ZodString>;
348
+ termination: z.ZodOptional<z.ZodEnum<["timeout", "output-limit", "spawn-error"]>>;
349
+ provider: z.ZodOptional<z.ZodEnum<["generic-command", "node-test-junit", "pytest-junit"]>>;
350
+ testSummary: z.ZodOptional<z.ZodEffects<z.ZodObject<{
351
+ provider: z.ZodEnum<["node-test-junit", "pytest-junit"]>;
352
+ discovered: z.ZodNumber;
353
+ passed: z.ZodNumber;
354
+ failed: z.ZodNumber;
355
+ skipped: z.ZodNumber;
356
+ cases: z.ZodArray<z.ZodObject<{
357
+ id: z.ZodString;
358
+ name: z.ZodString;
359
+ classname: z.ZodOptional<z.ZodString>;
360
+ file: z.ZodOptional<z.ZodString>;
361
+ status: z.ZodEnum<["passed", "failed", "skipped"]>;
362
+ durationMs: z.ZodOptional<z.ZodNumber>;
363
+ }, "strict", z.ZodTypeAny, {
364
+ status: "passed" | "failed" | "skipped";
365
+ name: string;
366
+ id: string;
367
+ classname?: string | undefined;
368
+ file?: string | undefined;
369
+ durationMs?: number | undefined;
370
+ }, {
371
+ status: "passed" | "failed" | "skipped";
372
+ name: string;
373
+ id: string;
374
+ classname?: string | undefined;
375
+ file?: string | undefined;
376
+ durationMs?: number | undefined;
377
+ }>, "many">;
378
+ }, "strict", z.ZodTypeAny, {
379
+ provider: "node-test-junit" | "pytest-junit";
380
+ passed: number;
381
+ failed: number;
382
+ skipped: number;
383
+ discovered: number;
384
+ cases: {
385
+ status: "passed" | "failed" | "skipped";
386
+ name: string;
387
+ id: string;
388
+ classname?: string | undefined;
389
+ file?: string | undefined;
390
+ durationMs?: number | undefined;
391
+ }[];
392
+ }, {
393
+ provider: "node-test-junit" | "pytest-junit";
394
+ passed: number;
395
+ failed: number;
396
+ skipped: number;
397
+ discovered: number;
398
+ cases: {
399
+ status: "passed" | "failed" | "skipped";
400
+ name: string;
401
+ id: string;
402
+ classname?: string | undefined;
403
+ file?: string | undefined;
404
+ durationMs?: number | undefined;
405
+ }[];
406
+ }>, {
407
+ provider: "node-test-junit" | "pytest-junit";
408
+ passed: number;
409
+ failed: number;
410
+ skipped: number;
411
+ discovered: number;
412
+ cases: {
413
+ status: "passed" | "failed" | "skipped";
414
+ name: string;
415
+ id: string;
416
+ classname?: string | undefined;
417
+ file?: string | undefined;
418
+ durationMs?: number | undefined;
419
+ }[];
420
+ }, {
421
+ provider: "node-test-junit" | "pytest-junit";
422
+ passed: number;
423
+ failed: number;
424
+ skipped: number;
425
+ discovered: number;
426
+ cases: {
427
+ status: "passed" | "failed" | "skipped";
428
+ name: string;
429
+ id: string;
430
+ classname?: string | undefined;
431
+ file?: string | undefined;
432
+ durationMs?: number | undefined;
433
+ }[];
434
+ }>>;
435
+ evidenceError: z.ZodOptional<z.ZodString>;
436
+ }, "strict", z.ZodTypeAny, {
437
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
438
+ version: 1;
439
+ id: string;
440
+ durationMs: number;
441
+ startedAt: string;
442
+ finishedAt: string;
443
+ exitCode: number;
444
+ stdout: string;
445
+ stderr: string;
446
+ command?: string | undefined;
447
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
448
+ commit?: string | undefined;
449
+ runId?: string | undefined;
450
+ repositoryState?: string | undefined;
451
+ repositoryStateAfter?: string | undefined;
452
+ termination?: "timeout" | "output-limit" | "spawn-error" | undefined;
453
+ testSummary?: {
454
+ provider: "node-test-junit" | "pytest-junit";
455
+ passed: number;
456
+ failed: number;
457
+ skipped: number;
458
+ discovered: number;
459
+ cases: {
460
+ status: "passed" | "failed" | "skipped";
461
+ name: string;
462
+ id: string;
463
+ classname?: string | undefined;
464
+ file?: string | undefined;
465
+ durationMs?: number | undefined;
466
+ }[];
467
+ } | undefined;
468
+ evidenceError?: string | undefined;
469
+ }, {
470
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
471
+ version: 1;
472
+ id: string;
473
+ durationMs: number;
474
+ startedAt: string;
475
+ finishedAt: string;
476
+ exitCode: number;
477
+ stdout: string;
478
+ stderr: string;
479
+ command?: string | undefined;
480
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
481
+ commit?: string | undefined;
482
+ runId?: string | undefined;
483
+ repositoryState?: string | undefined;
484
+ repositoryStateAfter?: string | undefined;
485
+ termination?: "timeout" | "output-limit" | "spawn-error" | undefined;
486
+ testSummary?: {
487
+ provider: "node-test-junit" | "pytest-junit";
488
+ passed: number;
489
+ failed: number;
490
+ skipped: number;
491
+ discovered: number;
492
+ cases: {
493
+ status: "passed" | "failed" | "skipped";
494
+ name: string;
495
+ id: string;
496
+ classname?: string | undefined;
497
+ file?: string | undefined;
498
+ durationMs?: number | undefined;
499
+ }[];
500
+ } | undefined;
501
+ evidenceError?: string | undefined;
502
+ }>;
503
+ export declare const claimRecordSchema: z.ZodEffects<z.ZodObject<{
504
+ version: z.ZodDefault<z.ZodLiteral<1>>;
505
+ id: z.ZodString;
506
+ text: z.ZodString;
507
+ createdAt: z.ZodString;
508
+ status: z.ZodLiteral<"UNPROVEN">;
509
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
510
+ intentId: z.ZodOptional<z.ZodString>;
511
+ requirementId: z.ZodOptional<z.ZodString>;
512
+ }, "strict", z.ZodTypeAny, {
513
+ status: "UNPROVEN";
514
+ version: 1;
515
+ id: string;
516
+ createdAt: string;
517
+ text: string;
518
+ evidenceIds: string[];
519
+ intentId?: string | undefined;
520
+ requirementId?: string | undefined;
521
+ }, {
522
+ status: "UNPROVEN";
523
+ id: string;
524
+ createdAt: string;
525
+ text: string;
526
+ version?: 1 | undefined;
527
+ evidenceIds?: string[] | undefined;
528
+ intentId?: string | undefined;
529
+ requirementId?: string | undefined;
530
+ }>, {
531
+ status: "UNPROVEN";
532
+ version: 1;
533
+ id: string;
534
+ createdAt: string;
535
+ text: string;
536
+ evidenceIds: string[];
537
+ intentId?: string | undefined;
538
+ requirementId?: string | undefined;
539
+ }, {
540
+ status: "UNPROVEN";
541
+ id: string;
542
+ createdAt: string;
543
+ text: string;
544
+ version?: 1 | undefined;
545
+ evidenceIds?: string[] | undefined;
546
+ intentId?: string | undefined;
547
+ requirementId?: string | undefined;
548
+ }>;
549
+ export declare const verificationResultSchema: z.ZodObject<{
550
+ version: z.ZodLiteral<1>;
551
+ status: z.ZodEnum<["VERIFIED", "PARTIALLY_VERIFIED", "NOT_VERIFIED", "BLOCKED"]>;
552
+ intentId: z.ZodString;
553
+ generatedAt: z.ZodString;
554
+ requiredCommandResults: z.ZodArray<z.ZodObject<{
555
+ kind: z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>;
556
+ status: z.ZodEnum<["PASS", "FAIL", "MISSING"]>;
557
+ evidenceId: z.ZodOptional<z.ZodString>;
558
+ }, "strict", z.ZodTypeAny, {
559
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
560
+ status: "PASS" | "FAIL" | "MISSING";
561
+ evidenceId?: string | undefined;
562
+ }, {
563
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
564
+ status: "PASS" | "FAIL" | "MISSING";
565
+ evidenceId?: string | undefined;
566
+ }>, "many">;
567
+ requirements: z.ZodArray<z.ZodObject<{
568
+ requirementId: z.ZodString;
569
+ status: z.ZodEnum<["VERIFIED", "UNVERIFIED", "FAILED"]>;
570
+ evidenceIds: z.ZodArray<z.ZodString, "many">;
571
+ reason: z.ZodOptional<z.ZodString>;
572
+ }, "strict", z.ZodTypeAny, {
573
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
574
+ evidenceIds: string[];
575
+ requirementId: string;
576
+ reason?: string | undefined;
577
+ }, {
578
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
579
+ evidenceIds: string[];
580
+ requirementId: string;
581
+ reason?: string | undefined;
582
+ }>, "many">;
583
+ reasons: z.ZodArray<z.ZodString, "many">;
584
+ repositoryState: z.ZodOptional<z.ZodString>;
585
+ }, "strict", z.ZodTypeAny, {
586
+ status: "VERIFIED" | "PARTIALLY_VERIFIED" | "NOT_VERIFIED" | "BLOCKED";
587
+ version: 1;
588
+ requirements: {
589
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
590
+ evidenceIds: string[];
591
+ requirementId: string;
592
+ reason?: string | undefined;
593
+ }[];
594
+ intentId: string;
595
+ generatedAt: string;
596
+ requiredCommandResults: {
597
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
598
+ status: "PASS" | "FAIL" | "MISSING";
599
+ evidenceId?: string | undefined;
600
+ }[];
601
+ reasons: string[];
602
+ repositoryState?: string | undefined;
603
+ }, {
604
+ status: "VERIFIED" | "PARTIALLY_VERIFIED" | "NOT_VERIFIED" | "BLOCKED";
605
+ version: 1;
606
+ requirements: {
607
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
608
+ evidenceIds: string[];
609
+ requirementId: string;
610
+ reason?: string | undefined;
611
+ }[];
612
+ intentId: string;
613
+ generatedAt: string;
614
+ requiredCommandResults: {
615
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
616
+ status: "PASS" | "FAIL" | "MISSING";
617
+ evidenceId?: string | undefined;
618
+ }[];
619
+ reasons: string[];
620
+ repositoryState?: string | undefined;
621
+ }>;
622
+ export declare const proofPackSchema: z.ZodEffects<z.ZodObject<{
623
+ version: z.ZodLiteral<1>;
624
+ projectMindVersion: z.ZodString;
625
+ scope: z.ZodLiteral<"declared-command-checks">;
626
+ id: z.ZodString;
627
+ createdAt: z.ZodString;
628
+ project: z.ZodString;
629
+ commit: z.ZodOptional<z.ZodString>;
630
+ intent: z.ZodObject<{
631
+ version: z.ZodLiteral<1>;
632
+ id: z.ZodString;
633
+ title: z.ZodString;
634
+ createdAt: z.ZodString;
635
+ requirements: z.ZodEffects<z.ZodArray<z.ZodObject<{
636
+ id: z.ZodString;
637
+ statement: z.ZodString;
638
+ critical: z.ZodBoolean;
639
+ evidenceKinds: z.ZodArray<z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>, "many">;
640
+ evidenceCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
641
+ evidenceTests: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
642
+ }, "strict", z.ZodTypeAny, {
643
+ id: string;
644
+ statement: string;
645
+ critical: boolean;
646
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
647
+ evidenceCommands?: string[] | undefined;
648
+ evidenceTests?: string[] | undefined;
649
+ }, {
650
+ id: string;
651
+ statement: string;
652
+ critical: boolean;
653
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
654
+ evidenceCommands?: string[] | undefined;
655
+ evidenceTests?: string[] | undefined;
656
+ }>, "many">, {
657
+ id: string;
658
+ statement: string;
659
+ critical: boolean;
660
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
661
+ evidenceCommands?: string[] | undefined;
662
+ evidenceTests?: string[] | undefined;
663
+ }[], {
664
+ id: string;
665
+ statement: string;
666
+ critical: boolean;
667
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
668
+ evidenceCommands?: string[] | undefined;
669
+ evidenceTests?: string[] | undefined;
670
+ }[]>;
671
+ preserve: z.ZodArray<z.ZodString, "many">;
672
+ outOfScope: z.ZodArray<z.ZodString, "many">;
673
+ }, "strict", z.ZodTypeAny, {
674
+ version: 1;
675
+ id: string;
676
+ title: string;
677
+ createdAt: string;
678
+ requirements: {
679
+ id: string;
680
+ statement: string;
681
+ critical: boolean;
682
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
683
+ evidenceCommands?: string[] | undefined;
684
+ evidenceTests?: string[] | undefined;
685
+ }[];
686
+ preserve: string[];
687
+ outOfScope: string[];
688
+ }, {
689
+ version: 1;
690
+ id: string;
691
+ title: string;
692
+ createdAt: string;
693
+ requirements: {
694
+ id: string;
695
+ statement: string;
696
+ critical: boolean;
697
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
698
+ evidenceCommands?: string[] | undefined;
699
+ evidenceTests?: string[] | undefined;
700
+ }[];
701
+ preserve: string[];
702
+ outOfScope: string[];
703
+ }>;
704
+ change: z.ZodObject<{
705
+ commit: z.ZodOptional<z.ZodString>;
706
+ files: z.ZodArray<z.ZodString, "many">;
707
+ changedSymbols: z.ZodArray<z.ZodObject<{
708
+ id: z.ZodString;
709
+ name: z.ZodString;
710
+ type: z.ZodEnum<["FILE", "MODULE", "FUNCTION", "CLASS", "TEST", "PACKAGE"]>;
711
+ path: z.ZodOptional<z.ZodString>;
712
+ }, "strict", z.ZodTypeAny, {
713
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
714
+ name: string;
715
+ id: string;
716
+ path?: string | undefined;
717
+ }, {
718
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
719
+ name: string;
720
+ id: string;
721
+ path?: string | undefined;
722
+ }>, "many">;
723
+ deletedSymbols: z.ZodOptional<z.ZodArray<z.ZodObject<{
724
+ id: z.ZodString;
725
+ name: z.ZodString;
726
+ type: z.ZodEnum<["FILE", "MODULE", "FUNCTION", "CLASS", "TEST", "PACKAGE"]>;
727
+ path: z.ZodOptional<z.ZodString>;
728
+ }, "strict", z.ZodTypeAny, {
729
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
730
+ name: string;
731
+ id: string;
732
+ path?: string | undefined;
733
+ }, {
734
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
735
+ name: string;
736
+ id: string;
737
+ path?: string | undefined;
738
+ }>, "many">>;
739
+ affectedFiles: z.ZodArray<z.ZodString, "many">;
740
+ }, "strict", z.ZodTypeAny, {
741
+ files: string[];
742
+ changedSymbols: {
743
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
744
+ name: string;
745
+ id: string;
746
+ path?: string | undefined;
747
+ }[];
748
+ affectedFiles: string[];
749
+ commit?: string | undefined;
750
+ deletedSymbols?: {
751
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
752
+ name: string;
753
+ id: string;
754
+ path?: string | undefined;
755
+ }[] | undefined;
756
+ }, {
757
+ files: string[];
758
+ changedSymbols: {
759
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
760
+ name: string;
761
+ id: string;
762
+ path?: string | undefined;
763
+ }[];
764
+ affectedFiles: string[];
765
+ commit?: string | undefined;
766
+ deletedSymbols?: {
767
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
768
+ name: string;
769
+ id: string;
770
+ path?: string | undefined;
771
+ }[] | undefined;
772
+ }>;
773
+ evidence: z.ZodArray<z.ZodObject<{
774
+ version: z.ZodLiteral<1>;
775
+ id: z.ZodString;
776
+ kind: z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>;
777
+ command: z.ZodOptional<z.ZodString>;
778
+ startedAt: z.ZodString;
779
+ finishedAt: z.ZodString;
780
+ durationMs: z.ZodNumber;
781
+ exitCode: z.ZodNumber;
782
+ stdout: z.ZodString;
783
+ stderr: z.ZodString;
784
+ commit: z.ZodOptional<z.ZodString>;
785
+ runId: z.ZodOptional<z.ZodString>;
786
+ repositoryState: z.ZodOptional<z.ZodString>;
787
+ repositoryStateAfter: z.ZodOptional<z.ZodString>;
788
+ termination: z.ZodOptional<z.ZodEnum<["timeout", "output-limit", "spawn-error"]>>;
789
+ provider: z.ZodOptional<z.ZodEnum<["generic-command", "node-test-junit", "pytest-junit"]>>;
790
+ testSummary: z.ZodOptional<z.ZodEffects<z.ZodObject<{
791
+ provider: z.ZodEnum<["node-test-junit", "pytest-junit"]>;
792
+ discovered: z.ZodNumber;
793
+ passed: z.ZodNumber;
794
+ failed: z.ZodNumber;
795
+ skipped: z.ZodNumber;
796
+ cases: z.ZodArray<z.ZodObject<{
797
+ id: z.ZodString;
798
+ name: z.ZodString;
799
+ classname: z.ZodOptional<z.ZodString>;
800
+ file: z.ZodOptional<z.ZodString>;
801
+ status: z.ZodEnum<["passed", "failed", "skipped"]>;
802
+ durationMs: z.ZodOptional<z.ZodNumber>;
803
+ }, "strict", z.ZodTypeAny, {
804
+ status: "passed" | "failed" | "skipped";
805
+ name: string;
806
+ id: string;
807
+ classname?: string | undefined;
808
+ file?: string | undefined;
809
+ durationMs?: number | undefined;
810
+ }, {
811
+ status: "passed" | "failed" | "skipped";
812
+ name: string;
813
+ id: string;
814
+ classname?: string | undefined;
815
+ file?: string | undefined;
816
+ durationMs?: number | undefined;
817
+ }>, "many">;
818
+ }, "strict", z.ZodTypeAny, {
819
+ provider: "node-test-junit" | "pytest-junit";
820
+ passed: number;
821
+ failed: number;
822
+ skipped: number;
823
+ discovered: number;
824
+ cases: {
825
+ status: "passed" | "failed" | "skipped";
826
+ name: string;
827
+ id: string;
828
+ classname?: string | undefined;
829
+ file?: string | undefined;
830
+ durationMs?: number | undefined;
831
+ }[];
832
+ }, {
833
+ provider: "node-test-junit" | "pytest-junit";
834
+ passed: number;
835
+ failed: number;
836
+ skipped: number;
837
+ discovered: number;
838
+ cases: {
839
+ status: "passed" | "failed" | "skipped";
840
+ name: string;
841
+ id: string;
842
+ classname?: string | undefined;
843
+ file?: string | undefined;
844
+ durationMs?: number | undefined;
845
+ }[];
846
+ }>, {
847
+ provider: "node-test-junit" | "pytest-junit";
848
+ passed: number;
849
+ failed: number;
850
+ skipped: number;
851
+ discovered: number;
852
+ cases: {
853
+ status: "passed" | "failed" | "skipped";
854
+ name: string;
855
+ id: string;
856
+ classname?: string | undefined;
857
+ file?: string | undefined;
858
+ durationMs?: number | undefined;
859
+ }[];
860
+ }, {
861
+ provider: "node-test-junit" | "pytest-junit";
862
+ passed: number;
863
+ failed: number;
864
+ skipped: number;
865
+ discovered: number;
866
+ cases: {
867
+ status: "passed" | "failed" | "skipped";
868
+ name: string;
869
+ id: string;
870
+ classname?: string | undefined;
871
+ file?: string | undefined;
872
+ durationMs?: number | undefined;
873
+ }[];
874
+ }>>;
875
+ evidenceError: z.ZodOptional<z.ZodString>;
876
+ }, "strict", z.ZodTypeAny, {
877
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
878
+ version: 1;
879
+ id: string;
880
+ durationMs: number;
881
+ startedAt: string;
882
+ finishedAt: string;
883
+ exitCode: number;
884
+ stdout: string;
885
+ stderr: string;
886
+ command?: string | undefined;
887
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
888
+ commit?: string | undefined;
889
+ runId?: string | undefined;
890
+ repositoryState?: string | undefined;
891
+ repositoryStateAfter?: string | undefined;
892
+ termination?: "timeout" | "output-limit" | "spawn-error" | undefined;
893
+ testSummary?: {
894
+ provider: "node-test-junit" | "pytest-junit";
895
+ passed: number;
896
+ failed: number;
897
+ skipped: number;
898
+ discovered: number;
899
+ cases: {
900
+ status: "passed" | "failed" | "skipped";
901
+ name: string;
902
+ id: string;
903
+ classname?: string | undefined;
904
+ file?: string | undefined;
905
+ durationMs?: number | undefined;
906
+ }[];
907
+ } | undefined;
908
+ evidenceError?: string | undefined;
909
+ }, {
910
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
911
+ version: 1;
912
+ id: string;
913
+ durationMs: number;
914
+ startedAt: string;
915
+ finishedAt: string;
916
+ exitCode: number;
917
+ stdout: string;
918
+ stderr: string;
919
+ command?: string | undefined;
920
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
921
+ commit?: string | undefined;
922
+ runId?: string | undefined;
923
+ repositoryState?: string | undefined;
924
+ repositoryStateAfter?: string | undefined;
925
+ termination?: "timeout" | "output-limit" | "spawn-error" | undefined;
926
+ testSummary?: {
927
+ provider: "node-test-junit" | "pytest-junit";
928
+ passed: number;
929
+ failed: number;
930
+ skipped: number;
931
+ discovered: number;
932
+ cases: {
933
+ status: "passed" | "failed" | "skipped";
934
+ name: string;
935
+ id: string;
936
+ classname?: string | undefined;
937
+ file?: string | undefined;
938
+ durationMs?: number | undefined;
939
+ }[];
940
+ } | undefined;
941
+ evidenceError?: string | undefined;
942
+ }>, "many">;
943
+ verification: z.ZodObject<{
944
+ version: z.ZodLiteral<1>;
945
+ status: z.ZodEnum<["VERIFIED", "PARTIALLY_VERIFIED", "NOT_VERIFIED", "BLOCKED"]>;
946
+ intentId: z.ZodString;
947
+ generatedAt: z.ZodString;
948
+ requiredCommandResults: z.ZodArray<z.ZodObject<{
949
+ kind: z.ZodEnum<["test", "build", "typecheck", "lint", "static", "runtime", "command"]>;
950
+ status: z.ZodEnum<["PASS", "FAIL", "MISSING"]>;
951
+ evidenceId: z.ZodOptional<z.ZodString>;
952
+ }, "strict", z.ZodTypeAny, {
953
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
954
+ status: "PASS" | "FAIL" | "MISSING";
955
+ evidenceId?: string | undefined;
956
+ }, {
957
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
958
+ status: "PASS" | "FAIL" | "MISSING";
959
+ evidenceId?: string | undefined;
960
+ }>, "many">;
961
+ requirements: z.ZodArray<z.ZodObject<{
962
+ requirementId: z.ZodString;
963
+ status: z.ZodEnum<["VERIFIED", "UNVERIFIED", "FAILED"]>;
964
+ evidenceIds: z.ZodArray<z.ZodString, "many">;
965
+ reason: z.ZodOptional<z.ZodString>;
966
+ }, "strict", z.ZodTypeAny, {
967
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
968
+ evidenceIds: string[];
969
+ requirementId: string;
970
+ reason?: string | undefined;
971
+ }, {
972
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
973
+ evidenceIds: string[];
974
+ requirementId: string;
975
+ reason?: string | undefined;
976
+ }>, "many">;
977
+ reasons: z.ZodArray<z.ZodString, "many">;
978
+ repositoryState: z.ZodOptional<z.ZodString>;
979
+ }, "strict", z.ZodTypeAny, {
980
+ status: "VERIFIED" | "PARTIALLY_VERIFIED" | "NOT_VERIFIED" | "BLOCKED";
981
+ version: 1;
982
+ requirements: {
983
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
984
+ evidenceIds: string[];
985
+ requirementId: string;
986
+ reason?: string | undefined;
987
+ }[];
988
+ intentId: string;
989
+ generatedAt: string;
990
+ requiredCommandResults: {
991
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
992
+ status: "PASS" | "FAIL" | "MISSING";
993
+ evidenceId?: string | undefined;
994
+ }[];
995
+ reasons: string[];
996
+ repositoryState?: string | undefined;
997
+ }, {
998
+ status: "VERIFIED" | "PARTIALLY_VERIFIED" | "NOT_VERIFIED" | "BLOCKED";
999
+ version: 1;
1000
+ requirements: {
1001
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
1002
+ evidenceIds: string[];
1003
+ requirementId: string;
1004
+ reason?: string | undefined;
1005
+ }[];
1006
+ intentId: string;
1007
+ generatedAt: string;
1008
+ requiredCommandResults: {
1009
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
1010
+ status: "PASS" | "FAIL" | "MISSING";
1011
+ evidenceId?: string | undefined;
1012
+ }[];
1013
+ reasons: string[];
1014
+ repositoryState?: string | undefined;
1015
+ }>;
1016
+ }, "strict", z.ZodTypeAny, {
1017
+ version: 1;
1018
+ project: string;
1019
+ verification: {
1020
+ status: "VERIFIED" | "PARTIALLY_VERIFIED" | "NOT_VERIFIED" | "BLOCKED";
1021
+ version: 1;
1022
+ requirements: {
1023
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
1024
+ evidenceIds: string[];
1025
+ requirementId: string;
1026
+ reason?: string | undefined;
1027
+ }[];
1028
+ intentId: string;
1029
+ generatedAt: string;
1030
+ requiredCommandResults: {
1031
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
1032
+ status: "PASS" | "FAIL" | "MISSING";
1033
+ evidenceId?: string | undefined;
1034
+ }[];
1035
+ reasons: string[];
1036
+ repositoryState?: string | undefined;
1037
+ };
1038
+ id: string;
1039
+ createdAt: string;
1040
+ projectMindVersion: string;
1041
+ scope: "declared-command-checks";
1042
+ intent: {
1043
+ version: 1;
1044
+ id: string;
1045
+ title: string;
1046
+ createdAt: string;
1047
+ requirements: {
1048
+ id: string;
1049
+ statement: string;
1050
+ critical: boolean;
1051
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
1052
+ evidenceCommands?: string[] | undefined;
1053
+ evidenceTests?: string[] | undefined;
1054
+ }[];
1055
+ preserve: string[];
1056
+ outOfScope: string[];
1057
+ };
1058
+ change: {
1059
+ files: string[];
1060
+ changedSymbols: {
1061
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
1062
+ name: string;
1063
+ id: string;
1064
+ path?: string | undefined;
1065
+ }[];
1066
+ affectedFiles: string[];
1067
+ commit?: string | undefined;
1068
+ deletedSymbols?: {
1069
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
1070
+ name: string;
1071
+ id: string;
1072
+ path?: string | undefined;
1073
+ }[] | undefined;
1074
+ };
1075
+ evidence: {
1076
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
1077
+ version: 1;
1078
+ id: string;
1079
+ durationMs: number;
1080
+ startedAt: string;
1081
+ finishedAt: string;
1082
+ exitCode: number;
1083
+ stdout: string;
1084
+ stderr: string;
1085
+ command?: string | undefined;
1086
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
1087
+ commit?: string | undefined;
1088
+ runId?: string | undefined;
1089
+ repositoryState?: string | undefined;
1090
+ repositoryStateAfter?: string | undefined;
1091
+ termination?: "timeout" | "output-limit" | "spawn-error" | undefined;
1092
+ testSummary?: {
1093
+ provider: "node-test-junit" | "pytest-junit";
1094
+ passed: number;
1095
+ failed: number;
1096
+ skipped: number;
1097
+ discovered: number;
1098
+ cases: {
1099
+ status: "passed" | "failed" | "skipped";
1100
+ name: string;
1101
+ id: string;
1102
+ classname?: string | undefined;
1103
+ file?: string | undefined;
1104
+ durationMs?: number | undefined;
1105
+ }[];
1106
+ } | undefined;
1107
+ evidenceError?: string | undefined;
1108
+ }[];
1109
+ commit?: string | undefined;
1110
+ }, {
1111
+ version: 1;
1112
+ project: string;
1113
+ verification: {
1114
+ status: "VERIFIED" | "PARTIALLY_VERIFIED" | "NOT_VERIFIED" | "BLOCKED";
1115
+ version: 1;
1116
+ requirements: {
1117
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
1118
+ evidenceIds: string[];
1119
+ requirementId: string;
1120
+ reason?: string | undefined;
1121
+ }[];
1122
+ intentId: string;
1123
+ generatedAt: string;
1124
+ requiredCommandResults: {
1125
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
1126
+ status: "PASS" | "FAIL" | "MISSING";
1127
+ evidenceId?: string | undefined;
1128
+ }[];
1129
+ reasons: string[];
1130
+ repositoryState?: string | undefined;
1131
+ };
1132
+ id: string;
1133
+ createdAt: string;
1134
+ projectMindVersion: string;
1135
+ scope: "declared-command-checks";
1136
+ intent: {
1137
+ version: 1;
1138
+ id: string;
1139
+ title: string;
1140
+ createdAt: string;
1141
+ requirements: {
1142
+ id: string;
1143
+ statement: string;
1144
+ critical: boolean;
1145
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
1146
+ evidenceCommands?: string[] | undefined;
1147
+ evidenceTests?: string[] | undefined;
1148
+ }[];
1149
+ preserve: string[];
1150
+ outOfScope: string[];
1151
+ };
1152
+ change: {
1153
+ files: string[];
1154
+ changedSymbols: {
1155
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
1156
+ name: string;
1157
+ id: string;
1158
+ path?: string | undefined;
1159
+ }[];
1160
+ affectedFiles: string[];
1161
+ commit?: string | undefined;
1162
+ deletedSymbols?: {
1163
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
1164
+ name: string;
1165
+ id: string;
1166
+ path?: string | undefined;
1167
+ }[] | undefined;
1168
+ };
1169
+ evidence: {
1170
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
1171
+ version: 1;
1172
+ id: string;
1173
+ durationMs: number;
1174
+ startedAt: string;
1175
+ finishedAt: string;
1176
+ exitCode: number;
1177
+ stdout: string;
1178
+ stderr: string;
1179
+ command?: string | undefined;
1180
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
1181
+ commit?: string | undefined;
1182
+ runId?: string | undefined;
1183
+ repositoryState?: string | undefined;
1184
+ repositoryStateAfter?: string | undefined;
1185
+ termination?: "timeout" | "output-limit" | "spawn-error" | undefined;
1186
+ testSummary?: {
1187
+ provider: "node-test-junit" | "pytest-junit";
1188
+ passed: number;
1189
+ failed: number;
1190
+ skipped: number;
1191
+ discovered: number;
1192
+ cases: {
1193
+ status: "passed" | "failed" | "skipped";
1194
+ name: string;
1195
+ id: string;
1196
+ classname?: string | undefined;
1197
+ file?: string | undefined;
1198
+ durationMs?: number | undefined;
1199
+ }[];
1200
+ } | undefined;
1201
+ evidenceError?: string | undefined;
1202
+ }[];
1203
+ commit?: string | undefined;
1204
+ }>, {
1205
+ version: 1;
1206
+ project: string;
1207
+ verification: {
1208
+ status: "VERIFIED" | "PARTIALLY_VERIFIED" | "NOT_VERIFIED" | "BLOCKED";
1209
+ version: 1;
1210
+ requirements: {
1211
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
1212
+ evidenceIds: string[];
1213
+ requirementId: string;
1214
+ reason?: string | undefined;
1215
+ }[];
1216
+ intentId: string;
1217
+ generatedAt: string;
1218
+ requiredCommandResults: {
1219
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
1220
+ status: "PASS" | "FAIL" | "MISSING";
1221
+ evidenceId?: string | undefined;
1222
+ }[];
1223
+ reasons: string[];
1224
+ repositoryState?: string | undefined;
1225
+ };
1226
+ id: string;
1227
+ createdAt: string;
1228
+ projectMindVersion: string;
1229
+ scope: "declared-command-checks";
1230
+ intent: {
1231
+ version: 1;
1232
+ id: string;
1233
+ title: string;
1234
+ createdAt: string;
1235
+ requirements: {
1236
+ id: string;
1237
+ statement: string;
1238
+ critical: boolean;
1239
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
1240
+ evidenceCommands?: string[] | undefined;
1241
+ evidenceTests?: string[] | undefined;
1242
+ }[];
1243
+ preserve: string[];
1244
+ outOfScope: string[];
1245
+ };
1246
+ change: {
1247
+ files: string[];
1248
+ changedSymbols: {
1249
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
1250
+ name: string;
1251
+ id: string;
1252
+ path?: string | undefined;
1253
+ }[];
1254
+ affectedFiles: string[];
1255
+ commit?: string | undefined;
1256
+ deletedSymbols?: {
1257
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
1258
+ name: string;
1259
+ id: string;
1260
+ path?: string | undefined;
1261
+ }[] | undefined;
1262
+ };
1263
+ evidence: {
1264
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
1265
+ version: 1;
1266
+ id: string;
1267
+ durationMs: number;
1268
+ startedAt: string;
1269
+ finishedAt: string;
1270
+ exitCode: number;
1271
+ stdout: string;
1272
+ stderr: string;
1273
+ command?: string | undefined;
1274
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
1275
+ commit?: string | undefined;
1276
+ runId?: string | undefined;
1277
+ repositoryState?: string | undefined;
1278
+ repositoryStateAfter?: string | undefined;
1279
+ termination?: "timeout" | "output-limit" | "spawn-error" | undefined;
1280
+ testSummary?: {
1281
+ provider: "node-test-junit" | "pytest-junit";
1282
+ passed: number;
1283
+ failed: number;
1284
+ skipped: number;
1285
+ discovered: number;
1286
+ cases: {
1287
+ status: "passed" | "failed" | "skipped";
1288
+ name: string;
1289
+ id: string;
1290
+ classname?: string | undefined;
1291
+ file?: string | undefined;
1292
+ durationMs?: number | undefined;
1293
+ }[];
1294
+ } | undefined;
1295
+ evidenceError?: string | undefined;
1296
+ }[];
1297
+ commit?: string | undefined;
1298
+ }, {
1299
+ version: 1;
1300
+ project: string;
1301
+ verification: {
1302
+ status: "VERIFIED" | "PARTIALLY_VERIFIED" | "NOT_VERIFIED" | "BLOCKED";
1303
+ version: 1;
1304
+ requirements: {
1305
+ status: "VERIFIED" | "UNVERIFIED" | "FAILED";
1306
+ evidenceIds: string[];
1307
+ requirementId: string;
1308
+ reason?: string | undefined;
1309
+ }[];
1310
+ intentId: string;
1311
+ generatedAt: string;
1312
+ requiredCommandResults: {
1313
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
1314
+ status: "PASS" | "FAIL" | "MISSING";
1315
+ evidenceId?: string | undefined;
1316
+ }[];
1317
+ reasons: string[];
1318
+ repositoryState?: string | undefined;
1319
+ };
1320
+ id: string;
1321
+ createdAt: string;
1322
+ projectMindVersion: string;
1323
+ scope: "declared-command-checks";
1324
+ intent: {
1325
+ version: 1;
1326
+ id: string;
1327
+ title: string;
1328
+ createdAt: string;
1329
+ requirements: {
1330
+ id: string;
1331
+ statement: string;
1332
+ critical: boolean;
1333
+ evidenceKinds: ("test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command")[];
1334
+ evidenceCommands?: string[] | undefined;
1335
+ evidenceTests?: string[] | undefined;
1336
+ }[];
1337
+ preserve: string[];
1338
+ outOfScope: string[];
1339
+ };
1340
+ change: {
1341
+ files: string[];
1342
+ changedSymbols: {
1343
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
1344
+ name: string;
1345
+ id: string;
1346
+ path?: string | undefined;
1347
+ }[];
1348
+ affectedFiles: string[];
1349
+ commit?: string | undefined;
1350
+ deletedSymbols?: {
1351
+ type: "FILE" | "MODULE" | "FUNCTION" | "CLASS" | "TEST" | "PACKAGE";
1352
+ name: string;
1353
+ id: string;
1354
+ path?: string | undefined;
1355
+ }[] | undefined;
1356
+ };
1357
+ evidence: {
1358
+ kind: "test" | "build" | "typecheck" | "lint" | "static" | "runtime" | "command";
1359
+ version: 1;
1360
+ id: string;
1361
+ durationMs: number;
1362
+ startedAt: string;
1363
+ finishedAt: string;
1364
+ exitCode: number;
1365
+ stdout: string;
1366
+ stderr: string;
1367
+ command?: string | undefined;
1368
+ provider?: "generic-command" | "node-test-junit" | "pytest-junit" | undefined;
1369
+ commit?: string | undefined;
1370
+ runId?: string | undefined;
1371
+ repositoryState?: string | undefined;
1372
+ repositoryStateAfter?: string | undefined;
1373
+ termination?: "timeout" | "output-limit" | "spawn-error" | undefined;
1374
+ testSummary?: {
1375
+ provider: "node-test-junit" | "pytest-junit";
1376
+ passed: number;
1377
+ failed: number;
1378
+ skipped: number;
1379
+ discovered: number;
1380
+ cases: {
1381
+ status: "passed" | "failed" | "skipped";
1382
+ name: string;
1383
+ id: string;
1384
+ classname?: string | undefined;
1385
+ file?: string | undefined;
1386
+ durationMs?: number | undefined;
1387
+ }[];
1388
+ } | undefined;
1389
+ evidenceError?: string | undefined;
1390
+ }[];
1391
+ commit?: string | undefined;
1392
+ }>;