@rivet-dev/agentos-runtime-core 0.2.13 → 0.2.14

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/commands/bash CHANGED
Binary file
package/commands/rg CHANGED
Binary file
package/commands/sh CHANGED
Binary file
package/commands/ssh CHANGED
Binary file
package/commands/unzip CHANGED
Binary file
package/commands/zip CHANGED
Binary file
@@ -50,6 +50,7 @@ export declare class StdioFrameTransport<TReadFrame, TWriteFrame = TReadFrame> i
50
50
  private readonly stdout;
51
51
  private readonly encodeFrame;
52
52
  private readonly decodeFrame;
53
+ private readonly sharedStdio;
53
54
  private readonly frameListeners;
54
55
  private readonly errorListeners;
55
56
  private readonly endListeners;
@@ -117,6 +117,7 @@ export class StdioFrameTransport {
117
117
  stdout;
118
118
  encodeFrame;
119
119
  decodeFrame;
120
+ sharedStdio;
120
121
  frameListeners = new Set();
121
122
  errorListeners = new Set();
122
123
  endListeners = new Set();
@@ -126,6 +127,10 @@ export class StdioFrameTransport {
126
127
  this.stdout = options.stdout;
127
128
  this.encodeFrame = options.encodeFrame;
128
129
  this.decodeFrame = options.decodeFrame;
130
+ this.sharedStdio = this.stdin === this.stdout;
131
+ if (!this.sharedStdio) {
132
+ this.stdin.on("error", this.handleError);
133
+ }
129
134
  this.stdout.on("data", this.handleData);
130
135
  this.stdout.on("end", this.handleEnd);
131
136
  this.stdout.on("error", this.handleError);
@@ -162,6 +167,9 @@ export class StdioFrameTransport {
162
167
  });
163
168
  }
164
169
  dispose() {
170
+ if (!this.sharedStdio) {
171
+ this.stdin.off("error", this.handleError);
172
+ }
165
173
  this.stdout.off("data", this.handleData);
166
174
  this.stdout.off("end", this.handleEnd);
167
175
  this.stdout.off("error", this.handleError);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivet-dev/agentos-runtime-core",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -197,7 +197,7 @@
197
197
  "test:npm-workflows": "AGENTOS_NPM_WORKFLOWS_E2E=1 vitest run tests/integration/e2e-npm-*.nightly.test.ts tests/integration/e2e-npx-and-pipes.nightly.test.ts tests/integration/e2e-concurrently.nightly.test.ts tests/integration/e2e-nextjs-build.nightly.test.ts --reporter=verbose"
198
198
  },
199
199
  "dependencies": {
200
- "@rivet-dev/agentos-runtime-sidecar": "0.2.13",
200
+ "@rivet-dev/agentos-runtime-sidecar": "0.2.14",
201
201
  "@rivetkit/bare-ts": "^0.6.2",
202
202
  "zod": "^4.1.11"
203
203
  },