@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 +3 -1
- package/package.json +1 -1
- package/src/index.ts +3 -1
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
|
-
|
|
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
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
|
-
|
|
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;
|