@opencode-ai/sdk 0.4.3 → 0.4.4
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/gen/types.gen.d.ts +22 -25
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -13,12 +13,14 @@ export type Event = ({
|
|
|
13
13
|
} & EventMessagePartRemoved) | ({
|
|
14
14
|
type: "storage.write";
|
|
15
15
|
} & EventStorageWrite) | ({
|
|
16
|
+
type: "file.edited";
|
|
17
|
+
} & EventFileEdited) | ({
|
|
18
|
+
type: "server.connected";
|
|
19
|
+
} & EventServerConnected) | ({
|
|
16
20
|
type: "permission.updated";
|
|
17
21
|
} & EventPermissionUpdated) | ({
|
|
18
22
|
type: "permission.replied";
|
|
19
23
|
} & EventPermissionReplied) | ({
|
|
20
|
-
type: "file.edited";
|
|
21
|
-
} & EventFileEdited) | ({
|
|
22
24
|
type: "session.updated";
|
|
23
25
|
} & EventSessionUpdated) | ({
|
|
24
26
|
type: "session.deleted";
|
|
@@ -27,8 +29,6 @@ export type Event = ({
|
|
|
27
29
|
} & EventSessionIdle) | ({
|
|
28
30
|
type: "session.error";
|
|
29
31
|
} & EventSessionError) | ({
|
|
30
|
-
type: "server.connected";
|
|
31
|
-
} & EventServerConnected) | ({
|
|
32
32
|
type: "file.watcher.updated";
|
|
33
33
|
} & EventFileWatcherUpdated) | ({
|
|
34
34
|
type: "ide.installed";
|
|
@@ -350,6 +350,18 @@ export type EventStorageWrite = {
|
|
|
350
350
|
content?: unknown;
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
|
+
export type EventFileEdited = {
|
|
354
|
+
type: string;
|
|
355
|
+
properties: {
|
|
356
|
+
file: string;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
export type EventServerConnected = {
|
|
360
|
+
type: string;
|
|
361
|
+
properties: {
|
|
362
|
+
[key: string]: unknown;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
353
365
|
export type EventPermissionUpdated = {
|
|
354
366
|
type: string;
|
|
355
367
|
properties: Permission;
|
|
@@ -377,12 +389,6 @@ export type EventPermissionReplied = {
|
|
|
377
389
|
response: string;
|
|
378
390
|
};
|
|
379
391
|
};
|
|
380
|
-
export type EventFileEdited = {
|
|
381
|
-
type: string;
|
|
382
|
-
properties: {
|
|
383
|
-
file: string;
|
|
384
|
-
};
|
|
385
|
-
};
|
|
386
392
|
export type EventSessionUpdated = {
|
|
387
393
|
type: string;
|
|
388
394
|
properties: {
|
|
@@ -435,12 +441,6 @@ export type EventSessionError = {
|
|
|
435
441
|
} & MessageAbortedError);
|
|
436
442
|
};
|
|
437
443
|
};
|
|
438
|
-
export type EventServerConnected = {
|
|
439
|
-
type: string;
|
|
440
|
-
properties: {
|
|
441
|
-
[key: string]: unknown;
|
|
442
|
-
};
|
|
443
|
-
};
|
|
444
444
|
export type EventFileWatcherUpdated = {
|
|
445
445
|
type: string;
|
|
446
446
|
properties: {
|
|
@@ -807,13 +807,10 @@ export type AgentConfig = {
|
|
|
807
807
|
* Description of when to use the agent
|
|
808
808
|
*/
|
|
809
809
|
description?: string;
|
|
810
|
-
/**
|
|
811
|
-
* Additional model options passed through to provider
|
|
812
|
-
*/
|
|
813
|
-
options?: {
|
|
814
|
-
[key: string]: unknown;
|
|
815
|
-
};
|
|
816
810
|
mode?: string;
|
|
811
|
+
[key: string]: unknown | string | number | {
|
|
812
|
+
[key: string]: boolean;
|
|
813
|
+
} | boolean | string | undefined;
|
|
817
814
|
};
|
|
818
815
|
export type Provider = {
|
|
819
816
|
api?: string;
|
|
@@ -941,9 +938,6 @@ export type Agent = {
|
|
|
941
938
|
mode: string;
|
|
942
939
|
topP?: number;
|
|
943
940
|
temperature?: number;
|
|
944
|
-
options: {
|
|
945
|
-
[key: string]: unknown;
|
|
946
|
-
};
|
|
947
941
|
model?: {
|
|
948
942
|
modelID: string;
|
|
949
943
|
providerID: string;
|
|
@@ -952,6 +946,9 @@ export type Agent = {
|
|
|
952
946
|
tools: {
|
|
953
947
|
[key: string]: boolean;
|
|
954
948
|
};
|
|
949
|
+
options: {
|
|
950
|
+
[key: string]: unknown;
|
|
951
|
+
};
|
|
955
952
|
};
|
|
956
953
|
export type EventSubscribeData = {
|
|
957
954
|
body?: never;
|