fix(cli): remove ignored result limits

This commit is contained in:
morluto
2026-09-29 09:22:57 +08:00
parent 7acac615ca
commit f3645aa51e
8 changed files with 7 additions and 45 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ describe("compiled CLI output boundary", () => {
await writeFile(join(`${archive}.unpacked`, "main.js"), "changed();\n");
const result = await cli.run({
arguments: ["--json", "inventory-artifact", archive],
arguments: ["--json", "inspect-artifact", archive],
});
expect(result.exitCode).toBe(1);
const output = JSON.stringify(result.json);
@@ -36,7 +36,6 @@ type FixtureMode =
| "wrong_identity"
| "malformed"
| "contradictory"
| "oversized_whitespace"
| "future_id"
| "analysis_timeout"
| "remote_error"
@@ -208,7 +207,6 @@ describe("GhidraClient", () => {
["wrong_identity", "protocol"],
["malformed", "protocol"],
["contradictory", "protocol"],
["oversized_whitespace", "protocol"],
["future_id", "protocol"],
["analysis_timeout", "analysis_timeout"],
["exit", "process"],
-4
View File
@@ -143,10 +143,6 @@ const handlePing = (socket, request, state) => {
);
return;
}
if (state.mode === "oversized_whitespace") {
socket.write(`${" ".repeat(1024 * 1024 + 1)}\n`);
return;
}
if (state.mode === "future_id") {
socket.write(
`${JSON.stringify({ id: request.id + 10, ok: true, result: null })}\n`,