Repository navigation
docs(site): add @memhtml/llm to the API tier - #171
Merged
Merged
Conversation
…I tier renders them
Type-only and comment-only. No runtime statement changes; tsc emits the same JavaScript.
- `InvokeClient.send` now resolves to a named `InvokeResult` interface and `ProxyFetch` to a
named `ProxyFetchResponse` interface, both exported. typedoc-plugin-markdown renders an
inline object literal inside `Promise<...>` as escaped `\{ ... \}` prose, which the docs
site's MDX brace probe (`apps/docs/tests/figures.test.ts`) rejects; a named interface
renders as a linked declaration. The structural shapes are unchanged, so every existing
fake and the platform `Response` still satisfy them.
- `thinkingFor`'s inline return literal gains a member doc comment, which makes the plugin
emit a fenced type-literal block instead of escaped prose.
- `Provider` is re-exported from `index.ts`: `ModelInfo.provider` references it and TypeDoc
warned that it was referenced but not included.
- Three `{@link}` tags pointing at module-private symbols (`closingTagsFor`, `PROXY_BACKOFF`,
`unwrapDoubleEncoded`) become code spans; TypeDoc cannot link a symbol the package does
not export and warned on each.
Measured with the typedoc CLI over `packages/llm/src/index.ts`: 4 warnings and 3 brace hits
before, 0 and 0 after. Prepares the `@memhtml/llm` slice of the generated API tier, which
follows in a separate docs-only PR stacked on this one.
Fourth package in the generated reference: one `starlightTypeDoc` instance writing `api/llm/`, the same options as the three before it, a sidebar group, a row in the authored `api/index.md`, and a new `packages/llm/README.md` that the generator merges in as the page's opening (the package had none). The README describes the two lanes (Cohere embeddings, Anthropic and OpenAI generation), the direct Bedrock client and the HTTP proxy lane with the four `MEMHTML_LLM_*` variables, the model table, the wire helpers, and how `ModelUnavailable` and `LlmContractViolation` divide the failures, then lists the nine modules and the symbols each holds. Stacked on the `docs/llm-response-types` commit, which names the two `Promise<...>` response shapes the plugin could only render as escaped-brace prose; with it the typedoc CLI over the package reports 0 warnings and the MDX brace probe 0 hits.
This was referenced Sep 10, 2026
Merged
laithalsaadoon
changed the base branch from
docs/llm-response-types
to
main
September 14, 2026 15:06
…dex row land ahead of llm)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fourth package in the generated API tier:
@memhtml/llmat/api/llm/.apps/docs/astro.config.ts: one morestarlightTypeDocinstance (output: "api/llm", the same options as the three before it, reasons in the comment block above the first instance) and a sidebar group under API.apps/docs/src/content/docs/api/index.md: one row in the coverage table.packages/llm/README.md: new. The package had no README, and the generator merges it in as the page's opening. It describes the two lanes (Cohere embeddings, Anthropic and OpenAI generation), the direct Bedrock client and the HTTP proxy lane with the fourMEMHTML_LLM_*variables, the model table, the wire helpers, howModelUnavailableandLlmContractViolationdivide the failures, then lists the nine modules and the symbols each holds. Every constant and default it quotes was checked against the source.Stacked on
This branch is based on
docs/llm-response-types(the type-only PR that names the twoPromise<...>response shapes). GitHub will retarget this PR tomainwhen that one merges. On its own, without that base, the generated page carries two escaped-brace renderings thattests/figures.test.tsrejects.Proof
All on this head (
4437698), clone reset toorigin/mainat9ad7240plus the base commit:packages/llm/src/index.tswith the site's options: exit 0, 0 warnings, one page (1915 lines before the README merge); MDX brace probe over it: 0 hits.astro buildwith the fourth instance: exit 0; brace probe over the whole generatedapi/tree: 0 hits./api/llm/temporarily added toAUDITED_PAGESandlighthouserc.json, then restored (git statusclean afterwards):test:a11y33/33;test:budget5 URLs x 3 runs, no failed assertions. Lighthouse on/api/llm/: accessibility 100, best practices 100, SEO 100 on all three runs; performance 100, 81, 100.mise run check: exit 0, 64/64 tasks, 2m56s.Boundary
Documentation and docs-site generation wiring only (authority items 2 and 3); no test, runtime, script or workflow file is touched by this commit. Mergeable by the maintenance run once its base is
mainand CI is green.