@clawos-dev/clawd 0.2.65-beta.108.410b956 → 0.2.66-beta.111.aeb004d

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 +0 -27
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -22289,24 +22289,6 @@ var SessionManager = class {
22289
22289
  const adapter = this.deps.getAdapter(file.tool ?? "claude");
22290
22290
  const store = this.storeFor(scope);
22291
22291
  const subSessionMeta = metaFromScope(scope, this.deps.personaRoot ?? "");
22292
- const correctedCwd = derivePersonaSpawnCwd(file, this.deps.personaRoot);
22293
- if (correctedCwd !== file.cwd) {
22294
- this.deps.logger?.warn("owner session cwd drifted from persona dir; auto-correcting", {
22295
- sessionId: file.sessionId,
22296
- ownerPersonaId: file.ownerPersonaId,
22297
- stale: file.cwd,
22298
- corrected: correctedCwd
22299
- });
22300
- file = { ...file, cwd: correctedCwd, updatedAt: nowIso2(this.deps) };
22301
- try {
22302
- store.write(file);
22303
- } catch (err) {
22304
- this.deps.logger?.warn("failed to persist auto-corrected owner cwd", {
22305
- sessionId: file.sessionId,
22306
- error: err.message
22307
- });
22308
- }
22309
- }
22310
22292
  const attachmentGroup = this.deps.attachmentGroup;
22311
22293
  const runner = new SessionRunner(makeInitialState(file, subSessionMeta), {
22312
22294
  broadcastFrame: (frame, target) => this.routeFromRunner(frame, target),
@@ -22416,11 +22398,6 @@ var SessionManager = class {
22416
22398
  }
22417
22399
  // ---- 命令方法:均返回 { response, broadcast[] },由 dispatcher 聚合 ----
22418
22400
  create(args) {
22419
- this.deps.logger?.warn("[spawn-cwd-debug] manager.create entry", {
22420
- argsOwnerPersonaId: args.ownerPersonaId,
22421
- argsCwd: args.cwd,
22422
- personaRoot: this.deps.personaRoot
22423
- });
22424
22401
  let cwd;
22425
22402
  if (args.ownerPersonaId) {
22426
22403
  cwd = derivePersonaSpawnCwd(
@@ -22434,12 +22411,8 @@ var SessionManager = class {
22434
22411
  },
22435
22412
  this.deps.personaRoot
22436
22413
  );
22437
- this.deps.logger?.warn("[spawn-cwd-debug] derived persona cwd", { derivedCwd: cwd });
22438
22414
  } else if (args.cwd) {
22439
22415
  cwd = args.cwd;
22440
- this.deps.logger?.warn("[spawn-cwd-debug] using args.cwd (no ownerPersonaId)", {
22441
- cwd
22442
- });
22443
22416
  } else {
22444
22417
  throw new ClawdError(ERROR_CODES.INVALID_CWD, "cwd required when ownerPersonaId is absent");
22445
22418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.65-beta.108.410b956",
3
+ "version": "0.2.66-beta.111.aeb004d",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",