GitNexus/gitnexus/skills
samuel mbabhazi 42bb67cb6a
feat(wiki): add a native anthropic provider for the Messages API (#3816)
* feat(wiki): add a native anthropic provider for the Messages API

gitnexus wiki could only reach Claude through the Claude Code CLI or an
OpenAI-compatible gateway. The anthropic provider calls the Messages API
directly: x-api-key auth with ANTHROPIC_API_KEY (then GITNEXUS_API_KEY,
never OPENAI_API_KEY), a top-level system prompt, max_tokens, and no
sampling parameters. Only text blocks become the page; max_tokens and
refusal stops fail the call, like finish_reason "length" does today.

readSSEStream now takes a StreamProtocol describing what each data:
payload contributes, so chat completions and Messages share one reader
(the consolidation asked for on #1404). The chat-completions request is
built by the same code as before.

Closes #3413

* fix(wiki): accept only https image URLs for the anthropic provider

---------

Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
2026-11-04 13:12:26 +00:00
..
gitnexus-lfg feat(skills): GitNexus Engineering Tool Kits (#2566) 2026-07-19 15:07:24 +01:00
gitnexus-plan fix(skills): publish gitnexus-plan artifacts on macOS without an interpreter (#2905) (#2922) 2026-08-11 12:24:53 +01:00
gitnexus-review feat(cache): derive parser and PDG cache identities automatically (#3606) 2026-10-17 07:38:45 +03:00
gitnexus-work fix(mcp): stop scaling the detect_changes query with the diff's hunk count (#2915) (#2930) 2026-08-12 14:51:17 +01:00
gitnexus-cli.md feat(wiki): add a native anthropic provider for the Messages API (#3816) 2026-11-04 13:12:26 +00:00
gitnexus-debugging.md feat(mcp): reduce response size and query overhead (#3621) 2026-10-18 17:32:09 +01:00
gitnexus-exploring.md feat(mcp): reduce response size and query overhead (#3621) 2026-10-18 17:32:09 +01:00
gitnexus-guide.md feat(mcp): reduce response size and query overhead (#3621) 2026-10-18 17:32:09 +01:00
gitnexus-impact-analysis.md fix(mcp): name the indexed ref on hot read tool staleness (#3291) (#3293) 2026-09-16 07:29:04 +00:00
gitnexus-pdg-query.md docs: fix bundled skill reference drift (#2362) 2026-07-03 09:50:56 +01:00
gitnexus-refactoring.md fix(rename): apply the exact reviewed edit plan (#3617) 2026-10-17 19:38:01 +01:00
gitnexus-taint-analysis.md feat(cache): derive parser and PDG cache identities automatically (#3606) 2026-10-17 07:38:45 +03:00