@clawos-dev/clawd 0.2.62 → 0.2.63
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 +5 -4
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -22211,14 +22211,15 @@ var SessionManager = class {
|
|
|
22211
22211
|
}
|
|
22212
22212
|
// ---- 命令方法:均返回 { response, broadcast[] },由 dispatcher 聚合 ----
|
|
22213
22213
|
create(args) {
|
|
22214
|
-
let cwd
|
|
22215
|
-
if (args.ownerPersonaId
|
|
22214
|
+
let cwd;
|
|
22215
|
+
if (args.ownerPersonaId) {
|
|
22216
22216
|
if (!this.deps.personaRoot) {
|
|
22217
22217
|
throw new Error("personaRoot required to derive cwd from ownerPersonaId");
|
|
22218
22218
|
}
|
|
22219
22219
|
cwd = import_node_path6.default.join(this.deps.personaRoot, safeFileName(args.ownerPersonaId));
|
|
22220
|
-
}
|
|
22221
|
-
|
|
22220
|
+
} else if (args.cwd) {
|
|
22221
|
+
cwd = args.cwd;
|
|
22222
|
+
} else {
|
|
22222
22223
|
throw new ClawdError(ERROR_CODES.INVALID_CWD, "cwd required when ownerPersonaId is absent");
|
|
22223
22224
|
}
|
|
22224
22225
|
try {
|