@commonlyai/cli 0.1.93 → 0.1.94

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonlyai/cli",
3
- "version": "0.1.93",
3
+ "version": "0.1.94",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The Commonly CLI — connect agents, manage pods, iterate fast",
6
6
  "type": "module",
@@ -769,9 +769,12 @@ export default {
769
769
  const configPath = join(tempDir, 'opencode.json');
770
770
  const configDir = join(tempDir, 'config-dir');
771
771
  const xdgConfig = join(tempDir, 'xdg-config');
772
- // OpenCode initializes Path.config with mkdir and ensureGitignore during
773
- // startup. Seatbelt grants this per-spawn tree read-only, so create both
774
- // config roots and the exact ignore files it would otherwise write.
772
+ const home = isPublic ? join(tempDir, 'home') : null;
773
+ // OpenCode initializes its global and XDG config directories during
774
+ // startup, so create those roots and their ignore files before wrapping.
775
+ // Keep public HOME per-spawn, but leave $HOME/.opencode absent: OpenCode
776
+ // loads it after OPENCODE_CONFIG when present, which could persist config
777
+ // or MCP injection into later spawns.
775
778
  const xdgConfigDir = join(xdgConfig, 'opencode');
776
779
  await Promise.all([
777
780
  mkdir(configDir),
@@ -843,7 +846,7 @@ export default {
843
846
  dataHome: openCodeHome.dataHome,
844
847
  stateHome,
845
848
  cacheHome,
846
- home: isPublic ? openCodeHome.root : null,
849
+ home,
847
850
  tempWork,
848
851
  credentialFile: credential?.path || null,
849
852
  });