@opencode-ai/client
Advanced tools
@@ -273,11 +273,3 @@ // Generated by @opencode-ai/httpapi-codegen. Do not edit. | ||
| const Endpoint13_1 = (raw) => (input) => preserveEffect()(raw["project.current"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError))); | ||
| const Endpoint13_2 = (raw) => (input) => preserveEffect()(raw["project.directories"]({ | ||
| params: { projectID: input["projectID"] }, | ||
| query: { location: input["location"] }, | ||
| }).pipe(Effect.mapError(mapClientError))); | ||
| const adaptGroup13 = (raw) => ({ | ||
| list: Endpoint13_0(raw), | ||
| current: Endpoint13_1(raw), | ||
| directories: Endpoint13_2(raw), | ||
| }); | ||
| const adaptGroup13 = (raw) => ({ list: Endpoint13_0(raw), current: Endpoint13_1(raw) }); | ||
| const Endpoint14_0 = (raw) => (input) => preserveEffect()(raw["form.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError))); | ||
@@ -410,20 +402,17 @@ const Endpoint14_1 = (raw) => (input) => preserveEffect()(raw["session.form.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data))); | ||
| const adaptGroup23 = (raw) => ({ list: Endpoint23_0(raw) }); | ||
| const Endpoint24_0 = (raw) => (input) => preserveEffect()(raw["projectCopy.create"]({ | ||
| const Endpoint24_0 = (raw) => (input) => preserveEffect()(raw["worktree.list"]({ params: { projectID: input["projectID"] } }).pipe(Effect.mapError(mapClientError))); | ||
| const Endpoint24_1 = (raw) => (input) => preserveEffect()(raw["worktree.create"]({ | ||
| params: { projectID: input["projectID"] }, | ||
| query: { location: input["location"] }, | ||
| payload: { strategy: input["strategy"], directory: input["directory"], name: input["name"] }, | ||
| payload: { strategy: input["strategy"], from: input["from"], directory: input["directory"], name: input["name"] }, | ||
| }).pipe(Effect.mapError(mapClientError))); | ||
| const Endpoint24_1 = (raw) => (input) => preserveEffect()(raw["projectCopy.remove"]({ | ||
| const Endpoint24_2 = (raw) => (input) => preserveEffect()(raw["worktree.remove"]({ | ||
| params: { projectID: input["projectID"] }, | ||
| query: { location: input["location"] }, | ||
| payload: { directory: input["directory"], force: input["force"] }, | ||
| }).pipe(Effect.mapError(mapClientError))); | ||
| const Endpoint24_2 = (raw) => (input) => preserveEffect()(raw["projectCopy.refresh"]({ | ||
| params: { projectID: input["projectID"] }, | ||
| query: { location: input["location"] }, | ||
| }).pipe(Effect.mapError(mapClientError))); | ||
| const Endpoint24_3 = (raw) => (input) => preserveEffect()(raw["worktree.refresh"]({ params: { projectID: input["projectID"] } }).pipe(Effect.mapError(mapClientError))); | ||
| const adaptGroup24 = (raw) => ({ | ||
| create: Endpoint24_0(raw), | ||
| remove: Endpoint24_1(raw), | ||
| refresh: Endpoint24_2(raw), | ||
| list: Endpoint24_0(raw), | ||
| create: Endpoint24_1(raw), | ||
| remove: Endpoint24_2(raw), | ||
| refresh: Endpoint24_3(raw), | ||
| }); | ||
@@ -481,3 +470,3 @@ const Endpoint25_0 = (raw) => (input) => preserveEffect()(raw["vcs.get"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError))); | ||
| reference: adaptGroup23(raw["server.reference"]), | ||
| projectCopy: adaptGroup24(raw["server.projectCopy"]), | ||
| worktree: adaptGroup24(raw["server.worktree"]), | ||
| vcs: adaptGroup25(raw["server.vcs"]), | ||
@@ -484,0 +473,0 @@ debug: adaptGroup26(raw["server.debug"]), |
@@ -18,3 +18,3 @@ import type { Effect } from "effect"; | ||
| export { Project } from "@opencode-ai/schema/project"; | ||
| export { ProjectCopy } from "@opencode-ai/schema/project-copy"; | ||
| export { Worktree } from "@opencode-ai/schema/worktree"; | ||
| export { Provider } from "@opencode-ai/schema/provider"; | ||
@@ -21,0 +21,0 @@ export { Pty } from "@opencode-ai/schema/pty"; |
@@ -16,3 +16,3 @@ export * from "./generated/index"; | ||
| export { Project } from "@opencode-ai/schema/project"; | ||
| export { ProjectCopy } from "@opencode-ai/schema/project-copy"; | ||
| export { Worktree } from "@opencode-ai/schema/worktree"; | ||
| export { Provider } from "@opencode-ai/schema/provider"; | ||
@@ -19,0 +19,0 @@ export { Pty } from "@opencode-ai/schema/pty"; |
@@ -1,2 +0,2 @@ | ||
| import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, 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, VcsGetInput, VcsGetOutput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "./types.js"; | ||
| import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, 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, 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, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsGetInput, VcsGetOutput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "./types.js"; | ||
| export interface ClientOptions { | ||
@@ -132,3 +132,2 @@ readonly baseUrl: string; | ||
| current: (input?: ProjectCurrentInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProjectCurrent>; | ||
| directories: (input: ProjectDirectoriesInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProjectDirectories>; | ||
| }; | ||
@@ -209,6 +208,7 @@ form: { | ||
| }; | ||
| projectCopy: { | ||
| create: (input: ProjectCopyCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProjectCopyCopy>; | ||
| remove: (input: ProjectCopyRemoveInput, requestOptions?: RequestOptions) => Promise<void>; | ||
| refresh: (input: ProjectCopyRefreshInput, requestOptions?: RequestOptions) => Promise<void>; | ||
| worktree: { | ||
| list: (input: WorktreeListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").WorktreeList>; | ||
| create: (input: WorktreeCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").WorktreeInfo>; | ||
| remove: (input: WorktreeRemoveInput, requestOptions?: RequestOptions) => Promise<void>; | ||
| refresh: (input: WorktreeRefreshInput, requestOptions?: RequestOptions) => Promise<void>; | ||
| }; | ||
@@ -215,0 +215,0 @@ vcs: { |
@@ -742,10 +742,2 @@ import { ClientError } from "./client-error.js"; | ||
| }, requestOptions), | ||
| directories: (input, requestOptions) => request({ | ||
| method: "GET", | ||
| path: `/api/project/${encodeURIComponent(input.projectID)}/directories`, | ||
| query: { location: input["location"] }, | ||
| successStatus: 200, | ||
| declaredStatuses: [401, 400], | ||
| empty: false, | ||
| }, requestOptions), | ||
| }, | ||
@@ -1077,8 +1069,19 @@ form: { | ||
| }, | ||
| projectCopy: { | ||
| worktree: { | ||
| list: (input, requestOptions) => request({ | ||
| method: "GET", | ||
| path: `/api/experimental/project/${encodeURIComponent(input.projectID)}/worktree`, | ||
| successStatus: 200, | ||
| declaredStatuses: [401, 400], | ||
| empty: false, | ||
| }, requestOptions), | ||
| create: (input, requestOptions) => request({ | ||
| method: "POST", | ||
| path: `/api/experimental/project/${encodeURIComponent(input.projectID)}/copy`, | ||
| query: { location: input["location"] }, | ||
| body: { strategy: input["strategy"], directory: input["directory"], name: input["name"] }, | ||
| path: `/api/experimental/project/${encodeURIComponent(input.projectID)}/worktree`, | ||
| body: { | ||
| strategy: input["strategy"], | ||
| from: input["from"], | ||
| directory: input["directory"], | ||
| name: input["name"], | ||
| }, | ||
| successStatus: 200, | ||
@@ -1090,4 +1093,3 @@ declaredStatuses: [400, 401], | ||
| method: "DELETE", | ||
| path: `/api/experimental/project/${encodeURIComponent(input.projectID)}/copy`, | ||
| query: { location: input["location"] }, | ||
| path: `/api/experimental/project/${encodeURIComponent(input.projectID)}/worktree`, | ||
| body: { directory: input["directory"], force: input["force"] }, | ||
@@ -1100,4 +1102,3 @@ successStatus: 204, | ||
| method: "POST", | ||
| path: `/api/experimental/project/${encodeURIComponent(input.projectID)}/copy/refresh`, | ||
| query: { location: input["location"] }, | ||
| path: `/api/experimental/project/${encodeURIComponent(input.projectID)}/worktree/refresh`, | ||
| successStatus: 204, | ||
@@ -1104,0 +1105,0 @@ declaredStatuses: [400, 401], |
@@ -27,2 +27,2 @@ export const isUnauthorizedError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnauthorizedError"; | ||
| export const isQuestionNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "QuestionNotFoundError"; | ||
| export const isProjectCopyError = (value) => typeof value === "object" && value !== null && "name" in value && value["name"] === "ProjectCopyError"; | ||
| export const isWorktreeError = (value) => typeof value === "object" && value !== null && "name" in value && value["name"] === "WorktreeError"; |
+4
-4
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/client", | ||
| "version": "0.0.0-next-17428", | ||
| "version": "0.0.0-next-17430", | ||
| "type": "module", | ||
@@ -56,4 +56,4 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-next-17428", | ||
| "@opencode-ai/protocol": "0.0.0-next-17428" | ||
| "@opencode-ai/schema": "0.0.0-next-17430", | ||
| "@opencode-ai/protocol": "0.0.0-next-17430" | ||
| }, | ||
@@ -70,3 +70,3 @@ "peerDependencies": { | ||
| "@effect/platform-node": "4.0.0-beta.101", | ||
| "@opencode-ai/httpapi-codegen": "0.0.0-next-17428", | ||
| "@opencode-ai/httpapi-codegen": "0.0.0-next-17430", | ||
| "@tsconfig/bun": "1.0.9", | ||
@@ -73,0 +73,0 @@ "@types/bun": "1.3.13", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
626164
-0.27%15463
-0.26%+ Added
+ Added
- Removed
- Removed