cookbook-bridge 0.1.1 → 0.1.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.
- package/bridge.mjs +7 -1
- package/package.json +1 -1
package/bridge.mjs
CHANGED
|
@@ -1158,6 +1158,12 @@ async function quickScan(cfg) {
|
|
|
1158
1158
|
// also what keeps the live log readable to the human watching it.
|
|
1159
1159
|
let handsBusy = false;
|
|
1160
1160
|
const hands = { supported: true, activeGrants: [] };
|
|
1161
|
+
// Module-scoped ON PURPOSE. It used to be `let stopped` inside main(), and the
|
|
1162
|
+
// hands path above referenced it from here — a ReferenceError on EVERY hands poll,
|
|
1163
|
+
// so a host Bridge with hosting on accepted grants and executed nothing. Found in
|
|
1164
|
+
// the first real rehearsal (2026-08-25); every hermetic test simulated the host
|
|
1165
|
+
// loop with library code and never ran this file.
|
|
1166
|
+
let stopped = false;
|
|
1161
1167
|
|
|
1162
1168
|
/** Run lifecycle → Bridge Local subscribers (the desktop tray + notifications). */
|
|
1163
1169
|
function emitHands(state, call, result) {
|
|
@@ -1613,7 +1619,7 @@ async function main() {
|
|
|
1613
1619
|
}
|
|
1614
1620
|
}
|
|
1615
1621
|
|
|
1616
|
-
|
|
1622
|
+
stopped = false; // module-scoped; see the hands section
|
|
1617
1623
|
process.on("SIGINT", () => {
|
|
1618
1624
|
stopped = true;
|
|
1619
1625
|
log("Stopping…");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cookbook-bridge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Run your own Claude, Codex and Gemini subscriptions against your Cookbook workspaces. One approval connects every agent CLI on your machine, with a receipt for every run.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|