chatccc 0.2.300 → 0.2.302

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.
Files changed (55) hide show
  1. package/.agents/skills/create-chatccc-feishu-app/SKILL.md +85 -85
  2. package/.claude/skills/create-chatccc-feishu-app/SKILL.md +85 -85
  3. package/.cursor/skills/create-chatccc-feishu-app/SKILL.md +85 -85
  4. package/README.md +8 -3
  5. package/agent-prompts/claude_specific.md +45 -45
  6. package/agent-prompts/codex_specific.md +2 -2
  7. package/agent-prompts/cursor_specific.md +13 -13
  8. package/bin/cccagent.mjs +26 -26
  9. package/bin/chatccc.mjs +15 -15
  10. package/config.sample.json +7 -6
  11. package/deepccc-agent/README.md +21 -4
  12. package/deepccc-agent/os-prompts/darwin.md +8 -8
  13. package/deepccc-agent/os-prompts/linux.md +8 -8
  14. package/deepccc-agent/os-prompts/win32.md +11 -11
  15. package/deepccc-agent/package.json +68 -68
  16. package/dist/deepccc-agent/src/attachments.js +7 -5
  17. package/dist/deepccc-agent/src/cli.js +52 -7
  18. package/dist/deepccc-agent/src/completion-session.js +100 -0
  19. package/dist/deepccc-agent/src/config.js +4 -0
  20. package/dist/deepccc-agent/src/context.js +4 -1
  21. package/dist/deepccc-agent/src/decision-session.js +314 -0
  22. package/dist/deepccc-agent/src/file-tools.js +5 -0
  23. package/dist/deepccc-agent/src/index.js +41 -4
  24. package/dist/deepccc-agent/src/json-mode-fetch.js +12 -0
  25. package/dist/deepccc-agent/src/json-response.js +33 -0
  26. package/dist/deepccc-agent/src/multimodal.js +291 -0
  27. package/dist/deepccc-agent/src/progress/reducer.js +2 -0
  28. package/dist/deepccc-agent/src/web-page.js +411 -411
  29. package/dist/deepccc-agent/src/web-runtime.js +3 -0
  30. package/dist/deepccc-agent/src/web-server.js +2 -0
  31. package/dist/src/adapters/ccc-adapter.js +4 -0
  32. package/dist/src/agent-team/web/agent-team-page.js +250 -250
  33. package/dist/src/config.js +2 -0
  34. package/dist/src/engines/engine-specs.js +71 -71
  35. package/dist/src/feishu-api.js +11 -11
  36. package/dist/src/format-message.js +38 -19
  37. package/dist/src/litellm-proxy.js +15 -15
  38. package/dist/src/progress/reducer.js +2 -0
  39. package/dist/src/session.js +1 -0
  40. package/dist/src/web-ui.js +80 -66
  41. package/im-skills/feishu-skill/receive-send-file.md +65 -65
  42. package/im-skills/feishu-skill/receive-send-image.md +26 -26
  43. package/im-skills/feishu-skill/send-file.mjs +6 -6
  44. package/im-skills/feishu-skill/send-image.mjs +6 -6
  45. package/im-skills/feishu-skill/skill.md +28 -28
  46. package/im-skills/wechat-file-skill/receive-send-file.md +38 -38
  47. package/im-skills/wechat-file-skill/send-file.mjs +83 -83
  48. package/im-skills/wechat-file-skill/skill.md +10 -10
  49. package/im-skills/wechat-image-skill/skill.md +10 -10
  50. package/im-skills/wechat-video-skill/receive-send-video.md +38 -38
  51. package/im-skills/wechat-video-skill/send-video.mjs +79 -79
  52. package/im-skills/wechat-video-skill/skill.md +10 -10
  53. package/package.json +77 -77
  54. package/scripts/postinstall-sharp-check.mjs +58 -58
  55. package/scripts/self-update-helper.mjs +301 -301
