Exclude cache artifacts from builder source packages
Some checks failed
build / build (push) Failing after 2s
Some checks failed
build / build (push) Failing after 2s
This commit is contained in:
@@ -12,7 +12,7 @@ from deepagents.backends.utils import create_file_data
|
||||
from langgraph.store.memory import InMemoryStore
|
||||
|
||||
from .config import Settings, load_settings
|
||||
from .tools import ToolContext, build_tools
|
||||
from .tools import ToolContext, _should_include_source_path, build_tools
|
||||
|
||||
|
||||
BUILDER_SKILL_SOURCE = "/.agent-builder/skills/"
|
||||
@@ -430,6 +430,13 @@ def _workspace_backend_with_grep_compat(
|
||||
"""
|
||||
|
||||
class BuilderWorkspaceBackend(workspace_backend_cls): # type: ignore[misc, valid-type]
|
||||
def _all_paths(self) -> list[str]:
|
||||
return [
|
||||
path
|
||||
for path in super()._all_paths()
|
||||
if _should_include_source_path(path)
|
||||
]
|
||||
|
||||
def grep(
|
||||
self,
|
||||
pattern: str,
|
||||
|
||||
Reference in New Issue
Block a user