Adapter facts on the app page and in the terminal (#10037)

An app whose forge.json declares an adapter shows its source, how often it pulls (every), its last pull (state, written/skipped/failed, when), the next pull and the cursor of the last good pull.

plain rows in the side column. Only people who see owner facts (canSeeOwnerFacts) get it.

"<owner>/<repo> — Adapter" (src/tui/screens/adapter.ts). Same gate, same rows. A writer presses p there to pull now (pullNow): the rows are read again, and a refusal shows its PULL_NOW_REFUSALS sentence in the status line. Anyone else is shown no key and p does nothing.

under the rows. It posts same-origin to POST /<owner>/<repo>/app/pull (adapterPull, src/web/studio/adapter.ts), which calls pullNow, the function the API and MCP use, and redirects back to the app page, where Last pull shows the new run. A refusal comes back as ?pull=<code> and shows its sentence from PULL_NOW_REFUSALS in one muted line. Anyone who may not write gets 404 and no button.

limit 10): when, ok or failed, written/skipped/failed and, for a failed run, its error sentence. With no runs, one muted line says "No pull runs yet." under the always-present "Pull runs" heading.

says it declares no adapter.

markup.

Cost: the page resolves the default branch's tip and reads the parsed spec from a cache keyed by that tip (declaredByTip), plus two limit-1 reads of pull_run_app / pull_run_app_ok and one limit-10 read of the runs; no git parse on a repeat view.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs