From PR #1341 review (jariy17).
The SDK now has CreateHarnessCommand, GetHarnessCommand, UpdateHarnessCommand, DeleteHarnessCommand, ListHarnessesCommand in @aws-sdk/client-bedrock-agentcore-control, and InvokeHarnessCommand in @aws-sdk/client-bedrock-agentcore.
The SigV4 CRUD operations and ~150 lines of event stream parsing in src/cli/aws/agentcore-harness.ts can be replaced by SDK commands. The bearer token path for CUSTOM_JWT auth (line 426) still needs raw fetch.
Once migrated, src/cli/aws/api-client.ts becomes dead code and can be deleted together.
From PR #1341 review (jariy17).
The SDK now has
CreateHarnessCommand,GetHarnessCommand,UpdateHarnessCommand,DeleteHarnessCommand,ListHarnessesCommandin@aws-sdk/client-bedrock-agentcore-control, andInvokeHarnessCommandin@aws-sdk/client-bedrock-agentcore.The SigV4 CRUD operations and ~150 lines of event stream parsing in
src/cli/aws/agentcore-harness.tscan be replaced by SDK commands. The bearer token path for CUSTOM_JWT auth (line 426) still needs raw fetch.Once migrated,
src/cli/aws/api-client.tsbecomes dead code and can be deleted together.