@opencode-ai/client
Advanced tools
@@ -158,4 +158,5 @@ import type { Effect, Stream } from "effect"; | ||
| readonly sessionID: Endpoint4_14Request["params"]["sessionID"]; | ||
| readonly id?: Endpoint4_14Request["payload"]["id"]; | ||
| }; | ||
| export type Endpoint4_14Output = EffectValue<ReturnType<RawClient["server.session"]["session.compact"]>>; | ||
| export type Endpoint4_14Output = EffectValue<ReturnType<RawClient["server.session"]["session.compact"]>>["data"]; | ||
| export type SessionCompactOperation<E = never> = (input: Endpoint4_14Input) => Effect.Effect<Endpoint4_14Output, E>; | ||
@@ -162,0 +163,0 @@ type Endpoint4_15Request = Parameters<RawClient["server.session"]["session.wait"]>[0]; |
@@ -72,3 +72,3 @@ // Generated by @opencode-ai/httpapi-codegen. Do not edit. | ||
| }).pipe(Effect.mapError(mapClientError)); | ||
| const Endpoint4_14 = (raw) => (input) => raw["session.compact"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)); | ||
| const Endpoint4_14 = (raw) => (input) => raw["session.compact"]({ params: { sessionID: input["sessionID"] }, payload: { id: input["id"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)); | ||
| const Endpoint4_15 = (raw) => (input) => raw["session.wait"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)); | ||
@@ -75,0 +75,0 @@ const Endpoint4_16 = (raw) => (input) => raw["session.revert.stage"]({ |
@@ -257,3 +257,10 @@ 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"; | ||
| shell: (input: SessionShellInput, requestOptions?: RequestOptions) => Promise<void>; | ||
| compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<void>; | ||
| compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<{ | ||
| readonly type: "compaction"; | ||
| readonly admittedSeq: number; | ||
| readonly id: string; | ||
| readonly sessionID: string; | ||
| readonly timeCreated: number; | ||
| readonly handledSeq?: number; | ||
| }>; | ||
| wait: (input: SessionWaitInput, requestOptions?: RequestOptions) => Promise<void>; | ||
@@ -561,2 +568,3 @@ revertStage: (input: SessionRevertStageInput, requestOptions?: RequestOptions) => Promise<{ | ||
| readonly type: "compaction"; | ||
| readonly status: "queued" | "running" | "completed" | "failed"; | ||
| readonly reason: "auto" | "manual"; | ||
@@ -872,2 +880,3 @@ readonly summary: string; | ||
| readonly type: "compaction"; | ||
| readonly status: "queued" | "running" | "completed" | "failed"; | ||
| readonly reason: "auto" | "manual"; | ||
@@ -874,0 +883,0 @@ readonly summary: string; |
@@ -300,6 +300,7 @@ import { ClientError } from "./client-error"; | ||
| path: `/api/session/${encodeURIComponent(input.sessionID)}/compact`, | ||
| successStatus: 204, | ||
| declaredStatuses: [404, 409, 503, 500, 400, 401], | ||
| empty: true, | ||
| }, requestOptions), | ||
| body: { id: input["id"] }, | ||
| successStatus: 200, | ||
| declaredStatuses: [409, 404, 400, 401], | ||
| empty: false, | ||
| }, requestOptions).then((value) => value.data), | ||
| wait: (input, requestOptions) => request({ | ||
@@ -306,0 +307,0 @@ method: "POST", |
@@ -10,4 +10,4 @@ export const isUnauthorizedError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnauthorizedError"; | ||
| export const isSkillNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "SkillNotFoundError"; | ||
| export const isServiceUnavailableError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ServiceUnavailableError"; | ||
| export const isSessionBusyError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "SessionBusyError"; | ||
| export const isServiceUnavailableError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ServiceUnavailableError"; | ||
| export const isUnknownError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnknownError"; | ||
@@ -14,0 +14,0 @@ export const isProviderNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ProviderNotFoundError"; |
+4
-4
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/client", | ||
| "version": "0.0.0-next-15029", | ||
| "version": "0.0.0-next-15032", | ||
| "type": "module", | ||
@@ -44,4 +44,4 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-next-15029", | ||
| "@opencode-ai/protocol": "0.0.0-next-15029" | ||
| "@opencode-ai/schema": "0.0.0-next-15032", | ||
| "@opencode-ai/protocol": "0.0.0-next-15032" | ||
| }, | ||
@@ -58,3 +58,3 @@ "peerDependencies": { | ||
| "@effect/platform-node": "4.0.0-beta.83", | ||
| "@opencode-ai/httpapi-codegen": "0.0.0-next-15029", | ||
| "@opencode-ai/httpapi-codegen": "0.0.0-next-15032", | ||
| "@tsconfig/bun": "1.0.9", | ||
@@ -61,0 +61,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
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.
811536
0.97%18914
1.03%+ Added
+ Added
- Removed
- Removed