@afaik-lab/weigh 0.0.0 → 0.6.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.
- package/.env.example +49 -0
- package/LICENSE +373 -0
- package/README.md +103 -1
- package/dist/agent.d.ts +83 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +204 -0
- package/dist/agent.js.map +1 -0
- package/dist/ceilings.d.ts +32 -0
- package/dist/ceilings.d.ts.map +1 -0
- package/dist/ceilings.js +61 -0
- package/dist/ceilings.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +530 -0
- package/dist/cli.js.map +1 -0
- package/dist/config-cli.d.ts +15 -0
- package/dist/config-cli.d.ts.map +1 -0
- package/dist/config-cli.js +141 -0
- package/dist/config-cli.js.map +1 -0
- package/dist/config.d.ts +198 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +373 -0
- package/dist/config.js.map +1 -0
- package/dist/context-cli.d.ts +35 -0
- package/dist/context-cli.d.ts.map +1 -0
- package/dist/context-cli.js +251 -0
- package/dist/context-cli.js.map +1 -0
- package/dist/context.d.ts +118 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +159 -0
- package/dist/context.js.map +1 -0
- package/dist/corrections/correction-set.d.ts +67 -0
- package/dist/corrections/correction-set.d.ts.map +1 -0
- package/dist/corrections/correction-set.js +104 -0
- package/dist/corrections/correction-set.js.map +1 -0
- package/dist/corrections/correction.d.ts +74 -0
- package/dist/corrections/correction.d.ts.map +1 -0
- package/dist/corrections/correction.js +154 -0
- package/dist/corrections/correction.js.map +1 -0
- package/dist/corrections/follow-up.d.ts +69 -0
- package/dist/corrections/follow-up.d.ts.map +1 -0
- package/dist/corrections/follow-up.js +217 -0
- package/dist/corrections/follow-up.js.map +1 -0
- package/dist/corrections/index.d.ts +31 -0
- package/dist/corrections/index.d.ts.map +1 -0
- package/dist/corrections/index.js +31 -0
- package/dist/corrections/index.js.map +1 -0
- package/dist/corrections/ledger.d.ts +78 -0
- package/dist/corrections/ledger.d.ts.map +1 -0
- package/dist/corrections/ledger.js +117 -0
- package/dist/corrections/ledger.js.map +1 -0
- package/dist/corrections/promotion.d.ts +119 -0
- package/dist/corrections/promotion.d.ts.map +1 -0
- package/dist/corrections/promotion.js +221 -0
- package/dist/corrections/promotion.js.map +1 -0
- package/dist/corrections/schema.d.ts +125 -0
- package/dist/corrections/schema.d.ts.map +1 -0
- package/dist/corrections/schema.js +100 -0
- package/dist/corrections/schema.js.map +1 -0
- package/dist/corrections-cli.d.ts +28 -0
- package/dist/corrections-cli.d.ts.map +1 -0
- package/dist/corrections-cli.js +157 -0
- package/dist/corrections-cli.js.map +1 -0
- package/dist/diff.d.ts +105 -0
- package/dist/diff.d.ts.map +1 -0
- package/dist/diff.js +202 -0
- package/dist/diff.js.map +1 -0
- package/dist/doctor.d.ts +38 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/doctor.js +197 -0
- package/dist/doctor.js.map +1 -0
- package/dist/events.d.ts +21 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +5 -0
- package/dist/events.js.map +1 -0
- package/dist/findings.d.ts +510 -0
- package/dist/findings.d.ts.map +1 -0
- package/dist/findings.js +645 -0
- package/dist/findings.js.map +1 -0
- package/dist/follow-up-cli.d.ts +88 -0
- package/dist/follow-up-cli.d.ts.map +1 -0
- package/dist/follow-up-cli.js +208 -0
- package/dist/follow-up-cli.js.map +1 -0
- package/dist/harness.d.ts +64 -0
- package/dist/harness.d.ts.map +1 -0
- package/dist/harness.js +71 -0
- package/dist/harness.js.map +1 -0
- package/dist/help/command-help.d.ts +9 -0
- package/dist/help/command-help.d.ts.map +1 -0
- package/dist/help/command-help.js +21 -0
- package/dist/help/command-help.js.map +1 -0
- package/dist/help/commands/answer.d.ts +3 -0
- package/dist/help/commands/answer.d.ts.map +1 -0
- package/dist/help/commands/answer.js +39 -0
- package/dist/help/commands/answer.js.map +1 -0
- package/dist/help/commands/config.d.ts +3 -0
- package/dist/help/commands/config.d.ts.map +1 -0
- package/dist/help/commands/config.js +25 -0
- package/dist/help/commands/config.js.map +1 -0
- package/dist/help/commands/context.d.ts +3 -0
- package/dist/help/commands/context.d.ts.map +1 -0
- package/dist/help/commands/context.js +44 -0
- package/dist/help/commands/context.js.map +1 -0
- package/dist/help/commands/corrections.d.ts +3 -0
- package/dist/help/commands/corrections.d.ts.map +1 -0
- package/dist/help/commands/corrections.js +30 -0
- package/dist/help/commands/corrections.js.map +1 -0
- package/dist/help/commands/doctor.d.ts +3 -0
- package/dist/help/commands/doctor.d.ts.map +1 -0
- package/dist/help/commands/doctor.js +12 -0
- package/dist/help/commands/doctor.js.map +1 -0
- package/dist/help/commands/index.d.ts +4 -0
- package/dist/help/commands/index.d.ts.map +1 -0
- package/dist/help/commands/index.js +27 -0
- package/dist/help/commands/index.js.map +1 -0
- package/dist/help/commands/memory.d.ts +3 -0
- package/dist/help/commands/memory.d.ts.map +1 -0
- package/dist/help/commands/memory.js +33 -0
- package/dist/help/commands/memory.js.map +1 -0
- package/dist/help/commands/models.d.ts +3 -0
- package/dist/help/commands/models.d.ts.map +1 -0
- package/dist/help/commands/models.js +17 -0
- package/dist/help/commands/models.js.map +1 -0
- package/dist/help/commands/options.d.ts +4 -0
- package/dist/help/commands/options.d.ts.map +1 -0
- package/dist/help/commands/options.js +13 -0
- package/dist/help/commands/options.js.map +1 -0
- package/dist/help/commands/review.d.ts +3 -0
- package/dist/help/commands/review.d.ts.map +1 -0
- package/dist/help/commands/review.js +50 -0
- package/dist/help/commands/review.js.map +1 -0
- package/dist/help/commands/sessions.d.ts +3 -0
- package/dist/help/commands/sessions.d.ts.map +1 -0
- package/dist/help/commands/sessions.js +23 -0
- package/dist/help/commands/sessions.js.map +1 -0
- package/dist/help/commands/show.d.ts +3 -0
- package/dist/help/commands/show.d.ts.map +1 -0
- package/dist/help/commands/show.js +18 -0
- package/dist/help/commands/show.js.map +1 -0
- package/dist/help/help.d.ts +16 -0
- package/dist/help/help.d.ts.map +1 -0
- package/dist/help/help.js +68 -0
- package/dist/help/help.js.map +1 -0
- package/dist/help/index.d.ts +4 -0
- package/dist/help/index.d.ts.map +1 -0
- package/dist/help/index.js +7 -0
- package/dist/help/index.js.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/knowledge/block.d.ts +65 -0
- package/dist/knowledge/block.d.ts.map +1 -0
- package/dist/knowledge/block.js +89 -0
- package/dist/knowledge/block.js.map +1 -0
- package/dist/knowledge/claim.d.ts +143 -0
- package/dist/knowledge/claim.d.ts.map +1 -0
- package/dist/knowledge/claim.js +303 -0
- package/dist/knowledge/claim.js.map +1 -0
- package/dist/knowledge/index.d.ts +32 -0
- package/dist/knowledge/index.d.ts.map +1 -0
- package/dist/knowledge/index.js +29 -0
- package/dist/knowledge/index.js.map +1 -0
- package/dist/knowledge/novelty.d.ts +65 -0
- package/dist/knowledge/novelty.d.ts.map +1 -0
- package/dist/knowledge/novelty.js +100 -0
- package/dist/knowledge/novelty.js.map +1 -0
- package/dist/knowledge/recall.d.ts +134 -0
- package/dist/knowledge/recall.d.ts.map +1 -0
- package/dist/knowledge/recall.js +229 -0
- package/dist/knowledge/recall.js.map +1 -0
- package/dist/knowledge/recalled-claim.d.ts +35 -0
- package/dist/knowledge/recalled-claim.d.ts.map +1 -0
- package/dist/knowledge/recalled-claim.js +67 -0
- package/dist/knowledge/recalled-claim.js.map +1 -0
- package/dist/knowledge/recalled.d.ts +70 -0
- package/dist/knowledge/recalled.d.ts.map +1 -0
- package/dist/knowledge/recalled.js +149 -0
- package/dist/knowledge/recalled.js.map +1 -0
- package/dist/knowledge/schema.d.ts +83 -0
- package/dist/knowledge/schema.d.ts.map +1 -0
- package/dist/knowledge/schema.js +96 -0
- package/dist/knowledge/schema.js.map +1 -0
- package/dist/knowledge/staleness.d.ts +48 -0
- package/dist/knowledge/staleness.d.ts.map +1 -0
- package/dist/knowledge/staleness.js +85 -0
- package/dist/knowledge/staleness.js.map +1 -0
- package/dist/knowledge/store.d.ts +100 -0
- package/dist/knowledge/store.d.ts.map +1 -0
- package/dist/knowledge/store.js +184 -0
- package/dist/knowledge/store.js.map +1 -0
- package/dist/memory/compose-file.d.ts +14 -0
- package/dist/memory/compose-file.d.ts.map +1 -0
- package/dist/memory/compose-file.js +25 -0
- package/dist/memory/compose-file.js.map +1 -0
- package/dist/memory/index.d.ts +43 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js +119 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/oss.d.ts +62 -0
- package/dist/memory/oss.d.ts.map +1 -0
- package/dist/memory/oss.js +230 -0
- package/dist/memory/oss.js.map +1 -0
- package/dist/memory/platform.d.ts +37 -0
- package/dist/memory/platform.d.ts.map +1 -0
- package/dist/memory/platform.js +131 -0
- package/dist/memory/platform.js.map +1 -0
- package/dist/memory/scope.d.ts +49 -0
- package/dist/memory/scope.d.ts.map +1 -0
- package/dist/memory/scope.js +70 -0
- package/dist/memory/scope.js.map +1 -0
- package/dist/memory/types.d.ts +113 -0
- package/dist/memory/types.d.ts.map +1 -0
- package/dist/memory/types.js +18 -0
- package/dist/memory/types.js.map +1 -0
- package/dist/memory-cli.d.ts +17 -0
- package/dist/memory-cli.d.ts.map +1 -0
- package/dist/memory-cli.js +107 -0
- package/dist/memory-cli.js.map +1 -0
- package/dist/models-cli.d.ts +12 -0
- package/dist/models-cli.d.ts.map +1 -0
- package/dist/models-cli.js +54 -0
- package/dist/models-cli.js.map +1 -0
- package/dist/models.d.ts +111 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +228 -0
- package/dist/models.js.map +1 -0
- package/dist/paths.d.ts +35 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +65 -0
- package/dist/paths.js.map +1 -0
- package/dist/profile.d.ts +28 -0
- package/dist/profile.d.ts.map +1 -0
- package/dist/profile.js +154 -0
- package/dist/profile.js.map +1 -0
- package/dist/progress.d.ts +70 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +132 -0
- package/dist/progress.js.map +1 -0
- package/dist/quiet.d.ts +2 -0
- package/dist/quiet.d.ts.map +1 -0
- package/dist/quiet.js +21 -0
- package/dist/quiet.js.map +1 -0
- package/dist/reconcile/continuation.d.ts +132 -0
- package/dist/reconcile/continuation.d.ts.map +1 -0
- package/dist/reconcile/continuation.js +306 -0
- package/dist/reconcile/continuation.js.map +1 -0
- package/dist/reconcile/index.d.ts +26 -0
- package/dist/reconcile/index.d.ts.map +1 -0
- package/dist/reconcile/index.js +28 -0
- package/dist/reconcile/index.js.map +1 -0
- package/dist/reconcile/outcome-set.d.ts +53 -0
- package/dist/reconcile/outcome-set.d.ts.map +1 -0
- package/dist/reconcile/outcome-set.js +124 -0
- package/dist/reconcile/outcome-set.js.map +1 -0
- package/dist/reconcile/outcome.d.ts +56 -0
- package/dist/reconcile/outcome.d.ts.map +1 -0
- package/dist/reconcile/outcome.js +60 -0
- package/dist/reconcile/outcome.js.map +1 -0
- package/dist/reconcile/reconciliation.d.ts +49 -0
- package/dist/reconcile/reconciliation.d.ts.map +1 -0
- package/dist/reconcile/reconciliation.js +88 -0
- package/dist/reconcile/reconciliation.js.map +1 -0
- package/dist/reconcile/schema.d.ts +157 -0
- package/dist/reconcile/schema.d.ts.map +1 -0
- package/dist/reconcile/schema.js +97 -0
- package/dist/reconcile/schema.js.map +1 -0
- package/dist/record/index.d.ts +23 -0
- package/dist/record/index.d.ts.map +1 -0
- package/dist/record/index.js +25 -0
- package/dist/record/index.js.map +1 -0
- package/dist/record/review-record.d.ts +28 -0
- package/dist/record/review-record.d.ts.map +1 -0
- package/dist/record/review-record.js +78 -0
- package/dist/record/review-record.js.map +1 -0
- package/dist/record/schema.d.ts +153 -0
- package/dist/record/schema.d.ts.map +1 -0
- package/dist/record/schema.js +87 -0
- package/dist/record/schema.js.map +1 -0
- package/dist/record/store.d.ts +83 -0
- package/dist/record/store.d.ts.map +1 -0
- package/dist/record/store.js +162 -0
- package/dist/record/store.js.map +1 -0
- package/dist/record/stored-review.d.ts +36 -0
- package/dist/record/stored-review.d.ts.map +1 -0
- package/dist/record/stored-review.js +90 -0
- package/dist/record/stored-review.js.map +1 -0
- package/dist/refute.d.ts +318 -0
- package/dist/refute.d.ts.map +1 -0
- package/dist/refute.js +513 -0
- package/dist/refute.js.map +1 -0
- package/dist/render.d.ts +212 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/render.js +544 -0
- package/dist/render.js.map +1 -0
- package/dist/review-cli.d.ts +181 -0
- package/dist/review-cli.d.ts.map +1 -0
- package/dist/review-cli.js +598 -0
- package/dist/review-cli.js.map +1 -0
- package/dist/reviewer.d.ts +297 -0
- package/dist/reviewer.d.ts.map +1 -0
- package/dist/reviewer.js +584 -0
- package/dist/reviewer.js.map +1 -0
- package/dist/session-cli.d.ts +17 -0
- package/dist/session-cli.d.ts.map +1 -0
- package/dist/session-cli.js +62 -0
- package/dist/session-cli.js.map +1 -0
- package/dist/session.d.ts +36 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +105 -0
- package/dist/session.js.map +1 -0
- package/dist/settings.d.ts +68 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/settings.js +175 -0
- package/dist/settings.js.map +1 -0
- package/dist/show-cli.d.ts +39 -0
- package/dist/show-cli.d.ts.map +1 -0
- package/dist/show-cli.js +56 -0
- package/dist/show-cli.js.map +1 -0
- package/dist/stdout.d.ts +28 -0
- package/dist/stdout.d.ts.map +1 -0
- package/dist/stdout.js +44 -0
- package/dist/stdout.js.map +1 -0
- package/dist/target.d.ts +58 -0
- package/dist/target.d.ts.map +1 -0
- package/dist/target.js +96 -0
- package/dist/target.js.map +1 -0
- package/dist/tools/index.d.ts +93 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +146 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/root.d.ts +62 -0
- package/dist/tools/root.d.ts.map +1 -0
- package/dist/tools/root.js +51 -0
- package/dist/tools/root.js.map +1 -0
- package/dist/usage.d.ts +75 -0
- package/dist/usage.d.ts.map +1 -0
- package/dist/usage.js +100 -0
- package/dist/usage.js.map +1 -0
- package/dist/version.d.ts +14 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +26 -0
- package/dist/version.js.map +1 -0
- package/dist/workspace.d.ts +48 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +126 -0
- package/dist/workspace.js.map +1 -0
- package/docker-compose.yml +61 -0
- package/package.json +72 -1
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* What a review produces, and how a finding recognises itself later.
|
|
4
|
+
*
|
|
5
|
+
* Everything downstream keys off this: within-run dedupe, "still open or
|
|
6
|
+
* fixed" across runs, and corrections that must suppress a finding the next
|
|
7
|
+
* time it appears. So a finding needs an identity that survives the code
|
|
8
|
+
* moving, which a file-and-line pair does not — one commit on the base branch
|
|
9
|
+
* and every line number is wrong.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SEVERITIES: readonly ['critical', 'high', 'medium', 'low', 'nit'];
|
|
12
|
+
export type Severity = (typeof SEVERITIES)[number];
|
|
13
|
+
/** Most severe first, for ranking and for a confidence floor by severity. */
|
|
14
|
+
export declare const SEVERITY_ORDER: Record<Severity, number>;
|
|
15
|
+
export declare const CATEGORIES: readonly ['correctness', 'security', 'performance', 'concurrency', 'error-handling', 'api-contract', 'testing', 'maintainability', 'style'];
|
|
16
|
+
export type Category = (typeof CATEGORIES)[number];
|
|
17
|
+
/**
|
|
18
|
+
* A claim's grounds: a place in the head tree, and what was there when the
|
|
19
|
+
* claim was made. The snippet is what lets a later run tell "the code still
|
|
20
|
+
* says this" from "someone changed it underneath the finding".
|
|
21
|
+
*/
|
|
22
|
+
export declare const evidenceSchema: z.ZodObject<{
|
|
23
|
+
path: z.ZodString;
|
|
24
|
+
line: z.ZodNumber;
|
|
25
|
+
snippet: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type Evidence = z.infer<typeof evidenceSchema>;
|
|
28
|
+
/**
|
|
29
|
+
* The shape the model is required to return.
|
|
30
|
+
*
|
|
31
|
+
* No id and no fingerprint: those are computed by Finding from its location and
|
|
32
|
+
* the code there, never asserted by the model. A model-chosen identifier would
|
|
33
|
+
* change with its wording, which is exactly what the fingerprint exists to
|
|
34
|
+
* survive.
|
|
35
|
+
*/
|
|
36
|
+
export declare const reportedFindingSchema: z.ZodObject<{
|
|
37
|
+
severity: z.ZodEnum<{
|
|
38
|
+
critical: "critical";
|
|
39
|
+
high: "high";
|
|
40
|
+
low: "low";
|
|
41
|
+
medium: "medium";
|
|
42
|
+
nit: "nit";
|
|
43
|
+
}>;
|
|
44
|
+
category: z.ZodEnum<{
|
|
45
|
+
"api-contract": "api-contract";
|
|
46
|
+
concurrency: "concurrency";
|
|
47
|
+
correctness: "correctness";
|
|
48
|
+
"error-handling": "error-handling";
|
|
49
|
+
maintainability: "maintainability";
|
|
50
|
+
performance: "performance";
|
|
51
|
+
security: "security";
|
|
52
|
+
style: "style";
|
|
53
|
+
testing: "testing";
|
|
54
|
+
}>;
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
body: z.ZodString;
|
|
57
|
+
path: z.ZodString;
|
|
58
|
+
line: z.ZodNumber;
|
|
59
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
60
|
+
path: z.ZodString;
|
|
61
|
+
line: z.ZodNumber;
|
|
62
|
+
snippet: z.ZodString;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
confidence: z.ZodNumber;
|
|
65
|
+
suggestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type ReportedFinding = z.infer<typeof reportedFindingSchema>;
|
|
68
|
+
/** What the review recommends, mildest first. */
|
|
69
|
+
export declare const VERDICTS: readonly ['approve', 'needs_work', 'block'];
|
|
70
|
+
export type VerdictLevel = (typeof VERDICTS)[number];
|
|
71
|
+
export declare const reviewOutputSchema: z.ZodObject<{
|
|
72
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
73
|
+
severity: z.ZodEnum<{
|
|
74
|
+
critical: "critical";
|
|
75
|
+
high: "high";
|
|
76
|
+
low: "low";
|
|
77
|
+
medium: "medium";
|
|
78
|
+
nit: "nit";
|
|
79
|
+
}>;
|
|
80
|
+
category: z.ZodEnum<{
|
|
81
|
+
"api-contract": "api-contract";
|
|
82
|
+
concurrency: "concurrency";
|
|
83
|
+
correctness: "correctness";
|
|
84
|
+
"error-handling": "error-handling";
|
|
85
|
+
maintainability: "maintainability";
|
|
86
|
+
performance: "performance";
|
|
87
|
+
security: "security";
|
|
88
|
+
style: "style";
|
|
89
|
+
testing: "testing";
|
|
90
|
+
}>;
|
|
91
|
+
title: z.ZodString;
|
|
92
|
+
body: z.ZodString;
|
|
93
|
+
path: z.ZodString;
|
|
94
|
+
line: z.ZodNumber;
|
|
95
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
96
|
+
path: z.ZodString;
|
|
97
|
+
line: z.ZodNumber;
|
|
98
|
+
snippet: z.ZodString;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
confidence: z.ZodNumber;
|
|
101
|
+
suggestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
summary: z.ZodString;
|
|
104
|
+
verdict: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
105
|
+
approve: "approve";
|
|
106
|
+
block: "block";
|
|
107
|
+
needs_work: "needs_work";
|
|
108
|
+
}>>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type ReviewOutput = z.infer<typeof reviewOutputSchema>;
|
|
111
|
+
/**
|
|
112
|
+
* What the refute pass may say about one finding: keep it, or kill it and name
|
|
113
|
+
* what kills it.
|
|
114
|
+
*
|
|
115
|
+
* A ruling rather than a verdict, though `Verdict` further down is the nearer
|
|
116
|
+
* word — that one is the review's single recommendation about the whole
|
|
117
|
+
* change, and this is one answer about one finding. Two things under one name
|
|
118
|
+
* would be confused at every call site that holds both.
|
|
119
|
+
*
|
|
120
|
+
* The refuter rules on findings it was handed and does nothing else. It cannot
|
|
121
|
+
* introduce a finding, reword one, or move its severity, because the schema
|
|
122
|
+
* gives it nowhere to put any of that. A second pass that could edit findings
|
|
123
|
+
* would be a second reviewer, and a second reviewer would need refuting too.
|
|
124
|
+
*/
|
|
125
|
+
export declare const DECISIONS: readonly ['keep', 'drop'];
|
|
126
|
+
export type Decision = (typeof DECISIONS)[number];
|
|
127
|
+
/**
|
|
128
|
+
* The only reasons a finding is allowed to die.
|
|
129
|
+
*
|
|
130
|
+
* Narrow on purpose, and the narrowness is the whole design. "I am not
|
|
131
|
+
* convinced" is not on this list: a refuter that may drop what it merely
|
|
132
|
+
* doubts will drop real findings, and a real finding dropped here leaves no
|
|
133
|
+
* trace in the review — the run reads cleaner, not broken. So a kill has to
|
|
134
|
+
* point at something outside the finding that contradicts it.
|
|
135
|
+
*
|
|
136
|
+
* `code` — the refuter re-read the file and it does not say what the finding
|
|
137
|
+
* says it says. The strongest ground, and the only one available before the
|
|
138
|
+
* corrections land.
|
|
139
|
+
*
|
|
140
|
+
* `convention` — the code is deliberate and the repository does it this way
|
|
141
|
+
* throughout; the finding is a disagreement about house style wearing a
|
|
142
|
+
* defect's clothes.
|
|
143
|
+
*
|
|
144
|
+
* `corrected` — a human already ruled on this same fingerprint, as `incorrect`
|
|
145
|
+
* or as `intentional`. Those two alone. `wont-fix` and `out-of-scope` are
|
|
146
|
+
* acknowledgements that the defect is real and was deprioritised, and a
|
|
147
|
+
* refuter that accepted them would be learning to stop mentioning known bugs.
|
|
148
|
+
*/
|
|
149
|
+
export declare const GROUNDS: readonly ['code', 'convention', 'corrected'];
|
|
150
|
+
export type Ground = (typeof GROUNDS)[number];
|
|
151
|
+
export declare const rulingSchema: z.ZodObject<{
|
|
152
|
+
fingerprint: z.ZodString;
|
|
153
|
+
decision: z.ZodEnum<{
|
|
154
|
+
drop: "drop";
|
|
155
|
+
keep: "keep";
|
|
156
|
+
}>;
|
|
157
|
+
ground: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
158
|
+
code: "code";
|
|
159
|
+
convention: "convention";
|
|
160
|
+
corrected: "corrected";
|
|
161
|
+
}>>>;
|
|
162
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export type Ruling = z.infer<typeof rulingSchema>;
|
|
165
|
+
/**
|
|
166
|
+
* A ruling per finding, and nothing else.
|
|
167
|
+
*
|
|
168
|
+
* No summary and no verdict: the refuter has seen the findings, not the
|
|
169
|
+
* change, and anything it said about the change as a whole would be a
|
|
170
|
+
* confident opinion formed from a list of complaints about it.
|
|
171
|
+
*
|
|
172
|
+
* A drop that arrives with no ground is not rejected here — parsing stays
|
|
173
|
+
* lenient, as it does for the review. It is read as a keep instead, which is
|
|
174
|
+
* where the pass fails safe, and that belongs in the refuter rather than in a
|
|
175
|
+
* parser that can only throw the batch away.
|
|
176
|
+
*/
|
|
177
|
+
export declare const refuteOutputSchema: z.ZodObject<{
|
|
178
|
+
rulings: z.ZodArray<z.ZodObject<{
|
|
179
|
+
fingerprint: z.ZodString;
|
|
180
|
+
decision: z.ZodEnum<{
|
|
181
|
+
drop: "drop";
|
|
182
|
+
keep: "keep";
|
|
183
|
+
}>;
|
|
184
|
+
ground: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
185
|
+
code: "code";
|
|
186
|
+
convention: "convention";
|
|
187
|
+
corrected: "corrected";
|
|
188
|
+
}>>>;
|
|
189
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
export type RefuteOutput = z.infer<typeof refuteOutputSchema>;
|
|
193
|
+
/**
|
|
194
|
+
* The schema as a provider's strict mode requires it.
|
|
195
|
+
*
|
|
196
|
+
* OpenAI rejects a json_schema whose `required` omits any property —
|
|
197
|
+
* measured, every `openai/*` model answers `invalid_json_schema` for a schema
|
|
198
|
+
* with an optional key, while Anthropic and Google accept it. So the request
|
|
199
|
+
* lists every key as required, and a key Weigh does not insist on is nullable
|
|
200
|
+
* instead: the model must mention it, and `null` is a permitted answer.
|
|
201
|
+
*
|
|
202
|
+
* Strict mode asks for two things of every object, and this sets both rather
|
|
203
|
+
* than inheriting one of them from whatever zod happens to emit: each property
|
|
204
|
+
* listed in `required`, and `additionalProperties: false`. zod 4.6.2 already
|
|
205
|
+
* writes the second, so today the line changes nothing — which is the point.
|
|
206
|
+
* A schema that satisfies the contract by coincidence fails silently the day
|
|
207
|
+
* the coincidence ends, and the failure is a 400 that costs the channel
|
|
208
|
+
* without saying so.
|
|
209
|
+
*
|
|
210
|
+
* `$schema` goes: it is metadata about the document, not part of it, and no
|
|
211
|
+
* provider asks for it. What stays is every constraint that carries meaning —
|
|
212
|
+
* `minLength`, `maximum` and the rest are measured as accepted, and dropping
|
|
213
|
+
* them to be safe would trade real validation for imagined portability.
|
|
214
|
+
*
|
|
215
|
+
* Parsing stays separate and stays lenient. A model that omits a key entirely
|
|
216
|
+
* still had its review read — losing a complete review over a missing
|
|
217
|
+
* `verdict` would be a worse failure than the one this fixes.
|
|
218
|
+
*/
|
|
219
|
+
export declare function strictJsonSchema(schema: z.ZodType): Record<string, unknown>;
|
|
220
|
+
/**
|
|
221
|
+
* The review's recommendation, and the floor its own findings put under it.
|
|
222
|
+
*
|
|
223
|
+
* Asked for rather than computed, because whether a change should ship is a
|
|
224
|
+
* judgement about consequence and the model has the context a rule does not.
|
|
225
|
+
* But a recommendation that contradicts the findings beneath it is worse than
|
|
226
|
+
* no recommendation at all — nobody can act on "approve" printed above a
|
|
227
|
+
* critical — so the findings set a floor the answer is raised to.
|
|
228
|
+
*
|
|
229
|
+
* Optional in the schema on purpose. A missing recommendation is derived from
|
|
230
|
+
* the findings; it is never the reason an otherwise complete review is thrown
|
|
231
|
+
* away.
|
|
232
|
+
*/
|
|
233
|
+
export declare class Verdict {
|
|
234
|
+
readonly level: VerdictLevel;
|
|
235
|
+
/** What the model said, when it said anything. */
|
|
236
|
+
readonly reported: VerdictLevel | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* Whether the review that produced it ran to the end.
|
|
239
|
+
*
|
|
240
|
+
* A run stopped by its ceilings has findings, but not the absence of the
|
|
241
|
+
* ones it never looked for — and `approve` asserts exactly that absence.
|
|
242
|
+
* Reporting an unfinished run as an approval is the single worst thing
|
|
243
|
+
* this tool could do, so an incomplete verdict says so in place of its
|
|
244
|
+
* level rather than beside it.
|
|
245
|
+
*/
|
|
246
|
+
readonly complete: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* The level this one came down from, when a refute pass undercut it.
|
|
249
|
+
*
|
|
250
|
+
* The previous *level*, not the model's answer — they are only the same
|
|
251
|
+
* thing when the model was never overruled. A verdict can be lowered from
|
|
252
|
+
* `block` and still be above what the model reported, and a boolean here
|
|
253
|
+
* forced the renderer to name `reported` as the origin, which in that
|
|
254
|
+
* case is the wrong end of the move.
|
|
255
|
+
*/
|
|
256
|
+
readonly loweredFrom: VerdictLevel | undefined;
|
|
257
|
+
private constructor();
|
|
258
|
+
static from(reported: VerdictLevel | null | undefined, findings: FindingSet): Verdict;
|
|
259
|
+
/**
|
|
260
|
+
* The verdict of a review that did not finish.
|
|
261
|
+
*
|
|
262
|
+
* Findings it did reach still count — they are true whatever stopped the
|
|
263
|
+
* run — so the level is their floor. What is withheld is the claim that
|
|
264
|
+
* nothing else is there.
|
|
265
|
+
*/
|
|
266
|
+
static stopped(findings: FindingSet): Verdict;
|
|
267
|
+
/**
|
|
268
|
+
* The recommendation, re-judged once a refute pass has taken findings away.
|
|
269
|
+
*
|
|
270
|
+
* What moves is the floor, and only the floor. A dropped finding stops
|
|
271
|
+
* compelling a level it used to compel, in exactly the way the floor exists
|
|
272
|
+
* to compel it in the first place — leaving `BLOCK` standing on a finding
|
|
273
|
+
* the report lists as dropped is as unusable as `APPROVE · 1 critical`, and
|
|
274
|
+
* worse in one respect: it is the answer a gate acts on.
|
|
275
|
+
*
|
|
276
|
+
* What does not move is the model's own answer. `Verdict.from` is applied
|
|
277
|
+
* again rather than the bare floor taken, so a reviewer that said `block`
|
|
278
|
+
* still says `block` after the pass. That is deliberate, and it is where
|
|
279
|
+
* the refuter's authority stops: it rules on findings, it has not seen the
|
|
280
|
+
* change, and by its own instructions it never formed a view about whether
|
|
281
|
+
* the change should ship. A second pass may take the findings out from
|
|
282
|
+
* under a recommendation; it may not overturn one, and it must never be
|
|
283
|
+
* able to manufacture an approval.
|
|
284
|
+
*
|
|
285
|
+
* A level the model chose above its own floor is left alone entirely —
|
|
286
|
+
* nothing that was dropped is what it rested on.
|
|
287
|
+
*/
|
|
288
|
+
afterRefute(before: FindingSet, after: FindingSet): Verdict;
|
|
289
|
+
/** The mildest recommendation the findings themselves can support. */
|
|
290
|
+
private static _floor;
|
|
291
|
+
/**
|
|
292
|
+
* True when the findings overruled a softer answer.
|
|
293
|
+
*
|
|
294
|
+
* Unaffected by a refute pass, and the two can hold at once: a verdict
|
|
295
|
+
* lowered from `block` to `needs_work` is still above a model that said
|
|
296
|
+
* `approve`, and both facts are worth a line. `level` is never below
|
|
297
|
+
* `reported` — `from` only ever raises — so a disagreement between them is
|
|
298
|
+
* always this one.
|
|
299
|
+
*/
|
|
300
|
+
get raised(): boolean;
|
|
301
|
+
/** True when a refute pass took away what the level rested on. */
|
|
302
|
+
get lowered(): boolean;
|
|
303
|
+
get label(): string;
|
|
304
|
+
/**
|
|
305
|
+
* `level` is absent when the review did not finish.
|
|
306
|
+
*
|
|
307
|
+
* Deliberately absent rather than present-and-qualified. A consumer writing
|
|
308
|
+
* `verdict.level === 'approve'` is the obvious way to gate on this, and an
|
|
309
|
+
* unfinished run whose findings floor happens to be `approve` would sail
|
|
310
|
+
* through it. Omitted, that check is falsy and the gate holds; `floor` still
|
|
311
|
+
* carries what the findings support, for anyone who wants it.
|
|
312
|
+
*/
|
|
313
|
+
toJSON(): Record<string, unknown>;
|
|
314
|
+
}
|
|
315
|
+
/** Where a finding's anchor text is read from. */
|
|
316
|
+
export interface FileSource {
|
|
317
|
+
read(path: string): string | null;
|
|
318
|
+
}
|
|
319
|
+
/** Reads from a checkout, refusing anything outside it. */
|
|
320
|
+
export declare class WorkspaceFiles implements FileSource {
|
|
321
|
+
private readonly root;
|
|
322
|
+
constructor(root: string);
|
|
323
|
+
read(path: string): string | null;
|
|
324
|
+
}
|
|
325
|
+
/** A FileSource backed by content already in hand — parsing a stored review. */
|
|
326
|
+
export declare class StaticFiles implements FileSource {
|
|
327
|
+
private readonly files;
|
|
328
|
+
constructor(files: Record<string, string>);
|
|
329
|
+
read(path: string): string | null;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* The code a finding is pinned to, and the source of its identity.
|
|
333
|
+
*
|
|
334
|
+
* One line where that line says something, widened upward when it does not —
|
|
335
|
+
* a finding anchored to `}` would otherwise share an identity with every other
|
|
336
|
+
* closing brace in the file. Widening upward rather than in both directions
|
|
337
|
+
* keeps the anchor stable when the code below it changes, which is the more
|
|
338
|
+
* common edit.
|
|
339
|
+
*/
|
|
340
|
+
export declare class CodeAnchor {
|
|
341
|
+
readonly text: string;
|
|
342
|
+
private constructor();
|
|
343
|
+
/**
|
|
344
|
+
* Collapses formatting so a reformat does not read as a different anchor.
|
|
345
|
+
*
|
|
346
|
+
* Deliberately language-agnostic: stripping comments or normalising syntax
|
|
347
|
+
* would need a parser per language, and the gain is small next to the cost
|
|
348
|
+
* of being wrong about a language we guessed at.
|
|
349
|
+
*/
|
|
350
|
+
static normalise(text: string): string;
|
|
351
|
+
/** A line carrying too little to identify anything. */
|
|
352
|
+
private static _trivial;
|
|
353
|
+
static at(content: string, line: number): CodeAnchor;
|
|
354
|
+
/** For a finding whose file cannot be read; its own words are all we have. */
|
|
355
|
+
static of(text: string): CodeAnchor;
|
|
356
|
+
get isEmpty(): boolean;
|
|
357
|
+
/**
|
|
358
|
+
* Identity for a claim: where it is, what the code there says, and what kind
|
|
359
|
+
* of claim it is.
|
|
360
|
+
*
|
|
361
|
+
* The line number is deliberately absent — including it would mean a finding
|
|
362
|
+
* stops recognising itself the moment anything above it is edited, and "have
|
|
363
|
+
* I already said this" is the question the whole memory design rests on.
|
|
364
|
+
*
|
|
365
|
+
* The model's wording is absent too, for the same reason in reverse: the
|
|
366
|
+
* same defect described in two different runs must produce one identity, and
|
|
367
|
+
* no model phrases a sentence the same way twice.
|
|
368
|
+
*
|
|
369
|
+
* The cost is that two genuinely different findings of the same category on
|
|
370
|
+
* the same code collapse into one. That is the right way to be wrong: a
|
|
371
|
+
* merged pair loses a finding once, while a split pair reports the same
|
|
372
|
+
* thing forever.
|
|
373
|
+
*/
|
|
374
|
+
fingerprint(path: string, category: string): string;
|
|
375
|
+
toString(): string;
|
|
376
|
+
}
|
|
377
|
+
/** One thing a review has to say, and the evidence it rests on. */
|
|
378
|
+
export declare class Finding {
|
|
379
|
+
readonly id: string;
|
|
380
|
+
readonly anchor: CodeAnchor;
|
|
381
|
+
readonly severity: Severity;
|
|
382
|
+
readonly category: Category;
|
|
383
|
+
readonly title: string;
|
|
384
|
+
readonly body: string;
|
|
385
|
+
readonly path: string;
|
|
386
|
+
readonly line: number;
|
|
387
|
+
readonly evidence: readonly Evidence[];
|
|
388
|
+
readonly confidence: number;
|
|
389
|
+
readonly suggestion: string | undefined;
|
|
390
|
+
constructor(reported: ReportedFinding, anchor: CodeAnchor);
|
|
391
|
+
/** Anchors a reported finding to the code it is about. */
|
|
392
|
+
static from(reported: ReportedFinding, files: FileSource): Finding;
|
|
393
|
+
get rank(): number;
|
|
394
|
+
isSameAs(other: Finding): boolean;
|
|
395
|
+
/** True when this is the better statement of a finding both describe. */
|
|
396
|
+
supersedes(other: Finding): boolean;
|
|
397
|
+
/** Ordering for output: severity, then confidence, then location. */
|
|
398
|
+
compare(other: Finding): number;
|
|
399
|
+
toJSON(): ReportedFinding & {
|
|
400
|
+
id: string;
|
|
401
|
+
anchor: string;
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* A suppression as `--json` carries it.
|
|
406
|
+
*
|
|
407
|
+
* Declared rather than left as an anonymous object, because this is a wire
|
|
408
|
+
* format: something downstream parses it, and a shape that exists only inside
|
|
409
|
+
* a method body changes without anyone noticing. `reason` is null rather than
|
|
410
|
+
* absent so a consumer never has to tell "no reason given" from "this build
|
|
411
|
+
* did not have the field".
|
|
412
|
+
*/
|
|
413
|
+
/**
|
|
414
|
+
* What took a finding out of a review.
|
|
415
|
+
*
|
|
416
|
+
* The three refute grounds, plus two things that remove a finding without
|
|
417
|
+
* arguing with it. `confidence` is the reviewer's own confidence, measured
|
|
418
|
+
* against a floor the user set. `answered` is a human having ruled that this
|
|
419
|
+
* finding is not to be reported here. They share one type because the
|
|
420
|
+
* accounting is the same whoever did it: a finding is gone, and the report has
|
|
421
|
+
* to say by whose hand.
|
|
422
|
+
*
|
|
423
|
+
* `answered` and `corrected` both come from a human ruling, but they are not
|
|
424
|
+
* the same event. `corrected` is a refute pass killing a finding and citing a
|
|
425
|
+
* ruling as what it stands on. `answered` is the ruling taking the finding out
|
|
426
|
+
* by itself, with no pass involved and nothing to check.
|
|
427
|
+
*/
|
|
428
|
+
export type SuppressionGround = Ground | 'confidence' | 'answered';
|
|
429
|
+
export interface SuppressionJson {
|
|
430
|
+
finding: ReturnType<Finding['toJSON']>;
|
|
431
|
+
ground: SuppressionGround;
|
|
432
|
+
reason: string | null;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* A finding the refute pass killed, and what killed it.
|
|
436
|
+
*
|
|
437
|
+
* Kept rather than deleted, because a finding that vanishes between the review
|
|
438
|
+
* and the report is indistinguishable from one that was never written. The
|
|
439
|
+
* person reading the review has no way to tell a refuter doing its job from a
|
|
440
|
+
* refuter quietly eating the thing they needed to see, and the second failure
|
|
441
|
+
* looks exactly like a cleaner review.
|
|
442
|
+
*/
|
|
443
|
+
export declare class Suppression {
|
|
444
|
+
readonly finding: Finding;
|
|
445
|
+
/** A refute ground, or `confidence` when a floor withheld it. */
|
|
446
|
+
readonly ground: SuppressionGround;
|
|
447
|
+
/** One line a human can check the ground against, when the pass gave one. */
|
|
448
|
+
readonly reason: string | undefined;
|
|
449
|
+
constructor(finding: Finding,
|
|
450
|
+
/** A refute ground, or `confidence` when a floor withheld it. */
|
|
451
|
+
ground: SuppressionGround,
|
|
452
|
+
/** One line a human can check the ground against, when the pass gave one. */
|
|
453
|
+
reason: string | undefined);
|
|
454
|
+
toJSON(): SuppressionJson;
|
|
455
|
+
}
|
|
456
|
+
/** The findings from one review, and the operations that only make sense over all of them. */
|
|
457
|
+
export declare class FindingSet implements Iterable<Finding> {
|
|
458
|
+
private readonly findings;
|
|
459
|
+
/**
|
|
460
|
+
* What a refute pass took out, travelling with what it left.
|
|
461
|
+
*
|
|
462
|
+
* On the set rather than beside it so that every operation below has to
|
|
463
|
+
* decide what happens to it. A set that dropped its suppressions on the
|
|
464
|
+
* way through `deduped()` would report an honest count of survivors and
|
|
465
|
+
* silently lose the account of what is missing.
|
|
466
|
+
*/
|
|
467
|
+
private readonly _suppressed;
|
|
468
|
+
constructor(findings?: readonly Finding[],
|
|
469
|
+
/**
|
|
470
|
+
* What a refute pass took out, travelling with what it left.
|
|
471
|
+
*
|
|
472
|
+
* On the set rather than beside it so that every operation below has to
|
|
473
|
+
* decide what happens to it. A set that dropped its suppressions on the
|
|
474
|
+
* way through `deduped()` would report an honest count of survivors and
|
|
475
|
+
* silently lose the account of what is missing.
|
|
476
|
+
*/
|
|
477
|
+
_suppressed?: readonly Suppression[]);
|
|
478
|
+
/** What was killed, and why. Empty unless a refute pass ran. */
|
|
479
|
+
get suppressed(): readonly Suppression[];
|
|
480
|
+
static from(reported: readonly ReportedFinding[], files: FileSource): FindingSet;
|
|
481
|
+
get size(): number;
|
|
482
|
+
get isEmpty(): boolean;
|
|
483
|
+
[Symbol.iterator](): Iterator<Finding>;
|
|
484
|
+
/**
|
|
485
|
+
* One finding per identity, keeping the most serious statement of it.
|
|
486
|
+
*
|
|
487
|
+
* A single loop can still report the same defect twice — once where it is
|
|
488
|
+
* introduced and once where it is called.
|
|
489
|
+
*/
|
|
490
|
+
deduped(): FindingSet;
|
|
491
|
+
/**
|
|
492
|
+
* Withholds anything the reviewer is not sure enough about to be worth saying.
|
|
493
|
+
*
|
|
494
|
+
* The withheld findings are kept, not deleted, and for the same reason a
|
|
495
|
+
* refuted one is: a finding that vanishes between the model and the report
|
|
496
|
+
* is indistinguishable from one that was never written. That matters more
|
|
497
|
+
* here than it does for a kill, because this floor is a number the user
|
|
498
|
+
* guessed at — and the only way to tell whether they guessed well is to see
|
|
499
|
+
* what fell below it.
|
|
500
|
+
*
|
|
501
|
+
* A floor of 0 withholds nothing and is the default. The threshold is not
|
|
502
|
+
* ours to pick: it wants real findings to be set against.
|
|
503
|
+
*/
|
|
504
|
+
atLeastConfident(floor: number): FindingSet;
|
|
505
|
+
ranked(): Finding[];
|
|
506
|
+
/** Ranked, and grouped for output that leads with what matters. */
|
|
507
|
+
bySeverity(): Map<Severity, Finding[]>;
|
|
508
|
+
toJSON(): ReturnType<Finding['toJSON']>[];
|
|
509
|
+
}
|
|
510
|
+
//# sourceMappingURL=findings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findings.d.ts","sourceRoot":"","sources":["../src/findings.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,YAAI,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAChF,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,C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