@clawos-dev/clawd 0.2.561 → 0.2.563
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/app-builder-plugin/mcp-server.cjs +7 -2
- package/dist/cli.cjs +13 -7
- package/dist/dispatch/mcp-server.cjs +6 -1
- package/dist/persona-defaults/persona-app-builder/mcp/clawd-app-builder/mcp-server.cjs +7 -2
- package/dist/persona-defaults/persona-dataclaw-builder/mcp/clawd-app-builder/mcp-server.cjs +7 -2
- package/dist/share-ui/assets/{guest-CbQApsnE.js → guest-D6s6EWWc.js} +11 -11
- package/dist/share-ui/guest.html +1 -1
- package/package.json +1 -1
|
@@ -21498,7 +21498,12 @@ var EnvPackageSchema = external_exports.object({
|
|
|
21498
21498
|
version: external_exports.string().optional(),
|
|
21499
21499
|
// 版本下限('20.6' 这种)。与 version 的区别:version 是「就要这个」,min 是「不低于」。
|
|
21500
21500
|
// 两者都缺省即完全不约束。
|
|
21501
|
-
min: external_exports.string().optional()
|
|
21501
|
+
min: external_exports.string().optional(),
|
|
21502
|
+
/**
|
|
21503
|
+
* 没有可执行、只是个包(引擎扩展这类:pi 底座里的 cliproxyapi 扩展)。构建器只断言它装上了(npm ls),不查 PATH 上有没有 `name` 这条命令。
|
|
21504
|
+
* 只有引擎底座清单(cloud-host/engines/<e>/manifest.json)用得到;扫描器不产它。
|
|
21505
|
+
*/
|
|
21506
|
+
library: external_exports.boolean().optional()
|
|
21502
21507
|
});
|
|
21503
21508
|
var EnvSecretSchema = external_exports.object({
|
|
21504
21509
|
// 凭据的命名引用('aliyun-ak' / 'supabase-shared')。部署时按这个名字去解析实际的值。
|
|
@@ -24954,7 +24959,7 @@ var L = [
|
|
|
24954
24959
|
" # \u767B\u8BB0\u6B63\u5F0F\u53EA\u662F\u5F80 gateway \u5199\u4E00\u884C\uFF0Cgateway \u4E0D\u78B0\u955C\u50CF\uFF1B\u96C6\u7FA4\u62C9\u955C\u50CF\u53D1\u751F\u5728\u7B2C\u4E00\u4E2A\u4EFB\u52A1\u5230\u6765\u65F6\u3002",
|
|
24955
24960
|
" # \u6CA1\u6709\u8FD9\u4E00\u6B65\uFF0C\u6D41\u6C34\u7EBF\u7EFF\u4E86\u53EA\u4EE3\u8868\u300C\u767B\u8BB0\u4E86\u300D\u3002",
|
|
24956
24961
|
// 模型 / 档位 / 连接器 smoke 也要:试跑那次要跟正式那次拿到同一份,否则验的不是将要上线的东西。
|
|
24957
|
-
// 名字形状 deploy-file.mjs 已卡死(persona_id [a-z0-9-]、model / effort [A-Za-z0-9._
|
|
24962
|
+
// 名字形状 deploy-file.mjs 已卡死(persona_id [a-z0-9-]、model / effort [A-Za-z0-9._/-](`/` 是 pi 的 provider/id,不是元字符)、size 四档枚举、task_concurrency 正整数、connectors 无单引号
|
|
24958
24963
|
// 无换行),所以单引号包住直接拼进命令行是安全的。
|
|
24959
24964
|
" env:",
|
|
24960
24965
|
" CLAWD_GATEWAY_URL: ${{ vars.CLAWD_GATEWAY_URL }}",
|
package/dist/cli.cjs
CHANGED
|
@@ -6019,7 +6019,12 @@ var init_environment_schemas = __esm({
|
|
|
6019
6019
|
version: external_exports.string().optional(),
|
|
6020
6020
|
// 版本下限('20.6' 这种)。与 version 的区别:version 是「就要这个」,min 是「不低于」。
|
|
6021
6021
|
// 两者都缺省即完全不约束。
|
|
6022
|
-
min: external_exports.string().optional()
|
|
6022
|
+
min: external_exports.string().optional(),
|
|
6023
|
+
/**
|
|
6024
|
+
* 没有可执行、只是个包(引擎扩展这类:pi 底座里的 cliproxyapi 扩展)。构建器只断言它装上了(npm ls),不查 PATH 上有没有 `name` 这条命令。
|
|
6025
|
+
* 只有引擎底座清单(cloud-host/engines/<e>/manifest.json)用得到;扫描器不产它。
|
|
6026
|
+
*/
|
|
6027
|
+
library: external_exports.boolean().optional()
|
|
6023
6028
|
});
|
|
6024
6029
|
EnvSecretSchema = external_exports.object({
|
|
6025
6030
|
// 凭据的命名引用('aliyun-ak' / 'supabase-shared')。部署时按这个名字去解析实际的值。
|
|
@@ -6106,12 +6111,12 @@ function isScanFresh(scan, repo2, released) {
|
|
|
6106
6111
|
return scan.head === contentHeadOf(repo2, released) && !repo2.dirty;
|
|
6107
6112
|
}
|
|
6108
6113
|
function cloudEngineOk(tool) {
|
|
6109
|
-
return (tool || "claude")
|
|
6114
|
+
return CLOUD_ENGINES.includes(tool || "claude");
|
|
6110
6115
|
}
|
|
6111
6116
|
function repoSlug(url) {
|
|
6112
6117
|
return url.trim().replace(/^git@[^:]+:/, "").replace(/^https?:\/\/[^/]+\//, "").replace(/\.git$/, "");
|
|
6113
6118
|
}
|
|
6114
|
-
var DeployFileSchema, SCAN_BASE_KINDS, ScanBaseKindSchema, DeployScanStatusSchema, DeployScanSchema, DeployReleasedSchema, DeployScanFileSchema, DeployRepoSchema, DeploySecretPresenceSchema, DEPLOY_STAGE_STATUSES, DeployStageStatusSchema, DEPLOY_STAGE_KEYS, DeployStageKeySchema, DeployJobSchema, DeployRunSchema, DeployStateSchema, DeployReleaseResultSchema, DeployPersonaArgsSchema, DeployScanArgsSchema, DeployReleaseArgsSchema, DeployPatchArgsSchema, DeployPutSecretArgsSchema, DeployRerunJobArgsSchema, DeployReportFindingArgsSchema, DeployFinishScanArgsSchema, PERSONA_REPO_ORG;
|
|
6119
|
+
var DeployFileSchema, SCAN_BASE_KINDS, ScanBaseKindSchema, DeployScanStatusSchema, DeployScanSchema, DeployReleasedSchema, DeployScanFileSchema, DeployRepoSchema, DeploySecretPresenceSchema, DEPLOY_STAGE_STATUSES, DeployStageStatusSchema, DEPLOY_STAGE_KEYS, DeployStageKeySchema, DeployJobSchema, DeployRunSchema, CLOUD_ENGINES, DeployStateSchema, DeployReleaseResultSchema, DeployPersonaArgsSchema, DeployScanArgsSchema, DeployReleaseArgsSchema, DeployPatchArgsSchema, DeployPutSecretArgsSchema, DeployRerunJobArgsSchema, DeployReportFindingArgsSchema, DeployFinishScanArgsSchema, PERSONA_REPO_ORG;
|
|
6115
6120
|
var init_deploy_schemas = __esm({
|
|
6116
6121
|
"../protocol/src/deploy-schemas.ts"() {
|
|
6117
6122
|
"use strict";
|
|
@@ -6218,6 +6223,7 @@ var init_deploy_schemas = __esm({
|
|
|
6218
6223
|
/** run 刚入队时可能一条都还没有 */
|
|
6219
6224
|
jobs: external_exports.array(DeployJobSchema)
|
|
6220
6225
|
}).strict();
|
|
6226
|
+
CLOUD_ENGINES = ["codex", "pi"];
|
|
6221
6227
|
DeployStateSchema = external_exports.object({
|
|
6222
6228
|
personaId: external_exports.string().min(1),
|
|
6223
6229
|
/** 本机 GitHub 身份(机器级,githubAuth:* 的同一份;上云页顶上那张卡用)。老 daemon 不给(可选只为兼容),UI 缺席时按未知处理 */
|
|
@@ -59451,7 +59457,7 @@ var L2 = [
|
|
|
59451
59457
|
" # \u767B\u8BB0\u6B63\u5F0F\u53EA\u662F\u5F80 gateway \u5199\u4E00\u884C\uFF0Cgateway \u4E0D\u78B0\u955C\u50CF\uFF1B\u96C6\u7FA4\u62C9\u955C\u50CF\u53D1\u751F\u5728\u7B2C\u4E00\u4E2A\u4EFB\u52A1\u5230\u6765\u65F6\u3002",
|
|
59452
59458
|
" # \u6CA1\u6709\u8FD9\u4E00\u6B65\uFF0C\u6D41\u6C34\u7EBF\u7EFF\u4E86\u53EA\u4EE3\u8868\u300C\u767B\u8BB0\u4E86\u300D\u3002",
|
|
59453
59459
|
// 模型 / 档位 / 连接器 smoke 也要:试跑那次要跟正式那次拿到同一份,否则验的不是将要上线的东西。
|
|
59454
|
-
// 名字形状 deploy-file.mjs 已卡死(persona_id [a-z0-9-]、model / effort [A-Za-z0-9._
|
|
59460
|
+
// 名字形状 deploy-file.mjs 已卡死(persona_id [a-z0-9-]、model / effort [A-Za-z0-9._/-](`/` 是 pi 的 provider/id,不是元字符)、size 四档枚举、task_concurrency 正整数、connectors 无单引号
|
|
59455
59461
|
// 无换行),所以单引号包住直接拼进命令行是安全的。
|
|
59456
59462
|
" env:",
|
|
59457
59463
|
" CLAWD_GATEWAY_URL: ${{ vars.CLAWD_GATEWAY_URL }}",
|
|
@@ -59819,7 +59825,7 @@ function ensureOwner(ctx) {
|
|
|
59819
59825
|
}
|
|
59820
59826
|
var invalid = (msg) => new ClawdError(ERROR_CODES.VALIDATION_ERROR, `VALIDATION_ERROR: ${msg}`);
|
|
59821
59827
|
function wrongEngine(tool) {
|
|
59822
|
-
return cloudEngineOk(tool) ? void 0 : `\u5F15\u64CE\u662F ${tool || "claude"}\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`;
|
|
59828
|
+
return cloudEngineOk(tool) ? void 0 : `\u5F15\u64CE\u662F ${tool || "claude"}\uFF0C\u4E91\u4E0A\u53EA\u8DD1 Codex \u6216 pi\u2014\u2014\u53BB persona \u8BBE\u7F6E\u91CC\u628A\u5F15\u64CE\u5207\u6210 Codex \u6216 pi\uFF0C\u518D\u9009\u4E2A\u6A21\u578B`;
|
|
59823
59829
|
}
|
|
59824
59830
|
var NO_GITHUB_AUTH = "\u8FD8\u6CA1\u5173\u8054 GitHub\uFF1A\u5728\u8BBE\u7F6E \u2192 \u8D26\u53F7\uFF08\u6216\u4E0A\u4E91\u9875\u9876\u4E0A\u90A3\u5F20\u5361\uFF09\u91CC\u70B9\u300C\u5173\u8054 GitHub\u300D";
|
|
59825
59831
|
function toClawdError(err) {
|
|
@@ -71150,7 +71156,7 @@ function computeMethodAccess(args) {
|
|
|
71150
71156
|
}
|
|
71151
71157
|
|
|
71152
71158
|
// src/version.ts
|
|
71153
|
-
var version = "0.2.
|
|
71159
|
+
var version = "0.2.563".length > 0 ? "0.2.563" : "dev";
|
|
71154
71160
|
|
|
71155
71161
|
// src/cli-probe/probe.ts
|
|
71156
71162
|
var fs78 = __toESM(require("fs"), 1);
|
|
@@ -74802,7 +74808,7 @@ async function startDaemon(config) {
|
|
|
74802
74808
|
const deployHandlers = buildDeployHandlers({
|
|
74803
74809
|
hasPersona: (personaId2) => personaStore.has(personaId2),
|
|
74804
74810
|
personaDir: (personaId2) => personaStore.personaDirPath(personaId2),
|
|
74805
|
-
// 发布前落闸要看它现在配的引擎和模型(云上只跑 codex,且模型跟着这次发布走)
|
|
74811
|
+
// 发布前落闸要看它现在配的引擎和模型(云上只跑 codex / pi,且模型跟着这次发布走)
|
|
74806
74812
|
personaEngine: (personaId2) => {
|
|
74807
74813
|
const p3 = personaRegistry.get(personaId2);
|
|
74808
74814
|
return p3 ? { ...p3.tool ? { tool: p3.tool } : {}, ...p3.model ? { model: p3.model } : {} } : void 0;
|
|
@@ -21312,7 +21312,12 @@ var EnvPackageSchema = external_exports.object({
|
|
|
21312
21312
|
version: external_exports.string().optional(),
|
|
21313
21313
|
// 版本下限('20.6' 这种)。与 version 的区别:version 是「就要这个」,min 是「不低于」。
|
|
21314
21314
|
// 两者都缺省即完全不约束。
|
|
21315
|
-
min: external_exports.string().optional()
|
|
21315
|
+
min: external_exports.string().optional(),
|
|
21316
|
+
/**
|
|
21317
|
+
* 没有可执行、只是个包(引擎扩展这类:pi 底座里的 cliproxyapi 扩展)。构建器只断言它装上了(npm ls),不查 PATH 上有没有 `name` 这条命令。
|
|
21318
|
+
* 只有引擎底座清单(cloud-host/engines/<e>/manifest.json)用得到;扫描器不产它。
|
|
21319
|
+
*/
|
|
21320
|
+
library: external_exports.boolean().optional()
|
|
21316
21321
|
});
|
|
21317
21322
|
var EnvSecretSchema = external_exports.object({
|
|
21318
21323
|
// 凭据的命名引用('aliyun-ak' / 'supabase-shared')。部署时按这个名字去解析实际的值。
|
|
@@ -21498,7 +21498,12 @@ var EnvPackageSchema = external_exports.object({
|
|
|
21498
21498
|
version: external_exports.string().optional(),
|
|
21499
21499
|
// 版本下限('20.6' 这种)。与 version 的区别:version 是「就要这个」,min 是「不低于」。
|
|
21500
21500
|
// 两者都缺省即完全不约束。
|
|
21501
|
-
min: external_exports.string().optional()
|
|
21501
|
+
min: external_exports.string().optional(),
|
|
21502
|
+
/**
|
|
21503
|
+
* 没有可执行、只是个包(引擎扩展这类:pi 底座里的 cliproxyapi 扩展)。构建器只断言它装上了(npm ls),不查 PATH 上有没有 `name` 这条命令。
|
|
21504
|
+
* 只有引擎底座清单(cloud-host/engines/<e>/manifest.json)用得到;扫描器不产它。
|
|
21505
|
+
*/
|
|
21506
|
+
library: external_exports.boolean().optional()
|
|
21502
21507
|
});
|
|
21503
21508
|
var EnvSecretSchema = external_exports.object({
|
|
21504
21509
|
// 凭据的命名引用('aliyun-ak' / 'supabase-shared')。部署时按这个名字去解析实际的值。
|
|
@@ -24954,7 +24959,7 @@ var L = [
|
|
|
24954
24959
|
" # \u767B\u8BB0\u6B63\u5F0F\u53EA\u662F\u5F80 gateway \u5199\u4E00\u884C\uFF0Cgateway \u4E0D\u78B0\u955C\u50CF\uFF1B\u96C6\u7FA4\u62C9\u955C\u50CF\u53D1\u751F\u5728\u7B2C\u4E00\u4E2A\u4EFB\u52A1\u5230\u6765\u65F6\u3002",
|
|
24955
24960
|
" # \u6CA1\u6709\u8FD9\u4E00\u6B65\uFF0C\u6D41\u6C34\u7EBF\u7EFF\u4E86\u53EA\u4EE3\u8868\u300C\u767B\u8BB0\u4E86\u300D\u3002",
|
|
24956
24961
|
// 模型 / 档位 / 连接器 smoke 也要:试跑那次要跟正式那次拿到同一份,否则验的不是将要上线的东西。
|
|
24957
|
-
// 名字形状 deploy-file.mjs 已卡死(persona_id [a-z0-9-]、model / effort [A-Za-z0-9._
|
|
24962
|
+
// 名字形状 deploy-file.mjs 已卡死(persona_id [a-z0-9-]、model / effort [A-Za-z0-9._/-](`/` 是 pi 的 provider/id,不是元字符)、size 四档枚举、task_concurrency 正整数、connectors 无单引号
|
|
24958
24963
|
// 无换行),所以单引号包住直接拼进命令行是安全的。
|
|
24959
24964
|
" env:",
|
|
24960
24965
|
" CLAWD_GATEWAY_URL: ${{ vars.CLAWD_GATEWAY_URL }}",
|
|
@@ -21498,7 +21498,12 @@ var EnvPackageSchema = external_exports.object({
|
|
|
21498
21498
|
version: external_exports.string().optional(),
|
|
21499
21499
|
// 版本下限('20.6' 这种)。与 version 的区别:version 是「就要这个」,min 是「不低于」。
|
|
21500
21500
|
// 两者都缺省即完全不约束。
|
|
21501
|
-
min: external_exports.string().optional()
|
|
21501
|
+
min: external_exports.string().optional(),
|
|
21502
|
+
/**
|
|
21503
|
+
* 没有可执行、只是个包(引擎扩展这类:pi 底座里的 cliproxyapi 扩展)。构建器只断言它装上了(npm ls),不查 PATH 上有没有 `name` 这条命令。
|
|
21504
|
+
* 只有引擎底座清单(cloud-host/engines/<e>/manifest.json)用得到;扫描器不产它。
|
|
21505
|
+
*/
|
|
21506
|
+
library: external_exports.boolean().optional()
|
|
21502
21507
|
});
|
|
21503
21508
|
var EnvSecretSchema = external_exports.object({
|
|
21504
21509
|
// 凭据的命名引用('aliyun-ak' / 'supabase-shared')。部署时按这个名字去解析实际的值。
|
|
@@ -24954,7 +24959,7 @@ var L = [
|
|
|
24954
24959
|
" # \u767B\u8BB0\u6B63\u5F0F\u53EA\u662F\u5F80 gateway \u5199\u4E00\u884C\uFF0Cgateway \u4E0D\u78B0\u955C\u50CF\uFF1B\u96C6\u7FA4\u62C9\u955C\u50CF\u53D1\u751F\u5728\u7B2C\u4E00\u4E2A\u4EFB\u52A1\u5230\u6765\u65F6\u3002",
|
|
24955
24960
|
" # \u6CA1\u6709\u8FD9\u4E00\u6B65\uFF0C\u6D41\u6C34\u7EBF\u7EFF\u4E86\u53EA\u4EE3\u8868\u300C\u767B\u8BB0\u4E86\u300D\u3002",
|
|
24956
24961
|
// 模型 / 档位 / 连接器 smoke 也要:试跑那次要跟正式那次拿到同一份,否则验的不是将要上线的东西。
|
|
24957
|
-
// 名字形状 deploy-file.mjs 已卡死(persona_id [a-z0-9-]、model / effort [A-Za-z0-9._
|
|
24962
|
+
// 名字形状 deploy-file.mjs 已卡死(persona_id [a-z0-9-]、model / effort [A-Za-z0-9._/-](`/` 是 pi 的 provider/id,不是元字符)、size 四档枚举、task_concurrency 正整数、connectors 无单引号
|
|
24958
24963
|
// 无换行),所以单引号包住直接拼进命令行是安全的。
|
|
24959
24964
|
" env:",
|
|
24960
24965
|
" CLAWD_GATEWAY_URL: ${{ vars.CLAWD_GATEWAY_URL }}",
|