cardbuddy 0.14.1 → 0.14.2

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/dist/mcp.js CHANGED
@@ -48,6 +48,10 @@ export async function startMcpServer(config) {
48
48
  process.exit(1)
49
49
  }
50
50
  if (!process.env.CARD_ROOT) process.env.CARD_ROOT = config.root
51
+ // 与 standalone.js 同一座桥:包内快照的技能脚本靠它认宿主工程根(别按自身位置往上推,
52
+ // 那会推到 node_modules 里的快照目录)。必须在 import server.mjs(进而 client.mjs 与
53
+ // skills/* 模块)之前落定 —— 那些模块在 import 期就把路径常量算好了。
54
+ if (!process.env.DSL_CARD_PROJECT_ROOT) process.env.DSL_CARD_PROJECT_ROOT = config.root
51
55
  if (!process.env.CARD_API_BASE) {
52
56
  process.env.CARD_API_BASE = `${config.https ? 'https' : 'http'}://127.0.0.1:${config.port}`
53
57
  }