ira-review 3.1.4 → 3.1.5
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/cli.js +5 -2
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1032,7 +1032,8 @@ var CopilotCliProvider = class {
|
|
|
1032
1032
|
const env2 = { ...process.env };
|
|
1033
1033
|
const args = [
|
|
1034
1034
|
"-p",
|
|
1035
|
-
|
|
1035
|
+
"",
|
|
1036
|
+
// empty -p triggers stdin read on copilot CLI 1.x
|
|
1036
1037
|
"-s",
|
|
1037
1038
|
// silent — only the response, no stats lines
|
|
1038
1039
|
"--allow-all-tools",
|
|
@@ -1043,10 +1044,12 @@ var CopilotCliProvider = class {
|
|
|
1043
1044
|
];
|
|
1044
1045
|
const useShell = process.platform === "win32";
|
|
1045
1046
|
const child = spawn("copilot", args, {
|
|
1046
|
-
stdio: ["
|
|
1047
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
1047
1048
|
env: env2,
|
|
1048
1049
|
shell: useShell
|
|
1049
1050
|
});
|
|
1051
|
+
child.stdin.write(prompt);
|
|
1052
|
+
child.stdin.end();
|
|
1050
1053
|
let stdout = "";
|
|
1051
1054
|
let stderr = "";
|
|
1052
1055
|
child.stdout.on("data", (chunk) => {
|
package/dist/index.cjs
CHANGED
|
@@ -1279,7 +1279,8 @@ var CopilotCliProvider = class {
|
|
|
1279
1279
|
const env2 = { ...process.env };
|
|
1280
1280
|
const args = [
|
|
1281
1281
|
"-p",
|
|
1282
|
-
|
|
1282
|
+
"",
|
|
1283
|
+
// empty -p triggers stdin read on copilot CLI 1.x
|
|
1283
1284
|
"-s",
|
|
1284
1285
|
// silent — only the response, no stats lines
|
|
1285
1286
|
"--allow-all-tools",
|
|
@@ -1290,10 +1291,12 @@ var CopilotCliProvider = class {
|
|
|
1290
1291
|
];
|
|
1291
1292
|
const useShell = process.platform === "win32";
|
|
1292
1293
|
const child = (0, import_node_child_process.spawn)("copilot", args, {
|
|
1293
|
-
stdio: ["
|
|
1294
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
1294
1295
|
env: env2,
|
|
1295
1296
|
shell: useShell
|
|
1296
1297
|
});
|
|
1298
|
+
child.stdin.write(prompt);
|
|
1299
|
+
child.stdin.end();
|
|
1297
1300
|
let stdout = "";
|
|
1298
1301
|
let stderr = "";
|
|
1299
1302
|
child.stdout.on("data", (chunk) => {
|