@fastagent/cli 0.5.6 → 0.6.0
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 +13 -2
- package/cli.js +319 -319
- package/examples/fastagent.config.example.json +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,7 +73,11 @@ fastagent doctor --config ./fastagent.config.json
|
|
|
73
73
|
- 只有显式传入 `--config <path>` 时才会读取配置文件。
|
|
74
74
|
- 优先级固定为 `命令行参数 > 配置文件 > 环境变量`。
|
|
75
75
|
- `fastagent --config ...` 裸命令会报固定错误;`--config` 当前必须和 runtime 命令或 `doctor` 一起使用。
|
|
76
|
-
- `fastagent --channel weixin --config ...` 会读取 `gateway`、`sandbox`、`imGateway`;`fastagent doctor --config ...` 只诊断 `sandbox.launcher`
|
|
76
|
+
- `fastagent --channel weixin --config ...` 会读取 `gateway`、`sandbox`、`engine`、`imGateway`;`fastagent doctor --config ...` 只诊断 `sandbox.launcher`
|
|
77
|
+
- IM 运行时预算走统一 owner:
|
|
78
|
+
`gateway.requestTimeoutMs/maxRetries`、
|
|
79
|
+
`engine.turnTimeoutMs/toolExecutionTimeoutMs`、
|
|
80
|
+
`imGateway.stallTimeoutMs`
|
|
77
81
|
- `sandbox` 整段都是可选的;只有 remote sandbox 需要从配置文件注入地址/API key,或 local sandbox 需要自定义 launcher 时才需要填写
|
|
78
82
|
- 当前配置示例文件是 `examples/fastagent.config.example.json`
|
|
79
83
|
|
|
@@ -87,12 +91,19 @@ fastagent doctor --config ./fastagent.config.json
|
|
|
87
91
|
"apiType": "openai-responses",
|
|
88
92
|
"baseUrl": "https://api.openai.com/v1",
|
|
89
93
|
"userAgent": "fastagent-cli-example",
|
|
90
|
-
"apiKey": "<your-api-key>"
|
|
94
|
+
"apiKey": "<your-api-key>",
|
|
95
|
+
"requestTimeoutMs": 60000,
|
|
96
|
+
"maxRetries": 2
|
|
97
|
+
},
|
|
98
|
+
"engine": {
|
|
99
|
+
"turnTimeoutMs": 180000,
|
|
100
|
+
"toolExecutionTimeoutMs": 120000
|
|
91
101
|
},
|
|
92
102
|
"imGateway": {
|
|
93
103
|
"workspaceDir": "/abs/workspace",
|
|
94
104
|
"agentId": "agent-weixin-dev",
|
|
95
105
|
"dataDir": "/abs/fastagent",
|
|
106
|
+
"stallTimeoutMs": 900000,
|
|
96
107
|
"allowAllPermissions": true
|
|
97
108
|
}
|
|
98
109
|
}
|