The searchWithOAuth() function sent a request body that the Cloud Code Assist API rejected with 400 INVALID_ARGUMENT. Two issues: 1. URL was missing ?alt=sse query parameter (endpoint returns SSE format) 2. Request body was missing the required userAgent field Also adds regression tests that capture the fetch call and assert the request URL and body match the Cloud Code Assist wire contract. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
9 lines
327 B
JSON
9 lines
327 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"declaration": false,
|
|
"noEmit": false
|
|
},
|
|
"include": ["src/tests/headless-cli-surface.test.ts", "src/tests/google-search-oauth-shape.test.ts", "src/tests/google-search-auth.repro.test.ts", "src/headless-events.ts", "src/headless-types.ts"],
|
|
"exclude": []
|
|
}
|