micro-models-agent 0.55.1 → 0.56.1
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/CHANGELOG.md +444 -0
- package/dist/main.js +2180 -1159
- package/dist/modules/browser/bridge-server.mjs +19 -2
- package/package.json +3 -2
|
@@ -198,5 +198,22 @@ rl.on("line", async (line) => {
|
|
|
198
198
|
process.stdout.write(JSON.stringify(resp) + "\n");
|
|
199
199
|
});
|
|
200
200
|
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
let shuttingDown = false;
|
|
202
|
+
async function shutdown() {
|
|
203
|
+
// Idempotent: signals, stdin close and the explicit close command may race.
|
|
204
|
+
if (shuttingDown) return;
|
|
205
|
+
shuttingDown = true;
|
|
206
|
+
try {
|
|
207
|
+
await handleClose();
|
|
208
|
+
} catch (err) {
|
|
209
|
+
// Best-effort cleanup: never block process exit on a broken browser.
|
|
210
|
+
console.error("[bridge-server] cleanup during shutdown failed:", err);
|
|
211
|
+
}
|
|
212
|
+
process.exit(0);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
process.on("SIGTERM", () => void shutdown());
|
|
216
|
+
process.on("SIGINT", () => void shutdown());
|
|
217
|
+
// Parent died without sending "close" (crash, kill -9): stdin EOF is the
|
|
218
|
+
// last signal we get — without this the bridge and its Chromium leak.
|
|
219
|
+
rl.on("close", () => void shutdown());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "micro-models-agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.1",
|
|
4
4
|
"description": "Micro Models Agent (MMA) — LLM agent harness for small models (Qwen3.5-9B, 32K-64K context)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist/",
|
|
11
|
-
"bin/"
|
|
11
|
+
"bin/",
|
|
12
|
+
"CHANGELOG.md"
|
|
12
13
|
],
|
|
13
14
|
"engines": {
|
|
14
15
|
"node": ">=20"
|