Skip to content

Feat: Documentation Page - #15

Merged
dennypradipta merged 9 commits into
mainfrom
task-14
Dec 2, 2026
Merged

dennypradipta merged 9 commits into
mainfrom
task-14

Conversation

@lukman7788

@lukman7788 lukman7788 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

How to connect harness into OneAI

Screenshot from 2026-11-26 17-00-57 Screenshot from 2026-11-26 17-02-09 Screenshot from 2026-11-26 17-02-27 Screenshot from 2026-11-26 17-03-18 Screenshot from 2026-11-26 17-03-43

Uploading Screenshot from 2026-11-26 17-04-20.png…

lukman@hyperjump.tech and others added 2 commits November 23, 2026 19:17
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.
@lukman7788 lukman7788 self-assigned this Nov 23, 2026

@kevinhermawan kevinhermawan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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, plus https://opencode.ai/v2/install, which currently resolves to 2.4.1 on the latest channel.

The groups below are ordered by priority. Each item has an inline comment with details.

Should fix before merge

  1. 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".
  2. The Claude Code model config contradicts its own copy.
    • ANTHROPIC_MODEL pins the session to the flash model, so the deepseek-v4-pro Sonnet mapping is effectively unused. Yet the table says Sonnet-tier is "where Claude Code sends most of its work".
    • ANTHROPIC_DEFAULT_OPUS_MODEL is missing. /model opus, opusplan, and subagents pinned to opus will request a Claude model ID that the virtual key doesn't allow.
  3. 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.
  4. The OpenCode snippet uses a key that its own $schema marks deprecated. The schema marks provider as deprecated in favor of providers, whose entries use package instead of npm and have no options block. The guide installs v2, so please confirm the snippet against the v2 config docs.
  5. The OpenCode field table is titled "Environment variables", but it lists JSON config fields (npm, options.baseURL, …).
  6. The install step says "check that the binary is on your PATH" but shows no command for it. versionSnippet is 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 literal app.avenu.hyperjump.tech in 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 h1 to h3, 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.command
    • DocsGuide.verifyText (set to the prompt, never rendered)
    • labels.important and labels.environment
    • locale keys common.config_file, common.back_to_docs, common.columns.*
  • Duplication:
    • Protocol labels are inlined in [slug]/page.tsx instead of reusing PROTOCOL_LABELS.
    • The OG/alternates metadata block is now copy-pasted across three pages.
    • The OG image path is hardcoded even though ONEAI_OG_IMAGE_PATH is exported.
    • The hub quickstart copy and common.virtual_key_text describe the same flow in different words, so they will drift.
  • Wrong axis: codeLanguage is derived from protocol. It should come from the config file.
  • Unused DI parameters: no test exercises labelLoaders or quickstartLoaders.
  • 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 mixes font-mono and font-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.

Comment thread app/[lang]/(hyperjump)/docs/snippets.ts Resolved
Comment thread app/[lang]/(hyperjump)/docs/snippets.ts Resolved
Comment thread app/[lang]/(hyperjump)/docs/snippets.ts Resolved
Comment thread locales/en/docs.json Resolved
Comment thread locales/en/docs.json Resolved
Comment thread locales/en/docs.json Resolved
Comment thread locales/en/docs.json Resolved
Comment thread locales/id/docs.json Resolved
lukman@hyperjump.tech 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.
@dennypradipta
dennypradipta merged commit 0d67198 into main Dec 2, 2026
21 of 22 checks passed
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.

3 participants