@agentproto/runtime 5.4.0 → 5.4.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/index.mjs CHANGED
@@ -35411,7 +35411,7 @@ function createHostRegistry(deps2) {
35411
35411
  async function forwardHttp(idOrName, req) {
35412
35412
  await ensureLoaded();
35413
35413
  const record2 = findHost(idOrName);
35414
- if (!record2) throw new Error(`no host matched "${idOrName}"`);
35414
+ if (!record2) throw hostLookupError(idOrName);
35415
35415
  onlineCounts.set(record2.fingerprint, (onlineCounts.get(record2.fingerprint) ?? 0) + 1);
35416
35416
  let client;
35417
35417
  try {
@@ -35431,7 +35431,7 @@ function createHostRegistry(deps2) {
35431
35431
  async function forwardHttpStream(idOrName, req) {
35432
35432
  await ensureLoaded();
35433
35433
  const record2 = findHost(idOrName);
35434
- if (!record2) throw new Error(`no host matched "${idOrName}"`);
35434
+ if (!record2) throw hostLookupError(idOrName);
35435
35435
  onlineCounts.set(record2.fingerprint, (onlineCounts.get(record2.fingerprint) ?? 0) + 1);
35436
35436
  let decremented = false;
35437
35437
  const decrement = () => {
@@ -35638,6 +35638,11 @@ function isEnoent(err) {
35638
35638
  function errMsg3(err) {
35639
35639
  return err instanceof Error ? err.message : String(err);
35640
35640
  }
35641
+ function hostLookupError(idOrName) {
35642
+ return new Error(
35643
+ `no host matched "${idOrName}" \u2014 devices resolve role:host only: if you accepted an offer on the other machine, the roles may be inverted; see \`agentproto pair --help\``
35644
+ );
35645
+ }
35641
35646
 
35642
35647
  // src/device-registry.ts
35643
35648
  function inferKind2(name) {
@@ -45172,6 +45177,11 @@ async function startHttpServer(opts) {
45172
45177
  pid: process.pid,
45173
45178
  node: process.execPath,
45174
45179
  entry: process.argv[1] ?? null,
45180
+ // The PATH the daemon captured at start (recap B4): doctor compares
45181
+ // it against the login shell's to diagnose "installed in your shell
45182
+ // but not visible to the daemon". Additive — older CLI readers
45183
+ // ignore the field, and it is absent when a daemon predates it.
45184
+ path: process.env["PATH"] ?? null,
45175
45185
  resumeSessionsOnBoot: opts.meta.resumeSessionsOnBoot === true,
45176
45186
  continueInterruptedOnBoot: opts.meta.continueInterruptedOnBoot === true,
45177
45187
  idleReapAfterMs: opts.meta.idleReapAfterMs ?? 0,