@clawos-dev/clawd 0.2.486 → 0.2.487
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 +12 -4
- package/dist/share-md-viewer-error.html +1 -1
- package/dist/share-md-viewer.html +1 -1
- package/dist/share-ui/assets/guest-BRztSJs6.css +32 -0
- package/dist/share-ui/guest.html +2 -2
- package/package.json +1 -1
- package/dist/share-ui/assets/guest-CElGLZmt.css +0 -32
- /package/dist/share-ui/assets/{guest-B_CKfSWO.js → guest-FS2vK05a.js} +0 -0
package/dist/cli.cjs
CHANGED
|
@@ -6027,6 +6027,9 @@ function isScanFresh(scan, repo2) {
|
|
|
6027
6027
|
if (scan.status !== "done") return false;
|
|
6028
6028
|
return scan.head === repo2.head && !repo2.dirty;
|
|
6029
6029
|
}
|
|
6030
|
+
function cloudEngineOk(tool) {
|
|
6031
|
+
return (tool || "claude") === "codex";
|
|
6032
|
+
}
|
|
6030
6033
|
function repoSlug(url) {
|
|
6031
6034
|
return url.trim().replace(/^git@[^:]+:/, "").replace(/^https?:\/\/[^/]+\//, "").replace(/\.git$/, "");
|
|
6032
6035
|
}
|
|
@@ -55464,6 +55467,9 @@ function ensureOwner(ctx) {
|
|
|
55464
55467
|
}
|
|
55465
55468
|
}
|
|
55466
55469
|
var invalid = (msg) => new ClawdError(ERROR_CODES.VALIDATION_ERROR, `VALIDATION_ERROR: ${msg}`);
|
|
55470
|
+
function wrongEngine(tool) {
|
|
55471
|
+
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`;
|
|
55472
|
+
}
|
|
55467
55473
|
function toClawdError(err) {
|
|
55468
55474
|
if (err instanceof ClawdError) return err;
|
|
55469
55475
|
if (err instanceof RepoError) return new ClawdError(ERROR_CODES.INTERNAL, err.message);
|
|
@@ -55541,6 +55547,8 @@ function buildDeployHandlers(deps) {
|
|
|
55541
55547
|
ensureOwner(ctx);
|
|
55542
55548
|
const { personaId: personaId2 } = parseArgs2(DeployPersonaArgsSchema, frame, "deploy:start");
|
|
55543
55549
|
const dir = mustPersona(personaId2);
|
|
55550
|
+
const wrong = wrongEngine(deps.personaEngine(personaId2)?.tool);
|
|
55551
|
+
if (wrong) throw invalid(wrong);
|
|
55544
55552
|
const current = await readScan(dir);
|
|
55545
55553
|
if (current?.status === "scanning") return view(personaId2);
|
|
55546
55554
|
if (!await repoInfo(deps.exec, dir)) {
|
|
@@ -55681,9 +55689,9 @@ function buildDeployHandlers(deps) {
|
|
|
55681
55689
|
const missing = requiredEnvNames(file).filter((e) => !present.has(e));
|
|
55682
55690
|
if (missing.length > 0) blockers.push(`${missing.join(" / ")} \u8FD8\u6CA1\u586B`);
|
|
55683
55691
|
const engine = deps.personaEngine(personaId2);
|
|
55684
|
-
const
|
|
55685
|
-
if (
|
|
55686
|
-
blockers.push(
|
|
55692
|
+
const wrongTool = wrongEngine(engine?.tool);
|
|
55693
|
+
if (wrongTool) {
|
|
55694
|
+
blockers.push(wrongTool);
|
|
55687
55695
|
} else if (!engine?.model) {
|
|
55688
55696
|
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");
|
|
55689
55697
|
}
|
|
@@ -64726,7 +64734,7 @@ function computeMethodAccess(args) {
|
|
|
64726
64734
|
}
|
|
64727
64735
|
|
|
64728
64736
|
// src/version.ts
|
|
64729
|
-
var version = "0.2.
|
|
64737
|
+
var version = "0.2.487".length > 0 ? "0.2.487" : "dev";
|
|
64730
64738
|
|
|
64731
64739
|
// src/cli-probe/probe.ts
|
|
64732
64740
|
var fs71 = __toESM(require("fs"), 1);
|