@blade-hq/agent-client 2612.0.0-beta.80 → 2612.0.0-beta.82

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/dist/index.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  parseAskUserQuestion,
31
31
  transformSlashCommand,
32
32
  userFacingErrorText
33
- } from "./chunk-RI7ZYTYK.js";
33
+ } from "./chunk-FNFGLHK7.js";
34
34
  export {
35
35
  AgentSession,
36
36
  AgentSessionError,
package/dist/internal.js CHANGED
@@ -100,7 +100,7 @@ import {
100
100
  withTurns,
101
101
  workflowEntriesFromOutput,
102
102
  workflowNameFromArguments
103
- } from "./chunk-RI7ZYTYK.js";
103
+ } from "./chunk-FNFGLHK7.js";
104
104
 
105
105
  // src/polling-backoff.ts
106
106
  var MAX_BACKOFF_MS = 6e4;
@@ -229,11 +229,6 @@ export interface SessionHistory {
229
229
  tools_tokens?: number | null;
230
230
  tokenizer_model?: string | null;
231
231
  }
232
- export interface TokenizeResult {
233
- model: string;
234
- prompt_tokens: number;
235
- prompt: string;
236
- }
237
232
  export interface PaginatedSessionsResult {
238
233
  items: SessionInfo[];
239
234
  total: number;
@@ -586,13 +581,6 @@ export declare class SessionsResource {
586
581
  }): Promise<ResultFeedback>;
587
582
  getSessionContextStats(sessionId: string, init?: RequestInit): Promise<SessionContextStats>;
588
583
  getSessionHistory(sessionId: string, init?: RequestInit): Promise<SessionHistory>;
589
- tokenizePrompt(prompt: string, model?: string): Promise<TokenizeResult>;
590
- tokenizeMessages(messages: Array<Record<string, unknown>>, options?: {
591
- model?: string;
592
- add_generation_prompt?: boolean;
593
- enable_thinking?: boolean | null;
594
- tools?: Array<Record<string, unknown>>;
595
- }): Promise<TokenizeResult>;
596
584
  getSessionCheckpoints(sessionId: string, init?: RequestInit): Promise<{
597
585
  nodes: CheckpointNode[];
598
586
  leaf_id: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-client",
3
- "version": "2612.0.0-beta.80",
3
+ "version": "2612.0.0-beta.82",
4
4
  "description": "Blade Agent 框架无关客户端:会话实时状态机、REST 通道、弹窗登录、页面协作。浏览器与 Node.js 通用。",
5
5
  "repository": {
6
6
  "type": "git",
package/public-api.md CHANGED
@@ -1169,16 +1169,20 @@ key: string
1169
1169
  ## `PhoneDevice` (interface)
1170
1170
 
1171
1171
  ```ts
1172
- adb_online: boolean
1173
1172
  android_version: string | null | undefined
1173
+ arch: string | null | undefined
1174
1174
  created_at: string
1175
- enabled: boolean
1175
+ daemon_version: string | null | undefined
1176
+ enabled: boolean | undefined
1177
+ hostname: string | null | undefined
1176
1178
  id: string
1177
1179
  label: string
1178
1180
  last_seen_at: string | null | undefined
1181
+ machine_id: string | undefined
1179
1182
  model: string | null | undefined
1180
1183
  online: boolean
1181
- serial: string
1184
+ os: string | null | undefined
1185
+ serial: string | undefined
1182
1186
  session_id: string | null | undefined
1183
1187
  ```
1184
1188
 
@@ -1689,8 +1693,6 @@ shareFile: (sessionId: string, sourcePath: string, linkName?: string, shareFolde
1689
1693
  startReplaySession: (sourceSessionId: string, speed?: ReplaySpeed) => Promise<{ session_id: string; }>
1690
1694
  stopBackgroundTask: (sessionId: string, taskId: string) => Promise<BackgroundTaskStopResult>
1691
1695
  switchBranch: (sessionId: string, checkpointId: string) => Promise<{ id: string; leaf_id: string; }>
1692
- tokenizeMessages: (messages: Array<Record<string, unknown>>, options?: { model?: string; add_generation_prompt?: boolean; enable_thinking?: boolean | null; tools?: Array<Record<string, unknown>>; }) => Promise<TokenizeResult>
1693
- tokenizePrompt: (prompt: string, model?: string) => Promise<TokenizeResult>
1694
1696
  updateMcpAppContext: (sessionId: string, sourceId: string, body: McpAppContextUpdate, init?: RequestInit) => Promise<{ status: "accepted"; revision: string; }>
1695
1697
  updateReplaySession: (sessionId: string, payload: { speed?: ReplaySpeed; status?: "autonomous"; }) => Promise<{ replay_state: SessionInfo["replay_state"]; }>
1696
1698
  updateSession: (sessionId: string, payload: { intent?: string; chat_group_id?: string | null; }) => Promise<SessionDetail>