@opencode-ai/sdk 0.0.0-snapshot-plz-help-202512122319 → 0.0.0-snapshot-terminal-title-animation-202512151259
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 +33 -35
- 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;
|
|
388
389
|
tools?: {
|
|
389
390
|
[key: string]: boolean;
|
|
390
391
|
};
|
|
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;
|
|
419
420
|
tools?: {
|
|
420
421
|
[key: string]: boolean;
|
|
421
422
|
};
|
|
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: "tools" },
|
|
727
726
|
{ in: "body", key: "system" },
|
|
727
|
+
{ in: "body", key: "tools" },
|
|
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: "tools" },
|
|
780
779
|
{ in: "body", key: "system" },
|
|
780
|
+
{ in: "body", key: "tools" },
|
|
781
781
|
{ in: "body", key: "parts" },
|
|
782
782
|
],
|
|
783
783
|
},
|
|
@@ -130,7 +130,6 @@ export type AssistantMessage = {
|
|
|
130
130
|
modelID: string;
|
|
131
131
|
providerID: string;
|
|
132
132
|
mode: string;
|
|
133
|
-
agent: string;
|
|
134
133
|
path: {
|
|
135
134
|
cwd: string;
|
|
136
135
|
root: string;
|
|
@@ -416,6 +415,35 @@ export type EventPermissionReplied = {
|
|
|
416
415
|
response: string;
|
|
417
416
|
};
|
|
418
417
|
};
|
|
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
|
+
};
|
|
419
447
|
export type EventFileEdited = {
|
|
420
448
|
type: "file.edited";
|
|
421
449
|
properties: {
|
|
@@ -447,35 +475,6 @@ export type EventTodoUpdated = {
|
|
|
447
475
|
todos: Array<Todo>;
|
|
448
476
|
};
|
|
449
477
|
};
|
|
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
|
-
};
|
|
479
478
|
export type EventCommandExecuted = {
|
|
480
479
|
type: "command.executed";
|
|
481
480
|
properties: {
|
|
@@ -629,7 +628,7 @@ export type EventGlobalDisposed = {
|
|
|
629
628
|
[key: string]: unknown;
|
|
630
629
|
};
|
|
631
630
|
};
|
|
632
|
-
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied |
|
|
631
|
+
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventServerConnected | EventGlobalDisposed;
|
|
633
632
|
export type GlobalEvent = {
|
|
634
633
|
directory: string;
|
|
635
634
|
payload: Event;
|
|
@@ -1533,8 +1532,7 @@ export type Agent = {
|
|
|
1533
1532
|
name: string;
|
|
1534
1533
|
description?: string;
|
|
1535
1534
|
mode: "subagent" | "primary" | "all";
|
|
1536
|
-
|
|
1537
|
-
hidden?: boolean;
|
|
1535
|
+
builtIn: boolean;
|
|
1538
1536
|
topP?: number;
|
|
1539
1537
|
temperature?: number;
|
|
1540
1538
|
color?: string;
|
|
@@ -2431,10 +2429,10 @@ export type SessionPromptData = {
|
|
|
2431
2429
|
};
|
|
2432
2430
|
agent?: string;
|
|
2433
2431
|
noReply?: boolean;
|
|
2432
|
+
system?: string;
|
|
2434
2433
|
tools?: {
|
|
2435
2434
|
[key: string]: boolean;
|
|
2436
2435
|
};
|
|
2437
|
-
system?: string;
|
|
2438
2436
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
2439
2437
|
};
|
|
2440
2438
|
path: {
|
|
@@ -2516,10 +2514,10 @@ export type SessionPromptAsyncData = {
|
|
|
2516
2514
|
};
|
|
2517
2515
|
agent?: string;
|
|
2518
2516
|
noReply?: boolean;
|
|
2517
|
+
system?: string;
|
|
2519
2518
|
tools?: {
|
|
2520
2519
|
[key: string]: boolean;
|
|
2521
2520
|
};
|
|
2522
|
-
system?: string;
|
|
2523
2521
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
2524
2522
|
};
|
|
2525
2523
|
path: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/sdk",
|
|
4
|
-
"version": "0.0.0-snapshot-
|
|
4
|
+
"version": "0.0.0-snapshot-terminal-title-animation-202512151259",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsgo --noEmit",
|