@g9tm/aiassistant 1.7.0 → 1.7.1

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/assistant.js CHANGED
@@ -226,6 +226,12 @@ export class Assistant {
226
226
  r = { ok: false, error: "device_error" };
227
227
  }
228
228
  }
229
+ // A tool that drew something for the person (a how-to card, the places a code is used) shows it in the conversation
230
+ // now, as a flow's answer does; the model's own words follow when the run ends.
231
+ if (r.ok && Array.isArray(r.blocks) && r.blocks.length > 0) {
232
+ this.store.local("assistant", r.say ?? "", new Date(timer(this.host).now()).toISOString(), r.blocks, "device");
233
+ this.emit();
234
+ }
229
235
  const body = { callId, ok: r.ok };
230
236
  if (r.output !== undefined)
231
237
  body.output = r.output;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g9tm/aiassistant",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Headless client of the G9 AI assistant: API client, run state, transports, block view models, safe text and Persian helpers. No DOM, no framework.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,7 +33,7 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@g9tm/aiassistant-contracts": "1.7.0"
36
+ "@g9tm/aiassistant-contracts": "1.7.1"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "tsc -p tsconfig.json",