@blade-hq/agent-client 2612.0.0-beta.71 → 2612.0.0-beta.72
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 +16 -0
- package/dist/{chunk-DMVWOTJB.js → chunk-T5PXAGPI.js} +43 -4
- package/dist/chunk-T5PXAGPI.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/schemas/context-attachments.d.ts +2 -0
- package/dist/session/agent-session.d.ts +1 -0
- package/dist/types/socket-events.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.md +2 -0
- package/dist/chunk-DMVWOTJB.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/internal.js
CHANGED
|
@@ -3,6 +3,8 @@ export interface ContextAttachment {
|
|
|
3
3
|
id: string;
|
|
4
4
|
label: string;
|
|
5
5
|
content: string;
|
|
6
|
+
/** Explicitly remove or restore a named Context. Ordinary updates cannot revive a removed source. */
|
|
7
|
+
action?: "remove" | "restore";
|
|
6
8
|
/** Project plain text as a named session Context; the producer supplies full state. */
|
|
7
9
|
update_format?: "snapshot" | "diff";
|
|
8
10
|
data?: Record<string, unknown> | null;
|
|
@@ -165,6 +165,7 @@ export declare class AgentSession {
|
|
|
165
165
|
private lastDeliveredSystemError;
|
|
166
166
|
private systemErrorGeneration;
|
|
167
167
|
private subscriptionReplaySource;
|
|
168
|
+
private readonly lifetimeAbort;
|
|
168
169
|
private disposed;
|
|
169
170
|
private getAppContext;
|
|
170
171
|
private sendPending;
|
|
@@ -15,6 +15,7 @@ export declare namespace ChatSendPayloadSchema {
|
|
|
15
15
|
type Id = string;
|
|
16
16
|
type Label = string;
|
|
17
17
|
type Content = string;
|
|
18
|
+
type Action = (("remove" | "restore") | null);
|
|
18
19
|
type UpdateFormat = (("snapshot" | "diff") | null);
|
|
19
20
|
type Data = ({
|
|
20
21
|
[k: string]: unknown;
|
|
@@ -95,6 +96,7 @@ export declare namespace ChatSendPayloadSchema {
|
|
|
95
96
|
id: Id;
|
|
96
97
|
label: Label;
|
|
97
98
|
content: Content;
|
|
99
|
+
action?: Action;
|
|
98
100
|
update_format?: UpdateFormat;
|
|
99
101
|
data?: Data;
|
|
100
102
|
files?: Files;
|
|
@@ -155,6 +157,7 @@ export declare namespace ChatAppendPayloadSchema {
|
|
|
155
157
|
type Id = string;
|
|
156
158
|
type Label = string;
|
|
157
159
|
type Content = string;
|
|
160
|
+
type Action = (("remove" | "restore") | null);
|
|
158
161
|
type UpdateFormat = (("snapshot" | "diff") | null);
|
|
159
162
|
type Data = ({
|
|
160
163
|
[k: string]: unknown;
|
|
@@ -192,6 +195,7 @@ export declare namespace ChatAppendPayloadSchema {
|
|
|
192
195
|
id: Id;
|
|
193
196
|
label: Label;
|
|
194
197
|
content: Content;
|
|
198
|
+
action?: Action;
|
|
195
199
|
update_format?: UpdateFormat;
|
|
196
200
|
data?: Data;
|
|
197
201
|
files?: Files;
|
package/package.json
CHANGED
package/public-api.md
CHANGED
|
@@ -702,6 +702,7 @@ contentPreview: (content: MessageContent, maxLen?: number) => string
|
|
|
702
702
|
## `ContextAttachment` (interface)
|
|
703
703
|
|
|
704
704
|
```ts
|
|
705
|
+
action: "remove" | "restore" | undefined
|
|
705
706
|
content: string
|
|
706
707
|
data: Record<string, unknown> | null | undefined
|
|
707
708
|
files: { name: string; session_id?: string; path?: string; }[] | undefined
|
|
@@ -1076,6 +1077,7 @@ export type PhoneState = "enabled" | "offline" | "idle"
|
|
|
1076
1077
|
## `PluginFileOpener` (interface)
|
|
1077
1078
|
|
|
1078
1079
|
```ts
|
|
1080
|
+
default: boolean | undefined
|
|
1079
1081
|
extensions: string[]
|
|
1080
1082
|
id: string
|
|
1081
1083
|
label: string
|