omnigateway 0.15.0 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +13 -0
  2. package/bin/omni.js +243 -25861
  3. package/gateway.js +2157 -52442
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -449,6 +449,19 @@ Worth knowing before you deploy it:
449
449
  Anthropic thinking fields (including beta controls) pass through only to
450
450
  Anthropic; supply any required beta header yourself. Hidden adaptive display
451
451
  omits generated Responses reasoning summaries, without inventing a default.
452
+ - **Claude Code auto mode supports Anthropic server-side classifier results.**
453
+ On Anthropic targets, the gateway forwards `safeguards`, protocol headers, and
454
+ original `safeguard_results` in both streaming and buffered replies. Safeguard
455
+ requests retain the client's system blocks and tool names/IDs rather than the
456
+ ordinary OAuth system/tool transformations. Eligibility and no-charge checks
457
+ still depend on Anthropic's rollout for the upstream credential/model; routing
458
+ to another provider does not supply them. This is not a byte-transparent proxy:
459
+ gateway policies and other request normalization still apply.
460
+ After deploying this version, start a **new Claude Code session** and check
461
+ `/status` → **Auto mode server: Enabled**. If the upstream is not eligible,
462
+ `CLAUDE_CODE_AUTO_MODE_SERVER=0` before starting Claude Code uses its separate
463
+ classifier calls instead; these remain billed as token usage. See
464
+ [Anthropic's notice guide](https://code.claude.com/docs/en/auto-mode-classifier-billing).
452
465
  - **An OpenAI OAuth (ChatGPT) target presents itself as Codex, and answers like
453
466
  it.** Requests on that leg match Codex 0.163.0's TUI field by field, which
454
467
  changes model behaviour for every client routed there, Claude Code included: