Skip to content

feat(presets): add Sight More built-in preset - #4

Open
junnl wants to merge 1 commit into
2ue:mainfrom
junnl:feat/add-sight-more-preset
Open

feat(presets): add Sight More built-in preset#4
junnl wants to merge 1 commit into
2ue:mainfrom
junnl:feat/add-sight-more-preset

Conversation

@junnl

@junnl junnl commented Jun 2, 2026

Copy link
Copy Markdown

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:

  • New packages/core/src/presets/sight.ts exports SIGHT_MORE_ROOT_URL and a createSightPreset(transformBaseUrl?) factory, mirroring gmn.ts.
  • Each tool's preset list spreads ...createSightPreset().
  • OpenClaw spreads ...createSightPreset((b) => \${b}/v1`), matching how it already handles GMN's /v1` suffix.

Assumption

Like the GMN preset, this treats 2api.sight-more.com as 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

  • Added packages/core/src/presets/sight.test.ts verifying Sight More appears in all five preset lists with the correct base URL (root for CC/Codex/Gemini/OpenCode, /v1 for OpenClaw).
  • pnpm -r build passes (typecheck clean across core, CLI, desktop).
  • pnpm --filter @ccman/core test passes: 13 files / 56 tests.

Other

  • Updated packages/cli/README.md preset tables and counts.
  • Added a changeset (@ccman/core + ccman, minor).

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.
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