@adhdev/daemon-core 0.9.41 → 0.9.42
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/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -1
- package/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/dist/index.d.mts +2 -1
- package/node_modules/@adhdev/session-host-core/dist/index.d.ts +2 -1
- package/node_modules/@adhdev/session-host-core/dist/index.js +4 -1
- package/node_modules/@adhdev/session-host-core/dist/index.js.map +1 -1
- package/node_modules/@adhdev/session-host-core/dist/index.mjs +3 -1
- package/node_modules/@adhdev/session-host-core/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/cli-adapters/provider-cli-adapter.ts +12 -0
- package/src/cli-adapters/provider-cli-parse.ts +4 -0
- package/src/cli-adapters/provider-cli-runtime.ts +7 -1
|
@@ -65,6 +65,12 @@ export function resolveCliSpawnPlan(options: {
|
|
|
65
65
|
shellArgs = allArgs;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
const env = buildCliSpawnEnv(process.env, spawnConfig.env);
|
|
69
|
+
// Some CLI agents, notably Hermes, route their tools through TERMINAL_CWD
|
|
70
|
+
// rather than process.cwd(). Keep the generic ADHDev launch workspace as
|
|
71
|
+
// the single source of truth so PTY cwd and tool cwd cannot diverge.
|
|
72
|
+
env.TERMINAL_CWD = workingDir;
|
|
73
|
+
|
|
68
74
|
return {
|
|
69
75
|
binaryPath,
|
|
70
76
|
allArgs,
|
|
@@ -76,7 +82,7 @@ export function resolveCliSpawnPlan(options: {
|
|
|
76
82
|
cols: DEFAULT_SESSION_HOST_COLS,
|
|
77
83
|
rows: DEFAULT_SESSION_HOST_ROWS,
|
|
78
84
|
cwd: workingDir,
|
|
79
|
-
env
|
|
85
|
+
env,
|
|
80
86
|
},
|
|
81
87
|
};
|
|
82
88
|
}
|