Skip to content

docs: align public api guidance#754

Merged
blove merged 4 commits into
mainfrom
codex/threadplane-api-drift-baseline
Jul 6, 2026
Merged

docs: align public api guidance#754
blove merged 4 commits into
mainfrom
codex/threadplane-api-drift-baseline

Conversation

@blove

@blove blove commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

PR 1 of the Threadplane docs/website alignment program: API drift baseline.

Base commit: 3d3c8525075be79c4ce151a08d3b47828be861d5
Head commit: 4a94a81e

Fixed confirmed public API/package guidance drift:

  • Updated libs/chat/README.md from the non-exported agent({ graphId }) LangGraph factory example to the current provideAgent({ apiUrl, assistantId }) + injectAgent() pattern.
  • Aligned Chat peer dependency docs with libs/chat/package.json: adds @angular/router, zod, optional katex, and removes stale @angular/forms guidance.
  • Updated Chat quickstart install command to include @threadplane/langgraph, matching the adapter imported by the snippets.
  • Aligned AG-UI install/peer docs with libs/ag-ui/package.json: adds @ag-ui/core and removes non-peer @threadplane/licensing.
  • Added required assistantId to runnable LangGraph provideAgent examples touched by this audit.
  • Removed the public surfaceToSpec import/signature claim and corrected A2UI root-selection behavior docs to match implementation.
  • Fixed AG-UI interrupts guide snippet import for ChangeDetectionStrategy.

Deferred Follow-Ups

These are intentionally not fixed in PR 1 because they need broader docs-generator or package-docs decisions:

  • @threadplane/telemetry/browser generated API coverage: npm run generate-api-docs still warns that libs/telemetry/src/browser/public-api.ts is not included by the node tsconfig. A probe confirmed the browser entry point is collectable with tsconfig.lib.browser.json, but telemetry has duplicate public type names across entry points, so this needs a generator/docs design decision.
  • @threadplane/middleware website docs/API surface: the package is public and has a README/source API, but no website docs library. This belongs in the package-depth PR unless explicitly pulled forward.

Verification

  • npm run generate-api-docs - PASS. Generated no diff. Existing telemetry browser TypeDoc warning remains and is deferred above.
  • npx nx build website - PASS.
  • npx nx lint chat - PASS with existing warnings.
  • npx nx lint ag-ui - PASS with existing warnings.
  • npx nx lint langgraph - PASS with existing warnings.
  • npx nx build chat - PASS.
  • npx nx build ag-ui - PASS.
  • npx nx build langgraph - PASS.
  • git diff --check - PASS.

Review Notes

Subagent review gates completed:

  • Spec compliance review: approved.
  • Code quality review: initially requested A2UI root-selection wording fixes; re-review approved the final tracked diff as ready to merge.

The untracked planning files under docs/superpowers/ are intentionally not part of this PR per repo guidance.

blove and others added 3 commits July 6, 2026 09:49
Root cause of intermittent mid-stream character loss (tables collapsing to
raw pipes): accumulateContent's string-prefix dedupe guard drops any delta
that coincidentally prefixes the accumulated message — every bare "|" token
in a table. Proven by byte-identical replay of captured wire events. Fix:
merge by declared event kind (tuple=delta → unconditional append;
messages/partial=snapshot → prefix reconcile) with an identity-based
canonical-id backstop replacing the text heuristic. TDD via the existing
bridge spec harness + a live 3-layer Chrome MCP gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
5 tasks: red tests via the existing bridge spec harness, mode-aware merge
(delta=append, snapshot=prefix reconcile) + canonical-id backstop, cross-
suite gates, a REQUIRED live Chrome MCP gate (wire==accumulation across ≥6
table runs, temp recorder reverted), PR + merge. Spec refined: values-sync
keeps snapshot semantics (lagging mid-run state must not rewind or mark
canonical); finality is marked only by the canonical reasoning+text shape.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment Jul 6, 2026 6:16pm

Request Review

@github-actions github-actions Bot 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.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error after 2m 2s —— View job


PR Review in Progress

  • Gather context and read CLAUDE.md
  • Read PR diff and changed files
  • Review documentation changes for correctness
  • Check API accuracy against source code
  • Post findings

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error after 2m 19s —— View job


PR Review in Progress

  • Gather context and read CLAUDE.md
  • Read PR diff and changed files
  • Review documentation changes for correctness
  • Check API accuracy against source code
  • Post findings

@blove blove marked this pull request as ready for review July 6, 2026 18:33
@blove blove merged commit a97be34 into main Jul 6, 2026
62 of 64 checks passed

@github-actions github-actions Bot 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.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1m 59s —— View job


PR Review in Progress

  • Gather context and read CLAUDE.md
  • Read PR diff and changed files
  • Review documentation changes for correctness
  • Check API accuracy against source code
  • Post findings

@blove blove deleted the codex/threadplane-api-drift-baseline branch July 6, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant