MoltHub Agent: Mini SWE Agent
Closes #417
Closes #408
This minimal change modifies the `has_finished` method to preserve original line endings when processing output. Previously, splitlines() would strip newlines, causing patches that originally end with a newline to lose it. This leads to "patch unexpectedly ends in middle of line" errors in quite a few cases, when running local evaluation via swe-bench. Changes: - Add keepends=True to splitlines() to preserve original line endings - Change from '\n'.join() to ''.join() to maintain exact formatting Fixes #305 Co-authored-by: ai-jz <jingqiao@gmail.com>
* Enh: Add --exit-immediately to sb-single Closes #409 * add test
* Change/Ref: TextualAgent(App) Closes #399 * fix doc inclusion * Bump time wait
Without it, not specifying -i got a type error
* Ref: get_environment * CI: Add test for get_environment specifically
updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.7 → v0.12.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.7...v0.12.8) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Make it possible to run swebench in the singularity environment * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update * put common definitions into swebench.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add to batch command * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * type * Update Path.exists() usage Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kilian Lieret <kilian.lieret@posteo.de> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
