feat(gateway): add headless invoke command - #1967
Conversation
70955f5 to
be653e2
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## refactor #1967 +/- ##
============================================
+ Coverage 96.78% 96.81% +0.02%
============================================
Files 326 330 +4
Lines 18061 18510 +449
============================================
+ Hits 17480 17920 +440
- Misses 581 590 +9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
884a63b to
9b136d4
Compare
| output: StreamingResponseOutput, | ||
| writer: StreamingResponseWriter<T>, | ||
| ): Promise<void> { | ||
| if ( |
There was a problem hiding this comment.
would a successful DELETE operation pass this check? If it has no content type this would throw?
There was a problem hiding this comment.
Good call out thanks. I've updated now with your comment.
There was a problem hiding this comment.
Good catch. A successful 204/205 response has no representation body, so an absent Content-Type should not hit the binary TTY guard. I fixed this in 003fefd and added regression coverage for both statuses; unknown-content responses with other status codes remain protected.
9b136d4 to
30eeb82
Compare
Summary
agentcore gateway invokeas a headless, project-independent command withGET,POST, andDELETEsupportGetGateway, including SigV4, bearer-token, and unsigned requestsAUTHENTICATE_ONLYrequests with SigV4, matching live service behavior--request-type, structured--query, or discovery commandsValidation
bun test: 1,087 passed, 0 failed on currentrefactorbun run typecheckbun run lint:checkbun run format:checkbun run buildLive Gateway validation
Using
AWS_PROFILE=deployin account603141041947:NONE: HTTP 200 with file/stdin payloads and raw/JSON/file outputAWS_IAM: HTTP 200 with SigV4 and repeated query keysCUSTOM_JWT: HTTP 200 with inline/file/stdin bearer-token sourcesAUTHENTICATE_ONLY: HTTP 200 with SigV4 through the CLI;--bearer-tokenis rejected locallyCLIENT_CREDENTIALSMCP target invocationCompleteResourceTokenAuthsession binding, and successful per-user tool call with downstream user-token evidenceobo.*downstream tokenv1/models; OpenAI-compatible chat completion returnedinference gateway readyMethod Not Allowedin raw and JSON output, then exited 1 without duplicate stderrpath: [REDACTED]The reusable matrix and retry commands are documented at
gateway-invoke/auth-matrix/README.mdin the task workspace.