@blueking/chat-helper 0.0.10-beta.4 → 0.0.11

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.
@@ -131,12 +131,10 @@ import { ref } from 'vue';
131
131
  // 默认加载消息,但允许跳过(新会话消息必定为空,无需加载)
132
132
  if ((options === null || options === void 0 ? void 0 : options.loadMessages) !== false) {
133
133
  var _mediator_message, // 继续聊天
134
- _mediator_agent1, // 轮询接口,判断是否可以继续聊天
135
- _mediator_agent2;
134
+ _mediator_agent1;
136
135
  // 获取会话内容
137
136
  yield (_mediator_message = mediator.message) === null || _mediator_message === void 0 ? void 0 : _mediator_message.getMessages(sessionCode);
138
137
  (_mediator_agent1 = mediator.agent) === null || _mediator_agent1 === void 0 ? void 0 : _mediator_agent1.resumeStreamingChat(sessionCode);
139
- (_mediator_agent2 = mediator.agent) === null || _mediator_agent2 === void 0 ? void 0 : _mediator_agent2.pollResumeSession(sessionCode);
140
138
  } else {
141
139
  // 新会话,清空消息列表
142
140
  if (mediator.message) {
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@blueking/chat-helper",
3
- "version": "0.0.10-beta.4",
3
+ "version": "0.0.11",
4
4
  "description": "",
5
5
  "main": "./dist/index.ts.js",
6
6
  "types": "./dist/index.d.ts",
7
- "scripts": {
8
- "build": "bk-cli-service build && vue-tsc --emitDeclarationOnly"
9
- },
10
7
  "keywords": [
11
8
  "chat-helper"
12
9
  ],
@@ -20,7 +17,6 @@
20
17
  "url": "https://github.com/TencentBlueKing/bk-aidev-agent.git",
21
18
  "directory": "src/frontend/ai-blueking/packages/chat-helper"
22
19
  },
23
- "packageManager": "pnpm@10.17.1",
24
20
  "peerDependencies": {
25
21
  "vue": "^3.5.24"
26
22
  },
@@ -30,7 +26,7 @@
30
26
  "typescript": "^5.5.4",
31
27
  "vue-tsc": "^3.1.4"
32
28
  },
33
- "dependencies": {
34
- "@types/json-schema": "^7.0.15"
29
+ "scripts": {
30
+ "build": "bk-cli-service build && vue-tsc --emitDeclarationOnly"
35
31
  }
36
- }
32
+ }