@clawos-dev/clawd 0.2.45-beta.66.2111d29 → 0.2.45-beta.67.b41395e

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 -28
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -17645,10 +17645,6 @@ var PersonaStore = class {
17645
17645
  sandboxSettingsPath(personaId) {
17646
17646
  return path6.join(this.personaDir(personaId), ".clawd", "sandbox-settings.json");
17647
17647
  }
17648
- /** 旧布局(< owner-personality-fix)的 sandbox 落点;只用于迁移 + 测试断言 */
17649
- legacySettingsPath(personaId) {
17650
- return path6.join(this.personaDir(personaId), ".claude", "settings.json");
17651
- }
17652
17648
  write(persona, personality) {
17653
17649
  const dir = this.personaDir(persona.personaId);
17654
17650
  fs6.mkdirSync(path6.join(dir, ".clawd"), { recursive: true });
@@ -17658,29 +17654,6 @@ var PersonaStore = class {
17658
17654
  JSON.stringify(DEFAULT_SETTINGS, null, 2)
17659
17655
  );
17660
17656
  this.atomicWrite(this.metaPath(persona.personaId), JSON.stringify(persona, null, 2));
17661
- this.removeLegacyLayout(persona.personaId);
17662
- }
17663
- /**
17664
- * 把旧布局(`<persona>/.claude/settings.json` 持有 sandbox)迁到新布局
17665
- * (`<persona>/.clawd/sandbox-settings.json`)。在 PersonaRegistry boot reload
17666
- * 时对每个已存在 persona 调一次;幂等,新布局已就位则直接 noop / 清残留。
17667
- * 返回 true 表示真做了迁移(写日志 / 测试断言用)。
17668
- */
17669
- migrateLegacyLayout(personaId) {
17670
- const legacy = this.legacySettingsPath(personaId);
17671
- const target = this.sandboxSettingsPath(personaId);
17672
- if (!fs6.existsSync(legacy)) return false;
17673
- if (fs6.existsSync(target)) {
17674
- fs6.unlinkSync(legacy);
17675
- return true;
17676
- }
17677
- fs6.mkdirSync(path6.dirname(target), { recursive: true });
17678
- fs6.renameSync(legacy, target);
17679
- return true;
17680
- }
17681
- removeLegacyLayout(personaId) {
17682
- const legacy = this.legacySettingsPath(personaId);
17683
- if (fs6.existsSync(legacy)) fs6.unlinkSync(legacy);
17684
17657
  }
17685
17658
  writePersonality(personaId, personality) {
17686
17659
  this.atomicWrite(this.claudeMdPath(personaId), personality);
@@ -17734,7 +17707,6 @@ var PersonaRegistry = class {
17734
17707
  reload() {
17735
17708
  this.cache.clear();
17736
17709
  for (const id of this.store.list()) {
17737
- this.store.migrateLegacyLayout(id);
17738
17710
  const p = this.store.read(id);
17739
17711
  if (p) this.cache.set(p.personaId, p);
17740
17712
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.45-beta.66.2111d29",
3
+ "version": "0.2.45-beta.67.b41395e",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",