ai-worktool 1.0.34 → 1.0.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/CHANGELOG.md +2 -1
- package/dist/agents/{chanjet.js → dify.js} +4 -3
- package/dist/agents/index.js +2 -2
- package/package.json +16 -15
package/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## 1.0.
|
1
|
+
## 1.0.36 (2025-08-10)
|
2
2
|
|
3
3
|
|
4
4
|
### Bug Fixes
|
@@ -120,6 +120,7 @@
|
|
120
120
|
* **toolbox:** 重构并增强项目配置检测功能 ([6cc4e33](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/6cc4e33a58c7ebb622d27bc643c1e65d1e8af577))
|
121
121
|
* **tools:** 为简咕客插件生成 zod 工具 ([42dfcd9](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/42dfcd9eb337603ecb0c5fa381ad89784345c9dc))
|
122
122
|
* **tools:** 优化工具插件支持连续多行操作并添加新功能 ([734ca52](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/734ca5287785d84be0f8fc98b074476a3cc643f2))
|
123
|
+
* **uposs:** 增加本地文件夹创建和OSS文件夹上传功能 ([eeda0dc](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/eeda0dc15fb5b69fbcd33f610f8caafb44713e8d))
|
123
124
|
* **user:** 为认证回调页面添加立即关闭按钮 ([4328b48](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/4328b48e06002fa9d70427b21992f1022ffa73a0))
|
124
125
|
* **user:** 实现登录、登出功能并优化 token 存储 ([c2e046c](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/c2e046ce3068254f9b245d2b39c4c3bf3e7be44b))
|
125
126
|
* **user:** 实现登录、登出功能并优化 token 存储 ([1514408](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/151440887e90d90d0522303009f6940f0507258e))
|
@@ -37,14 +37,15 @@ exports.startAgent = exports.stopAgent = exports.setConversationId = exports.add
|
|
37
37
|
const tools = __importStar(require("../tools"));
|
38
38
|
const os = __importStar(require("os"));
|
39
39
|
const toolCall_1 = require("./toolCall");
|
40
|
+
const DIFY_BASE_URL = process.env.DIFY_BASE_URL;
|
40
41
|
// API配置 - 方便修改和更新
|
41
42
|
const API_CONFIG = {
|
42
43
|
// 聊天API地址
|
43
44
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
44
|
-
CHAT_ENDPOINT: '
|
45
|
+
CHAT_ENDPOINT: DIFY_BASE_URL + '/chat',
|
45
46
|
// 函数调用结果上报地址前缀
|
46
47
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
47
|
-
FUNCTION_RESULT_ENDPOINT_PREFIX: '
|
48
|
+
FUNCTION_RESULT_ENDPOINT_PREFIX: DIFY_BASE_URL + '/function_call/update_result/',
|
48
49
|
// 认证信息
|
49
50
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
50
51
|
AUTH_TOKEN: 'Bearer DF#app-35EgnCA8VOlHFaRkR39pXvOw',
|
@@ -379,4 +380,4 @@ const startAgent = async (name, userMessage, vars, withConversation, ctrl, mode,
|
|
379
380
|
}
|
380
381
|
};
|
381
382
|
exports.startAgent = startAgent;
|
382
|
-
//# sourceMappingURL=
|
383
|
+
//# sourceMappingURL=dify.js.map
|
package/dist/agents/index.js
CHANGED
@@ -41,10 +41,10 @@ exports.getPlatform = getPlatform;
|
|
41
41
|
exports.setPlatform = setPlatform;
|
42
42
|
exports.startAgent = startAgent;
|
43
43
|
const jianguoke = __importStar(require("./jianguoke"));
|
44
|
-
const
|
44
|
+
const dify = __importStar(require("./dify"));
|
45
45
|
__exportStar(require("./prompt"), exports);
|
46
46
|
const platforms = {
|
47
|
-
|
47
|
+
dify,
|
48
48
|
jianguoke
|
49
49
|
};
|
50
50
|
let currentPlatform;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "ai-worktool",
|
3
3
|
"displayName": "吃豆豆:单测智能体",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.36",
|
5
5
|
"description": "单元测试智能体,帮你开发单元测试用例代码直到100%单测覆盖通过。",
|
6
6
|
"author": "jianguoke.cn",
|
7
7
|
"license": "MIT",
|
@@ -10,24 +10,25 @@
|
|
10
10
|
"testAgent": "dist/cli.js"
|
11
11
|
},
|
12
12
|
"scripts": {
|
13
|
-
"watch": "tsc -w",
|
14
13
|
"build": "tsc",
|
14
|
+
"watch": "tsc -w",
|
15
15
|
"test": "jest test/tools",
|
16
16
|
"coverage": "jest --coverage test/tools",
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
17
|
+
"devTools": "ts-node ./tools.ts",
|
18
|
+
"difypack": "yarn devTools && dify plugin package plugins/dify-plugin",
|
19
|
+
"exepack": "yarn createup && cross-env PKG_CACHE_PATH=./binaries pkg --out-path packages/aicoder-1.0.36-{platform} . ",
|
21
20
|
"ver": "node ./updatever.js",
|
22
21
|
"remove-deps": "node ./remove-deps.js",
|
23
22
|
"restore-deps": "node ./restore-deps.js",
|
24
|
-
"
|
23
|
+
"createup": "node ./uposs.js create-local-folder",
|
24
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
25
|
+
"puball": "yarn ver && yarn pubvs && yarn pubovsx && yarn puboss && yarn pubnpm",
|
26
|
+
"pubvs": "yarn remove-deps && yarn changelog && vsce publish --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
|
25
27
|
"pubovsx": "yarn remove-deps && ovsx publish -p 47621ff6-be56-4814-865e-d2a8e8a76f86 --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
|
26
|
-
"puball": "yarn ver && yarn pub && yarn pubovsx && yarn puboss && npm publish --registry=https://registry.npmjs.org",
|
27
28
|
"patch": "yarn remove-deps && vsce publish patch --yarn && yarn restore-deps",
|
28
|
-
"vspack": "yarn remove-deps && vsce package -o aicoder-1.0.
|
29
|
-
"
|
30
|
-
"
|
29
|
+
"vspack": "yarn createup && yarn remove-deps && vsce package -o packages/aicoder-1.0.36.vsix --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
|
30
|
+
"puboss": "node ./uposs.js upload",
|
31
|
+
"pubnpm": "npm publish --registry=https://registry.npmjs.org",
|
31
32
|
"prepare": "husky"
|
32
33
|
},
|
33
34
|
"publisher": "JianGuoKe",
|
@@ -37,9 +38,9 @@
|
|
37
38
|
},
|
38
39
|
"pkg": {
|
39
40
|
"targets": [
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
41
|
+
"node20-win-x64",
|
42
|
+
"node20-macos-x64",
|
43
|
+
"node20-linux-x64"
|
43
44
|
],
|
44
45
|
"outputPath": "dist"
|
45
46
|
},
|
@@ -154,7 +155,7 @@
|
|
154
155
|
"default": "jianguoke",
|
155
156
|
"enum": [
|
156
157
|
"jianguoke",
|
157
|
-
"
|
158
|
+
"dify"
|
158
159
|
],
|
159
160
|
"description": "智能体平台选择"
|
160
161
|
},
|