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.
- package/.agents/skills/create-chatccc-feishu-app/SKILL.md +85 -85
- package/.claude/skills/create-chatccc-feishu-app/SKILL.md +85 -85
- package/.cursor/skills/create-chatccc-feishu-app/SKILL.md +85 -85
- package/README.md +8 -3
- package/agent-prompts/claude_specific.md +45 -45
- package/agent-prompts/codex_specific.md +2 -2
- package/agent-prompts/cursor_specific.md +13 -13
- package/bin/cccagent.mjs +26 -26
- package/bin/chatccc.mjs +15 -15
- package/config.sample.json +7 -6
- package/deepccc-agent/README.md +21 -4
- package/deepccc-agent/os-prompts/darwin.md +8 -8
- package/deepccc-agent/os-prompts/linux.md +8 -8
- package/deepccc-agent/os-prompts/win32.md +11 -11
- package/deepccc-agent/package.json +68 -68
- package/dist/deepccc-agent/src/attachments.js +7 -5
- package/dist/deepccc-agent/src/cli.js +52 -7
- package/dist/deepccc-agent/src/completion-session.js +100 -0
- package/dist/deepccc-agent/src/config.js +4 -0
- package/dist/deepccc-agent/src/context.js +4 -1
- package/dist/deepccc-agent/src/decision-session.js +314 -0
- package/dist/deepccc-agent/src/file-tools.js +5 -0
- package/dist/deepccc-agent/src/index.js +41 -4
- package/dist/deepccc-agent/src/json-mode-fetch.js +12 -0
- package/dist/deepccc-agent/src/json-response.js +33 -0
- package/dist/deepccc-agent/src/multimodal.js +291 -0
- package/dist/deepccc-agent/src/progress/reducer.js +2 -0
- package/dist/deepccc-agent/src/web-page.js +411 -411
- package/dist/deepccc-agent/src/web-runtime.js +3 -0
- package/dist/deepccc-agent/src/web-server.js +2 -0
- package/dist/src/adapters/ccc-adapter.js +4 -0
- package/dist/src/agent-team/web/agent-team-page.js +250 -250
- package/dist/src/config.js +2 -0
- package/dist/src/engines/engine-specs.js +71 -71
- package/dist/src/feishu-api.js +11 -11
- package/dist/src/format-message.js +38 -19
- package/dist/src/litellm-proxy.js +15 -15
- package/dist/src/progress/reducer.js +2 -0
- package/dist/src/session.js +1 -0
- package/dist/src/web-ui.js +80 -66
- package/im-skills/feishu-skill/receive-send-file.md +65 -65
- package/im-skills/feishu-skill/receive-send-image.md +26 -26
- package/im-skills/feishu-skill/send-file.mjs +6 -6
- package/im-skills/feishu-skill/send-image.mjs +6 -6
- package/im-skills/feishu-skill/skill.md +28 -28
- package/im-skills/wechat-file-skill/receive-send-file.md +38 -38
- package/im-skills/wechat-file-skill/send-file.mjs +83 -83
- package/im-skills/wechat-file-skill/skill.md +10 -10
- package/im-skills/wechat-image-skill/skill.md +10 -10
- package/im-skills/wechat-video-skill/receive-send-video.md +38 -38
- package/im-skills/wechat-video-skill/send-video.mjs +79 -79
- package/im-skills/wechat-video-skill/skill.md +10 -10
- package/package.json +77 -77
- package/scripts/postinstall-sharp-check.mjs +58 -58
- package/scripts/self-update-helper.mjs +301 -301
|
@@ -37,6 +37,7 @@ export class DeepCccWebRuntime {
|
|
|
37
37
|
baseURL: input.config.baseURL,
|
|
38
38
|
model: input.meta.model || input.config.model,
|
|
39
39
|
subModel: input.meta.subModel || input.config.subModel,
|
|
40
|
+
visionModel: input.config.visionModel,
|
|
40
41
|
effort: input.meta.effort || input.config.effort,
|
|
41
42
|
maxOutputTokens: input.config.maxOutputTokens,
|
|
42
43
|
streaming: input.config.streaming,
|
|
@@ -44,6 +45,8 @@ export class DeepCccWebRuntime {
|
|
|
44
45
|
cwd: input.meta.cwd,
|
|
45
46
|
persist: true,
|
|
46
47
|
sessionId: input.meta.sessionId,
|
|
48
|
+
contextDir: this.store.rootDir,
|
|
49
|
+
attachmentStore: this.attachmentStore,
|
|
47
50
|
contextWindow: input.config.contextWindow,
|
|
48
51
|
permissionMode: "ask",
|
|
49
52
|
permissionResolver: input.permissionResolver,
|
|
@@ -23,6 +23,7 @@ function runtimeConfig() {
|
|
|
23
23
|
baseURL: config.baseURL,
|
|
24
24
|
model: config.model,
|
|
25
25
|
subModel: config.subModel,
|
|
26
|
+
visionModel: config.visionModel,
|
|
26
27
|
effort: config.effort,
|
|
27
28
|
maxOutputTokens: config.maxOutputTokens,
|
|
28
29
|
contextWindow: config.contextWindow,
|
|
@@ -35,6 +36,7 @@ export function toPublicConfig(config, defaultCwd = process.cwd()) {
|
|
|
35
36
|
baseURL: config.baseURL,
|
|
36
37
|
model: config.model,
|
|
37
38
|
subModel: config.subModel,
|
|
39
|
+
visionModel: config.visionModel,
|
|
38
40
|
effort: config.effort,
|
|
39
41
|
...(config.maxOutputTokens ? { maxOutputTokens: config.maxOutputTokens } : {}),
|
|
40
42
|
streaming: config.streaming,
|
|
@@ -34,6 +34,7 @@ export function createCccAdapter(options = {}) {
|
|
|
34
34
|
...(options.baseURL !== undefined ? { baseURL: options.baseURL } : {}),
|
|
35
35
|
...(options.model !== undefined ? { model: options.model } : {}),
|
|
36
36
|
...(options.subModel !== undefined ? { subModel: options.subModel } : {}),
|
|
37
|
+
...(options.visionModel !== undefined ? { visionModel: options.visionModel } : {}),
|
|
37
38
|
...(options.effort?.trim() ? { effort: options.effort.trim() } : {}),
|
|
38
39
|
...(options.maxOutputTokens !== undefined
|
|
39
40
|
? { maxOutputTokens: options.maxOutputTokens }
|
|
@@ -69,6 +70,9 @@ export function createCccAdapter(options = {}) {
|
|
|
69
70
|
}],
|
|
70
71
|
};
|
|
71
72
|
}
|
|
73
|
+
else if (event.type === "image_input") {
|
|
74
|
+
yield { type: "assistant", blocks: [{ type: "text", text: `\n[图片理解:${event.model},${event.count} 张,${event.mode === "native" ? "原生视觉" : "图片模型分析"}]\n` }] };
|
|
75
|
+
}
|
|
72
76
|
else if (event.type === "progress") {
|
|
73
77
|
yield {
|
|
74
78
|
type: "assistant",
|