@ray-js/t-agent-plugin-aistream 0.2.8-beta.6 → 0.2.8-beta.7

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.
@@ -154,7 +154,7 @@ export function withBuildIn(options) {
154
154
  parts.forEach(i => {
155
155
  if (i.attachmentType === 'image') {
156
156
  const d = i.attachment;
157
- if (d.streamFlag === StreamFlag.ONLY_ONE || d.streamFlag === StreamFlag.END) {
157
+ if (d.streamFlag === StreamFlag.ONLY_ONE || d.streamFlag === StreamFlag.START || d.streamFlag === StreamFlag.IN_PROGRESS) {
158
158
  respMsg.addTile('image', {
159
159
  src: "".concat(prefix).concat(d.path)
160
160
  });
@@ -198,7 +198,7 @@ export function withBuildIn(options) {
198
198
  // 推送新的输入块(发送新消息)时,立即停止当前语音播放
199
199
  onInputBlocksPush(() => {
200
200
  stopCurrent();
201
- });
201
+ }, 'before');
202
202
  onAttachmentCompose((part, respMsg) => {
203
203
  if (part.attachmentType === 'audio') {
204
204
  const audio = part.attachment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/t-agent-plugin-aistream",
3
- "version": "0.2.8-beta.6",
3
+ "version": "0.2.8-beta.7",
4
4
  "author": "Tuya.inc",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -36,5 +36,5 @@
36
36
  "devDependencies": {
37
37
  "@types/url-parse": "^1.4.11"
38
38
  },
39
- "gitHead": "c79954a409ec0606a51ea4caab4ba90ee74155a7"
39
+ "gitHead": "0219043e3dc004cf8200714fd0251ae6a0c686fb"
40
40
  }