Skip to content

Commit c44fa8b

Browse files
fix: streams bump versions (#4)
* fix: always pass quiet false. Signed-off-by: Bill Maxwell <[email protected]> * chore: bump gptscript version and package version Signed-off-by: Bill Maxwell <[email protected]> --------- Signed-off-by: Bill Maxwell <[email protected]>
1 parent 4423c35 commit c44fa8b

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gptscript-ai/gptscript",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Run gptscript in node.js",
55
"main": "lib/gptscript.js",
66
"repository": {

scripts/install-binary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if (process.platform === 'win32') {
5555
const gptscript_info = {
5656
name: "gptscript",
5757
url: "https://github.com/gptscript-ai/gptscript/releases/download/",
58-
version: "v0.1.3"
58+
version: "v0.1.4"
5959
}
6060

6161
const pltfm = {

src/exec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function exec(command, args, stdin, cwd = './', detached, env) {
4747
}
4848

4949
async function streamExec(command, args, stdin, cwd = './', detached, env) {
50-
const spawnOptions = { maxBuffer: TEN_MEBIBYTE, cwd, detached, env, stdio: ['pipe', 'pipe', 'pipe'] };
50+
const spawnOptions = { maxBuffer: TEN_MEBIBYTE, cwd, detached, env };
5151

5252
const child = childProcess.spawn(command, args, spawnOptions);
5353

src/gptscript.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const optToArg = {
1111
}
1212

1313
function toArgs(opts) {
14-
let args = [];
14+
let args = ["--quiet=false"];
1515
for (const [key, value] of Object.entries(opts)) {
1616
if (optToArg[key]) {
1717
args.push(optToArg[key] + value);
@@ -93,7 +93,6 @@ async function execFile(scriptPath, input = "", opts = {}) {
9393
}
9494

9595
async function streamExec(prompt, opts = {}) {
96-
opts['quiet'] = false;
9796
const args = toArgs(opts);
9897
try {
9998
return await streamRun(args, prompt);
@@ -103,7 +102,6 @@ async function streamExec(prompt, opts = {}) {
103102
}
104103

105104
async function streamExecFile(scriptPath, input = "", opts = {}) {
106-
opts['quiet'] = false;
107105
const args = toArgs(opts);
108106
try {
109107
const { stdout, stderr, promise } = await streamRun(args, undefined, scriptPath, input);

0 commit comments

Comments
 (0)