@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,181 @@
|
|
|
1
|
+
import { type Effort, type MemoryBackendName } from './config.js';
|
|
2
|
+
import type { Severity } from './findings.js';
|
|
3
|
+
export interface ReviewOptions {
|
|
4
|
+
repo?: string;
|
|
5
|
+
base?: string;
|
|
6
|
+
head?: string;
|
|
7
|
+
uncommitted?: boolean;
|
|
8
|
+
dryRun: boolean;
|
|
9
|
+
json: boolean;
|
|
10
|
+
model?: string;
|
|
11
|
+
maxSteps?: number;
|
|
12
|
+
maxCost?: number;
|
|
13
|
+
coverageFloor?: number;
|
|
14
|
+
confidenceFloor?: number;
|
|
15
|
+
effort?: Effort;
|
|
16
|
+
/**
|
|
17
|
+
* Put the findings to a second call that tries to kill them.
|
|
18
|
+
*
|
|
19
|
+
* Off by default because it roughly doubles what a review costs in calls,
|
|
20
|
+
* and because a review is useful without it. Switching it on is a trade a
|
|
21
|
+
* reader makes knowingly: fewer false positives, a longer run.
|
|
22
|
+
*
|
|
23
|
+
* Left out, the `refute` setting decides. `false` is `--no-refute`, which
|
|
24
|
+
* overrides a setting that turned it on.
|
|
25
|
+
*/
|
|
26
|
+
refute?: boolean;
|
|
27
|
+
quiet?: boolean;
|
|
28
|
+
/** Skip the running commentary on stderr. `--quiet` implies it. */
|
|
29
|
+
noProgress?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Review as though the branch had never been reviewed before.
|
|
32
|
+
*
|
|
33
|
+
* The per-run form of `continuation: false`. The record is still written —
|
|
34
|
+
* this says not to read one, not to stop keeping them.
|
|
35
|
+
*/
|
|
36
|
+
fresh?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Keep no record of this review on disk. Mirrors the prompt path's flag.
|
|
39
|
+
*
|
|
40
|
+
* The run is still named: the id is minted whether or not anything is
|
|
41
|
+
* written, so the file stays the record and never becomes the identity.
|
|
42
|
+
*/
|
|
43
|
+
noSession?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whose claims, in which store. A review reads memory, so `-u`,
|
|
46
|
+
* `--memory-backend` and `--no-memory` mean here what they mean on every
|
|
47
|
+
* other command: every read is filtered on the user, and recalling under the
|
|
48
|
+
* wrong one looks exactly like an unprimed repository.
|
|
49
|
+
*/
|
|
50
|
+
user?: string;
|
|
51
|
+
memoryBackend?: MemoryBackendName;
|
|
52
|
+
noMemory?: boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* `weigh review` — assemble the context, then either show it or act on it.
|
|
56
|
+
*
|
|
57
|
+
* The assembly is the same either way. `--dry-run` stops before the model call
|
|
58
|
+
* so the bundle and its cost can be inspected before anything is spent; without
|
|
59
|
+
* it, the same bundle goes to the reviewer.
|
|
60
|
+
*/
|
|
61
|
+
export declare class ReviewCommand {
|
|
62
|
+
private readonly _options;
|
|
63
|
+
constructor(_options: ReviewOptions);
|
|
64
|
+
run(): Promise<number>;
|
|
65
|
+
/**
|
|
66
|
+
* Everything up to the model call. Throws with a usable message, never a stack.
|
|
67
|
+
*
|
|
68
|
+
* The diff comes back beside the context because recall queries the hunks
|
|
69
|
+
* themselves, file by file, and the context carries them only as one joined
|
|
70
|
+
* string sized to a prompt budget.
|
|
71
|
+
*/
|
|
72
|
+
private _prepare;
|
|
73
|
+
/**
|
|
74
|
+
* The change narrowed to what moved since the review being continued.
|
|
75
|
+
*
|
|
76
|
+
* A continuation is there to confirm fixes and catch regressions, so it is
|
|
77
|
+
* shown the commits that came after the last review and nothing else — the
|
|
78
|
+
* rest of the branch was reviewed then, and showing it again is what made a
|
|
79
|
+
* second run cost as much as the first and report a fresh crop of findings.
|
|
80
|
+
*
|
|
81
|
+
* The same workspace, profile and base: only the starting commit changes,
|
|
82
|
+
* so `repo` is identical to the full context's and the record still keys
|
|
83
|
+
* the next run to this branch.
|
|
84
|
+
*
|
|
85
|
+
* A last-reviewed commit this checkout no longer has — collected after a
|
|
86
|
+
* force-push, say — leaves nothing to diff from. The full change is the
|
|
87
|
+
* answer then, which is what a continuation was shown before this existed.
|
|
88
|
+
*/
|
|
89
|
+
private _sinceLast;
|
|
90
|
+
/**
|
|
91
|
+
* The answer when nothing has changed since the review being continued.
|
|
92
|
+
*
|
|
93
|
+
* No call, no record. The last review is still the latest word on this
|
|
94
|
+
* branch, and a run with nothing to look at could only restate its rulings
|
|
95
|
+
* at the cost of a call — or, worse, invent findings to have something to
|
|
96
|
+
* say. A record of that run would also become the next one's baseline,
|
|
97
|
+
* standing in for the review that did the work.
|
|
98
|
+
*
|
|
99
|
+
* Exit 0 either way: the code says whether a review finished, and the one
|
|
100
|
+
* this points at did. A dry run stops here too, since it previews what a
|
|
101
|
+
* review would do.
|
|
102
|
+
*/
|
|
103
|
+
private _unchanged;
|
|
104
|
+
private _config;
|
|
105
|
+
/** Where the shared `.weigh.json` is read from: the repository under review. */
|
|
106
|
+
private _repoRoot;
|
|
107
|
+
private _showContext;
|
|
108
|
+
private _contextSummary;
|
|
109
|
+
private _review;
|
|
110
|
+
/**
|
|
111
|
+
* What Weigh knows about this repository that bears on this change.
|
|
112
|
+
*
|
|
113
|
+
* Nothing here may cost the run its review. A store that is down, a claim
|
|
114
|
+
* that cannot be read, a query that fails — each of those costs this review
|
|
115
|
+
* its context, which is a worse review and not a failed one, and the reason
|
|
116
|
+
* goes to stderr where a reader can see why the report reads as though
|
|
117
|
+
* nothing was remembered.
|
|
118
|
+
*/
|
|
119
|
+
private _recall;
|
|
120
|
+
/**
|
|
121
|
+
* The review this run continues, if it continues one.
|
|
122
|
+
*
|
|
123
|
+
* Switched off, the store is not even read: a fresh review is one that does
|
|
124
|
+
* not know what came before, and reading a record it has been told to ignore
|
|
125
|
+
* would only produce a warning nobody asked for.
|
|
126
|
+
*/
|
|
127
|
+
private _continuation;
|
|
128
|
+
/**
|
|
129
|
+
* What a human has already ruled about findings in this repository.
|
|
130
|
+
*
|
|
131
|
+
* A failed read costs the run its rulings, never its review. The set comes
|
|
132
|
+
* back empty, so nothing is silenced and nothing is grounded, and the review
|
|
133
|
+
* says too much rather than too little. The reason goes to stderr. In the
|
|
134
|
+
* direction that drops a finding, "could not check" must never come out as
|
|
135
|
+
* "nobody ruled".
|
|
136
|
+
*
|
|
137
|
+
* `--fresh` skips it. That flag asks for a review standing on nothing but
|
|
138
|
+
* the change in front of it, which is what makes two runs of a branch
|
|
139
|
+
* comparable. A suppression would make them differ for a reason that has
|
|
140
|
+
* nothing to do with the prompt.
|
|
141
|
+
*/
|
|
142
|
+
private _corrections;
|
|
143
|
+
/** Stderr, where it is visible without being part of the report. */
|
|
144
|
+
private _warn;
|
|
145
|
+
/**
|
|
146
|
+
* Writes the review where a later run can find it, and returns the path.
|
|
147
|
+
*
|
|
148
|
+
* Nothing downstream may fail because of this. The findings are already in
|
|
149
|
+
* hand; a record that cannot be written costs the next run its history, not
|
|
150
|
+
* this one its review. So the reason goes to stderr, where it is visible
|
|
151
|
+
* without being part of the report — and not at all under `--quiet`, which
|
|
152
|
+
* promises an exit code and nothing else.
|
|
153
|
+
*/
|
|
154
|
+
private _save;
|
|
155
|
+
/**
|
|
156
|
+
* The second pass, and the accounting that makes it one review.
|
|
157
|
+
*
|
|
158
|
+
* Not run on a review that did not finish. Its findings are the ones it
|
|
159
|
+
* managed to reach, its budget is spent, and paying for a second call to
|
|
160
|
+
* take some of them away is the wrong thing to do with what is left. The
|
|
161
|
+
* reason is recorded rather than silently skipped, so a reader who asked
|
|
162
|
+
* for `--refute` learns why they did not get one.
|
|
163
|
+
*/
|
|
164
|
+
private _refute;
|
|
165
|
+
/**
|
|
166
|
+
* What a refute pass is shown: on a continuation, only what this run
|
|
167
|
+
* reported for the first time. Carried findings were judged when they were
|
|
168
|
+
* first reported.
|
|
169
|
+
*
|
|
170
|
+
* One place, so a pass that ran and one that did not count `kept` and
|
|
171
|
+
* `carried` over the same split.
|
|
172
|
+
*/
|
|
173
|
+
private _refutable;
|
|
174
|
+
/** A review the pass never ran on, and the reason it did not. */
|
|
175
|
+
private _notRefuted;
|
|
176
|
+
/** Layout lives in ReviewRenderer; this only supplies the facts. */
|
|
177
|
+
private _render;
|
|
178
|
+
}
|
|
179
|
+
export declare function runReviewCommand(options: ReviewOptions): Promise<number>;
|
|
180
|
+
export type { Severity };
|
|
181
|
+
//# sourceMappingURL=review-cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review-cli.d.ts","sourceRoot":"","sources":["../src/review-cli.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgC,KAAK,MAAM,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAKhG,OAAO,KAAK,EAAc,QAAQ,EAAE,MAAM,eAAe,CAAC;AAiB1D,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mEAAmE;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD;;;;;;GAMG;AACH,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAArC,YAA6B,QAAQ,EAAE,aAAa,EAAI;IAElD,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAiB3B;IAED;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ;IAsDhB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,UAAU;IA6BlB;;;;;;;;;;;;OAYG;YACW,UAAU;IAmBxB,OAAO,CAAC,OAAO;IAiBf,gFAAgF;IAChF,OAAO,CAAC,SAAS;YAOH,YAAY;IAgD1B,OAAO,CAAC,eAAe;YAoCT,OAAO;IAoFrB;;;;;;;;OAQG;YACW,OAAO;IA0BrB;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;IAoBrB;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,YAAY;IAWpB,oEAAoE;IACpE,OAAO,CAAC,KAAK;IAIb;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;IAUb;;;;;;;;OAQG;YACW,OAAO;IA4ErB;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU;IAIlB,iEAAiE;IACjE,OAAO,CAAC,WAAW;IAgBnB,oEAAoE;IACpE,OAAO,CAAC,OAAO;CAoDhB;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9E;AAED,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|