Xingyao Wang
1b54800a29
[Agent] Improve edits by adding back edit_file_by_line ( #2722 )
...
* add replace-based block edit & preliminary test case fix
* further fix the insert behavior
* make edit only work on first occurence
* bump codeact version since we now use new edit agentskills
* update prompt for new agentskills
* update integration tests
* make run_infer.sh executable
* remove code block for edit_file
* update integration test for prompt changes
* default to not use hint for eval
* fix insert emptyfile bug
* throw value error when `to_replace` is empty
* make `_edit_or_insert_file` return string so we can try to fix some linter errors (best attempt)
* add todo
* update integration test
* fix sandbox test for this PR
* fix inserting with additional newline
* rename to edit_file_by_replace
* add back `edit_file_by_line`
* update prompt for new editing tool
* fix integration tests
* bump codeact version since there are more changes
* add back append file
* fix current line for append
* fix append unit tests
* change the location where we show edited line no to agent and fix tests
* update integration tests
* fix global window size affect by open_file bug
* fix global window size affect by open_file bug
* increase window size to 300
* add file beginning and ending marker to avoid looping
* expand the editor window to better display edit error for model
* refractor to breakdown edit to internal functions
* reduce window to 200
* move window to 100
* refractor to cleanup some logic into _calculate_window_bounds
* fix integration tests
* fix sandbox test on new prompt
* update demonstration with new changes
* fix integration
* initialize llm inside process_instance to circumvent "AttributeError: Can't pickle local object"
* update kwargs
* retry for internal server error
* fix max iteration
* override max iter from config
* fix integration tests
* remove edit file by line
* fix integration tests
* add instruction to avoid hanging
* Revert "add instruction to avoid hanging"
This reverts commit 06fd2c5938 .
* handle content policy violation error
* fix integration tests
* fix typo in prompt - the window is 100
* update all integration tests
---------
Co-authored-by: Graham Neubig <neubig@gmail.com >
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev >
2024-07-11 15:30:20 +00:00
dependabot[bot]
e793ca2261
chore(deps): bump framer-motion from 11.3.0 to 11.3.2 in /frontend ( #2890 )
2024-07-11 23:19:52 +08:00
adragos
5f61885e44
feat: Implement user confirmation mode, request confirmation when running bash/python code in this mode ( #2774 )
...
* [feat] confirmation mode for bash actions
* feat: Add modal setting for Confirmation Mode
* fix: frontend tests for confirmation mode switch
* fix: add missing CONFIRMATION_MODE value in SettingsModal.test.tsx
* fix: update test to integrate new setting
* feat: Implement user confirmation for running bash/python code
* fix: don't display rejected actions
* fix: linting, rename/refactor based on feedback
* fix: add property only to commands, pass serialization tests
* fix: package-lock.json, lint test_action_serialization.py
* test: add is_confirmed to integration test outputs
---------
Co-authored-by: Mislav Balunovic <mislav.balunovic@gmail.com >
2024-07-11 14:57:21 +03:00
மனோஜ்குமார் பழனிச்சாமி
1d4f422638
Doc: Mention FORCE_REGENERATE var ( #2833 )
...
* Mention FORCE_REGENERATE var in doc
* Update tests/integration/README.md
---------
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
Co-authored-by: Yufan Song <33971064+yufansong@users.noreply.github.com >
2024-07-11 04:01:15 +00:00
dependabot[bot]
456690818c
chore(deps): bump google-cloud-aiplatform from 1.58.0 to 1.59.0 ( #2884 )
...
Bumps [google-cloud-aiplatform](https://github.com/googleapis/python-aiplatform ) from 1.58.0 to 1.59.0.
- [Release notes](https://github.com/googleapis/python-aiplatform/releases )
- [Changelog](https://github.com/googleapis/python-aiplatform/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/python-aiplatform/compare/v1.58.0...v1.59.0 )
---
updated-dependencies:
- dependency-name: google-cloud-aiplatform
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 10:09:48 -07:00
dependabot[bot]
de11b49a38
chore(deps): bump boto3 from 1.34.141 to 1.34.142 ( #2882 )
2024-07-11 00:04:56 +08:00
dependabot[bot]
50f07aea44
chore(deps): bump framer-motion from 11.2.14 to 11.3.0 in /frontend ( #2880 )
2024-07-11 00:03:22 +08:00
dependabot[bot]
008f288bb0
chore(deps-dev): bump openai from 1.35.10 to 1.35.13 ( #2885 )
2024-07-11 00:02:55 +08:00
dependabot[bot]
7938b454e4
chore(deps): bump litellm from 1.41.13 to 1.41.14 ( #2883 )
2024-07-11 00:02:39 +08:00
dependabot[bot]
45e40d68f6
chore(deps): bump json-repair from 0.25.2 to 0.25.3 ( #2881 )
2024-07-11 00:02:17 +08:00
Boxuan Li
c68478f470
Customize LLM config per agent ( #2756 )
...
Currently, OpenDevin uses a global singleton LLM config and a global singleton agent config. This PR allows customers to configure an LLM config for each agent. A hypothetically useful scenario is to use a cheaper LLM for repo exploration / code search, and a more powerful LLM to actually do the problem solving (CodeActAgent).
Partially solves #2075 (web GUI improvement is not the goal of this PR)
2024-07-09 22:05:54 -07:00
Jiayi Pan
23e2d01cf5
Fix instance agonistic: remove Miniforge after installation ( #2878 )
...
* remove Miniforge after installation
* fix typo
2024-07-09 20:08:58 +00:00
dependabot[bot]
de47d8eecc
chore(deps-dev): bump @typescript-eslint/eslint-plugin in /frontend ( #2872 )
2024-07-09 16:42:22 +00:00
dependabot[bot]
4049c69590
chore(deps): bump litellm from 1.41.11 to 1.41.13 ( #2870 )
2024-07-10 00:08:12 +08:00
dependabot[bot]
792949aeb2
chore(deps): bump boto3 from 1.34.140 to 1.34.141 ( #2869 )
2024-07-10 00:07:48 +08:00
dependabot[bot]
864ee465fe
chore(deps): bump google-generativeai from 0.7.1 to 0.7.2 ( #2868 )
2024-07-10 00:07:35 +08:00
dependabot[bot]
fbced43ff3
chore(deps): bump framer-motion from 11.2.13 to 11.2.14 in /frontend ( #2871 )
2024-07-10 00:07:12 +08:00
dependabot[bot]
46b853e1b4
chore(deps-dev): bump @typescript-eslint/parser in /frontend ( #2873 )
2024-07-10 00:06:36 +08:00
Yufan Song
9198ea3fb1
fix output code error in docker image ( #2862 )
2024-07-08 22:40:39 -07:00
Yufan Song
f0bc231f3e
chores: open the websockets ports for port mapping and remove chores. ( #2864 )
...
* add port map
* add more comments TODO
2024-07-08 22:33:58 -07:00
Yufan Song
8cfb1be5a3
od-runtime-client: check and remove permission TODO ( #2863 )
2024-07-08 22:33:25 -07:00
Xingyao Wang
f2e92b2db7
move image agnostic util to shared runtime util ( #2859 )
2024-07-08 22:17:01 +00:00
mamoodi
e2636f9ece
docs: Reorder docs and small update to README ( #2860 )
...
Co-authored-by: Mahmoud Work <mahmoudwork@mahmouds-mini.home >
2024-07-08 21:33:12 +00:00
Yufan Song
351127db55
add od runtime clinet dependencies ( #2858 )
2024-07-08 18:20:44 +00:00
Yufan Song
9fbfa0650e
Add websocket runtime and od-client-runtime ( #2603 )
...
* add draft code
* add some sandbox draft code
* Export WebSocketBox and fix add_to_env async
* fix
* test execute
* add runtime draft
* add draft od-runtime-client
* refactor useless code
* format
* resume runtime
* resume runtime
* remove background command
* remove uselss action and init function
* add EventStreamRuntime test
* add echo server test
* temporarily build websocket everytimes
* remove websocket sandbox deprecated
* refactor code
* fix bug, add test
* fix bug
* remove test draft code
* refactor code, remove async
* rename file and directory
* add init plugin and runtime tools function
* add docker luanch
* fix plugin initialization
* remove test scropt
* add mock test code
* apply suggestions
---------
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
2024-07-08 17:44:37 +00:00
dependabot[bot]
e6ebb4307e
chore(deps): bump boto3 from 1.34.139 to 1.34.140 ( #2855 )
...
Bumps [boto3](https://github.com/boto/boto3 ) from 1.34.139 to 1.34.140.
- [Release notes](https://github.com/boto/boto3/releases )
- [Commits](https://github.com/boto/boto3/compare/1.34.139...1.34.140 )
---
updated-dependencies:
- dependency-name: boto3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 15:43:42 +00:00
dependabot[bot]
9b9b754965
chore(deps): bump litellm from 1.41.7 to 1.41.11 ( #2854 )
...
Bumps [litellm](https://github.com/BerriAI/litellm ) from 1.41.7 to 1.41.11.
- [Release notes](https://github.com/BerriAI/litellm/releases )
- [Commits](https://github.com/BerriAI/litellm/compare/v1.41.7...v1.41.11 )
---
updated-dependencies:
- dependency-name: litellm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 15:41:41 +00:00
dependabot[bot]
648597c4f7
chore(deps-dev): bump @types/node from 20.14.9 to 20.14.10 in /frontend ( #2852 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 20.14.9 to 20.14.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 14:49:49 +00:00
dependabot[bot]
ff701f99e6
chore(deps): bump tailwind-merge from 2.3.0 to 2.4.0 in /frontend ( #2851 )
...
Bumps [tailwind-merge](https://github.com/dcastil/tailwind-merge ) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/dcastil/tailwind-merge/releases )
- [Commits](https://github.com/dcastil/tailwind-merge/compare/v2.3.0...v2.4.0 )
---
updated-dependencies:
- dependency-name: tailwind-merge
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 14:49:39 +00:00
Engel Nyst
2df1d67007
History clean up ( #2849 )
...
* clean up add_history
* refactor last agent message
2024-07-08 05:10:21 +02:00
மனோஜ்குமார் பழனிச்சாமி
c6aa50779d
Update regenerate.sh ( #2832 )
2024-07-07 23:52:03 +02:00
Ralf D. Müller
ba0f57c279
added netcat to the requirements ( #2822 )
2024-07-07 21:32:56 +00:00
Engel Nyst
d37b2973b2
Refactoring: event stream based agent history ( #2709 )
...
* add to event stream sync
* remove async from tests
* small logging spam fix
* remove swe agent
* arch refactoring: use history from the event stream
* refactor agents
* monologue agent
* ruff
* planner agent
* micro-agents
* refactor history in evaluations
* evals history refactoring
* adapt evals and tests
* unit testing stuck
* testing micro agents, event stream
* fix planner agent
* fix tests
* fix stuck after rename
* fix test
* small clean up
* fix merge
* fix merge issue
* fix integration tests
* Update agenthub/dummy_agent/agent.py
* fix tests
* rename more clearly; add todo; clean up
2024-07-07 21:04:23 +00:00
மனோஜ்குமார் பழனிச்சாமி
9dc2d2c80f
Refactor: Remove extra log ( #2687 )
2024-07-08 05:37:13 +09:00
Shimada666
e35c1ff74a
Display real-time build logs for the agnostic image ( #2830 )
...
* Display real-time build logs for the agnostic image and improve wget's output.
* remove unused code
2024-07-08 04:35:16 +08:00
மனோஜ்குமார் பழனிச்சாமி
34c765688b
Streamline Logging Events ( #2532 )
...
* Skip duplicate log
* log user actions
* fix tests
* log all action _step
* refactor log
* revert test
* refactor log
* visual diff
* disable overriding event source
* Revert "disable overriding event source"
This reverts commit b0047cc0cd .
* Refactor logic
* refactored runtime on_event
* fix merge conflict
in Web UI, it shows as red color (seems deletion but added)
* linted
---------
Co-authored-by: Xingyao Wang <xingyao6@illinois.edu >
2024-07-08 05:34:47 +09:00
மனோஜ்குமார் பழனிச்சாமி
adf1a0d556
Bugfix: add missing f-string for logging debug message in task creation ( #2836 )
2024-07-07 17:36:19 +02:00
மனோஜ்குமார் பழனிச்சாமி
85a817304e
Check exit code ( #2834 )
2024-07-07 17:35:22 +02:00
Graham Neubig
d0384cafdd
Two fixes to swe bench eval ( #2831 )
...
* Two fixes to swe bench eval
* Add error message
* Change dumping of metadata
2024-07-07 07:21:50 +00:00
மனோஜ்குமார் பழனிச்சாமி
3a3694ca17
doc: Mention negative feedback feature in bug report. ( #2827 )
...
* doc: Mention feedback feature in bug report.
* Update .github/ISSUE_TEMPLATE/bug_template.yml
Co-authored-by: Graham Neubig <neubig@gmail.com >
---------
Co-authored-by: Graham Neubig <neubig@gmail.com >
2024-07-07 06:56:12 +00:00
Bin Lei
c8e5848add
fix git diff TIMEOUT problem in swe_bench evaluation ( #2828 )
...
* fix git diff TIMEOUT problem in swe_bench evaluation
* fix git diff TIMEOUT problem in swe_bench evaluation
* Update evaluation/swe_bench/swe_env_box.py
Co-authored-by: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com >
---------
Co-authored-by: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com >
2024-07-07 06:30:59 +00:00
Shimada666
0973e31f00
Update custom sandbox usage guide ( #2829 )
2024-07-07 05:33:35 +02:00
Shimada666
82f256be96
trim the sandbox image and install plugin dependencies in agnostic image ( #2792 )
...
* trim the sandbox image
* remove wrong code
* readd python
* readd python
* fix script
* readd nano
2024-07-06 17:38:37 +02:00
மனோஜ்குமார் பழனிச்சாமி
d6570bd572
Fix gemini-1.5-flash crash due to missing 'vertexai' module ( #2826 )
...
* Fix gemini-1.5-flash crash due to missing 'vertexai' module
* Update poetry.lock
2024-07-06 16:27:59 +02:00
Shimada666
d22ff73905
Make the sandbox Python runtime completely transparent ( #2796 )
...
* Make the sandbox Python runtime completely independent
* fix source bashrc
* add pip install instruction for ipython to fix intergration tests for codeact swe
* update integration tests
* change flake8 command to (maybe) fix sandbox tests?
* make lint support both unittest & sandbox
* fix agnostic image build error
* refactor build script
---------
Co-authored-by: Xingyao Wang <xingyao6@illinois.edu >
Co-authored-by: tobitege <tobitege@gmx.de >
2024-07-06 15:22:44 +02:00
Leo
9b0ff117ab
CI: Support uploading frontend unit test coverage. ( #2772 )
...
* CI: Support uploading frontend unit test coverage.
* Add make-i18n before test.
* Update vitest configuration to include only .ts and .tsx files in coverage.
* remove .only in test and fix the failed tests.
* Add text summary.
* Move vite-tsconfig-paths to dev dep. Adjust UTs.
---------
Signed-off-by: ifuryst <ifuryst@gmail.com >
Co-authored-by: sp.wack <83104063+amanape@users.noreply.github.com >
2024-07-06 12:16:30 +08:00
Xingyao Wang
f6dc89b41a
[Evaluation] Simplify eval & and multi-processing related fixes ( #2810 )
...
* initialize agent inside process_instance_fn;
* remove dependency on `config.max_iterations`
* switch back to only include llm config to metadata
2024-07-06 07:18:46 +08:00
Xingyao Wang
a47713ecb0
[Arch] Remove supports for Background Commands ( #2803 )
...
* depracting docker exec box
* remove doc exec from workflow and docs
* remove background commands
* Update tests/unit/test_sandbox.py
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
* replace for-loop with assignment
* fix integration tests
* fix integration tests for shell script
* fix integration tests
* increase max iter to fix some monologue agent issue
* fix integration test again
* fix integration tests (seems related to run_user issue)
---------
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
2024-07-06 03:38:05 +08:00
mamoodi
99284da476
Use README as the only place for getting started instructions ( #2815 )
...
Co-authored-by: Mahmoud Work <mahmoudwork@mahmouds-mini.home >
2024-07-05 19:44:29 +02:00
mamoodi
9ccc64fa7e
Update README ( #2814 )
...
Co-authored-by: Mahmoud Work <mahmoudwork@mahmouds-mini.home >
2024-07-05 12:54:34 -04:00