🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
ignore javascirip validation and add tool_selector in editr class
黄伟韬a80b41db5d6c
diff --git a/metagpt/tools/libs/editor.py b/metagpt/tools/libs/editor.pyindex a315d7370..834615ab9 100644--- a/metagpt/tools/libs/editor.py+++ b/metagpt/tools/libs/editor.py@@ -73,7 +73,24 @@ class LineNumberError(Exception):pass-@register_tool()+@register_tool(+ include_functions=[+ "write",+ "read",+ "open_file",+ "goto_line",+ "scroll_down",+ "scroll_up",+ "create_file",+ "edit_file_by_replace",+ "insert_content_at_line",+ "append_file",+ "search_dir",+ "search_file",+ "find_file",+ "search_index_repo",+ ]+)class Editor(BaseModel):"""A tool for reading, understanding, writing, and editing files.diff --git a/metagpt/tools/libs/linter.py b/metagpt/tools/libs/linter.pyindex 8a0024f83..0497e49c0 100644--- a/metagpt/tools/libs/linter.py+++ b/metagpt/tools/libs/linter.py@@ -35,6 +35,7 @@ class Linter:sql=self.fake_lint, # base_lint lacks support for full SQL syntax. Use fake_lint to bypass the validation.css=self.fake_lint, # base_lint lacks support for css syntax. Use fake_lint to bypass the validation.js=self.fake_lint, # base_lint lacks support for javascipt syntax. Use fake_lint to bypass the validation.+ javascript=self.fake_lint,)self.all_lint_cmd = None