@blade-hq/agent-client 2610.0.0-beta.48 → 2610.0.0-beta.49

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
@@ -172,7 +172,7 @@ await client.sessions.getSessionTurnsPage(id, { before: page.nextBefore! })
172
172
  ```
173
173
 
174
174
  会话插件可通过 `client.sessions.listSessionPlugins(id)` 查询,并用
175
- `client.sessions.setSessionPluginActivation(id, name, active)` 切换当前会话;返回项类型为公开的 `SessionPlugin`。
175
+ `client.sessions.setSessionPluginActivation(id, name, active)` 切换当前会话。列表项为 `SessionPlugin`;修改结果为 `SessionPluginActivation`,只返回选择和准备状态,安装事实需从列表获取。
176
176
 
177
177
  ### 会话回放(演示 / 彩排)
178
178
 
package/dist/index.d.ts CHANGED
@@ -28,7 +28,7 @@ export type { ComputerOS, ComputerState, SessionComputer, SessionComputerList, }
28
28
  export { ModelsResource } from "./resources/models";
29
29
  export type { ModelCatalog, ModelOption } from "./resources/models";
30
30
  export type { SessionsResource } from "./resources/sessions";
31
- export type { SessionPlugin } from "./resources/sessions";
31
+ export type { SessionPlugin, SessionPluginActivation } from "./resources/sessions";
32
32
  export { ChatProjectsResource } from "./resources/chat-projects";
33
33
  export type { ChatProject } from "./resources/chat-projects";
34
34
  export { hasChatRunEvent } from "./shared/projection";
package/dist/index.js CHANGED
@@ -2271,7 +2271,8 @@ function projectHistory(entries) {
2271
2271
  const data = entry.data ?? {};
2272
2272
  const toolCallId = String(data.tool_call_id ?? "");
2273
2273
  const owner = kind === "tool_bridge" ? toolCallId ? toolOwners.get(toolCallId) : void 0 : toolOwners.get(toolCallId) ?? findLatestAssistant(turns, loopId);
2274
- const content = kind === "tool_ui" ? data.ui : data.bridge;
2274
+ const rawContent = kind === "tool_ui" ? data.ui : data.bridge;
2275
+ const content = kind === "tool_ui" && isRecord(rawContent) ? { ...rawContent, archived: true } : rawContent;
2275
2276
  if (owner && content !== void 0) {
2276
2277
  owner.blocks.push({
2277
2278
  type: kind,
@@ -4857,7 +4858,8 @@ ${text}` } : block
4857
4858
  const ui = block.content;
4858
4859
  if (ui.target !== "preview") continue;
4859
4860
  const previewType = ui.resourceHTML ? "resource-html" : "resource-uri";
4860
- const previewContent = ui.resourceHTML ?? ui.resourceUri ?? ui.resourceURI;
4861
+ const previewContent = ui.resourceHTML ?? (ui.archived ? void 0 : ui.resourceUri ?? ui.resourceURI);
4862
+ if (!previewContent) continue;
4861
4863
  if (!previewContent) continue;
4862
4864
  const key = `${block.tool_call_id}:${previewType}`;
4863
4865
  if (this.deliveredToolPreviews.get(key) === previewContent) continue;
@@ -6032,7 +6034,7 @@ function resolveServiceUrl(endpoints, name, path = "") {
6032
6034
 
6033
6035
  // src/version.ts
6034
6036
  var SDK_NAME = "agent-client";
6035
- var SDK_VERSION = true ? "2610.0.0-beta.48" : "1.1.1";
6037
+ var SDK_VERSION = true ? "2610.0.0-beta.49" : "1.1.1";
6036
6038
 
6037
6039
  // src/commands/protocol.ts
6038
6040
  function isCommandEnvelope(value) {