audit-tools 0.55.8 → 0.55.10
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/dist/audit/cli/auditStep.d.ts +1 -1
- package/dist/audit/cli/dispatch/packetFilter.d.ts +1 -1
- package/dist/audit/cli/functionalPreflight.d.ts +4 -4
- package/dist/audit/cli/sampleRunCommand.d.ts +1 -1
- package/dist/audit/cli/steps.d.ts +2 -2
- package/dist/audit/contracts/workerSchemas.d.ts +14 -14
- package/dist/audit/contracts/wrapperResponse.d.ts +8 -8
- package/dist/audit/orchestrator/requeueCommand.d.ts +1 -1
- package/dist/audit/types/auditState.d.ts +2 -2
- package/dist/audit/types/reviewPlanning.d.ts +2 -2
- package/dist/audit/types.d.ts +12 -12
- package/dist/remediate/intake.d.ts +2 -2
- package/dist/shared/analyzers/acquisitionEngine.d.ts +10 -3
- package/dist/shared/analyzers/acquisitionEngine.d.ts.map +1 -1
- package/dist/shared/analyzers/acquisitionEngine.js +218 -164
- package/dist/shared/analyzers/acquisitionEngine.js.map +1 -1
- package/dist/shared/analyzers/candidates.d.ts +1 -6
- package/dist/shared/analyzers/candidates.d.ts.map +1 -1
- package/dist/shared/analyzers/candidates.js +60 -42
- package/dist/shared/analyzers/candidates.js.map +1 -1
- package/dist/shared/analyzers/types.d.ts +2 -0
- package/dist/shared/analyzers/types.d.ts.map +1 -1
- package/dist/shared/analyzers/types.js +1 -0
- package/dist/shared/analyzers/types.js.map +1 -1
- package/dist/shared/tooling/allowlistedExec.d.ts +3 -0
- package/dist/shared/tooling/allowlistedExec.d.ts.map +1 -1
- package/dist/shared/tooling/allowlistedExec.js +54 -31
- package/dist/shared/tooling/allowlistedExec.js.map +1 -1
- package/dist/shared/tooling/exec.d.ts +4 -1
- package/dist/shared/tooling/exec.d.ts.map +1 -1
- package/dist/shared/tooling/exec.js +76 -71
- package/dist/shared/tooling/exec.js.map +1 -1
- package/dist/shared/tooling/ownedProcessLifecycle.d.ts +30 -0
- package/dist/shared/tooling/ownedProcessLifecycle.d.ts.map +1 -0
- package/dist/shared/tooling/ownedProcessLifecycle.js +99 -0
- package/dist/shared/tooling/ownedProcessLifecycle.js.map +1 -0
- package/dist/shared/tooling/windowsOwnedJob.d.ts +35 -0
- package/dist/shared/tooling/windowsOwnedJob.d.ts.map +1 -0
- package/dist/shared/tooling/windowsOwnedJob.js +145 -0
- package/dist/shared/tooling/windowsOwnedJob.js.map +1 -0
- package/package.json +2 -1
|
@@ -113,7 +113,7 @@ export declare function ingestBatchAuditResults(options: {
|
|
|
113
113
|
batchFiles: string[];
|
|
114
114
|
bundle: ArtifactBundle;
|
|
115
115
|
audit_state: {
|
|
116
|
-
status: "
|
|
116
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
117
117
|
obligations: {
|
|
118
118
|
state: "not_applicable" | "blocked" | "missing" | "present" | "stale" | "satisfied";
|
|
119
119
|
id: string;
|
|
@@ -15,6 +15,7 @@ export declare function buildPendingAuditTasks(bundle: ArtifactBundle): {
|
|
|
15
15
|
status?: "pending" | "complete" | undefined;
|
|
16
16
|
tags?: string[] | undefined;
|
|
17
17
|
token_estimate?: number | undefined;
|
|
18
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
18
19
|
inputs?: Record<string, string> | undefined;
|
|
19
20
|
completed_at?: string | undefined;
|
|
20
21
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -31,7 +32,6 @@ export declare function buildPendingAuditTasks(bundle: ArtifactBundle): {
|
|
|
31
32
|
score: number;
|
|
32
33
|
prior_findings: Record<string, number>;
|
|
33
34
|
}[] | undefined;
|
|
34
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
35
35
|
risk_estimate?: number | undefined;
|
|
36
36
|
completion_reason?: string | undefined;
|
|
37
37
|
}[];
|
|
@@ -39,7 +39,7 @@ export declare const FunctionalPreflightSchema: z.ZodEffects<z.ZodObject<{
|
|
|
39
39
|
evidence: string;
|
|
40
40
|
available: boolean;
|
|
41
41
|
};
|
|
42
|
-
decision: "degraded" | "
|
|
42
|
+
decision: "degraded" | "ready" | "stop";
|
|
43
43
|
operator_approved_degraded: boolean;
|
|
44
44
|
limitation?: string | undefined;
|
|
45
45
|
}, {
|
|
@@ -54,7 +54,7 @@ export declare const FunctionalPreflightSchema: z.ZodEffects<z.ZodObject<{
|
|
|
54
54
|
evidence: string;
|
|
55
55
|
available: boolean;
|
|
56
56
|
};
|
|
57
|
-
decision: "degraded" | "
|
|
57
|
+
decision: "degraded" | "ready" | "stop";
|
|
58
58
|
operator_approved_degraded?: boolean | undefined;
|
|
59
59
|
limitation?: string | undefined;
|
|
60
60
|
}>, {
|
|
@@ -69,7 +69,7 @@ export declare const FunctionalPreflightSchema: z.ZodEffects<z.ZodObject<{
|
|
|
69
69
|
evidence: string;
|
|
70
70
|
available: boolean;
|
|
71
71
|
};
|
|
72
|
-
decision: "degraded" | "
|
|
72
|
+
decision: "degraded" | "ready" | "stop";
|
|
73
73
|
operator_approved_degraded: boolean;
|
|
74
74
|
limitation?: string | undefined;
|
|
75
75
|
}, {
|
|
@@ -84,7 +84,7 @@ export declare const FunctionalPreflightSchema: z.ZodEffects<z.ZodObject<{
|
|
|
84
84
|
evidence: string;
|
|
85
85
|
available: boolean;
|
|
86
86
|
};
|
|
87
|
-
decision: "degraded" | "
|
|
87
|
+
decision: "degraded" | "ready" | "stop";
|
|
88
88
|
operator_approved_degraded?: boolean | undefined;
|
|
89
89
|
limitation?: string | undefined;
|
|
90
90
|
}>;
|
|
@@ -202,6 +202,7 @@ export declare function buildSampleAuditBundle(findings?: Finding[]): Promise<{
|
|
|
202
202
|
status?: "pending" | "complete" | undefined;
|
|
203
203
|
tags?: string[] | undefined;
|
|
204
204
|
token_estimate?: number | undefined;
|
|
205
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
205
206
|
inputs?: Record<string, string> | undefined;
|
|
206
207
|
completed_at?: string | undefined;
|
|
207
208
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -218,7 +219,6 @@ export declare function buildSampleAuditBundle(findings?: Finding[]): Promise<{
|
|
|
218
219
|
score: number;
|
|
219
220
|
prior_findings: Record<string, number>;
|
|
220
221
|
}[] | undefined;
|
|
221
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
222
222
|
risk_estimate?: number | undefined;
|
|
223
223
|
completion_reason?: string | undefined;
|
|
224
224
|
}[] | undefined;
|
|
@@ -185,7 +185,7 @@ export declare const StepArtifactSchema: z.ZodObject<{
|
|
|
185
185
|
}[];
|
|
186
186
|
}>>;
|
|
187
187
|
}, "strict", z.ZodTypeAny, {
|
|
188
|
-
status: "
|
|
188
|
+
status: "ready" | "blocked" | "complete";
|
|
189
189
|
run_id: string | null;
|
|
190
190
|
contract_version: "audit-code-step/v1alpha1";
|
|
191
191
|
prompt_path: string;
|
|
@@ -224,7 +224,7 @@ export declare const StepArtifactSchema: z.ZodObject<{
|
|
|
224
224
|
}[];
|
|
225
225
|
} | undefined;
|
|
226
226
|
}, {
|
|
227
|
-
status: "
|
|
227
|
+
status: "ready" | "blocked" | "complete";
|
|
228
228
|
run_id: string | null;
|
|
229
229
|
contract_version: "audit-code-step/v1alpha1";
|
|
230
230
|
prompt_path: string;
|
|
@@ -368,6 +368,7 @@ export declare const WorkerAuditTaskSchema: z.ZodObject<{
|
|
|
368
368
|
status?: "pending" | "complete" | undefined;
|
|
369
369
|
tags?: string[] | undefined;
|
|
370
370
|
token_estimate?: number | undefined;
|
|
371
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
371
372
|
inputs?: Record<string, string> | undefined;
|
|
372
373
|
completed_at?: string | undefined;
|
|
373
374
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -384,7 +385,6 @@ export declare const WorkerAuditTaskSchema: z.ZodObject<{
|
|
|
384
385
|
score: number;
|
|
385
386
|
prior_findings: Record<string, number>;
|
|
386
387
|
}[] | undefined;
|
|
387
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
388
388
|
risk_estimate?: number | undefined;
|
|
389
389
|
completion_reason?: string | undefined;
|
|
390
390
|
}, {
|
|
@@ -397,6 +397,7 @@ export declare const WorkerAuditTaskSchema: z.ZodObject<{
|
|
|
397
397
|
status?: "pending" | "complete" | undefined;
|
|
398
398
|
tags?: string[] | undefined;
|
|
399
399
|
token_estimate?: number | undefined;
|
|
400
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
400
401
|
inputs?: Record<string, string> | undefined;
|
|
401
402
|
completed_at?: string | undefined;
|
|
402
403
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -413,7 +414,6 @@ export declare const WorkerAuditTaskSchema: z.ZodObject<{
|
|
|
413
414
|
score: number;
|
|
414
415
|
prior_findings: Record<string, number>;
|
|
415
416
|
}[] | undefined;
|
|
416
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
417
417
|
risk_estimate?: number | undefined;
|
|
418
418
|
completion_reason?: string | undefined;
|
|
419
419
|
}>;
|
|
@@ -756,6 +756,7 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
756
756
|
status?: "pending" | "complete" | undefined;
|
|
757
757
|
tags?: string[] | undefined;
|
|
758
758
|
token_estimate?: number | undefined;
|
|
759
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
759
760
|
inputs?: Record<string, string> | undefined;
|
|
760
761
|
completed_at?: string | undefined;
|
|
761
762
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -772,7 +773,6 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
772
773
|
score: number;
|
|
773
774
|
prior_findings: Record<string, number>;
|
|
774
775
|
}[] | undefined;
|
|
775
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
776
776
|
risk_estimate?: number | undefined;
|
|
777
777
|
completion_reason?: string | undefined;
|
|
778
778
|
}, {
|
|
@@ -785,6 +785,7 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
785
785
|
status?: "pending" | "complete" | undefined;
|
|
786
786
|
tags?: string[] | undefined;
|
|
787
787
|
token_estimate?: number | undefined;
|
|
788
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
788
789
|
inputs?: Record<string, string> | undefined;
|
|
789
790
|
completed_at?: string | undefined;
|
|
790
791
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -801,7 +802,6 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
801
802
|
score: number;
|
|
802
803
|
prior_findings: Record<string, number>;
|
|
803
804
|
}[] | undefined;
|
|
804
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
805
805
|
risk_estimate?: number | undefined;
|
|
806
806
|
completion_reason?: string | undefined;
|
|
807
807
|
}>, "many">>;
|
|
@@ -821,6 +821,7 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
821
821
|
status?: "pending" | "complete" | undefined;
|
|
822
822
|
tags?: string[] | undefined;
|
|
823
823
|
token_estimate?: number | undefined;
|
|
824
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
824
825
|
inputs?: Record<string, string> | undefined;
|
|
825
826
|
completed_at?: string | undefined;
|
|
826
827
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -837,7 +838,6 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
837
838
|
score: number;
|
|
838
839
|
prior_findings: Record<string, number>;
|
|
839
840
|
}[] | undefined;
|
|
840
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
841
841
|
risk_estimate?: number | undefined;
|
|
842
842
|
completion_reason?: string | undefined;
|
|
843
843
|
}[] | undefined;
|
|
@@ -858,6 +858,7 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
858
858
|
status?: "pending" | "complete" | undefined;
|
|
859
859
|
tags?: string[] | undefined;
|
|
860
860
|
token_estimate?: number | undefined;
|
|
861
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
861
862
|
inputs?: Record<string, string> | undefined;
|
|
862
863
|
completed_at?: string | undefined;
|
|
863
864
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -874,7 +875,6 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
874
875
|
score: number;
|
|
875
876
|
prior_findings: Record<string, number>;
|
|
876
877
|
}[] | undefined;
|
|
877
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
878
878
|
risk_estimate?: number | undefined;
|
|
879
879
|
completion_reason?: string | undefined;
|
|
880
880
|
}[] | undefined;
|
|
@@ -964,6 +964,7 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
964
964
|
status?: "pending" | "complete" | undefined;
|
|
965
965
|
tags?: string[] | undefined;
|
|
966
966
|
token_estimate?: number | undefined;
|
|
967
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
967
968
|
inputs?: Record<string, string> | undefined;
|
|
968
969
|
completed_at?: string | undefined;
|
|
969
970
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -980,7 +981,6 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
980
981
|
score: number;
|
|
981
982
|
prior_findings: Record<string, number>;
|
|
982
983
|
}[] | undefined;
|
|
983
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
984
984
|
risk_estimate?: number | undefined;
|
|
985
985
|
completion_reason?: string | undefined;
|
|
986
986
|
}[] | undefined;
|
|
@@ -1074,6 +1074,7 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
1074
1074
|
status?: "pending" | "complete" | undefined;
|
|
1075
1075
|
tags?: string[] | undefined;
|
|
1076
1076
|
token_estimate?: number | undefined;
|
|
1077
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1077
1078
|
inputs?: Record<string, string> | undefined;
|
|
1078
1079
|
completed_at?: string | undefined;
|
|
1079
1080
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1090,7 +1091,6 @@ export declare const WorkerAuditResultSchema: z.ZodObject<{
|
|
|
1090
1091
|
score: number;
|
|
1091
1092
|
prior_findings: Record<string, number>;
|
|
1092
1093
|
}[] | undefined;
|
|
1093
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1094
1094
|
risk_estimate?: number | undefined;
|
|
1095
1095
|
completion_reason?: string | undefined;
|
|
1096
1096
|
}[] | undefined;
|
|
@@ -1441,6 +1441,7 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1441
1441
|
status?: "pending" | "complete" | undefined;
|
|
1442
1442
|
tags?: string[] | undefined;
|
|
1443
1443
|
token_estimate?: number | undefined;
|
|
1444
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1444
1445
|
inputs?: Record<string, string> | undefined;
|
|
1445
1446
|
completed_at?: string | undefined;
|
|
1446
1447
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1457,7 +1458,6 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1457
1458
|
score: number;
|
|
1458
1459
|
prior_findings: Record<string, number>;
|
|
1459
1460
|
}[] | undefined;
|
|
1460
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1461
1461
|
risk_estimate?: number | undefined;
|
|
1462
1462
|
completion_reason?: string | undefined;
|
|
1463
1463
|
}, {
|
|
@@ -1470,6 +1470,7 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1470
1470
|
status?: "pending" | "complete" | undefined;
|
|
1471
1471
|
tags?: string[] | undefined;
|
|
1472
1472
|
token_estimate?: number | undefined;
|
|
1473
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1473
1474
|
inputs?: Record<string, string> | undefined;
|
|
1474
1475
|
completed_at?: string | undefined;
|
|
1475
1476
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1486,7 +1487,6 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1486
1487
|
score: number;
|
|
1487
1488
|
prior_findings: Record<string, number>;
|
|
1488
1489
|
}[] | undefined;
|
|
1489
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1490
1490
|
risk_estimate?: number | undefined;
|
|
1491
1491
|
completion_reason?: string | undefined;
|
|
1492
1492
|
}>, "many">>;
|
|
@@ -1506,6 +1506,7 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1506
1506
|
status?: "pending" | "complete" | undefined;
|
|
1507
1507
|
tags?: string[] | undefined;
|
|
1508
1508
|
token_estimate?: number | undefined;
|
|
1509
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1509
1510
|
inputs?: Record<string, string> | undefined;
|
|
1510
1511
|
completed_at?: string | undefined;
|
|
1511
1512
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1522,7 +1523,6 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1522
1523
|
score: number;
|
|
1523
1524
|
prior_findings: Record<string, number>;
|
|
1524
1525
|
}[] | undefined;
|
|
1525
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1526
1526
|
risk_estimate?: number | undefined;
|
|
1527
1527
|
completion_reason?: string | undefined;
|
|
1528
1528
|
}[] | undefined;
|
|
@@ -1543,6 +1543,7 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1543
1543
|
status?: "pending" | "complete" | undefined;
|
|
1544
1544
|
tags?: string[] | undefined;
|
|
1545
1545
|
token_estimate?: number | undefined;
|
|
1546
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1546
1547
|
inputs?: Record<string, string> | undefined;
|
|
1547
1548
|
completed_at?: string | undefined;
|
|
1548
1549
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1559,7 +1560,6 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1559
1560
|
score: number;
|
|
1560
1561
|
prior_findings: Record<string, number>;
|
|
1561
1562
|
}[] | undefined;
|
|
1562
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1563
1563
|
risk_estimate?: number | undefined;
|
|
1564
1564
|
completion_reason?: string | undefined;
|
|
1565
1565
|
}[] | undefined;
|
|
@@ -1649,6 +1649,7 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1649
1649
|
status?: "pending" | "complete" | undefined;
|
|
1650
1650
|
tags?: string[] | undefined;
|
|
1651
1651
|
token_estimate?: number | undefined;
|
|
1652
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1652
1653
|
inputs?: Record<string, string> | undefined;
|
|
1653
1654
|
completed_at?: string | undefined;
|
|
1654
1655
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1665,7 +1666,6 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1665
1666
|
score: number;
|
|
1666
1667
|
prior_findings: Record<string, number>;
|
|
1667
1668
|
}[] | undefined;
|
|
1668
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1669
1669
|
risk_estimate?: number | undefined;
|
|
1670
1670
|
completion_reason?: string | undefined;
|
|
1671
1671
|
}[] | undefined;
|
|
@@ -1759,6 +1759,7 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1759
1759
|
status?: "pending" | "complete" | undefined;
|
|
1760
1760
|
tags?: string[] | undefined;
|
|
1761
1761
|
token_estimate?: number | undefined;
|
|
1762
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1762
1763
|
inputs?: Record<string, string> | undefined;
|
|
1763
1764
|
completed_at?: string | undefined;
|
|
1764
1765
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1775,7 +1776,6 @@ export declare const WorkerAuditResultsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1775
1776
|
score: number;
|
|
1776
1777
|
prior_findings: Record<string, number>;
|
|
1777
1778
|
}[] | undefined;
|
|
1778
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1779
1779
|
risk_estimate?: number | undefined;
|
|
1780
1780
|
completion_reason?: string | undefined;
|
|
1781
1781
|
}[] | undefined;
|
|
@@ -44,7 +44,7 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
44
44
|
reason?: string | undefined;
|
|
45
45
|
}>, "many">;
|
|
46
46
|
}, "strict", z.ZodTypeAny, {
|
|
47
|
-
status: "
|
|
47
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
48
48
|
obligations: {
|
|
49
49
|
state: "not_applicable" | "blocked" | "missing" | "present" | "stale" | "satisfied";
|
|
50
50
|
id: string;
|
|
@@ -54,7 +54,7 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
54
54
|
last_obligation?: string | undefined;
|
|
55
55
|
blockers?: string[] | undefined;
|
|
56
56
|
}, {
|
|
57
|
-
status: "
|
|
57
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
58
58
|
obligations: {
|
|
59
59
|
state: "not_applicable" | "blocked" | "missing" | "present" | "stale" | "satisfied";
|
|
60
60
|
id: string;
|
|
@@ -149,7 +149,7 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
149
149
|
quick_start: z.ZodOptional<z.ZodString>;
|
|
150
150
|
file_map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
151
151
|
}, "strict", z.ZodTypeAny, {
|
|
152
|
-
status: "
|
|
152
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
153
153
|
summary: string;
|
|
154
154
|
repo_root: string;
|
|
155
155
|
artifacts_dir: string;
|
|
@@ -183,7 +183,7 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
183
183
|
quick_start?: string | undefined;
|
|
184
184
|
file_map?: Record<string, string> | undefined;
|
|
185
185
|
}, {
|
|
186
|
-
status: "
|
|
186
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
187
187
|
summary: string;
|
|
188
188
|
repo_root: string;
|
|
189
189
|
artifacts_dir: string;
|
|
@@ -220,7 +220,7 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
220
220
|
}, "strict", z.ZodTypeAny, {
|
|
221
221
|
contract_version: "audit-code/v1alpha1";
|
|
222
222
|
audit_state: {
|
|
223
|
-
status: "
|
|
223
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
224
224
|
obligations: {
|
|
225
225
|
state: "not_applicable" | "blocked" | "missing" | "present" | "stale" | "satisfied";
|
|
226
226
|
id: string;
|
|
@@ -237,7 +237,7 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
237
237
|
progress_made: boolean;
|
|
238
238
|
next_likely_step: string | null;
|
|
239
239
|
handoff?: {
|
|
240
|
-
status: "
|
|
240
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
241
241
|
summary: string;
|
|
242
242
|
repo_root: string;
|
|
243
243
|
artifacts_dir: string;
|
|
@@ -274,7 +274,7 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
274
274
|
}, {
|
|
275
275
|
contract_version: "audit-code/v1alpha1";
|
|
276
276
|
audit_state: {
|
|
277
|
-
status: "
|
|
277
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
278
278
|
obligations: {
|
|
279
279
|
state: "not_applicable" | "blocked" | "missing" | "present" | "stale" | "satisfied";
|
|
280
280
|
id: string;
|
|
@@ -291,7 +291,7 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
291
291
|
progress_made: boolean;
|
|
292
292
|
next_likely_step: string | null;
|
|
293
293
|
handoff?: {
|
|
294
|
-
status: "
|
|
294
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
295
295
|
summary: string;
|
|
296
296
|
repo_root: string;
|
|
297
297
|
artifacts_dir: string;
|
|
@@ -19,6 +19,7 @@ export declare function buildRequeuePayload(matrix: CoverageMatrix, criticalFlow
|
|
|
19
19
|
status?: "pending" | "complete" | undefined;
|
|
20
20
|
tags?: string[] | undefined;
|
|
21
21
|
token_estimate?: number | undefined;
|
|
22
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
22
23
|
inputs?: Record<string, string> | undefined;
|
|
23
24
|
completed_at?: string | undefined;
|
|
24
25
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -35,7 +36,6 @@ export declare function buildRequeuePayload(matrix: CoverageMatrix, criticalFlow
|
|
|
35
36
|
score: number;
|
|
36
37
|
prior_findings: Record<string, number>;
|
|
37
38
|
}[] | undefined;
|
|
38
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
39
39
|
risk_estimate?: number | undefined;
|
|
40
40
|
completion_reason?: string | undefined;
|
|
41
41
|
}[];
|
|
@@ -35,7 +35,7 @@ export declare const AuditStateSchema: z.ZodObject<{
|
|
|
35
35
|
reason?: string | undefined;
|
|
36
36
|
}>, "many">;
|
|
37
37
|
}, "strict", z.ZodTypeAny, {
|
|
38
|
-
status: "
|
|
38
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
39
39
|
obligations: {
|
|
40
40
|
state: "not_applicable" | "blocked" | "missing" | "present" | "stale" | "satisfied";
|
|
41
41
|
id: string;
|
|
@@ -45,7 +45,7 @@ export declare const AuditStateSchema: z.ZodObject<{
|
|
|
45
45
|
last_obligation?: string | undefined;
|
|
46
46
|
blockers?: string[] | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
status: "
|
|
48
|
+
status: "active" | "blocked" | "complete" | "not_started";
|
|
49
49
|
obligations: {
|
|
50
50
|
state: "not_applicable" | "blocked" | "missing" | "present" | "stale" | "satisfied";
|
|
51
51
|
id: string;
|
|
@@ -124,9 +124,9 @@ export declare const ReviewPacketSchema: z.ZodObject<{
|
|
|
124
124
|
file_paths: string[];
|
|
125
125
|
unit_ids: string[];
|
|
126
126
|
rationale: string;
|
|
127
|
+
priority: "high" | "low" | "medium";
|
|
127
128
|
file_line_counts: Record<string, number>;
|
|
128
129
|
total_lines: number;
|
|
129
|
-
priority: "high" | "low" | "medium";
|
|
130
130
|
packet_id: string;
|
|
131
131
|
task_ids: string[];
|
|
132
132
|
pass_ids: string[];
|
|
@@ -153,9 +153,9 @@ export declare const ReviewPacketSchema: z.ZodObject<{
|
|
|
153
153
|
file_paths: string[];
|
|
154
154
|
unit_ids: string[];
|
|
155
155
|
rationale: string;
|
|
156
|
+
priority: "high" | "low" | "medium";
|
|
156
157
|
file_line_counts: Record<string, number>;
|
|
157
158
|
total_lines: number;
|
|
158
|
-
priority: "high" | "low" | "medium";
|
|
159
159
|
packet_id: string;
|
|
160
160
|
task_ids: string[];
|
|
161
161
|
pass_ids: string[];
|
package/dist/audit/types.d.ts
CHANGED
|
@@ -395,6 +395,7 @@ export declare const AuditTaskSchema: z.ZodObject<{
|
|
|
395
395
|
status?: "pending" | "complete" | undefined;
|
|
396
396
|
tags?: string[] | undefined;
|
|
397
397
|
token_estimate?: number | undefined;
|
|
398
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
398
399
|
inputs?: Record<string, string> | undefined;
|
|
399
400
|
completed_at?: string | undefined;
|
|
400
401
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -411,7 +412,6 @@ export declare const AuditTaskSchema: z.ZodObject<{
|
|
|
411
412
|
score: number;
|
|
412
413
|
prior_findings: Record<string, number>;
|
|
413
414
|
}[] | undefined;
|
|
414
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
415
415
|
risk_estimate?: number | undefined;
|
|
416
416
|
completion_reason?: string | undefined;
|
|
417
417
|
}, {
|
|
@@ -424,6 +424,7 @@ export declare const AuditTaskSchema: z.ZodObject<{
|
|
|
424
424
|
status?: "pending" | "complete" | undefined;
|
|
425
425
|
tags?: string[] | undefined;
|
|
426
426
|
token_estimate?: number | undefined;
|
|
427
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
427
428
|
inputs?: Record<string, string> | undefined;
|
|
428
429
|
completed_at?: string | undefined;
|
|
429
430
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -440,7 +441,6 @@ export declare const AuditTaskSchema: z.ZodObject<{
|
|
|
440
441
|
score: number;
|
|
441
442
|
prior_findings: Record<string, number>;
|
|
442
443
|
}[] | undefined;
|
|
443
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
444
444
|
risk_estimate?: number | undefined;
|
|
445
445
|
completion_reason?: string | undefined;
|
|
446
446
|
}>;
|
|
@@ -564,6 +564,7 @@ export declare const AuditVerificationSchema: z.ZodObject<{
|
|
|
564
564
|
status?: "pending" | "complete" | undefined;
|
|
565
565
|
tags?: string[] | undefined;
|
|
566
566
|
token_estimate?: number | undefined;
|
|
567
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
567
568
|
inputs?: Record<string, string> | undefined;
|
|
568
569
|
completed_at?: string | undefined;
|
|
569
570
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -580,7 +581,6 @@ export declare const AuditVerificationSchema: z.ZodObject<{
|
|
|
580
581
|
score: number;
|
|
581
582
|
prior_findings: Record<string, number>;
|
|
582
583
|
}[] | undefined;
|
|
583
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
584
584
|
risk_estimate?: number | undefined;
|
|
585
585
|
completion_reason?: string | undefined;
|
|
586
586
|
}, {
|
|
@@ -593,6 +593,7 @@ export declare const AuditVerificationSchema: z.ZodObject<{
|
|
|
593
593
|
status?: "pending" | "complete" | undefined;
|
|
594
594
|
tags?: string[] | undefined;
|
|
595
595
|
token_estimate?: number | undefined;
|
|
596
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
596
597
|
inputs?: Record<string, string> | undefined;
|
|
597
598
|
completed_at?: string | undefined;
|
|
598
599
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -609,7 +610,6 @@ export declare const AuditVerificationSchema: z.ZodObject<{
|
|
|
609
610
|
score: number;
|
|
610
611
|
prior_findings: Record<string, number>;
|
|
611
612
|
}[] | undefined;
|
|
612
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
613
613
|
risk_estimate?: number | undefined;
|
|
614
614
|
completion_reason?: string | undefined;
|
|
615
615
|
}>, "many">>;
|
|
@@ -629,6 +629,7 @@ export declare const AuditVerificationSchema: z.ZodObject<{
|
|
|
629
629
|
status?: "pending" | "complete" | undefined;
|
|
630
630
|
tags?: string[] | undefined;
|
|
631
631
|
token_estimate?: number | undefined;
|
|
632
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
632
633
|
inputs?: Record<string, string> | undefined;
|
|
633
634
|
completed_at?: string | undefined;
|
|
634
635
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -645,7 +646,6 @@ export declare const AuditVerificationSchema: z.ZodObject<{
|
|
|
645
646
|
score: number;
|
|
646
647
|
prior_findings: Record<string, number>;
|
|
647
648
|
}[] | undefined;
|
|
648
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
649
649
|
risk_estimate?: number | undefined;
|
|
650
650
|
completion_reason?: string | undefined;
|
|
651
651
|
}[] | undefined;
|
|
@@ -666,6 +666,7 @@ export declare const AuditVerificationSchema: z.ZodObject<{
|
|
|
666
666
|
status?: "pending" | "complete" | undefined;
|
|
667
667
|
tags?: string[] | undefined;
|
|
668
668
|
token_estimate?: number | undefined;
|
|
669
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
669
670
|
inputs?: Record<string, string> | undefined;
|
|
670
671
|
completed_at?: string | undefined;
|
|
671
672
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -682,7 +683,6 @@ export declare const AuditVerificationSchema: z.ZodObject<{
|
|
|
682
683
|
score: number;
|
|
683
684
|
prior_findings: Record<string, number>;
|
|
684
685
|
}[] | undefined;
|
|
685
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
686
686
|
risk_estimate?: number | undefined;
|
|
687
687
|
completion_reason?: string | undefined;
|
|
688
688
|
}[] | undefined;
|
|
@@ -1132,6 +1132,7 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1132
1132
|
status?: "pending" | "complete" | undefined;
|
|
1133
1133
|
tags?: string[] | undefined;
|
|
1134
1134
|
token_estimate?: number | undefined;
|
|
1135
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1135
1136
|
inputs?: Record<string, string> | undefined;
|
|
1136
1137
|
completed_at?: string | undefined;
|
|
1137
1138
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1148,7 +1149,6 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1148
1149
|
score: number;
|
|
1149
1150
|
prior_findings: Record<string, number>;
|
|
1150
1151
|
}[] | undefined;
|
|
1151
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1152
1152
|
risk_estimate?: number | undefined;
|
|
1153
1153
|
completion_reason?: string | undefined;
|
|
1154
1154
|
}, {
|
|
@@ -1161,6 +1161,7 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1161
1161
|
status?: "pending" | "complete" | undefined;
|
|
1162
1162
|
tags?: string[] | undefined;
|
|
1163
1163
|
token_estimate?: number | undefined;
|
|
1164
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1164
1165
|
inputs?: Record<string, string> | undefined;
|
|
1165
1166
|
completed_at?: string | undefined;
|
|
1166
1167
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1177,7 +1178,6 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1177
1178
|
score: number;
|
|
1178
1179
|
prior_findings: Record<string, number>;
|
|
1179
1180
|
}[] | undefined;
|
|
1180
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1181
1181
|
risk_estimate?: number | undefined;
|
|
1182
1182
|
completion_reason?: string | undefined;
|
|
1183
1183
|
}>, "many">>;
|
|
@@ -1197,6 +1197,7 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1197
1197
|
status?: "pending" | "complete" | undefined;
|
|
1198
1198
|
tags?: string[] | undefined;
|
|
1199
1199
|
token_estimate?: number | undefined;
|
|
1200
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1200
1201
|
inputs?: Record<string, string> | undefined;
|
|
1201
1202
|
completed_at?: string | undefined;
|
|
1202
1203
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1213,7 +1214,6 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1213
1214
|
score: number;
|
|
1214
1215
|
prior_findings: Record<string, number>;
|
|
1215
1216
|
}[] | undefined;
|
|
1216
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1217
1217
|
risk_estimate?: number | undefined;
|
|
1218
1218
|
completion_reason?: string | undefined;
|
|
1219
1219
|
}[] | undefined;
|
|
@@ -1234,6 +1234,7 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1234
1234
|
status?: "pending" | "complete" | undefined;
|
|
1235
1235
|
tags?: string[] | undefined;
|
|
1236
1236
|
token_estimate?: number | undefined;
|
|
1237
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1237
1238
|
inputs?: Record<string, string> | undefined;
|
|
1238
1239
|
completed_at?: string | undefined;
|
|
1239
1240
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1250,7 +1251,6 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1250
1251
|
score: number;
|
|
1251
1252
|
prior_findings: Record<string, number>;
|
|
1252
1253
|
}[] | undefined;
|
|
1253
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1254
1254
|
risk_estimate?: number | undefined;
|
|
1255
1255
|
completion_reason?: string | undefined;
|
|
1256
1256
|
}[] | undefined;
|
|
@@ -1359,6 +1359,7 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1359
1359
|
status?: "pending" | "complete" | undefined;
|
|
1360
1360
|
tags?: string[] | undefined;
|
|
1361
1361
|
token_estimate?: number | undefined;
|
|
1362
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1362
1363
|
inputs?: Record<string, string> | undefined;
|
|
1363
1364
|
completed_at?: string | undefined;
|
|
1364
1365
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1375,7 +1376,6 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1375
1376
|
score: number;
|
|
1376
1377
|
prior_findings: Record<string, number>;
|
|
1377
1378
|
}[] | undefined;
|
|
1378
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1379
1379
|
risk_estimate?: number | undefined;
|
|
1380
1380
|
completion_reason?: string | undefined;
|
|
1381
1381
|
}[] | undefined;
|
|
@@ -1482,6 +1482,7 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1482
1482
|
status?: "pending" | "complete" | undefined;
|
|
1483
1483
|
tags?: string[] | undefined;
|
|
1484
1484
|
token_estimate?: number | undefined;
|
|
1485
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1485
1486
|
inputs?: Record<string, string> | undefined;
|
|
1486
1487
|
completed_at?: string | undefined;
|
|
1487
1488
|
file_line_counts?: Record<string, number> | undefined;
|
|
@@ -1498,7 +1499,6 @@ export declare const AuditResultSchema: z.ZodObject<{
|
|
|
1498
1499
|
score: number;
|
|
1499
1500
|
prior_findings: Record<string, number>;
|
|
1500
1501
|
}[] | undefined;
|
|
1501
|
-
priority?: "high" | "low" | "medium" | undefined;
|
|
1502
1502
|
risk_estimate?: number | undefined;
|
|
1503
1503
|
completion_reason?: string | undefined;
|
|
1504
1504
|
}[] | undefined;
|
|
@@ -205,8 +205,8 @@ export declare const IntakeSummarySchema: z.ZodObject<{
|
|
|
205
205
|
themes?: string[] | undefined;
|
|
206
206
|
packages?: string[] | undefined;
|
|
207
207
|
};
|
|
208
|
-
non_goals: string[];
|
|
209
208
|
ready: boolean;
|
|
209
|
+
non_goals: string[];
|
|
210
210
|
source_type: "conversation" | "structured_audit" | "mixed" | "documents";
|
|
211
211
|
goals: string[];
|
|
212
212
|
constraints: string[];
|
|
@@ -233,8 +233,8 @@ export declare const IntakeSummarySchema: z.ZodObject<{
|
|
|
233
233
|
themes?: string[] | undefined;
|
|
234
234
|
packages?: string[] | undefined;
|
|
235
235
|
};
|
|
236
|
-
non_goals: string[];
|
|
237
236
|
ready: boolean;
|
|
237
|
+
non_goals: string[];
|
|
238
238
|
source_type: "conversation" | "structured_audit" | "mixed" | "documents";
|
|
239
239
|
goals: string[];
|
|
240
240
|
constraints: string[];
|