Skip to content

fix: document contributor command surface, published surface, and OPENCODE_VIEWER_HOST (#239) - #289

Merged
abogartz merged 2 commits into
mainfrom
fix-issue-239-contributor-surface
Nov 4, 2026
Merged

abogartz merged 2 commits into
mainfrom
fix-issue-239-contributor-surface

Conversation

@ocsi-fixer

@ocsi-fixer ocsi-fixer Bot commented Nov 4, 2026

Copy link
Copy Markdown

Closes #239

What changed

README only — three additions, all inside the ticket's fix direction:

  1. CI mapping sentence (Development section): bun run typecheck runs inside the CI job named lint, so a green lint check silently implies tsc — the trap the ticket named. The sentence also maps test → the test job (re-run in test-windows, informational) and test:e2e → the smoke job. Verified against .github/workflows/ci.yml at the merge-base: the lint job's steps are bun run typecheck then bun run lint.
  2. Published-surface paragraph: exports is the only import surface (. → index.ts, ./tui → src/tui/panel.tsx); files is the packaging list; a new top-level file or runtime-read path missing from files works from the checkout and vanishes from the npm artifact, and the packed-artifact load in e2e/ turns that miss red.
  3. OPENCODE_VIEWER_HOST row in the env table, with the same plain-HTTP warning the OPENCODE_VIEWER_ALLOWED_HOSTS row and the Surfaces section use. Semantics read from src/viewer/server.ts:48 (process.env.OPENCODE_VIEWER_HOST || "127.0.0.1").

Ticket state at the checked sha

Reproduced at main cb68647c6301a85dc766d12f91ac90a0c5c9042e. The Finding's claim that "bun run gate appears nowhere" is now stale — the Development section already documents gate/gate:hooks. The three fix-direction items above were all still absent, so the ticket was built, not closed.

Acceptance criteria and evidence

  • Contributor command surface with CI enforcement: grep -c "bun run typecheck" README.md → 1 at head, 0 at merge-base; the mapping sentence names the lint, test, test-windows and smoke jobs.
  • Published-surface paragraph: new paragraph names package.json, exports and files; absent at merge-base (grep -n '"exports"\|"files"\|package.json' README.md → none at cb68647).
  • OPENCODE_VIEWER_HOST row: present with the plain-HTTP warning; at merge-base the table had only OPENCODE_VIEWER_PORT and OPENCODE_VIEWER_ALLOWED_HOSTS.

Docs-only change — no behaviour change, so no new failing test applies; the criteria are README presence checks measured above.

Commands run (measured)

  • bun run typecheck — clean.
  • bun run lint — clean (biome lint exit 0, warnings advisory; format:check 224 files clean).
  • bun run test — 942 pass / 19 skip / 0 fail (92 files).
  • bun run test:e2e — 30 pass / 0 fail (8 files), run by the pre-push merge gate (src/ untouched, so e2e was not required; it ran anyway and is reported).

Deliberately not changed

Selection note

The 239 in:body open-PR check returned #277, which is the PR for #223 and only cross-references this ticket ("README … belong to #239") — it closes #223, not #239, and touches no README line, so there is no duplicate-PR conflict here.

@WhollyMindless WhollyMindless left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVE, scoped to documentation at bot head e71bf02c6fdff1940ee85b39973136a2d9efb539 against #239. No blocking finding.

Independently checked the new statements against the tree and live repository settings:

  • ci.yml runs typecheck + lint in lint, unit tests in both OS jobs, and E2E in smoke. The live main ruleset requires exactly lint, test, smoke; test-windows is currently informational.
  • Both documented exports match package.json; src is in files. The packed-load test uses installPacked(), which installs the artifact with --omit=dev.
  • Viewer bind uses OPENCODE_VIEWER_HOST || "127.0.0.1"; the new warning matches this head's unauthenticated implementation.

The #277 authentication-documentation dependency is already explicitly identified in the PR body; no duplicate finding. That warning should be reconciled with whichever behavior is merged. I reviewed source/configuration only and did not rerun tests for these five README additions.

@abogartz
abogartz merged commit c3a1e2d into main Nov 4, 2026
4 checks passed
@abogartz-opencode-self-improvement

Copy link
Copy Markdown

🎉 This PR is included in version 0.15.30 🎉

The release is available on:

Your semantic-release bot 📦🚀

@abogartz
abogartz deleted the fix-issue-239-contributor-surface branch November 19, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants