flakelab 0.1.0 → 0.1.2
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/README.md +225 -38
- package/dist/analysis/blob-report.d.ts +15 -0
- package/dist/analysis/blob-report.js +137 -0
- package/dist/analysis/blob-report.js.map +1 -0
- package/dist/analysis/cli.d.ts +7 -0
- package/dist/analysis/cli.js +28 -0
- package/dist/analysis/cli.js.map +1 -0
- package/dist/analysis/schema.d.ts +175 -0
- package/dist/analysis/schema.js +34 -0
- package/dist/analysis/schema.js.map +1 -0
- package/dist/analysis/zip-archive.d.ts +6 -0
- package/dist/analysis/zip-archive.js +193 -0
- package/dist/analysis/zip-archive.js.map +1 -0
- package/dist/artifacts/paths.d.ts +3 -0
- package/dist/artifacts/paths.js +34 -0
- package/dist/artifacts/paths.js.map +1 -0
- package/dist/artifacts/retention.d.ts +1 -0
- package/dist/artifacts/retention.js +80 -0
- package/dist/artifacts/retention.js.map +1 -0
- package/dist/bisect/engine.js +0 -1
- package/dist/bisect/engine.js.map +1 -1
- package/dist/bisect/schema.d.ts +5 -6
- package/dist/bisect/schema.js +1 -2
- package/dist/bisect/schema.js.map +1 -1
- package/dist/bisect/solari-evaluator.js +9 -1
- package/dist/bisect/solari-evaluator.js.map +1 -1
- package/dist/ci/job-summary.d.ts +2 -0
- package/dist/ci/job-summary.js +120 -2
- package/dist/ci/job-summary.js.map +1 -1
- package/dist/ci/select-command.js +1 -1
- package/dist/ci/select-command.js.map +1 -1
- package/dist/ci/summary-command.js +12 -7
- package/dist/ci/summary-command.js.map +1 -1
- package/dist/cli-arguments.d.ts +44 -0
- package/dist/cli-arguments.js +356 -0
- package/dist/cli-arguments.js.map +1 -0
- package/dist/cli-command-help.d.ts +11 -0
- package/dist/cli-command-help.js +211 -0
- package/dist/cli-command-help.js.map +1 -0
- package/dist/cli-help.d.ts +5 -2
- package/dist/cli-help.js +122 -45
- package/dist/cli-help.js.map +1 -1
- package/dist/cli-option-definitions.d.ts +202 -0
- package/dist/cli-option-definitions.js +59 -0
- package/dist/cli-option-definitions.js.map +1 -0
- package/dist/cli.js +100 -100
- package/dist/cli.js.map +1 -1
- package/dist/commands/analyze-summary.d.ts +5 -0
- package/dist/commands/analyze-summary.js +89 -0
- package/dist/commands/analyze-summary.js.map +1 -0
- package/dist/commands/analyze.d.ts +6 -0
- package/dist/commands/analyze.js +128 -0
- package/dist/commands/analyze.js.map +1 -0
- package/dist/commands/bisect.d.ts +2 -2
- package/dist/commands/bisect.js +32 -3
- package/dist/commands/bisect.js.map +1 -1
- package/dist/commands/diagnose.d.ts +3 -2
- package/dist/commands/diagnose.js +355 -23
- package/dist/commands/diagnose.js.map +1 -1
- package/dist/commands/discover.d.ts +18 -2
- package/dist/commands/discover.js +215 -25
- package/dist/commands/discover.js.map +1 -1
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.js +66 -25
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/investigate.d.ts +3 -2
- package/dist/commands/investigate.js +22 -3
- package/dist/commands/investigate.js.map +1 -1
- package/dist/commands/options.d.ts +123 -16
- package/dist/commands/options.js +24 -2
- package/dist/commands/options.js.map +1 -1
- package/dist/commands/prove.d.ts +2 -2
- package/dist/commands/prove.js +38 -1
- package/dist/commands/prove.js.map +1 -1
- package/dist/commands/repair.d.ts +8 -2
- package/dist/commands/repair.js +32 -9
- package/dist/commands/repair.js.map +1 -1
- package/dist/commands/replay.d.ts +2 -2
- package/dist/commands/replay.js +15 -2
- package/dist/commands/replay.js.map +1 -1
- package/dist/commands/report.d.ts +2 -2
- package/dist/commands/report.js +35 -10
- package/dist/commands/report.js.map +1 -1
- package/dist/commands/scan-summary.d.ts +7 -0
- package/dist/commands/scan-summary.js +175 -0
- package/dist/commands/scan-summary.js.map +1 -0
- package/dist/commands/scan.d.ts +9 -12
- package/dist/commands/scan.js +66 -62
- package/dist/commands/scan.js.map +1 -1
- package/dist/core/plan.js +1 -1
- package/dist/core/plan.js.map +1 -1
- package/dist/diagnosis/checkpoint.d.ts +6 -0
- package/dist/diagnosis/checkpoint.js +46 -0
- package/dist/diagnosis/checkpoint.js.map +1 -0
- package/dist/diagnosis/cli.d.ts +7 -0
- package/dist/diagnosis/cli.js +84 -0
- package/dist/diagnosis/cli.js.map +1 -0
- package/dist/diagnosis/recommendation.d.ts +13 -0
- package/dist/diagnosis/recommendation.js +95 -0
- package/dist/diagnosis/recommendation.js.map +1 -0
- package/dist/diagnosis/run-state.d.ts +52 -0
- package/dist/diagnosis/run-state.js +173 -0
- package/dist/diagnosis/run-state.js.map +1 -0
- package/dist/diagnosis/schema.d.ts +207 -0
- package/dist/diagnosis/schema.js +108 -0
- package/dist/diagnosis/schema.js.map +1 -0
- package/dist/diagnosis/solari-handoff.d.ts +9 -0
- package/dist/diagnosis/solari-handoff.js +40 -0
- package/dist/diagnosis/solari-handoff.js.map +1 -0
- package/dist/diagnosis/summary.d.ts +3 -0
- package/dist/diagnosis/summary.js +115 -0
- package/dist/diagnosis/summary.js.map +1 -0
- package/dist/discovery/auth-cookie.d.ts +19 -0
- package/dist/discovery/auth-cookie.js +26 -0
- package/dist/discovery/auth-cookie.js.map +1 -0
- package/dist/discovery/evaluate.d.ts +35 -2
- package/dist/discovery/evaluate.js +136 -30
- package/dist/discovery/evaluate.js.map +1 -1
- package/dist/discovery/event-loop.d.ts +25 -0
- package/dist/discovery/event-loop.js +84 -0
- package/dist/discovery/event-loop.js.map +1 -0
- package/dist/discovery/minimize.d.ts +61 -1
- package/dist/discovery/minimize.js +179 -7
- package/dist/discovery/minimize.js.map +1 -1
- package/dist/discovery/resource-loading.d.ts +25 -0
- package/dist/discovery/resource-loading.js +84 -0
- package/dist/discovery/resource-loading.js.map +1 -0
- package/dist/discovery/runner-environment.d.ts +26 -0
- package/dist/discovery/runner-environment.js +68 -0
- package/dist/discovery/runner-environment.js.map +1 -0
- package/dist/discovery/startup-event.d.ts +25 -0
- package/dist/discovery/startup-event.js +84 -0
- package/dist/discovery/startup-event.js.map +1 -0
- package/dist/discovery/storage-state.d.ts +26 -0
- package/dist/discovery/storage-state.js +86 -0
- package/dist/discovery/storage-state.js.map +1 -0
- package/dist/discovery/temporal-environment.d.ts +31 -0
- package/dist/discovery/temporal-environment.js +43 -0
- package/dist/discovery/temporal-environment.js.map +1 -0
- package/dist/discovery/visual-environment.d.ts +28 -0
- package/dist/discovery/visual-environment.js +42 -0
- package/dist/discovery/visual-environment.js.map +1 -0
- package/dist/domain/schema.d.ts +840 -20
- package/dist/domain/schema.js +216 -6
- package/dist/domain/schema.js.map +1 -1
- package/dist/faults/browser-context.d.ts +16 -0
- package/dist/faults/browser-context.js +60 -0
- package/dist/faults/browser-context.js.map +1 -0
- package/dist/faults/cookie-header.d.ts +5 -0
- package/dist/faults/cookie-header.js +25 -0
- package/dist/faults/cookie-header.js.map +1 -0
- package/dist/faults/document-bootstrap.d.ts +5 -0
- package/dist/faults/document-bootstrap.js +141 -0
- package/dist/faults/document-bootstrap.js.map +1 -0
- package/dist/faults/install.d.ts +1 -1
- package/dist/faults/install.js +199 -6
- package/dist/faults/install.js.map +1 -1
- package/dist/faults/pattern.d.ts +1 -0
- package/dist/faults/pattern.js +24 -0
- package/dist/faults/pattern.js.map +1 -0
- package/dist/investigator/agent.js +39 -17
- package/dist/investigator/agent.js.map +1 -1
- package/dist/investigator/ledger.d.ts +1 -1
- package/dist/investigator/ledger.js +2 -2
- package/dist/investigator/ledger.js.map +1 -1
- package/dist/investigator/safe-source.d.ts +1 -0
- package/dist/investigator/safe-source.js +12 -3
- package/dist/investigator/safe-source.js.map +1 -1
- package/dist/investigator/schema.d.ts +293 -2
- package/dist/investigator/schema.js +100 -2
- package/dist/investigator/schema.js.map +1 -1
- package/dist/proof/cli.d.ts +7 -0
- package/dist/proof/cli.js +108 -0
- package/dist/proof/cli.js.map +1 -0
- package/dist/proof/preflight.d.ts +4 -0
- package/dist/proof/preflight.js +9 -0
- package/dist/proof/preflight.js.map +1 -0
- package/dist/repair/generator.d.ts +12 -1
- package/dist/repair/generator.js +30 -6
- package/dist/repair/generator.js.map +1 -1
- package/dist/repair/remote-proof-runner.js +6 -10
- package/dist/repair/remote-proof-runner.js.map +1 -1
- package/dist/repair/schema.d.ts +77 -2
- package/dist/repair/schema.js +23 -2
- package/dist/repair/schema.js.map +1 -1
- package/dist/repair/solari-validator.d.ts +2 -0
- package/dist/repair/solari-validator.js +4 -6
- package/dist/repair/solari-validator.js.map +1 -1
- package/dist/repair/summary.d.ts +10 -0
- package/dist/repair/summary.js +58 -0
- package/dist/repair/summary.js.map +1 -0
- package/dist/repair/validator.d.ts +1 -0
- package/dist/repair/validator.js +53 -12
- package/dist/repair/validator.js.map +1 -1
- package/dist/report/bundle.js +16 -37
- package/dist/report/bundle.js.map +1 -1
- package/dist/report/model.js +131 -12
- package/dist/report/model.js.map +1 -1
- package/dist/report/open.d.ts +9 -0
- package/dist/report/open.js +23 -0
- package/dist/report/open.js.map +1 -1
- package/dist/report/report-client.css +2 -0
- package/dist/report/report-client.js +58 -0
- package/dist/report/schema.d.ts +115 -5
- package/dist/report/schema.js +24 -5
- package/dist/report/schema.js.map +1 -1
- package/dist/reproducer/schema.d.ts +89 -4
- package/dist/reproducer/schema.js +3 -4
- package/dist/reproducer/schema.js.map +1 -1
- package/dist/runner/execution-fault.d.ts +10 -0
- package/dist/runner/execution-fault.js +24 -0
- package/dist/runner/execution-fault.js.map +1 -0
- package/dist/runner/fault-proxy.d.ts +7 -0
- package/dist/runner/fault-proxy.js +366 -0
- package/dist/runner/fault-proxy.js.map +1 -0
- package/dist/runner/local.js +2 -2
- package/dist/runner/local.js.map +1 -1
- package/dist/runner/native-scan.d.ts +25 -0
- package/dist/runner/native-scan.js +306 -0
- package/dist/runner/native-scan.js.map +1 -0
- package/dist/runner/playwright-executor.d.ts +3 -0
- package/dist/runner/playwright-executor.js +125 -66
- package/dist/runner/playwright-executor.js.map +1 -1
- package/dist/runner/process-tree.d.ts +7 -0
- package/dist/runner/process-tree.js +62 -0
- package/dist/runner/process-tree.js.map +1 -0
- package/dist/runner/project-bridge.d.ts +7 -0
- package/dist/runner/project-bridge.js +83 -0
- package/dist/runner/project-bridge.js.map +1 -0
- package/dist/runner/trial-reporter.d.ts +7 -0
- package/dist/runner/trial-reporter.js +47 -0
- package/dist/runner/trial-reporter.js.map +1 -0
- package/dist/scan/failure-clusters.d.ts +24 -0
- package/dist/scan/failure-clusters.js +74 -0
- package/dist/scan/failure-clusters.js.map +1 -0
- package/dist/scan/schema.d.ts +170 -0
- package/dist/scan/schema.js +71 -0
- package/dist/scan/schema.js.map +1 -0
- package/dist/solari/executor.d.ts +5 -1
- package/dist/solari/executor.js +25 -17
- package/dist/solari/executor.js.map +1 -1
- package/dist/solari/run-demo.d.ts +13 -1
- package/dist/solari/run-demo.js +35 -16
- package/dist/solari/run-demo.js.map +1 -1
- package/dist/solari/usage.d.ts +8 -2
- package/dist/solari/usage.js +14 -4
- package/dist/solari/usage.js.map +1 -1
- package/dist/ui/boundary.d.ts +17 -0
- package/dist/ui/boundary.js +18 -0
- package/dist/ui/boundary.js.map +1 -0
- package/dist/ui/console.d.ts +4 -0
- package/dist/ui/console.js +11 -0
- package/dist/ui/console.js.map +1 -0
- package/dist/ui/document.d.ts +40 -0
- package/dist/ui/document.js +120 -0
- package/dist/ui/document.js.map +1 -0
- package/dist/ui/format.d.ts +8 -0
- package/dist/ui/format.js +32 -0
- package/dist/ui/format.js.map +1 -0
- package/dist/ui/progress.d.ts +17 -1
- package/dist/ui/progress.js +51 -8
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/status.d.ts +7 -0
- package/dist/ui/status.js +36 -0
- package/dist/ui/status.js.map +1 -0
- package/dist/ui/style.d.ts +8 -0
- package/dist/ui/style.js +22 -0
- package/dist/ui/style.js.map +1 -0
- package/dist/ui/text.d.ts +17 -0
- package/dist/ui/text.js +123 -0
- package/dist/ui/text.js.map +1 -0
- package/dist/ui/theme.d.ts +23 -0
- package/dist/ui/theme.js +77 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/ui/trial-progress.d.ts +13 -0
- package/dist/ui/trial-progress.js +42 -0
- package/dist/ui/trial-progress.js.map +1 -0
- package/package.json +14 -19
- package/dist/faults/network-delay.d.ts +0 -5
- package/dist/faults/network-delay.js +0 -34
- package/dist/faults/network-delay.js.map +0 -1
- package/dist/faults/request-failure.d.ts +0 -5
- package/dist/faults/request-failure.js +0 -24
- package/dist/faults/request-failure.js.map +0 -1
- package/dist/playwright.d.ts +0 -3
- package/dist/playwright.js +0 -21
- package/dist/playwright.js.map +0 -1
- package/dist/report/browser-entry.d.ts +0 -2
- package/dist/report/browser-entry.js +0 -15
- package/dist/report/browser-entry.js.map +0 -1
- package/dist/report/components/artifacts.d.ts +0 -4
- package/dist/report/components/artifacts.js +0 -6
- package/dist/report/components/artifacts.js.map +0 -1
- package/dist/report/components/experiments.d.ts +0 -4
- package/dist/report/components/experiments.js +0 -7
- package/dist/report/components/experiments.js.map +0 -1
- package/dist/report/components/hypotheses.d.ts +0 -4
- package/dist/report/components/hypotheses.js +0 -26
- package/dist/report/components/hypotheses.js.map +0 -1
- package/dist/report/components/indicators.d.ts +0 -32
- package/dist/report/components/indicators.js +0 -42
- package/dist/report/components/indicators.js.map +0 -1
- package/dist/report/components/layout.d.ts +0 -29
- package/dist/report/components/layout.js +0 -20
- package/dist/report/components/layout.js.map +0 -1
- package/dist/report/components/proof.d.ts +0 -4
- package/dist/report/components/proof.js +0 -34
- package/dist/report/components/proof.js.map +0 -1
- package/dist/report/components/reproduction.d.ts +0 -4
- package/dist/report/components/reproduction.js +0 -19
- package/dist/report/components/reproduction.js.map +0 -1
- package/dist/report/components/summary.d.ts +0 -4
- package/dist/report/components/summary.js +0 -12
- package/dist/report/components/summary.js.map +0 -1
- package/dist/report/components/verdict.d.ts +0 -4
- package/dist/report/components/verdict.js +0 -27
- package/dist/report/components/verdict.js.map +0 -1
- package/dist/report/report-app.d.ts +0 -6
- package/dist/report/report-app.js +0 -16
- package/dist/report/report-app.js.map +0 -1
- package/dist/report/report-details.css +0 -182
- package/dist/report/report.css +0 -404
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import { parseArgs } from "node:util";
|
|
2
|
+
import { parseAnalyzeArguments } from "./analysis/cli.js";
|
|
3
|
+
import { CLI_OPTION_DEFINITIONS as DEFINITIONS, requiredOption as required, } from "./cli-option-definitions.js";
|
|
4
|
+
import { parseDiagnoseArguments } from "./diagnosis/cli.js";
|
|
5
|
+
import { parseProveArguments } from "./proof/cli.js";
|
|
6
|
+
const NAMED_COMMANDS = [
|
|
7
|
+
"analyze",
|
|
8
|
+
"bisect",
|
|
9
|
+
"diagnose",
|
|
10
|
+
"discover",
|
|
11
|
+
"doctor",
|
|
12
|
+
"investigate",
|
|
13
|
+
"prove",
|
|
14
|
+
"repair",
|
|
15
|
+
"replay",
|
|
16
|
+
"resume",
|
|
17
|
+
"report",
|
|
18
|
+
"scan",
|
|
19
|
+
];
|
|
20
|
+
function oneTarget(positionals, command) {
|
|
21
|
+
if (positionals.length !== 1) {
|
|
22
|
+
throw new Error(`${command} requires exactly one target. Run flakelab --help for usage.`);
|
|
23
|
+
}
|
|
24
|
+
return positionals[0];
|
|
25
|
+
}
|
|
26
|
+
function noTarget(positionals, command) {
|
|
27
|
+
if (positionals.length > 0) {
|
|
28
|
+
throw new Error(`${command} does not accept a target`);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function isNamedCommand(value) {
|
|
32
|
+
return value !== undefined && NAMED_COMMANDS.some((command) => command === value);
|
|
33
|
+
}
|
|
34
|
+
function parseScan(args) {
|
|
35
|
+
const parsed = parseArgs({
|
|
36
|
+
args,
|
|
37
|
+
allowPositionals: true,
|
|
38
|
+
strict: true,
|
|
39
|
+
options: {
|
|
40
|
+
artifacts: DEFINITIONS.artifacts,
|
|
41
|
+
concurrency: DEFINITIONS.concurrency,
|
|
42
|
+
json: DEFINITIONS.json,
|
|
43
|
+
runs: DEFINITIONS.runs,
|
|
44
|
+
verbose: DEFINITIONS.verbose,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
return {
|
|
48
|
+
command: "scan",
|
|
49
|
+
target: oneTarget(parsed.positionals, "scan"),
|
|
50
|
+
options: {
|
|
51
|
+
artifacts: required(parsed.values.artifacts, "artifacts"),
|
|
52
|
+
concurrency: required(parsed.values.concurrency, "concurrency"),
|
|
53
|
+
json: required(parsed.values.json, "json"),
|
|
54
|
+
runs: required(parsed.values.runs, "runs"),
|
|
55
|
+
verbose: required(parsed.values.verbose, "verbose"),
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function parseDiscover(args) {
|
|
60
|
+
const parsed = parseArgs({
|
|
61
|
+
args,
|
|
62
|
+
allowPositionals: true,
|
|
63
|
+
strict: true,
|
|
64
|
+
options: {
|
|
65
|
+
"animation-rate": DEFINITIONS.animationRate,
|
|
66
|
+
"clock-offset-ms": DEFINITIONS.clockOffsetMs,
|
|
67
|
+
concurrency: DEFINITIONS.concurrency,
|
|
68
|
+
"cookie-name": DEFINITIONS.cookieName,
|
|
69
|
+
fault: DEFINITIONS.fault,
|
|
70
|
+
"jump-after-ms": DEFINITIONS.jumpAfterMs,
|
|
71
|
+
locale: DEFINITIONS.locale,
|
|
72
|
+
"max-delay": DEFINITIONS.maxDelay,
|
|
73
|
+
"max-copies": DEFINITIONS.maxCopies,
|
|
74
|
+
"max-duplicate-bytes": DEFINITIONS.maxDuplicateBytes,
|
|
75
|
+
"max-hold-ms": DEFINITIONS.maxHoldMs,
|
|
76
|
+
"max-remove-bytes": DEFINITIONS.maxRemoveBytes,
|
|
77
|
+
"max-seconds": DEFINITIONS.discoveryMaxSeconds,
|
|
78
|
+
"max-stall-ms": DEFINITIONS.maxStallMs,
|
|
79
|
+
"max-workers": DEFINITIONS.maxWorkers,
|
|
80
|
+
"min-rate": DEFINITIONS.minRate,
|
|
81
|
+
output: DEFINITIONS.output,
|
|
82
|
+
pattern: DEFINITIONS.pattern,
|
|
83
|
+
"resource-type": DEFINITIONS.resourceType,
|
|
84
|
+
seed: DEFINITIONS.seed,
|
|
85
|
+
"startup-event": DEFINITIONS.startupEvent,
|
|
86
|
+
"stall-after-ms": DEFINITIONS.stallAfterMs,
|
|
87
|
+
storage: DEFINITIONS.storage,
|
|
88
|
+
"storage-key": DEFINITIONS.storageKey,
|
|
89
|
+
timezone: DEFINITIONS.timezone,
|
|
90
|
+
trials: DEFINITIONS.trials,
|
|
91
|
+
"viewport-height": DEFINITIONS.viewportHeight,
|
|
92
|
+
"viewport-width": DEFINITIONS.viewportWidth,
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
return {
|
|
96
|
+
command: "discover",
|
|
97
|
+
target: oneTarget(parsed.positionals, "discover"),
|
|
98
|
+
options: {
|
|
99
|
+
"animation-rate": required(parsed.values["animation-rate"], "animation-rate"),
|
|
100
|
+
"clock-offset-ms": required(parsed.values["clock-offset-ms"], "clock-offset-ms"),
|
|
101
|
+
concurrency: required(parsed.values.concurrency, "concurrency"),
|
|
102
|
+
...(parsed.values["cookie-name"]
|
|
103
|
+
? { "cookie-name": parsed.values["cookie-name"] }
|
|
104
|
+
: {}),
|
|
105
|
+
fault: required(parsed.values.fault, "fault"),
|
|
106
|
+
"jump-after-ms": required(parsed.values["jump-after-ms"], "jump-after-ms"),
|
|
107
|
+
locale: required(parsed.values.locale, "locale"),
|
|
108
|
+
"max-delay": required(parsed.values["max-delay"], "max-delay"),
|
|
109
|
+
"max-copies": required(parsed.values["max-copies"], "max-copies"),
|
|
110
|
+
"max-duplicate-bytes": required(parsed.values["max-duplicate-bytes"], "max-duplicate-bytes"),
|
|
111
|
+
"max-hold-ms": required(parsed.values["max-hold-ms"], "max-hold-ms"),
|
|
112
|
+
"max-remove-bytes": required(parsed.values["max-remove-bytes"], "max-remove-bytes"),
|
|
113
|
+
"max-seconds": required(parsed.values["max-seconds"], "max-seconds"),
|
|
114
|
+
"max-stall-ms": required(parsed.values["max-stall-ms"], "max-stall-ms"),
|
|
115
|
+
"max-workers": required(parsed.values["max-workers"], "max-workers"),
|
|
116
|
+
"min-rate": required(parsed.values["min-rate"], "min-rate"),
|
|
117
|
+
output: required(parsed.values.output, "output"),
|
|
118
|
+
pattern: required(parsed.values.pattern, "pattern"),
|
|
119
|
+
"resource-type": required(parsed.values["resource-type"], "resource-type"),
|
|
120
|
+
seed: required(parsed.values.seed, "seed"),
|
|
121
|
+
"startup-event": required(parsed.values["startup-event"], "startup-event"),
|
|
122
|
+
"stall-after-ms": required(parsed.values["stall-after-ms"], "stall-after-ms"),
|
|
123
|
+
storage: required(parsed.values.storage, "storage"),
|
|
124
|
+
...(parsed.values["storage-key"]
|
|
125
|
+
? { "storage-key": parsed.values["storage-key"] }
|
|
126
|
+
: {}),
|
|
127
|
+
timezone: required(parsed.values.timezone, "timezone"),
|
|
128
|
+
trials: required(parsed.values.trials, "trials"),
|
|
129
|
+
"viewport-height": required(parsed.values["viewport-height"], "viewport-height"),
|
|
130
|
+
"viewport-width": required(parsed.values["viewport-width"], "viewport-width"),
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function parseReplay(args) {
|
|
135
|
+
const parsed = parseArgs({
|
|
136
|
+
args,
|
|
137
|
+
allowPositionals: true,
|
|
138
|
+
strict: true,
|
|
139
|
+
options: { concurrency: DEFINITIONS.concurrency },
|
|
140
|
+
});
|
|
141
|
+
return {
|
|
142
|
+
command: "replay",
|
|
143
|
+
target: oneTarget(parsed.positionals, "replay"),
|
|
144
|
+
options: { concurrency: required(parsed.values.concurrency, "concurrency") },
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function parseInvestigate(args) {
|
|
148
|
+
const parsed = parseArgs({
|
|
149
|
+
args,
|
|
150
|
+
allowPositionals: true,
|
|
151
|
+
strict: true,
|
|
152
|
+
options: {
|
|
153
|
+
concurrency: DEFINITIONS.concurrency,
|
|
154
|
+
"max-cost": DEFINITIONS.maxCost,
|
|
155
|
+
"max-delay": DEFINITIONS.maxDelay,
|
|
156
|
+
"max-experiments": DEFINITIONS.maxExperiments,
|
|
157
|
+
"max-seconds": DEFINITIONS.maxSeconds,
|
|
158
|
+
"max-steps": DEFINITIONS.maxSteps,
|
|
159
|
+
"max-trials": DEFINITIONS.maxTrials,
|
|
160
|
+
"min-rate": DEFINITIONS.minRate,
|
|
161
|
+
model: DEFINITIONS.model,
|
|
162
|
+
pattern: DEFINITIONS.pattern,
|
|
163
|
+
"prompt-credentials": DEFINITIONS.promptCredentials,
|
|
164
|
+
report: DEFINITIONS.report,
|
|
165
|
+
seed: DEFINITIONS.seed,
|
|
166
|
+
trials: DEFINITIONS.trials,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
return {
|
|
170
|
+
command: "investigate",
|
|
171
|
+
target: oneTarget(parsed.positionals, "investigate"),
|
|
172
|
+
options: {
|
|
173
|
+
concurrency: required(parsed.values.concurrency, "concurrency"),
|
|
174
|
+
"max-cost": required(parsed.values["max-cost"], "max-cost"),
|
|
175
|
+
"max-delay": required(parsed.values["max-delay"], "max-delay"),
|
|
176
|
+
"max-experiments": required(parsed.values["max-experiments"], "max-experiments"),
|
|
177
|
+
"max-seconds": required(parsed.values["max-seconds"], "max-seconds"),
|
|
178
|
+
"max-steps": required(parsed.values["max-steps"], "max-steps"),
|
|
179
|
+
"max-trials": required(parsed.values["max-trials"], "max-trials"),
|
|
180
|
+
"min-rate": required(parsed.values["min-rate"], "min-rate"),
|
|
181
|
+
model: required(parsed.values.model, "model"),
|
|
182
|
+
pattern: required(parsed.values.pattern, "pattern"),
|
|
183
|
+
"prompt-credentials": required(parsed.values["prompt-credentials"], "prompt-credentials"),
|
|
184
|
+
report: required(parsed.values.report, "report"),
|
|
185
|
+
seed: required(parsed.values.seed, "seed"),
|
|
186
|
+
trials: required(parsed.values.trials, "trials"),
|
|
187
|
+
},
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function parseRepair(args) {
|
|
191
|
+
const parsed = parseArgs({
|
|
192
|
+
args,
|
|
193
|
+
allowPositionals: true,
|
|
194
|
+
strict: true,
|
|
195
|
+
options: {
|
|
196
|
+
concurrency: DEFINITIONS.concurrency,
|
|
197
|
+
"max-cost": DEFINITIONS.maxCost,
|
|
198
|
+
"max-seconds": DEFINITIONS.maxSeconds,
|
|
199
|
+
model: DEFINITIONS.model,
|
|
200
|
+
patch: DEFINITIONS.patch,
|
|
201
|
+
proof: DEFINITIONS.proof,
|
|
202
|
+
"prompt-credentials": DEFINITIONS.promptCredentials,
|
|
203
|
+
reproducer: DEFINITIONS.reproducer,
|
|
204
|
+
source: DEFINITIONS.source,
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
return {
|
|
208
|
+
command: "repair",
|
|
209
|
+
target: oneTarget(parsed.positionals, "repair"),
|
|
210
|
+
options: {
|
|
211
|
+
concurrency: required(parsed.values.concurrency, "concurrency"),
|
|
212
|
+
"max-cost": required(parsed.values["max-cost"], "max-cost"),
|
|
213
|
+
"max-seconds": required(parsed.values["max-seconds"], "max-seconds"),
|
|
214
|
+
model: required(parsed.values.model, "model"),
|
|
215
|
+
patch: required(parsed.values.patch, "patch"),
|
|
216
|
+
proof: required(parsed.values.proof, "proof"),
|
|
217
|
+
"prompt-credentials": required(parsed.values["prompt-credentials"], "prompt-credentials"),
|
|
218
|
+
reproducer: required(parsed.values.reproducer, "reproducer"),
|
|
219
|
+
source: parsed.values.source ?? [],
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
function parseReport(args) {
|
|
224
|
+
const parsed = parseArgs({
|
|
225
|
+
args,
|
|
226
|
+
allowPositionals: true,
|
|
227
|
+
strict: true,
|
|
228
|
+
options: {
|
|
229
|
+
html: DEFINITIONS.html,
|
|
230
|
+
open: DEFINITIONS.open,
|
|
231
|
+
patch: DEFINITIONS.patch,
|
|
232
|
+
proof: DEFINITIONS.proof,
|
|
233
|
+
"prompt-credentials": DEFINITIONS.promptCredentials,
|
|
234
|
+
publish: DEFINITIONS.publish,
|
|
235
|
+
reproducer: DEFINITIONS.reproducer,
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
return {
|
|
239
|
+
command: "report",
|
|
240
|
+
target: oneTarget(parsed.positionals, "report"),
|
|
241
|
+
options: {
|
|
242
|
+
html: required(parsed.values.html, "html"),
|
|
243
|
+
open: required(parsed.values.open, "open"),
|
|
244
|
+
patch: required(parsed.values.patch, "patch"),
|
|
245
|
+
proof: required(parsed.values.proof, "proof"),
|
|
246
|
+
"prompt-credentials": required(parsed.values["prompt-credentials"], "prompt-credentials"),
|
|
247
|
+
publish: required(parsed.values.publish, "publish"),
|
|
248
|
+
reproducer: required(parsed.values.reproducer, "reproducer"),
|
|
249
|
+
},
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
function parseBisect(args) {
|
|
253
|
+
const parsed = parseArgs({
|
|
254
|
+
args,
|
|
255
|
+
allowPositionals: true,
|
|
256
|
+
strict: true,
|
|
257
|
+
options: {
|
|
258
|
+
bad: DEFINITIONS.bad,
|
|
259
|
+
"bisect-parallelism": DEFINITIONS.bisectParallelism,
|
|
260
|
+
"bisect-report": DEFINITIONS.bisectReport,
|
|
261
|
+
concurrency: DEFINITIONS.concurrency,
|
|
262
|
+
good: { type: "string" },
|
|
263
|
+
"max-trials": DEFINITIONS.maxTrials,
|
|
264
|
+
"min-rate": DEFINITIONS.minRate,
|
|
265
|
+
"prompt-credentials": DEFINITIONS.promptCredentials,
|
|
266
|
+
reproducer: DEFINITIONS.reproducer,
|
|
267
|
+
},
|
|
268
|
+
});
|
|
269
|
+
noTarget(parsed.positionals, "bisect");
|
|
270
|
+
if (!parsed.values.good) {
|
|
271
|
+
throw new Error("bisect requires --good <revision>");
|
|
272
|
+
}
|
|
273
|
+
return {
|
|
274
|
+
command: "bisect",
|
|
275
|
+
options: {
|
|
276
|
+
bad: required(parsed.values.bad, "bad"),
|
|
277
|
+
"bisect-parallelism": required(parsed.values["bisect-parallelism"], "bisect-parallelism"),
|
|
278
|
+
"bisect-report": required(parsed.values["bisect-report"], "bisect-report"),
|
|
279
|
+
concurrency: required(parsed.values.concurrency, "concurrency"),
|
|
280
|
+
good: parsed.values.good,
|
|
281
|
+
"max-trials": required(parsed.values["max-trials"], "max-trials"),
|
|
282
|
+
"min-rate": required(parsed.values["min-rate"], "min-rate"),
|
|
283
|
+
"prompt-credentials": required(parsed.values["prompt-credentials"], "prompt-credentials"),
|
|
284
|
+
reproducer: required(parsed.values.reproducer, "reproducer"),
|
|
285
|
+
},
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
function parseDoctor(args) {
|
|
289
|
+
const parsed = parseArgs({ args, allowPositionals: true, strict: true, options: {} });
|
|
290
|
+
noTarget(parsed.positionals, "doctor");
|
|
291
|
+
return { command: "doctor" };
|
|
292
|
+
}
|
|
293
|
+
function parseResume(args) {
|
|
294
|
+
const parsed = parseArgs({ args, allowPositionals: true, strict: true, options: {} });
|
|
295
|
+
if (parsed.positionals.length !== 1) {
|
|
296
|
+
throw new Error("resume requires exactly one diagnosis checkpoint. Run flakelab --help for usage.");
|
|
297
|
+
}
|
|
298
|
+
return { command: "resume", target: parsed.positionals[0] };
|
|
299
|
+
}
|
|
300
|
+
function explicitCommand(command, args) {
|
|
301
|
+
const parsers = {
|
|
302
|
+
analyze: parseAnalyzeArguments,
|
|
303
|
+
bisect: parseBisect,
|
|
304
|
+
diagnose: parseDiagnoseArguments,
|
|
305
|
+
discover: parseDiscover,
|
|
306
|
+
doctor: parseDoctor,
|
|
307
|
+
investigate: parseInvestigate,
|
|
308
|
+
prove: parseProveArguments,
|
|
309
|
+
repair: parseRepair,
|
|
310
|
+
replay: parseReplay,
|
|
311
|
+
resume: parseResume,
|
|
312
|
+
report: parseReport,
|
|
313
|
+
scan: parseScan,
|
|
314
|
+
};
|
|
315
|
+
return parsers[command](args);
|
|
316
|
+
}
|
|
317
|
+
function removeProveShortcut(args) {
|
|
318
|
+
const matches = args.filter((argument) => argument === "--prove").length;
|
|
319
|
+
if (matches === 0) {
|
|
320
|
+
return undefined;
|
|
321
|
+
}
|
|
322
|
+
if (matches > 1) {
|
|
323
|
+
throw new Error("--prove may be specified only once");
|
|
324
|
+
}
|
|
325
|
+
return args.filter((argument) => argument !== "--prove");
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Help is resolved before any command parser runs, so `flakelab discover --help`
|
|
329
|
+
* never has to satisfy that command's required arguments.
|
|
330
|
+
*/
|
|
331
|
+
function helpInvocation(args) {
|
|
332
|
+
if (args.length === 0) {
|
|
333
|
+
return { command: "help" };
|
|
334
|
+
}
|
|
335
|
+
if (!args.includes("--help") && !args.includes("-h")) {
|
|
336
|
+
return undefined;
|
|
337
|
+
}
|
|
338
|
+
const first = args[0];
|
|
339
|
+
return isNamedCommand(first) ? { command: "help", topic: first } : { command: "help" };
|
|
340
|
+
}
|
|
341
|
+
export function parseCliArguments(args) {
|
|
342
|
+
const help = helpInvocation(args);
|
|
343
|
+
if (help) {
|
|
344
|
+
return help;
|
|
345
|
+
}
|
|
346
|
+
if (args.includes("--version") || args.includes("-v")) {
|
|
347
|
+
return { command: "version" };
|
|
348
|
+
}
|
|
349
|
+
const first = args[0];
|
|
350
|
+
if (isNamedCommand(first)) {
|
|
351
|
+
return explicitCommand(first, args.slice(1));
|
|
352
|
+
}
|
|
353
|
+
const proofArgs = removeProveShortcut(args);
|
|
354
|
+
return proofArgs ? parseProveArguments(proofArgs) : parseScan(args);
|
|
355
|
+
}
|
|
356
|
+
//# sourceMappingURL=cli-arguments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-arguments.js","sourceRoot":"","sources":["../src/cli-arguments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,OAAO,EAAE,qBAAqB,EAA0B,MAAM,mBAAmB,CAAA;AACjF,OAAO,EACL,sBAAsB,IAAI,WAAW,EACrC,cAAc,IAAI,QAAQ,GAC3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,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IAC9C,CAAC;IACD,MAAM,SAAS,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAA;IAC3C,OAAO,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AACrE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DocumentRow } from "./ui/document.js";
|
|
2
|
+
import type { TerminalTheme } from "./ui/theme.js";
|
|
3
|
+
export type HelpTopic = "analyze" | "bisect" | "diagnose" | "discover" | "doctor" | "investigate" | "prove" | "repair" | "replay" | "report" | "resume" | "scan";
|
|
4
|
+
export interface CommandHelp {
|
|
5
|
+
examples: string[];
|
|
6
|
+
options: DocumentRow[];
|
|
7
|
+
summary: string;
|
|
8
|
+
usage: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const COMMAND_HELP: Record<HelpTopic, CommandHelp>;
|
|
11
|
+
export declare function commandHelpText(topic: HelpTopic, theme?: TerminalTheme): string;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { TerminalDocument } from "./ui/document.js";
|
|
2
|
+
import { PLAIN_THEME } from "./ui/theme.js";
|
|
3
|
+
const FAULTS = "animation-speed, auth-cookie-expiry, clock-jump, event-loop-stall, locale,"
|
|
4
|
+
+ " network-delay, reduced-motion, resource-loading-delay, response-duplication,"
|
|
5
|
+
+ " response-reordering, response-truncation, shared-state-interference,"
|
|
6
|
+
+ " startup-event-delay, storage-state-delay, timezone, viewport, worker-pressure";
|
|
7
|
+
const FAULT_BOUNDS = "--max-delay, --max-duplicate-bytes, --max-hold-ms, --max-remove-bytes,"
|
|
8
|
+
+ " --max-stall-ms, --stall-after-ms, --max-workers, --max-copies, --resource-type,"
|
|
9
|
+
+ " --startup-event, --cookie-name, --storage, --storage-key, --clock-offset-ms,"
|
|
10
|
+
+ " --jump-after-ms, --locale, --timezone, --viewport-width, --viewport-height,"
|
|
11
|
+
+ " --animation-rate";
|
|
12
|
+
const EVIDENCE_OPTIONS = [
|
|
13
|
+
{ label: "--reproducer <path>", value: "Minimized reproducer (default: flakelab.repro.yaml)" },
|
|
14
|
+
{ label: "--patch <path>", value: "Candidate diff (default: candidate.diff)" },
|
|
15
|
+
{ label: "--proof <path>", value: "Proof matrix (default: flakelab.proof.json)" },
|
|
16
|
+
];
|
|
17
|
+
const PROVIDER_OPTIONS = [
|
|
18
|
+
{ label: "--model <name>", value: "Groq model identifier" },
|
|
19
|
+
{ label: "--max-cost <usd>", value: "Model spend ceiling applied before work starts" },
|
|
20
|
+
{ label: "--prompt-credentials", value: "Re-enter provider keys through a hidden prompt" },
|
|
21
|
+
];
|
|
22
|
+
const DISCOVERY_OPTIONS = [
|
|
23
|
+
{ label: "--fault <family>", value: FAULTS },
|
|
24
|
+
{ label: "--pattern <glob>", value: "Request pattern the network faults apply to" },
|
|
25
|
+
{ label: "--trials <number>", value: "Trials per candidate batch" },
|
|
26
|
+
{ label: "--concurrency <n>", value: "Playwright workers per trial batch" },
|
|
27
|
+
{ label: "--min-rate <rate>", value: "Failure rate a trigger must reach to be confirmed" },
|
|
28
|
+
{ label: "--seed <number>", value: "Deterministic seed for every trial" },
|
|
29
|
+
{ label: "--max-seconds <n>", value: "Elapsed-time ceiling for the search (default: 300)" },
|
|
30
|
+
{ label: "Fault bounds", value: FAULT_BOUNDS },
|
|
31
|
+
];
|
|
32
|
+
export const COMMAND_HELP = {
|
|
33
|
+
analyze: {
|
|
34
|
+
examples: [
|
|
35
|
+
"flakelab analyze ./blob-report",
|
|
36
|
+
"flakelab analyze ./playwright-report.zip --baseline previous.json --json",
|
|
37
|
+
],
|
|
38
|
+
options: [
|
|
39
|
+
{ label: "--artifacts <dir>", value: "Evidence directory (default: .flakelab/runs)" },
|
|
40
|
+
{ label: "--baseline <artifact>", value: "Rank signatures absent from an earlier artifact" },
|
|
41
|
+
{ label: "--json", value: "Write only the analysis artifact JSON to stdout" },
|
|
42
|
+
{ label: "--verbose", value: "Append the artifact JSON to the human summary" },
|
|
43
|
+
],
|
|
44
|
+
summary: "Triage an existing Playwright blob report without rerunning any test.",
|
|
45
|
+
usage: "flakelab analyze <blob-report> [options]",
|
|
46
|
+
},
|
|
47
|
+
bisect: {
|
|
48
|
+
examples: ["flakelab bisect --good v1.4.0 --bad HEAD"],
|
|
49
|
+
options: [
|
|
50
|
+
{ label: "--good <revision>", value: "Last revision believed to be healthy (required)" },
|
|
51
|
+
{ label: "--bad <revision>", value: "Revision that shows the failure" },
|
|
52
|
+
{ label: "--bisect-parallelism <n>", value: "Concurrent Solari sandboxes" },
|
|
53
|
+
{ label: "--bisect-report <path>", value: "Where to write the bisect evidence" },
|
|
54
|
+
{ label: "--max-trials <number>", value: "Trial ceiling per evaluated revision" },
|
|
55
|
+
{ label: "--min-rate <rate>", value: "Failure rate that marks a revision bad" },
|
|
56
|
+
{ label: "--reproducer <path>", value: "Reproducer that defines the failure" },
|
|
57
|
+
{ label: "--prompt-credentials", value: "Re-enter provider keys through a hidden prompt" },
|
|
58
|
+
],
|
|
59
|
+
summary: "Locate the commit that introduced a reproducer, in disposable Solari sandboxes.",
|
|
60
|
+
usage: "flakelab bisect --good <revision> [options]",
|
|
61
|
+
},
|
|
62
|
+
diagnose: {
|
|
63
|
+
examples: [
|
|
64
|
+
"flakelab diagnose tests/checkout.spec.ts",
|
|
65
|
+
"flakelab diagnose --report ./blob-report --baseline previous.json",
|
|
66
|
+
"flakelab diagnose tests/checkout.spec.ts --discover",
|
|
67
|
+
],
|
|
68
|
+
options: [
|
|
69
|
+
{ label: "--report <blob-report>", value: "Start from existing evidence instead of a scan" },
|
|
70
|
+
{ label: "--runs <number>", value: "Repetitions in the bounded control scan" },
|
|
71
|
+
{ label: "--discover", value: "Compare paired controls, then minimize a trigger" },
|
|
72
|
+
{ label: "--investigate", value: "Explicitly enable bounded Groq investigation" },
|
|
73
|
+
{ label: "--repair", value: "Explicitly enable Groq repair and isolated Solari proof" },
|
|
74
|
+
{ label: "--source <file>", value: "Approve one application source file (max 7)" },
|
|
75
|
+
{ label: "--evidence <path>", value: "Investigation artifact path" },
|
|
76
|
+
{ label: "--html <path>", value: "Portable evidence report path" },
|
|
77
|
+
{ label: "--open", value: "Open the generated report without prompting" },
|
|
78
|
+
...EVIDENCE_OPTIONS,
|
|
79
|
+
...PROVIDER_OPTIONS,
|
|
80
|
+
{
|
|
81
|
+
label: "Bounds",
|
|
82
|
+
value: "--trials, --concurrency, --seed, --max-delay, --min-rate, --pattern,"
|
|
83
|
+
+ " --max-seconds, --max-steps, --max-experiments, --max-trials",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
summary: "The primary workflow: observe first, then run only the cheapest useful next step.",
|
|
87
|
+
usage: "flakelab diagnose [test] [options]",
|
|
88
|
+
},
|
|
89
|
+
discover: {
|
|
90
|
+
examples: [
|
|
91
|
+
"flakelab discover tests/checkout.spec.ts --fault network-delay --max-delay 250",
|
|
92
|
+
"flakelab discover tests/payload.spec.ts --fault response-truncation --max-remove-bytes 64",
|
|
93
|
+
],
|
|
94
|
+
options: [
|
|
95
|
+
...DISCOVERY_OPTIONS,
|
|
96
|
+
{ label: "--output <path>", value: "Reproducer to write (default: flakelab.repro.yaml)" },
|
|
97
|
+
],
|
|
98
|
+
summary: "Search one fault family for the smallest deterministic trigger, then confirm it.",
|
|
99
|
+
usage: "flakelab discover <test> [options]",
|
|
100
|
+
},
|
|
101
|
+
doctor: {
|
|
102
|
+
examples: ["flakelab doctor"],
|
|
103
|
+
options: [],
|
|
104
|
+
summary: "Check Node, Playwright, Chromium, evidence privacy, and credential safety.",
|
|
105
|
+
usage: "flakelab doctor",
|
|
106
|
+
},
|
|
107
|
+
investigate: {
|
|
108
|
+
examples: ["flakelab investigate tests/checkout.spec.ts --max-cost 0.10"],
|
|
109
|
+
options: [
|
|
110
|
+
{ label: "--report <path>", value: "Investigation artifact path" },
|
|
111
|
+
{ label: "--max-steps <number>", value: "Agent reasoning steps" },
|
|
112
|
+
{ label: "--max-experiments <n>", value: "Experiments the agent may run" },
|
|
113
|
+
{ label: "--max-trials <number>", value: "Trial ceiling across the investigation" },
|
|
114
|
+
{ label: "--max-seconds <number>", value: "Elapsed-time ceiling" },
|
|
115
|
+
...PROVIDER_OPTIONS,
|
|
116
|
+
{
|
|
117
|
+
label: "Bounds",
|
|
118
|
+
value: "--trials, --concurrency, --max-delay, --min-rate, --pattern, --seed",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
summary: "Run the bounded Groq investigator over compact, redacted experiment results.",
|
|
122
|
+
usage: "flakelab investigate <test> [options]",
|
|
123
|
+
},
|
|
124
|
+
prove: {
|
|
125
|
+
examples: [
|
|
126
|
+
"flakelab prove tests/checkout.spec.ts",
|
|
127
|
+
"flakelab tests/checkout.spec.ts --prove --fault viewport --viewport-width 390",
|
|
128
|
+
],
|
|
129
|
+
options: [
|
|
130
|
+
...DISCOVERY_OPTIONS,
|
|
131
|
+
{ label: "--source <file>", value: "Approve one application source file (max 7)" },
|
|
132
|
+
{ label: "--html <path>", value: "Portable evidence report path" },
|
|
133
|
+
{ label: "--open", value: "Open the generated report without prompting" },
|
|
134
|
+
{ label: "--publish", value: "Publish the redacted report after confirmation" },
|
|
135
|
+
...EVIDENCE_OPTIONS,
|
|
136
|
+
...PROVIDER_OPTIONS,
|
|
137
|
+
],
|
|
138
|
+
summary: "Run discover, replay, investigate, repair, and report as one proof pipeline.",
|
|
139
|
+
usage: "flakelab prove <test> [options]",
|
|
140
|
+
},
|
|
141
|
+
repair: {
|
|
142
|
+
examples: ["flakelab repair flakelab.investigation.json --source src/checkout.ts"],
|
|
143
|
+
options: [
|
|
144
|
+
{ label: "--source <file>", value: "Approve one application source file (repeatable)" },
|
|
145
|
+
{ label: "--concurrency <n>", value: "Playwright workers inside the Solari proof" },
|
|
146
|
+
{ label: "--max-seconds <number>", value: "Elapsed-time ceiling for candidate generation" },
|
|
147
|
+
...EVIDENCE_OPTIONS,
|
|
148
|
+
...PROVIDER_OPTIONS,
|
|
149
|
+
],
|
|
150
|
+
summary: "Generate one policy-bounded candidate and prove it in a disposable Solari microVM.",
|
|
151
|
+
usage: "flakelab repair <investigation> [options]",
|
|
152
|
+
},
|
|
153
|
+
replay: {
|
|
154
|
+
examples: ["flakelab replay flakelab.repro.yaml --concurrency 4"],
|
|
155
|
+
options: [
|
|
156
|
+
{ label: "--concurrency <n>", value: "Playwright workers used for the replay trials" },
|
|
157
|
+
],
|
|
158
|
+
summary: "Re-run a saved reproducer and check that the recorded signature still appears.",
|
|
159
|
+
usage: "flakelab replay <reproducer> [options]",
|
|
160
|
+
},
|
|
161
|
+
report: {
|
|
162
|
+
examples: ["flakelab report flakelab.investigation.json --open"],
|
|
163
|
+
options: [
|
|
164
|
+
{ label: "--html <path>", value: "Output file (default: flakelab.report.html)" },
|
|
165
|
+
{ label: "--open", value: "Open the generated report without prompting" },
|
|
166
|
+
{ label: "--publish", value: "Publish the redacted report after confirmation" },
|
|
167
|
+
...EVIDENCE_OPTIONS,
|
|
168
|
+
{ label: "--prompt-credentials", value: "Re-enter provider keys through a hidden prompt" },
|
|
169
|
+
],
|
|
170
|
+
summary: "Bundle validated evidence into one portable, offline HTML report.",
|
|
171
|
+
usage: "flakelab report <investigation> [options]",
|
|
172
|
+
},
|
|
173
|
+
resume: {
|
|
174
|
+
examples: ["flakelab resume .flakelab/runs/diagnose.json"],
|
|
175
|
+
options: [],
|
|
176
|
+
summary: "Continue a checkpointed diagnosis at the next safe phase, without repeating work.",
|
|
177
|
+
usage: "flakelab resume <diagnose.json>",
|
|
178
|
+
},
|
|
179
|
+
scan: {
|
|
180
|
+
examples: [
|
|
181
|
+
"flakelab tests/checkout.spec.ts --runs 20",
|
|
182
|
+
"flakelab scan tests/checkout.spec.ts --json",
|
|
183
|
+
],
|
|
184
|
+
options: [
|
|
185
|
+
{ label: "--runs <number>", value: "Repetitions to run (default: 4)" },
|
|
186
|
+
{ label: "--concurrency <n>", value: "Playwright workers (default: 1)" },
|
|
187
|
+
{ label: "--artifacts <dir>", value: "Evidence directory (default: .flakelab/runs)" },
|
|
188
|
+
{ label: "--json", value: "Write only the scan artifact JSON to stdout" },
|
|
189
|
+
{ label: "--verbose", value: "Append the artifact JSON to the human summary" },
|
|
190
|
+
],
|
|
191
|
+
summary: "Repeat a Playwright target under normal conditions and classify what happens.",
|
|
192
|
+
usage: "flakelab scan <target> [options]",
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
export function commandHelpText(topic, theme = PLAIN_THEME) {
|
|
196
|
+
const help = COMMAND_HELP[topic];
|
|
197
|
+
const document = new TerminalDocument(theme);
|
|
198
|
+
document.heading(topic);
|
|
199
|
+
document.blank().text(help.summary);
|
|
200
|
+
document.section("Usage").command(help.usage);
|
|
201
|
+
if (help.options.length > 0) {
|
|
202
|
+
document.section("Options").rows(help.options);
|
|
203
|
+
}
|
|
204
|
+
document.section("Examples");
|
|
205
|
+
for (const example of help.examples) {
|
|
206
|
+
document.command(example);
|
|
207
|
+
}
|
|
208
|
+
document.section("More").command("flakelab --help");
|
|
209
|
+
return `${document.render()}\n`;
|
|
210
|
+
}
|
|
211
|
+
//# sourceMappingURL=cli-command-help.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-command-help.js","sourceRoot":"","sources":["../src/cli-command-help.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAuB3C,MAAM,MAAM,GAAG,4EAA4E;MACvF,+EAA+E;MAC/E,uEAAuE;MACvE,gFAAgF,CAAA;AAEpF,MAAM,YAAY,GAAG,wEAAwE;MACzF,kFAAkF;MAClF,+EAA+E;MAC/E,8EAA8E;MAC9E,mBAAmB,CAAA;AAEvB,MAAM,gBAAgB,GAAkB;IACtC,EAAE,KAAK,EAAE,qBA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K,CAAC,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACnC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC7C,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAChD,CAAC;IACD,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAC5B,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IAC3B,CAAC;IACD,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACnD,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAA;AACjC,CAAC"}
|
package/dist/cli-help.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { HelpTopic } from "./cli-command-help.js";
|
|
2
|
+
import type { TerminalTheme } from "./ui/theme.js";
|
|
3
|
+
export declare const VERSION: string;
|
|
4
|
+
export declare function mainHelpText(theme?: TerminalTheme): string;
|
|
5
|
+
export declare function helpText(topic?: HelpTopic, theme?: TerminalTheme): string;
|