@trops/dash-core 0.1.318 → 0.1.319
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/electron/index.js +7 -3
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +32 -41
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/electron/index.js
CHANGED
|
@@ -27823,7 +27823,7 @@ const cliController$2 = {
|
|
|
27823
27823
|
* @param {object} params - { model, messages, systemPrompt, maxToolRounds, widgetUuid }
|
|
27824
27824
|
*/
|
|
27825
27825
|
sendMessage: async (win, requestId, params) => {
|
|
27826
|
-
const { model, messages, systemPrompt, widgetUuid } = params;
|
|
27826
|
+
const { model, messages, systemPrompt, widgetUuid, cwd } = params;
|
|
27827
27827
|
|
|
27828
27828
|
const binaryPath = resolveCliBinary();
|
|
27829
27829
|
if (!binaryPath) {
|
|
@@ -27876,10 +27876,14 @@ const cliController$2 = {
|
|
|
27876
27876
|
|
|
27877
27877
|
try {
|
|
27878
27878
|
const fullPath = getShellPath();
|
|
27879
|
-
const
|
|
27879
|
+
const spawnOpts = {
|
|
27880
27880
|
env: { ...process.env, PATH: fullPath },
|
|
27881
27881
|
stdio: ["pipe", "pipe", "pipe"],
|
|
27882
|
-
}
|
|
27882
|
+
};
|
|
27883
|
+
if (cwd) {
|
|
27884
|
+
spawnOpts.cwd = cwd;
|
|
27885
|
+
}
|
|
27886
|
+
const child = spawn(binaryPath, args, spawnOpts);
|
|
27883
27887
|
|
|
27884
27888
|
activeProcesses.set(requestId, child);
|
|
27885
27889
|
|