Exclude cache artifacts from builder source packages
Some checks failed
build / build (push) Failing after 2s

This commit is contained in:
robert
2026-06-07 19:54:03 -03:00
parent d7cb4b3f8f
commit aba68aaf2e
5 changed files with 158 additions and 26 deletions

View File

@@ -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,