@matrix-ai/sdk 0.0.0-dev-202602060934 → 1.1.59
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/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -706,7 +706,7 @@ export declare class Find extends HeyApiClient {
|
|
|
706
706
|
directory?: string;
|
|
707
707
|
query: string;
|
|
708
708
|
dirs?: "true" | "false";
|
|
709
|
-
type?: "file" | "directory";
|
|
709
|
+
type?: "file" | "directory" | "all";
|
|
710
710
|
limit?: number;
|
|
711
711
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindFilesResponses, unknown, ThrowOnError, "fields">;
|
|
712
712
|
/**
|
|
@@ -133,6 +133,13 @@ export type MessageAbortedError = {
|
|
|
133
133
|
message: string;
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
|
+
export type ContextOverflowError = {
|
|
137
|
+
name: "ContextOverflowError";
|
|
138
|
+
data: {
|
|
139
|
+
message: string;
|
|
140
|
+
responseBody?: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
136
143
|
export type ApiError = {
|
|
137
144
|
name: "APIError";
|
|
138
145
|
data: {
|
|
@@ -156,7 +163,7 @@ export type AssistantMessage = {
|
|
|
156
163
|
created: number;
|
|
157
164
|
completed?: number;
|
|
158
165
|
};
|
|
159
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
|
|
166
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ContextOverflowError | ApiError;
|
|
160
167
|
parentID: string;
|
|
161
168
|
modelID: string;
|
|
162
169
|
providerID: string;
|
|
@@ -169,6 +176,7 @@ export type AssistantMessage = {
|
|
|
169
176
|
summary?: boolean;
|
|
170
177
|
cost: number;
|
|
171
178
|
tokens: {
|
|
179
|
+
total?: number;
|
|
172
180
|
input: number;
|
|
173
181
|
output: number;
|
|
174
182
|
reasoning: number;
|
|
@@ -177,6 +185,7 @@ export type AssistantMessage = {
|
|
|
177
185
|
write: number;
|
|
178
186
|
};
|
|
179
187
|
};
|
|
188
|
+
variant?: string;
|
|
180
189
|
finish?: string;
|
|
181
190
|
};
|
|
182
191
|
export type Message = UserMessage | AssistantMessage;
|
|
@@ -362,6 +371,7 @@ export type StepFinishPart = {
|
|
|
362
371
|
snapshot?: string;
|
|
363
372
|
cost: number;
|
|
364
373
|
tokens: {
|
|
374
|
+
total?: number;
|
|
365
375
|
input: number;
|
|
366
376
|
output: number;
|
|
367
377
|
reasoning: number;
|
|
@@ -705,7 +715,7 @@ export type EventSessionError = {
|
|
|
705
715
|
type: "session.error";
|
|
706
716
|
properties: {
|
|
707
717
|
sessionID?: string;
|
|
708
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
|
|
718
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ContextOverflowError | ApiError;
|
|
709
719
|
};
|
|
710
720
|
};
|
|
711
721
|
export type EventVcsBranchUpdated = {
|
|
@@ -1458,6 +1468,10 @@ export type Config = {
|
|
|
1458
1468
|
* Additional paths to skill folders
|
|
1459
1469
|
*/
|
|
1460
1470
|
paths?: Array<string>;
|
|
1471
|
+
/**
|
|
1472
|
+
* URLs to fetch skills from (e.g., https://example.com/.well-known/skills/)
|
|
1473
|
+
*/
|
|
1474
|
+
urls?: Array<string>;
|
|
1461
1475
|
};
|
|
1462
1476
|
watcher?: {
|
|
1463
1477
|
ignore?: Array<string>;
|
|
@@ -1584,6 +1598,10 @@ export type Config = {
|
|
|
1584
1598
|
* Enable pruning of old tool outputs (default: true)
|
|
1585
1599
|
*/
|
|
1586
1600
|
prune?: boolean;
|
|
1601
|
+
/**
|
|
1602
|
+
* Token buffer for compaction. Leaves enough window to avoid overflow during compaction.
|
|
1603
|
+
*/
|
|
1604
|
+
reserved?: number;
|
|
1587
1605
|
};
|
|
1588
1606
|
experimental?: {
|
|
1589
1607
|
disable_paste_summary?: boolean;
|
|
@@ -3631,7 +3649,7 @@ export type FindFilesData = {
|
|
|
3631
3649
|
directory?: string;
|
|
3632
3650
|
query: string;
|
|
3633
3651
|
dirs?: "true" | "false";
|
|
3634
|
-
type?: "file" | "directory";
|
|
3652
|
+
type?: "file" | "directory" | "all";
|
|
3635
3653
|
limit?: number;
|
|
3636
3654
|
};
|
|
3637
3655
|
url: "/find/file";
|