release: dsh-infstarapi 0.2.0
CI / test (push) Canceled after 0s

This commit is contained in:
Coldsmile_7 committed 2026-11-26 08:24:56 +08:00
1 parent a8f689e39c
commit c340aec110
59 files changed
+1108 -1590

No files matched your search

+3 -3
View File
@@ -52,7 +52,7 @@ function chunked(url, headers, parts) {
test('private per-run config exposes one authenticated loopback HTTP search server, never an API key', async t => {
const fx = await bridgeFixture(t)
assert.match(fx.name, /^geek2api_search_[a-f0-9]{12}$/u)
assert.match(fx.name, /^infstarapi_search_[a-f0-9]{12}$/u)
assert.equal(fx.bridge.toolName, `mcp__${fx.name}__web_search`)
assert.match(fx.server.url, /^http:\/\/127\.0\.0\.1:\d+\/mcp$/u)
assert.equal(fx.server.type, 'http')
@@ -79,7 +79,7 @@ test('private per-run config exposes one authenticated loopback HTTP search serv
})
test('authenticated search returns bounded source projections and an untrusted-data notice, using a live backend choice', async t => {
let backend = 'claude'
let backend = 'gpt'
const calls = []
const fx = await bridgeFixture(t, {
backend: () => backend,
@@ -90,7 +90,7 @@ test('authenticated search returns bounded source projections and an untrusted-d
assert.match(result.content[0].text, /^External web content follows/u)
const value = JSON.parse(result.content[0].text.split('\n\n')[1])
assert.deepEqual(value.sources, [SOURCE])
assert.equal(value.backend, 'claude')
assert.equal(value.backend, 'gpt')
assert.equal(value.truncated, true)
assert.deepEqual(calls[0].request, { query: 'Node release', maxResults: 1 })
assert.ok(calls[0].signal instanceof AbortSignal)