@agfpd/iapeer 0.2.90 → 0.2.91

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.90",
3
+ "version": "0.2.91",
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",
@@ -60,7 +60,14 @@ export function composerOccupancyFromModel(term: Terminal, cols: number, rows: n
60
60
  const l = b.getLine(py)!
61
61
  for (let x = px + 1; x < cols; x++) {
62
62
  const c = l.getCell(x); if ((c?.getChars() || ' ').trim() === '') continue
63
- if (!(c!.isDim() || (c!.isFgPalette() && c!.getFgColor() === 246))) return true
63
+ // OCCUPIED iff a real human glyph after the prompt: DEFAULT foreground AND non-dim. Verified on BOTH
64
+ // runtimes — typed input renders at the terminal default fg (isFgDefault, fg=-1) and non-dim. Everything
65
+ // else after the prompt is runtime chrome / ghost and must be ignored: claude's dim/palette-246
66
+ // placeholder; codex's DIM default-fg suggestion ("Find and fix a bug in @filename", varies) AND its
67
+ // TRUECOLOR status hint ("<model> <effort> · <cwd>"). The old check (`!dim && !palette-246`) ghosted the
68
+ // dim suggestion but MISSED codex's truecolor status (non-dim, non-palette) → false OCCUPIED → spurious
69
+ // delivery queue ("queuedBy: composer") whenever a human was attached to a codex session.
70
+ if (!c!.isDim() && c!.isFgDefault()) return true
64
71
  }
65
72
  return false
66
73
  }