@clawos-dev/clawd 0.2.588 → 0.2.590

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.
@@ -21745,6 +21745,7 @@ var DeployStateSchema = external_exports.object({
21745
21745
  var DeployUnpublishResultSchema = external_exports.object({
21746
21746
  before: external_exports.number().nullable()
21747
21747
  }).strict();
21748
+ var DeployPatchResultSchema = DeployStateSchema.pick({ scans: true });
21748
21749
  var DeployReleaseResultSchema = external_exports.object({
21749
21750
  sha: external_exports.string().min(1),
21750
21751
  actionsUrl: external_exports.string().min(1)
@@ -24273,7 +24274,7 @@ var METHOD_DOCS = {
24273
24274
  args: DeployScanArgsSchema
24274
24275
  },
24275
24276
  "deploy:patch": {
24276
- summary: "\u7F16\u8F91\u5386\u53F2\u91CC\u67D0\u6B21\u626B\u63CF\u7684\u6E05\u5355\uFF08scanId \u6307\u540D\uFF09\u3002patch.connector = \u53EA\u6362\u540C\u540D\u90A3\u4E00\u6761\u8FDE\u63A5\u5668\uFF08\u4E0A\u4E91\u9875\u70B9\u9009\u8D70\u8FD9\u6761\uFF0C\u4E0D\u5728\u5C31\u62D2\uFF09\uFF1Bpatch.manifest = \u6574\u4EFD\u66FF\u6362\uFF08\u624B\u5DE5\u8865 / \u5220\u4F9D\u8D56\uFF0C\u626B\u63CF\u671F butler \u5220\u6761\u76EE\u4E5F\u8D70\u8FD9\u6761\uFF09\uFF0C\u4F46 daemon \u5199\u7684\u5B57\u6BB5\uFF08\u5305\u7684 version / localVersion / artifact / aptVersion / aptMissing\u3001\u8FDE\u63A5\u5668\u70B9\u8FC7\u7684 credentialSource / auth\uFF09\u5FEB\u7167\u91CC\u7F3A\u4E86\u4F1A\u4ECE\u8BB0\u5F55\u8865\u56DE\uFF0C\u6E05\u4E0D\u6389\u3002**\u4E0D\u80FD\u4ECE\u8FD9\u91CC\u4F20\u51ED\u636E\u7684\u503C**\uFF08\u503C\u8D70 deploy:putSecret\uFF09\uFF1Bowner-only",
24277
+ summary: "\u7F16\u8F91\u5386\u53F2\u91CC\u67D0\u6B21\u626B\u63CF\u7684\u6E05\u5355\uFF08scanId \u6307\u540D\uFF09\u3002patch.connector = \u53EA\u6362\u540C\u540D\u90A3\u4E00\u6761\u8FDE\u63A5\u5668\uFF08\u4E0A\u4E91\u9875\u70B9\u9009\u8D70\u8FD9\u6761\uFF0C\u4E0D\u5728\u5C31\u62D2\uFF09\uFF1Bpatch.manifest = \u6574\u4EFD\u66FF\u6362\uFF08\u624B\u5DE5\u8865 / \u5220\u4F9D\u8D56\uFF0C\u626B\u63CF\u671F butler \u5220\u6761\u76EE\u4E5F\u8D70\u8FD9\u6761\uFF09\uFF0C\u4F46 daemon \u5199\u7684\u5B57\u6BB5\uFF08\u5305\u7684 version / localVersion / artifact / aptVersion / aptMissing\u3001\u8FDE\u63A5\u5668\u70B9\u8FC7\u7684 credentialSource / auth\uFF09\u5FEB\u7167\u91CC\u7F3A\u4E86\u4F1A\u4ECE\u8BB0\u5F55\u8865\u56DE\uFF0C\u6E05\u4E0D\u6389\u3002**\u4E0D\u80FD\u4ECE\u8FD9\u91CC\u4F20\u51ED\u636E\u7684\u503C**\uFF08\u503C\u8D70 deploy:putSecret\uFF09\u3002\u53EA\u56DE\u6539\u5B8C\u7684\u626B\u63CF\u5386\u53F2 `scans`\uFF0C\u4E0D\u56DE\u6574\u4EFD deploy:get \u72B6\u6001\uFF08\u53EA\u6539\u4E86\u672C\u673A\u7684\u626B\u63CF\u8BB0\u5F55\uFF0C\u4E0D\u91CD\u95EE GitHub / gateway\uFF09\uFF1Bowner-only",
24277
24278
  args: DeployPatchArgsSchema
24278
24279
  },
24279
24280
  "deploy:putSecret": {
package/dist/cli.cjs CHANGED
@@ -6191,7 +6191,7 @@ function cloudEngineOk(tool) {
6191
6191
  function repoSlug(url) {
6192
6192
  return url.trim().replace(/^git@[^:]+:/, "").replace(/^https?:\/\/[^/]+\//, "").replace(/\.git$/, "");
6193
6193
  }
6194
- var DeployFileSchema, SCAN_BASE_KINDS, ScanBaseKindSchema, DeployScanStatusSchema, DeployScanSchema, DeployReleasedSchema, DeployScanFileSchema, DeployRepoSchema, DeploySecretPresenceSchema, ENGINE_AUTH_SECRETS, ENGINE_AUTH_PARTIAL_BLOCKER, DEPLOY_STAGE_STATUSES, DeployStageStatusSchema, DEPLOY_STAGE_KEYS, DeployStageKeySchema, DeployJobSchema, DeployRunSchema, CLOUD_ENGINES, DeployUnpublishRunSchema, DeployStateSchema, DeployUnpublishResultSchema, DeployReleaseResultSchema, DeployPersonaArgsSchema, DeployGetArgsSchema, DeployScanArgsSchema, DeployReleaseArgsSchema, DeployPatchArgsSchema, DeployPutSecretArgsSchema, DeploySetEngineAuthArgsSchema, DeployRerunJobArgsSchema, DeployReportFindingArgsSchema, DeployFinishScanArgsSchema, PERSONA_REPO_ORG;
6194
+ var DeployFileSchema, SCAN_BASE_KINDS, ScanBaseKindSchema, DeployScanStatusSchema, DeployScanSchema, DeployReleasedSchema, DeployScanFileSchema, DeployRepoSchema, DeploySecretPresenceSchema, ENGINE_AUTH_SECRETS, ENGINE_AUTH_PARTIAL_BLOCKER, DEPLOY_STAGE_STATUSES, DeployStageStatusSchema, DEPLOY_STAGE_KEYS, DeployStageKeySchema, DeployJobSchema, DeployRunSchema, CLOUD_ENGINES, DeployUnpublishRunSchema, DeployStateSchema, DeployUnpublishResultSchema, DeployPatchResultSchema, DeployReleaseResultSchema, DeployPersonaArgsSchema, DeployGetArgsSchema, DeployScanArgsSchema, DeployReleaseArgsSchema, DeployPatchArgsSchema, DeployPutSecretArgsSchema, DeploySetEngineAuthArgsSchema, DeployRerunJobArgsSchema, DeployReportFindingArgsSchema, DeployFinishScanArgsSchema, PERSONA_REPO_ORG;
6195
6195
  var init_deploy_schemas = __esm({
6196
6196
  "../protocol/src/deploy-schemas.ts"() {
6197
6197
  "use strict";
@@ -6341,6 +6341,7 @@ var init_deploy_schemas = __esm({
6341
6341
  DeployUnpublishResultSchema = external_exports.object({
6342
6342
  before: external_exports.number().nullable()
6343
6343
  }).strict();
6344
+ DeployPatchResultSchema = DeployStateSchema.pick({ scans: true });
6344
6345
  DeployReleaseResultSchema = external_exports.object({
6345
6346
  sha: external_exports.string().min(1),
6346
6347
  actionsUrl: external_exports.string().min(1)
@@ -9162,7 +9163,7 @@ var init_methods = __esm({
9162
9163
  args: DeployScanArgsSchema
9163
9164
  },
9164
9165
  "deploy:patch": {
9165
- summary: "\u7F16\u8F91\u5386\u53F2\u91CC\u67D0\u6B21\u626B\u63CF\u7684\u6E05\u5355\uFF08scanId \u6307\u540D\uFF09\u3002patch.connector = \u53EA\u6362\u540C\u540D\u90A3\u4E00\u6761\u8FDE\u63A5\u5668\uFF08\u4E0A\u4E91\u9875\u70B9\u9009\u8D70\u8FD9\u6761\uFF0C\u4E0D\u5728\u5C31\u62D2\uFF09\uFF1Bpatch.manifest = \u6574\u4EFD\u66FF\u6362\uFF08\u624B\u5DE5\u8865 / \u5220\u4F9D\u8D56\uFF0C\u626B\u63CF\u671F butler \u5220\u6761\u76EE\u4E5F\u8D70\u8FD9\u6761\uFF09\uFF0C\u4F46 daemon \u5199\u7684\u5B57\u6BB5\uFF08\u5305\u7684 version / localVersion / artifact / aptVersion / aptMissing\u3001\u8FDE\u63A5\u5668\u70B9\u8FC7\u7684 credentialSource / auth\uFF09\u5FEB\u7167\u91CC\u7F3A\u4E86\u4F1A\u4ECE\u8BB0\u5F55\u8865\u56DE\uFF0C\u6E05\u4E0D\u6389\u3002**\u4E0D\u80FD\u4ECE\u8FD9\u91CC\u4F20\u51ED\u636E\u7684\u503C**\uFF08\u503C\u8D70 deploy:putSecret\uFF09\uFF1Bowner-only",
9166
+ summary: "\u7F16\u8F91\u5386\u53F2\u91CC\u67D0\u6B21\u626B\u63CF\u7684\u6E05\u5355\uFF08scanId \u6307\u540D\uFF09\u3002patch.connector = \u53EA\u6362\u540C\u540D\u90A3\u4E00\u6761\u8FDE\u63A5\u5668\uFF08\u4E0A\u4E91\u9875\u70B9\u9009\u8D70\u8FD9\u6761\uFF0C\u4E0D\u5728\u5C31\u62D2\uFF09\uFF1Bpatch.manifest = \u6574\u4EFD\u66FF\u6362\uFF08\u624B\u5DE5\u8865 / \u5220\u4F9D\u8D56\uFF0C\u626B\u63CF\u671F butler \u5220\u6761\u76EE\u4E5F\u8D70\u8FD9\u6761\uFF09\uFF0C\u4F46 daemon \u5199\u7684\u5B57\u6BB5\uFF08\u5305\u7684 version / localVersion / artifact / aptVersion / aptMissing\u3001\u8FDE\u63A5\u5668\u70B9\u8FC7\u7684 credentialSource / auth\uFF09\u5FEB\u7167\u91CC\u7F3A\u4E86\u4F1A\u4ECE\u8BB0\u5F55\u8865\u56DE\uFF0C\u6E05\u4E0D\u6389\u3002**\u4E0D\u80FD\u4ECE\u8FD9\u91CC\u4F20\u51ED\u636E\u7684\u503C**\uFF08\u503C\u8D70 deploy:putSecret\uFF09\u3002\u53EA\u56DE\u6539\u5B8C\u7684\u626B\u63CF\u5386\u53F2 `scans`\uFF0C\u4E0D\u56DE\u6574\u4EFD deploy:get \u72B6\u6001\uFF08\u53EA\u6539\u4E86\u672C\u673A\u7684\u626B\u63CF\u8BB0\u5F55\uFF0C\u4E0D\u91CD\u95EE GitHub / gateway\uFF09\uFF1Bowner-only",
9166
9167
  args: DeployPatchArgsSchema
9167
9168
  },
9168
9169
  "deploy:putSecret": {
@@ -61653,7 +61654,7 @@ function ensureOwner(ctx) {
61653
61654
  }
61654
61655
  var invalid = (msg) => new ClawdError(ERROR_CODES.VALIDATION_ERROR, `VALIDATION_ERROR: ${msg}`);
61655
61656
  function wrongEngine(tool) {
61656
- 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`;
61657
+ return cloudEngineOk(tool) ? void 0 : `\u5F15\u64CE\u662F ${tool || "claude"}\uFF0C\u4E91\u4E0A\u53EA\u8DD1 Codex \u6216 pi\u2014\u2014\u5728\u4E0A\u4E91\u9875\u300C\u5F15\u64CE\u4E0E\u6A21\u578B\u300D\u91CC\u9009 Codex \u6216 pi\uFF0C\u518D\u9009\u4E2A\u6A21\u578B`;
61657
61658
  }
61658
61659
  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";
61659
61660
  function toClawdError(err) {
@@ -61872,8 +61873,9 @@ function buildDeployHandlers(deps) {
61872
61873
  throw invalid(err instanceof Error ? err.message : String(err));
61873
61874
  }
61874
61875
  }
61875
- if (manifest !== entry.manifest) await writeScanFile(dir, replaceScan(file, { ...entry, manifest }));
61876
- return view(args.personaId);
61876
+ const next = manifest === entry.manifest ? file : replaceScan(file, { ...entry, manifest });
61877
+ if (next !== file) await writeScanFile(dir, next);
61878
+ return { response: { type: "deploy:patch", scans: next.scans } };
61877
61879
  };
61878
61880
  const putSecret = async (frame, _client, ctx) => {
61879
61881
  ensureOwner(ctx);
@@ -62083,7 +62085,7 @@ function buildDeployHandlers(deps) {
62083
62085
  for (const c2 of entry.manifest.connectors) blockers.push(...connectorBlockers(c2));
62084
62086
  for (const p3 of entry.manifest.packages) blockers.push(...packageBlockers(p3));
62085
62087
  if (!deps.personaEngine(personaId2)?.model) {
62086
- 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");
62088
+ blockers.push("\u8FD8\u6CA1\u9009\u6A21\u578B\uFF08\u5207\u5F15\u64CE\u65F6\u4F1A\u6E05\u7A7A\uFF09\u2014\u2014\u5728\u4E0A\u4E91\u9875\u300C\u5F15\u64CE\u4E0E\u6A21\u578B\u300D\u91CC\u9009\u4E00\u4E2A");
62087
62089
  }
62088
62090
  if (blockers.length > 0) throw invalid(`\u8FD8\u5DEE\uFF1A${blockers.join("\uFF1B")}`);
62089
62091
  const before = await readDeployFileRaw(dir);
@@ -72367,7 +72369,7 @@ function computeMethodAccess(args) {
72367
72369
  }
72368
72370
 
72369
72371
  // src/version.ts
72370
- var version = "0.2.588".length > 0 ? "0.2.588" : "dev";
72372
+ var version = "0.2.590".length > 0 ? "0.2.590" : "dev";
72371
72373
 
72372
72374
  // src/cli-probe/probe.ts
72373
72375
  var fs80 = __toESM(require("fs"), 1);