Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix:解决打whl包时无法加入cmd和sh脚本问题,修改acp连接方式

openJiuwen-bot34a70574b0a6
diff --git a/docs/en/ACP_Client_Config.md b/docs/en/ACP_Client_Config.md
index 86869372ac..131e0314a6 100644
--- a/docs/en/ACP_Client_Config.md
+++ b/docs/en/ACP_Client_Config.md
@@ -7,9 +7,11 @@ Pre-installation Preparation
- Configure the model in the web UI: Settings → Configuration → Model Configuration
**Note: Users may complete installation and configuration based on their actual needs using the following methods.**
-**The following example uses VS Code on macOS to connect to the ACP client.**
-# VS Code ACP Client Setup (macOS / Linux)
+# VS Code ACP Client Setup (Source Code)
+
+For users who cloned the repository.
+
1. Install the ACP Client extension from the marketplace. Search for `formulahendry.acp-client` and install it.
![ACP](../assets/images/ACP插件.png)
@@ -18,20 +20,26 @@ Pre-installation Preparation
![addAgent](../assets/images/ACP插件添加agent.png)
-3. Under `Add Acp Agent`, enter: jiuwenclaw.
-
-![name](../assets/images/agent.png)
-
-4. For `Agent Command`, enter the absolute path to run_gateway_acp.sh.
-5. Leave `Agent Arguments` empty.
+3. For `Name`, enter: `jiuwenclaw`.
+4. For `Command`:
+ - Windows: enter the absolute path to `<repo>/scripts/run_gateway_acp.cmd`
+ - Linux / macOS: enter the absolute path to `<repo>/scripts/run_gateway_acp.sh`
+5. Leave `Config / Arguments` empty.
6. Start the main process in the terminal first: `python -m jiuwenclaw.app`
7. Connect to `jiuwenclaw` in the extension, then chat in the window.
-# VS Code ACP Client Setup (Windows)
+> Note: The scripts use the `.venv` under the project root by default.
+
+# VS Code ACP Client Setup (pip install / Wheel)
+
+For users who installed JiuwenClaw via `pip install jiuwenclaw`.
+
1. Install the ACP Client extension from the marketplace. Search for `formulahendry.acp-client` and install it.
2. In the extension, click the `+` button (`ACP: Add Agent Configuration`).
3. For `Name`, enter: `jiuwenclaw`.
-4. For `Command`, enter the absolute path to run_gateway_acp.cmd (which uses `jiuwenclaw.gateway.channel_manager.protocol.acp.acp_connect` as the entry point).
-5. Leave `Config` empty.
+4. For `Command`, enter: `jiuwenclaw-acp`
+5. Leave `Config / Arguments` empty.
6. Start the main process in the terminal first: `python -m jiuwenclaw.app`
-7. Connect to `jiuwenclaw` in the extension, then chat in the window.
\ No newline at end of file
+7. Connect to `jiuwenclaw` in the extension, then chat in the window.
+
+> Note: `jiuwenclaw-acp` is a command-line entry point auto-generated by pip install, just like `jiuwenclaw-init` and `jiuwenclaw-start`. Make sure VS Code is running in the same virtual environment where jiuwenclaw is installed. If not, provide the full path instead, e.g. `C:\path\to\venv\Scripts\jiuwenclaw-acp.exe` on Windows, or `/path/to/venv/bin/jiuwenclaw-acp` on Linux/macOS.
\ No newline at end of file
diff --git "a/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md" "b/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md"
index 3acc3651c0..6e724f1db4 100644
--- "a/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md"
+++ "b/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md"
@@ -126,25 +126,10 @@ python -m jiuwenclaw.app
在 ACP Client 插件中执行 **ACP: Add Agent Configuration**,然后填写:
* **Name**:`jiuwenclaw`
-* **Command**:
-
- * Windows:`python -m jiuwenclaw.channel.acp_channel`
- * Linux / macOS:`python -m jiuwenclaw.channel.acp_channel`
+* **Command**:`jiuwenclaw-acp`
* **Config / Arguments**:留空
-**注意**:python 需为已安装 jiuwenclaw 包的 Python 解释器;若非当前默认解释器,请使用对应环境中的 Python 完整路径替代。例如:
-
-**Windows**
-
-```text
-C:\path\to\your\venv\Scripts\python.exe -m jiuwenclaw.gateway.channel_manager.protocol.acp.acp_connect
-```
-
-**Linux / macOS**
-
-```text
-/path/to/your/venv/bin/python -m jiuwenclaw.gateway.channel_manager.protocol.acp.acp_connect
-```
+> 说明:`jiuwenclaw-acp` 是 pip install 后自动生成的命令,与 `jiuwenclaw-init`、`jiuwenclaw-start` 同级。需确保 VS Code 在已安装 jiuwenclaw 的虚拟环境中运行,否则需填写完整路径,例如 Windows:`C:\path\to\venv\Scripts\jiuwenclaw-acp.exe`,Linux / macOS:`/path/to/venv/bin/jiuwenclaw-acp`。
![ACP配置](../assets/images/ACP插件添加agent.png)
diff --git a/pyproject.toml b/pyproject.toml
index fd06fd68b0..262812a77f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -68,6 +68,7 @@ jiuwenclaw-start = "jiuwenclaw.start_services:main"
jiuwenclaw-init = "jiuwenclaw.init_workspace:main"
jiuwenclaw-desktop = "jiuwenclaw.channels.desktop.desktop_app:main"
jiuwenclaw-tui = "jiuwenclaw.channels.acp.app_acp:main"
+jiuwenclaw-acp = "jiuwenclaw.gateway.channel_manager.protocol.acp.acp_connect:main"
[tool.setuptools]
# 入口脚本现在是 jiuwenclaw 包内的一部分,不需要 py-modules