@moxt-ai/mobius 0.0.286 → 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/acp/connection/agent-connection.d.ts.map +1 -1
- package/dist/acp/connection/agent-connection.js +22 -1
- package/dist/acp/connection/agent-connection.js.map +1 -1
- package/dist/cli.js +22 -2
- package/dist/cli.js.map +2 -2
- package/dist/runtime.js +22 -2
- package/dist/runtime.js.map +2 -2
- package/package.json +1 -1
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.
|
|
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: {
|
|
@@ -82076,7 +82076,27 @@ var AgentConnection = class {
|
|
|
82076
82076
|
});
|
|
82077
82077
|
});
|
|
82078
82078
|
const stream = ndJsonStream3(createWritableAcpStream(stdin), readableWebStream(stdout));
|
|
82079
|
-
|
|
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);
|
|
82080
82100
|
}
|
|
82081
82101
|
get inProcessAgent() {
|
|
82082
82102
|
return this.#process.kind === "in-process" ? this.#process.endpoint : null;
|