@gopherhole/cli 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -116,7 +116,9 @@ async function askAgent(client, agentId, text, opts) {
116
116
  const sendConfig = Object.keys(config).length > 0 ? config : undefined;
117
117
  const task = await client.sendText(agentId, text, sendConfig);
118
118
  const terminalStates = ['completed', 'failed', 'canceled', 'rejected'];
119
- let current = task;
119
+ // Always hydrate from GetTask — the non-blocking SendMessage response may
120
+ // claim 'completed' without including artifacts when the target responds inline.
121
+ let current = await client.getTask(task.id);
120
122
  const start = Date.now();
121
123
  const maxWait = 60_000;
122
124
  const poll = 1_000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gopherhole/cli",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "GopherHole CLI - Connect AI agents to the world",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -115,7 +115,9 @@ async function askAgent(client: A2AClient, agentId: string, text: string, opts?:
115
115
  const task = await client.sendText(agentId, text, sendConfig as any);
116
116
 
117
117
  const terminalStates = ['completed', 'failed', 'canceled', 'rejected'];
118
- let current = task;
118
+ // Always hydrate from GetTask — the non-blocking SendMessage response may
119
+ // claim 'completed' without including artifacts when the target responds inline.
120
+ let current = await client.getTask(task.id);
119
121
  const start = Date.now();
120
122
  const maxWait = 60_000;
121
123
  const poll = 1_000;