@clawos-dev/clawd 0.2.480 → 0.2.482
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.
|
@@ -21295,7 +21295,7 @@ var EnvCliSchema = external_exports.object({
|
|
|
21295
21295
|
* 它同时解决人的阅读问题:单据上只写一个 `s`,看的人不知道那是什么东西。
|
|
21296
21296
|
*
|
|
21297
21297
|
* 允许缺省:扫描器拿不准安装源时不该编一个(编错了构建期才炸,还查不出来源)。缺省时构建
|
|
21298
|
-
*
|
|
21298
|
+
* 器会失败或猜错,流水线当场红——这跟整体「宁可让流水线发现,不要靠猜」的取向一致。
|
|
21299
21299
|
*
|
|
21300
21300
|
* 只给一个源,不给平台回落链:本地那套 brew → GitHub → npm 的三级兜底是
|
|
21301
21301
|
* ensure-toolchain.sh 的事,云上只构一个镜像、一个基础环境,多给反而要求构建器做选择。
|
package/dist/cli.cjs
CHANGED
|
@@ -5971,7 +5971,7 @@ var init_environment_schemas = __esm({
|
|
|
5971
5971
|
* 它同时解决人的阅读问题:单据上只写一个 `s`,看的人不知道那是什么东西。
|
|
5972
5972
|
*
|
|
5973
5973
|
* 允许缺省:扫描器拿不准安装源时不该编一个(编错了构建期才炸,还查不出来源)。缺省时构建
|
|
5974
|
-
*
|
|
5974
|
+
* 器会失败或猜错,流水线当场红——这跟整体「宁可让流水线发现,不要靠猜」的取向一致。
|
|
5975
5975
|
*
|
|
5976
5976
|
* 只给一个源,不给平台回落链:本地那套 brew → GitHub → npm 的三级兜底是
|
|
5977
5977
|
* ensure-toolchain.sh 的事,云上只构一个镜像、一个基础环境,多给反而要求构建器做选择。
|
|
@@ -54788,6 +54788,10 @@ var L = [
|
|
|
54788
54788
|
" image: ${{ steps.plan.outputs.image }}",
|
|
54789
54789
|
" persona_id: ${{ steps.plan.outputs.persona_id }}",
|
|
54790
54790
|
" env_names: ${{ steps.plan.outputs.env_names }}",
|
|
54791
|
+
// 云上跑哪个模型 = 发布这一刻 persona 配的(build 段从仓库里的 .clawd/persona.json 读)。
|
|
54792
|
+
// smoke 与 deploy 都要:smoke 得用正式那份模型探活,否则验的不是将要上线的东西。
|
|
54793
|
+
" model: ${{ steps.plan.outputs.model }}",
|
|
54794
|
+
" effort: ${{ steps.plan.outputs.effort }}",
|
|
54791
54795
|
" steps:",
|
|
54792
54796
|
" - name: Checkout persona",
|
|
54793
54797
|
" uses: actions/checkout@v4",
|
|
@@ -54908,6 +54912,8 @@ var L = [
|
|
|
54908
54912
|
" node clawos/cloud-host/pipeline/smoke.mjs \\",
|
|
54909
54913
|
" --image '${{ needs.build.outputs.image }}' \\",
|
|
54910
54914
|
" --persona-id '${{ needs.build.outputs.persona_id }}' \\",
|
|
54915
|
+
" --model '${{ needs.build.outputs.model }}' \\",
|
|
54916
|
+
" --effort '${{ needs.build.outputs.effort }}' \\",
|
|
54911
54917
|
" --run-number '${{ github.run_number }}'",
|
|
54912
54918
|
"",
|
|
54913
54919
|
" deploy:",
|
|
@@ -54935,7 +54941,9 @@ var L = [
|
|
|
54935
54941
|
" run: |",
|
|
54936
54942
|
" node clawos/cloud-host/pipeline/register.mjs \\",
|
|
54937
54943
|
" --image '${{ needs.build.outputs.image }}' \\",
|
|
54938
|
-
" --persona-id '${{ needs.build.outputs.persona_id }}'",
|
|
54944
|
+
" --persona-id '${{ needs.build.outputs.persona_id }}' \\",
|
|
54945
|
+
" --model '${{ needs.build.outputs.model }}' \\",
|
|
54946
|
+
" --effort '${{ needs.build.outputs.effort }}'",
|
|
54939
54947
|
""
|
|
54940
54948
|
];
|
|
54941
54949
|
var WORKFLOW_TEMPLATE = L.join("\n");
|
|
@@ -55372,6 +55380,13 @@ function buildDeployHandlers(deps) {
|
|
|
55372
55380
|
}
|
|
55373
55381
|
const missing = requiredEnvNames(file).filter((e) => !present.has(e));
|
|
55374
55382
|
if (missing.length > 0) blockers.push(`${missing.join(" / ")} \u8FD8\u6CA1\u586B`);
|
|
55383
|
+
const engine = deps.personaEngine(personaId2);
|
|
55384
|
+
const tool = engine?.tool || "claude";
|
|
55385
|
+
if (tool !== "codex") {
|
|
55386
|
+
blockers.push(`\u5F15\u64CE\u662F ${tool}\uFF0C\u4E91\u4E0A\u53EA\u8DD1 Codex\u2014\u2014\u53BB persona \u8BBE\u7F6E\u91CC\u628A\u5F15\u64CE\u5207\u6210 Codex\uFF0C\u518D\u9009\u4E2A\u6A21\u578B`);
|
|
55387
|
+
} else if (!engine?.model) {
|
|
55388
|
+
blockers.push("\u8FD8\u6CA1\u9009\u6A21\u578B\uFF08\u5207\u5F15\u64CE\u65F6\u4F1A\u6E05\u7A7A\uFF09\u2014\u2014\u53BB persona \u8BBE\u7F6E\u91CC\u9009\u4E00\u4E2A");
|
|
55389
|
+
}
|
|
55375
55390
|
if (blockers.length > 0) throw invalid(`\u8FD8\u5DEE\uFF1A${blockers.join("\uFF1B")}`);
|
|
55376
55391
|
try {
|
|
55377
55392
|
const result = await release(deps.exec, { dir, now: deps.now });
|
|
@@ -64386,7 +64401,7 @@ function computeMethodAccess(args) {
|
|
|
64386
64401
|
}
|
|
64387
64402
|
|
|
64388
64403
|
// src/version.ts
|
|
64389
|
-
var version = "0.2.
|
|
64404
|
+
var version = "0.2.482".length > 0 ? "0.2.482" : "dev";
|
|
64390
64405
|
|
|
64391
64406
|
// src/cli-probe/probe.ts
|
|
64392
64407
|
var fs70 = __toESM(require("fs"), 1);
|
|
@@ -69560,6 +69575,11 @@ async function startDaemon(config) {
|
|
|
69560
69575
|
const deployHandlers = buildDeployHandlers({
|
|
69561
69576
|
hasPersona: (personaId2) => personaStore.has(personaId2),
|
|
69562
69577
|
personaDir: (personaId2) => personaStore.personaDirPath(personaId2),
|
|
69578
|
+
// 发布前落闸要看它现在配的引擎和模型(云上只跑 codex,且模型跟着这次发布走)
|
|
69579
|
+
personaEngine: (personaId2) => {
|
|
69580
|
+
const p2 = personaRegistry.get(personaId2);
|
|
69581
|
+
return p2 ? { ...p2.tool ? { tool: p2.tool } : {}, ...p2.model ? { model: p2.model } : {} } : void 0;
|
|
69582
|
+
},
|
|
69563
69583
|
exec: runCommand,
|
|
69564
69584
|
org: PERSONA_REPO_ORG,
|
|
69565
69585
|
now: () => Date.now(),
|
|
@@ -21288,7 +21288,7 @@ var EnvCliSchema = external_exports.object({
|
|
|
21288
21288
|
* 它同时解决人的阅读问题:单据上只写一个 `s`,看的人不知道那是什么东西。
|
|
21289
21289
|
*
|
|
21290
21290
|
* 允许缺省:扫描器拿不准安装源时不该编一个(编错了构建期才炸,还查不出来源)。缺省时构建
|
|
21291
|
-
*
|
|
21291
|
+
* 器会失败或猜错,流水线当场红——这跟整体「宁可让流水线发现,不要靠猜」的取向一致。
|
|
21292
21292
|
*
|
|
21293
21293
|
* 只给一个源,不给平台回落链:本地那套 brew → GitHub → npm 的三级兜底是
|
|
21294
21294
|
* ensure-toolchain.sh 的事,云上只构一个镜像、一个基础环境,多给反而要求构建器做选择。
|