ccjk 9.12.4 → 9.12.8

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.
@@ -266,13 +266,12 @@ function updateDefaultModel(model) {
266
266
  function mergeSettingsFile(templatePath, targetPath) {
267
267
  try {
268
268
  const templateSettings = readJsonConfig(templatePath);
269
- sections.push("## Context Management\n\nWhen the conversation gets long (many tool calls, large file reads, or repeated back-and-forth), proactively suggest running /compact to the user before hitting context limits.");
270
269
  if (!templateSettings) {
271
270
  console.error("Failed to read template settings");
272
271
  return;
273
272
  }
274
273
  if (!exists(targetPath)) {
275
- writeJsonConfig(targetPath, templateSettings);
274
+ copyFile(templatePath, targetPath);
276
275
  return;
277
276
  }
278
277
  const existingSettings = readJsonConfig(targetPath) || {};
@@ -1,4 +1,4 @@
1
- const version = "9.12.4";
1
+ const version = "9.12.5";
2
2
  const homepage = "https://github.com/miounet11/ccjk";
3
3
 
4
4
  export { homepage, version };
@@ -31,5 +31,11 @@
31
31
  "compacting": "🗜️ Auto-compacting conversation ({{current}}/{{max}} messages)...",
32
32
  "success": "✅ Conversation compacted: {{before}} → {{after}} messages",
33
33
  "failed": "❌ Auto-compact failed: {{error}}"
34
+ },
35
+ "contextWarning": {
36
+ "title": "⚠️ Context Warning",
37
+ "body": "Conversation is getting long ({{toolCalls}} tool calls, {{messageCount}} messages)",
38
+ "suggestion": "Recommend running /compact to clean up context and avoid \"prompt is too long\" errors",
39
+ "command": "Run: /compact"
34
40
  }
35
41
  }
@@ -31,5 +31,11 @@
31
31
  "compacting": "🗜️ 自动压缩对话中({{current}}/{{max}} 条消息)...",
32
32
  "success": "✅ 对话已压缩:{{before}} → {{after}} 条消息",
33
33
  "failed": "❌ 自动压缩失败:{{error}}"
34
+ },
35
+ "contextWarning": {
36
+ "title": "⚠️ 上下文警告",
37
+ "body": "对话已经很长了({{toolCalls}} 次工具调用,{{messageCount}} 条消息)",
38
+ "suggestion": "建议运行 /compact 清理上下文,避免触发 \"prompt is too long\" 错误",
39
+ "command": "运行: /compact"
34
40
  }
35
41
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ccjk",
3
3
  "type": "module",
4
- "version": "9.12.4",
4
+ "version": "9.12.8",
5
5
  "packageManager": "pnpm@10.17.1",
6
6
  "description": "CCJK v9.0.0 - Revolutionary AI Development Platform with Enterprise Security, Streaming Cloud Sync, CRDT Conflict Resolution, and Unified V3 Architecture",
7
7
  "author": {