refactor(agent): replace OMP with Claude Code kernel

This commit is contained in:
xiaohan.yuan committed 2026-10-20 14:47:56 +08:00
1 parent 0fb2226f8c
commit 9a1f182397
232 files changed
+2561 -25564

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import assert from 'node:assert/strict'
import { claudeAnthropicBaseUrl } from '../src/main/agent/claude/claude-endpoint'
assert.equal(claudeAnthropicBaseUrl('https://api.example.com'), 'https://api.example.com')
assert.equal(claudeAnthropicBaseUrl('https://api.example.com/'), 'https://api.example.com')
assert.equal(claudeAnthropicBaseUrl('https://api.example.com/v1'), 'https://api.example.com')
assert.equal(claudeAnthropicBaseUrl('https://api.example.com/v1/messages'), 'https://api.example.com')
assert.equal(claudeAnthropicBaseUrl('https://api.example.com/anthropic/v1'), 'https://api.example.com/anthropic')
assert.equal(claudeAnthropicBaseUrl('http://gateway.local:8080/proxy/v1/'), 'http://gateway.local:8080/proxy')
console.log('{"result":"PASS","cases":6}')