@opencode-ai/client 0.0.0-next-15056 → 0.0.0-next-15065
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 +7 -0
- package/dist/effect/generated/client.d.ts +5 -0
- package/dist/effect/generated/client.js +5 -1
- package/dist/promise/generated/client.d.ts +2 -1
- package/dist/promise/generated/client.js +8 -0
- package/dist/promise/generated/types.d.ts +9 -0
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -801,8 +801,15 @@ export interface VcsApi<E = never> {
|
|
|
801
801
|
}
|
|
802
802
|
export type Endpoint25_0Output = EffectValue<ReturnType<RawClient["server.debug"]["debug.location"]>>;
|
|
803
803
|
export type DebugLocationOperation<E = never> = () => Effect.Effect<Endpoint25_0Output, E>;
|
|
804
|
+
type Endpoint25_1Request = Parameters<RawClient["server.debug"]["debug.location.evict"]>[0];
|
|
805
|
+
export type Endpoint25_1Input = {
|
|
806
|
+
readonly location?: Endpoint25_1Request["query"]["location"];
|
|
807
|
+
};
|
|
808
|
+
export type Endpoint25_1Output = EffectValue<ReturnType<RawClient["server.debug"]["debug.location.evict"]>>;
|
|
809
|
+
export type DebugEvictLocationOperation<E = never> = (input?: Endpoint25_1Input) => Effect.Effect<Endpoint25_1Output, E>;
|
|
804
810
|
export interface DebugApi<E = never> {
|
|
805
811
|
readonly location: DebugLocationOperation<E>;
|
|
812
|
+
readonly evictLocation: DebugEvictLocationOperation<E>;
|
|
806
813
|
}
|
|
807
814
|
export interface AppApi<E = never> {
|
|
808
815
|
readonly health: HealthApi<E>;
|
|
@@ -476,6 +476,10 @@ type Endpoint24_1Input = {
|
|
|
476
476
|
readonly mode: Endpoint24_1Request["query"]["mode"];
|
|
477
477
|
readonly context?: Endpoint24_1Request["query"]["context"];
|
|
478
478
|
};
|
|
479
|
+
type Endpoint25_1Request = Parameters<RawClient["server.debug"]["debug.location.evict"]>[0];
|
|
480
|
+
type Endpoint25_1Input = {
|
|
481
|
+
readonly location?: Endpoint25_1Request["query"]["location"];
|
|
482
|
+
};
|
|
479
483
|
export declare const make: (options?: {
|
|
480
484
|
readonly baseUrl?: URL | string;
|
|
481
485
|
}) => Effect.Effect<{
|
|
@@ -6378,6 +6382,7 @@ export declare const make: (options?: {
|
|
|
6378
6382
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
6379
6383
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
6380
6384
|
}[], import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
6385
|
+
evictLocation: (input?: Endpoint25_1Input) => Effect.Effect<void, import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
6381
6386
|
};
|
|
6382
6387
|
}, never, import("effect/unstable/http/HttpClient").HttpClient>;
|
|
6383
6388
|
export {};
|
|
@@ -351,7 +351,11 @@ const Endpoint24_0 = (raw) => (input) => raw["vcs.status"]({ query: { location:
|
|
|
351
351
|
const Endpoint24_1 = (raw) => (input) => raw["vcs.diff"]({ query: { location: input["location"], mode: input["mode"], context: input["context"] } }).pipe(Effect.mapError(mapClientError));
|
|
352
352
|
const adaptGroup24 = (raw) => ({ status: Endpoint24_0(raw), diff: Endpoint24_1(raw) });
|
|
353
353
|
const Endpoint25_0 = (raw) => () => raw["debug.location"]({}).pipe(Effect.mapError(mapClientError));
|
|
354
|
-
const
|
|
354
|
+
const Endpoint25_1 = (raw) => (input) => raw["debug.location.evict"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
355
|
+
const adaptGroup25 = (raw) => ({
|
|
356
|
+
location: Endpoint25_0(raw),
|
|
357
|
+
evictLocation: Endpoint25_1(raw),
|
|
358
|
+
});
|
|
355
359
|
const adaptClient = (raw) => ({
|
|
356
360
|
health: adaptGroup0(raw["server.health"]),
|
|
357
361
|
location: adaptGroup1(raw["server.location"]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HealthGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionListOutput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectOauthInput, IntegrationConnectOauthOutput, IntegrationAttemptStatusInput, IntegrationAttemptStatusOutput, IntegrationAttemptCompleteInput, IntegrationAttemptCancelInput, ServerMcpListInput, ServerMcpListOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectCurrentOutput, ProjectDirectoriesInput, ProjectDirectoriesOutput, FormListRequestsInput, FormListRequestsOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionListRequestsInput, PermissionListRequestsOutput, PermissionListSavedInput, PermissionRemoveSavedInput, 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, QuestionListRequestsInput, QuestionListRequestsOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyCreateOutput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationOutput } from "./types";
|
|
1
|
+
import type { HealthGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionListOutput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectOauthInput, IntegrationConnectOauthOutput, IntegrationAttemptStatusInput, IntegrationAttemptStatusOutput, IntegrationAttemptCompleteInput, IntegrationAttemptCancelInput, ServerMcpListInput, ServerMcpListOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectCurrentOutput, ProjectDirectoriesInput, ProjectDirectoriesOutput, FormListRequestsInput, FormListRequestsOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionListRequestsInput, PermissionListRequestsOutput, PermissionListSavedInput, PermissionRemoveSavedInput, 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, QuestionListRequestsInput, QuestionListRequestsOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyCreateOutput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationOutput, DebugEvictLocationInput } from "./types";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -1357,5 +1357,6 @@ export declare function make(options: ClientOptions): {
|
|
|
1357
1357
|
};
|
|
1358
1358
|
debug: {
|
|
1359
1359
|
location: (requestOptions?: RequestOptions) => Promise<DebugLocationOutput>;
|
|
1360
|
+
evictLocation: (input?: DebugEvictLocationInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1360
1361
|
};
|
|
1361
1362
|
};
|
|
@@ -937,6 +937,14 @@ export function make(options) {
|
|
|
937
937
|
declaredStatuses: [401, 400],
|
|
938
938
|
empty: false,
|
|
939
939
|
}, requestOptions),
|
|
940
|
+
evictLocation: (input, requestOptions) => request({
|
|
941
|
+
method: "DELETE",
|
|
942
|
+
path: `/api/debug/location`,
|
|
943
|
+
query: { location: input?.["location"] },
|
|
944
|
+
successStatus: 204,
|
|
945
|
+
declaredStatuses: [401, 400],
|
|
946
|
+
empty: true,
|
|
947
|
+
}, requestOptions),
|
|
940
948
|
},
|
|
941
949
|
};
|
|
942
950
|
}
|
|
@@ -8593,3 +8593,12 @@ export type DebugLocationOutput = ReadonlyArray<{
|
|
|
8593
8593
|
readonly directory: string;
|
|
8594
8594
|
readonly workspaceID?: string;
|
|
8595
8595
|
}>;
|
|
8596
|
+
export type DebugEvictLocationInput = {
|
|
8597
|
+
readonly location?: {
|
|
8598
|
+
readonly location?: {
|
|
8599
|
+
readonly directory?: string | undefined;
|
|
8600
|
+
readonly workspace?: string | undefined;
|
|
8601
|
+
} | undefined;
|
|
8602
|
+
}["location"];
|
|
8603
|
+
};
|
|
8604
|
+
export type DebugEvictLocationOutput = void;
|
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-15065",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"typecheck": "tsgo --noEmit"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
45
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
44
|
+
"@opencode-ai/schema": "0.0.0-next-15065",
|
|
45
|
+
"@opencode-ai/protocol": "0.0.0-next-15065"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"effect": "4.0.0-beta.83"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
57
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
57
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-15065",
|
|
58
58
|
"@tsconfig/bun": "1.0.9",
|
|
59
59
|
"@types/bun": "1.3.13",
|
|
60
60
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|