deepfish-ai 1.0.27 → 1.0.29
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/package.json +83 -81
- package/src/AgentRobot/BaseAgentRobot/index.js +1 -0
- package/src/AgentRobot/BaseAgentRobot/lazy-tools/AliBailian.js +997 -0
- package/src/AgentRobot/BaseAgentRobot/tools/GenerateTools.js +2 -2
- package/src/AgentRobot/BaseAgentRobot/tools/InquirerTools.js +8 -0
- package/src/AgentRobot/BaseAgentRobot/tools/SystemTools.js +424 -263
- package/src/AgentRobot/BaseAgentRobot/utils/AIRequest.js +59 -10
- package/src/AgentRobot/BaseAgentRobot/utils/copilot.js +117 -0
- package/src/cli/ConfigManager.js +25 -1
- package/src/cli/DefaultConfig.js +22 -6
- package/src/cli/SkillConfigManager.js +11 -0
- package/src/cli/ai-auth.js +231 -0
- package/src/cli/ai-config.js +21 -3
- package/src/cli/index.js +3 -1
|
@@ -269,7 +269,7 @@ async function getGenerateClawSkillRules(goal) {
|
|
|
269
269
|
3. 文档文件:目录中需新增2个说明文档:
|
|
270
270
|
- README_CN.md(中文说明文档)
|
|
271
271
|
- README.md(英文说明文档)
|
|
272
|
-
4. 辅助文件:如果Skill涉及复杂逻辑,可在目录中创建辅助脚本文件(如 .js、.sh、.py 等),并在 SKILL.md
|
|
272
|
+
4. 辅助文件:如果Skill涉及复杂逻辑,可在目录中创建辅助脚本文件(如 .js、.sh、.py 等),并在 SKILL.md 中说明其用途和调用方式;如果是js文件,可以在函数中通过this.Tools调用内置函数,如直接使用this.Tools.createSubAgent(workGoal)。
|
|
273
273
|
|
|
274
274
|
#### 标准目录结构
|
|
275
275
|
\`\`\`
|
|
@@ -413,7 +413,7 @@ function getSessionHistoryFile() {
|
|
|
413
413
|
latestLogFile = logFiles.sort((a, b) => {
|
|
414
414
|
const aTime = parseInt(a.slice(12, -4))
|
|
415
415
|
const bTime = parseInt(b.slice(12, -4))
|
|
416
|
-
return
|
|
416
|
+
return aTime - bTime
|
|
417
417
|
})[1]
|
|
418
418
|
}
|
|
419
419
|
const logFilePath = path.join(logDirPath, latestLogFile)
|
|
@@ -199,6 +199,14 @@ const descriptions = [
|
|
|
199
199
|
type: 'array',
|
|
200
200
|
description:
|
|
201
201
|
'选项数组,适用于list/checkbox/rawlist/expand类型',
|
|
202
|
+
items: {
|
|
203
|
+
type: 'object',
|
|
204
|
+
properties: {
|
|
205
|
+
name: { type: 'string' },
|
|
206
|
+
value: { type: 'string' },
|
|
207
|
+
short: { type: 'string' },
|
|
208
|
+
},
|
|
209
|
+
},
|
|
202
210
|
},
|
|
203
211
|
validate: {
|
|
204
212
|
type: 'string',
|