@shumkov/orchestra 0.13.1 → 0.13.2
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.
|
@@ -37,12 +37,18 @@ const DEFAULT_CLOSE_GRACE_MS = 1_000;
|
|
|
37
37
|
const DEFAULT_CLOSE_KILL_MS = 1_000;
|
|
38
38
|
const CODEX_SUPERVISOR_GRACE_MS =
|
|
39
39
|
DEFAULT_CLOSE_GRACE_MS + DEFAULT_CLOSE_KILL_MS;
|
|
40
|
-
|
|
40
|
+
// Codex caps a command's aggregatedOutput at about 1 MiB, and JSON escaping
|
|
41
|
+
// can grow that up to six times in its item/completed line (a control
|
|
42
|
+
// character becomes \u00XX). The line limit must sit above that worst case.
|
|
43
|
+
const DEFAULT_MAX_LINE_BYTES = 8 * 1024 * 1024;
|
|
41
44
|
const DEFAULT_MAX_STDERR_BYTES = 64 * 1024;
|
|
42
45
|
const DEFAULT_MAX_PENDING_REQUESTS = 64;
|
|
43
46
|
const DEFAULT_MAX_USED_REQUEST_IDS = 65_536;
|
|
44
47
|
const DEFAULT_MAX_QUEUED_LINES = 256;
|
|
45
|
-
|
|
48
|
+
// At least twice the line limit: stdout resumes below half this cap, so one
|
|
49
|
+
// maximum-size line on top of a queue just under that mark still stays under
|
|
50
|
+
// the cap, which a chunk then only reaches if the stream ignored pause().
|
|
51
|
+
const DEFAULT_MAX_QUEUED_BYTES = 2 * DEFAULT_MAX_LINE_BYTES;
|
|
46
52
|
const DEFAULT_SINK_TIMEOUT_MS = 5_000;
|
|
47
53
|
const CLIENT_ROOT_ERROR_CODES = Object.freeze([
|
|
48
54
|
'CODEX_PROTOCOL_ERROR',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shumkov/orchestra",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "Transport-agnostic session engine for Claude Code and the native Codex app-server: spawn, steer, supervise, observe turns, and recover.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "index.js",
|