@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
|
@@ -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
|
-
|
|
773
|
-
//
|
|
774
|
-
//
|
|
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
|
|
849
|
+
home,
|
|
847
850
|
tempWork,
|
|
848
851
|
credentialFile: credential?.path || null,
|
|
849
852
|
});
|