@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.
Files changed (2) hide show
  1. package/dist/cli.cjs +5 -4
  2. 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 = args.cwd;
22215
- if (args.ownerPersonaId && !cwd) {
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
- if (!cwd) {
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.62",
3
+ "version": "0.2.63",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",