diff --git a/dist/api.d.ts b/dist/api.d.ts index 68fe350..7c8f3f5 100644 --- a/dist/api.d.ts +++ b/dist/api.d.ts @@ -1,5 +1,5 @@ import { Context } from "effect"; -import { HttpApi, HttpApiGroup, HttpApiMiddleware } from "effect/unstable/httpapi"; +import { HttpApi, HttpApiGroup, HttpApiMiddleware } from "effect/http-api"; import { SchemaErrorMiddleware } from "./middleware/schema-error.js"; import { GenerateGroup } from "./groups/generate.js"; import { MessageGroup } from "./groups/message.js"; diff --git a/dist/api.js b/dist/api.js index c68e3ea..0ed6447 100644 --- a/dist/api.js +++ b/dist/api.js @@ -1,5 +1,5 @@ import { Context } from "effect"; -import { HttpApi, HttpApiGroup, HttpApiMiddleware, OpenApi } from "effect/unstable/httpapi"; +import { HttpApi, HttpApiGroup, HttpApiMiddleware, OpenApi } from "effect/http-api"; import { SchemaErrorMiddleware } from "./middleware/schema-error.js"; import { GenerateGroup } from "./groups/generate.js"; import { MessageGroup } from "./groups/message.js"; diff --git a/dist/client.d.ts b/dist/client.d.ts index 8a7bdec..d1fc694 100644 --- a/dist/client.d.ts +++ b/dist/client.d.ts @@ -1,7 +1,7 @@ import { LocationNotFoundError, InvalidRequestError, SessionNotFoundError } from "./errors.js"; import type { Api } from "./api.js"; import type { Context } from "effect"; -import { HttpApiMiddleware } from "effect/unstable/httpapi"; +import { HttpApiMiddleware } from "effect/http-api"; import type { EventGroup } from "./groups/event.js"; declare const LocationMiddleware_base: HttpApiMiddleware.ServiceClass; diff --git a/dist/groups/command.js b/dist/groups/command.js index cd89b47..341eb23 100644 --- a/dist/groups/command.js +++ b/dist/groups/command.js @@ -1,7 +1,7 @@ import { Command } from "@opencode/schema/command"; import { Location } from "@opencode/schema/location"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"; import { LocationQuery, locationQueryOpenApi } from "./location.js"; export const CommandGroup = HttpApiGroup.make("server.command") .add(HttpApiEndpoint.get("command.list", "/api/command", { diff --git a/dist/groups/config.d.ts b/dist/groups/config.d.ts index 31f1042..0432fc2 100644 --- a/dist/groups/config.d.ts +++ b/dist/groups/config.d.ts @@ -1,6 +1,6 @@ import { Config } from "@opencode/schema/config"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api"; export declare const ConfigGroup: HttpApiGroup.HttpApiGroup<"server.config", HttpApiEndpoint.HttpApiEndpoint<"config.get", "GET", "/api/config", never, Schema.toCodecStringTree; diff --git a/dist/groups/config.js b/dist/groups/config.js index 228002a..14748f6 100644 --- a/dist/groups/config.js +++ b/dist/groups/config.js @@ -1,7 +1,7 @@ import { Config } from "@opencode/schema/config"; import { ConfigShell } from "@opencode/schema/config/shell"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api"; import { LocationQuery, locationQueryOpenApi } from "./location.js"; export const ConfigGroup = HttpApiGroup.make("server.config") .add(HttpApiEndpoint.get("config.get", "/api/config", { diff --git a/dist/groups/credential.d.ts b/dist/groups/credential.d.ts index 12de0a3..a4c616e 100644 --- a/dist/groups/credential.d.ts +++ b/dist/groups/credential.d.ts @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api"; import { ConflictError } from "../errors.js"; export declare const CredentialGroup: HttpApiGroup.HttpApiGroup<"server.credential", HttpApiEndpoint.HttpApiEndpoint<"credential.list", "GET", "/api/credential", never, never, never, never, Schema.toCodecJson; }>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location.evict", "DELETE", "/api/debug/location", never, Schema.toCodecStringTree>(definitions: Definitions) => HttpApiGroup.HttpApiGroup<"server.event", HttpApiEndpoint.HttpApiEndpoint<"event.subscribe", "GET", "/api/event", never, never, never, never, HttpApiSchema.StreamSse & { create: () => string & import("effect/Brand").Brand<"Event.ID">; diff --git a/dist/groups/event.js b/dist/groups/event.js index 7d086fe..667e078 100644 --- a/dist/groups/event.js +++ b/dist/groups/event.js @@ -2,7 +2,7 @@ import { Event } from "@opencode/schema/event"; import { EventManifest } from "@opencode/schema/event-manifest"; import { Location } from "@opencode/schema/location"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api"; const fields = { id: Event.ID, metadata: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)), diff --git a/dist/groups/form.d.ts b/dist/groups/form.d.ts index ef9289e..efff3f0 100644 --- a/dist/groups/form.d.ts +++ b/dist/groups/form.d.ts @@ -1,5 +1,5 @@ import { Context, Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware } from "effect/http-api"; export declare const makeFormGroup: (locationMiddleware: Context.Key) => HttpApiGroup.HttpApiGroup<"server.form", HttpApiEndpoint.HttpApiEndpoint<"form.list", "GET", "/api/form", never, Schema.toCodecStringTree; diff --git a/dist/groups/form.js b/dist/groups/form.js index 7b97820..d68d534 100644 --- a/dist/groups/form.js +++ b/dist/groups/form.js @@ -1,7 +1,7 @@ import { Form } from "@opencode/schema/form"; import { Location } from "@opencode/schema/location"; import { Context, Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, OpenApi } from "effect/http-api"; import { LocationQuery, locationQueryOpenApi } from "./location.js"; export const makeFormGroup = (locationMiddleware) => HttpApiGroup.make("server.form") .add(HttpApiEndpoint.get("form.list", "/api/form", { diff --git a/dist/groups/fs.d.ts b/dist/groups/fs.d.ts index c8294ac..af3ac60 100644 --- a/dist/groups/fs.d.ts +++ b/dist/groups/fs.d.ts @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api"; import { FileNotFoundError } from "../errors.js"; export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", HttpApiEndpoint.HttpApiEndpoint<"fs.read", "GET", "/api/fs/read/*", never, Schema.toCodecStringTree; diff --git a/dist/groups/message.js b/dist/groups/message.js index 135878a..9c546b0 100644 --- a/dist/groups/message.js +++ b/dist/groups/message.js @@ -2,7 +2,7 @@ import { Session } from "@opencode/schema/session"; import { SessionMessage } from "@opencode/schema/session-message"; import { Location } from "@opencode/schema/location"; import { Schema, Struct } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"; import { InvalidCursorError, SessionNotFoundError, UnknownError } from "../errors.js"; export const SessionMessagesQuery = Schema.Struct({ limit: Schema.optional(Schema.NumberFromString.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(1), Schema.isLessThanOrEqualTo(200))).annotate({ diff --git a/dist/groups/migration.d.ts b/dist/groups/migration.d.ts index 627b223..4a9323d 100644 --- a/dist/groups/migration.d.ts +++ b/dist/groups/migration.d.ts @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api"; export declare const V1MigrationStatus: Schema.Union; }>, Schema.Struct<{ diff --git a/dist/groups/migration.js b/dist/groups/migration.js index 20cf324..ef048e9 100644 --- a/dist/groups/migration.js +++ b/dist/groups/migration.js @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"; const V1MigrationProgress = Schema.Struct({ label: Schema.String, numerator: Schema.optional(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))), diff --git a/dist/groups/model.d.ts b/dist/groups/model.d.ts index 8bb1daa..787fe05 100644 --- a/dist/groups/model.d.ts +++ b/dist/groups/model.d.ts @@ -1,6 +1,6 @@ import { Model } from "@opencode/schema/model"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api"; import { ServiceUnavailableError } from "../errors.js"; export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpApiEndpoint.HttpApiEndpoint<"model.list", "GET", "/api/model", never, Schema.toCodecStringTree(locationMiddleware: Context.Key, sessionLocationMiddleware: Context.Key) => HttpApiGroup.HttpApiGroup<"server.permission", HttpApiEndpoint.HttpApiEndpoint<"permission.request.list", "GET", "/api/permission/request", never, Schema.toCodecStringTree HttpApiGroup.make("server.permission") diff --git a/dist/groups/persistent-pty.d.ts b/dist/groups/persistent-pty.d.ts index efb7472..b6b786b 100644 --- a/dist/groups/persistent-pty.d.ts +++ b/dist/groups/persistent-pty.d.ts @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api"; import { ForbiddenError, InvalidRequestError, PtyNotFoundError, ServiceUnavailableError } from "../errors.js"; import { PTY_CONNECT_TICKET_QUERY, PTY_CONNECT_TOKEN_HEADER, PTY_CONNECT_TOKEN_HEADER_VALUE } from "./pty.js"; export { PTY_CONNECT_TICKET_QUERY, PTY_CONNECT_TOKEN_HEADER, PTY_CONNECT_TOKEN_HEADER_VALUE }; diff --git a/dist/groups/persistent-pty.js b/dist/groups/persistent-pty.js index 85ad02f..b64c896 100644 --- a/dist/groups/persistent-pty.js +++ b/dist/groups/persistent-pty.js @@ -3,7 +3,7 @@ import { Pty } from "@opencode/schema/pty"; import { PtyTicket } from "@opencode/schema/pty-ticket"; import { Session } from "@opencode/schema/session"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api"; import { ForbiddenError, InvalidRequestError, PtyNotFoundError, ServiceUnavailableError } from "../errors.js"; import { PTY_CONNECT_TICKET_QUERY, PTY_CONNECT_TOKEN_HEADER, PTY_CONNECT_TOKEN_HEADER_VALUE } from "./pty.js"; export { PTY_CONNECT_TICKET_QUERY, PTY_CONNECT_TOKEN_HEADER, PTY_CONNECT_TOKEN_HEADER_VALUE }; diff --git a/dist/groups/plugin.d.ts b/dist/groups/plugin.d.ts index 30d0f78..8bd4ecd 100644 --- a/dist/groups/plugin.d.ts +++ b/dist/groups/plugin.d.ts @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api"; import { InvalidRequestError, ServiceUnavailableError } from "../errors.js"; export declare const PluginGroup: HttpApiGroup.HttpApiGroup<"server.plugin", HttpApiEndpoint.HttpApiEndpoint<"plugin.list", "GET", "/api/plugin", never, Schema.toCodecStringTree & { diff --git a/dist/groups/project.js b/dist/groups/project.js index 7424c4e..b67f839 100644 --- a/dist/groups/project.js +++ b/dist/groups/project.js @@ -1,6 +1,6 @@ import { Project } from "@opencode/schema/project"; import { Schema, Struct } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"; import { ProjectNotFoundError } from "../errors.js"; const root = "/api/project"; const UpdatePayload = Schema.Struct(Struct.omit(Project.UpdateInput.fields, ["projectID"])); diff --git a/dist/groups/provider.d.ts b/dist/groups/provider.d.ts index 2671555..89118fe 100644 --- a/dist/groups/provider.d.ts +++ b/dist/groups/provider.d.ts @@ -1,6 +1,6 @@ import { Provider } from "@opencode/schema/provider"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api"; import { ProviderNotFoundError, ServiceUnavailableError } from "../errors.js"; export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider", HttpApiEndpoint.HttpApiEndpoint<"provider.list", "GET", "/api/provider", never, Schema.toCodecStringTree; diff --git a/dist/groups/reference.js b/dist/groups/reference.js index e96827b..e615fd1 100644 --- a/dist/groups/reference.js +++ b/dist/groups/reference.js @@ -1,7 +1,7 @@ import { Location } from "@opencode/schema/location"; import { Reference } from "@opencode/schema/reference"; import { Schema, Struct } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"; import { LocationQuery, locationQueryOpenApi } from "./location.js"; const PublicLocalSource = Schema.Struct(Struct.omit(Reference.LocalSource.fields, ["description", "hidden"])).annotate({ identifier: "Reference.LocalSource", diff --git a/dist/groups/rpc.d.ts b/dist/groups/rpc.d.ts index 3790115..08e86ec 100644 --- a/dist/groups/rpc.d.ts +++ b/dist/groups/rpc.d.ts @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api"; import { RpcError, RpcInternalError } from "../errors.js"; export declare const RpcInput: Schema.Struct<{ readonly input: Schema.decodeTo>, Schema.optionalKey, never, never>; diff --git a/dist/groups/rpc.js b/dist/groups/rpc.js index c12866c..36dadc6 100644 --- a/dist/groups/rpc.js +++ b/dist/groups/rpc.js @@ -1,6 +1,6 @@ import { optional } from "@opencode/schema/schema"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"; import { RpcError, RpcInternalError } from "../errors.js"; import { LocationQuery, locationQueryOpenApi } from "./location.js"; export const RpcInput = Schema.Struct({ input: optional(Schema.Unknown) }).annotate({ identifier: "Rpc.Input" }); diff --git a/dist/groups/server.d.ts b/dist/groups/server.d.ts index b02cf39..5e605d6 100644 --- a/dist/groups/server.d.ts +++ b/dist/groups/server.d.ts @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api"; import { UnauthorizedError } from "../errors.js"; export declare const ServerInfo: Schema.Struct<{ readonly version: Schema.String; diff --git a/dist/groups/server.js b/dist/groups/server.js index c2415ec..ab9fef3 100644 --- a/dist/groups/server.js +++ b/dist/groups/server.js @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"; import { UnauthorizedError } from "../errors.js"; export const ServerInfo = Schema.Struct({ version: Schema.String, diff --git a/dist/groups/session.d.ts b/dist/groups/session.d.ts index 316bfb1..adbea93 100644 --- a/dist/groups/session.d.ts +++ b/dist/groups/session.d.ts @@ -2,7 +2,7 @@ import { PromptInput } from "@opencode/schema/prompt-input"; import { InstructionEntry } from "@opencode/schema/instruction-entry"; import { Event } from "@opencode/schema/event"; import { Context, Effect, Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/http-api"; import { ConflictError, LocationNotFoundError, CommandExecutionError, CommandNotFoundError, FormAlreadySettledError, FormInvalidAnswerError, FormNotFoundError, InvalidCursorError, InvalidRequestError, MessageNotFoundError, ServiceUnavailableError, SessionBusyError, SessionNotFoundError, SkillNotFoundError, UnknownError } from "../errors.js"; declare const SessionsCursorInput: Schema.Union; diff --git a/dist/groups/session.js b/dist/groups/session.js index 64fe213..c835084 100644 --- a/dist/groups/session.js +++ b/dist/groups/session.js @@ -7,8 +7,9 @@ import { InstructionEntry } from "@opencode/schema/instruction-entry"; import { Project } from "@opencode/schema/project"; import { AbsolutePath, DateTimeUtcFromMillis, NonNegativeInt, PositiveInt, RelativePath, statics, } from "@opencode/schema/schema"; import { Event } from "@opencode/schema/event"; -import { Context, Effect, Encoding, Result, Schema, SchemaGetter, Struct } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, OpenApi } from "effect/unstable/httpapi"; +import * as Base64Url from "effect/encoding/Base64Url"; +import { Context, Effect, Result, Schema, SchemaGetter, Struct } from "effect"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, OpenApi } from "effect/http-api"; import { ConflictError, LocationNotFoundError, CommandExecutionError, CommandNotFoundError, FormAlreadySettledError, FormInvalidAnswerError, FormNotFoundError, InvalidCursorError, InvalidRequestError, MessageNotFoundError, ServiceUnavailableError, SessionBusyError, SessionNotFoundError, SkillNotFoundError, UnknownError, } from "../errors.js"; import { Agent } from "@opencode/schema/agent"; import { Skill } from "@opencode/schema/skill"; @@ -65,9 +66,9 @@ const invalidCursor = "Invalid cursor"; export const SessionsCursor = Schema.String.pipe(Schema.brand("SessionsCursor"), statics((schema) => { const make = schema.make.bind(schema); return { - make: (input) => make(Encoding.encodeBase64Url(encodeSessionsCursor(input))), + make: (input) => make(Base64Url.encode(encodeSessionsCursor(input))), parse: (input) => Effect.suspend(() => { - const result = Encoding.decodeBase64UrlString(input); + const result = Base64Url.decodeString(input); return Result.isFailure(result) ? Effect.fail(invalidCursor) : decodeSessionsCursor(result.success).pipe(Effect.mapError(() => invalidCursor)); diff --git a/dist/groups/shell.d.ts b/dist/groups/shell.d.ts index 55b3455..dd1cfe3 100644 --- a/dist/groups/shell.d.ts +++ b/dist/groups/shell.d.ts @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api"; import { ShellNotFoundError } from "../errors.js"; export declare const ShellGroup: HttpApiGroup.HttpApiGroup<"server.shell", HttpApiEndpoint.HttpApiEndpoint<"shell.list", "GET", "/api/shell", never, Schema.toCodecStringTree; diff --git a/dist/groups/skill.js b/dist/groups/skill.js index a55e3ed..b419ad2 100644 --- a/dist/groups/skill.js +++ b/dist/groups/skill.js @@ -1,7 +1,7 @@ import { Skill } from "@opencode/schema/skill"; import { Location } from "@opencode/schema/location"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"; import { LocationQuery, locationQueryOpenApi } from "./location.js"; export const SkillGroup = HttpApiGroup.make("server.skill") .add(HttpApiEndpoint.get("skill.list", "/api/skill", { diff --git a/dist/groups/vcs.d.ts b/dist/groups/vcs.d.ts index 7672482..d129386 100644 --- a/dist/groups/vcs.d.ts +++ b/dist/groups/vcs.d.ts @@ -1,5 +1,5 @@ import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api"; import { ConflictError, InvalidRequestError, ServiceUnavailableError } from "../errors.js"; declare const VcsInitNotSupportedError_base: Schema.Class; diff --git a/dist/groups/worktree.js b/dist/groups/worktree.js index 67bed29..0a501b1 100644 --- a/dist/groups/worktree.js +++ b/dist/groups/worktree.js @@ -1,6 +1,6 @@ import { Worktree } from "@opencode/schema/worktree"; import { Schema } from "effect"; -import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi"; +import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api"; import { Project } from "@opencode/schema/project"; import { ProjectNotFoundError } from "../errors.js"; const root = "/api/worktree"; diff --git a/dist/middleware/authorization.d.ts b/dist/middleware/authorization.d.ts index 2d043d9..f84b1df 100644 --- a/dist/middleware/authorization.d.ts +++ b/dist/middleware/authorization.d.ts @@ -1,4 +1,4 @@ -import { HttpApiMiddleware } from "effect/unstable/httpapi"; +import { HttpApiMiddleware } from "effect/http-api"; import { UnauthorizedError } from "../errors.js"; declare const Authorization_base: HttpApiMiddleware.ServiceClass; diff --git a/dist/simulation.js b/dist/simulation.js index 3e52010..ce8f56e 100644 --- a/dist/simulation.js +++ b/dist/simulation.js @@ -1,5 +1,5 @@ import { Effect, Schema } from "effect"; -import { Rpc, RpcGroup } from "effect/unstable/rpc"; +import { Rpc, RpcGroup } from "effect/rpc"; const JsonRpcID = Schema.Union([Schema.String, Schema.Number, Schema.Null]); const decodeJson = Schema.decodeUnknownSync(Schema.Json); export var JsonRpc;