@jeger-ai/opengantry 2.1.0 → 2.2.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/README.md +25 -7
- package/dist/cli/commands/audit-rigor.d.ts +8 -0
- package/dist/cli/commands/audit-rigor.d.ts.map +1 -0
- package/dist/cli/commands/audit-rigor.js +24 -0
- package/dist/cli/commands/audit-rigor.js.map +1 -0
- package/dist/cli/commands/context-feed.d.ts +6 -0
- package/dist/cli/commands/context-feed.d.ts.map +1 -0
- package/dist/cli/commands/context-feed.js +48 -0
- package/dist/cli/commands/context-feed.js.map +1 -0
- package/dist/cli/commands/mission.js +1 -1
- package/dist/cli/commands/mission.js.map +1 -1
- package/dist/cli/commands/onboarding.d.ts.map +1 -1
- package/dist/cli/commands/onboarding.js +9 -4
- package/dist/cli/commands/onboarding.js.map +1 -1
- package/dist/cli/commands/upgrade.d.ts.map +1 -1
- package/dist/cli/commands/upgrade.js +2 -1
- package/dist/cli/commands/upgrade.js.map +1 -1
- package/dist/cli/lib/architecture-pointer.d.ts +1 -1
- package/dist/cli/lib/architecture-pointer.d.ts.map +1 -1
- package/dist/cli/lib/audit-rigor.d.ts +18 -0
- package/dist/cli/lib/audit-rigor.d.ts.map +1 -0
- package/dist/cli/lib/audit-rigor.js +189 -0
- package/dist/cli/lib/audit-rigor.js.map +1 -0
- package/dist/cli/lib/constants.d.ts +4 -0
- package/dist/cli/lib/constants.d.ts.map +1 -1
- package/dist/cli/lib/constants.js +4 -0
- package/dist/cli/lib/constants.js.map +1 -1
- package/dist/cli/lib/context-feed-remediation.d.ts +12 -0
- package/dist/cli/lib/context-feed-remediation.d.ts.map +1 -0
- package/dist/cli/lib/context-feed-remediation.js +41 -0
- package/dist/cli/lib/context-feed-remediation.js.map +1 -0
- package/dist/cli/lib/context-feed-store.d.ts +35 -0
- package/dist/cli/lib/context-feed-store.d.ts.map +1 -0
- package/dist/cli/lib/context-feed-store.js +112 -0
- package/dist/cli/lib/context-feed-store.js.map +1 -0
- package/dist/cli/lib/doctor-core.d.ts +5 -0
- package/dist/cli/lib/doctor-core.d.ts.map +1 -0
- package/dist/cli/lib/doctor-core.js +163 -0
- package/dist/cli/lib/doctor-core.js.map +1 -0
- package/dist/cli/lib/doctor-integration.d.ts +13 -0
- package/dist/cli/lib/doctor-integration.d.ts.map +1 -0
- package/dist/cli/lib/doctor-integration.js +120 -0
- package/dist/cli/lib/doctor-integration.js.map +1 -0
- package/dist/cli/lib/doctor-substrate.d.ts +3 -0
- package/dist/cli/lib/doctor-substrate.d.ts.map +1 -0
- package/dist/cli/lib/doctor-substrate.js +35 -0
- package/dist/cli/lib/doctor-substrate.js.map +1 -0
- package/dist/cli/lib/doctor-types.d.ts +24 -0
- package/dist/cli/lib/doctor-types.d.ts.map +1 -0
- package/dist/cli/lib/doctor-types.js +7 -0
- package/dist/cli/lib/doctor-types.js.map +1 -0
- package/dist/cli/lib/doctor.d.ts +4 -30
- package/dist/cli/lib/doctor.d.ts.map +1 -1
- package/dist/cli/lib/doctor.js +4 -281
- package/dist/cli/lib/doctor.js.map +1 -1
- package/dist/cli/lib/integration-compat.d.ts +7 -0
- package/dist/cli/lib/integration-compat.d.ts.map +1 -1
- package/dist/cli/lib/integration-compat.js +14 -0
- package/dist/cli/lib/integration-compat.js.map +1 -1
- package/dist/cli/lib/kpi-engine.d.ts +0 -2
- package/dist/cli/lib/kpi-engine.d.ts.map +1 -1
- package/dist/cli/lib/kpi-engine.js +11 -13
- package/dist/cli/lib/kpi-engine.js.map +1 -1
- package/dist/cli/lib/mcp-tools-register.js +1 -1
- package/dist/cli/lib/mcp-tools-register.js.map +1 -1
- package/dist/cli/lib/mcp-upgrade.d.ts +2 -2
- package/dist/cli/lib/mcp-upgrade.d.ts.map +1 -1
- package/dist/cli/lib/mcp-upgrade.js +5 -1
- package/dist/cli/lib/mcp-upgrade.js.map +1 -1
- package/dist/cli/lib/missions/formatter.d.ts.map +1 -1
- package/dist/cli/lib/missions/formatter.js +1 -0
- package/dist/cli/lib/missions/formatter.js.map +1 -1
- package/dist/cli/lib/missions/parser.d.ts.map +1 -1
- package/dist/cli/lib/missions/parser.js +1 -0
- package/dist/cli/lib/missions/parser.js.map +1 -1
- package/dist/cli/lib/start-orchestration.d.ts +1 -11
- package/dist/cli/lib/start-orchestration.d.ts.map +1 -1
- package/dist/cli/lib/start-orchestration.js +1 -85
- package/dist/cli/lib/start-orchestration.js.map +1 -1
- package/dist/cli/lib/start-snapshot.d.ts +12 -0
- package/dist/cli/lib/start-snapshot.d.ts.map +1 -0
- package/dist/cli/lib/start-snapshot.js +81 -0
- package/dist/cli/lib/start-snapshot.js.map +1 -0
- package/dist/cli/lib/trace.d.ts.map +1 -1
- package/dist/cli/lib/trace.js +1 -6
- package/dist/cli/lib/trace.js.map +1 -1
- package/dist/cli/lib/types.d.ts +3 -0
- package/dist/cli/lib/types.d.ts.map +1 -1
- package/dist/cli/lib/upgrade-plan-payload.d.ts +31 -0
- package/dist/cli/lib/upgrade-plan-payload.d.ts.map +1 -0
- package/dist/cli/lib/upgrade-plan-payload.js +109 -0
- package/dist/cli/lib/upgrade-plan-payload.js.map +1 -0
- package/dist/cli/lib/verify-engine.d.ts.map +1 -1
- package/dist/cli/lib/verify-engine.js +39 -13
- package/dist/cli/lib/verify-engine.js.map +1 -1
- package/dist/cli/lib/verify-failure-format.d.ts +4 -0
- package/dist/cli/lib/verify-failure-format.d.ts.map +1 -0
- package/dist/cli/lib/verify-failure-format.js +6 -0
- package/dist/cli/lib/verify-failure-format.js.map +1 -0
- package/dist/cli/lib/verify-failure-normalize-phases.d.ts +8 -0
- package/dist/cli/lib/verify-failure-normalize-phases.d.ts.map +1 -0
- package/dist/cli/lib/verify-failure-normalize-phases.js +70 -0
- package/dist/cli/lib/verify-failure-normalize-phases.js.map +1 -0
- package/dist/cli/lib/verify-failure-normalize-types.d.ts +32 -0
- package/dist/cli/lib/verify-failure-normalize-types.d.ts.map +1 -0
- package/dist/cli/lib/verify-failure-normalize-types.js +2 -0
- package/dist/cli/lib/verify-failure-normalize-types.js.map +1 -0
- package/dist/cli/lib/verify-failure-normalize.d.ts +28 -0
- package/dist/cli/lib/verify-failure-normalize.d.ts.map +1 -0
- package/dist/cli/lib/verify-failure-normalize.js +146 -0
- package/dist/cli/lib/verify-failure-normalize.js.map +1 -0
- package/dist/cli/lib/verify-failure-presentation-types.d.ts +29 -0
- package/dist/cli/lib/verify-failure-presentation-types.d.ts.map +1 -0
- package/dist/cli/lib/verify-failure-presentation-types.js +2 -0
- package/dist/cli/lib/verify-failure-presentation-types.js.map +1 -0
- package/dist/cli/lib/verify-hints.d.ts +32 -0
- package/dist/cli/lib/verify-hints.d.ts.map +1 -0
- package/dist/cli/lib/verify-hints.js +161 -0
- package/dist/cli/lib/verify-hints.js.map +1 -0
- package/dist/cli/lib/verify-payload-types.d.ts +33 -0
- package/dist/cli/lib/verify-payload-types.d.ts.map +1 -0
- package/dist/cli/lib/verify-payload-types.js +2 -0
- package/dist/cli/lib/verify-payload-types.js.map +1 -0
- package/dist/cli/lib/verify-payload.d.ts +2 -33
- package/dist/cli/lib/verify-payload.d.ts.map +1 -1
- package/dist/cli/lib/verify-payload.js +15 -79
- package/dist/cli/lib/verify-payload.js.map +1 -1
- package/dist/cli/lib/verify-presentation.d.ts +14 -6
- package/dist/cli/lib/verify-presentation.d.ts.map +1 -1
- package/dist/cli/lib/verify-presentation.js +7 -3
- package/dist/cli/lib/verify-presentation.js.map +1 -1
- package/dist/cli/lib/{verify-present.d.ts → verify-presenters.d.ts} +6 -11
- package/dist/cli/lib/verify-presenters.d.ts.map +1 -0
- package/dist/cli/lib/{verify-present.js → verify-presenters.js} +56 -98
- package/dist/cli/lib/verify-presenters.js.map +1 -0
- package/dist/cli/lib/verify-remediation.d.ts +4 -56
- package/dist/cli/lib/verify-remediation.d.ts.map +1 -1
- package/dist/cli/lib/verify-remediation.js +2 -226
- package/dist/cli/lib/verify-remediation.js.map +1 -1
- package/dist/cli/lib/verify-run.d.ts +12 -0
- package/dist/cli/lib/verify-run.d.ts.map +1 -0
- package/dist/cli/lib/verify-run.js +70 -0
- package/dist/cli/lib/verify-run.js.map +1 -0
- package/dist/cli/lib/verify-sinks.d.ts +4 -0
- package/dist/cli/lib/verify-sinks.d.ts.map +1 -0
- package/dist/cli/lib/verify-sinks.js +12 -0
- package/dist/cli/lib/verify-sinks.js.map +1 -0
- package/dist/cli/lib/version.gen.d.ts +1 -1
- package/dist/cli/lib/version.gen.js +1 -1
- package/dist/cli/lib/virtual-scratch-store.d.ts +37 -0
- package/dist/cli/lib/virtual-scratch-store.d.ts.map +1 -0
- package/dist/cli/lib/virtual-scratch-store.js +132 -0
- package/dist/cli/lib/virtual-scratch-store.js.map +1 -0
- package/dist/cli/program-core.d.ts.map +1 -1
- package/dist/cli/program-core.js +43 -3
- package/dist/cli/program-core.js.map +1 -1
- package/package.json +1 -1
- package/templates/.gitagent/teacher/MISSION.schema.yaml +6 -0
- package/templates/.gitignore.gxt +2 -0
- package/templates/integrations/asset-catalog.json +1 -0
- package/templates/integrations/compatibility.json +10 -1
- package/templates/integrations/recipes/claude-code.md +6 -4
- package/templates/integrations/recipes/codex-cli.md +6 -4
- package/templates/integrations/recipes/opencode.md +8 -2
- package/templates/scripts/gxt-shell-agent.sh +62 -0
- package/dist/cli/lib/kpi-report-stale.d.ts +0 -18
- package/dist/cli/lib/kpi-report-stale.d.ts.map +0 -1
- package/dist/cli/lib/kpi-report-stale.js +0 -91
- package/dist/cli/lib/kpi-report-stale.js.map +0 -1
- package/dist/cli/lib/trace-evidence.d.ts +0 -23
- package/dist/cli/lib/trace-evidence.d.ts.map +0 -1
- package/dist/cli/lib/trace-evidence.js +0 -118
- package/dist/cli/lib/trace-evidence.js.map +0 -1
- package/dist/cli/lib/verify-present.d.ts.map +0 -1
- package/dist/cli/lib/verify-present.js.map +0 -1
|
@@ -3,57 +3,15 @@ import { runBreakGlassAuditFlow } from "./break-glass.js";
|
|
|
3
3
|
import { errorMessage, logInfo, logWarn } from "./cli-io.js";
|
|
4
4
|
import { CommandReporter } from "./command-reporter.js";
|
|
5
5
|
import { logFixHint } from "./fix-hints.js";
|
|
6
|
-
import { assertMissionGatePresent, parseMissionFile } from "./missions/parser.js";
|
|
7
6
|
import { loadPrompts } from "./prompts-loader.js";
|
|
8
7
|
import { isGapmanUserError } from "./errors.js";
|
|
9
8
|
import { appendSurgeonMutationLog } from "./surgeon.js";
|
|
10
9
|
import { loadWorkspace } from "./workspace.js";
|
|
11
|
-
import { evaluateVerifyPhases, } from "./verify-engine.js";
|
|
12
10
|
import { buildBreakGlassPayload, buildVerifyResultPayloadFromPhaseResult, initFailurePayload, } from "./verify-payload.js";
|
|
13
|
-
import { buildVerifyHintContext, hintsForVerifyPhase,
|
|
11
|
+
import { buildVerifyHintContext, hintsForVerifyPhase, } from "./verify-hints.js";
|
|
12
|
+
import { normalizeVerifyPhaseFailure, toFailurePresentation, toRemediationSnapshot, } from "./verify-failure-normalize.js";
|
|
14
13
|
import { getSurgeonForErrorCode, resolveSurgeonErrorCode, } from "./surgeons/registry.js";
|
|
15
|
-
|
|
16
|
-
if (input.options.fix !== true)
|
|
17
|
-
return null;
|
|
18
|
-
const errorCode = resolveSurgeonErrorCode(input.failure);
|
|
19
|
-
if (!errorCode)
|
|
20
|
-
return null;
|
|
21
|
-
const surgeon = getSurgeonForErrorCode(errorCode);
|
|
22
|
-
if (!surgeon)
|
|
23
|
-
return null;
|
|
24
|
-
const workerLogPath = input.failure.workerLogPath;
|
|
25
|
-
const context = {
|
|
26
|
-
root: input.root,
|
|
27
|
-
failure: input.failure,
|
|
28
|
-
manifest: input.manifest,
|
|
29
|
-
workerLogPath,
|
|
30
|
-
errorCode,
|
|
31
|
-
};
|
|
32
|
-
logWarn(`[Surgeon] Autonomous mutation triggered for error ${errorCode}`);
|
|
33
|
-
const mutation = await surgeon.applyMutation(context);
|
|
34
|
-
if (!mutation.mutated) {
|
|
35
|
-
logInfo(`${CLI_NAME} verify: [Surgeon] no mutation applied (${mutation.summary})`);
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
appendSurgeonMutationLog(workerLogPath, mutation.summary);
|
|
39
|
-
logInfo(`${CLI_NAME} verify: [Surgeon] mutation logged; rerunning full verify (fix disabled)`);
|
|
40
|
-
return runVerifyCore({
|
|
41
|
-
...input.options,
|
|
42
|
-
fix: false,
|
|
43
|
-
fixNonInteractive: false,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
export function resolveVerifySink(options) {
|
|
47
|
-
if (options.breakGlass === true) {
|
|
48
|
-
return options.json ? "break_glass_json" : "break_glass_human";
|
|
49
|
-
}
|
|
50
|
-
if (options.json)
|
|
51
|
-
return "json";
|
|
52
|
-
if (options.fix === true) {
|
|
53
|
-
return options.fixNonInteractive ? "fix_noninteractive" : "fix_interactive";
|
|
54
|
-
}
|
|
55
|
-
return "human";
|
|
56
|
-
}
|
|
14
|
+
import { persistRemediationFromFailedPayload, persistRemediationSnapshot, } from "./context-feed-remediation.js";
|
|
57
15
|
function reporterFor(options) {
|
|
58
16
|
return CommandReporter.forVerify(options);
|
|
59
17
|
}
|
|
@@ -88,11 +46,26 @@ export function presentJsonFromResult(root, mission, missionArg, options, manife
|
|
|
88
46
|
}
|
|
89
47
|
export function presentJsonInitFailure(options, error) {
|
|
90
48
|
const payload = initFailurePayload(error);
|
|
49
|
+
try {
|
|
50
|
+
const { root } = loadWorkspace();
|
|
51
|
+
persistRemediationFromFailedPayload(root, null, options.mission, payload);
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
// best-effort remediation feed
|
|
55
|
+
}
|
|
91
56
|
reporterFor(options).emitJsonPayload(payload);
|
|
92
57
|
return { ok: false, exitCode: payload.exit_code };
|
|
93
58
|
}
|
|
94
59
|
export function presentHumanInitFailure(options, error) {
|
|
95
60
|
const reporter = reporterFor(options);
|
|
61
|
+
const payload = initFailurePayload(error);
|
|
62
|
+
try {
|
|
63
|
+
const { root } = loadWorkspace();
|
|
64
|
+
persistRemediationFromFailedPayload(root, null, options.mission, payload);
|
|
65
|
+
}
|
|
66
|
+
catch {
|
|
67
|
+
// best-effort remediation feed
|
|
68
|
+
}
|
|
96
69
|
if (isGapmanUserError(error)) {
|
|
97
70
|
reporter.emitError(`[${error.gxtCode}] ${error.message}`);
|
|
98
71
|
if (error.hint)
|
|
@@ -100,7 +73,7 @@ export function presentHumanInitFailure(options, error) {
|
|
|
100
73
|
return { ok: false, exitCode: error.exitCode };
|
|
101
74
|
}
|
|
102
75
|
reporter.emitError(errorMessage(error));
|
|
103
|
-
return { ok: false, exitCode:
|
|
76
|
+
return { ok: false, exitCode: payload.exit_code };
|
|
104
77
|
}
|
|
105
78
|
export function presentHuman(root, mission, missionArg, options, result) {
|
|
106
79
|
const reporter = reporterFor(options);
|
|
@@ -108,17 +81,19 @@ export function presentHuman(root, mission, missionArg, options, result) {
|
|
|
108
81
|
reporter.emitVerifySuccess(result, missionArg);
|
|
109
82
|
return { ok: true, exitCode: 0 };
|
|
110
83
|
}
|
|
111
|
-
const
|
|
84
|
+
const normalized = normalizeVerifyPhaseFailure({
|
|
112
85
|
failure: result,
|
|
113
86
|
missionArg,
|
|
114
87
|
options,
|
|
115
88
|
root,
|
|
116
89
|
msnId: mission.msnId ?? undefined,
|
|
90
|
+
mission,
|
|
117
91
|
});
|
|
118
|
-
|
|
119
|
-
|
|
92
|
+
persistRemediationSnapshot(root, toRemediationSnapshot(normalized));
|
|
93
|
+
reporter.emitFailurePresentation(toFailurePresentation(normalized));
|
|
94
|
+
return { ok: false, exitCode: normalized.exit_code };
|
|
120
95
|
}
|
|
121
|
-
export async function presentFix(root, mission, missionArg, options, result, nonInteractive, manifest) {
|
|
96
|
+
export async function presentFix(root, mission, missionArg, options, result, nonInteractive, manifest, rerunVerify) {
|
|
122
97
|
if (result.ok) {
|
|
123
98
|
return presentHuman(root, mission, missionArg, options, result);
|
|
124
99
|
}
|
|
@@ -130,7 +105,7 @@ export async function presentFix(root, mission, missionArg, options, result, non
|
|
|
130
105
|
options,
|
|
131
106
|
manifest,
|
|
132
107
|
failure,
|
|
133
|
-
});
|
|
108
|
+
}, rerunVerify);
|
|
134
109
|
if (surgeonRerun) {
|
|
135
110
|
return surgeonRerun;
|
|
136
111
|
}
|
|
@@ -165,52 +140,35 @@ export async function presentFix(root, mission, missionArg, options, result, non
|
|
|
165
140
|
export function emitVerifyJson(payload, options) {
|
|
166
141
|
reporterFor(options).emitJsonPayload(payload);
|
|
167
142
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
case "fix_interactive":
|
|
193
|
-
case "fix_noninteractive":
|
|
194
|
-
case "human": {
|
|
195
|
-
try {
|
|
196
|
-
assertMissionGatePresent(mission);
|
|
197
|
-
}
|
|
198
|
-
catch (e) {
|
|
199
|
-
return presentHumanInitFailure(options, e);
|
|
200
|
-
}
|
|
201
|
-
const result = evaluateVerifyPhases(root, mission, options, manifest);
|
|
202
|
-
if (sink === "fix_interactive") {
|
|
203
|
-
return presentFix(root, mission, missionArg, options, result, false, manifest);
|
|
204
|
-
}
|
|
205
|
-
if (sink === "fix_noninteractive") {
|
|
206
|
-
return presentFix(root, mission, missionArg, options, result, true, manifest);
|
|
207
|
-
}
|
|
208
|
-
return presentHuman(root, mission, missionArg, options, result);
|
|
209
|
-
}
|
|
210
|
-
default: {
|
|
211
|
-
const _exhaustive = sink;
|
|
212
|
-
return _exhaustive;
|
|
213
|
-
}
|
|
143
|
+
async function trySurgeonAndRerunVerify(input, rerunVerify) {
|
|
144
|
+
if (input.options.fix !== true)
|
|
145
|
+
return null;
|
|
146
|
+
const errorCode = resolveSurgeonErrorCode(input.failure);
|
|
147
|
+
if (!errorCode)
|
|
148
|
+
return null;
|
|
149
|
+
const surgeon = getSurgeonForErrorCode(errorCode);
|
|
150
|
+
if (!surgeon)
|
|
151
|
+
return null;
|
|
152
|
+
const workerLogPath = input.failure.workerLogPath;
|
|
153
|
+
const context = {
|
|
154
|
+
root: input.root,
|
|
155
|
+
failure: input.failure,
|
|
156
|
+
manifest: input.manifest,
|
|
157
|
+
workerLogPath,
|
|
158
|
+
errorCode,
|
|
159
|
+
};
|
|
160
|
+
logWarn(`[Surgeon] Autonomous mutation triggered for error ${errorCode}`);
|
|
161
|
+
const mutation = await surgeon.applyMutation(context);
|
|
162
|
+
if (!mutation.mutated) {
|
|
163
|
+
logInfo(`${CLI_NAME} verify: [Surgeon] no mutation applied (${mutation.summary})`);
|
|
164
|
+
return null;
|
|
214
165
|
}
|
|
166
|
+
appendSurgeonMutationLog(workerLogPath, mutation.summary);
|
|
167
|
+
logInfo(`${CLI_NAME} verify: [Surgeon] mutation logged; rerunning full verify (fix disabled)`);
|
|
168
|
+
return rerunVerify({
|
|
169
|
+
...input.options,
|
|
170
|
+
fix: false,
|
|
171
|
+
fixNonInteractive: false,
|
|
172
|
+
});
|
|
215
173
|
}
|
|
216
|
-
//# sourceMappingURL=verify-
|
|
174
|
+
//# sourceMappingURL=verify-presenters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-presenters.js","sourceRoot":"","sources":["../../../src/cli/lib/verify-presenters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,E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CAAC,IAAI;QAChB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,aAAa;QACb,SAAS;KACV,CAAC;IAEF,OAAO,CAAC,qDAAqD,SAAS,EAAE,CAAC,CAAC;IAC1E,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACtD,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,CAAC,GAAG,QAAQ,2CAA2C,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;QACnF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,wBAAwB,CAAC,aAAa,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC1D,OAAO,CAAC,GAAG,QAAQ,0EAA0E,CAAC,CAAC;IAE/F,OAAO,WAAW,CAAC;QACjB,GAAG,KAAK,CAAC,OAAO;QAChB,GAAG,EAAE,KAAK;QACV,iBAAiB,EAAE,KAAK;KACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,57 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface AudienceTaggedStep {
|
|
6
|
-
audience: OutputAudience;
|
|
7
|
-
step: string;
|
|
8
|
-
}
|
|
9
|
-
export interface VerifyRemediation {
|
|
10
|
-
error_code: GxtErrorCode;
|
|
11
|
-
fix_hints: string[];
|
|
12
|
-
next_actions: string[];
|
|
13
|
-
tagged_steps?: AudienceTaggedStep[];
|
|
14
|
-
}
|
|
15
|
-
export interface VerifyHintContext {
|
|
16
|
-
root?: string;
|
|
17
|
-
missionPath: string;
|
|
18
|
-
msnId?: string;
|
|
19
|
-
workerLogPath?: string;
|
|
20
|
-
gateCommand?: string;
|
|
21
|
-
gitProofMessage?: string;
|
|
22
|
-
strictTrace?: boolean;
|
|
23
|
-
traceKind?: TraceFailureKind;
|
|
24
|
-
traceQuote?: string;
|
|
25
|
-
traceFailureReason?: string;
|
|
26
|
-
kpiFailureReason?: string;
|
|
27
|
-
gateStderr?: string;
|
|
28
|
-
gateStdout?: string;
|
|
29
|
-
}
|
|
30
|
-
export declare function buildVerifyHintContext(failure: VerifyPhaseFailure, missionArg: string, options: Pick<VerifyOptions, "strictTrace">, root?: string, msnId?: string): VerifyHintContext;
|
|
31
|
-
export declare function hintsForVerifyPhase(phase: VerifyFailurePhase, ctx: VerifyHintContext): VerifyRemediation;
|
|
32
|
-
export interface VerifyFailurePresentationInput {
|
|
33
|
-
failure: VerifyPhaseFailure;
|
|
34
|
-
missionArg: string;
|
|
35
|
-
options: Pick<VerifyOptions, "strictTrace" | "audience">;
|
|
36
|
-
root?: string;
|
|
37
|
-
msnId?: string;
|
|
38
|
-
}
|
|
39
|
-
export interface VerifyFailurePresentation {
|
|
40
|
-
error_code: GxtErrorCode;
|
|
41
|
-
headline: string;
|
|
42
|
-
detail_lines: string[];
|
|
43
|
-
fix_hints: string[];
|
|
44
|
-
next_actions: string[];
|
|
45
|
-
tagged_steps?: AudienceTaggedStep[];
|
|
46
|
-
exit_code: number;
|
|
47
|
-
gate?: {
|
|
48
|
-
stdout?: string;
|
|
49
|
-
stderr?: string;
|
|
50
|
-
exitCode?: number;
|
|
51
|
-
};
|
|
52
|
-
trace?: {
|
|
53
|
-
failures?: string[];
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export declare function verifyFailurePresentation(input: VerifyFailurePresentationInput): VerifyFailurePresentation;
|
|
1
|
+
export type { AudienceTaggedStep, VerifyHintContext, VerifyRemediation, } from "./verify-hints.js";
|
|
2
|
+
export { buildVerifyHintContext, hintsForVerifyPhase, } from "./verify-hints.js";
|
|
3
|
+
export type { VerifyFailurePresentation, VerifyFailurePresentationInput, } from "./verify-failure-presentation-types.js";
|
|
4
|
+
export { verifyFailurePresentation } from "./verify-failure-format.js";
|
|
57
5
|
//# sourceMappingURL=verify-remediation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-remediation.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/verify-remediation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-remediation.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/verify-remediation.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACV,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,227 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { gateOutputIndicatesBannedImport } from "./banned-import-violation.js";
|
|
4
|
-
import { gateOutputIndicatesImportLayer } from "./surgeon.js";
|
|
5
|
-
import { hintForTraceKind, hintGate, hintGitProof, hintTracePendingSteps, parseGitProofCode, } from "./fix-hints.js";
|
|
6
|
-
export function buildVerifyHintContext(failure, missionArg, options, root, msnId) {
|
|
7
|
-
return {
|
|
8
|
-
root,
|
|
9
|
-
missionPath: missionArg,
|
|
10
|
-
msnId,
|
|
11
|
-
workerLogPath: failure.workerLogPath,
|
|
12
|
-
gateCommand: failure.gateCommand,
|
|
13
|
-
gitProofMessage: failure.gitProofMessage ?? failure.message,
|
|
14
|
-
traceKind: failure.traceKind,
|
|
15
|
-
traceQuote: failure.traceQuote,
|
|
16
|
-
traceFailureReason: failure.traceReason,
|
|
17
|
-
kpiFailureReason: failure.kpiReason ?? failure.message,
|
|
18
|
-
gateStderr: failure.gateStderr,
|
|
19
|
-
gateStdout: failure.gateStdout,
|
|
20
|
-
strictTrace: options.strictTrace,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function parseMsnIdFromGitProofMessage(message) {
|
|
24
|
-
const m = message.match(/\[(MSN-\d{4})\]/);
|
|
25
|
-
return m?.[1];
|
|
26
|
-
}
|
|
27
|
-
function tagStep(audience, step) {
|
|
28
|
-
return { audience, step };
|
|
29
|
-
}
|
|
30
|
-
function verifyCmd(mission) {
|
|
31
|
-
return `gapman verify --mission ${mission}`;
|
|
32
|
-
}
|
|
33
|
-
function hintsForGitProofPhase(ctx) {
|
|
34
|
-
const mission = ctx.missionPath;
|
|
35
|
-
const verifyCmdStr = verifyCmd(mission);
|
|
36
|
-
const code = parseGitProofCode(ctx.gitProofMessage ?? "");
|
|
37
|
-
const gitCtx = {
|
|
38
|
-
root: ctx.root,
|
|
39
|
-
missionPath: mission,
|
|
40
|
-
msnId: ctx.msnId ?? parseMsnIdFromGitProofMessage(ctx.gitProofMessage ?? ""),
|
|
41
|
-
repoRelMission: mission,
|
|
42
|
-
};
|
|
43
|
-
const hint = code ? hintGitProof(code, gitCtx) : verifyCmdStr;
|
|
44
|
-
const nextActions = code === "NO_MSN_COMMITS" || code === "MISSION_FILE_NOT_MODIFIED_BY_TEACHER"
|
|
45
|
-
? [hint.split("; ")[0], 'gapman teacher set "$(git config user.email)"', verifyCmdStr]
|
|
46
|
-
: ['gapman teacher set "$(git config user.email)"', verifyCmdStr];
|
|
47
|
-
const tagged_steps = [
|
|
48
|
-
tagStep("teacher", 'gapman teacher set "$(git config user.email)"'),
|
|
49
|
-
tagStep("verifier", verifyCmdStr),
|
|
50
|
-
];
|
|
51
|
-
if (code === "NO_MSN_COMMITS" || code === "MISSION_FILE_NOT_MODIFIED_BY_TEACHER") {
|
|
52
|
-
tagged_steps.unshift(tagStep("teacher", nextActions[0]));
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
error_code: code ? mapGitProofCodeToGxt(code) : GXT_ERROR.MISSION_UNSTAMPED,
|
|
56
|
-
fix_hints: [hint],
|
|
57
|
-
next_actions: nextActions,
|
|
58
|
-
tagged_steps,
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function hintsForGatePhase(ctx) {
|
|
62
|
-
const mission = ctx.missionPath;
|
|
63
|
-
const verifyCmdStr = verifyCmd(mission);
|
|
64
|
-
const gate = ctx.gateCommand ?? "<gate>";
|
|
65
|
-
const combined = `${ctx.gateStderr ?? ""}\n${ctx.gateStdout ?? ""}`;
|
|
66
|
-
const errorCode = gateOutputIndicatesImportLayer(ctx.gateStdout ?? "")
|
|
67
|
-
|| gateOutputIndicatesImportLayer(ctx.gateStderr ?? "")
|
|
68
|
-
? GXT_ERROR.IMPORT_LAYER_VIOLATION
|
|
69
|
-
: gateOutputIndicatesBannedImport(combined)
|
|
70
|
-
? GXT_ERROR.BANNED_IMPORT_DETECTED
|
|
71
|
-
: GXT_ERROR.GATE_FAILED;
|
|
72
|
-
return {
|
|
73
|
-
error_code: errorCode,
|
|
74
|
-
fix_hints: [hintGate(gate, mission)],
|
|
75
|
-
next_actions: [`re-run gate: ${gate}`, verifyCmdStr],
|
|
76
|
-
tagged_steps: [
|
|
77
|
-
tagStep("worker", `re-run gate: ${gate}`),
|
|
78
|
-
tagStep("verifier", verifyCmdStr),
|
|
79
|
-
],
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function hintsForKpiPhase(ctx) {
|
|
83
|
-
const mission = ctx.missionPath;
|
|
84
|
-
const verifyCmdStr = verifyCmd(mission);
|
|
85
|
-
const reason = ctx.kpiFailureReason ?? "";
|
|
86
|
-
const errorCode = reason.includes("missing")
|
|
87
|
-
? GXT_ERROR.KPI_REPORT_MISSING
|
|
88
|
-
: reason.includes("invalid") || reason.includes("schema")
|
|
89
|
-
? GXT_ERROR.KPI_REPORT_INVALID
|
|
90
|
-
: reason.includes("STALE") || reason.includes("stale")
|
|
91
|
-
? GXT_ERROR.KPI_REPORT_STALE
|
|
92
|
-
: GXT_ERROR.KPI_GATE_FAILED;
|
|
93
|
-
return {
|
|
94
|
-
error_code: errorCode,
|
|
95
|
-
fix_hints: [
|
|
96
|
-
`gapman scan --mission ${mission}`,
|
|
97
|
-
`commit updated KPI report under .gitagent/kpi/`,
|
|
98
|
-
verifyCmdStr,
|
|
99
|
-
],
|
|
100
|
-
next_actions: [`gapman scan --mission ${mission}`, verifyCmdStr],
|
|
101
|
-
tagged_steps: [
|
|
102
|
-
tagStep("worker", `gapman scan --mission ${mission}`),
|
|
103
|
-
tagStep("verifier", verifyCmdStr),
|
|
104
|
-
],
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function hintsForTracePendingPhase(ctx) {
|
|
108
|
-
const mission = ctx.missionPath;
|
|
109
|
-
const workerLog = ctx.workerLogPath ?? "WORKER_LOG.md";
|
|
110
|
-
const steps = hintTracePendingSteps(workerLog, mission, ctx.gateCommand);
|
|
111
|
-
return {
|
|
112
|
-
error_code: GXT_ERROR.TRACE_PENDING,
|
|
113
|
-
fix_hints: steps.slice(0, 3),
|
|
114
|
-
next_actions: steps,
|
|
115
|
-
tagged_steps: [
|
|
116
|
-
tagStep("worker", steps[0]),
|
|
117
|
-
tagStep("worker", steps[1]),
|
|
118
|
-
tagStep("worker", steps[2]),
|
|
119
|
-
tagStep("verifier", steps[3] ?? verifyCmd(mission)),
|
|
120
|
-
],
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
function hintsForTracePhase(ctx) {
|
|
124
|
-
const mission = ctx.missionPath;
|
|
125
|
-
const workerLog = ctx.workerLogPath ?? "WORKER_LOG.md";
|
|
126
|
-
const verifyCmdStr = verifyCmd(mission);
|
|
127
|
-
const traceKind = ctx.traceKind ?? "other";
|
|
128
|
-
const hints = [hintForTraceKind(traceKind, workerLog, mission, ctx.traceQuote)];
|
|
129
|
-
const errorCode = traceKind === "ambiguous"
|
|
130
|
-
? GXT_ERROR.TRACE_AMBIGUOUS
|
|
131
|
-
: traceKind === "stale_evidence"
|
|
132
|
-
? GXT_ERROR.TRACE_STALE
|
|
133
|
-
: GXT_ERROR.TRACE_MISSING;
|
|
134
|
-
return {
|
|
135
|
-
error_code: errorCode,
|
|
136
|
-
fix_hints: hints,
|
|
137
|
-
next_actions: [verifyCmdStr, `gapman verify --mission ${mission} --fix`],
|
|
138
|
-
tagged_steps: [
|
|
139
|
-
tagStep("verifier", verifyCmdStr),
|
|
140
|
-
tagStep("verifier", `gapman verify --mission ${mission} --fix`),
|
|
141
|
-
],
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
export function hintsForVerifyPhase(phase, ctx) {
|
|
145
|
-
switch (phase) {
|
|
146
|
-
case "git_proof":
|
|
147
|
-
return hintsForGitProofPhase(ctx);
|
|
148
|
-
case "gate":
|
|
149
|
-
return hintsForGatePhase(ctx);
|
|
150
|
-
case "kpi":
|
|
151
|
-
return hintsForKpiPhase(ctx);
|
|
152
|
-
case "trace_pending":
|
|
153
|
-
return hintsForTracePendingPhase(ctx);
|
|
154
|
-
case "trace":
|
|
155
|
-
return hintsForTracePhase(ctx);
|
|
156
|
-
default: {
|
|
157
|
-
const _exhaustive = phase;
|
|
158
|
-
return _exhaustive;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
export function verifyFailurePresentation(input) {
|
|
163
|
-
const { failure, missionArg, root, msnId, options } = input;
|
|
164
|
-
const remediation = hintsForVerifyPhase(failure.phase, buildVerifyHintContext(failure, missionArg, options, root, msnId));
|
|
165
|
-
const base = {
|
|
166
|
-
error_code: remediation.error_code,
|
|
167
|
-
fix_hints: remediation.fix_hints,
|
|
168
|
-
next_actions: remediation.next_actions,
|
|
169
|
-
tagged_steps: remediation.tagged_steps,
|
|
170
|
-
exit_code: failure.exitCode,
|
|
171
|
-
};
|
|
172
|
-
switch (failure.phase) {
|
|
173
|
-
case "git_proof":
|
|
174
|
-
return {
|
|
175
|
-
...base,
|
|
176
|
-
headline: failure.message,
|
|
177
|
-
detail_lines: [],
|
|
178
|
-
};
|
|
179
|
-
case "gate":
|
|
180
|
-
return {
|
|
181
|
-
...base,
|
|
182
|
-
headline: "verify: GATE FAILED",
|
|
183
|
-
detail_lines: [
|
|
184
|
-
...(failure.gateStdout !== undefined ? [`--- stdout ---\n${failure.gateStdout}`] : []),
|
|
185
|
-
...(failure.gateStderr !== undefined ? [`--- stderr ---\n${failure.gateStderr}`] : []),
|
|
186
|
-
...(failure.gateExitCode !== undefined ? [`exit code: ${String(failure.gateExitCode)}`] : []),
|
|
187
|
-
],
|
|
188
|
-
gate: {
|
|
189
|
-
stdout: failure.gateStdout,
|
|
190
|
-
stderr: failure.gateStderr,
|
|
191
|
-
exitCode: failure.gateExitCode,
|
|
192
|
-
},
|
|
193
|
-
};
|
|
194
|
-
case "kpi":
|
|
195
|
-
return {
|
|
196
|
-
...base,
|
|
197
|
-
headline: "verify: KPI GATE FAILED",
|
|
198
|
-
detail_lines: [
|
|
199
|
-
failure.kpiReason ?? failure.message,
|
|
200
|
-
...(failure.kpiMetric
|
|
201
|
-
? [`metric: ${failure.kpiMetric} ${failure.kpiOp ?? ""} ${String(failure.kpiExpected ?? "")} (actual: ${String(failure.kpiActual ?? "missing")})`]
|
|
202
|
-
: []),
|
|
203
|
-
...(failure.kpiReportPath ? [`report: ${failure.kpiReportPath}`] : []),
|
|
204
|
-
],
|
|
205
|
-
};
|
|
206
|
-
case "trace_pending":
|
|
207
|
-
return {
|
|
208
|
-
...base,
|
|
209
|
-
headline: `${CLI_NAME} verify: legislative stub complete (git-proof OK) — worker must execute, append ${failure.workerLogPath}, set trace row PASS, then re-verify`,
|
|
210
|
-
detail_lines: [],
|
|
211
|
-
};
|
|
212
|
-
case "trace":
|
|
213
|
-
return {
|
|
214
|
-
...base,
|
|
215
|
-
headline: "verify: TRACE MAPPING FAILED (Evidence Tampering / missing evidence)",
|
|
216
|
-
detail_lines: [`DoD trace failure: ${failure.traceReason ?? failure.message}`],
|
|
217
|
-
trace: failure.traceReason
|
|
218
|
-
? { failures: [`DoD trace: ${failure.traceReason}`] }
|
|
219
|
-
: undefined,
|
|
220
|
-
};
|
|
221
|
-
default: {
|
|
222
|
-
const _exhaustive = failure.phase;
|
|
223
|
-
return _exhaustive;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
1
|
+
export { buildVerifyHintContext, hintsForVerifyPhase, } from "./verify-hints.js";
|
|
2
|
+
export { verifyFailurePresentation } from "./verify-failure-format.js";
|
|
227
3
|
//# sourceMappingURL=verify-remediation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-remediation.js","sourceRoot":"","sources":["../../../src/cli/lib/verify-remediation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-remediation.js","sourceRoot":"","sources":["../../../src/cli/lib/verify-remediation.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VerifyOptions } from "./verify-engine.js";
|
|
2
|
+
import { type VerifyResultPayload } from "./verify-payload.js";
|
|
3
|
+
export interface VerifyRunResult {
|
|
4
|
+
ok: boolean;
|
|
5
|
+
exitCode: number;
|
|
6
|
+
}
|
|
7
|
+
/** Unified verify orchestration: load workspace once, evaluate once, present by sink. */
|
|
8
|
+
export declare function runVerifyCore(options: VerifyOptions): Promise<VerifyRunResult>;
|
|
9
|
+
export declare function buildVerifyResultPayloadFromOptions(options: VerifyOptions): VerifyResultPayload;
|
|
10
|
+
export type { VerifyPresentResult } from "./verify-presenters.js";
|
|
11
|
+
export type { VerifySink } from "./verify-sinks.js";
|
|
12
|
+
//# sourceMappingURL=verify-run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-run.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/verify-run.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAY7B,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,yFAAyF;AACzF,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CA6CpF;AAED,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,aAAa,GAAG,mBAAmB,CAY/F;AAED,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { assertMissionGatePresent, parseMissionFile } from "./missions/parser.js";
|
|
2
|
+
import { GapmanUserError } from "./errors.js";
|
|
3
|
+
import { loadWorkspace } from "./workspace.js";
|
|
4
|
+
import { evaluateVerifyPhases, } from "./verify-engine.js";
|
|
5
|
+
import { buildVerifyResultPayload, initFailurePayload, } from "./verify-payload.js";
|
|
6
|
+
import { resolveVerifySink } from "./verify-sinks.js";
|
|
7
|
+
import { presentBreakGlassHuman, presentBreakGlassJson, presentFix, presentHuman, presentHumanInitFailure, presentJsonFromResult, presentJsonInitFailure, } from "./verify-presenters.js";
|
|
8
|
+
/** Unified verify orchestration: load workspace once, evaluate once, present by sink. */
|
|
9
|
+
export async function runVerifyCore(options) {
|
|
10
|
+
const { root, manifest } = loadWorkspace();
|
|
11
|
+
if (!options.mission) {
|
|
12
|
+
throw new Error("gapman verify: --mission is required");
|
|
13
|
+
}
|
|
14
|
+
const mission = parseMissionFile(root, options.mission);
|
|
15
|
+
const missionArg = options.mission;
|
|
16
|
+
const sink = resolveVerifySink(options);
|
|
17
|
+
switch (sink) {
|
|
18
|
+
case "break_glass_json":
|
|
19
|
+
return presentBreakGlassJson(root, mission, options);
|
|
20
|
+
case "break_glass_human":
|
|
21
|
+
return presentBreakGlassHuman(root, mission, options);
|
|
22
|
+
case "json": {
|
|
23
|
+
try {
|
|
24
|
+
assertMissionGatePresent(mission);
|
|
25
|
+
const result = evaluateVerifyPhases(root, mission, options, manifest);
|
|
26
|
+
return presentJsonFromResult(root, mission, missionArg, options, manifest, result);
|
|
27
|
+
}
|
|
28
|
+
catch (e) {
|
|
29
|
+
return presentJsonInitFailure(options, e);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
case "fix_interactive":
|
|
33
|
+
case "fix_noninteractive":
|
|
34
|
+
case "human": {
|
|
35
|
+
try {
|
|
36
|
+
assertMissionGatePresent(mission);
|
|
37
|
+
}
|
|
38
|
+
catch (e) {
|
|
39
|
+
return presentHumanInitFailure(options, e);
|
|
40
|
+
}
|
|
41
|
+
const result = evaluateVerifyPhases(root, mission, options, manifest);
|
|
42
|
+
if (sink === "fix_interactive") {
|
|
43
|
+
return presentFix(root, mission, missionArg, options, result, false, manifest, runVerifyCore);
|
|
44
|
+
}
|
|
45
|
+
if (sink === "fix_noninteractive") {
|
|
46
|
+
return presentFix(root, mission, missionArg, options, result, true, manifest, runVerifyCore);
|
|
47
|
+
}
|
|
48
|
+
return presentHuman(root, mission, missionArg, options, result);
|
|
49
|
+
}
|
|
50
|
+
default: {
|
|
51
|
+
const _exhaustive = sink;
|
|
52
|
+
return _exhaustive;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export function buildVerifyResultPayloadFromOptions(options) {
|
|
57
|
+
try {
|
|
58
|
+
if (!options.mission) {
|
|
59
|
+
throw new GapmanUserError("INVALID_ARGUMENT", "gapman verify: --mission is required", undefined, 2);
|
|
60
|
+
}
|
|
61
|
+
const { root, manifest } = loadWorkspace();
|
|
62
|
+
const mission = parseMissionFile(root, options.mission);
|
|
63
|
+
assertMissionGatePresent(mission);
|
|
64
|
+
return buildVerifyResultPayload(root, manifest, mission, options.mission, options);
|
|
65
|
+
}
|
|
66
|
+
catch (e) {
|
|
67
|
+
return initFailurePayload(e);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//# sourceMapping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QAClE,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,WAAW,GAAU,IAAI,CAAC;YAChC,OAAO,WAAW,CAAC;QACrB,CAAC;IACH,CAAC;AACH,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,OAAsB;IACxE,IAAI,CAAC;QACH,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACrB,MAAM,IAAI,eAAe,CAAC,kBAAkB,EAAE,sCAAsC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;QACtG,CAAC;QACD,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,CAAC;QAC3C,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACxD,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAClC,OAAO,wBAAwB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VerifyOptions } from "./verify-engine.js";
|
|
2
|
+
export type VerifySink = "break_glass_json" | "break_glass_human" | "json" | "fix_interactive" | "fix_noninteractive" | "human";
|
|
3
|
+
export declare function resolveVerifySink(options: VerifyOptions): VerifySink;
|
|
4
|
+
//# sourceMappingURL=verify-sinks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-sinks.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/verify-sinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,MAAM,UAAU,GAClB,kBAAkB,GAClB,mBAAmB,GACnB,MAAM,GACN,iBAAiB,GACjB,oBAAoB,GACpB,OAAO,CAAC;AAEZ,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,UAAU,CASpE"}
|