@moxt-ai/mobius 0.0.285 → 0.0.287

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/runtime.js CHANGED
@@ -22568,7 +22568,7 @@ import { fetch as fetch3 } from "undici";
22568
22568
  // package.json
22569
22569
  var package_default = {
22570
22570
  name: "@moxt-ai/mobius",
22571
- version: "0.0.285",
22571
+ version: "0.0.287",
22572
22572
  description: "Mobius CLI for pairing and running local AI agent services.",
22573
22573
  type: "module",
22574
22574
  bin: {
@@ -22620,10 +22620,12 @@ var package_default = {
22620
22620
  typecheck: "tsc --project tsconfig.json && tsc --project tests/tsconfig.json",
22621
22621
  "pretest:controlled": "tsc --project src/acp/harness/claude/upstream/tsconfig.json && tsc --project src/acp/harness/pi/upstream/tsconfig.json",
22622
22622
  "test:controlled": "vitest run tests/sessions tests/runtime --maxWorkers=4",
22623
+ "pretest:manual": "pnpm pretest:controlled",
22624
+ "test:manual": "vitest run tests/manual",
22623
22625
  "pretest:agents": "tsc --project src/acp/harness/claude/upstream/tsconfig.json && tsc --project src/acp/harness/pi/upstream/tsconfig.json",
22624
22626
  "test:agents": "vitest run tests/agents --maxWorkers=2",
22625
22627
  "pretest:npm-compatibility": "tsc --project src/acp/harness/claude/upstream/tsconfig.json && tsc --project src/acp/harness/pi/upstream/tsconfig.json",
22626
- "test:npm-compatibility": "vitest run tests/runtime/daemon-upgrade.integration.test.ts tests/runtime/daemon-upgrade-command.integration.test.ts",
22628
+ "test:npm-compatibility": "vitest run tests/runtime/daemon-upgrade.integration.test.ts",
22627
22629
  "pretest:pressure": "tsc --project src/acp/harness/claude/upstream/tsconfig.json && tsc --project src/acp/harness/pi/upstream/tsconfig.json",
22628
22630
  "test:pressure": "node tests/pressure/concurrent-sessions.mjs"
22629
22631
  },
@@ -82074,7 +82076,27 @@ var AgentConnection = class {
82074
82076
  });
82075
82077
  });
82076
82078
  const stream = ndJsonStream3(createWritableAcpStream(stdin), readableWebStream(stdout));
82077
- this.connection = createAcpClient(client2).connect(stream);
82079
+ let pendingUpdates = 0;
82080
+ this.connection = createAcpClient({
82081
+ onElicitation: client2.onElicitation,
82082
+ onElicitationComplete: client2.onElicitationComplete,
82083
+ onPermission: client2.onPermission,
82084
+ // ACP notifications acknowledge transport writes, not their consumption.
82085
+ // Stop reading the child while updates from the current chunk drain;
82086
+ // the OS pipe then backpressures history replay instead of filling our queue.
82087
+ onUpdate: async (notification) => {
82088
+ pendingUpdates += 1;
82089
+ stdout.pause();
82090
+ try {
82091
+ await client2.onUpdate(notification);
82092
+ } finally {
82093
+ pendingUpdates -= 1;
82094
+ if (pendingUpdates === 0) {
82095
+ stdout.resume();
82096
+ }
82097
+ }
82098
+ }
82099
+ }).connect(stream);
82078
82100
  }
82079
82101
  get inProcessAgent() {
82080
82102
  return this.#process.kind === "in-process" ? this.#process.endpoint : null;