@rama_nigg/open-cursor 2.4.0 → 2.4.1
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 +9 -1
- package/dist/plugin-entry.js +9 -1
- package/package.json +1 -1
- package/src/tools/defaults.ts +15 -1
package/dist/index.js
CHANGED
|
@@ -13583,7 +13583,7 @@ function registerDefaultTools(registry) {
|
|
|
13583
13583
|
const cwd = resolveWorkingDirectory(args);
|
|
13584
13584
|
return new Promise((resolve2, reject) => {
|
|
13585
13585
|
const proc = spawn3(command, {
|
|
13586
|
-
shell:
|
|
13586
|
+
shell: resolveShellOption(),
|
|
13587
13587
|
cwd
|
|
13588
13588
|
});
|
|
13589
13589
|
const stdoutChunks = [];
|
|
@@ -14098,6 +14098,14 @@ function resolveTimeoutMs(value) {
|
|
|
14098
14098
|
return 30000;
|
|
14099
14099
|
return raw <= 600 ? raw * 1000 : raw;
|
|
14100
14100
|
}
|
|
14101
|
+
function resolveShellOption(deps = {}) {
|
|
14102
|
+
const platform2 = deps.platform ?? process.platform;
|
|
14103
|
+
const env = deps.env ?? process.env;
|
|
14104
|
+
if (platform2 === "win32") {
|
|
14105
|
+
return env.ComSpec || env.COMSPEC || true;
|
|
14106
|
+
}
|
|
14107
|
+
return env.SHELL || "/bin/bash";
|
|
14108
|
+
}
|
|
14101
14109
|
function resolveBoolean(value, defaultValue) {
|
|
14102
14110
|
if (typeof value === "boolean") {
|
|
14103
14111
|
return value;
|
package/dist/plugin-entry.js
CHANGED
|
@@ -13583,7 +13583,7 @@ function registerDefaultTools(registry) {
|
|
|
13583
13583
|
const cwd = resolveWorkingDirectory(args);
|
|
13584
13584
|
return new Promise((resolve2, reject) => {
|
|
13585
13585
|
const proc = spawn3(command, {
|
|
13586
|
-
shell:
|
|
13586
|
+
shell: resolveShellOption(),
|
|
13587
13587
|
cwd
|
|
13588
13588
|
});
|
|
13589
13589
|
const stdoutChunks = [];
|
|
@@ -14098,6 +14098,14 @@ function resolveTimeoutMs(value) {
|
|
|
14098
14098
|
return 30000;
|
|
14099
14099
|
return raw <= 600 ? raw * 1000 : raw;
|
|
14100
14100
|
}
|
|
14101
|
+
function resolveShellOption(deps = {}) {
|
|
14102
|
+
const platform2 = deps.platform ?? process.platform;
|
|
14103
|
+
const env = deps.env ?? process.env;
|
|
14104
|
+
if (platform2 === "win32") {
|
|
14105
|
+
return env.ComSpec || env.COMSPEC || true;
|
|
14106
|
+
}
|
|
14107
|
+
return env.SHELL || "/bin/bash";
|
|
14108
|
+
}
|
|
14101
14109
|
function resolveBoolean(value, defaultValue) {
|
|
14102
14110
|
if (typeof value === "boolean") {
|
|
14103
14111
|
return value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rama_nigg/open-cursor",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "No prompt limits. No broken streams. Full thinking + tool support. Your Cursor subscription, properly integrated.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/plugin-entry.js",
|
package/src/tools/defaults.ts
CHANGED
|
@@ -41,7 +41,7 @@ export function registerDefaultTools(registry: ToolRegistry): void {
|
|
|
41
41
|
|
|
42
42
|
return new Promise<string>((resolve, reject) => {
|
|
43
43
|
const proc = spawn(command, {
|
|
44
|
-
shell:
|
|
44
|
+
shell: resolveShellOption(),
|
|
45
45
|
cwd,
|
|
46
46
|
});
|
|
47
47
|
|
|
@@ -640,6 +640,20 @@ function resolveTimeoutMs(value: unknown): number {
|
|
|
640
640
|
return raw <= 600 ? raw * 1000 : raw;
|
|
641
641
|
}
|
|
642
642
|
|
|
643
|
+
export function resolveShellOption(deps: {
|
|
644
|
+
platform?: NodeJS.Platform;
|
|
645
|
+
env?: Record<string, string | undefined>;
|
|
646
|
+
} = {}): string | boolean {
|
|
647
|
+
const platform = deps.platform ?? process.platform;
|
|
648
|
+
const env = deps.env ?? process.env;
|
|
649
|
+
|
|
650
|
+
if (platform === "win32") {
|
|
651
|
+
return env.ComSpec || env.COMSPEC || true;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
return env.SHELL || "/bin/bash";
|
|
655
|
+
}
|
|
656
|
+
|
|
643
657
|
function resolveBoolean(value: unknown, defaultValue: boolean): boolean {
|
|
644
658
|
if (typeof value === "boolean") {
|
|
645
659
|
return value;
|