Reverse engineer anything with agents, from app behavior down to native binaries.
TypeScript agent-skillsai-agentsbinary-analysisclaude-codeclicodexcordisdecompilerdeveloper-toolsdshdsh-pluginghidrahopperllmmcpmodel-context-protocolreareverse-engineeringstatic-analysistouhou
fix(kuna): name the rejected address in list_strings input errors (#6269)
Abel Yagubyan117ded88f01f
diff --git a/src/kuna/KunaStringQueries.ts b/src/kuna/KunaStringQueries.tsindex 5158a142a..eabce02b0 100644--- a/src/kuna/KunaStringQueries.ts+++ b/src/kuna/KunaStringQueries.ts@@ -64,9 +64,11 @@ export class KunaStringQueries {address === undefined)return err(- new AnalysisInputError(operation, {- userMessage: "Use an explicit hexadecimal u64 string address.",- }),+ new AnalysisInputError(+ operation,+ { userMessage: "Use an explicit hexadecimal u64 string address." },+ [{ path: ["address"], reason: "invalid_format" }],+ ),);const inventory = await this.#load(installation, operation, signal);if (!inventory.ok)diff --git a/tests/boundary/providers/kuna/kunaStrings.test.ts b/tests/boundary/providers/kuna/kunaStrings.test.tsindex e04584330..4d1348e95 100644--- a/tests/boundary/providers/kuna/kunaStrings.test.ts+++ b/tests/boundary/providers/kuna/kunaStrings.test.ts@@ -84,9 +84,14 @@ it("shares a typed string scan across concurrent searches and exact address readexpect(commands.filter((command) => command !== "--version")).toEqual(["strings",]);- expect(- await client.execute("list_strings", { address: "invalid" }),- ).toMatchObject({ ok: false, error: { _tag: "AnalysisInputError" } });+ for (const address of ["invalid", "0x1ffffffffffffffff"])+ expect(await client.execute("list_strings", { address })).toMatchObject({+ ok: false,+ error: {+ _tag: "AnalysisInputError",+ issues: [{ path: ["address"], reason: "invalid_format" }],+ },+ });expect(await client.execute("search_strings", { pattern: "[", mode: "regex" }),).toMatchObject({ ok: false, error: { _tag: "AnalysisInputError" } });