@blade-hq/agent-client 2612.0.0-beta.6 → 2612.0.0-beta.8

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/README.md CHANGED
@@ -711,7 +711,7 @@ chat.renderers = {
711
711
  - `session.send(text, { topicAssetRefs: [{ topic_id, path }] })` 为本条消息选择资产;省略时不继承上一条选择。服务端重新解析元数据,通过 Context 提供拉取指引,不自动读取正文。
712
712
  - `ChatMessage.topic_asset_refs` 是实时与历史一致的展示引用,不能当作访问许可。主题成员不会因此获得其他成员的会话读取权;任务的 `session_id` 只返回给该会话所有者。
713
713
 
714
- 资产引用目前是专用字段,不依赖通用 `context_refs` 注册机制。知识库的 `kbIds` 选择行为保持不变。
714
+ 资产引用目前是专用字段,不依赖通用 `context_refs` 注册机制。
715
715
 
716
716
 
717
717
  主题类型:`ChatGroup`、`ChatGroupRole`、`ChatGroupMember`、`ChatGroupTask`、`CreateChatGroupTask`、`UpdateChatGroupTask`、`ChatGroupAsset`、`ChatGroupAssetList`、`TopicAssetRef`。`normalizeTopicAssetRefs` 仅规范化展示引用并去重,不代替服务端鉴权。
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  var SDK_NAME = "agent-client";
3
- var SDK_VERSION = true ? "2612.0.0-beta.6" : "1.1.1";
3
+ var SDK_VERSION = true ? "2612.0.0-beta.8" : "1.1.1";
4
4
 
5
5
  // src/auth-login.ts
6
6
  function isAuthCallbackMessage(value) {
@@ -5397,7 +5397,6 @@ var AgentSession = class _AgentSession {
5397
5397
  pendingReplayMessage = null;
5398
5398
  pendingReplayMode;
5399
5399
  pendingReplayRefs;
5400
- pendingReplayKbIds;
5401
5400
  pendingReplayTopicAssetRefs;
5402
5401
  recentChatEndAt = 0;
5403
5402
  /**
@@ -5886,7 +5885,6 @@ var AgentSession = class _AgentSession {
5886
5885
  this.pendingReplayMessage = content;
5887
5886
  this.pendingReplayMode = options.mode;
5888
5887
  this.pendingReplayRefs = options.refs;
5889
- this.pendingReplayKbIds = options.kbIds;
5890
5888
  this.pendingReplayTopicAssetRefs = options.topicAssetRefs;
5891
5889
  }
5892
5890
  this.pendingChatRequestId = clientRequestId;
@@ -5903,7 +5901,6 @@ var AgentSession = class _AgentSession {
5903
5901
  replay_decision: options.replayDecision,
5904
5902
  app_context: appContext,
5905
5903
  refs: options.refs,
5906
- kb_ids: options.kbIds,
5907
5904
  topic_asset_refs: options.topicAssetRefs,
5908
5905
  // 运行中提交不必由客户端挑命令:服务端按会话运行状态决定直接执行还是入队。
5909
5906
  queue_when_running: options.queueWhenRunning === true
@@ -5989,7 +5986,6 @@ var AgentSession = class _AgentSession {
5989
5986
  this.pendingReplayMessage = null;
5990
5987
  this.pendingReplayMode = void 0;
5991
5988
  this.pendingReplayRefs = void 0;
5992
- this.pendingReplayKbIds = void 0;
5993
5989
  this.pendingReplayTopicAssetRefs = void 0;
5994
5990
  this.update((current) => {
5995
5991
  const filtered = optimisticTurnId ? current.turns.filter((turn) => turn.turn_id !== optimisticTurnId) : current.turns;
@@ -6523,12 +6519,10 @@ var AgentSession = class _AgentSession {
6523
6519
  const message = this.pendingReplayMessage ?? data.actual_message ?? "";
6524
6520
  const mode = this.pendingReplayMode;
6525
6521
  const refs = this.pendingReplayRefs;
6526
- const kbIds = this.pendingReplayKbIds;
6527
6522
  const topicAssetRefs = this.pendingReplayTopicAssetRefs;
6528
6523
  this.pendingReplayMessage = null;
6529
6524
  this.pendingReplayMode = void 0;
6530
6525
  this.pendingReplayRefs = void 0;
6531
- this.pendingReplayKbIds = void 0;
6532
6526
  this.pendingReplayTopicAssetRefs = void 0;
6533
6527
  const respond = (decision) => {
6534
6528
  void this.runtime.emitWithAck(
@@ -6539,7 +6533,6 @@ var AgentSession = class _AgentSession {
6539
6533
  mode,
6540
6534
  replay_decision: decision,
6541
6535
  refs,
6542
- kb_ids: kbIds,
6543
6536
  topic_asset_refs: topicAssetRefs
6544
6537
  },
6545
6538
  3e4
@@ -8201,4 +8194,4 @@ export {
8201
8194
  createSocket,
8202
8195
  BladeClient
8203
8196
  };
8204
- //# sourceMappingURL=chunk-KLI47WAU.js.map
8197
+ //# sourceMappingURL=chunk-ZTHGY4OX.js.map