package/package.json CHANGED
@@ -1,77 +1,77 @@
1
- {
2
- "name": "chatccc",
3
- "version": "0.2.300",
4
- "description": "Feishu bot bridge for Claude Code",
5
- "license": "Apache-2.0",
6
- "type": "module",
7
- "main": "./dist/src/index.js",
8
- "bin": {
9
- "chatccc": "bin/chatccc.mjs",
10
- "cccagent": "bin/cccagent.mjs"
11
- },
12
- "files": [
13
- "dist/",
14
- "deepccc-agent/os-prompts/",
15
- "bin/",
16
- "scripts/postinstall-sharp-check.mjs",
17
- "scripts/self-update-helper.mjs",
18
- "demo/ilink_echo_probe.ts",
19
- "agent-prompts/",
20
- "im-skills/",
21
- ".agents/skills/create-chatccc-feishu-app/",
22
- ".claude/skills/create-chatccc-feishu-app/",
23
- ".cursor/skills/create-chatccc-feishu-app/",
24
- "images/img_readme_*.jpg",
25
- "images/img_readme_*.png",
26
- "images/avatars/status_*.png",
27
- "images/avatars/badges/",
28
- "images/avatars/combinations/",
29
- "package.json",
30
- "README.md",
31
- "config.sample.json"
32
- ],
33
- "scripts": {
34
- "build": "node scripts/build.mjs",
35
- "prepack": "npm run build",
36
- "dev": "tsx src/index.ts",
37
- "chatccc": "tsx src/index.ts",
38
- "start": "tsx src/index.ts",
39
- "demo:bot-test": "tsx demo/bot_test.ts",
40
- "demo:bot-test:local": "tsx demo/bot_test.ts --local",
41
- "demo:create-group": "tsx src/index.ts",
42
- "demo:create-group:local": "tsx src/index.ts --local",
43
- "demo:permission-check": "tsx demo/permission_check.ts",
44
- "demo:claude-hi": "tsx demo/claude_say_hi.ts",
45
- "demo:codex-hi": "tsx demo/codex_say_hi.ts",
46
- "demo:codex-app-server-approval": "tsx demo/codex-app-server-approval/approval_demo.ts",
47
- "demo:ilink-echo": "tsx demo/ilink_echo_probe.ts",
48
- "claude-proxy": "tsx src/litellm-proxy.ts",
49
- "test": "vitest run",
50
- "test:deepccc": "vitest run --root deepccc-agent",
51
- "test:watch": "vitest",
52
- "postinstall": "node scripts/postinstall-sharp-check.mjs"
53
- },
54
- "dependencies": {
55
- "@ai-sdk/anthropic": "^3.0.105",
56
- "@ai-sdk/openai-compatible": "^2.0.47",
57
- "@larksuiteoapi/node-sdk": "^1.66.1",
58
- "@openilink/openilink-sdk-node": "^0.6.0",
59
- "@vscode/ripgrep": "^1.18.0",
60
- "ai": "^6.0.184",
61
- "nodemailer": "^8.0.7",
62
- "qrcode-terminal": "^0.12.0",
63
- "sharp": "^0.34.5",
64
- "ws": "^8.18.0"
65
- },
66
- "devDependencies": {
67
- "@types/node": "^20.0.0",
68
- "@types/qrcode-terminal": "^0.12.2",
69
- "@types/ws": "^8.18.1",
70
- "tsx": "^4.0.0",
71
- "typescript": "^5.0.0",
72
- "vitest": "^3.2.4"
73
- },
74
- "engines": {
75
- "node": ">=20"
76
- }
77
- }
1
+ {
2
+ "name": "chatccc",
3
+ "version": "0.2.302",
4
+ "description": "Feishu bot bridge for Claude Code",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "main": "./dist/src/index.js",
8
+ "bin": {
9
+ "chatccc": "bin/chatccc.mjs",
10
+ "cccagent": "bin/cccagent.mjs"
11
+ },
12
+ "files": [
13
+ "dist/",
14
+ "deepccc-agent/os-prompts/",
15
+ "bin/",
16
+ "scripts/postinstall-sharp-check.mjs",
17
+ "scripts/self-update-helper.mjs",
18
+ "demo/ilink_echo_probe.ts",
19
+ "agent-prompts/",
20
+ "im-skills/",
21
+ ".agents/skills/create-chatccc-feishu-app/",
22
+ ".claude/skills/create-chatccc-feishu-app/",
23
+ ".cursor/skills/create-chatccc-feishu-app/",
24
+ "images/img_readme_*.jpg",
25
+ "images/img_readme_*.png",
26
+ "images/avatars/status_*.png",
27
+ "images/avatars/badges/",
28
+ "images/avatars/combinations/",
29
+ "package.json",
30
+ "README.md",
31
+ "config.sample.json"
32
+ ],
33
+ "scripts": {
34
+ "build": "node scripts/build.mjs",
35
+ "prepack": "npm run build",
36
+ "dev": "tsx src/index.ts",
37
+ "chatccc": "tsx src/index.ts",
38
+ "start": "tsx src/index.ts",
39
+ "demo:bot-test": "tsx demo/bot_test.ts",
40
+ "demo:bot-test:local": "tsx demo/bot_test.ts --local",
41
+ "demo:create-group": "tsx src/index.ts",
42
+ "demo:create-group:local": "tsx src/index.ts --local",
43
+ "demo:permission-check": "tsx demo/permission_check.ts",
44
+ "demo:claude-hi": "tsx demo/claude_say_hi.ts",
45
+ "demo:codex-hi": "tsx demo/codex_say_hi.ts",
46
+ "demo:codex-app-server-approval": "tsx demo/codex-app-server-approval/approval_demo.ts",
47
+ "demo:ilink-echo": "tsx demo/ilink_echo_probe.ts",
48
+ "claude-proxy": "tsx src/litellm-proxy.ts",
49
+ "test": "vitest run",
50
+ "test:deepccc": "vitest run --root deepccc-agent",
51
+ "test:watch": "vitest",
52
+ "postinstall": "node scripts/postinstall-sharp-check.mjs"
53
+ },
54
+ "dependencies": {
55
+ "@ai-sdk/anthropic": "^3.0.105",
56
+ "@ai-sdk/openai-compatible": "^2.0.47",
57
+ "@larksuiteoapi/node-sdk": "^1.66.1",
58
+ "@openilink/openilink-sdk-node": "^0.6.0",
59
+ "@vscode/ripgrep": "^1.18.0",
60
+ "ai": "^6.0.184",
61
+ "nodemailer": "^8.0.7",
62
+ "qrcode-terminal": "^0.12.0",
63
+ "sharp": "^0.34.5",
64
+ "ws": "^8.18.0"
65
+ },
66
+ "devDependencies": {
67
+ "@types/node": "^20.0.0",
68
+ "@types/qrcode-terminal": "^0.12.2",
69
+ "@types/ws": "^8.18.1",
70
+ "tsx": "^4.0.0",
71
+ "typescript": "^5.0.0",
72
+ "vitest": "^3.2.4"
73
+ },
74
+ "engines": {
75
+ "node": ">=20"
76
+ }
77
+ }
@@ -1,59 +1,59 @@
1
- // postinstall 检测 sharp 原生模块是否可用(常见于 Linux 缺少 libvips)
2
- import { createRequire } from "node:module";
3
-
4
- const require = createRequire(import.meta.url);
5
- let ok = false;
6
-
7
- try {
8
- require("sharp");
9
- ok = true;
10
- } catch (err) {
11
- const msg = err.message;
12
- const platform = process.platform;
13
-
14
- console.warn("");
15
- console.warn("============================================================");
16
- console.warn(" ChatCCC: sharp 图像处理模块检测失败");
17
- console.warn("============================================================");
18
-
19
- if (platform === "linux") {
20
- if (msg.includes("libvips") || msg.includes("vips") || msg.includes("libglib")) {
21
- console.warn(" 原因:系统缺少 libvips 图像处理库。");
22
- console.warn("");
23
- console.warn(" 请先安装 libvips 然后重建 sharp:");
24
- console.warn("");
25
- console.warn(" Debian / Ubuntu:");
26
- console.warn(" sudo apt install libvips-dev");
27
- console.warn("");
28
- console.warn(" CentOS / RHEL / Fedora:");
29
- console.warn(" sudo yum install vips-devel");
30
- console.warn("");
31
- console.warn(" Alpine:");
32
- console.warn(" sudo apk add vips-dev");
33
- console.warn("");
34
- console.warn(" 安装 libvips 后重建 sharp:");
35
- console.warn(" npm install -g chatccc --force");
36
- } else if (msg.includes("Cannot find module")) {
37
- console.warn(" 原因:sharp 模块未成功安装。");
38
- console.warn("");
39
- console.warn(" 请尝试重建(可能需要先安装 libvips):");
40
- console.warn(" npm install -g chatccc --force");
41
- } else {
42
- console.warn(" 错误详情:", msg);
43
- }
44
- } else {
45
- console.warn(" 错误详情:", msg);
46
- console.warn(" 平台:", platform);
47
- console.warn(" 请尝试:npm install -g chatccc --force");
48
- }
49
-
50
- console.warn("");
51
- console.warn(" 缺少 sharp 不影响消息收发,但群聊头像状态指示");
52
- console.warn(" (运行中/空闲/新建)将不会更新。");
53
- console.warn("============================================================");
54
- console.warn("");
55
- }
56
-
57
- if (!ok && process.env.npm_config_verbose) {
58
- process.exitCode = 0; // 永远不阻塞安装
1
+ // postinstall 检测 sharp 原生模块是否可用(常见于 Linux 缺少 libvips)
2
+ import { createRequire } from "node:module";
3
+
4
+ const require = createRequire(import.meta.url);
5
+ let ok = false;
6
+
7
+ try {
8
+ require("sharp");
9
+ ok = true;
10
+ } catch (err) {
11
+ const msg = err.message;
12
+ const platform = process.platform;
13
+
14
+ console.warn("");
15
+ console.warn("============================================================");
16
+ console.warn(" ChatCCC: sharp 图像处理模块检测失败");
17
+ console.warn("============================================================");
18
+
19
+ if (platform === "linux") {
20
+ if (msg.includes("libvips") || msg.includes("vips") || msg.includes("libglib")) {
21
+ console.warn(" 原因:系统缺少 libvips 图像处理库。");
22
+ console.warn("");
23
+ console.warn(" 请先安装 libvips 然后重建 sharp:");
24
+ console.warn("");
25
+ console.warn(" Debian / Ubuntu:");
26
+ console.warn(" sudo apt install libvips-dev");
27
+ console.warn("");
28
+ console.warn(" CentOS / RHEL / Fedora:");
29
+ console.warn(" sudo yum install vips-devel");
30
+ console.warn("");
31
+ console.warn(" Alpine:");
32
+ console.warn(" sudo apk add vips-dev");
33
+ console.warn("");
34
+ console.warn(" 安装 libvips 后重建 sharp:");
35
+ console.warn(" npm install -g chatccc --force");
36
+ } else if (msg.includes("Cannot find module")) {
37
+ console.warn(" 原因:sharp 模块未成功安装。");
38
+ console.warn("");
39
+ console.warn(" 请尝试重建(可能需要先安装 libvips):");
40
+ console.warn(" npm install -g chatccc --force");
41
+ } else {
42
+ console.warn(" 错误详情:", msg);
43
+ }
44
+ } else {
45
+ console.warn(" 错误详情:", msg);
46
+ console.warn(" 平台:", platform);
47
+ console.warn(" 请尝试:npm install -g chatccc --force");
48
+ }
49
+
50
+ console.warn("");
51
+ console.warn(" 缺少 sharp 不影响消息收发,但群聊头像状态指示");
52
+ console.warn(" (运行中/空闲/新建)将不会更新。");
53
+ console.warn("============================================================");
54
+ console.warn("");
55
+ }
56
+
57
+ if (!ok && process.env.npm_config_verbose) {
58
+ process.exitCode = 0; // 永远不阻塞安装
59
59
  }