Repository navigation
Feat: Documentation Page - #15
Merged
Merged
Conversation
The installed Next.js 16.4.3 was flagged by a published security advisory, and `next build` aborted with a SecurityFatalError on every run. 16.4.6 is the latest patch on the same major line and carries the fix. Why these files: - next: 16.4.3 -> 16.4.6 - @next/mdx and @next/third-parties: moved to 16.4.6 to stay in lockstep with the core package; mismatched Next companion versions are a known source of build breakage. - next.config.mjs: added experimental.agentUpgrade = "security", which records the advisory-driven upgrade intent for future agent runs. Same-major patch, so no codemods or migration guides applied. Verification on 16.4.6: - bun install resolves and lockfile updates cleanly - next --version reports v16.4.6 - tsc --noEmit clean - vitest 77/77 pass - next build succeeds with no security advisory; 12 routes export - eslint 0 errors (4 pre-existing warnings in animated-lines.tsx) - prettier clean - playwright chromium 113/113 pass Co-Authored-By: Claude Code <noreply@anthropic.com>
…rt steps - Added `get-docs-index` function to build the documentation index with harness cards and endpoint rows. - Created tests for `get-docs-index` to ensure correct functionality and localization. - Developed the main documentation page with sections for quickstart, harnesses, endpoints, and security. - Introduced snippets for code examples and commands relevant to OneAI. - Implemented end-to-end tests for the documentation hub and individual harness guides. - Added English and Indonesian localization for documentation content. - Updated navigation to include a link to the documentation.
added 2 commits
November 23, 2026 20:09
…proved reliability
kevinhermawan
left a comment
There was a problem hiding this comment.
Thanks for this. The registry-driven structure is a solid base: one entry per harness feeds the hub, the guide pages, and generateStaticParams. Both locales have unit and e2e coverage, and CI is green.
I reviewed the code, the copy in both locales, and the screenshots in the description. Because readers will copy-paste these pages into their terminals, I focused on precision and checked the snippets against upstream:
- Next.js 16.4.6: the published
dist/server/config-shared.js. - OpenCode: the schema at
https://opencode.ai/config.json, plushttps://opencode.ai/v2/install, which currently resolves to 2.4.1 on thelatestchannel.
The groups below are ordered by priority. Each item has an inline comment with details.
Should fix before merge
- The prev/next nav shows the same guide twice. There are only two harnesses, so the wrap-around makes
previous === next. Every guide page ends with two identical cards (see the 5th screenshot: "OpenCode / OpenCode"). The eyebrow also shows the raw slug instead of "Previous" / "Next". - The Claude Code model config contradicts its own copy.
ANTHROPIC_MODELpins the session to the flash model, so thedeepseek-v4-proSonnet mapping is effectively unused. Yet the table says Sonnet-tier is "where Claude Code sends most of its work".ANTHROPIC_DEFAULT_OPUS_MODELis missing./model opus,opusplan, and subagents pinned toopuswill request a Claude model ID that the virtual key doesn't allow.
- The verify step can't tell OneAI from a direct Anthropic login. "A reply with no authentication error means requests are routing through OneAI" is also true for anyone already logged in to Claude Code. Asking the model which model it is doesn't settle it either, because models' self-identification is unreliable.
- The OpenCode snippet uses a key that its own
$schemamarks deprecated. The schema marksprovideras deprecated in favor ofproviders, whose entries usepackageinstead ofnpmand have nooptionsblock. The guide installs v2, so please confirm the snippet against the v2 config docs. - The OpenCode field table is titled "Environment variables", but it lists JSON config fields (
npm,options.baseURL, …). - The install step says "check that the binary is on your PATH" but shows no command for it.
versionSnippetis defined and unit-tested but never rendered.
Worth addressing
- Verify flow: it's split in two. Step 4 "Send a test prompt" only runs
cd … && claude, and the actual prompt sits in a separate block two sections further down. ConsoleLinkText: it swaps any literalapp.avenu.hyperjump.techin the copy for the word "OneAI". The domain disappears from the page, and the behavior depends on a magic substring in the translations.- Hub mailto: the email body reuses the CTA marketing copy, which is written in Hyperjump's voice ("we will write the setup guide"), not the sender's.
- Terminology: the hero says "coding agent"; the sections, table, and CTA say "harness".
- A11y: guide steps jump from
h1toh3, and there are four identical "Copy" buttons with no context and no live region. - Mobile: at iPhone width the field table clips its description column.
- Indonesian: "OneAI berbicara dengan Anthropic Messages API" reads as OneAI calling Anthropic's API.
- Copy safety: the Claude Code guide should warn against putting the key in the project's
.claude/settings.json, which is usually committed. The OpenCode guide should point at{env:…}substitution instead of a plaintext key. next.config.mjs:experimental.agentUpgrade: "security"is already the default in 16.4.6, so the line does nothing. Also, the Next.js bump is unrelated to this feature and deserves its own PR.
Code quality / nits
- Dead code:
DocsHarness.commandDocsGuide.verifyText(set to the prompt, never rendered)labels.importantandlabels.environment- locale keys
common.config_file,common.back_to_docs,common.columns.*
- Duplication:
- Protocol labels are inlined in
[slug]/page.tsxinstead of reusingPROTOCOL_LABELS. - The OG/alternates metadata block is now copy-pasted across three pages.
- The OG image path is hardcoded even though
ONEAI_OG_IMAGE_PATHis exported. - The hub quickstart copy and
common.virtual_key_textdescribe the same flow in different words, so they will drift.
- Protocol labels are inlined in
- Wrong axis:
codeLanguageis derived fromprotocol. It should come from the config file. - Unused DI parameters: no test exercises
labelLoadersorquickstartLoaders. - e2e: "returns to the docs hub" clicks the header nav link, not the back link it means to test.
- Hub cards: they show the raw enum
anthropic/openai-compatible, while the table below shows "Anthropic Messages API". The PR also mixesfont-monoandfont-geist-mono. HydrationMarker: this test-only hook now ships to every page through the shared layout. That's fine if intended; worth saying so in its doc comment.- Meta description: it says "and other terminal coding agents", but only two are documented.
added 5 commits
November 24, 2026 15:39
- Updated the DocsPage component to include new console and mailto CTAs. - Improved the layout and styling of the documentation sections. - Added localized metadata generation for better SEO and sharing. - Enhanced snippets for Claude Code and OpenCode with updated model IDs and configuration instructions. - Updated test cases to reflect changes in documentation and ensure proper functionality. - Removed deprecated experimental features from the Next.js configuration.
- Added `get-docs-index.ts` to build the documentation index with harness cards and endpoint rows. - Created `page.tsx` for the get-started hub, integrating metadata generation and rendering of quickstart steps, harnesses, and endpoints. - Introduced `snippets.ts` for code snippets used in documentation, ensuring consistency across locales. - Updated `sticky-nav-main.tsx` to support a solid header style. - Developed end-to-end tests for the get-started hub and individual harness guides, ensuring proper rendering and functionality. - Enhanced localized metadata and documentation strings for clarity and consistency across English and Indonesian locales. - Adjusted navigation labels to reflect the new get-started terminology.
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.
How to connect harness into OneAI