deepccc 0.1.21 → 0.1.22

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 (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -142,7 +142,9 @@ export function loadPlatformCommandPrompt(platform = process.platform, dirs = {}
142
142
  return "";
143
143
  // import.meta.url 定位包根:chatccc 源码运行时指向 deepccc-agent/os-prompts/,
144
144
  // deepccc dist 运行时指向包根 os-prompts/(dist/index.js 的 ../os-prompts/)。
145
- const builtinDir = dirs.builtinDir ?? fileURLToPath(new URL("../os-prompts/", import.meta.url));
145
+ const adjacentBuiltinDir = fileURLToPath(new URL("../os-prompts/", import.meta.url));
146
+ const embeddedBuiltinDir = fileURLToPath(new URL("../../../deepccc-agent/os-prompts/", import.meta.url));
147
+ const builtinDir = dirs.builtinDir ?? (existsSync(adjacentBuiltinDir) ? adjacentBuiltinDir : embeddedBuiltinDir);
146
148
  const userDir = dirs.userDir ?? join(homedir(), ".deepccc", "prompts");
147
149
  // 用户覆盖优先;读取失败时静默回退内置,内置也失败则返回空。
148
150
  const userFile = join(userDir, filename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepccc",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "A lightweight coding agent with OpenAI-compatible and Anthropic Messages API support.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [