agent-shim 8.14.0 → 8.14.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/dist/cli.cjs +4 -1
- package/dist/index.cjs +2 -0
- package/dist/index.mjs +2 -0
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -61710,7 +61710,7 @@ function registerIdentityCommand(program2, deps) {
|
|
|
61710
61710
|
// package.json
|
|
61711
61711
|
var package_default = {
|
|
61712
61712
|
name: "agent-shim",
|
|
61713
|
-
version: "8.14.
|
|
61713
|
+
version: "8.14.1",
|
|
61714
61714
|
description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
61715
61715
|
license: "MIT",
|
|
61716
61716
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -65063,6 +65063,7 @@ async function runFrontDoorSupervisor(idleShutdownMinutes, ports, options = {})
|
|
|
65063
65063
|
...lastDirectPort === void 0 ? {} : { lastDirectPort }
|
|
65064
65064
|
});
|
|
65065
65065
|
const fail = (message) => {
|
|
65066
|
+
ports.closeRcStreamHub();
|
|
65066
65067
|
writeFrontDoorState(fs19, paths.frontdoorStateFile, { lastError: message, ...sticky() });
|
|
65067
65068
|
fs19.removeRecursive(paths.frontdoorLockFile);
|
|
65068
65069
|
ports.log(`agent-shim frontdoor supervisor: ${message}`);
|
|
@@ -65123,6 +65124,7 @@ async function runFrontDoorSupervisor(idleShutdownMinutes, ports, options = {})
|
|
|
65123
65124
|
await direct.close();
|
|
65124
65125
|
await connect3.close();
|
|
65125
65126
|
await http6.close();
|
|
65127
|
+
ports.closeRcStreamHub();
|
|
65126
65128
|
writeFrontDoorState(fs19, paths.frontdoorStateFile, sticky());
|
|
65127
65129
|
return 0;
|
|
65128
65130
|
}
|
|
@@ -73324,6 +73326,7 @@ function realFrontDoorSupervisorPorts(paths) {
|
|
|
73324
73326
|
});
|
|
73325
73327
|
return { port: handle.port, close: handle.close };
|
|
73326
73328
|
},
|
|
73329
|
+
closeRcStreamHub: rcHub.close,
|
|
73327
73330
|
log: (line) => {
|
|
73328
73331
|
appendLog(paths, line);
|
|
73329
73332
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -2930,6 +2930,7 @@ async function runFrontDoorSupervisor(idleShutdownMinutes, ports, options = {})
|
|
|
2930
2930
|
...lastDirectPort === void 0 ? {} : { lastDirectPort }
|
|
2931
2931
|
});
|
|
2932
2932
|
const fail = (message) => {
|
|
2933
|
+
ports.closeRcStreamHub();
|
|
2933
2934
|
writeFrontDoorState(fs12, paths.frontdoorStateFile, { lastError: message, ...sticky() });
|
|
2934
2935
|
fs12.removeRecursive(paths.frontdoorLockFile);
|
|
2935
2936
|
ports.log(`agent-shim frontdoor supervisor: ${message}`);
|
|
@@ -2990,6 +2991,7 @@ async function runFrontDoorSupervisor(idleShutdownMinutes, ports, options = {})
|
|
|
2990
2991
|
await direct.close();
|
|
2991
2992
|
await connect3.close();
|
|
2992
2993
|
await http2.close();
|
|
2994
|
+
ports.closeRcStreamHub();
|
|
2993
2995
|
writeFrontDoorState(fs12, paths.frontdoorStateFile, sticky());
|
|
2994
2996
|
return 0;
|
|
2995
2997
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2700,6 +2700,7 @@ async function runFrontDoorSupervisor(idleShutdownMinutes, ports, options = {})
|
|
|
2700
2700
|
...lastDirectPort === void 0 ? {} : { lastDirectPort }
|
|
2701
2701
|
});
|
|
2702
2702
|
const fail = (message) => {
|
|
2703
|
+
ports.closeRcStreamHub();
|
|
2703
2704
|
writeFrontDoorState(fs12, paths.frontdoorStateFile, { lastError: message, ...sticky() });
|
|
2704
2705
|
fs12.removeRecursive(paths.frontdoorLockFile);
|
|
2705
2706
|
ports.log(`agent-shim frontdoor supervisor: ${message}`);
|
|
@@ -2760,6 +2761,7 @@ async function runFrontDoorSupervisor(idleShutdownMinutes, ports, options = {})
|
|
|
2760
2761
|
await direct.close();
|
|
2761
2762
|
await connect3.close();
|
|
2762
2763
|
await http2.close();
|
|
2764
|
+
ports.closeRcStreamHub();
|
|
2763
2765
|
writeFrontDoorState(fs12, paths.frontdoorStateFile, sticky());
|
|
2764
2766
|
return 0;
|
|
2765
2767
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2594,6 +2594,10 @@ interface FrontDoorSupervisorPorts {
|
|
|
2594
2594
|
* Starts the direct listener on `preferredPort` (same bind-time fallback): the same routes as the provider listener, minus the headroom hop, over plain HTTP because headroom is what connects to it. Headroom forwards routed traffic back here, which is what keeps the hop from looping, and the port is sticky like the others because headroom's allowlist admits its exact origin. It admits only the hop's own requests and holds no credential until it redeems one from the hop's custody.
|
|
2595
2595
|
*/
|
|
2596
2596
|
readonly startDirectListener: (preferredPort: number | undefined) => Promise<FrontDoorListenerHandle>;
|
|
2597
|
+
/**
|
|
2598
|
+
* Stops the Remote Control stream hub: persists every live attachment's sequence cursor synchronously, then frees the dials. Called exactly once on every exit the supervisor owns, after every listener it started is down (a live listener could still settle an observed Remote Control exchange, and the reconcile that follows would re-attach a stream the close had just ended) and before the final state write and the process's exit.
|
|
2599
|
+
*/
|
|
2600
|
+
readonly closeRcStreamHub: () => void;
|
|
2597
2601
|
readonly log: (line: string) => void;
|
|
2598
2602
|
}
|
|
2599
2603
|
/** Options for `runFrontDoorSupervisor`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-shim",
|
|
3
|
-
"version": "8.14.
|
|
3
|
+
"version": "8.14.1",
|
|
4
4
|
"description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|