refactor: return complete tool results inline

This commit is contained in:
morluto
2026-09-29 07:08:46 +08:00
parent 2160d4fae5
commit 0d96275b68
535 changed files with 4084 additions and 13537 deletions
@@ -41,9 +41,9 @@ describe("managed static provider path boundary", () => {
if (!members.ok) return;
expect(asManagedMemberResult(members.value)).toMatchObject({
artifact: { path, sha256: parsed.value.sha256, format: "pe" },
methods: { total: 1 },
call_edges: { total: 1 },
field_accesses: { total: 1 },
methods: [expect.objectContaining({ token: "0x06000001" })],
call_edges: [expect.objectContaining({ target_name: ".ctor" })],
field_accesses: [expect.objectContaining({ field_name: "counter" })],
});
const boundaries = await client.execute(
@@ -54,9 +54,9 @@ describe("managed static provider path boundary", () => {
if (!boundaries.ok) return;
expect(asManagedNativeBoundaryResult(boundaries.value)).toMatchObject({
artifact: { path, sha256: parsed.value.sha256, format: "pe" },
module_refs: { total: 0 },
pinvoke_imports: { total: 0 },
native_implementations: { total: 0 },
module_refs: [],
pinvoke_imports: [],
native_implementations: [],
});
const cancelled = new AbortController();