@clawos-dev/clawd 0.2.62-beta.99.bab9356 → 0.2.63-beta.102.0d36b31
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 +8 -5
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -21880,7 +21880,9 @@ var SessionRunner = class {
|
|
|
21880
21880
|
this.input({ kind: "proc-exit", code });
|
|
21881
21881
|
});
|
|
21882
21882
|
proc.on("error", (err) => {
|
|
21883
|
-
|
|
21883
|
+
const message = err.message;
|
|
21884
|
+
this.hooks.logger?.error("claude spawn failed", { message });
|
|
21885
|
+
this.input({ kind: "proc-error", message });
|
|
21884
21886
|
});
|
|
21885
21887
|
}
|
|
21886
21888
|
// kill 当前 proc:单发 signal,没有"先 TERM 后 KILL"的兜底。
|
|
@@ -22209,14 +22211,15 @@ var SessionManager = class {
|
|
|
22209
22211
|
}
|
|
22210
22212
|
// ---- 命令方法:均返回 { response, broadcast[] },由 dispatcher 聚合 ----
|
|
22211
22213
|
create(args) {
|
|
22212
|
-
let cwd
|
|
22213
|
-
if (args.ownerPersonaId
|
|
22214
|
+
let cwd;
|
|
22215
|
+
if (args.ownerPersonaId) {
|
|
22214
22216
|
if (!this.deps.personaRoot) {
|
|
22215
22217
|
throw new Error("personaRoot required to derive cwd from ownerPersonaId");
|
|
22216
22218
|
}
|
|
22217
22219
|
cwd = import_node_path6.default.join(this.deps.personaRoot, safeFileName(args.ownerPersonaId));
|
|
22218
|
-
}
|
|
22219
|
-
|
|
22220
|
+
} else if (args.cwd) {
|
|
22221
|
+
cwd = args.cwd;
|
|
22222
|
+
} else {
|
|
22220
22223
|
throw new ClawdError(ERROR_CODES.INVALID_CWD, "cwd required when ownerPersonaId is absent");
|
|
22221
22224
|
}
|
|
22222
22225
|
try {
|
package/package.json
CHANGED