ai-worktool 1.0.34 → 1.0.35

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## 1.0.34 (2025-08-10)
1
+ ## 1.0.35 (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: 'https://inte-oneai.chanjet.com.cn/assistant/v1/chat',
45
+ CHAT_ENDPOINT: DIFY_BASE_URL + '/chat',
45
46
  // 函数调用结果上报地址前缀
46
47
  // eslint-disable-next-line @typescript-eslint/naming-convention
47
- FUNCTION_RESULT_ENDPOINT_PREFIX: 'https://inte-oneai.chanjet.com.cn/assistant/v1/function_call/update_result/',
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=chanjet.js.map
383
+ //# sourceMappingURL=dify.js.map
@@ -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 chanjet = __importStar(require("./chanjet"));
44
+ const dify = __importStar(require("./dify"));
45
45
  __exportStar(require("./prompt"), exports);
46
46
  const platforms = {
47
- chanjet,
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.34",
4
+ "version": "1.0.35",
5
5
  "description": "单元测试智能体,帮你开发单元测试用例代码直到100%单测覆盖通过。",
6
6
  "author": "jianguoke.cn",
7
7
  "license": "MIT",
@@ -10,24 +10,26 @@
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
- "tools": "ts-node ./tools.ts",
18
- "plugin": "yarn tools && dify plugin package plugins/dify-plugin",
19
- "package": "cross-env PKG_CACHE_PATH=./binaries pkg . --targets node20-win-x64 --out-path aicoder ",
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
+ "win": "yarn createup && cross-env PKG_CACHE_PATH=./binaries pkg . --targets node20-win-x64 --out-path packages/aicoder-1.0.0.exe",
20
+ "buildcli": "yarn createup && cross-env PKG_CACHE_PATH=./binaries pkg --out-path packages/ . ",
21
21
  "ver": "node ./updatever.js",
22
22
  "remove-deps": "node ./remove-deps.js",
23
23
  "restore-deps": "node ./restore-deps.js",
24
- "pub": "yarn remove-deps && yarn changelog && vsce publish --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
24
+ "createup": "node ./uposs.js create-local-folder",
25
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
26
+ "puball": "yarn ver && yarn pubvs && yarn pubovsx && yarn puboss && yarn pubnpm",
27
+ "pubvs": "yarn remove-deps && yarn changelog && vsce publish --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
25
28
  "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
29
  "patch": "yarn remove-deps && vsce publish patch --yarn && yarn restore-deps",
28
- "vspack": "yarn remove-deps && vsce package -o aicoder-1.0.34.vsix --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
29
- "uposs": "node ./uposs.js",
30
- "puboss": "yarn vspack && yarn uposs",
30
+ "vspack": "yarn createup && yarn remove-deps && vsce package -o packages/aicoder-1.0.35.vsix --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
31
+ "puboss": "node ./uposs.js upload",
32
+ "pubnpm": "npm publish --registry=https://registry.npmjs.org",
31
33
  "prepare": "husky"
32
34
  },
33
35
  "publisher": "JianGuoKe",
@@ -37,9 +39,9 @@
37
39
  },
38
40
  "pkg": {
39
41
  "targets": [
40
- "node18-win-x64",
41
- "node18-macos-x64",
42
- "node18-linux-x64"
42
+ "node20-win-x64",
43
+ "node20-macos-x64",
44
+ "node20-linux-x64"
43
45
  ],
44
46
  "outputPath": "dist"
45
47
  },
@@ -154,7 +156,7 @@
154
156
  "default": "jianguoke",
155
157
  "enum": [
156
158
  "jianguoke",
157
- "chanjet"
159
+ "dify"
158
160
  ],
159
161
  "description": "智能体平台选择"
160
162
  },