@clawos-dev/clawd 0.2.124-beta.248.02a0096 → 0.2.124-beta.250.e1ddf93
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/cli.cjs
CHANGED
|
@@ -34926,7 +34926,7 @@ function copyBundleExtras(srcDir, dstDir) {
|
|
|
34926
34926
|
}
|
|
34927
34927
|
}
|
|
34928
34928
|
}
|
|
34929
|
-
var
|
|
34929
|
+
var DAEMON_MANAGED_PATHS = ["extension-kit", "CLAUDE.md", ".mcp.json"];
|
|
34930
34930
|
function refreshDaemonManagedDirs(args) {
|
|
34931
34931
|
const entries = args.entries ?? DEFAULT_PERSONAS;
|
|
34932
34932
|
for (const entry of entries) {
|
|
@@ -34934,20 +34934,20 @@ function refreshDaemonManagedDirs(args) {
|
|
|
34934
34934
|
if (!fs9.existsSync(bundleDir)) continue;
|
|
34935
34935
|
const personaDir = args.store.personaDirPath(entry.personaId);
|
|
34936
34936
|
if (!fs9.existsSync(personaDir)) continue;
|
|
34937
|
-
for (const
|
|
34938
|
-
const srcPath = path11.join(bundleDir,
|
|
34937
|
+
for (const relPath of DAEMON_MANAGED_PATHS) {
|
|
34938
|
+
const srcPath = path11.join(bundleDir, relPath);
|
|
34939
34939
|
if (!fs9.existsSync(srcPath)) continue;
|
|
34940
|
-
const dstPath = path11.join(personaDir,
|
|
34940
|
+
const dstPath = path11.join(personaDir, relPath);
|
|
34941
34941
|
try {
|
|
34942
34942
|
fs9.cpSync(srcPath, dstPath, { recursive: true, force: true, dereference: true });
|
|
34943
34943
|
args.logger.info("persona.refresh.synced", {
|
|
34944
34944
|
personaId: entry.personaId,
|
|
34945
|
-
|
|
34945
|
+
path: relPath
|
|
34946
34946
|
});
|
|
34947
34947
|
} catch (err) {
|
|
34948
34948
|
args.logger.warn("persona.refresh.failed", {
|
|
34949
34949
|
personaId: entry.personaId,
|
|
34950
|
-
|
|
34950
|
+
path: relPath,
|
|
34951
34951
|
error: err instanceof Error ? err.message : String(err)
|
|
34952
34952
|
});
|
|
34953
34953
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "preinstall ship 进 daemon defaults,daemon 启动时 refreshDaemonManagedDirs 把这文件同步到 ~/.clawd*/personas/persona-app-builder/.mcp.json。cc CLI 启动时(cwd=projects/<name>/)会向上找 persona dir 的 .mcp.json 自动加载。用 @aliyun-rds/supabase-mcp-server(阿里云 RDS 包装,跟 clawos / lovagent / extension-kit 一致),底下连阿里云自建 supabase 实例 120.26.157.138。AK 是共享 demo 凭证(跟 .secrets/aliyun.env 同性质,PR #808 设计前提),跟 lovagent .mcp.json 用同一把(RDS 权限)。",
|
|
3
|
+
"mcpServers": {
|
|
4
|
+
"supabase": {
|
|
5
|
+
"type": "stdio",
|
|
6
|
+
"command": "npx",
|
|
7
|
+
"args": [
|
|
8
|
+
"@aliyun-rds/supabase-mcp-server",
|
|
9
|
+
"--aliyun-ak", "LTAI5tSebp9pyBLk2nxF5wDg",
|
|
10
|
+
"--aliyun-sk", "DnkOBhZ9pLympYlwcLuQbsaGRIitwG",
|
|
11
|
+
"--aliyun-region", "cn-hangzhou"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED