agent-shim 8.5.5 → 8.5.6
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 +8 -8
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -55519,14 +55519,14 @@ function ensureHeadroom(params) {
|
|
|
55519
55519
|
const holders = sessionsForSupervisor(ports.fs, paths.headroomSessionsDir, state.supervisorPid).filter((session) => ports.isRunning(session.pid));
|
|
55520
55520
|
if (holders.length > 0) {
|
|
55521
55521
|
throw new HeadroomStartError(
|
|
55522
|
-
`
|
|
55522
|
+
`the running headroom daemon was started before this launch's front door address and would refuse every request this launch sends through it. It restarts once the launches using it end (pid ${holders.map((session) => String(session.pid)).join(", ")}); end them and launch again, or launch with --no-headroom.`
|
|
55523
55523
|
);
|
|
55524
55524
|
}
|
|
55525
55525
|
awaitingAllowlist = true;
|
|
55526
55526
|
}
|
|
55527
55527
|
if (state.lastError !== void 0) {
|
|
55528
55528
|
throw new HeadroomStartError(
|
|
55529
|
-
`
|
|
55529
|
+
`the headroom daemon reported a fatal error and is not serving: ${state.lastError} (daemon log: ${paths.headroomLogPath})`
|
|
55530
55530
|
);
|
|
55531
55531
|
}
|
|
55532
55532
|
} else if (!spawnedSupervisor) {
|
|
@@ -55550,7 +55550,7 @@ function ensureHeadroom(params) {
|
|
|
55550
55550
|
if (ports.now() >= deadline) {
|
|
55551
55551
|
const lastError = state?.lastError;
|
|
55552
55552
|
throw new HeadroomStartError(
|
|
55553
|
-
`
|
|
55553
|
+
`the headroom daemon did not become ready within ${String(HEADROOM_START_TIMEOUT_MS)}ms` + (lastError === void 0 ? "" : ` (last error: ${lastError})`) + (awaitingAllowlist ? " (the running daemon's allowlist does not admit this launch's front door, and it did not restart)" : "") + `. Daemon log: ${paths.headroomLogPath}`
|
|
55554
55554
|
);
|
|
55555
55555
|
}
|
|
55556
55556
|
ports.sleep(HEADROOM_LAUNCHER_POLL_MS);
|
|
@@ -61586,7 +61586,7 @@ function registerIdentityCommand(program2, deps) {
|
|
|
61586
61586
|
// package.json
|
|
61587
61587
|
var package_default = {
|
|
61588
61588
|
name: "agent-shim",
|
|
61589
|
-
version: "8.5.
|
|
61589
|
+
version: "8.5.6",
|
|
61590
61590
|
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.",
|
|
61591
61591
|
license: "MIT",
|
|
61592
61592
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -69492,7 +69492,7 @@ function ensureFrontDoor(params) {
|
|
|
69492
69492
|
ports.stopSupervisor(supervisorPid);
|
|
69493
69493
|
while (ports.isRunning(supervisorPid)) {
|
|
69494
69494
|
if (ports.now() >= deadline) {
|
|
69495
|
-
throw new FrontDoorStartError(`
|
|
69495
|
+
throw new FrontDoorStartError(`the front door (pid ${String(supervisorPid)}, protocol ${String(state.protocol ?? 0)}) is older than this launcher (protocol ${String(FRONT_DOOR_PROTOCOL)}) and did not exit when asked. Daemon log: ${paths.frontdoorLogPath}`);
|
|
69496
69496
|
}
|
|
69497
69497
|
ports.sleep(FRONTDOOR_LAUNCHER_POLL_MS);
|
|
69498
69498
|
}
|
|
@@ -69506,13 +69506,13 @@ function ensureFrontDoor(params) {
|
|
|
69506
69506
|
}
|
|
69507
69507
|
lastRejection = `the listener on 127.0.0.1:${String(state.port)} (recorded for pid ${String(supervisorPid)}) failed authentication: ${verdict.reason}`;
|
|
69508
69508
|
if (spawned) {
|
|
69509
|
-
throw new FrontDoorStartError(
|
|
69509
|
+
throw new FrontDoorStartError(`${lastRejection}; refusing to send this session's credentials to it. Daemon log: ${paths.frontdoorLogPath}`);
|
|
69510
69510
|
}
|
|
69511
69511
|
distrusted.add(supervisorPid);
|
|
69512
69512
|
continue;
|
|
69513
69513
|
}
|
|
69514
69514
|
if (state?.lastError !== void 0) {
|
|
69515
|
-
throw new FrontDoorStartError(`
|
|
69515
|
+
throw new FrontDoorStartError(`the front door reported a fatal error and is not serving: ${state.lastError} (daemon log: ${paths.frontdoorLogPath})`);
|
|
69516
69516
|
}
|
|
69517
69517
|
} else if (!spawned) {
|
|
69518
69518
|
ports.fs.mkdirp(paths.frontdoorDir);
|
|
@@ -69532,7 +69532,7 @@ function ensureFrontDoor(params) {
|
|
|
69532
69532
|
if (ports.now() >= deadline) {
|
|
69533
69533
|
const lastError = state?.lastError;
|
|
69534
69534
|
throw new FrontDoorStartError(
|
|
69535
|
-
`
|
|
69535
|
+
`the front door did not become ready within ${String(FRONTDOOR_START_TIMEOUT_MS)}ms` + (lastError === void 0 ? "" : ` (last error: ${lastError})`) + (lastRejection === void 0 ? "" : ` (${lastRejection})`) + `. Daemon log: ${paths.frontdoorLogPath}`
|
|
69536
69536
|
);
|
|
69537
69537
|
}
|
|
69538
69538
|
ports.sleep(FRONTDOOR_LAUNCHER_POLL_MS);
|
package/dist/index.cjs
CHANGED
|
@@ -4589,7 +4589,7 @@ function ensureFrontDoor(params) {
|
|
|
4589
4589
|
ports.stopSupervisor(supervisorPid);
|
|
4590
4590
|
while (ports.isRunning(supervisorPid)) {
|
|
4591
4591
|
if (ports.now() >= deadline) {
|
|
4592
|
-
throw new FrontDoorStartError(`
|
|
4592
|
+
throw new FrontDoorStartError(`the front door (pid ${String(supervisorPid)}, protocol ${String(state.protocol ?? 0)}) is older than this launcher (protocol ${String(FRONT_DOOR_PROTOCOL)}) and did not exit when asked. Daemon log: ${paths.frontdoorLogPath}`);
|
|
4593
4593
|
}
|
|
4594
4594
|
ports.sleep(FRONTDOOR_LAUNCHER_POLL_MS);
|
|
4595
4595
|
}
|
|
@@ -4603,13 +4603,13 @@ function ensureFrontDoor(params) {
|
|
|
4603
4603
|
}
|
|
4604
4604
|
lastRejection = `the listener on 127.0.0.1:${String(state.port)} (recorded for pid ${String(supervisorPid)}) failed authentication: ${verdict.reason}`;
|
|
4605
4605
|
if (spawned) {
|
|
4606
|
-
throw new FrontDoorStartError(
|
|
4606
|
+
throw new FrontDoorStartError(`${lastRejection}; refusing to send this session's credentials to it. Daemon log: ${paths.frontdoorLogPath}`);
|
|
4607
4607
|
}
|
|
4608
4608
|
distrusted.add(supervisorPid);
|
|
4609
4609
|
continue;
|
|
4610
4610
|
}
|
|
4611
4611
|
if (state?.lastError !== void 0) {
|
|
4612
|
-
throw new FrontDoorStartError(`
|
|
4612
|
+
throw new FrontDoorStartError(`the front door reported a fatal error and is not serving: ${state.lastError} (daemon log: ${paths.frontdoorLogPath})`);
|
|
4613
4613
|
}
|
|
4614
4614
|
} else if (!spawned) {
|
|
4615
4615
|
ports.fs.mkdirp(paths.frontdoorDir);
|
|
@@ -4629,7 +4629,7 @@ function ensureFrontDoor(params) {
|
|
|
4629
4629
|
if (ports.now() >= deadline) {
|
|
4630
4630
|
const lastError = state?.lastError;
|
|
4631
4631
|
throw new FrontDoorStartError(
|
|
4632
|
-
`
|
|
4632
|
+
`the front door did not become ready within ${String(FRONTDOOR_START_TIMEOUT_MS)}ms` + (lastError === void 0 ? "" : ` (last error: ${lastError})`) + (lastRejection === void 0 ? "" : ` (${lastRejection})`) + `. Daemon log: ${paths.frontdoorLogPath}`
|
|
4633
4633
|
);
|
|
4634
4634
|
}
|
|
4635
4635
|
ports.sleep(FRONTDOOR_LAUNCHER_POLL_MS);
|
|
@@ -4968,14 +4968,14 @@ function ensureHeadroom(params) {
|
|
|
4968
4968
|
const holders = sessionsForSupervisor(ports.fs, paths.headroomSessionsDir, state.supervisorPid).filter((session) => ports.isRunning(session.pid));
|
|
4969
4969
|
if (holders.length > 0) {
|
|
4970
4970
|
throw new HeadroomStartError(
|
|
4971
|
-
`
|
|
4971
|
+
`the running headroom daemon was started before this launch's front door address and would refuse every request this launch sends through it. It restarts once the launches using it end (pid ${holders.map((session) => String(session.pid)).join(", ")}); end them and launch again, or launch with --no-headroom.`
|
|
4972
4972
|
);
|
|
4973
4973
|
}
|
|
4974
4974
|
awaitingAllowlist = true;
|
|
4975
4975
|
}
|
|
4976
4976
|
if (state.lastError !== void 0) {
|
|
4977
4977
|
throw new HeadroomStartError(
|
|
4978
|
-
`
|
|
4978
|
+
`the headroom daemon reported a fatal error and is not serving: ${state.lastError} (daemon log: ${paths.headroomLogPath})`
|
|
4979
4979
|
);
|
|
4980
4980
|
}
|
|
4981
4981
|
} else if (!spawnedSupervisor) {
|
|
@@ -4999,7 +4999,7 @@ function ensureHeadroom(params) {
|
|
|
4999
4999
|
if (ports.now() >= deadline) {
|
|
5000
5000
|
const lastError = state?.lastError;
|
|
5001
5001
|
throw new HeadroomStartError(
|
|
5002
|
-
`
|
|
5002
|
+
`the headroom daemon did not become ready within ${String(HEADROOM_START_TIMEOUT_MS)}ms` + (lastError === void 0 ? "" : ` (last error: ${lastError})`) + (awaitingAllowlist ? " (the running daemon's allowlist does not admit this launch's front door, and it did not restart)" : "") + `. Daemon log: ${paths.headroomLogPath}`
|
|
5003
5003
|
);
|
|
5004
5004
|
}
|
|
5005
5005
|
ports.sleep(HEADROOM_LAUNCHER_POLL_MS);
|
package/dist/index.mjs
CHANGED
|
@@ -4405,7 +4405,7 @@ function ensureFrontDoor(params) {
|
|
|
4405
4405
|
ports.stopSupervisor(supervisorPid);
|
|
4406
4406
|
while (ports.isRunning(supervisorPid)) {
|
|
4407
4407
|
if (ports.now() >= deadline) {
|
|
4408
|
-
throw new FrontDoorStartError(`
|
|
4408
|
+
throw new FrontDoorStartError(`the front door (pid ${String(supervisorPid)}, protocol ${String(state.protocol ?? 0)}) is older than this launcher (protocol ${String(FRONT_DOOR_PROTOCOL)}) and did not exit when asked. Daemon log: ${paths.frontdoorLogPath}`);
|
|
4409
4409
|
}
|
|
4410
4410
|
ports.sleep(FRONTDOOR_LAUNCHER_POLL_MS);
|
|
4411
4411
|
}
|
|
@@ -4419,13 +4419,13 @@ function ensureFrontDoor(params) {
|
|
|
4419
4419
|
}
|
|
4420
4420
|
lastRejection = `the listener on 127.0.0.1:${String(state.port)} (recorded for pid ${String(supervisorPid)}) failed authentication: ${verdict.reason}`;
|
|
4421
4421
|
if (spawned) {
|
|
4422
|
-
throw new FrontDoorStartError(
|
|
4422
|
+
throw new FrontDoorStartError(`${lastRejection}; refusing to send this session's credentials to it. Daemon log: ${paths.frontdoorLogPath}`);
|
|
4423
4423
|
}
|
|
4424
4424
|
distrusted.add(supervisorPid);
|
|
4425
4425
|
continue;
|
|
4426
4426
|
}
|
|
4427
4427
|
if (state?.lastError !== void 0) {
|
|
4428
|
-
throw new FrontDoorStartError(`
|
|
4428
|
+
throw new FrontDoorStartError(`the front door reported a fatal error and is not serving: ${state.lastError} (daemon log: ${paths.frontdoorLogPath})`);
|
|
4429
4429
|
}
|
|
4430
4430
|
} else if (!spawned) {
|
|
4431
4431
|
ports.fs.mkdirp(paths.frontdoorDir);
|
|
@@ -4445,7 +4445,7 @@ function ensureFrontDoor(params) {
|
|
|
4445
4445
|
if (ports.now() >= deadline) {
|
|
4446
4446
|
const lastError = state?.lastError;
|
|
4447
4447
|
throw new FrontDoorStartError(
|
|
4448
|
-
`
|
|
4448
|
+
`the front door did not become ready within ${String(FRONTDOOR_START_TIMEOUT_MS)}ms` + (lastError === void 0 ? "" : ` (last error: ${lastError})`) + (lastRejection === void 0 ? "" : ` (${lastRejection})`) + `. Daemon log: ${paths.frontdoorLogPath}`
|
|
4449
4449
|
);
|
|
4450
4450
|
}
|
|
4451
4451
|
ports.sleep(FRONTDOOR_LAUNCHER_POLL_MS);
|
|
@@ -4784,14 +4784,14 @@ function ensureHeadroom(params) {
|
|
|
4784
4784
|
const holders = sessionsForSupervisor(ports.fs, paths.headroomSessionsDir, state.supervisorPid).filter((session) => ports.isRunning(session.pid));
|
|
4785
4785
|
if (holders.length > 0) {
|
|
4786
4786
|
throw new HeadroomStartError(
|
|
4787
|
-
`
|
|
4787
|
+
`the running headroom daemon was started before this launch's front door address and would refuse every request this launch sends through it. It restarts once the launches using it end (pid ${holders.map((session) => String(session.pid)).join(", ")}); end them and launch again, or launch with --no-headroom.`
|
|
4788
4788
|
);
|
|
4789
4789
|
}
|
|
4790
4790
|
awaitingAllowlist = true;
|
|
4791
4791
|
}
|
|
4792
4792
|
if (state.lastError !== void 0) {
|
|
4793
4793
|
throw new HeadroomStartError(
|
|
4794
|
-
`
|
|
4794
|
+
`the headroom daemon reported a fatal error and is not serving: ${state.lastError} (daemon log: ${paths.headroomLogPath})`
|
|
4795
4795
|
);
|
|
4796
4796
|
}
|
|
4797
4797
|
} else if (!spawnedSupervisor) {
|
|
@@ -4815,7 +4815,7 @@ function ensureHeadroom(params) {
|
|
|
4815
4815
|
if (ports.now() >= deadline) {
|
|
4816
4816
|
const lastError = state?.lastError;
|
|
4817
4817
|
throw new HeadroomStartError(
|
|
4818
|
-
`
|
|
4818
|
+
`the headroom daemon did not become ready within ${String(HEADROOM_START_TIMEOUT_MS)}ms` + (lastError === void 0 ? "" : ` (last error: ${lastError})`) + (awaitingAllowlist ? " (the running daemon's allowlist does not admit this launch's front door, and it did not restart)" : "") + `. Daemon log: ${paths.headroomLogPath}`
|
|
4819
4819
|
);
|
|
4820
4820
|
}
|
|
4821
4821
|
ports.sleep(HEADROOM_LAUNCHER_POLL_MS);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-shim",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.6",
|
|
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>",
|