feat(presets): add Sight More built-in preset - #4
Open
junnl wants to merge 1 commit into
Open
Conversation
Add the Sight More API relay (https://2api.sight-more.com) as a built-in preset for Claude Code, Codex, Gemini CLI, OpenCode, and OpenClaw. Follows the existing GMN pattern: a shared createSightPreset() factory feeds every tool's preset list, and OpenClaw appends the /v1 suffix to match its convention. Adds sight.test.ts covering all five tools.
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
Adds Sight More (
https://2api.sight-more.com) as a built-in preset across all supported tools: Claude Code, Codex, Gemini CLI, OpenCode, and OpenClaw.Users can now select "Sight More" from the preset list and only fill in their API Key, instead of manually typing the base URL for each tool.
How
Follows the existing GMN pattern exactly:
packages/core/src/presets/sight.tsexportsSIGHT_MORE_ROOT_URLand acreateSightPreset(transformBaseUrl?)factory, mirroringgmn.ts....createSightPreset()....createSightPreset((b) => \${b}/v1`), matching how it already handles GMN's/v1` suffix.Assumption
Like the GMN preset, this treats
2api.sight-more.comas a multi-protocol relay that serves the Anthropic (Claude), OpenAI (Codex/OpenCode), and Gemini protocols on the same host. The preset only supplies the base URL; the per-tool writers handle protocol-specific config as they already do. If the endpoint paths differ per protocol, let me know and I'll adjust.Tests
packages/core/src/presets/sight.test.tsverifying Sight More appears in all five preset lists with the correct base URL (root for CC/Codex/Gemini/OpenCode,/v1for OpenClaw).pnpm -r buildpasses (typecheck clean across core, CLI, desktop).pnpm --filter @ccman/core testpasses: 13 files / 56 tests.Other
packages/cli/README.mdpreset tables and counts.@ccman/core+ccman, minor).