@agfpd/iapeer 0.2.94 → 0.2.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agfpd/iapeer",
3
- "version": "0.2.94",
3
+ "version": "0.2.95",
4
4
  "description": "Foundation core for the iapeer multi-agent ecosystem: identity, registry, storage, codec.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "agfpd",
package/src/init/index.ts CHANGED
@@ -298,6 +298,12 @@ export function resolvePrimaryRuntime(
298
298
  isInstalled: (rt: Runtime) => boolean = rt => isRuntimeInstalled(rt),
299
299
  ): Runtime {
300
300
  if (explicit) {
301
+ // Infra runtimes (notifier/telegram) are NOT agentic binaries — their presence is
302
+ // the npx runtime package + the launchd plist, not a claude/codex install. The
303
+ // install-check below is agentic-only, so an explicit infra runtime must pass
304
+ // straight through; otherwise re-deploying an infra peer (install-runtime /
305
+ // update-runtime → createPeer → initPeer) wrongly fails "not installed".
306
+ if (isInfraRuntime(explicit)) return explicit
301
307
  if (!isInstalled(explicit)) {
302
308
  throw new IapError(
303
309
  `runtime "${explicit}" is not installed on this host — install it (Claude Code / Codex CLI) or choose an installed runtime`,