@blade-hq/agent-client 2610.0.0-beta.26 → 2610.0.0-beta.27

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.
@@ -65,6 +65,8 @@ export interface TurnProjection {
65
65
  context_order?: number | null;
66
66
  context_action?: import("./context").ContextAction | null;
67
67
  context_revision?: string | null;
68
+ /** 原始 Context 内容仅供开发者模式诊断;常规消息投影不消费。 */
69
+ context_content?: unknown;
68
70
  display_title?: string | null;
69
71
  display_summary?: string | null;
70
72
  sources?: import("./context").ContextSourceInfo[] | null;
@@ -8,7 +8,6 @@ import type { AppCliAttachment, AppCliDefinition, FileEntry } from "../resources
8
8
  import { type ConnectionStatus, type SessionState } from "./state";
9
9
  /** SessionHub 注入给 AgentSession 的运行时依赖(socket 收发 + REST 补数)。 */
10
10
  export interface SessionRuntime {
11
- streamTokens: boolean;
12
11
  emitEvent(event: string, data: unknown): void;
13
12
  emitWithAck(event: string, data: unknown, timeoutMs: number): Promise<Record<string, unknown> | undefined>;
14
13
  ensureConnected(): void;
@@ -53,8 +52,6 @@ export interface SendOptions {
53
52
  deprecate_entry_ids: string[];
54
53
  };
55
54
  replayDecision?: "keep_replay" | "continue_replay";
56
- /** 用户 @ 的知识库 id:后端先用原话在这些库里预检索,本轮 kb_search 也默认限定在这些库。 */
57
- kbIds?: number[];
58
55
  }
59
56
  export declare function sessionStatusFromChatEnd(status: string | undefined): SessionStatus;
60
57
  /**
@@ -32,7 +32,6 @@ export declare namespace ChatSendPayloadSchema {
32
32
  [k: string]: unknown;
33
33
  } | null);
34
34
  type CompactionRatio = (number | null);
35
- type KbIds = (number[] | null);
36
35
  interface ChatSendPayload {
37
36
  session_id: SessionId;
38
37
  message: Message;
@@ -49,7 +48,6 @@ export declare namespace ChatSendPayloadSchema {
49
48
  runtime_env?: RuntimeEnv;
50
49
  app_context?: AppContext;
51
50
  compaction_ratio?: CompactionRatio;
52
- kb_ids?: KbIds;
53
51
  [k: string]: unknown;
54
52
  }
55
53
  interface Message {
@@ -95,14 +93,12 @@ export declare namespace SessionSubscribePayloadSchema {
95
93
  type EventFormat = "raw";
96
94
  type AfterSequence = number;
97
95
  type Resume = boolean;
98
- type StreamTokens = boolean;
99
96
  interface SessionSubscribePayload {
100
97
  session_id: SessionId;
101
98
  mode?: Mode;
102
99
  event_format?: EventFormat;
103
100
  after_sequence?: AfterSequence;
104
101
  resume?: Resume;
105
- stream_tokens?: StreamTokens;
106
102
  [k: string]: unknown;
107
103
  }
108
104
  }
@@ -118,7 +114,6 @@ export declare namespace SessionSubscribeBatchPayloadSchema {
118
114
  type EventFormat = "raw";
119
115
  type AfterSequence = number;
120
116
  type Resume = boolean;
121
- type StreamTokens = boolean;
122
117
  interface SessionSubscribeBatchPayload {
123
118
  sessions: Sessions;
124
119
  [k: string]: unknown;
@@ -129,7 +124,6 @@ export declare namespace SessionSubscribeBatchPayloadSchema {
129
124
  event_format?: EventFormat;
130
125
  after_sequence?: AfterSequence;
131
126
  resume?: Resume;
132
- stream_tokens?: StreamTokens;
133
127
  [k: string]: unknown;
134
128
  }
135
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-client",
3
- "version": "2610.0.0-beta.26",
3
+ "version": "2610.0.0-beta.27",
4
4
  "description": "Blade Agent 框架无关客户端:会话实时状态机、REST 通道、弹窗登录、页面协作。浏览器与 Node.js 通用。",
5
5
  "repository": {
6
6
  "type": "git",
package/public-api.md CHANGED
@@ -247,7 +247,6 @@ baseUrl: string
247
247
  fetchImpl: { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; } | undefined
248
248
  onRefreshSuccess: (() => void | Promise<void>) | undefined
249
249
  socketToken: string | (() => string | null | undefined) | undefined
250
- streamTokens: boolean | undefined
251
250
  token: string | (() => string | null | undefined) | undefined
252
251
  tokenStorage: TokenStorageMode | undefined
253
252
  ```
@@ -998,7 +997,6 @@ SDK_VERSION: string
998
997
 
999
998
  ```ts
1000
999
  askUserAnswer: Record<string, unknown> | undefined
1001
- kbIds: number[] | undefined
1002
1000
  mode: string | undefined
1003
1001
  model: string | undefined
1004
1002
  replayDecision: "keep_replay" | "continue_replay" | undefined
@@ -1440,6 +1438,7 @@ blocks: ContentBlock[]
1440
1438
  client_render_id: string | null | undefined
1441
1439
  compaction_id: string | null | undefined
1442
1440
  context_action: ContextAction | null | undefined
1441
+ context_content: unknown
1443
1442
  context_key: string | null | undefined
1444
1443
  context_kind: string | null | undefined
1445
1444
  context_name: string | null | undefined