Skip to content

Commit b0d7389

Browse files
authored
Merge branch 'main' into codex/add-clibrowser-to-registry
2 parents f3ee4bd + 64ed6eb commit b0d7389

39 files changed

Lines changed: 8941 additions & 5 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
!/inkscape/
4040
!/audacity/
4141
!/libreoffice/
42+
!/zotero/
4243
!/mubu/
4344
!/obs-studio/
4445
!/kdenlive/
@@ -71,6 +72,8 @@
7172
/audacity/.*
7273
/libreoffice/*
7374
/libreoffice/.*
75+
/zotero/*
76+
/zotero/.*
7477
/mubu/*
7578
/mubu/.*
7679
/obs-studio/*
@@ -116,6 +119,7 @@
116119
!/inkscape/agent-harness/
117120
!/audacity/agent-harness/
118121
!/libreoffice/agent-harness/
122+
!/zotero/agent-harness/
119123
!/mubu/agent-harness/
120124
!/obs-studio/agent-harness/
121125
!/kdenlive/agent-harness/

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,13 @@ Each application received complete, production-ready CLI interfaces — not demo
634634
<td align="center">✅ 158</td>
635635
</tr>
636636
<tr>
637+
<td align="center"><strong>📚 <a href="zotero/agent-harness/">Zotero</a></strong></td>
638+
<td>Reference Management</td>
639+
<td><code>cli-anything-zotero</code></td>
640+
<td>Local SQLite + connector + Local API</td>
641+
<td align="center">✅ <a href="zotero/agent-harness/">New</a></td>
642+
</tr>
643+
<tr>
637644
<td align="center"><strong>📝 <a href="mubu/agent-harness/">Mubu</a></strong></td>
638645
<td>Knowledge Management &amp; Outlining</td>
639646
<td><code>cli-anything-mubu</code></td>
@@ -829,6 +836,7 @@ cli-anything/
829836
├── 🎵 audacity/agent-harness/ # Audacity CLI (161 tests)
830837
├── 🌐 browser/agent-harness/ # Browser CLI (DOMShell MCP, new)
831838
├── 📄 libreoffice/agent-harness/ # LibreOffice CLI (158 tests)
839+
├── 📚 zotero/agent-harness/ # Zotero CLI (new, write import support)
832840
├── 📝 mubu/agent-harness/ # Mubu CLI (96 tests)
833841
├── 📹 obs-studio/agent-harness/ # OBS Studio CLI (153 tests)
834842
├── 🎞️ kdenlive/agent-harness/ # Kdenlive CLI (155 tests)

README_CN.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,13 @@ CLI-Anything 适用于任何有代码库的软件 —— 不限领域,不限
525525
<td align="center">✅ 158</td>
526526
</tr>
527527
<tr>
528+
<td align="center"><strong>📚 <a href="zotero/agent-harness/">Zotero</a></strong></td>
529+
<td>文献管理与引用</td>
530+
<td><code>cli-anything-zotero</code></td>
531+
<td>Local SQLite + connector + Local API</td>
532+
<td align="center">✅ <a href="zotero/agent-harness/">新增</a></td>
533+
</tr>
534+
<tr>
528535
<td align="center"><strong>📹 OBS Studio</strong></td>
529536
<td>直播与录制</td>
530537
<td><code>cli-anything-obs-studio</code></td>
@@ -668,6 +675,7 @@ cli-anything/
668675
├── ✏️ inkscape/agent-harness/ # Inkscape CLI(202 项测试)
669676
├── 🎵 audacity/agent-harness/ # Audacity CLI(161 项测试)
670677
├── 📄 libreoffice/agent-harness/ # LibreOffice CLI(158 项测试)
678+
├── 📚 zotero/agent-harness/ # Zotero CLI(新增,支持文献导入)
671679
├── 📹 obs-studio/agent-harness/ # OBS Studio CLI(153 项测试)
672680
├── 🎞️ kdenlive/agent-harness/ # Kdenlive CLI(155 项测试)
673681
├── 🎬 shotcut/agent-harness/ # Shotcut CLI(154 项测试)

blender/agent-harness/cli_anything/blender/core/render.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ def render_scene(
212212
os.makedirs(script_dir, exist_ok=True)
213213

214214
script_path = os.path.join(script_dir, "_render_script.py")
215-
script_content = generate_bpy_script(project, output_path, frame=frame, animation=animation)
215+
# Ensure output_path is absolute before passing it to the script generator
216+
# as Blender's background process may have a different CWD.
217+
abs_output_path = os.path.abspath(output_path)
218+
script_content = generate_bpy_script(project, abs_output_path, frame=frame, animation=animation)
216219

217220
with open(script_path, "w") as f:
218221
f.write(script_content)

blender/agent-harness/cli_anything/blender/skills/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pip install cli-anything-blender
1919

2020
**Prerequisites:**
2121
- Python 3.10+
22-
- blender must be installed on your system
22+
- blender (>= 4.2) must be installed on your system
2323

2424

2525
## Usage
@@ -228,7 +228,7 @@ When using this CLI programmatically:
228228
1. **Always use `--json` flag** for parseable output
229229
2. **Check return codes** - 0 for success, non-zero for errors
230230
3. **Parse stderr** for error messages on failure
231-
4. **Use absolute paths** for all file operations
231+
4. **MANDATORY: Use absolute paths** for all file operations (rendering, project files). Relative paths are prone to failure in background execution.
232232
5. **Verify outputs exist** after export operations
233233

234234
## More Information

blender/agent-harness/cli_anything/blender/utils/bpy_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def _engine_to_bpy(engine: str) -> str:
521521
"""Convert engine name to bpy enum value."""
522522
mapping = {
523523
"CYCLES": "CYCLES",
524-
"EEVEE": "BLENDER_EEVEE_NEXT",
524+
"EEVEE": "BLENDER_EEVEE",
525525
"WORKBENCH": "BLENDER_WORKBENCH",
526526
}
527527
return mapping.get(engine, "CYCLES")

registry.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"display_name": "Blender",
5353
"version": "1.0.0",
5454
"description": "3D modeling, animation, and rendering via blender --background --python",
55-
"requires": "blender",
55+
"requires": "blender >= 4.2",
5656
"homepage": "https://www.blender.org",
5757
"install_cmd": "pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=blender/agent-harness",
5858
"entry_point": "cli-anything-blender",
@@ -173,6 +173,20 @@
173173
"contributor": "CLI-Anything-Team",
174174
"contributor_url": "https://github.com/HKUDS/CLI-Anything"
175175
},
176+
{
177+
"name": "zotero",
178+
"display_name": "Zotero",
179+
"version": "0.1.0",
180+
"description": "Reference management via local Zotero SQLite, connector, and Local API",
181+
"requires": "Zotero desktop app",
182+
"homepage": "https://www.zotero.org",
183+
"install_cmd": "pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=zotero/agent-harness",
184+
"entry_point": "cli-anything-zotero",
185+
"skill_md": "zotero/agent-harness/cli_anything/zotero/skills/SKILL.md",
186+
"category": "office",
187+
"contributor": "zhiwuyazhe_fjr",
188+
"contributor_url": "https://github.com/zhiwuyazhe_fjr"
189+
},
176190
{
177191
"name": "mubu",
178192
"display_name": "Mubu",

0 commit comments

Comments
 (0)