Merge origin/master into worktree/llm-reasoning-effort

This commit is contained in:
Yichen Jiang
2026-07-25 07:59:21 +08:00
856 changed files with 23972 additions and 1907 deletions

View File

@@ -263,9 +263,14 @@ describe('headless stream-json snapshots', () => {
const records = parseJsonl(logs[0]?.content ?? '')
const calls = records.filter(record => record.type === 'tool/call')
.map(record => (record.data as JsonObject | undefined)?.name)
expect(calls).toEqual(['create_goal', 'get_goal'])
expect(calls).toEqual(['update_goal', 'create_goal', 'get_goal'])
const probeResult = records.find(record => record.type === 'tool/result'
&& (record.data as JsonObject | undefined)?.callId === 'call_goal_probe')
const probeData = probeResult?.data as JsonObject | undefined
expect(probeData?.isError).toBe(true)
expect((probeData?.error as JsonObject | undefined)?.code).toBe('GOAL_NOT_FOUND')
const goalChanges = records.filter((record) => {
if (record.type !== 'context/message') return false
if (record.type !== 'user/message') return false
const data = record.data as JsonObject | undefined
const meta = data?.meta as JsonObject | undefined
return meta?.kind === 'goal/change'