hyperhive/frontend/packages/agent/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 3f84b6492a agent/app.js + docs: migrate ask→operator inline-answer binding prose (#713 batch 1 cont.)
Moves the #666 ask→operator inline-answer wiring rationale from
app.js into a new docs/web-ui.md::Per-agent page sub-paragraph
**Ask → operator inline-answer binding**. Substantial block —
the slot-registry / reconcileAskBinds / buildAnswerForm trio has
real design rationale (async question id, text-match pairing,
resolved-vs-cancelled-vs-expired neutrality, defensive prune,
no-regression-fallback to side-panel answer) that belongs in
docs, not three JSDoc blocks scattered through app.js.

Moved to docs (~30 lines of substantive prose):
- pendingAskBinds slot-registry rationale
- reconcileAskBinds matching algorithm (text-match, first-unbound
  to first-unclaimed pairing stability)
- defensive prune for disconnected slots
- [resolved] vs ✓ rationale (answered / cancelled / TTL-expired
  ambiguity — neutral label)
- fallback to side-panel answer when slot stays unbound

Collapsed in app.js: 3 JSDoc blocks + inline comments → ~10-line
total pointer. Drops #666 ×3, #559, #668 cookies en passant
(substance now lives in docs).

app.js: 24 → 19 refs in this commit; 27 → 19 across batch 1
(30% reduction so far). Net ~57 lines of substantive prose
migrated from app.js to docs/web-ui.md across both commits in
this PR.
2026-05-31 14:35:09 +02:00
..
agent.css agent/terminal: neutral [resolved] label for closed asks (argus #668) 2026-05-30 21:45:33 +02:00
app.js agent/app.js + docs: migrate ask→operator inline-answer binding prose (#713 batch 1 cont.) 2026-05-31 14:35:09 +02:00
index.html agent UI: relative paths for all assets/api/ws so the page works under any nginx prefix (#14) 2026-05-31 12:10:56 +02:00
screen.html agent UI: relative paths for all assets/api/ws so the page works under any nginx prefix (#14) 2026-05-31 12:10:56 +02:00
stats.html agent UI: relative paths for all assets/api/ws so the page works under any nginx prefix (#14) 2026-05-31 12:10:56 +02:00
stats.js agent UI: relative paths for all assets/api/ws so the page works under any nginx prefix (#14) 2026-05-31 12:10:56 +02:00