Skip to content

Commit 52b71c9

Browse files
committed
update
1 parent 418693e commit 52b71c9

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

.camel/skills/docs-incremental-update/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ automatically on each release:
167167

168168
1. Verifies `doc_code_map` patterns (`doc_code_map.py verify`).
169169
2. Writes `changed_python_files.txt` from the release diff, limited to
170-
`camel/**.py` and `services/**.py`.
170+
`camel/**.py`.
171171
3. Computes `impacted_docs.txt` from that changed Python file list.
172172
4. Runs `auto_sync_docs_with_chatagent.py` with both files so the agent knows:
173173
which Python files changed and which docs it may update.

.camel/skills/docs-incremental-update/scripts/auto_sync_docs_with_chatagent.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,13 @@ def _read_path_list(list_path: Path) -> list[str]:
8686

8787

8888
def _filter_changed_python_files(changed_files: list[str]) -> list[str]:
89-
"""Keep only Python files under camel/ or services/."""
89+
"""Keep only Python files under camel/."""
9090
filtered: set[str] = set()
9191
for path in changed_files:
9292
normalized = Path(path).as_posix()
9393
if not normalized.endswith(".py"):
9494
continue
95-
if normalized.startswith("camel/") or normalized.startswith(
96-
"services/"
97-
):
95+
if normalized.startswith("camel/"):
9896
filtered.add(normalized)
9997
return sorted(filtered)
10098

.github/workflows/docs_release_auto_sync_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
id: impacted
5151
run: |
5252
git diff --name-only "${{ steps.refs.outputs.base }}..${{ steps.refs.outputs.head }}" -- '*.py' | \
53-
grep -E '^(camel|services)/.*\.py$' > changed_python_files.txt || true
53+
grep -E '^camel/.*\.py$' > changed_python_files.txt || true
5454
echo "Changed Python files:"
5555
cat changed_python_files.txt || true
5656
if [ ! -s changed_python_files.txt ]; then

test/docs/test_docs_sync.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ def test_impacted_docs_detect_matching_source_changes(tmp_path):
7474
def test_read_path_list_file(tmp_path):
7575
path_list = tmp_path / "changed_files.txt"
7676
path_list.write_text(
77-
"\ncamel/agents/chat_agent.py\n\nservices/doc_sync.py\n",
77+
"\ncamel/agents/chat_agent.py\n\ncamel/models/base_model.py\n",
7878
encoding="utf-8",
7979
)
8080

8181
changed_files = doc_code_map._read_path_list(path_list)
8282

8383
assert changed_files == [
8484
"camel/agents/chat_agent.py",
85-
"services/doc_sync.py",
85+
"camel/models/base_model.py",
8686
]
8787

8888

@@ -116,8 +116,9 @@ def test_resolve_code_respects_budget_after_truncation(tmp_path, monkeypatch):
116116
def test_filter_changed_python_files_keeps_only_supported_roots():
117117
changed_files = [
118118
"camel/agents/chat_agent.py",
119-
"services/doc_sync.py",
119+
"camel/models/base_model.py",
120120
"docs/mintlify/key_modules/agents.mdx",
121+
"services/doc_sync.py",
121122
"tests/test_docs.py",
122123
"camel/agents/README.md",
123124
]
@@ -126,7 +127,7 @@ def test_filter_changed_python_files_keeps_only_supported_roots():
126127

127128
assert filtered == [
128129
"camel/agents/chat_agent.py",
129-
"services/doc_sync.py",
130+
"camel/models/base_model.py",
130131
]
131132

132133

0 commit comments

Comments
 (0)