@opencode-ai/sdk 1.0.153 → 1.0.155
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 +2 -2
- package/dist/v2/gen/sdk.gen.js +2 -2
- package/dist/v2/gen/types.gen.d.ts +43 -33
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -385,10 +385,10 @@ export declare class Session extends HeyApiClient {
|
|
|
385
385
|
};
|
|
386
386
|
agent?: string;
|
|
387
387
|
noReply?: boolean;
|
|
388
|
-
system?: string;
|
|
389
388
|
tools?: {
|
|
390
389
|
[key: string]: boolean;
|
|
391
390
|
};
|
|
391
|
+
system?: string;
|
|
392
392
|
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
393
393
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
|
|
394
394
|
/**
|
|
@@ -416,10 +416,10 @@ export declare class Session extends HeyApiClient {
|
|
|
416
416
|
};
|
|
417
417
|
agent?: string;
|
|
418
418
|
noReply?: boolean;
|
|
419
|
-
system?: string;
|
|
420
419
|
tools?: {
|
|
421
420
|
[key: string]: boolean;
|
|
422
421
|
};
|
|
422
|
+
system?: string;
|
|
423
423
|
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
424
424
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptAsyncResponses, SessionPromptAsyncErrors, ThrowOnError, "fields">;
|
|
425
425
|
/**
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -723,8 +723,8 @@ export class Session extends HeyApiClient {
|
|
|
723
723
|
{ in: "body", key: "model" },
|
|
724
724
|
{ in: "body", key: "agent" },
|
|
725
725
|
{ in: "body", key: "noReply" },
|
|
726
|
-
{ in: "body", key: "system" },
|
|
727
726
|
{ in: "body", key: "tools" },
|
|
727
|
+
{ in: "body", key: "system" },
|
|
728
728
|
{ in: "body", key: "parts" },
|
|
729
729
|
],
|
|
730
730
|
},
|
|
@@ -776,8 +776,8 @@ export class Session extends HeyApiClient {
|
|
|
776
776
|
{ in: "body", key: "model" },
|
|
777
777
|
{ in: "body", key: "agent" },
|
|
778
778
|
{ in: "body", key: "noReply" },
|
|
779
|
-
{ in: "body", key: "system" },
|
|
780
779
|
{ in: "body", key: "tools" },
|
|
780
|
+
{ in: "body", key: "system" },
|
|
781
781
|
{ in: "body", key: "parts" },
|
|
782
782
|
],
|
|
783
783
|
},
|
|
@@ -130,6 +130,7 @@ export type AssistantMessage = {
|
|
|
130
130
|
modelID: string;
|
|
131
131
|
providerID: string;
|
|
132
132
|
mode: string;
|
|
133
|
+
agent: string;
|
|
133
134
|
path: {
|
|
134
135
|
cwd: string;
|
|
135
136
|
root: string;
|
|
@@ -415,35 +416,6 @@ export type EventPermissionReplied = {
|
|
|
415
416
|
response: string;
|
|
416
417
|
};
|
|
417
418
|
};
|
|
418
|
-
export type SessionStatus = {
|
|
419
|
-
type: "idle";
|
|
420
|
-
} | {
|
|
421
|
-
type: "retry";
|
|
422
|
-
attempt: number;
|
|
423
|
-
message: string;
|
|
424
|
-
next: number;
|
|
425
|
-
} | {
|
|
426
|
-
type: "busy";
|
|
427
|
-
};
|
|
428
|
-
export type EventSessionStatus = {
|
|
429
|
-
type: "session.status";
|
|
430
|
-
properties: {
|
|
431
|
-
sessionID: string;
|
|
432
|
-
status: SessionStatus;
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
export type EventSessionIdle = {
|
|
436
|
-
type: "session.idle";
|
|
437
|
-
properties: {
|
|
438
|
-
sessionID: string;
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
export type EventSessionCompacted = {
|
|
442
|
-
type: "session.compacted";
|
|
443
|
-
properties: {
|
|
444
|
-
sessionID: string;
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
419
|
export type EventFileEdited = {
|
|
448
420
|
type: "file.edited";
|
|
449
421
|
properties: {
|
|
@@ -475,6 +447,35 @@ export type EventTodoUpdated = {
|
|
|
475
447
|
todos: Array<Todo>;
|
|
476
448
|
};
|
|
477
449
|
};
|
|
450
|
+
export type SessionStatus = {
|
|
451
|
+
type: "idle";
|
|
452
|
+
} | {
|
|
453
|
+
type: "retry";
|
|
454
|
+
attempt: number;
|
|
455
|
+
message: string;
|
|
456
|
+
next: number;
|
|
457
|
+
} | {
|
|
458
|
+
type: "busy";
|
|
459
|
+
};
|
|
460
|
+
export type EventSessionStatus = {
|
|
461
|
+
type: "session.status";
|
|
462
|
+
properties: {
|
|
463
|
+
sessionID: string;
|
|
464
|
+
status: SessionStatus;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
export type EventSessionIdle = {
|
|
468
|
+
type: "session.idle";
|
|
469
|
+
properties: {
|
|
470
|
+
sessionID: string;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
export type EventSessionCompacted = {
|
|
474
|
+
type: "session.compacted";
|
|
475
|
+
properties: {
|
|
476
|
+
sessionID: string;
|
|
477
|
+
};
|
|
478
|
+
};
|
|
478
479
|
export type EventCommandExecuted = {
|
|
479
480
|
type: "command.executed";
|
|
480
481
|
properties: {
|
|
@@ -628,7 +629,7 @@ export type EventGlobalDisposed = {
|
|
|
628
629
|
[key: string]: unknown;
|
|
629
630
|
};
|
|
630
631
|
};
|
|
631
|
-
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied |
|
|
632
|
+
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied | EventFileEdited | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventServerConnected | EventGlobalDisposed;
|
|
632
633
|
export type GlobalEvent = {
|
|
633
634
|
directory: string;
|
|
634
635
|
payload: Event;
|
|
@@ -1241,6 +1242,9 @@ export type Config = {
|
|
|
1241
1242
|
build?: AgentConfig;
|
|
1242
1243
|
general?: AgentConfig;
|
|
1243
1244
|
explore?: AgentConfig;
|
|
1245
|
+
title?: AgentConfig;
|
|
1246
|
+
summary?: AgentConfig;
|
|
1247
|
+
compaction?: AgentConfig;
|
|
1244
1248
|
[key: string]: AgentConfig | undefined;
|
|
1245
1249
|
};
|
|
1246
1250
|
/**
|
|
@@ -1337,6 +1341,10 @@ export type Config = {
|
|
|
1337
1341
|
* Tools that should only be available to primary agents.
|
|
1338
1342
|
*/
|
|
1339
1343
|
primary_tools?: Array<string>;
|
|
1344
|
+
/**
|
|
1345
|
+
* Continue the agent loop when a tool call is denied
|
|
1346
|
+
*/
|
|
1347
|
+
continue_loop_on_deny?: boolean;
|
|
1340
1348
|
};
|
|
1341
1349
|
};
|
|
1342
1350
|
export type ToolIds = Array<string>;
|
|
@@ -1463,6 +1471,7 @@ export type Model = {
|
|
|
1463
1471
|
headers: {
|
|
1464
1472
|
[key: string]: string;
|
|
1465
1473
|
};
|
|
1474
|
+
release_date: string;
|
|
1466
1475
|
};
|
|
1467
1476
|
export type Provider = {
|
|
1468
1477
|
id: string;
|
|
@@ -1532,7 +1541,8 @@ export type Agent = {
|
|
|
1532
1541
|
name: string;
|
|
1533
1542
|
description?: string;
|
|
1534
1543
|
mode: "subagent" | "primary" | "all";
|
|
1535
|
-
|
|
1544
|
+
native?: boolean;
|
|
1545
|
+
hidden?: boolean;
|
|
1536
1546
|
topP?: number;
|
|
1537
1547
|
temperature?: number;
|
|
1538
1548
|
color?: string;
|
|
@@ -2429,10 +2439,10 @@ export type SessionPromptData = {
|
|
|
2429
2439
|
};
|
|
2430
2440
|
agent?: string;
|
|
2431
2441
|
noReply?: boolean;
|
|
2432
|
-
system?: string;
|
|
2433
2442
|
tools?: {
|
|
2434
2443
|
[key: string]: boolean;
|
|
2435
2444
|
};
|
|
2445
|
+
system?: string;
|
|
2436
2446
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
2437
2447
|
};
|
|
2438
2448
|
path: {
|
|
@@ -2514,10 +2524,10 @@ export type SessionPromptAsyncData = {
|
|
|
2514
2524
|
};
|
|
2515
2525
|
agent?: string;
|
|
2516
2526
|
noReply?: boolean;
|
|
2517
|
-
system?: string;
|
|
2518
2527
|
tools?: {
|
|
2519
2528
|
[key: string]: boolean;
|
|
2520
2529
|
};
|
|
2530
|
+
system?: string;
|
|
2521
2531
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
2522
2532
|
};
|
|
2523
2533
|
path: {
|