feat: 灵犀 Studio Web UI 定制版
Build / build (push) Has been cancelled
NPM Lockfile Check / npm ci --ignore-scripts (push) Has been cancelled
Playwright / e2e (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yi
2026-06-05 11:29:11 +08:00
commit 7d10320a82
643 changed files with 164406 additions and 0 deletions
@@ -0,0 +1,20 @@
import { describe, expect, it, vi } from 'vitest'
describe('AgentBridgeClient clarify responses', () => {
it('sends clarify_respond requests to the bridge', async () => {
const { AgentBridgeClient } = await import('../../packages/server/src/services/hermes/agent-bridge/client')
const client = new AgentBridgeClient({ endpoint: 'tcp://127.0.0.1:1', connectRetryMs: 0, timeoutMs: 1 })
const request = vi.spyOn(client, 'request').mockResolvedValue({ ok: true, resolved: true })
await expect(client.clarifyRespond('clarify-1', 'Use the first option')).resolves.toEqual({
ok: true,
resolved: true,
})
expect(request).toHaveBeenCalledWith({
action: 'clarify_respond',
clarify_id: 'clarify-1',
response: 'Use the first option',
})
})
})