@blade-hq/agent-client 2612.0.0-beta.61 → 2612.0.0-beta.63

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.
@@ -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.61" : "1.1.1";
227
+ var SDK_VERSION = true ? "2612.0.0-beta.63" : "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) {
@@ -8147,6 +8156,7 @@ var BladeClient = class _BladeClient {
8147
8156
  computers;
8148
8157
  /** 用户接进来的手机:账号级清单、会话启用、画面信令。 */
8149
8158
  phones;
8159
+ llm;
8150
8160
  models;
8151
8161
  sessions;
8152
8162
  /** 按用户读取的插件目录与图标;没有会话时也能用。 */
@@ -8173,6 +8183,7 @@ var BladeClient = class _BladeClient {
8173
8183
  this.headless = new HeadlessResource(this);
8174
8184
  this.computers = new ComputersResource(this);
8175
8185
  this.phones = new PhonesResource(this);
8186
+ this.llm = new LlmResource(this);
8176
8187
  this.models = new ModelsResource(this);
8177
8188
  this.sessions = new SessionsResource(this);
8178
8189
  this.plugins = new PluginsResource(this);
@@ -9337,4 +9348,4 @@ export {
9337
9348
  parseAskUserQuestion,
9338
9349
  formatAskUserAnswer
9339
9350
  };
9340
- //# sourceMappingURL=chunk-IMWLNQ2Y.js.map
9351
+ //# sourceMappingURL=chunk-VRAKDCAT.js.map