@opencode-ai/client 0.0.0-next-15345 → 0.0.0-next-15347

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.
@@ -431,17 +431,17 @@ export type Endpoint11_0Input = {
431
431
  readonly location?: Endpoint11_0Request["query"]["location"];
432
432
  };
433
433
  export type Endpoint11_0Output = EffectValue<ReturnType<RawClient["server.mcp"]["mcp.list"]>>;
434
- export type ServerMcpListOperation<E = never> = (input?: Endpoint11_0Input) => Effect.Effect<Endpoint11_0Output, E>;
434
+ export type McpListOperation<E = never> = (input?: Endpoint11_0Input) => Effect.Effect<Endpoint11_0Output, E>;
435
435
  type Endpoint11_1Request = Parameters<RawClient["server.mcp"]["mcp.resource.catalog"]>[0];
436
436
  export type Endpoint11_1Input = {
437
437
  readonly location?: Endpoint11_1Request["query"]["location"];
438
438
  };
439
439
  export type Endpoint11_1Output = EffectValue<ReturnType<RawClient["server.mcp"]["mcp.resource.catalog"]>>;
440
- export type ServerMcpResourceCatalogOperation<E = never> = (input?: Endpoint11_1Input) => Effect.Effect<Endpoint11_1Output, E>;
441
- export interface ServerMcpApi<E = never> {
442
- readonly list: ServerMcpListOperation<E>;
440
+ export type McpResourceCatalogOperation<E = never> = (input?: Endpoint11_1Input) => Effect.Effect<Endpoint11_1Output, E>;
441
+ export interface McpApi<E = never> {
442
+ readonly list: McpListOperation<E>;
443
443
  readonly resource: {
444
- readonly catalog: ServerMcpResourceCatalogOperation<E>;
444
+ readonly catalog: McpResourceCatalogOperation<E>;
445
445
  };
446
446
  }
447
447
  type Endpoint12_0Request = Parameters<RawClient["server.credential"]["credential.update"]>[0];
@@ -875,7 +875,7 @@ export interface AppApi<E = never> {
875
875
  readonly generate: GenerateApi<E>;
876
876
  readonly provider: ProviderApi<E>;
877
877
  readonly integration: IntegrationApi<E>;
878
- readonly "server.mcp": ServerMcpApi<E>;
878
+ readonly mcp: McpApi<E>;
879
879
  readonly credential: CredentialApi<E>;
880
880
  readonly project: ProjectApi<E>;
881
881
  readonly form: FormApi<E>;
@@ -3151,7 +3151,7 @@ export declare const make: (options?: {
3151
3151
  cancel: (input: Endpoint10_6Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
3152
3152
  };
3153
3153
  };
3154
- "server.mcp": {
3154
+ mcp: {
3155
3155
  list: (input?: Endpoint11_0Input) => Effect.Effect<{
3156
3156
  readonly location: import("@opencode-ai/schema/location").Info;
3157
3157
  readonly data: readonly {
@@ -382,7 +382,7 @@ const adaptClient = (raw) => ({
382
382
  generate: adaptGroup8(raw["server.generate"]),
383
383
  provider: adaptGroup9(raw["server.provider"]),
384
384
  integration: adaptGroup10(raw["server.integration"]),
385
- "server.mcp": adaptGroup11(raw["server.mcp"]),
385
+ mcp: adaptGroup11(raw["server.mcp"]),
386
386
  credential: adaptGroup12(raw["server.credential"]),
387
387
  project: adaptGroup13(raw["server.project"]),
388
388
  form: adaptGroup14(raw["server.form"]),
@@ -1,4 +1,4 @@
1
- import type { HealthGetOutput, 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, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectOauthInput, IntegrationConnectOauthOutput, IntegrationAttemptStatusInput, IntegrationAttemptStatusOutput, IntegrationAttemptCompleteInput, IntegrationAttemptCancelInput, ServerMcpListInput, ServerMcpListOutput, ServerMcpResourceCatalogInput, ServerMcpResourceCatalogOutput, 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 { HealthGetOutput, 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, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectOauthInput, IntegrationConnectOauthOutput, IntegrationAttemptStatusInput, IntegrationAttemptStatusOutput, IntegrationAttemptCompleteInput, IntegrationAttemptCancelInput, McpListInput, McpListOutput, 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";
2
2
  export interface ClientOptions {
3
3
  readonly baseUrl: string;
4
4
  readonly fetch?: typeof globalThis.fetch;
@@ -94,10 +94,10 @@ export declare function make(options: ClientOptions): {
94
94
  cancel: (input: IntegrationAttemptCancelInput, requestOptions?: RequestOptions) => Promise<void>;
95
95
  };
96
96
  };
97
- "server.mcp": {
98
- list: (input?: ServerMcpListInput, requestOptions?: RequestOptions) => Promise<ServerMcpListOutput>;
97
+ mcp: {
98
+ list: (input?: McpListInput, requestOptions?: RequestOptions) => Promise<McpListOutput>;
99
99
  resource: {
100
- catalog: (input?: ServerMcpResourceCatalogInput, requestOptions?: RequestOptions) => Promise<ServerMcpResourceCatalogOutput>;
100
+ catalog: (input?: McpResourceCatalogInput, requestOptions?: RequestOptions) => Promise<McpResourceCatalogOutput>;
101
101
  };
102
102
  };
103
103
  credential: {
@@ -554,7 +554,7 @@ export function make(options) {
554
554
  }, requestOptions),
555
555
  },
556
556
  },
557
- "server.mcp": {
557
+ mcp: {
558
558
  list: (input, requestOptions) => request({
559
559
  method: "GET",
560
560
  path: `/api/mcp`,
@@ -4458,7 +4458,7 @@ export type IntegrationAttemptCancelInput = {
4458
4458
  }["location"];
4459
4459
  };
4460
4460
  export type IntegrationAttemptCancelOutput = void;
4461
- export type ServerMcpListInput = {
4461
+ export type McpListInput = {
4462
4462
  readonly location?: {
4463
4463
  readonly location?: {
4464
4464
  readonly directory?: string | undefined;
@@ -4466,7 +4466,7 @@ export type ServerMcpListInput = {
4466
4466
  } | undefined;
4467
4467
  }["location"];
4468
4468
  };
4469
- export type ServerMcpListOutput = {
4469
+ export type McpListOutput = {
4470
4470
  location: {
4471
4471
  directory: string;
4472
4472
  workspaceID?: string;
@@ -4477,7 +4477,7 @@ export type ServerMcpListOutput = {
4477
4477
  };
4478
4478
  data: Array<McpServer>;
4479
4479
  };
4480
- export type ServerMcpResourceCatalogInput = {
4480
+ export type McpResourceCatalogInput = {
4481
4481
  readonly location?: {
4482
4482
  readonly location?: {
4483
4483
  readonly directory?: string | undefined;
@@ -4485,7 +4485,7 @@ export type ServerMcpResourceCatalogInput = {
4485
4485
  } | undefined;
4486
4486
  }["location"];
4487
4487
  };
4488
- export type ServerMcpResourceCatalogOutput = {
4488
+ export type McpResourceCatalogOutput = {
4489
4489
  location: {
4490
4490
  directory: string;
4491
4491
  workspaceID?: string;
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-15345",
4
+ "version": "0.0.0-next-15347",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -45,8 +45,8 @@
45
45
  "typecheck": "tsgo --noEmit"
46
46
  },
47
47
  "dependencies": {
48
- "@opencode-ai/schema": "0.0.0-next-15345",
49
- "@opencode-ai/protocol": "0.0.0-next-15345"
48
+ "@opencode-ai/schema": "0.0.0-next-15347",
49
+ "@opencode-ai/protocol": "0.0.0-next-15347"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "effect": "4.0.0-beta.83"
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@effect/platform-node": "4.0.0-beta.83",
61
- "@opencode-ai/httpapi-codegen": "0.0.0-next-15345",
61
+ "@opencode-ai/httpapi-codegen": "0.0.0-next-15347",
62
62
  "@tsconfig/bun": "1.0.9",
63
63
  "@types/bun": "1.3.13",
64
64
  "@typescript/native-preview": "7.0.0-dev.20251207.1",