@clawos-dev/clawd 0.2.755 → 0.2.757

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
@@ -64289,8 +64289,10 @@ function validatePersonaRelease(raw, expected) {
64289
64289
  if (record4.verification.fingerprint !== fingerprint) throw new Error("\u5236\u54C1\u5DF2\u504F\u79BB\u6D4B\u8BD5\u65F6\u7684\u7248\u672C\uFF0C\u8BF7\u91CD\u65B0\u6D4B\u8BD5");
64290
64290
  return record4;
64291
64291
  }
64292
+ var TestRunNotPassedError = class extends Error {
64293
+ };
64292
64294
  async function readVerifiedRelease(api, slug, run) {
64293
- if (run.environment !== "integration" || run.status !== "completed" || run.conclusion !== "success" || !run.jobs.some((j2) => j2.key === "deploy" && j2.status === "done")) throw new Error("\u6D4B\u8BD5\u90E8\u7F72\u8FD8\u6CA1\u6709\u6210\u529F\uFF0C\u4E0D\u80FD\u8BFB\u53D6\u5DF2\u6D4B\u5236\u54C1");
64295
+ if (run.environment !== "integration" || run.status !== "completed" || run.conclusion !== "success" || !run.jobs.some((j2) => j2.key === "deploy" && j2.status === "done")) throw new TestRunNotPassedError("\u6700\u65B0\u4E00\u6B21\u6D4B\u8BD5\u53D1\u5E03\u6CA1\u6709\u901A\u8FC7\uFF0C\u6CA1\u6709\u53EF\u590D\u7528\u7684\u5DF2\u6D4B\u5236\u54C1\uFF1A\u8BF7\u91CD\u65B0\u53D1\u5E03\u6D4B\u8BD5\u73AF\u5883\uFF08\u4F1A\u6309\u5F53\u524D\u914D\u7F6E\u91CD\u65B0\u6784\u5EFA\uFF09");
64294
64296
  let artifact;
64295
64297
  for (let page = 1; page <= 30; page++) {
64296
64298
  const list = await api.getJsonStrict(`/repos/${slug}/actions/runs/${run.runId}/artifacts?per_page=100&page=${page}`);
@@ -65854,7 +65856,13 @@ function buildDeployHandlers(deps) {
65854
65856
  const { api } = await requireGithub();
65855
65857
  const run = record4.runId ? await runById(api, repoSlug(repo2.url), record4.runId, "integration") : await findReleaseRun(api, repoSlug(repo2.url), { environment: "integration", head: record4.head, ...configIdOf(record4) });
65856
65858
  if (!run || run.headSha !== record4.head) throw invalid("\u6682\u65F6\u67E5\u4E0D\u5230\u672C\u6B21\u6D4B\u8BD5\u6D41\u6C34\u7EBF\uFF0C\u8BF7\u5237\u65B0");
65857
- const { artifactId, release: verified } = await readVerifiedRelease(api, repoSlug(repo2.url), run);
65859
+ let tested;
65860
+ try {
65861
+ tested = await readVerifiedRelease(api, repoSlug(repo2.url), run);
65862
+ } catch (e) {
65863
+ throw e instanceof TestRunNotPassedError ? invalid(e.message) : e;
65864
+ }
65865
+ const { artifactId, release: verified } = tested;
65858
65866
  if (requireDialogue) {
65859
65867
  try {
65860
65868
  requireDialogueVerification(verified, run);
@@ -76506,7 +76514,7 @@ function computeMethodAccess(args) {
76506
76514
  }
76507
76515
 
76508
76516
  // src/version.ts
76509
- var version = "0.2.755".length > 0 ? "0.2.755" : "dev";
76517
+ var version = "0.2.757".length > 0 ? "0.2.757" : "dev";
76510
76518
 
76511
76519
  // src/cli-probe/probe.ts
76512
76520
  var fs87 = __toESM(require("fs"), 1);