Skip to content

Commit c198fc8

Browse files
committed
Refactor project with registry/facade/strategy patterns
Replace utils/ tree with core/ (ActionRegistry, ActionExecutor, CallbackExecutor, PackageLoader, json_store) and split local/, remote/, server/, project/, utils/ into flat strategy modules. Harden TCP server with loopback-only default, add SSRF guard for HTTP downloads, fix rename_file overwrite and related bugs. Replace six per-version workflows with matrix ci-dev.yml / ci-stable.yml. Add 80-case pytest suite, CLAUDE.md, Sphinx docs, and README with embedded architecture diagram.
1 parent 5197236 commit c198fc8

120 files changed

Lines changed: 3240 additions & 2937 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci-dev.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI (dev)
2+
3+
on:
4+
push:
5+
branches: [ "dev" ]
6+
pull_request:
7+
branches: [ "dev" ]
8+
schedule:
9+
- cron: "0 3 * * *"
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
pytest:
16+
runs-on: windows-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: [ "3.10", "3.11", "3.12" ]
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
cache: pip
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip wheel
31+
pip install -r dev_requirements.txt
32+
pip install pytest
33+
- name: Run pytest
34+
run: python -m pytest tests/ -v --tb=short

.github/workflows/ci-stable.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI (stable)
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: "0 3 * * *"
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
pytest:
16+
runs-on: windows-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: [ "3.10", "3.11", "3.12" ]
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
cache: pip
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip wheel
31+
pip install -r requirements.txt
32+
pip install pytest
33+
- name: Run pytest
34+
run: python -m pytest tests/ -v --tb=short

.github/workflows/file_automation_dev_python3_10.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/file_automation_dev_python3_11.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/file_automation_dev_python3_12.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/file_automation_stable_python3_10.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/file_automation_stable_python3_11.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/file_automation_stable_python3_12.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,5 @@ token.json
156156
credentials.json
157157
**/token.json
158158
**/credentials.json
159+
160+
.claude/

0 commit comments

Comments
 (0)