feat(coding-agent): added multi-cell Python execution with persistent kernel

- Added multi-cell Python execution with sequential processing in persistent kernel.
- Changed Python tool API to use cells array instead of single code parameter.
- Renamed workdir parameter to cwd across Bash and Python tools for consistency.
- Fixed indentation adjustment logic for mixed indentation levels in patch tool.
This commit is contained in:
can1357
2026-01-21 10:20:11 +01:00
parent 7f6d4ccf80
commit a5293b2fa6
15 changed files with 203 additions and 86 deletions
@@ -56,11 +56,11 @@ describe("python tool schema", () => {
};
expect(schema.type).toBe("object");
expect(schema.properties.code.type).toBe("string");
expect(schema.properties.cells.type).toBe("array");
expect(schema.properties.timeoutMs.type).toBe("number");
expect(schema.properties.workdir.type).toBe("string");
expect(schema.properties.cwd.type).toBe("string");
expect(schema.properties.reset.type).toBe("boolean");
expect(schema.required).toEqual(["code"]);
expect(schema.required).toEqual(["cells"]);
});
});