@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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/resources/sessions.d.ts +7 -2
- package/package.json +1 -1
- package/public-api.md +9 -3
|
@@ -8,13 +8,18 @@ import { type SessionDefinition } from "../session/definition";
|
|
|
8
8
|
import type { SessionProfile } from "../types/sdk-profile";
|
|
9
9
|
export interface SessionPlugin {
|
|
10
10
|
name: string;
|
|
11
|
-
|
|
11
|
+
/** Whether BH lists this plugin for the current user; null means BH was unavailable. */
|
|
12
|
+
installed: boolean | null;
|
|
13
|
+
/** Persisted session choice, independent of preparation success. */
|
|
12
14
|
active: boolean;
|
|
15
|
+
/** Previously prepared skills may remain after deselection. */
|
|
13
16
|
projected: boolean;
|
|
14
17
|
projection_source?: string | null;
|
|
15
18
|
status: string;
|
|
16
19
|
reason?: string | null;
|
|
17
20
|
}
|
|
21
|
+
/** Selection/preparation result; installed facts are obtained from the BH-backed list. */
|
|
22
|
+
export type SessionPluginActivation = Pick<SessionPlugin, "name" | "active" | "status" | "reason">;
|
|
18
23
|
export interface CreateSessionRequest {
|
|
19
24
|
intent?: string;
|
|
20
25
|
template_id?: TemplateId;
|
|
@@ -229,7 +234,7 @@ export declare class SessionsResource {
|
|
|
229
234
|
sync_pending: boolean;
|
|
230
235
|
}>;
|
|
231
236
|
setSessionPluginActivation(sessionId: string, name: string, active: boolean, init?: RequestInit): Promise<{
|
|
232
|
-
plugin:
|
|
237
|
+
plugin: SessionPluginActivation;
|
|
233
238
|
sync_version: number;
|
|
234
239
|
}>;
|
|
235
240
|
/** 创建新会话并直接连接,返回可收发消息的 AgentSession。 */
|
package/package.json
CHANGED
package/public-api.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
|
|
4
4
|
> 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
|
|
5
5
|
|
|
6
|
-
共
|
|
6
|
+
共 181 个公开声明。
|
|
7
7
|
|
|
8
8
|
## `acceptedPostChatFollowupCompletesLatestRun` (function)
|
|
9
9
|
|
|
@@ -1353,7 +1353,7 @@ SessionInfo = type({
|
|
|
1353
1353
|
|
|
1354
1354
|
```ts
|
|
1355
1355
|
active: boolean
|
|
1356
|
-
installed: boolean
|
|
1356
|
+
installed: boolean | null
|
|
1357
1357
|
name: string
|
|
1358
1358
|
projected: boolean
|
|
1359
1359
|
projection_source: string | null | undefined
|
|
@@ -1361,6 +1361,12 @@ reason: string | null | undefined
|
|
|
1361
1361
|
status: string
|
|
1362
1362
|
```
|
|
1363
1363
|
|
|
1364
|
+
## `SessionPluginActivation` (type)
|
|
1365
|
+
|
|
1366
|
+
```ts
|
|
1367
|
+
export type SessionPluginActivation = Pick<SessionPlugin, "name" | "active" | "status" | "reason">
|
|
1368
|
+
```
|
|
1369
|
+
|
|
1364
1370
|
## `SessionPortMapping` (interface)
|
|
1365
1371
|
|
|
1366
1372
|
```ts
|
|
@@ -1443,7 +1449,7 @@ revokeShare: (sessionId: string, token: string) => Promise<{ revoked: boolean; }
|
|
|
1443
1449
|
rewindSession: (sessionId: string, checkpointId: string) => Promise<{ id: string; content: string; }>
|
|
1444
1450
|
searchOwnedContent: (params: { q: string; limit?: number; }) => Promise<GlobalSearchResult>
|
|
1445
1451
|
setSessionEnv: (sessionId: string, env: Record<string, string>) => Promise<SessionDetail>
|
|
1446
|
-
setSessionPluginActivation: (sessionId: string, name: string, active: boolean, init?: RequestInit) => Promise<{ plugin:
|
|
1452
|
+
setSessionPluginActivation: (sessionId: string, name: string, active: boolean, init?: RequestInit) => Promise<{ plugin: SessionPluginActivation; sync_version: number; }>
|
|
1447
1453
|
shareFile: (sessionId: string, sourcePath: string, linkName?: string, shareFolder?: string) => Promise<{ path: string; target: string; }>
|
|
1448
1454
|
startReplaySession: (sourceSessionId: string, speed?: ReplaySpeed) => Promise<{ session_id: string; }>
|
|
1449
1455
|
stopBackgroundTask: (sessionId: string, taskId: string) => Promise<BackgroundTaskStopResult>
|