@clawos-dev/clawd 0.2.274 → 0.2.276

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.
@@ -75,11 +75,24 @@ PR="$HOME/.clawd/personas/persona-dataclaw-builder"; DK="$HOME/.clawd/deploy-kit
75
75
  ## 换语言(Node → Python/Go…)
76
76
 
77
77
  1. `config.env` 的 `NODE_LAYER` 换成对应语言的 FC 运行时层
78
- 2. 替换 `contract/bootstrap`(如 `exec python app.py`)
78
+ 2. 替换 bootstrap(如 `exec python app.py`)—— 先读下面的「⚠️ bootstrap 归 daemon 管」
79
79
  3. `ext.conf` 的 `BUILD_CMD` 改成对应构建命令
80
80
 
81
81
  `s.yaml.tmpl` 结构不变。
82
82
 
83
+ ### ⚠️ bootstrap 归 daemon 管,改了会被还原
84
+
85
+ `publish.sh` 用的是**共享 deploy-kit** 那份:`$HOME/.clawd/deploy-kit/contract/bootstrap`
86
+ (不是本目录下的)。而 `deploy-kit/contract/` 和本 `extension-kit/` 一样,**每次 daemon 启动
87
+ 都会被 bundle 版本无条件覆盖**——就地改它,下次重启就没了,而且没有 `.secrets/*.local`
88
+ 那样的个人 override 豁免。
89
+
90
+ 在本目录下新建 `contract/bootstrap` 也不行:`extension-kit/` 是 daemon-managed 路径,
91
+ `contract/` 是 bundle 里有的子目录,整个会被替换掉。
92
+
93
+ 所以**换语言目前没有能存住的改法**,需要产品侧先给 bootstrap 一个 override 机制。
94
+ 在那之前,非 Node 运行时请找老板确认怎么走,别就地改了以为生效。
95
+
83
96
  ## 红线(都是踩坑换来的,见记忆 fc-nodejs-deploy-recipe)
84
97
 
85
98
  - **必须绑自定义域名**(fc3-domain auto),否则 `fcapp.run` 默认 URL 强制下载网页、浏览器不渲染