@blade-hq/agent-client 2612.0.0-beta.60 → 2612.0.0-beta.62

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
@@ -223,7 +223,9 @@ const applied = await client.sessions.updateSessionConfiguration(id, {
223
223
  console.log(applied.version, applied.revision)
224
224
  ```
225
225
 
226
- Solution 来源用 `solution_ref`、`solution_id` 或 `session_solution_asset_id` 三选一;只更新
226
+ 创建和配置升级均可直接提交 `session_solution_files: [{ path, content }]`(UTF-8)。
227
+ 服务端负责暂存、校验、安装与清理,不需要额外上传/删除请求,也不占显式上传配额。
228
+ Solution 来源在 `solution_ref`、`solution_id`、`session_solution_asset_id` 和 `session_solution_files` 中选一个;只更新
227
229
  `biz_role_id` 时使用当前方案。其他可升级字段如示例。省略字段保持旧值;数组和对象整体
228
230
  替换,`[]`/`{}` 清空。只有 `enable_thinking`、`compaction_ratio` 接受 null,表示恢复默认。
229
231
  角色省略时保留原角色,新方案不包含它则报错。MCP 同 ID 的来源省略 bearer_token 保留旧
@@ -7,6 +7,7 @@ import { AuthResource } from "./resources/auth";
7
7
  import { HeadlessResource } from "./resources/headless";
8
8
  import { ComputersResource } from "./resources/computers";
9
9
  import { PhonesResource } from "./resources/phones";
10
+ import { LlmResource } from "./resources/llm";
10
11
  import { ModelsResource } from "./resources/models";
11
12
  import { SessionsResource } from "./resources/sessions";
12
13
  import { PluginsResource } from "./resources/plugins";
@@ -56,6 +57,7 @@ export declare class BladeClient {
56
57
  readonly computers: ComputersResource;
57
58
  /** 用户接进来的手机:账号级清单、会话启用、画面信令。 */
58
59
  readonly phones: PhonesResource;
60
+ readonly llm: LlmResource;
59
61
  readonly models: ModelsResource;
60
62
  readonly sessions: SessionsResource;
61
63
  /** 按用户读取的插件目录与图标;没有会话时也能用。 */
@@ -224,7 +224,7 @@ var ToolProvider = class {
224
224
 
225
225
  // src/version.ts
226
226
  var SDK_NAME = "agent-client";
227
- var SDK_VERSION = true ? "2612.0.0-beta.60" : "1.1.1";
227
+ var SDK_VERSION = true ? "2612.0.0-beta.62" : "1.1.1";
228
228
 
229
229
  // src/auth-login.ts
230
230
  function isAuthCallbackMessage(value) {
@@ -3348,6 +3348,15 @@ var PhonesResource = class {
3348
3348
  }
3349
3349
  };
3350
3350
 
3351
+ // src/resources/llm.ts
3352
+ var LlmResource = class {
3353
+ constructor(client) {
3354
+ this.client = client;
3355
+ }
3356
+ client;
3357
+ chat = { completions: { create: (body, options = {}) => this.client.jsonFromInit("/api/llm/chat/completions", { method: "POST", body: JSON.stringify(body), signal: options.signal }) } };
3358
+ };
3359
+
3351
3360
  // src/resources/models.ts
3352
3361
  var ModelsResource = class {
3353
3362
  constructor(client) {
@@ -3567,6 +3576,7 @@ function toCreateSessionPayload(request) {
3567
3576
  mcp_sources: request.mcp_sources,
3568
3577
  skip_confirmations: request.skip_confirmations,
3569
3578
  session_solution_asset_id: request.session_solution_asset_id ?? null,
3579
+ session_solution_files: request.session_solution_files,
3570
3580
  solution_snapshot_session_id: request.solution_snapshot_session_id ?? null,
3571
3581
  compaction_ratio: request.compaction_ratio ?? null,
3572
3582
  ...request.chat_group_id ? { chat_group_id: request.chat_group_id } : {}
@@ -8146,6 +8156,7 @@ var BladeClient = class _BladeClient {
8146
8156
  computers;
8147
8157
  /** 用户接进来的手机:账号级清单、会话启用、画面信令。 */
8148
8158
  phones;
8159
+ llm;
8149
8160
  models;
8150
8161
  sessions;
8151
8162
  /** 按用户读取的插件目录与图标;没有会话时也能用。 */
@@ -8172,6 +8183,7 @@ var BladeClient = class _BladeClient {
8172
8183
  this.headless = new HeadlessResource(this);
8173
8184
  this.computers = new ComputersResource(this);
8174
8185
  this.phones = new PhonesResource(this);
8186
+ this.llm = new LlmResource(this);
8175
8187
  this.models = new ModelsResource(this);
8176
8188
  this.sessions = new SessionsResource(this);
8177
8189
  this.plugins = new PluginsResource(this);
@@ -9336,4 +9348,4 @@ export {
9336
9348
  parseAskUserQuestion,
9337
9349
  formatAskUserAnswer
9338
9350
  };
9339
- //# sourceMappingURL=chunk-734652E4.js.map
9351
+ //# sourceMappingURL=chunk-N3IFP75T.js.map