nexarch 0.6.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/dist/commands/check-in.js +0 -20
- package/package.json +1 -1
|
@@ -131,26 +131,6 @@ export async function checkIn(args) {
|
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
const cmd = result.command;
|
|
134
|
-
if (result.handled) {
|
|
135
|
-
console.log("Auto command handled by Nexarch runtime.");
|
|
136
|
-
if (result.audit?.runId) {
|
|
137
|
-
const s = result.audit.summary ?? {};
|
|
138
|
-
console.log(`Policy audit run: ${result.audit.runId} (${s.passCount ?? 0} pass, ${s.partialCount ?? 0} partial, ${s.failCount ?? 0} fail)`);
|
|
139
|
-
}
|
|
140
|
-
const preview = result.audit?.findingsPreview ?? [];
|
|
141
|
-
if (preview.length > 0) {
|
|
142
|
-
console.log("\nTop findings:");
|
|
143
|
-
for (const finding of preview.slice(0, 5)) {
|
|
144
|
-
console.log(`- [${finding.result ?? "unknown"}] ${finding.control ?? "Control"} / ${finding.rule ?? "Rule"}`);
|
|
145
|
-
if (finding.rationale)
|
|
146
|
-
console.log(` rationale: ${finding.rationale}`);
|
|
147
|
-
if (finding.missingRequirements && finding.missingRequirements.length) {
|
|
148
|
-
console.log(` missing: ${finding.missingRequirements.slice(0, 2).join(" | ")}`);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
134
|
console.log(`\n╔══════════════════════════════════════════════════════════════════╗`);
|
|
155
135
|
console.log(`║ COMMAND QUEUED — action required ║`);
|
|
156
136
|
console.log(`╚══════════════════════════════════════════════════════════════════╝`);
|