@opencode-ai/client 0.0.0-next-16229 → 0.0.0-next-16231
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/effect/api/api.d.ts +19 -0
- package/dist/effect/api.d.ts +2 -1
- package/dist/effect/generated/client.d.ts +35 -0
- package/dist/effect/generated/client.js +10 -0
- package/dist/effect/index.d.ts +2 -1
- package/dist/effect/index.js +1 -0
- package/dist/promise/api.d.ts +1 -0
- package/dist/promise/generated/client.d.ts +5 -1
- package/dist/promise/generated/client.js +19 -0
- package/dist/promise/generated/types.d.ts +72 -1
- package/dist/promise/index.d.ts +1 -1
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -954,6 +954,24 @@ export interface DebugApi<E = never> {
|
|
|
954
954
|
readonly evict: DebugLocationEvictOperation<E>;
|
|
955
955
|
};
|
|
956
956
|
}
|
|
957
|
+
type Endpoint27_0Request = Parameters<RawClient["server.websearch"]["websearch.providers"]>[0];
|
|
958
|
+
export type Endpoint27_0Input = {
|
|
959
|
+
readonly location?: Endpoint27_0Request["query"]["location"];
|
|
960
|
+
};
|
|
961
|
+
export type Endpoint27_0Output = EffectValue<ReturnType<RawClient["server.websearch"]["websearch.providers"]>>;
|
|
962
|
+
export type WebsearchProvidersOperation<E = never> = (input?: Endpoint27_0Input) => Effect.Effect<Endpoint27_0Output, E>;
|
|
963
|
+
type Endpoint27_1Request = Parameters<RawClient["server.websearch"]["websearch.query"]>[0];
|
|
964
|
+
export type Endpoint27_1Input = {
|
|
965
|
+
readonly location?: Endpoint27_1Request["query"]["location"];
|
|
966
|
+
readonly query: Endpoint27_1Request["payload"]["query"];
|
|
967
|
+
readonly providerID?: Endpoint27_1Request["payload"]["providerID"];
|
|
968
|
+
};
|
|
969
|
+
export type Endpoint27_1Output = EffectValue<ReturnType<RawClient["server.websearch"]["websearch.query"]>>;
|
|
970
|
+
export type WebsearchQueryOperation<E = never> = (input: Endpoint27_1Input) => Effect.Effect<Endpoint27_1Output, E>;
|
|
971
|
+
export interface WebsearchApi<E = never> {
|
|
972
|
+
readonly providers: WebsearchProvidersOperation<E>;
|
|
973
|
+
readonly query: WebsearchQueryOperation<E>;
|
|
974
|
+
}
|
|
957
975
|
export interface AppApi<E = never> {
|
|
958
976
|
readonly health: HealthApi<E>;
|
|
959
977
|
readonly server: ServerApi<E>;
|
|
@@ -982,5 +1000,6 @@ export interface AppApi<E = never> {
|
|
|
982
1000
|
readonly projectCopy: ProjectCopyApi<E>;
|
|
983
1001
|
readonly vcs: VcsApi<E>;
|
|
984
1002
|
readonly debug: DebugApi<E>;
|
|
1003
|
+
readonly websearch: WebsearchApi<E>;
|
|
985
1004
|
}
|
|
986
1005
|
export {};
|
package/dist/effect/api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { ModelApi, ProviderApi } from "./api/api.js";
|
|
1
|
+
import type { ModelApi, ProviderApi, WebsearchApi } from "./api/api.js";
|
|
2
2
|
export type * from "./api/api.js";
|
|
3
|
+
export type WebSearchApi<E = never> = WebsearchApi<E>;
|
|
3
4
|
export interface CatalogApi<E = never> {
|
|
4
5
|
readonly provider: ProviderApi<E>;
|
|
5
6
|
readonly model: ModelApi<E>;
|
|
@@ -555,6 +555,16 @@ type Endpoint26_1Request = Parameters<RawClient["server.debug"]["debug.location.
|
|
|
555
555
|
type Endpoint26_1Input = {
|
|
556
556
|
readonly location?: Endpoint26_1Request["query"]["location"];
|
|
557
557
|
};
|
|
558
|
+
type Endpoint27_0Request = Parameters<RawClient["server.websearch"]["websearch.providers"]>[0];
|
|
559
|
+
type Endpoint27_0Input = {
|
|
560
|
+
readonly location?: Endpoint27_0Request["query"]["location"];
|
|
561
|
+
};
|
|
562
|
+
type Endpoint27_1Request = Parameters<RawClient["server.websearch"]["websearch.query"]>[0];
|
|
563
|
+
type Endpoint27_1Input = {
|
|
564
|
+
readonly location?: Endpoint27_1Request["query"]["location"];
|
|
565
|
+
readonly query: Endpoint27_1Request["payload"]["query"];
|
|
566
|
+
readonly providerID?: Endpoint27_1Request["payload"]["providerID"];
|
|
567
|
+
};
|
|
558
568
|
export declare const make: (options?: {
|
|
559
569
|
readonly baseUrl?: URL | string;
|
|
560
570
|
}) => Effect.Effect<{
|
|
@@ -8836,6 +8846,18 @@ export declare const make: (options?: {
|
|
|
8836
8846
|
readonly metadata?: {
|
|
8837
8847
|
readonly [x: string]: unknown;
|
|
8838
8848
|
} | undefined;
|
|
8849
|
+
} | {
|
|
8850
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8851
|
+
readonly data: Schema.Struct.ReadonlySide<{}, "Type">;
|
|
8852
|
+
readonly type: "websearch.updated";
|
|
8853
|
+
readonly created: import("effect/DateTime").Utc;
|
|
8854
|
+
readonly location?: {
|
|
8855
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
8856
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
8857
|
+
} | undefined;
|
|
8858
|
+
readonly metadata?: {
|
|
8859
|
+
readonly [x: string]: unknown;
|
|
8860
|
+
} | undefined;
|
|
8839
8861
|
} | {
|
|
8840
8862
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8841
8863
|
readonly data: Schema.Struct.ReadonlySide<{}, "Type">;
|
|
@@ -9126,5 +9148,18 @@ export declare const make: (options?: {
|
|
|
9126
9148
|
evict: (input?: Endpoint26_1Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
9127
9149
|
};
|
|
9128
9150
|
};
|
|
9151
|
+
websearch: {
|
|
9152
|
+
providers: (input?: Endpoint27_0Input) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
9153
|
+
readonly location: typeof import("@opencode-ai/schema/location").Info;
|
|
9154
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
9155
|
+
readonly id: Schema.brand<Schema.String, "WebSearch.ID">;
|
|
9156
|
+
readonly name: Schema.String;
|
|
9157
|
+
}>>;
|
|
9158
|
+
}, "Type">, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | HttpClientError.HttpClientError | ClientError, never>;
|
|
9159
|
+
query: (input: Endpoint27_1Input) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
9160
|
+
readonly location: typeof import("@opencode-ai/schema/location").Info;
|
|
9161
|
+
readonly data: typeof import("@opencode-ai/schema/websearch").Response;
|
|
9162
|
+
}, "Type">, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | HttpClientError.HttpClientError | ClientError, never>;
|
|
9163
|
+
};
|
|
9129
9164
|
}, never, import("effect/unstable/http/HttpClient").HttpClient>;
|
|
9130
9165
|
export {};
|
|
@@ -406,6 +406,15 @@ const Endpoint26_1 = (raw) => (input) => raw["debug.location.evict"]({ query: {
|
|
|
406
406
|
const adaptGroup26 = (raw) => ({
|
|
407
407
|
location: { list: Endpoint26_0(raw), evict: Endpoint26_1(raw) },
|
|
408
408
|
});
|
|
409
|
+
const Endpoint27_0 = (raw) => (input) => raw["websearch.providers"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
410
|
+
const Endpoint27_1 = (raw) => (input) => raw["websearch.query"]({
|
|
411
|
+
query: { location: input["location"] },
|
|
412
|
+
payload: { query: input["query"], providerID: input["providerID"] },
|
|
413
|
+
}).pipe(Effect.mapError(mapClientError));
|
|
414
|
+
const adaptGroup27 = (raw) => ({
|
|
415
|
+
providers: Endpoint27_0(raw),
|
|
416
|
+
query: Endpoint27_1(raw),
|
|
417
|
+
});
|
|
409
418
|
const adaptClient = (raw) => ({
|
|
410
419
|
health: adaptGroup0(raw["server.health"]),
|
|
411
420
|
server: adaptGroup1(raw["server.server"]),
|
|
@@ -434,5 +443,6 @@ const adaptClient = (raw) => ({
|
|
|
434
443
|
projectCopy: adaptGroup24(raw["server.projectCopy"]),
|
|
435
444
|
vcs: adaptGroup25(raw["server.vcs"]),
|
|
436
445
|
debug: adaptGroup26(raw["server.debug"]),
|
|
446
|
+
websearch: adaptGroup27(raw["server.websearch"]),
|
|
437
447
|
});
|
|
438
448
|
export const make = (options) => HttpApiClient.make(ClientApi, options).pipe(Effect.map(adaptClient));
|
package/dist/effect/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Effect } from "effect";
|
|
2
2
|
export * from "./generated/index";
|
|
3
|
-
export type { AgentApi, AppApi, CatalogApi, CommandApi, EventApi, IntegrationApi, ModelApi, PluginApi, ProviderApi, ReferenceApi, SessionApi, SkillApi, } from "./api.js";
|
|
3
|
+
export type { AgentApi, AppApi, CatalogApi, CommandApi, EventApi, IntegrationApi, ModelApi, PluginApi, ProviderApi, ReferenceApi, WebSearchApi, SessionApi, SkillApi, } from "./api.js";
|
|
4
4
|
export { Agent } from "@opencode-ai/schema/agent";
|
|
5
5
|
export { Command } from "@opencode-ai/schema/command";
|
|
6
6
|
export { Credential } from "@opencode-ai/schema/credential";
|
|
@@ -19,6 +19,7 @@ export { Provider } from "@opencode-ai/schema/provider";
|
|
|
19
19
|
export { Pty } from "@opencode-ai/schema/pty";
|
|
20
20
|
export { Question } from "@opencode-ai/schema/question";
|
|
21
21
|
export { Reference } from "@opencode-ai/schema/reference";
|
|
22
|
+
export { WebSearch } from "@opencode-ai/schema/websearch";
|
|
22
23
|
export { AbsolutePath, RelativePath } from "@opencode-ai/schema/schema";
|
|
23
24
|
export { Session } from "@opencode-ai/schema/session";
|
|
24
25
|
export { SessionPending } from "@opencode-ai/schema/session-pending";
|
package/dist/effect/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export { Provider } from "@opencode-ai/schema/provider";
|
|
|
17
17
|
export { Pty } from "@opencode-ai/schema/pty";
|
|
18
18
|
export { Question } from "@opencode-ai/schema/question";
|
|
19
19
|
export { Reference } from "@opencode-ai/schema/reference";
|
|
20
|
+
export { WebSearch } from "@opencode-ai/schema/websearch";
|
|
20
21
|
export { AbsolutePath, RelativePath } from "@opencode-ai/schema/schema";
|
|
21
22
|
export { Session } from "@opencode-ai/schema/session";
|
|
22
23
|
export { SessionPending } from "@opencode-ai/schema/session-pending";
|
package/dist/promise/api.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type ModelApi = Client["model"];
|
|
|
7
7
|
export type PluginApi = Client["plugin"];
|
|
8
8
|
export type ProviderApi = Client["provider"];
|
|
9
9
|
export type ReferenceApi = Client["reference"];
|
|
10
|
+
export type WebSearchApi = Client["websearch"];
|
|
10
11
|
export type SessionApi = Client["session"];
|
|
11
12
|
export type SkillApi = Client["skill"];
|
|
12
13
|
export interface CatalogApi {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput } from "./types";
|
|
1
|
+
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput } from "./types";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -214,4 +214,8 @@ export declare function make(options: ClientOptions): {
|
|
|
214
214
|
evict: (input?: DebugLocationEvictInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
|
+
websearch: {
|
|
218
|
+
providers: (input?: WebsearchProvidersInput, requestOptions?: RequestOptions) => Promise<WebsearchProvidersOutput>;
|
|
219
|
+
query: (input: WebsearchQueryInput, requestOptions?: RequestOptions) => Promise<WebsearchQueryOutput>;
|
|
220
|
+
};
|
|
217
221
|
};
|
|
@@ -1088,6 +1088,25 @@ export function make(options) {
|
|
|
1088
1088
|
}, requestOptions),
|
|
1089
1089
|
},
|
|
1090
1090
|
},
|
|
1091
|
+
websearch: {
|
|
1092
|
+
providers: (input, requestOptions) => request({
|
|
1093
|
+
method: "GET",
|
|
1094
|
+
path: `/api/websearch/provider`,
|
|
1095
|
+
query: { location: input?.["location"] },
|
|
1096
|
+
successStatus: 200,
|
|
1097
|
+
declaredStatuses: [503, 401, 400],
|
|
1098
|
+
empty: false,
|
|
1099
|
+
}, requestOptions),
|
|
1100
|
+
query: (input, requestOptions) => request({
|
|
1101
|
+
method: "POST",
|
|
1102
|
+
path: `/api/websearch`,
|
|
1103
|
+
query: { location: input["location"] },
|
|
1104
|
+
body: { query: input["query"], providerID: input["providerID"] },
|
|
1105
|
+
successStatus: 200,
|
|
1106
|
+
declaredStatuses: [400, 503, 401],
|
|
1107
|
+
empty: false,
|
|
1108
|
+
}, requestOptions),
|
|
1109
|
+
},
|
|
1091
1110
|
};
|
|
1092
1111
|
}
|
|
1093
1112
|
function encodePath(value) {
|
|
@@ -799,6 +799,18 @@ export type VcsFileStatus = {
|
|
|
799
799
|
deletions: number;
|
|
800
800
|
status: "added" | "deleted" | "modified";
|
|
801
801
|
};
|
|
802
|
+
export type WebSearchProvider = {
|
|
803
|
+
id: string;
|
|
804
|
+
name: string;
|
|
805
|
+
};
|
|
806
|
+
export type WebSearchResult = {
|
|
807
|
+
url: string;
|
|
808
|
+
title?: string;
|
|
809
|
+
content?: string;
|
|
810
|
+
time: {
|
|
811
|
+
published?: number;
|
|
812
|
+
};
|
|
813
|
+
};
|
|
802
814
|
export type SessionMessageModelSelected = {
|
|
803
815
|
id: string;
|
|
804
816
|
metadata?: {
|
|
@@ -1634,6 +1646,16 @@ export type FormCancelled = {
|
|
|
1634
1646
|
sessionID: string;
|
|
1635
1647
|
};
|
|
1636
1648
|
};
|
|
1649
|
+
export type WebsearchUpdated = {
|
|
1650
|
+
id: string;
|
|
1651
|
+
created: number;
|
|
1652
|
+
metadata?: {
|
|
1653
|
+
[x: string]: any;
|
|
1654
|
+
};
|
|
1655
|
+
type: "websearch.updated";
|
|
1656
|
+
location?: LocationRef;
|
|
1657
|
+
data: {};
|
|
1658
|
+
};
|
|
1637
1659
|
export type SessionIdle = {
|
|
1638
1660
|
id: string;
|
|
1639
1661
|
created: number;
|
|
@@ -3094,7 +3116,7 @@ export type MessagePartUpdated = {
|
|
|
3094
3116
|
time: number;
|
|
3095
3117
|
};
|
|
3096
3118
|
};
|
|
3097
|
-
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted1 | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | PluginUpdated | ProjectDirectoriesUpdated | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | FormCreated | FormReplied | FormCancelled | SessionStatus2 | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | PermissionAsked | PermissionReplied | QuestionAsked | QuestionReplied | QuestionRejected | SessionError | V2EventServerConnected;
|
|
3119
|
+
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted1 | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | PluginUpdated | ProjectDirectoriesUpdated | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatus2 | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | PermissionAsked | PermissionReplied | QuestionAsked | QuestionReplied | QuestionRejected | SessionError | V2EventServerConnected;
|
|
3098
3120
|
export type UnauthorizedError = {
|
|
3099
3121
|
readonly _tag: "UnauthorizedError";
|
|
3100
3122
|
readonly message: string;
|
|
@@ -6504,3 +6526,52 @@ export type DebugLocationEvictInput = {
|
|
|
6504
6526
|
}["location"];
|
|
6505
6527
|
};
|
|
6506
6528
|
export type DebugLocationEvictOutput = void;
|
|
6529
|
+
export type WebsearchProvidersInput = {
|
|
6530
|
+
readonly location?: {
|
|
6531
|
+
readonly location?: {
|
|
6532
|
+
readonly directory?: string | undefined;
|
|
6533
|
+
readonly workspace?: string | undefined;
|
|
6534
|
+
} | undefined;
|
|
6535
|
+
}["location"];
|
|
6536
|
+
};
|
|
6537
|
+
export type WebsearchProvidersOutput = {
|
|
6538
|
+
location: {
|
|
6539
|
+
directory: string;
|
|
6540
|
+
workspaceID?: string;
|
|
6541
|
+
project: {
|
|
6542
|
+
id: string;
|
|
6543
|
+
directory: string;
|
|
6544
|
+
};
|
|
6545
|
+
};
|
|
6546
|
+
data: Array<WebSearchProvider>;
|
|
6547
|
+
};
|
|
6548
|
+
export type WebsearchQueryInput = {
|
|
6549
|
+
readonly location?: {
|
|
6550
|
+
readonly location?: {
|
|
6551
|
+
readonly directory?: string | undefined;
|
|
6552
|
+
readonly workspace?: string | undefined;
|
|
6553
|
+
} | undefined;
|
|
6554
|
+
}["location"];
|
|
6555
|
+
readonly query: {
|
|
6556
|
+
readonly query: string;
|
|
6557
|
+
readonly providerID?: string;
|
|
6558
|
+
}["query"];
|
|
6559
|
+
readonly providerID?: {
|
|
6560
|
+
readonly query: string;
|
|
6561
|
+
readonly providerID?: string;
|
|
6562
|
+
}["providerID"];
|
|
6563
|
+
};
|
|
6564
|
+
export type WebsearchQueryOutput = {
|
|
6565
|
+
location: {
|
|
6566
|
+
directory: string;
|
|
6567
|
+
workspaceID?: string;
|
|
6568
|
+
project: {
|
|
6569
|
+
id: string;
|
|
6570
|
+
directory: string;
|
|
6571
|
+
};
|
|
6572
|
+
};
|
|
6573
|
+
data: {
|
|
6574
|
+
providerID: string;
|
|
6575
|
+
results: Array<WebSearchResult>;
|
|
6576
|
+
};
|
|
6577
|
+
};
|
package/dist/promise/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from "./generated/index";
|
|
2
|
-
export type { AgentApi, CatalogApi, CommandApi, EventApi, IntegrationApi, ModelApi, PluginApi, ProviderApi, ReferenceApi, SessionApi, SkillApi, } from "./api.js";
|
|
2
|
+
export type { AgentApi, CatalogApi, CommandApi, EventApi, IntegrationApi, ModelApi, PluginApi, ProviderApi, ReferenceApi, WebSearchApi, SessionApi, SkillApi, } from "./api.js";
|
|
3
3
|
export type { EventSubscribeOutput as OpenCodeEvent } from "./generated/types";
|
|
4
4
|
export type OpenCodeClient = ReturnType<typeof import("./generated/client").make>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-16231",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"typecheck": "tsgo --noEmit"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
57
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
56
|
+
"@opencode-ai/schema": "0.0.0-next-16231",
|
|
57
|
+
"@opencode-ai/protocol": "0.0.0-next-16231"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"effect": "4.0.0-beta.98"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@effect/platform-node": "4.0.0-beta.98",
|
|
69
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
69
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-16231",
|
|
70
70
|
"@tsconfig/bun": "1.0.9",
|
|
71
71
|
"@types/bun": "1.3.13",
|
|
72
72
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|