@fastagent/cli 0.6.35 → 0.6.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -86,6 +86,8 @@ fastagent doctor --config ./fastagent.config.json
86
86
  `engine.turnTimeoutMs/toolExecutionTimeoutMs`、
87
87
  `imGateway.stallTimeoutMs`
88
88
  - `sandbox` 整段都是可选的;只有 remote sandbox 需要从配置文件注入地址/API key,或 local sandbox 需要自定义 launcher 时才需要填写
89
+ - `sandbox.workspaceMode=host-bind` 只支持 `--sandbox local`。如果没有设置
90
+ `sandbox.hostWorkspaceRoot`,IM 命令会默认使用 `imGateway.workspaceDir` 作为执行根。
89
91
  - 当前配置示例文件是 `examples/fastagent.config.example.json`
90
92
 
91
93
  ### OpenAI Responses `supportsPreviousResponse` 说明
@@ -137,6 +139,9 @@ fastagent doctor --config ./fastagent.config.json
137
139
  "requestTimeoutMs": 60000,
138
140
  "maxRetries": 2
139
141
  },
142
+ "sandbox": {
143
+ "workspaceMode": "isolated"
144
+ },
140
145
  "engine": {
141
146
  "defaultThinkingLevel": "medium",
142
147
  "turnTimeoutMs": 180000,
@@ -152,6 +157,24 @@ fastagent doctor --config ./fastagent.config.json
152
157
  }
153
158
  ```
154
159
 
160
+ local sandbox 直接在 host 工作区执行:
161
+
162
+ ```json
163
+ {
164
+ "sandbox": {
165
+ "workspaceMode": "host-bind",
166
+ "hostWorkspaceRoot": "/weixin-bot/workspace"
167
+ },
168
+ "imGateway": {
169
+ "workspaceDir": "/weixin-bot/workspace"
170
+ }
171
+ }
172
+ ```
173
+
174
+ ```bash
175
+ fastagent --channel weixin --sandbox local --config ./fastagent.config.json
176
+ ```
177
+
155
178
  ## IM Channel
156
179
 
157
180
  当前公开提供的内置 IM 通道是微信 `weixin`。