@blade-hq/agent-client 2610.0.0-beta.73 → 2610.0.0-beta.74
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.
|
@@ -6,6 +6,7 @@ export interface ChatGroup {
|
|
|
6
6
|
created_at: string;
|
|
7
7
|
updated_at: string;
|
|
8
8
|
session_count: number;
|
|
9
|
+
workspace_path: string;
|
|
9
10
|
}
|
|
10
11
|
export declare class ChatGroupsResource {
|
|
11
12
|
private readonly client;
|
|
@@ -19,7 +20,9 @@ export declare class ChatGroupsResource {
|
|
|
19
20
|
name?: string;
|
|
20
21
|
instructions?: string;
|
|
21
22
|
}): Promise<ChatGroup>;
|
|
22
|
-
delete(groupId: string
|
|
23
|
+
delete(groupId: string, options?: {
|
|
24
|
+
deleteWorkspace?: boolean;
|
|
25
|
+
}): Promise<{
|
|
23
26
|
deleted: boolean;
|
|
24
27
|
deleted_sessions: number;
|
|
25
28
|
}>;
|
|
@@ -295,6 +295,8 @@ export declare class AgentSession {
|
|
|
295
295
|
_handleWorkspaceFilesChanged(filePath?: string): void;
|
|
296
296
|
/** @internal */
|
|
297
297
|
_handleSessionUpdated(data: {
|
|
298
|
+
workspace_path?: string;
|
|
299
|
+
chat_group_id?: string | null;
|
|
298
300
|
intent?: string;
|
|
299
301
|
status?: SessionStatus;
|
|
300
302
|
model?: string | null;
|
package/dist/session/events.d.ts
CHANGED
|
@@ -299,6 +299,8 @@ export declare namespace SessionCreatedPayloadSchema {
|
|
|
299
299
|
}
|
|
300
300
|
export type SessionCreatedPayload = SessionCreatedPayloadSchema.SessionCreatedPayload;
|
|
301
301
|
export declare namespace SessionUpdatedPayloadSchema {
|
|
302
|
+
type WorkspacePath = (string | null);
|
|
303
|
+
type ChatGroupId = (string | null);
|
|
302
304
|
type SessionId = string;
|
|
303
305
|
type Model = (string | null);
|
|
304
306
|
type ReplayState = ({
|
|
@@ -308,6 +310,8 @@ export declare namespace SessionUpdatedPayloadSchema {
|
|
|
308
310
|
type ProjectId = (number | null);
|
|
309
311
|
type ProjectName = (string | null);
|
|
310
312
|
interface SessionUpdatedPayload {
|
|
313
|
+
workspace_path?: WorkspacePath;
|
|
314
|
+
chat_group_id?: ChatGroupId;
|
|
311
315
|
session_id: SessionId;
|
|
312
316
|
model?: Model;
|
|
313
317
|
replay_state?: ReplayState;
|
package/package.json
CHANGED
package/public-api.md
CHANGED
|
@@ -125,7 +125,7 @@ notification: { type: string; title: string; detail?: string; status: "info" | "
|
|
|
125
125
|
replayMismatch: { actualMessage?: string; expectedMessage?: string; respond: (decision: "keep_replay" | "continue_replay") => void; }
|
|
126
126
|
rewind: { checkpointId: string; }
|
|
127
127
|
sandboxOom: { toolCallId: string; }
|
|
128
|
-
sessionUpdated: { intent?: string; status?: SessionStatus; model?: string | null; boundSkillId?: string | null; replayState?: Record<string, unknown> | null; }
|
|
128
|
+
sessionUpdated: { workspacePath?: string; chatGroupId?: string | null; intent?: string; status?: SessionStatus; model?: string | null; boundSkillId?: string | null; replayState?: Record<string, unknown> | null; }
|
|
129
129
|
taskListUpdated: { tasks: unknown[]; }
|
|
130
130
|
toolCall: { toolCall: ToolCallInfo; turn: TurnProjection; }
|
|
131
131
|
toolPreview: { toolCallId: string; type: "resource-html" | "resource-uri"; content: string; title: string; mcpApp?: McpAppData; }
|
|
@@ -367,13 +367,14 @@ instructions: string
|
|
|
367
367
|
name: string
|
|
368
368
|
session_count: number
|
|
369
369
|
updated_at: string
|
|
370
|
+
workspace_path: string
|
|
370
371
|
```
|
|
371
372
|
|
|
372
373
|
## `ChatGroupsResource` (class)
|
|
373
374
|
|
|
374
375
|
```ts
|
|
375
376
|
create: (payload: { name: string; instructions?: string; }) => Promise<ChatGroup>
|
|
376
|
-
delete: (groupId: string) => Promise<{ deleted: boolean; deleted_sessions: number; }>
|
|
377
|
+
delete: (groupId: string, options?: { deleteWorkspace?: boolean; }) => Promise<{ deleted: boolean; deleted_sessions: number; }>
|
|
377
378
|
list: () => Promise<ChatGroup[]>
|
|
378
379
|
update: (groupId: string, payload: { name?: string; instructions?: string; }) => Promise<ChatGroup>
|
|
379
380
|
```
|